@measured/puck 0.18.1-canary.8671932 → 0.18.1-canary.ccb5eb6
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 +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
@@ -3247,14 +3247,14 @@ var DraggableComponent = ({
|
|
3247
3247
|
setStyle(getStyle());
|
3248
3248
|
}, [ref.current, iframe]);
|
3249
3249
|
(0, import_react23.useEffect)(() => {
|
3250
|
-
if (ref.current) {
|
3250
|
+
if (ref.current && !userIsDragging) {
|
3251
3251
|
const observer = new ResizeObserver(sync);
|
3252
3252
|
observer.observe(ref.current);
|
3253
3253
|
return () => {
|
3254
3254
|
observer.disconnect();
|
3255
3255
|
};
|
3256
3256
|
}
|
3257
|
-
}, [ref.current]);
|
3257
|
+
}, [ref.current, userIsDragging]);
|
3258
3258
|
(0, import_react23.useEffect)(() => {
|
3259
3259
|
ctx == null ? void 0 : ctx.registerPath(
|
3260
3260
|
id,
|
package/dist/index.mjs
CHANGED
@@ -3090,14 +3090,14 @@ var DraggableComponent = ({
|
|
3090
3090
|
setStyle(getStyle());
|
3091
3091
|
}, [ref.current, iframe]);
|
3092
3092
|
useEffect10(() => {
|
3093
|
-
if (ref.current) {
|
3093
|
+
if (ref.current && !userIsDragging) {
|
3094
3094
|
const observer = new ResizeObserver(sync);
|
3095
3095
|
observer.observe(ref.current);
|
3096
3096
|
return () => {
|
3097
3097
|
observer.disconnect();
|
3098
3098
|
};
|
3099
3099
|
}
|
3100
|
-
}, [ref.current]);
|
3100
|
+
}, [ref.current, userIsDragging]);
|
3101
3101
|
useEffect10(() => {
|
3102
3102
|
ctx == null ? void 0 : ctx.registerPath(
|
3103
3103
|
id,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@measured/puck",
|
3
|
-
"version": "0.18.1-canary.
|
3
|
+
"version": "0.18.1-canary.ccb5eb6",
|
4
4
|
"author": "Measured Corporation Ltd <hello@measured.co>",
|
5
5
|
"repository": "measuredco/puck",
|
6
6
|
"bugs": "https://github.com/measuredco/puck/issues",
|
@@ -68,8 +68,8 @@
|
|
68
68
|
"typescript": "^5.5.4"
|
69
69
|
},
|
70
70
|
"dependencies": {
|
71
|
-
"@dnd-kit/helpers": "0.0.6-beta-
|
72
|
-
"@dnd-kit/react": "0.0.6-beta-
|
71
|
+
"@dnd-kit/helpers": "0.0.6-beta-20250124180624",
|
72
|
+
"@dnd-kit/react": "0.0.6-beta-20250124180624",
|
73
73
|
"deep-diff": "^1.0.2",
|
74
74
|
"object-hash": "^3.0.0",
|
75
75
|
"react-hotkeys-hook": "^4.6.1",
|