@measured/puck 0.18.0-canary.874ba1b → 0.18.0-canary.99e9ecb
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{chunk-EXKSBUY5.mjs → chunk-CHWFBYEM.mjs} +2 -4
- package/dist/index.js +734 -606
- package/dist/index.mjs +548 -417
- package/dist/rsc.js +2 -4
- package/dist/rsc.mjs +1 -1
- package/package.json +1 -1
@@ -135,13 +135,11 @@ var resolveComponentData = (item, config, onResolveStart, onResolveEnd) => __asy
|
|
135
135
|
onResolveStart(item);
|
136
136
|
}
|
137
137
|
const { props: resolvedProps, readOnly = {} } = yield configForItem.resolveData(item, { changed, lastData: oldItem });
|
138
|
-
const { readOnly: existingReadOnly = {} } = item || {};
|
139
|
-
const newReadOnly = __spreadValues(__spreadValues({}, existingReadOnly), readOnly);
|
140
138
|
const resolvedItem = __spreadProps(__spreadValues({}, item), {
|
141
139
|
props: __spreadValues(__spreadValues({}, item.props), resolvedProps)
|
142
140
|
});
|
143
|
-
if (Object.keys(
|
144
|
-
resolvedItem.readOnly =
|
141
|
+
if (Object.keys(readOnly).length) {
|
142
|
+
resolvedItem.readOnly = readOnly;
|
145
143
|
}
|
146
144
|
cache.lastChange[item.props.id] = {
|
147
145
|
item,
|