@designa8/vibedesign-stripe-deepseek-85ea 0.1.1 → 0.1.2
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/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @designa8/vibedesign-stripe-deepseek-85ea
|
|
2
2
|
|
|
3
|
-
Complete design system generated by Atoms Design, version **0.1.
|
|
3
|
+
Complete design system generated by Atoms Design, version **0.1.2**.
|
|
4
4
|
Tokens, atoms, molecules, organisms, and templates — import from the package root;
|
|
5
5
|
never hardcode visual values in consumer code.
|
|
6
6
|
|
package/dist/index.cjs
CHANGED
|
@@ -12296,6 +12296,7 @@ var PaymentRoutingCanvas = React62.forwardRef(
|
|
|
12296
12296
|
const triggerRef = React62.useRef(null);
|
|
12297
12297
|
const nodeRefs = React62.useRef({});
|
|
12298
12298
|
const suppressClick = React62.useRef(false);
|
|
12299
|
+
const nodeDragActive = React62.useRef(false);
|
|
12299
12300
|
React62.useEffect(() => {
|
|
12300
12301
|
setLocalNodes(incomingNodes);
|
|
12301
12302
|
}, [incomingNodes]);
|
|
@@ -12385,6 +12386,8 @@ var PaymentRoutingCanvas = React62.forwardRef(
|
|
|
12385
12386
|
};
|
|
12386
12387
|
const beginDrag = (event, node) => {
|
|
12387
12388
|
if (event.button !== 0) return;
|
|
12389
|
+
event.stopPropagation();
|
|
12390
|
+
nodeDragActive.current = true;
|
|
12388
12391
|
const startX = event.clientX;
|
|
12389
12392
|
const startY = event.clientY;
|
|
12390
12393
|
const scale2 = fit * zoom || 1;
|
|
@@ -12405,6 +12408,7 @@ var PaymentRoutingCanvas = React62.forwardRef(
|
|
|
12405
12408
|
);
|
|
12406
12409
|
};
|
|
12407
12410
|
const end = () => {
|
|
12411
|
+
nodeDragActive.current = false;
|
|
12408
12412
|
window.removeEventListener("pointermove", move);
|
|
12409
12413
|
if (!moved) return;
|
|
12410
12414
|
suppressClick.current = true;
|
|
@@ -12419,6 +12423,7 @@ var PaymentRoutingCanvas = React62.forwardRef(
|
|
|
12419
12423
|
};
|
|
12420
12424
|
const beginPan = (event) => {
|
|
12421
12425
|
if (event.button !== 0) return;
|
|
12426
|
+
if (nodeDragActive.current) return;
|
|
12422
12427
|
const startX = event.clientX;
|
|
12423
12428
|
const startY = event.clientY;
|
|
12424
12429
|
const origin = pan;
|
package/dist/index.js
CHANGED
|
@@ -12160,6 +12160,7 @@ var PaymentRoutingCanvas = React62.forwardRef(
|
|
|
12160
12160
|
const triggerRef = React62.useRef(null);
|
|
12161
12161
|
const nodeRefs = React62.useRef({});
|
|
12162
12162
|
const suppressClick = React62.useRef(false);
|
|
12163
|
+
const nodeDragActive = React62.useRef(false);
|
|
12163
12164
|
React62.useEffect(() => {
|
|
12164
12165
|
setLocalNodes(incomingNodes);
|
|
12165
12166
|
}, [incomingNodes]);
|
|
@@ -12249,6 +12250,8 @@ var PaymentRoutingCanvas = React62.forwardRef(
|
|
|
12249
12250
|
};
|
|
12250
12251
|
const beginDrag = (event, node) => {
|
|
12251
12252
|
if (event.button !== 0) return;
|
|
12253
|
+
event.stopPropagation();
|
|
12254
|
+
nodeDragActive.current = true;
|
|
12252
12255
|
const startX = event.clientX;
|
|
12253
12256
|
const startY = event.clientY;
|
|
12254
12257
|
const scale2 = fit * zoom || 1;
|
|
@@ -12269,6 +12272,7 @@ var PaymentRoutingCanvas = React62.forwardRef(
|
|
|
12269
12272
|
);
|
|
12270
12273
|
};
|
|
12271
12274
|
const end = () => {
|
|
12275
|
+
nodeDragActive.current = false;
|
|
12272
12276
|
window.removeEventListener("pointermove", move);
|
|
12273
12277
|
if (!moved) return;
|
|
12274
12278
|
suppressClick.current = true;
|
|
@@ -12283,6 +12287,7 @@ var PaymentRoutingCanvas = React62.forwardRef(
|
|
|
12283
12287
|
};
|
|
12284
12288
|
const beginPan = (event) => {
|
|
12285
12289
|
if (event.button !== 0) return;
|
|
12290
|
+
if (nodeDragActive.current) return;
|
|
12286
12291
|
const startX = event.clientX;
|
|
12287
12292
|
const startY = event.clientY;
|
|
12288
12293
|
const origin = pan;
|
package/package.json
CHANGED
|
@@ -309,6 +309,8 @@ export const PaymentRoutingCanvas = React.forwardRef<
|
|
|
309
309
|
const triggerRef = React.useRef<HTMLButtonElement>(null);
|
|
310
310
|
const nodeRefs = React.useRef<Record<string, HTMLDivElement | null>>({});
|
|
311
311
|
const suppressClick = React.useRef(false);
|
|
312
|
+
/** A node drag owns the gesture — the plane must not pan under it. */
|
|
313
|
+
const nodeDragActive = React.useRef(false);
|
|
312
314
|
|
|
313
315
|
React.useEffect(() => {
|
|
314
316
|
setLocalNodes(incomingNodes);
|
|
@@ -414,6 +416,10 @@ export const PaymentRoutingCanvas = React.forwardRef<
|
|
|
414
416
|
|
|
415
417
|
const beginDrag = (event: React.PointerEvent, node: CanvasNode) => {
|
|
416
418
|
if (event.button !== 0) return;
|
|
419
|
+
// The node owns this gesture: without this the pointerdown bubbles to the
|
|
420
|
+
// plane's beginPan, both move listeners run, and the node drag also pans.
|
|
421
|
+
event.stopPropagation();
|
|
422
|
+
nodeDragActive.current = true;
|
|
417
423
|
const startX = event.clientX;
|
|
418
424
|
const startY = event.clientY;
|
|
419
425
|
const scale = fit * zoom || 1;
|
|
@@ -438,6 +444,7 @@ export const PaymentRoutingCanvas = React.forwardRef<
|
|
|
438
444
|
};
|
|
439
445
|
|
|
440
446
|
const end = () => {
|
|
447
|
+
nodeDragActive.current = false;
|
|
441
448
|
window.removeEventListener("pointermove", move);
|
|
442
449
|
if (!moved) return;
|
|
443
450
|
suppressClick.current = true;
|
|
@@ -454,6 +461,8 @@ export const PaymentRoutingCanvas = React.forwardRef<
|
|
|
454
461
|
|
|
455
462
|
const beginPan = (event: React.PointerEvent) => {
|
|
456
463
|
if (event.button !== 0) return;
|
|
464
|
+
// Defensive: a gesture already claimed by a node must never pan.
|
|
465
|
+
if (nodeDragActive.current) return;
|
|
457
466
|
const startX = event.clientX;
|
|
458
467
|
const startY = event.clientY;
|
|
459
468
|
const origin = pan;
|