@pandacss/studio 0.0.0-dev-20231020173315 → 0.0.0-dev-20231020185519

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-20231020173315",
3
+ "version": "0.0.0-dev-20231020185519",
4
4
  "description": "The automated token documentation for Panda CSS",
5
5
  "main": "dist/studio.js",
6
6
  "module": "dist/studio.mjs",
@@ -33,12 +33,12 @@
33
33
  "react": "18.2.0",
34
34
  "react-dom": "18.2.0",
35
35
  "vite": "4.4.11",
36
- "@pandacss/config": "0.0.0-dev-20231020173315",
37
- "@pandacss/logger": "0.0.0-dev-20231020173315",
38
- "@pandacss/node": "0.0.0-dev-20231020173315",
39
- "@pandacss/shared": "0.0.0-dev-20231020173315",
40
- "@pandacss/token-dictionary": "0.0.0-dev-20231020173315",
41
- "@pandacss/types": "0.0.0-dev-20231020173315"
36
+ "@pandacss/config": "0.0.0-dev-20231020185519",
37
+ "@pandacss/logger": "0.0.0-dev-20231020185519",
38
+ "@pandacss/node": "0.0.0-dev-20231020185519",
39
+ "@pandacss/shared": "0.0.0-dev-20231020185519",
40
+ "@pandacss/token-dictionary": "0.0.0-dev-20231020185519",
41
+ "@pandacss/types": "0.0.0-dev-20231020185519"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/react": "18.2.22",
@@ -49,18 +49,19 @@ function toHash(value) {
49
49
 
50
50
  // src/merge-props.ts
51
51
  function mergeProps(...sources) {
52
- const __sources = sources.filter(Boolean);
53
- const result = {};
54
- for (const source of __sources) {
55
- for (const [key, value] of Object.entries(source)) {
56
- if (isObject(value)) {
57
- result[key] = mergeProps(result[key] || {}, value);
52
+ const objects = sources.filter(Boolean);
53
+ return objects.reduce((prev, obj) => {
54
+ Object.keys(obj).forEach((key) => {
55
+ const prevValue = prev[key];
56
+ const value = obj[key];
57
+ if (isObject(prevValue) && isObject(value)) {
58
+ prev[key] = mergeProps(prevValue, value);
58
59
  } else {
59
- result[key] = value;
60
+ prev[key] = value;
60
61
  }
61
- }
62
- }
63
- return result;
62
+ });
63
+ return prev;
64
+ }, {});
64
65
  }
65
66
 
66
67
  // src/walk-object.ts