@pandacss/parser 0.24.1 → 0.25.0

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.js CHANGED
@@ -125,7 +125,7 @@ var ParserResult = class {
125
125
  this[name].add(this.append(Object.assign({ type: "object" }, result)));
126
126
  const encoder = this.encoder;
127
127
  if (name == "css") {
128
- result.data.forEach((obj) => encoder.processStyleProps(obj));
128
+ result.data.forEach((obj) => encoder.processAtomic(obj));
129
129
  return;
130
130
  }
131
131
  if (name === "cva") {
@@ -723,7 +723,7 @@ var Project = class {
723
723
  parseJson = (filePath) => {
724
724
  const { readFile, parserOptions } = this.options;
725
725
  const content = readFile(filePath);
726
- parserOptions.encoder.fromJSON(content);
726
+ parserOptions.encoder.fromJSON(JSON.parse(content));
727
727
  const result = new ParserResult(parserOptions);
728
728
  return result.setFilePath(filePath);
729
729
  };
package/dist/index.mjs CHANGED
@@ -91,7 +91,7 @@ var ParserResult = class {
91
91
  this[name].add(this.append(Object.assign({ type: "object" }, result)));
92
92
  const encoder = this.encoder;
93
93
  if (name == "css") {
94
- result.data.forEach((obj) => encoder.processStyleProps(obj));
94
+ result.data.forEach((obj) => encoder.processAtomic(obj));
95
95
  return;
96
96
  }
97
97
  if (name === "cva") {
@@ -689,7 +689,7 @@ var Project = class {
689
689
  parseJson = (filePath) => {
690
690
  const { readFile, parserOptions } = this.options;
691
691
  const content = readFile(filePath);
692
- parserOptions.encoder.fromJSON(content);
692
+ parserOptions.encoder.fromJSON(JSON.parse(content));
693
693
  const result = new ParserResult(parserOptions);
694
694
  return result.setFilePath(filePath);
695
695
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/parser",
3
- "version": "0.24.1",
3
+ "version": "0.25.0",
4
4
  "description": "The static parser for panda css",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -32,16 +32,16 @@
32
32
  "magic-string": "0.30.2",
33
33
  "ts-morph": "19.0.0",
34
34
  "ts-pattern": "5.0.5",
35
- "@pandacss/config": "^0.24.1",
36
- "@pandacss/extractor": "0.24.1",
37
- "@pandacss/logger": "0.24.1",
38
- "@pandacss/shared": "0.24.1",
39
- "@pandacss/types": "0.24.1"
35
+ "@pandacss/config": "^0.25.0",
36
+ "@pandacss/extractor": "0.25.0",
37
+ "@pandacss/logger": "0.25.0",
38
+ "@pandacss/shared": "0.25.0",
39
+ "@pandacss/types": "0.25.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@vue/compiler-core": "3.3.4",
43
43
  "hookable": "5.5.3",
44
- "@pandacss/generator": "0.24.1"
44
+ "@pandacss/generator": "0.25.0"
45
45
  },
46
46
  "files": [
47
47
  "dist"