@measured/puck 0.19.3-canary.30c35a47 → 0.19.3

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 CHANGED
@@ -5862,7 +5862,7 @@ var DropZoneRender2 = (0, import_react35.forwardRef)(
5862
5862
  const ctx = (0, import_react35.useContext)(dropZoneContext);
5863
5863
  const { areaId = "root" } = ctx || {};
5864
5864
  const { config, data, metadata } = (0, import_react35.useContext)(renderContext);
5865
- let zoneCompound = rootDroppableId;
5865
+ let zoneCompound = `${areaId}:${zone}`;
5866
5866
  let content = (data == null ? void 0 : data.content) || [];
5867
5867
  (0, import_react35.useEffect)(() => {
5868
5868
  if (!content) {
@@ -5879,8 +5879,7 @@ var DropZoneRender2 = (0, import_react35.forwardRef)(
5879
5879
  if (!data || !config) {
5880
5880
  return null;
5881
5881
  }
5882
- if (areaId !== rootAreaId && zone !== rootZone) {
5883
- zoneCompound = `${areaId}:${zone}`;
5882
+ if (zoneCompound !== rootDroppableId) {
5884
5883
  content = setupZone(data, zoneCompound).zones[zoneCompound];
5885
5884
  }
5886
5885
  return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className, style, ref, children: content.map((item) => {
package/dist/index.mjs CHANGED
@@ -5013,7 +5013,7 @@ var DropZoneRender = forwardRef3(
5013
5013
  const ctx = useContext7(dropZoneContext);
5014
5014
  const { areaId = "root" } = ctx || {};
5015
5015
  const { config, data, metadata } = useContext7(renderContext);
5016
- let zoneCompound = rootDroppableId;
5016
+ let zoneCompound = `${areaId}:${zone}`;
5017
5017
  let content = (data == null ? void 0 : data.content) || [];
5018
5018
  useEffect16(() => {
5019
5019
  if (!content) {
@@ -5030,8 +5030,7 @@ var DropZoneRender = forwardRef3(
5030
5030
  if (!data || !config) {
5031
5031
  return null;
5032
5032
  }
5033
- if (areaId !== rootAreaId && zone !== rootZone) {
5034
- zoneCompound = `${areaId}:${zone}`;
5033
+ if (zoneCompound !== rootDroppableId) {
5035
5034
  content = setupZone(data, zoneCompound).zones[zoneCompound];
5036
5035
  }
5037
5036
  return /* @__PURE__ */ jsx23("div", { className, style, ref, children: content.map((item) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck",
3
- "version": "0.19.3-canary.30c35a47",
3
+ "version": "0.19.3",
4
4
  "author": "Chris Villa <chris@puckeditor.com>",
5
5
  "repository": "measuredco/puck",
6
6
  "bugs": "https://github.com/measuredco/puck/issues",