@measured/puck 0.21.0-canary.e4131567 → 0.21.0-canary.e491598a
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/{chunk-KNAV6QTS.mjs → chunk-2NYOEOP7.mjs} +2824 -2489
- package/dist/{chunk-X7YZ3YE7.mjs → chunk-FY5AZKYD.mjs} +13 -10
- package/dist/index.css +649 -270
- package/dist/index.d.mts +24 -5
- package/dist/index.d.ts +24 -5
- package/dist/index.js +2358 -2028
- package/dist/index.mjs +10 -2
- package/dist/no-external.css +649 -270
- package/dist/no-external.d.mts +2 -2
- package/dist/no-external.d.ts +2 -2
- package/dist/no-external.js +2355 -2025
- package/dist/no-external.mjs +10 -2
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/rsc.js +12 -10
- package/dist/rsc.mjs +1 -1
- package/dist/{walk-tree-Ctf3FZQI.d.mts → walk-tree-CL-j099F.d.mts} +76 -50
- package/dist/{walk-tree-Ctf3FZQI.d.ts → walk-tree-CL-j099F.d.ts} +76 -50
- package/package.json +1 -1
|
@@ -295,7 +295,8 @@ init_react_import();
|
|
|
295
295
|
var defaultViewports = [
|
|
296
296
|
{ width: 360, height: "auto", icon: "Smartphone", label: "Small" },
|
|
297
297
|
{ width: 768, height: "auto", icon: "Tablet", label: "Medium" },
|
|
298
|
-
{ width: 1280, height: "auto", icon: "Monitor", label: "Large" }
|
|
298
|
+
{ width: 1280, height: "auto", icon: "Monitor", label: "Large" },
|
|
299
|
+
{ width: "100%", height: "auto", icon: "FullWidth", label: "Full-width" }
|
|
299
300
|
];
|
|
300
301
|
|
|
301
302
|
// store/default-app-state.ts
|
|
@@ -317,7 +318,8 @@ var defaultAppState = {
|
|
|
317
318
|
options: [],
|
|
318
319
|
controlsVisible: true
|
|
319
320
|
},
|
|
320
|
-
field: { focus: null }
|
|
321
|
+
field: { focus: null },
|
|
322
|
+
plugin: { current: null }
|
|
321
323
|
},
|
|
322
324
|
indexes: {
|
|
323
325
|
nodes: {},
|
|
@@ -695,7 +697,7 @@ var getChanged = (newItem, oldItem) => {
|
|
|
695
697
|
// lib/resolve-component-data.ts
|
|
696
698
|
import { deepEqual as deepEqual2 } from "fast-equals";
|
|
697
699
|
var cache = { lastChange: {} };
|
|
698
|
-
var resolveComponentData = (_0, _1, ..._2) => __async(
|
|
700
|
+
var resolveComponentData = (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (item, config, metadata = {}, onResolveStart, onResolveEnd, trigger = "replace") {
|
|
699
701
|
const configForItem = "type" in item && item.type !== "root" ? config.components[item.type] : config.root;
|
|
700
702
|
const resolvedItem = __spreadValues({}, item);
|
|
701
703
|
const shouldRunResolver = (configForItem == null ? void 0 : configForItem.resolveData) && item.props;
|
|
@@ -723,11 +725,11 @@ var resolveComponentData = (_0, _1, ..._2) => __async(void 0, [_0, _1, ..._2], f
|
|
|
723
725
|
let itemWithResolvedChildren = yield mapFields(
|
|
724
726
|
resolvedItem,
|
|
725
727
|
{
|
|
726
|
-
slot: (_02) => __async(
|
|
728
|
+
slot: (_02) => __async(null, [_02], function* ({ value }) {
|
|
727
729
|
const content = value;
|
|
728
730
|
return yield Promise.all(
|
|
729
731
|
content.map(
|
|
730
|
-
(childItem) => __async(
|
|
732
|
+
(childItem) => __async(null, null, function* () {
|
|
731
733
|
return (yield resolveComponentData(
|
|
732
734
|
childItem,
|
|
733
735
|
config,
|
|
@@ -770,7 +772,7 @@ function resolveAllData(_0, _1) {
|
|
|
770
772
|
return __async(this, arguments, function* (data, config, metadata = {}, onResolveStart, onResolveEnd) {
|
|
771
773
|
var _a;
|
|
772
774
|
const defaultedData = defaultData(data);
|
|
773
|
-
const resolveNode = (_node) => __async(
|
|
775
|
+
const resolveNode = (_node) => __async(null, null, function* () {
|
|
774
776
|
const node = toComponent(_node);
|
|
775
777
|
onResolveStart == null ? void 0 : onResolveStart(node);
|
|
776
778
|
const resolved = (yield resolveComponentData(
|
|
@@ -791,13 +793,13 @@ function resolveAllData(_0, _1) {
|
|
|
791
793
|
onResolveEnd == null ? void 0 : onResolveEnd(toComponent(resolvedDeep));
|
|
792
794
|
return resolvedDeep;
|
|
793
795
|
});
|
|
794
|
-
const processContent = (content) => __async(
|
|
796
|
+
const processContent = (content) => __async(null, null, function* () {
|
|
795
797
|
return Promise.all(content.map(resolveNode));
|
|
796
798
|
});
|
|
797
|
-
const processZones = () => __async(
|
|
799
|
+
const processZones = () => __async(null, null, function* () {
|
|
798
800
|
var _a2;
|
|
799
801
|
const zones = (_a2 = data.zones) != null ? _a2 : {};
|
|
800
|
-
Object.entries(zones).forEach((_02) => __async(
|
|
802
|
+
Object.entries(zones).forEach((_02) => __async(null, [_02], function* ([zoneKey, content]) {
|
|
801
803
|
zones[zoneKey] = yield Promise.all(content.map(resolveNode));
|
|
802
804
|
}));
|
|
803
805
|
return zones;
|
|
@@ -807,7 +809,7 @@ function resolveAllData(_0, _1) {
|
|
|
807
809
|
content: yield processContent(defaultedData.content),
|
|
808
810
|
zones: yield processZones()
|
|
809
811
|
};
|
|
810
|
-
Object.keys((_a = defaultedData.zones) != null ? _a : {}).forEach((zoneKey) => __async(
|
|
812
|
+
Object.keys((_a = defaultedData.zones) != null ? _a : {}).forEach((zoneKey) => __async(null, null, function* () {
|
|
811
813
|
const content = defaultedData.zones[zoneKey];
|
|
812
814
|
dynamic.zones[zoneKey] = yield processContent(content);
|
|
813
815
|
}), {});
|
|
@@ -958,6 +960,7 @@ export {
|
|
|
958
960
|
useSlots,
|
|
959
961
|
SlotRenderPure,
|
|
960
962
|
SlotRender,
|
|
963
|
+
toComponent,
|
|
961
964
|
migrate,
|
|
962
965
|
transformProps,
|
|
963
966
|
resolveAllData
|