@pandacss/parser 0.50.0 → 0.51.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.d.mts CHANGED
@@ -43,7 +43,7 @@ declare class ParserResult implements ParserResultInterface {
43
43
  };
44
44
  }
45
45
 
46
- declare function createParser(context: ParserOptions): (sourceFile: SourceFile | undefined, encoder?: Generator['encoder'], options?: ParserResultConfigureOptions & Partial<JsxFactoryResultTransform>) => ParserResult | undefined;
46
+ declare function createParser(context: ParserOptions): (sourceFile: SourceFile | undefined, encoder?: Generator["encoder"], options?: ParserResultConfigureOptions & Partial<JsxFactoryResultTransform>) => ParserResult | undefined;
47
47
 
48
48
  interface ProjectOptions extends ProjectOptions$1 {
49
49
  readFile: Runtime['fs']['readFileSync'];
@@ -69,7 +69,7 @@ declare class Project {
69
69
  get readFile(): (filePath: string) => string;
70
70
  get getFiles(): () => string[];
71
71
  parseJson: (filePath: string) => ParserResult;
72
- parseSourceFile: (filePath: string, encoder?: ParserOptions['encoder']) => ParserResult | undefined;
72
+ parseSourceFile: (filePath: string, encoder?: ParserOptions["encoder"]) => ParserResult | undefined;
73
73
  transformFile: (filePath: string, content: string) => string;
74
74
  classify: (fileMap: Map<string, ParserResultInterface>) => _pandacss_types.ClassifyReport;
75
75
  }
package/dist/index.d.ts CHANGED
@@ -43,7 +43,7 @@ declare class ParserResult implements ParserResultInterface {
43
43
  };
44
44
  }
45
45
 
46
- declare function createParser(context: ParserOptions): (sourceFile: SourceFile | undefined, encoder?: Generator['encoder'], options?: ParserResultConfigureOptions & Partial<JsxFactoryResultTransform>) => ParserResult | undefined;
46
+ declare function createParser(context: ParserOptions): (sourceFile: SourceFile | undefined, encoder?: Generator["encoder"], options?: ParserResultConfigureOptions & Partial<JsxFactoryResultTransform>) => ParserResult | undefined;
47
47
 
48
48
  interface ProjectOptions extends ProjectOptions$1 {
49
49
  readFile: Runtime['fs']['readFileSync'];
@@ -69,7 +69,7 @@ declare class Project {
69
69
  get readFile(): (filePath: string) => string;
70
70
  get getFiles(): () => string[];
71
71
  parseJson: (filePath: string) => ParserResult;
72
- parseSourceFile: (filePath: string, encoder?: ParserOptions['encoder']) => ParserResult | undefined;
72
+ parseSourceFile: (filePath: string, encoder?: ParserOptions["encoder"]) => ParserResult | undefined;
73
73
  transformFile: (filePath: string, content: string) => string;
74
74
  classify: (fileMap: Map<string, ParserResultInterface>) => _pandacss_types.ClassifyReport;
75
75
  }
package/dist/index.js CHANGED
@@ -916,7 +916,7 @@ var NodeTypes = {
916
916
  var vueToTsx = (code) => {
917
917
  try {
918
918
  const parsed = (0, import_compiler_sfc.parse)(code);
919
- const fileStr = new import_magic_string2.default(`<template>${parsed.descriptor.template?.content}</template>` ?? "");
919
+ const fileStr = new import_magic_string2.default(`<template>${parsed.descriptor.template?.content}</template>`);
920
920
  const rewriteProp = (prop) => {
921
921
  if (prop.type === NodeTypes.DIRECTIVE && prop.exp?.type === NodeTypes.SIMPLE_EXPRESSION && prop.arg?.type === NodeTypes.SIMPLE_EXPRESSION) {
922
922
  fileStr.replace(prop.loc.source, `${prop.arg.content}={${prop.exp.content}}`);
package/dist/index.mjs CHANGED
@@ -882,7 +882,7 @@ var NodeTypes = {
882
882
  var vueToTsx = (code) => {
883
883
  try {
884
884
  const parsed = parse(code);
885
- const fileStr = new MagicString2(`<template>${parsed.descriptor.template?.content}</template>` ?? "");
885
+ const fileStr = new MagicString2(`<template>${parsed.descriptor.template?.content}</template>`);
886
886
  const rewriteProp = (prop) => {
887
887
  if (prop.type === NodeTypes.DIRECTIVE && prop.exp?.type === NodeTypes.SIMPLE_EXPRESSION && prop.arg?.type === NodeTypes.SIMPLE_EXPRESSION) {
888
888
  fileStr.replace(prop.loc.source, `${prop.arg.content}={${prop.exp.content}}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/parser",
3
- "version": "0.50.0",
3
+ "version": "0.51.0",
4
4
  "description": "The static parser for panda css",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -30,18 +30,18 @@
30
30
  "dependencies": {
31
31
  "@vue/compiler-sfc": "3.4.19",
32
32
  "magic-string": "0.30.17",
33
- "ts-morph": "21.0.1",
33
+ "ts-morph": "24.0.0",
34
34
  "ts-pattern": "5.0.8",
35
- "@pandacss/config": "^0.50.0",
36
- "@pandacss/core": "^0.50.0",
37
- "@pandacss/extractor": "0.50.0",
38
- "@pandacss/logger": "0.50.0",
39
- "@pandacss/shared": "0.50.0",
40
- "@pandacss/types": "0.50.0"
35
+ "@pandacss/config": "^0.51.0",
36
+ "@pandacss/core": "^0.51.0",
37
+ "@pandacss/extractor": "0.51.0",
38
+ "@pandacss/logger": "0.51.0",
39
+ "@pandacss/shared": "0.51.0",
40
+ "@pandacss/types": "0.51.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@vue/compiler-core": "3.4.19",
44
- "@pandacss/generator": "0.50.0"
44
+ "@pandacss/generator": "0.51.0"
45
45
  },
46
46
  "files": [
47
47
  "dist"