@pandacss/parser 0.0.0-dev-20230511140820 → 0.0.0-dev-20230511141116
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 +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -165,7 +165,9 @@ function createParser(options) {
|
|
|
165
165
|
const isValidRecipe = imports.createMatch(importMap.recipe);
|
|
166
166
|
const isValidStyleFn = (name) => name === jsx?.factory;
|
|
167
167
|
const jsxFactoryAlias = jsx ? imports.getAlias(jsx.factory) : "panda";
|
|
168
|
-
const jsxPatternNodes = new RegExp(
|
|
168
|
+
const jsxPatternNodes = new RegExp(
|
|
169
|
+
`^(${jsx?.nodes.map((node) => node.type === "pattern" && node.name).join("|")})$`
|
|
170
|
+
);
|
|
169
171
|
const recipes = /* @__PURE__ */ new Set();
|
|
170
172
|
const patterns = /* @__PURE__ */ new Set();
|
|
171
173
|
imports.value.forEach((importDeclaration) => {
|
package/dist/index.mjs
CHANGED
|
@@ -139,7 +139,9 @@ function createParser(options) {
|
|
|
139
139
|
const isValidRecipe = imports.createMatch(importMap.recipe);
|
|
140
140
|
const isValidStyleFn = (name) => name === jsx?.factory;
|
|
141
141
|
const jsxFactoryAlias = jsx ? imports.getAlias(jsx.factory) : "panda";
|
|
142
|
-
const jsxPatternNodes = new RegExp(
|
|
142
|
+
const jsxPatternNodes = new RegExp(
|
|
143
|
+
`^(${jsx?.nodes.map((node) => node.type === "pattern" && node.name).join("|")})$`
|
|
144
|
+
);
|
|
143
145
|
const recipes = /* @__PURE__ */ new Set();
|
|
144
146
|
const patterns = /* @__PURE__ */ new Set();
|
|
145
147
|
imports.value.forEach((importDeclaration) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/parser",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20230511141116",
|
|
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-
|
|
18
|
-
"@pandacss/is-valid-prop": "0.0.0-dev-
|
|
19
|
-
"@pandacss/logger": "0.0.0-dev-
|
|
20
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
21
|
-
"@pandacss/types": "0.0.0-dev-
|
|
17
|
+
"@pandacss/extractor": "0.0.0-dev-20230511141116",
|
|
18
|
+
"@pandacss/is-valid-prop": "0.0.0-dev-20230511141116",
|
|
19
|
+
"@pandacss/logger": "0.0.0-dev-20230511141116",
|
|
20
|
+
"@pandacss/shared": "0.0.0-dev-20230511141116",
|
|
21
|
+
"@pandacss/types": "0.0.0-dev-20230511141116"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@pandacss/fixture": "0.0.0-dev-
|
|
25
|
-
"@pandacss/generator": "0.0.0-dev-
|
|
24
|
+
"@pandacss/fixture": "0.0.0-dev-20230511141116",
|
|
25
|
+
"@pandacss/generator": "0.0.0-dev-20230511141116"
|
|
26
26
|
},
|
|
27
27
|
"files": [
|
|
28
28
|
"dist"
|