Skip to content

Commit 2782201

Browse files
Version Packages (beta)
1 parent bf24a13 commit 2782201

42 files changed

Lines changed: 853 additions & 15 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/pre.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,15 @@
3535
"@pandacss/eslint-plugin": "2.0.0-beta.3"
3636
},
3737
"changesets": [
38+
"analyze-report",
3839
"cli-include-flag",
3940
"codegen-types-index-jsx",
4041
"compiled-jsx-runtime-extraction",
4142
"config-bundle-temp-file",
4243
"css-property-value-map",
4344
"default-panda-build-command",
45+
"design-system-manifest",
46+
"design-system-single-level",
4447
"direct-mcp-package",
4548
"eslint-plugin-core",
4649
"fix-classname-vendor-prefix",
@@ -52,6 +55,7 @@
5255
"fix-runtime-important-classname",
5356
"global-nesting-composition-parity",
5457
"init-scaffold-default-presets",
58+
"jsx-extract-requires-framework",
5559
"lint-inspection-result",
5660
"merge-adjacent-selectors",
5761
"native-token-css",
@@ -65,6 +69,7 @@
6569
"sort-container-inline-size",
6670
"tokens-svg-color-table",
6771
"utility-transform-grouped-emit",
72+
"wasi-stackblitz",
6873
"write-if-changed-outputs"
6974
]
7075
}

packages/cli/CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# @pandacss/cli
22

3+
## 2.0.0-beta.6
4+
5+
### Patch Changes
6+
7+
- 8a936bd: Add `panda analyze` usage reports with JSON, static HTML, and live UI output, including configured usage
8+
totals for report summaries.
9+
- Updated dependencies [8a936bd]
10+
- Updated dependencies [82e7811]
11+
- Updated dependencies [7b71a43]
12+
- Updated dependencies [d075c2b]
13+
- Updated dependencies [86504d6]
14+
- @pandacss/compiler@2.0.0-beta.6
15+
- @pandacss/compiler-shared@2.0.0-beta.6
16+
- @pandacss/config@2.0.0-beta.6
17+
318
## 2.0.0-beta.5
419

520
### Patch Changes

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pandacss/cli",
3-
"version": "2.0.0-beta.5",
3+
"version": "2.0.0-beta.6",
44
"description": "CLI for Panda CSS, powered by the Rust compiler",
55
"type": "module",
66
"main": "./dist/index.js",

packages/compiler-shared/CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# @pandacss/compiler-shared
22

3+
## 2.0.0-beta.6
4+
5+
### Minor Changes
6+
7+
- 7b71a43: Adopt a published design system with one config field: `designSystem: '@acme/ds'`.
8+
9+
Panda reads the library's `panda.lib.json`, merges its preset under your config (your overrides win), points its
10+
components at the design system's own styled-system, and reuses its pre-extracted styles instead of re-extracting
11+
them. If your Panda is a different major than the design system needs (say a v2 design system on Panda v1), you get a
12+
clear error instead of broken output.
13+
14+
### Patch Changes
15+
16+
- 8a936bd: Add `panda analyze` usage reports with JSON, static HTML, and live UI output, including configured usage
17+
totals for report summaries.
18+
- 82e7811: Add the `compiler.designSystem` namespace — `create`, `validate`, `load`, and `resolveChain` for a design
19+
system's `panda.lib.json` manifest. The manifest records a library's preset, build info, import paths, and parent
20+
design system so a consumer adopts it with one `designSystem` field.
21+
22+
- `create` / `validate` — produce and schema-check a manifest.
23+
- `load` — the consumer side: validate, then hydrate the library's pre-extracted styles, tree-shaken to the consumer's
24+
imports.
25+
- `resolveChain` — the composition case: order a chain of parent design systems root-first, deduping shared ancestors
26+
and reporting cycles.
27+
328
## 2.0.0-beta.5
429

530
## 2.0.0-beta.4

packages/compiler-shared/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pandacss/compiler-shared",
3-
"version": "2.0.0-beta.5",
3+
"version": "2.0.0-beta.6",
44
"description": "Shared TypeScript contract for the Panda compiler bindings (native + wasm)",
55
"type": "module",
66
"main": "./dist/index.js",

packages/compiler-wasm/CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# @pandacss/compiler-wasm
22

3+
## 2.0.0-beta.6
4+
5+
### Patch Changes
6+
7+
- 82e7811: Add the `compiler.designSystem` namespace — `create`, `validate`, `load`, and `resolveChain` for a design
8+
system's `panda.lib.json` manifest. The manifest records a library's preset, build info, import paths, and parent
9+
design system so a consumer adopts it with one `designSystem` field.
10+
11+
- `create` / `validate` — produce and schema-check a manifest.
12+
- `load` — the consumer side: validate, then hydrate the library's pre-extracted styles, tree-shaken to the consumer's
13+
imports.
14+
- `resolveChain` — the composition case: order a chain of parent design systems root-first, deduping shared ancestors
15+
and reporting cycles.
16+
17+
- d075c2b: Only extract JSX style props when `jsxFramework` is configured.
18+
19+
This prevents CSS from being generated for JSX components in projects that have not enabled JSX extraction.
20+
Function-call extraction is unchanged.
21+
22+
- Updated dependencies [8a936bd]
23+
- Updated dependencies [82e7811]
24+
- Updated dependencies [7b71a43]
25+
- @pandacss/compiler-shared@2.0.0-beta.6
26+
327
## 2.0.0-beta.5
428

529
### Patch Changes

packages/compiler-wasm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pandacss/compiler-wasm",
3-
"version": "2.0.0-beta.5",
3+
"version": "2.0.0-beta.6",
44
"description": "WebAssembly binding for the Panda compiler engine (browser/playground target)",
55
"type": "module",
66
"main": "./dist/index.js",

packages/compiler/CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,42 @@
11
# @pandacss/compiler
22

3+
## 2.0.0-beta.6
4+
5+
### Minor Changes
6+
7+
- 7b71a43: Adopt a published design system with one config field: `designSystem: '@acme/ds'`.
8+
9+
Panda reads the library's `panda.lib.json`, merges its preset under your config (your overrides win), points its
10+
components at the design system's own styled-system, and reuses its pre-extracted styles instead of re-extracting
11+
them. If your Panda is a different major than the design system needs (say a v2 design system on Panda v1), you get a
12+
clear error instead of broken output.
13+
14+
### Patch Changes
15+
16+
- 8a936bd: Add `panda analyze` usage reports with JSON, static HTML, and live UI output, including configured usage
17+
totals for report summaries.
18+
- 82e7811: Add the `compiler.designSystem` namespace — `create`, `validate`, `load`, and `resolveChain` for a design
19+
system's `panda.lib.json` manifest. The manifest records a library's preset, build info, import paths, and parent
20+
design system so a consumer adopts it with one `designSystem` field.
21+
22+
- `create` / `validate` — produce and schema-check a manifest.
23+
- `load` — the consumer side: validate, then hydrate the library's pre-extracted styles, tree-shaken to the consumer's
24+
imports.
25+
- `resolveChain` — the composition case: order a chain of parent design systems root-first, deduping shared ancestors
26+
and reporting cycles.
27+
28+
- d075c2b: Only extract JSX style props when `jsxFramework` is configured.
29+
30+
This prevents CSS from being generated for JSX components in projects that have not enabled JSX extraction.
31+
Function-call extraction is unchanged.
32+
33+
- 86504d6: Add a WASI compiler fallback so Panda can run in WebContainer-based environments like StackBlitz.
34+
- Updated dependencies [8a936bd]
35+
- Updated dependencies [82e7811]
36+
- Updated dependencies [7b71a43]
37+
- @pandacss/compiler-shared@2.0.0-beta.6
38+
- @pandacss/config@2.0.0-beta.6
39+
340
## 2.0.0-beta.5
441

542
### Patch Changes
6.59 MB
Binary file not shown.
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
import {
2+
createOnMessage as __wasmCreateOnMessageForFsProxy,
3+
getDefaultContext as __emnapiGetDefaultContext,
4+
instantiateNapiModuleSync as __emnapiInstantiateNapiModuleSync,
5+
WASI as __WASI,
6+
} from '@napi-rs/wasm-runtime'
7+
8+
9+
10+
const __wasi = new __WASI({
11+
version: 'preview1',
12+
})
13+
14+
const __wasmUrl = new URL('./compiler.wasm32-wasi.wasm', import.meta.url).href
15+
const __emnapiContext = __emnapiGetDefaultContext()
16+
17+
18+
const __sharedMemory = new WebAssembly.Memory({
19+
initial: 4000,
20+
maximum: 65536,
21+
shared: true,
22+
})
23+
24+
const __wasmFile = await fetch(__wasmUrl).then((res) => res.arrayBuffer())
25+
26+
const {
27+
instance: __napiInstance,
28+
module: __wasiModule,
29+
napiModule: __napiModule,
30+
} = __emnapiInstantiateNapiModuleSync(__wasmFile, {
31+
context: __emnapiContext,
32+
asyncWorkPoolSize: 4,
33+
wasi: __wasi,
34+
onCreateWorker() {
35+
const worker = new Worker(new URL('./wasi-worker-browser.mjs', import.meta.url), {
36+
type: 'module',
37+
})
38+
39+
40+
return worker
41+
},
42+
overwriteImports(importObject) {
43+
importObject.env = {
44+
...importObject.env,
45+
...importObject.napi,
46+
...importObject.emnapi,
47+
memory: __sharedMemory,
48+
}
49+
return importObject
50+
},
51+
beforeInit({ instance }) {
52+
for (const name of Object.keys(instance.exports)) {
53+
if (name.startsWith('__napi_register__')) {
54+
instance.exports[name]()
55+
}
56+
}
57+
},
58+
})
59+
export default __napiModule.exports
60+
export const Compiler = __napiModule.exports.Compiler
61+
export const Extractor = __napiModule.exports.Extractor
62+
export const compile = __napiModule.exports.compile
63+
export const DiagnosticSeverity = __napiModule.exports.DiagnosticSeverity
64+
export const extract = __napiModule.exports.extract
65+
export const extractCalls = __napiModule.exports.extractCalls
66+
export const extractDebug = __napiModule.exports.extractDebug
67+
export const ExtractedArgKind = __napiModule.exports.ExtractedArgKind
68+
export const extractJsx = __napiModule.exports.extractJsx
69+
export const flushTracing = __napiModule.exports.flushTracing
70+
export const ImportKind = __napiModule.exports.ImportKind
71+
export const ImportSpecifierKind = __napiModule.exports.ImportSpecifierKind
72+
export const JsxKind = __napiModule.exports.JsxKind
73+
export const MatchCategory = __napiModule.exports.MatchCategory
74+
export const matchImports = __napiModule.exports.matchImports
75+
export const scanImports = __napiModule.exports.scanImports
76+
export const shutdownTracing = __napiModule.exports.shutdownTracing
77+
export const startTracing = __napiModule.exports.startTracing

0 commit comments

Comments
 (0)