@measured/puck 0.18.0-canary.066aba9 → 0.18.0-canary.1f76f81
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/README.md +3 -3
- package/dist/{chunk-EXKSBUY5.mjs → chunk-CHWFBYEM.mjs} +2 -4
- package/dist/index.css +70 -81
- package/dist/index.d.mts +3 -7
- package/dist/index.d.ts +3 -7
- package/dist/index.js +1248 -894
- package/dist/index.mjs +1179 -822
- package/dist/rsc.js +2 -4
- package/dist/rsc.mjs +1 -1
- package/package.json +3 -2
package/dist/rsc.js
CHANGED
@@ -193,13 +193,11 @@ var resolveComponentData = (item, config, onResolveStart, onResolveEnd) => __asy
|
|
193
193
|
onResolveStart(item);
|
194
194
|
}
|
195
195
|
const { props: resolvedProps, readOnly = {} } = yield configForItem.resolveData(item, { changed, lastData: oldItem });
|
196
|
-
const { readOnly: existingReadOnly = {} } = item || {};
|
197
|
-
const newReadOnly = __spreadValues(__spreadValues({}, existingReadOnly), readOnly);
|
198
196
|
const resolvedItem = __spreadProps(__spreadValues({}, item), {
|
199
197
|
props: __spreadValues(__spreadValues({}, item.props), resolvedProps)
|
200
198
|
});
|
201
|
-
if (Object.keys(
|
202
|
-
resolvedItem.readOnly =
|
199
|
+
if (Object.keys(readOnly).length) {
|
200
|
+
resolvedItem.readOnly = readOnly;
|
203
201
|
}
|
204
202
|
cache.lastChange[item.props.id] = {
|
205
203
|
item,
|
package/dist/rsc.mjs
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@measured/puck",
|
3
|
-
"version": "0.18.0-canary.
|
3
|
+
"version": "0.18.0-canary.1f76f81",
|
4
4
|
"author": "Measured Corporation Ltd <hello@measured.co>",
|
5
5
|
"repository": "measuredco/puck",
|
6
6
|
"bugs": "https://github.com/measuredco/puck/issues",
|
@@ -74,7 +74,8 @@
|
|
74
74
|
"object-hash": "^3.0.0",
|
75
75
|
"react-hotkeys-hook": "^4.6.1",
|
76
76
|
"use-debounce": "^9.0.4",
|
77
|
-
"uuid": "^9.0.1"
|
77
|
+
"uuid": "^9.0.1",
|
78
|
+
"zustand": "^5.0.2"
|
78
79
|
},
|
79
80
|
"peerDependencies": {
|
80
81
|
"react": "^17.0.0 || ^18.0.0 || ^19.0.0"
|