@measured/puck 0.20.0-canary.c119ed0d → 0.20.0-canary.d2e09bdc
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 +3 -22
- package/dist/index.mjs +3 -22
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4699,19 +4699,9 @@ var DropZoneProvider = ({
|
|
|
4699
4699
|
},
|
|
4700
4700
|
[dispatch]
|
|
4701
4701
|
);
|
|
4702
|
-
const unregisterZone = (0, import_react25.useCallback)(
|
|
4703
|
-
(zoneCompound) => {
|
|
4704
|
-
dispatch({
|
|
4705
|
-
type: "unregisterZone",
|
|
4706
|
-
zone: zoneCompound
|
|
4707
|
-
});
|
|
4708
|
-
},
|
|
4709
|
-
[dispatch]
|
|
4710
|
-
);
|
|
4711
4702
|
const memoValue = (0, import_react25.useMemo)(
|
|
4712
4703
|
() => __spreadValues({
|
|
4713
|
-
registerZone
|
|
4714
|
-
unregisterZone
|
|
4704
|
+
registerZone
|
|
4715
4705
|
}, value),
|
|
4716
4706
|
[value]
|
|
4717
4707
|
);
|
|
@@ -5693,6 +5683,7 @@ var DropZoneEdit = (0, import_react35.forwardRef)(
|
|
|
5693
5683
|
collisionAxis
|
|
5694
5684
|
}, userRef) {
|
|
5695
5685
|
const ctx = (0, import_react35.useContext)(dropZoneContext);
|
|
5686
|
+
const appStoreApi = useAppStoreApi();
|
|
5696
5687
|
const {
|
|
5697
5688
|
// These all need setting via context
|
|
5698
5689
|
areaId,
|
|
@@ -5734,13 +5725,8 @@ var DropZoneEdit = (0, import_react35.forwardRef)(
|
|
|
5734
5725
|
if (ctx == null ? void 0 : ctx.registerZone) {
|
|
5735
5726
|
ctx == null ? void 0 : ctx.registerZone(zoneCompound);
|
|
5736
5727
|
}
|
|
5737
|
-
return () => {
|
|
5738
|
-
if (ctx == null ? void 0 : ctx.unregisterZone) {
|
|
5739
|
-
ctx == null ? void 0 : ctx.unregisterZone(zoneCompound);
|
|
5740
|
-
}
|
|
5741
|
-
};
|
|
5742
5728
|
}
|
|
5743
|
-
}, [zoneType]);
|
|
5729
|
+
}, [zoneType, appStoreApi]);
|
|
5744
5730
|
(0, import_react35.useEffect)(() => {
|
|
5745
5731
|
if (zoneType === "dropzone") {
|
|
5746
5732
|
if (zoneCompound !== rootDroppableId) {
|
|
@@ -5912,11 +5898,6 @@ var DropZoneRender2 = (0, import_react35.forwardRef)(
|
|
|
5912
5898
|
if (ctx == null ? void 0 : ctx.registerZone) {
|
|
5913
5899
|
ctx == null ? void 0 : ctx.registerZone(zoneCompound);
|
|
5914
5900
|
}
|
|
5915
|
-
return () => {
|
|
5916
|
-
if (ctx == null ? void 0 : ctx.unregisterZone) {
|
|
5917
|
-
ctx == null ? void 0 : ctx.unregisterZone(zoneCompound);
|
|
5918
|
-
}
|
|
5919
|
-
};
|
|
5920
5901
|
}
|
|
5921
5902
|
}, [content]);
|
|
5922
5903
|
if (!data || !config) {
|
package/dist/index.mjs
CHANGED
|
@@ -3808,19 +3808,9 @@ var DropZoneProvider = ({
|
|
|
3808
3808
|
},
|
|
3809
3809
|
[dispatch]
|
|
3810
3810
|
);
|
|
3811
|
-
const unregisterZone = useCallback5(
|
|
3812
|
-
(zoneCompound) => {
|
|
3813
|
-
dispatch({
|
|
3814
|
-
type: "unregisterZone",
|
|
3815
|
-
zone: zoneCompound
|
|
3816
|
-
});
|
|
3817
|
-
},
|
|
3818
|
-
[dispatch]
|
|
3819
|
-
);
|
|
3820
3811
|
const memoValue = useMemo6(
|
|
3821
3812
|
() => __spreadValues({
|
|
3822
|
-
registerZone
|
|
3823
|
-
unregisterZone
|
|
3813
|
+
registerZone
|
|
3824
3814
|
}, value),
|
|
3825
3815
|
[value]
|
|
3826
3816
|
);
|
|
@@ -4802,6 +4792,7 @@ var DropZoneEdit = forwardRef3(
|
|
|
4802
4792
|
collisionAxis
|
|
4803
4793
|
}, userRef) {
|
|
4804
4794
|
const ctx = useContext7(dropZoneContext);
|
|
4795
|
+
const appStoreApi = useAppStoreApi();
|
|
4805
4796
|
const {
|
|
4806
4797
|
// These all need setting via context
|
|
4807
4798
|
areaId,
|
|
@@ -4843,13 +4834,8 @@ var DropZoneEdit = forwardRef3(
|
|
|
4843
4834
|
if (ctx == null ? void 0 : ctx.registerZone) {
|
|
4844
4835
|
ctx == null ? void 0 : ctx.registerZone(zoneCompound);
|
|
4845
4836
|
}
|
|
4846
|
-
return () => {
|
|
4847
|
-
if (ctx == null ? void 0 : ctx.unregisterZone) {
|
|
4848
|
-
ctx == null ? void 0 : ctx.unregisterZone(zoneCompound);
|
|
4849
|
-
}
|
|
4850
|
-
};
|
|
4851
4837
|
}
|
|
4852
|
-
}, [zoneType]);
|
|
4838
|
+
}, [zoneType, appStoreApi]);
|
|
4853
4839
|
useEffect16(() => {
|
|
4854
4840
|
if (zoneType === "dropzone") {
|
|
4855
4841
|
if (zoneCompound !== rootDroppableId) {
|
|
@@ -5021,11 +5007,6 @@ var DropZoneRender = forwardRef3(
|
|
|
5021
5007
|
if (ctx == null ? void 0 : ctx.registerZone) {
|
|
5022
5008
|
ctx == null ? void 0 : ctx.registerZone(zoneCompound);
|
|
5023
5009
|
}
|
|
5024
|
-
return () => {
|
|
5025
|
-
if (ctx == null ? void 0 : ctx.unregisterZone) {
|
|
5026
|
-
ctx == null ? void 0 : ctx.unregisterZone(zoneCompound);
|
|
5027
|
-
}
|
|
5028
|
-
};
|
|
5029
5010
|
}
|
|
5030
5011
|
}, [content]);
|
|
5031
5012
|
if (!data || !config) {
|
package/package.json
CHANGED