@puckeditor/core 0.21.2 → 0.21.3-canary.88fa3eeb

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.
@@ -2707,6 +2707,10 @@ var DraggableComponent = ({
2707
2707
  );
2708
2708
  const onClick = useCallback7(
2709
2709
  (e) => {
2710
+ const userIsDragging = !!zoneStore.getState().draggedItem;
2711
+ if (userIsDragging) {
2712
+ return;
2713
+ }
2710
2714
  const el = e.target;
2711
2715
  if (!el.closest("[data-puck-overlay-portal]")) {
2712
2716
  e.stopPropagation();
package/dist/index.js CHANGED
@@ -8287,6 +8287,10 @@ var DraggableComponent = ({
8287
8287
  );
8288
8288
  const onClick = (0, import_react51.useCallback)(
8289
8289
  (e) => {
8290
+ const userIsDragging = !!zoneStore.getState().draggedItem;
8291
+ if (userIsDragging) {
8292
+ return;
8293
+ }
8290
8294
  const el = e.target;
8291
8295
  if (!el.closest("[data-puck-overlay-portal]")) {
8292
8296
  e.stopPropagation();
package/dist/index.mjs CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  setDeep,
18
18
  useGetPuck,
19
19
  usePuck
20
- } from "./chunk-PK2F2YZX.mjs";
20
+ } from "./chunk-Y72HCWJK.mjs";
21
21
  import "./chunk-WCC2G7U7.mjs";
22
22
  import {
23
23
  migrate,
@@ -8287,6 +8287,10 @@ var DraggableComponent = ({
8287
8287
  );
8288
8288
  const onClick = (0, import_react51.useCallback)(
8289
8289
  (e) => {
8290
+ const userIsDragging = !!zoneStore.getState().draggedItem;
8291
+ if (userIsDragging) {
8292
+ return;
8293
+ }
8290
8294
  const el = e.target;
8291
8295
  if (!el.closest("[data-puck-overlay-portal]")) {
8292
8296
  e.stopPropagation();
@@ -17,7 +17,7 @@ import {
17
17
  setDeep,
18
18
  useGetPuck,
19
19
  usePuck
20
- } from "./chunk-PK2F2YZX.mjs";
20
+ } from "./chunk-Y72HCWJK.mjs";
21
21
  import "./chunk-WCC2G7U7.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.2",
3
+ "version": "0.21.3-canary.88fa3eeb",
4
4
  "description": "The open-source visual editor for React",
5
5
  "author": "Chris Villa <chris@puckeditor.com>",
6
6
  "repository": "puckeditor/puck",