@pandacss/parser 0.0.0-dev-20230415104220 → 0.0.0-dev-20230415122135
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 +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -119,7 +119,7 @@ var combineResult = (unboxed) => {
|
|
|
119
119
|
return [...unboxed.conditions, unboxed.raw, ...unboxed.spreadConditions];
|
|
120
120
|
};
|
|
121
121
|
function createParser(options) {
|
|
122
|
-
return function parse(sourceFile,
|
|
122
|
+
return function parse(sourceFile, styleProperties) {
|
|
123
123
|
if (!sourceFile)
|
|
124
124
|
return;
|
|
125
125
|
const filePath = sourceFile.getFilePath();
|
|
@@ -162,7 +162,7 @@ function createParser(options) {
|
|
|
162
162
|
});
|
|
163
163
|
const functions = /* @__PURE__ */ new Map();
|
|
164
164
|
const components = /* @__PURE__ */ new Map();
|
|
165
|
-
const propertiesMap = new Map(
|
|
165
|
+
const propertiesMap = new Map(styleProperties.map((prop) => [prop, true]));
|
|
166
166
|
const recipePropertiesByName = /* @__PURE__ */ new Map();
|
|
167
167
|
const recipeJsxLists = (jsx?.nodes ?? []).filter(isNodeRecipe).reduce(
|
|
168
168
|
(acc, recipe) => {
|
package/dist/index.mjs
CHANGED
|
@@ -93,7 +93,7 @@ var combineResult = (unboxed) => {
|
|
|
93
93
|
return [...unboxed.conditions, unboxed.raw, ...unboxed.spreadConditions];
|
|
94
94
|
};
|
|
95
95
|
function createParser(options) {
|
|
96
|
-
return function parse(sourceFile,
|
|
96
|
+
return function parse(sourceFile, styleProperties) {
|
|
97
97
|
if (!sourceFile)
|
|
98
98
|
return;
|
|
99
99
|
const filePath = sourceFile.getFilePath();
|
|
@@ -136,7 +136,7 @@ function createParser(options) {
|
|
|
136
136
|
});
|
|
137
137
|
const functions = /* @__PURE__ */ new Map();
|
|
138
138
|
const components = /* @__PURE__ */ new Map();
|
|
139
|
-
const propertiesMap = new Map(
|
|
139
|
+
const propertiesMap = new Map(styleProperties.map((prop) => [prop, true]));
|
|
140
140
|
const recipePropertiesByName = /* @__PURE__ */ new Map();
|
|
141
141
|
const recipeJsxLists = (jsx?.nodes ?? []).filter(isNodeRecipe).reduce(
|
|
142
142
|
(acc, recipe) => {
|
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-20230415122135",
|
|
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.2.2",
|
|
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-20230415122135",
|
|
18
|
+
"@pandacss/is-valid-prop": "0.0.0-dev-20230415122135",
|
|
19
|
+
"@pandacss/logger": "0.0.0-dev-20230415122135",
|
|
20
|
+
"@pandacss/shared": "0.0.0-dev-20230415122135",
|
|
21
|
+
"@pandacss/types": "0.0.0-dev-20230415122135"
|
|
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-20230415122135",
|
|
25
|
+
"@pandacss/generator": "0.0.0-dev-20230415122135"
|
|
26
26
|
},
|
|
27
27
|
"files": [
|
|
28
28
|
"dist"
|