@puckeditor/core 0.21.1 → 0.21.2-canary.72cdad9d

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.
@@ -868,9 +868,10 @@ var ArrayFieldItemInternal = ({
868
868
  {
869
869
  ref: handleRef,
870
870
  onClick: (e) => {
871
- if (isDragging || !hasVisibleFields) return;
871
+ if (isDragging) return;
872
872
  e.preventDefault();
873
873
  e.stopPropagation();
874
+ if (!hasVisibleFields) return;
874
875
  onToggleExpand(id, isExpanded);
875
876
  },
876
877
  className: getClassNameItem("summary"),
package/dist/index.js CHANGED
@@ -6365,9 +6365,10 @@ var ArrayFieldItemInternal = ({
6365
6365
  {
6366
6366
  ref: handleRef,
6367
6367
  onClick: (e) => {
6368
- if (isDragging || !hasVisibleFields) return;
6368
+ if (isDragging) return;
6369
6369
  e.preventDefault();
6370
6370
  e.stopPropagation();
6371
+ if (!hasVisibleFields) return;
6371
6372
  onToggleExpand(id, isExpanded);
6372
6373
  },
6373
6374
  className: getClassNameItem("summary"),
package/dist/index.mjs CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  setDeep,
18
18
  useGetPuck,
19
19
  usePuck
20
- } from "./chunk-EBISZQTK.mjs";
20
+ } from "./chunk-SAWVRSPE.mjs";
21
21
  import "./chunk-RHVK562Z.mjs";
22
22
  import {
23
23
  migrate,
@@ -6368,9 +6368,10 @@ var ArrayFieldItemInternal = ({
6368
6368
  {
6369
6369
  ref: handleRef,
6370
6370
  onClick: (e) => {
6371
- if (isDragging || !hasVisibleFields) return;
6371
+ if (isDragging) return;
6372
6372
  e.preventDefault();
6373
6373
  e.stopPropagation();
6374
+ if (!hasVisibleFields) return;
6374
6375
  onToggleExpand(id, isExpanded);
6375
6376
  },
6376
6377
  className: getClassNameItem("summary"),
@@ -17,7 +17,7 @@ import {
17
17
  setDeep,
18
18
  useGetPuck,
19
19
  usePuck
20
- } from "./chunk-EBISZQTK.mjs";
20
+ } from "./chunk-SAWVRSPE.mjs";
21
21
  import "./chunk-RHVK562Z.mjs";
22
22
  import {
23
23
  migrate,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@puckeditor/core",
3
- "version": "0.21.1",
3
+ "version": "0.21.2-canary.72cdad9d",
4
4
  "description": "The open-source visual editor for React",
5
5
  "author": "Chris Villa <chris@puckeditor.com>",
6
6
  "repository": "puckeditor/puck",