@pandacss/parser 0.0.0-dev-20230602151911 → 0.0.0-dev-20230602153951

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.ts CHANGED
@@ -27,7 +27,7 @@ declare class ParserResult {
27
27
  jsx: ResultItem[];
28
28
  };
29
29
  merge(result: ParserResult): this;
30
- static fromJson(json: string): ParserResult;
30
+ static fromJSON(json: string): ParserResult;
31
31
  }
32
32
  declare const createParserResult: () => ParserResult;
33
33
 
package/dist/index.js CHANGED
@@ -138,7 +138,7 @@ var ParserResult = class {
138
138
  result.jsx.forEach((item) => this.jsx.add(item));
139
139
  return this;
140
140
  }
141
- static fromJson(json) {
141
+ static fromJSON(json) {
142
142
  const data = JSON.parse(json);
143
143
  const result = new ParserResult();
144
144
  result.css = new Set(data.css);
@@ -393,7 +393,7 @@ var createProject = ({ getFiles, readFile, parserOptions, ...projectOptions }) =
393
393
  scriptKind: import_ts_morph2.ScriptKind.TSX
394
394
  }),
395
395
  parseSourceFile: (filePath) => {
396
- return filePath.endsWith(".json") ? ParserResult.fromJson(readFile(filePath)) : parser(project.getSourceFile(filePath));
396
+ return filePath.endsWith(".json") ? ParserResult.fromJSON(readFile(filePath)) : parser(project.getSourceFile(filePath));
397
397
  }
398
398
  })),
399
399
  (0, import_lil_fp.tap)(({ createSourceFile }) => {
package/dist/index.mjs CHANGED
@@ -110,7 +110,7 @@ var ParserResult = class {
110
110
  result.jsx.forEach((item) => this.jsx.add(item));
111
111
  return this;
112
112
  }
113
- static fromJson(json) {
113
+ static fromJSON(json) {
114
114
  const data = JSON.parse(json);
115
115
  const result = new ParserResult();
116
116
  result.css = new Set(data.css);
@@ -365,7 +365,7 @@ var createProject = ({ getFiles, readFile, parserOptions, ...projectOptions }) =
365
365
  scriptKind: ScriptKind.TSX
366
366
  }),
367
367
  parseSourceFile: (filePath) => {
368
- return filePath.endsWith(".json") ? ParserResult.fromJson(readFile(filePath)) : parser(project.getSourceFile(filePath));
368
+ return filePath.endsWith(".json") ? ParserResult.fromJSON(readFile(filePath)) : parser(project.getSourceFile(filePath));
369
369
  }
370
370
  })),
371
371
  tap(({ createSourceFile }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/parser",
3
- "version": "0.0.0-dev-20230602151911",
3
+ "version": "0.0.0-dev-20230602153951",
4
4
  "description": "The static parser for panda css",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -14,15 +14,15 @@
14
14
  "lil-fp": "1.4.5",
15
15
  "ts-morph": "18.0.0",
16
16
  "ts-pattern": "4.3.0",
17
- "@pandacss/extractor": "0.0.0-dev-20230602151911",
18
- "@pandacss/is-valid-prop": "0.0.0-dev-20230602151911",
19
- "@pandacss/shared": "0.0.0-dev-20230602151911",
20
- "@pandacss/logger": "0.0.0-dev-20230602151911",
21
- "@pandacss/types": "0.0.0-dev-20230602151911"
17
+ "@pandacss/extractor": "0.0.0-dev-20230602153951",
18
+ "@pandacss/is-valid-prop": "0.0.0-dev-20230602153951",
19
+ "@pandacss/logger": "0.0.0-dev-20230602153951",
20
+ "@pandacss/shared": "0.0.0-dev-20230602153951",
21
+ "@pandacss/types": "0.0.0-dev-20230602153951"
22
22
  },
23
23
  "devDependencies": {
24
- "@pandacss/generator": "0.0.0-dev-20230602151911",
25
- "@pandacss/fixture": "0.0.0-dev-20230602151911"
24
+ "@pandacss/fixture": "0.0.0-dev-20230602153951",
25
+ "@pandacss/generator": "0.0.0-dev-20230602153951"
26
26
  },
27
27
  "files": [
28
28
  "dist"