@measured/puck 0.20.0-canary.ba585f93 → 0.20.0-canary.d12fc3a9
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/index.js +4 -15
- package/dist/index.mjs +4 -15
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5073,8 +5073,7 @@ var DraggableComponent = ({
|
|
|
5073
5073
|
el.removeEventListener("mouseout", _onMouseOut);
|
|
5074
5074
|
};
|
|
5075
5075
|
}, [
|
|
5076
|
-
ref
|
|
5077
|
-
// Remount attributes if the element changes
|
|
5076
|
+
ref,
|
|
5078
5077
|
onClick,
|
|
5079
5078
|
containsActiveZone,
|
|
5080
5079
|
zoneCompound,
|
|
@@ -5576,8 +5575,7 @@ var DropZoneChild = ({
|
|
|
5576
5575
|
return {
|
|
5577
5576
|
type: preview.componentType,
|
|
5578
5577
|
props: preview.props,
|
|
5579
|
-
previewType: preview.type
|
|
5580
|
-
element: preview.element
|
|
5578
|
+
previewType: preview.type
|
|
5581
5579
|
};
|
|
5582
5580
|
}
|
|
5583
5581
|
return null;
|
|
@@ -5610,12 +5608,6 @@ var DropZoneChild = ({
|
|
|
5610
5608
|
let label = (_b = (_a = componentConfig == null ? void 0 : componentConfig.label) != null ? _a : item == null ? void 0 : item.type.toString()) != null ? _b : "Component";
|
|
5611
5609
|
const renderPreview = (0, import_react35.useMemo)(
|
|
5612
5610
|
() => function Preview3() {
|
|
5613
|
-
if (item && "element" in item && item.element) {
|
|
5614
|
-
return (
|
|
5615
|
-
// Safe to use this since the HTML is set by the user
|
|
5616
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { dangerouslySetInnerHTML: { __html: item.element.outerHTML } })
|
|
5617
|
-
);
|
|
5618
|
-
}
|
|
5619
5611
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DrawerItemInner, { name: label, children: overrides.componentItem });
|
|
5620
5612
|
},
|
|
5621
5613
|
[componentId, label, overrides]
|
|
@@ -6571,7 +6563,6 @@ var DragDropContextClient = ({
|
|
|
6571
6563
|
type: "insert",
|
|
6572
6564
|
index: targetIndex,
|
|
6573
6565
|
zone: targetZone,
|
|
6574
|
-
element: source.element,
|
|
6575
6566
|
props: {
|
|
6576
6567
|
id: source.id.toString()
|
|
6577
6568
|
}
|
|
@@ -6597,8 +6588,7 @@ var DragDropContextClient = ({
|
|
|
6597
6588
|
type: "move",
|
|
6598
6589
|
index: targetIndex,
|
|
6599
6590
|
zone: targetZone,
|
|
6600
|
-
props: item.props
|
|
6601
|
-
element: source.element
|
|
6591
|
+
props: item.props
|
|
6602
6592
|
}
|
|
6603
6593
|
}
|
|
6604
6594
|
});
|
|
@@ -6628,8 +6618,7 @@ var DragDropContextClient = ({
|
|
|
6628
6618
|
type: "move",
|
|
6629
6619
|
index: sourceData.index,
|
|
6630
6620
|
zone: sourceData.zone,
|
|
6631
|
-
props: item.props
|
|
6632
|
-
element: source.element
|
|
6621
|
+
props: item.props
|
|
6633
6622
|
}
|
|
6634
6623
|
}
|
|
6635
6624
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -4182,8 +4182,7 @@ var DraggableComponent = ({
|
|
|
4182
4182
|
el.removeEventListener("mouseout", _onMouseOut);
|
|
4183
4183
|
};
|
|
4184
4184
|
}, [
|
|
4185
|
-
ref
|
|
4186
|
-
// Remount attributes if the element changes
|
|
4185
|
+
ref,
|
|
4187
4186
|
onClick,
|
|
4188
4187
|
containsActiveZone,
|
|
4189
4188
|
zoneCompound,
|
|
@@ -4685,8 +4684,7 @@ var DropZoneChild = ({
|
|
|
4685
4684
|
return {
|
|
4686
4685
|
type: preview.componentType,
|
|
4687
4686
|
props: preview.props,
|
|
4688
|
-
previewType: preview.type
|
|
4689
|
-
element: preview.element
|
|
4687
|
+
previewType: preview.type
|
|
4690
4688
|
};
|
|
4691
4689
|
}
|
|
4692
4690
|
return null;
|
|
@@ -4719,12 +4717,6 @@ var DropZoneChild = ({
|
|
|
4719
4717
|
let label = (_b = (_a = componentConfig == null ? void 0 : componentConfig.label) != null ? _a : item == null ? void 0 : item.type.toString()) != null ? _b : "Component";
|
|
4720
4718
|
const renderPreview = useMemo9(
|
|
4721
4719
|
() => function Preview3() {
|
|
4722
|
-
if (item && "element" in item && item.element) {
|
|
4723
|
-
return (
|
|
4724
|
-
// Safe to use this since the HTML is set by the user
|
|
4725
|
-
/* @__PURE__ */ jsx23("div", { dangerouslySetInnerHTML: { __html: item.element.outerHTML } })
|
|
4726
|
-
);
|
|
4727
|
-
}
|
|
4728
4720
|
return /* @__PURE__ */ jsx23(DrawerItemInner, { name: label, children: overrides.componentItem });
|
|
4729
4721
|
},
|
|
4730
4722
|
[componentId, label, overrides]
|
|
@@ -5680,7 +5672,6 @@ var DragDropContextClient = ({
|
|
|
5680
5672
|
type: "insert",
|
|
5681
5673
|
index: targetIndex,
|
|
5682
5674
|
zone: targetZone,
|
|
5683
|
-
element: source.element,
|
|
5684
5675
|
props: {
|
|
5685
5676
|
id: source.id.toString()
|
|
5686
5677
|
}
|
|
@@ -5706,8 +5697,7 @@ var DragDropContextClient = ({
|
|
|
5706
5697
|
type: "move",
|
|
5707
5698
|
index: targetIndex,
|
|
5708
5699
|
zone: targetZone,
|
|
5709
|
-
props: item.props
|
|
5710
|
-
element: source.element
|
|
5700
|
+
props: item.props
|
|
5711
5701
|
}
|
|
5712
5702
|
}
|
|
5713
5703
|
});
|
|
@@ -5737,8 +5727,7 @@ var DragDropContextClient = ({
|
|
|
5737
5727
|
type: "move",
|
|
5738
5728
|
index: sourceData.index,
|
|
5739
5729
|
zone: sourceData.zone,
|
|
5740
|
-
props: item.props
|
|
5741
|
-
element: source.element
|
|
5730
|
+
props: item.props
|
|
5742
5731
|
}
|
|
5743
5732
|
}
|
|
5744
5733
|
});
|
package/package.json
CHANGED