@pandacss/studio 0.0.0-dev-20230701113453 → 0.0.0-dev-20230702075205
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/studio",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20230702075205",
|
|
4
4
|
"description": "The automated token documentation for Panda CSS",
|
|
5
5
|
"main": "dist/studio.js",
|
|
6
6
|
"module": "dist/studio.mjs",
|
|
@@ -32,19 +32,19 @@
|
|
|
32
32
|
"react": "18.2.0",
|
|
33
33
|
"react-dom": "18.2.0",
|
|
34
34
|
"vite": "4.3.9",
|
|
35
|
-
"@pandacss/types": "0.0.0-dev-
|
|
36
|
-
"@pandacss/config": "0.0.0-dev-
|
|
37
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
38
|
-
"@pandacss/token-dictionary": "0.0.0-dev-
|
|
39
|
-
"@pandacss/logger": "0.0.0-dev-
|
|
40
|
-
"@pandacss/node": "0.0.0-dev-
|
|
35
|
+
"@pandacss/types": "0.0.0-dev-20230702075205",
|
|
36
|
+
"@pandacss/config": "0.0.0-dev-20230702075205",
|
|
37
|
+
"@pandacss/shared": "0.0.0-dev-20230702075205",
|
|
38
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20230702075205",
|
|
39
|
+
"@pandacss/logger": "0.0.0-dev-20230702075205",
|
|
40
|
+
"@pandacss/node": "0.0.0-dev-20230702075205"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/react": "18.2.14",
|
|
44
44
|
"@types/react-dom": "18.2.6",
|
|
45
45
|
"@vitejs/plugin-react": "4.0.1",
|
|
46
46
|
"execa": "7.1.1",
|
|
47
|
-
"@pandacss/dev": "0.0.0-dev-
|
|
47
|
+
"@pandacss/dev": "0.0.0-dev-20230702075205"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"codegen": "panda",
|
|
@@ -7,7 +7,7 @@ function isObject(value) {
|
|
|
7
7
|
var newRule = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g
|
|
8
8
|
var ruleClean = /\/\*[^]*?\*\/|\s\s+|\n/g
|
|
9
9
|
var astish = (val, tree = [{}]) => {
|
|
10
|
-
const block = newRule.exec(val.replace(ruleClean, ''))
|
|
10
|
+
const block = newRule.exec((val ?? '').replace(ruleClean, ''))
|
|
11
11
|
if (!block) return tree[0]
|
|
12
12
|
if (block[4]) tree.shift()
|
|
13
13
|
else if (block[3]) tree.unshift((tree[0][block[3]] = tree[0][block[3]] || {}))
|
|
@@ -73,6 +73,7 @@ function mergeProps(...sources) {
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
// src/walk-object.ts
|
|
76
|
+
var isNotNullish = (element) => element != null
|
|
76
77
|
function walkObject(target, predicate, options = {}) {
|
|
77
78
|
const { stop, getKey } = options
|
|
78
79
|
function inner(value, path = []) {
|
|
@@ -84,7 +85,10 @@ function walkObject(target, predicate, options = {}) {
|
|
|
84
85
|
if (stop?.(value, childPath)) {
|
|
85
86
|
return predicate(value, path)
|
|
86
87
|
}
|
|
87
|
-
|
|
88
|
+
const next = inner(child, childPath)
|
|
89
|
+
if (isNotNullish(next)) {
|
|
90
|
+
result[key] = next
|
|
91
|
+
}
|
|
88
92
|
}
|
|
89
93
|
return result
|
|
90
94
|
}
|