@pandacss/parser 0.31.0 → 0.32.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.js CHANGED
@@ -252,7 +252,7 @@ function createParser(context) {
252
252
  matchFn: (prop) => file.matchFn(prop.fnName),
253
253
  matchProp: () => true,
254
254
  matchArg: (prop) => {
255
- if (prop.fnName === file.jsxFactoryAlias && prop.index === 1 && import_ts_morph.Node.isIdentifier(prop.argNode))
255
+ if (file.isJsxFactory(prop.fnName) && prop.index === 1 && import_ts_morph.Node.isIdentifier(prop.argNode))
256
256
  return false;
257
257
  return true;
258
258
  }
@@ -485,7 +485,7 @@ var vueToTsx = (code) => {
485
485
  fileStr.replace(prop.loc.source, `${prop.arg.content}={${prop.exp.content}}`);
486
486
  }
487
487
  };
488
- const stack = [...parsed.descriptor.template.ast.children];
488
+ const stack = Array.from(parsed.descriptor.template?.ast?.children ?? []);
489
489
  while (stack.length) {
490
490
  const node = stack.pop();
491
491
  if (!node)
package/dist/index.mjs CHANGED
@@ -218,7 +218,7 @@ function createParser(context) {
218
218
  matchFn: (prop) => file.matchFn(prop.fnName),
219
219
  matchProp: () => true,
220
220
  matchArg: (prop) => {
221
- if (prop.fnName === file.jsxFactoryAlias && prop.index === 1 && Node.isIdentifier(prop.argNode))
221
+ if (file.isJsxFactory(prop.fnName) && prop.index === 1 && Node.isIdentifier(prop.argNode))
222
222
  return false;
223
223
  return true;
224
224
  }
@@ -451,7 +451,7 @@ var vueToTsx = (code) => {
451
451
  fileStr.replace(prop.loc.source, `${prop.arg.content}={${prop.exp.content}}`);
452
452
  }
453
453
  };
454
- const stack = [...parsed.descriptor.template.ast.children];
454
+ const stack = Array.from(parsed.descriptor.template?.ast?.children ?? []);
455
455
  while (stack.length) {
456
456
  const node = stack.pop();
457
457
  if (!node)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/parser",
3
- "version": "0.31.0",
3
+ "version": "0.32.1",
4
4
  "description": "The static parser for panda css",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -28,20 +28,20 @@
28
28
  "access": "public"
29
29
  },
30
30
  "dependencies": {
31
- "@vue/compiler-sfc": "3.3.4",
31
+ "@vue/compiler-sfc": "3.4.19",
32
32
  "magic-string": "0.30.7",
33
- "ts-morph": "19.0.0",
34
- "ts-pattern": "5.0.5",
35
- "@pandacss/config": "^0.31.0",
36
- "@pandacss/core": "^0.31.0",
37
- "@pandacss/extractor": "0.31.0",
38
- "@pandacss/logger": "0.31.0",
39
- "@pandacss/shared": "0.31.0",
40
- "@pandacss/types": "0.31.0"
33
+ "ts-morph": "21.0.1",
34
+ "ts-pattern": "5.0.8",
35
+ "@pandacss/config": "^0.32.1",
36
+ "@pandacss/core": "^0.32.1",
37
+ "@pandacss/extractor": "0.32.1",
38
+ "@pandacss/logger": "0.32.1",
39
+ "@pandacss/shared": "0.32.1",
40
+ "@pandacss/types": "0.32.1"
41
41
  },
42
42
  "devDependencies": {
43
- "@vue/compiler-core": "3.3.4",
44
- "@pandacss/generator": "0.31.0"
43
+ "@vue/compiler-core": "3.4.19",
44
+ "@pandacss/generator": "0.32.1"
45
45
  },
46
46
  "files": [
47
47
  "dist"