@pandacss/node 0.24.0 → 0.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -4
- package/dist/index.mjs +6 -4
- package/package.json +11 -11
package/dist/index.d.mts
CHANGED
|
@@ -229,6 +229,7 @@ declare class Builder {
|
|
|
229
229
|
extractFile: (ctx: PandaContext, file: string) => _pandacss_parser.ParserResult | undefined;
|
|
230
230
|
extract: () => void;
|
|
231
231
|
isValidRoot: (root: Root) => boolean;
|
|
232
|
+
private initialRoot;
|
|
232
233
|
write: (root: Root) => void;
|
|
233
234
|
registerDependency: (fn: (dep: Message) => void) => void;
|
|
234
235
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -229,6 +229,7 @@ declare class Builder {
|
|
|
229
229
|
extractFile: (ctx: PandaContext, file: string) => _pandacss_parser.ParserResult | undefined;
|
|
230
230
|
extract: () => void;
|
|
231
231
|
isValidRoot: (root: Root) => boolean;
|
|
232
|
+
private initialRoot;
|
|
232
233
|
write: (root: Root) => void;
|
|
233
234
|
registerDependency: (fn: (dep: Message) => void) => void;
|
|
234
235
|
}
|
package/dist/index.js
CHANGED
|
@@ -775,7 +775,7 @@ init_cjs_shims();
|
|
|
775
775
|
var import_logger2 = require("@pandacss/logger");
|
|
776
776
|
|
|
777
777
|
// package.json
|
|
778
|
-
var version = "0.24.
|
|
778
|
+
var version = "0.24.1";
|
|
779
779
|
|
|
780
780
|
// src/build-info.ts
|
|
781
781
|
async function buildInfo(ctx, outfile) {
|
|
@@ -2703,18 +2703,20 @@ var Builder = class {
|
|
|
2703
2703
|
});
|
|
2704
2704
|
return valid;
|
|
2705
2705
|
};
|
|
2706
|
+
initialRoot;
|
|
2706
2707
|
write = (root) => {
|
|
2707
|
-
|
|
2708
|
+
if (!this.initialRoot) {
|
|
2709
|
+
this.initialRoot = root.toString();
|
|
2710
|
+
}
|
|
2708
2711
|
root.removeAll();
|
|
2709
2712
|
const ctx = this.getContextOrThrow();
|
|
2710
2713
|
const sheet = ctx.createSheet();
|
|
2711
|
-
ctx.appendLayerParams(sheet);
|
|
2712
2714
|
ctx.appendBaselineCss(sheet);
|
|
2713
2715
|
ctx.appendParserCss(sheet);
|
|
2714
2716
|
const css = ctx.getCss(sheet);
|
|
2715
2717
|
root.append(
|
|
2716
2718
|
(0, import_core.optimizeCss)(`
|
|
2717
|
-
${
|
|
2719
|
+
${this.initialRoot}
|
|
2718
2720
|
${css}
|
|
2719
2721
|
`)
|
|
2720
2722
|
);
|
package/dist/index.mjs
CHANGED
|
@@ -751,7 +751,7 @@ init_esm_shims();
|
|
|
751
751
|
import { colors, logger as logger2 } from "@pandacss/logger";
|
|
752
752
|
|
|
753
753
|
// package.json
|
|
754
|
-
var version = "0.24.
|
|
754
|
+
var version = "0.24.1";
|
|
755
755
|
|
|
756
756
|
// src/build-info.ts
|
|
757
757
|
async function buildInfo(ctx, outfile) {
|
|
@@ -2679,18 +2679,20 @@ var Builder = class {
|
|
|
2679
2679
|
});
|
|
2680
2680
|
return valid;
|
|
2681
2681
|
};
|
|
2682
|
+
initialRoot;
|
|
2682
2683
|
write = (root) => {
|
|
2683
|
-
|
|
2684
|
+
if (!this.initialRoot) {
|
|
2685
|
+
this.initialRoot = root.toString();
|
|
2686
|
+
}
|
|
2684
2687
|
root.removeAll();
|
|
2685
2688
|
const ctx = this.getContextOrThrow();
|
|
2686
2689
|
const sheet = ctx.createSheet();
|
|
2687
|
-
ctx.appendLayerParams(sheet);
|
|
2688
2690
|
ctx.appendBaselineCss(sheet);
|
|
2689
2691
|
ctx.appendParserCss(sheet);
|
|
2690
2692
|
const css = ctx.getCss(sheet);
|
|
2691
2693
|
root.append(
|
|
2692
2694
|
optimizeCss(`
|
|
2693
|
-
${
|
|
2695
|
+
${this.initialRoot}
|
|
2694
2696
|
${css}
|
|
2695
2697
|
`)
|
|
2696
2698
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/node",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.1",
|
|
4
4
|
"description": "The core css panda library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -53,16 +53,16 @@
|
|
|
53
53
|
"ts-morph": "19.0.0",
|
|
54
54
|
"ts-pattern": "5.0.5",
|
|
55
55
|
"tsconfck": "^2.1.2",
|
|
56
|
-
"@pandacss/config": "0.24.
|
|
57
|
-
"@pandacss/
|
|
58
|
-
"@pandacss/
|
|
59
|
-
"@pandacss/extractor": "0.24.
|
|
60
|
-
"@pandacss/generator": "0.24.
|
|
61
|
-
"@pandacss/logger": "0.24.
|
|
62
|
-
"@pandacss/parser": "0.24.
|
|
63
|
-
"@pandacss/shared": "0.24.
|
|
64
|
-
"@pandacss/
|
|
65
|
-
"@pandacss/
|
|
56
|
+
"@pandacss/config": "0.24.1",
|
|
57
|
+
"@pandacss/error": "0.24.1",
|
|
58
|
+
"@pandacss/core": "0.24.1",
|
|
59
|
+
"@pandacss/extractor": "0.24.1",
|
|
60
|
+
"@pandacss/generator": "0.24.1",
|
|
61
|
+
"@pandacss/logger": "0.24.1",
|
|
62
|
+
"@pandacss/parser": "0.24.1",
|
|
63
|
+
"@pandacss/shared": "0.24.1",
|
|
64
|
+
"@pandacss/types": "0.24.1",
|
|
65
|
+
"@pandacss/token-dictionary": "0.24.1"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@types/fs-extra": "11.0.4",
|