@graphysdk/react-renderer 1.9.0-beta.1789369093961 → 1.9.0-beta.1789369549494
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/editable.cjs +1 -1
- package/dist/editable.css +1 -1
- package/dist/editable.d.ts +6 -0
- package/dist/editable.mjs +1235 -1217
- package/dist/{history-chords-Bm7-0uT2.js → history-chords--6i35LQS.js} +2183 -2133
- package/dist/history-chords-CqecMyRa.cjs +2 -0
- package/dist/history-chords.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +11 -5
- package/dist/index.mjs +105 -105
- package/package.json +2 -2
- package/dist/history-chords-uZmxiv4h.cjs +0 -2
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { A as Dt, Bt as
|
|
1
|
+
import { A as Dt, At as $t, Bt as Ht, Ct as le, Dt as ue, Et as xt, Ht as ne, It as Mt, M as Pt, N as Lt, Ot as Bt, Rt as Ot, St as U, Ut as K, Vt as me, X as At, Z as Kt, _ as Ut, _t as jt, a as Ft, at as Yt, bt as he, dt as Vt, ft as Wt, gt as Xt, i as zt, it as Qt, k as Zt, kt as Jt, lt as er, n as tr, nt as rr, r as nr, s as sr, t as ge, xt as or, yt as O, zt as ir } from "./history-chords--6i35LQS.js";
|
|
2
2
|
import { n as cr } from "./theme.contract.css-pudzI2o1.js";
|
|
3
|
-
import { COMPILER_STAGE_KEYS as j, Geom as pe, GraphCompilationSession as fe, areEditTargetsEqual as ve, buildDiagnostic as W, createAnchorResolver as ye, createCompiler as be, createGraphyBuilder as Se, createStyleResolver as Ee, findAnnotation as Ce, findLayerById as X, isCompilerCachingEnabled as
|
|
4
|
-
import { Component as qe, useCallback as f, useEffect as
|
|
5
|
-
import { Fragment as
|
|
3
|
+
import { COMPILER_STAGE_KEYS as j, Geom as pe, GraphCompilationSession as fe, areEditTargetsEqual as ve, buildDiagnostic as W, createAnchorResolver as ye, createCompiler as be, createGraphyBuilder as Se, createStyleResolver as Ee, findAnnotation as Ce, findLayerById as X, isCompilerCachingEnabled as Ne, resolveDefinition as Re, setCompilerCachingEnabled as Te, toPercent as P } from "@graphysdk/viz-engine";
|
|
4
|
+
import { Component as qe, useCallback as f, useEffect as H, useId as Ie, useImperativeHandle as ke, useMemo as $, useRef as z, useState as C, useSyncExternalStore as Ge } from "react";
|
|
5
|
+
import { Fragment as _e, jsx as d, jsxs as v } from "react/jsx-runtime";
|
|
6
6
|
import { useStore as Q } from "zustand";
|
|
7
7
|
import { createStore as F } from "zustand/vanilla";
|
|
8
|
-
import
|
|
8
|
+
import we from "clsx";
|
|
9
9
|
import './index.css';var De = "_1a5iqpb0", $e = "_1a5iqpb1";
|
|
10
|
-
var
|
|
10
|
+
var He = "_1a5iqpb3", xe = "_1a5iqpb4", Me = "_1a5iqpb5";
|
|
11
11
|
var Z = ({ errors: e }) => {
|
|
12
12
|
const [t, ...r] = e;
|
|
13
13
|
return /* @__PURE__ */ v("div", {
|
|
@@ -26,10 +26,10 @@ var Z = ({ errors: e }) => {
|
|
|
26
26
|
]
|
|
27
27
|
});
|
|
28
28
|
}, J = ({ diagnostic: e }) => /* @__PURE__ */ v("div", {
|
|
29
|
-
className:
|
|
29
|
+
className: He,
|
|
30
30
|
children: [
|
|
31
31
|
/* @__PURE__ */ d("span", {
|
|
32
|
-
className:
|
|
32
|
+
className: xe,
|
|
33
33
|
children: e.code
|
|
34
34
|
}),
|
|
35
35
|
/* @__PURE__ */ d("p", {
|
|
@@ -54,7 +54,7 @@ var Le = class extends qe {
|
|
|
54
54
|
}
|
|
55
55
|
componentDidCatch(e, t) {
|
|
56
56
|
const r = W(e);
|
|
57
|
-
|
|
57
|
+
K([r]), this.props.onError?.([r]), console.error("Chart render component stack:", t.componentStack);
|
|
58
58
|
}
|
|
59
59
|
componentDidUpdate(e) {
|
|
60
60
|
this.state.caughtDiagnostic && !Pe(e.resetKeys, this.props.resetKeys) && this.setState({ caughtDiagnostic: null });
|
|
@@ -66,12 +66,12 @@ var Le = class extends qe {
|
|
|
66
66
|
return t && t.length > 0 ? /* @__PURE__ */ d(Z, { errors: t }) : r;
|
|
67
67
|
}
|
|
68
68
|
}, se = (e) => typeof e == "object" && "geom" in e && "render" in e, Be = (e) => {
|
|
69
|
-
const t =
|
|
69
|
+
const t = Re(e);
|
|
70
70
|
return t instanceof pe ? t : null;
|
|
71
71
|
}, Oe = (e, t) => {
|
|
72
|
-
const r = e.filter((n) =>
|
|
72
|
+
const r = e.filter((n) => Ae(n, t));
|
|
73
73
|
return r.length === e.length ? e : r;
|
|
74
|
-
},
|
|
74
|
+
}, Ae = (e, t) => e.kind === "annotation" ? Ce(t.annotations, e.id) !== null : e.kind === "observations" ? X(t.layers, e.layerId) !== void 0 : e.kind === "layer" && e.layerId !== void 0 ? X(t.layers, e.layerId) !== void 0 : !0, ee = [], Ke = () => F((e) => ({
|
|
75
75
|
selection: ee,
|
|
76
76
|
setSelection: (t) => e((r) => Ue(r.selection, t) ? r : { selection: t }),
|
|
77
77
|
clearSelection: () => e((t) => t.selection.length === 0 ? t : { selection: ee })
|
|
@@ -295,28 +295,28 @@ var st = (e) => F((t) => ({
|
|
|
295
295
|
compiled: e,
|
|
296
296
|
setCompiled: (r) => t((n) => n.compiled === r ? n : { compiled: r })
|
|
297
297
|
})), ot = ({ input: e, data: t, customPalettes: r, colorScheme: n, plugins: o, resolveRenderer: a, anchorResolver: i, onChange: c, onError: u, onWarnings: m }) => {
|
|
298
|
-
const
|
|
298
|
+
const N = O(c), k = O(u), q = O(m), [{ session: h, compileBus: l }] = C(() => {
|
|
299
299
|
const s = be({ plugins: o });
|
|
300
300
|
return {
|
|
301
301
|
session: new fe(s),
|
|
302
302
|
compileBus: Ye(s)
|
|
303
303
|
};
|
|
304
|
-
}), [p] = C(() => Qe(o ?? [])), y = z(null), [
|
|
304
|
+
}), [p] = C(() => Qe(o ?? [])), y = z(null), [G] = C(it), R = z(null), b = f((s) => p.errors.length === 0 ? s : [...p.errors, ...s ?? []], [p]), w = f((s) => {
|
|
305
305
|
if (!s.ok) return s.errors;
|
|
306
|
-
if (
|
|
306
|
+
if (R.current) R.current.getState().setCompiled(s.compiled);
|
|
307
307
|
else {
|
|
308
308
|
const g = st(s.compiled);
|
|
309
|
-
g.subscribe(
|
|
309
|
+
g.subscribe(G.notify), R.current = g, G.notify();
|
|
310
310
|
}
|
|
311
311
|
return null;
|
|
312
|
-
}, [
|
|
312
|
+
}, [G]), [x, D] = C(() => {
|
|
313
313
|
const s = h.compile({
|
|
314
314
|
input: e,
|
|
315
315
|
data: t,
|
|
316
316
|
customPalettes: r,
|
|
317
317
|
colorScheme: n
|
|
318
318
|
});
|
|
319
|
-
return y.current = s, b(
|
|
319
|
+
return y.current = s, b(w(s));
|
|
320
320
|
}), I = f((s) => s.ok ? [
|
|
321
321
|
...s.warnings,
|
|
322
322
|
...Ze(s.compiled, a),
|
|
@@ -326,20 +326,20 @@ var st = (e) => F((t) => ({
|
|
|
326
326
|
...nt(s.compiled, a),
|
|
327
327
|
...rt(s.compiled, i)
|
|
328
328
|
] : s.warnings, [a, i]), S = f((s) => {
|
|
329
|
-
s.length !== 0 && (
|
|
330
|
-
}, [
|
|
331
|
-
s.length !== 0 && (
|
|
329
|
+
s.length !== 0 && (K(s), k.current?.(s));
|
|
330
|
+
}, [k]), T = f((s) => {
|
|
331
|
+
s.length !== 0 && (K(s), q.current?.(s));
|
|
332
332
|
}, [q]);
|
|
333
|
-
|
|
333
|
+
H(() => {
|
|
334
334
|
const s = y.current;
|
|
335
|
-
s && (S([...p.errors, ...s.ok ? [] : s.errors]),
|
|
335
|
+
s && (S([...p.errors, ...s.ok ? [] : s.errors]), T([...p.warnings, ...I(s)]), s.ok && l.emit({ kind: "init" }));
|
|
336
336
|
}, [
|
|
337
337
|
l,
|
|
338
338
|
S,
|
|
339
|
-
|
|
339
|
+
T,
|
|
340
340
|
p,
|
|
341
341
|
I
|
|
342
|
-
]),
|
|
342
|
+
]), H(() => {
|
|
343
343
|
const s = h.update({
|
|
344
344
|
input: e,
|
|
345
345
|
data: t,
|
|
@@ -347,9 +347,9 @@ var st = (e) => F((t) => ({
|
|
|
347
347
|
colorScheme: n
|
|
348
348
|
});
|
|
349
349
|
if (!s) return;
|
|
350
|
-
s.sealedInput &&
|
|
351
|
-
const g =
|
|
352
|
-
D(b(g)), g && S(g),
|
|
350
|
+
s.sealedInput && N.current?.(s.sealedInput);
|
|
351
|
+
const g = w(s.result);
|
|
352
|
+
D(b(g)), g && S(g), T(I(s.result)), g || l.emit({ kind: s.inputChanged ? "input" : "data" });
|
|
353
353
|
}, [
|
|
354
354
|
e,
|
|
355
355
|
t,
|
|
@@ -357,28 +357,28 @@ var st = (e) => F((t) => ({
|
|
|
357
357
|
n,
|
|
358
358
|
h,
|
|
359
359
|
l,
|
|
360
|
-
|
|
360
|
+
w,
|
|
361
361
|
S,
|
|
362
|
-
|
|
362
|
+
T,
|
|
363
363
|
b,
|
|
364
364
|
I,
|
|
365
|
-
|
|
365
|
+
N
|
|
366
366
|
]);
|
|
367
|
-
const
|
|
368
|
-
D((g) => g === null ? g : b(null)),
|
|
367
|
+
const _ = f((s) => {
|
|
368
|
+
D((g) => g === null ? g : b(null)), T(I(s));
|
|
369
369
|
}, [
|
|
370
370
|
b,
|
|
371
|
-
|
|
371
|
+
T,
|
|
372
372
|
I
|
|
373
373
|
]), M = f((s) => {
|
|
374
|
-
s.compiled &&
|
|
374
|
+
s.compiled && R.current?.getState().setCompiled(s.compiled), s.result && _(s.result), s.command && l.emit({
|
|
375
375
|
kind: "command",
|
|
376
376
|
command: s.command
|
|
377
|
-
}), s.input &&
|
|
377
|
+
}), s.input && N.current?.(s.input), s.errors && S([...s.errors]);
|
|
378
378
|
}, [
|
|
379
|
-
|
|
379
|
+
_,
|
|
380
380
|
l,
|
|
381
|
-
|
|
381
|
+
N,
|
|
382
382
|
S
|
|
383
383
|
]), E = f((s) => {
|
|
384
384
|
for (const g of s) M(g);
|
|
@@ -395,16 +395,16 @@ var st = (e) => F((t) => ({
|
|
|
395
395
|
h,
|
|
396
396
|
Y,
|
|
397
397
|
V
|
|
398
|
-
]), de = f(() =>
|
|
398
|
+
]), de = f(() => R.current?.getState().compiled ?? null, []);
|
|
399
399
|
return {
|
|
400
|
-
store:
|
|
400
|
+
store: R.current,
|
|
401
401
|
dispatch: B,
|
|
402
402
|
seal: ae,
|
|
403
403
|
history: ce,
|
|
404
|
-
subscribe:
|
|
404
|
+
subscribe: G.subscribe,
|
|
405
405
|
getCompiled: de,
|
|
406
406
|
compileBus: l,
|
|
407
|
-
compileErrors:
|
|
407
|
+
compileErrors: x
|
|
408
408
|
};
|
|
409
409
|
}, it = () => {
|
|
410
410
|
const e = /* @__PURE__ */ new Set();
|
|
@@ -414,48 +414,48 @@ var st = (e) => F((t) => ({
|
|
|
414
414
|
}),
|
|
415
415
|
notify: () => e.forEach((t) => t())
|
|
416
416
|
};
|
|
417
|
-
}, at = ({ data: e, input: t, plugins: r = [], formattingLocale: n, handleRef: o, onChange: a, onError: i, onWarnings: c, customPalettes: u, colorScheme: m = "light", children:
|
|
418
|
-
const [
|
|
417
|
+
}, at = ({ data: e, input: t, plugins: r = [], formattingLocale: n, handleRef: o, onChange: a, onError: i, onWarnings: c, customPalettes: u, colorScheme: m = "light", children: N }) => {
|
|
418
|
+
const [k] = C(() => he(r.filter(se))), q = Ie(), [h] = C(() => ye(r)), [l] = C(() => Ke()), p = $(() => Ee({ colorScheme: m }), [m]), { store: y, dispatch: G, seal: R, history: b, subscribe: w, getCompiled: x, compileBus: D, compileErrors: I } = ot({
|
|
419
419
|
input: t,
|
|
420
420
|
data: e,
|
|
421
421
|
customPalettes: u,
|
|
422
422
|
colorScheme: m,
|
|
423
423
|
plugins: r,
|
|
424
|
-
resolveRenderer:
|
|
424
|
+
resolveRenderer: k,
|
|
425
425
|
anchorResolver: h,
|
|
426
426
|
onChange: a,
|
|
427
427
|
onError: i,
|
|
428
428
|
onWarnings: c
|
|
429
429
|
});
|
|
430
|
-
|
|
430
|
+
H(() => {
|
|
431
431
|
if (y)
|
|
432
|
-
return y.subscribe((
|
|
433
|
-
if (
|
|
432
|
+
return y.subscribe((_, M) => {
|
|
433
|
+
if (_.compiled.spec === M.compiled.spec) return;
|
|
434
434
|
const { selection: E, setSelection: B } = l.getState();
|
|
435
|
-
E.length !== 0 && B(Oe(E,
|
|
435
|
+
E.length !== 0 && B(Oe(E, _.compiled.spec));
|
|
436
436
|
});
|
|
437
437
|
}, [y, l]);
|
|
438
438
|
const S = $(() => ({
|
|
439
|
-
dispatch:
|
|
440
|
-
seal:
|
|
441
|
-
}), [
|
|
442
|
-
|
|
439
|
+
dispatch: G,
|
|
440
|
+
seal: R
|
|
441
|
+
}), [G, R]);
|
|
442
|
+
ke(o, () => ({
|
|
443
443
|
commands: S,
|
|
444
444
|
undo: b.undo,
|
|
445
445
|
redo: b.redo,
|
|
446
|
-
subscribe:
|
|
447
|
-
getCompiled:
|
|
446
|
+
subscribe: w,
|
|
447
|
+
getCompiled: x,
|
|
448
448
|
getSelection: () => l.getState().selection,
|
|
449
|
-
setSelection: (
|
|
449
|
+
setSelection: (_) => l.getState().setSelection(_),
|
|
450
450
|
subscribeSelection: l.subscribe
|
|
451
451
|
}), [
|
|
452
452
|
S,
|
|
453
453
|
b,
|
|
454
|
-
|
|
455
|
-
|
|
454
|
+
w,
|
|
455
|
+
x,
|
|
456
456
|
l
|
|
457
457
|
]);
|
|
458
|
-
const
|
|
458
|
+
const T = $(() => y ? {
|
|
459
459
|
chartId: q,
|
|
460
460
|
store: y,
|
|
461
461
|
selectionStore: l,
|
|
@@ -482,11 +482,11 @@ var st = (e) => F((t) => ({
|
|
|
482
482
|
forcedErrors: I,
|
|
483
483
|
onError: i,
|
|
484
484
|
resetKeys: [t, e],
|
|
485
|
-
children:
|
|
486
|
-
value:
|
|
485
|
+
children: T ? /* @__PURE__ */ d(me.Provider, {
|
|
486
|
+
value: T,
|
|
487
487
|
children: /* @__PURE__ */ d(ue, {
|
|
488
|
-
value:
|
|
489
|
-
children:
|
|
488
|
+
value: k,
|
|
489
|
+
children: N
|
|
490
490
|
})
|
|
491
491
|
}) : null
|
|
492
492
|
});
|
|
@@ -517,7 +517,7 @@ var fr = ({ children: e, ...t }) => /* @__PURE__ */ d("svg", {
|
|
|
517
517
|
overflow: "hidden",
|
|
518
518
|
pointerEvents: "none",
|
|
519
519
|
children: t
|
|
520
|
-
}), ct = "drqe3u0", dt = "drqe3u1", lt = "drqe3u2", ut = "drqe3u3", L = "drqe3u4", mt = "drqe3u5", ht = "drqe3u6", gt = "drqe3u7",
|
|
520
|
+
}), ct = "drqe3u0", dt = "drqe3u1", lt = "drqe3u2", ut = "drqe3u3", L = "drqe3u4", mt = "drqe3u5", ht = "drqe3u6", gt = "drqe3u7", A = "drqe3u8", pt = "drqe3u9", ft = "drqe3ua";
|
|
521
521
|
var vt = "drqe3uc", yt = "drqe3ud", bt = "drqe3ue", St = "drqe3uf";
|
|
522
522
|
var Et = "drqe3uh", Ct = "drqe3ui", te = {
|
|
523
523
|
enabled: "drqe3uk drqe3uj",
|
|
@@ -530,19 +530,19 @@ var Et = "drqe3uh", Ct = "drqe3ui", te = {
|
|
|
530
530
|
cached: "drqe3ur drqe3up",
|
|
531
531
|
untouched: "drqe3us drqe3up"
|
|
532
532
|
}, yr = ({ width: e = 380, style: t, className: r } = {}) => {
|
|
533
|
-
const { compileBus: n } = ne(), [o] = C(() => Ve()), [a, i] = C(!1), [c, u] = C(
|
|
534
|
-
|
|
533
|
+
const { compileBus: n } = ne(), [o] = C(() => Ve()), [a, i] = C(!1), [c, u] = C(Ne);
|
|
534
|
+
H(() => {
|
|
535
535
|
const { recordCompile: l } = o.getState(), p = n.getLastTrigger(), y = n.getLastCompile();
|
|
536
536
|
return p && y && l(p, y), n.subscribe(l);
|
|
537
537
|
}, [o, n]);
|
|
538
|
-
const m = Q(o, (l) => l.lastCompile),
|
|
538
|
+
const m = Q(o, (l) => l.lastCompile), N = Q(o, (l) => l.history), k = n.getCacheStats(), q = m === null && N.length === 0, h = () => {
|
|
539
539
|
u((l) => {
|
|
540
540
|
const p = !l;
|
|
541
|
-
return
|
|
541
|
+
return Te(p), p;
|
|
542
542
|
});
|
|
543
543
|
};
|
|
544
544
|
return /* @__PURE__ */ v("div", {
|
|
545
|
-
className:
|
|
545
|
+
className: we(ft, r),
|
|
546
546
|
style: {
|
|
547
547
|
width: e,
|
|
548
548
|
...t
|
|
@@ -576,13 +576,13 @@ var Et = "drqe3uh", Ct = "drqe3ui", te = {
|
|
|
576
576
|
children: "next compile reflects this toggle"
|
|
577
577
|
})]
|
|
578
578
|
}),
|
|
579
|
-
!a && !q && /* @__PURE__ */ v(
|
|
579
|
+
!a && !q && /* @__PURE__ */ v(_e, { children: [/* @__PURE__ */ d(Nt, {
|
|
580
580
|
delta: m?.stages,
|
|
581
|
-
cumulative:
|
|
582
|
-
}), /* @__PURE__ */ d(
|
|
581
|
+
cumulative: k
|
|
582
|
+
}), /* @__PURE__ */ d(Rt, { entries: N })] })
|
|
583
583
|
]
|
|
584
584
|
});
|
|
585
|
-
},
|
|
585
|
+
}, Nt = ({ delta: e, cumulative: t }) => /* @__PURE__ */ v("table", {
|
|
586
586
|
className: lt,
|
|
587
587
|
children: [/* @__PURE__ */ d("thead", { children: /* @__PURE__ */ v("tr", {
|
|
588
588
|
className: Et,
|
|
@@ -609,7 +609,7 @@ var Et = "drqe3uh", Ct = "drqe3ui", te = {
|
|
|
609
609
|
})
|
|
610
610
|
]
|
|
611
611
|
}) }), /* @__PURE__ */ d("tbody", { children: j.map((r) => {
|
|
612
|
-
const n = e?.[r], o =
|
|
612
|
+
const n = e?.[r], o = Tt(n);
|
|
613
613
|
return /* @__PURE__ */ v("tr", {
|
|
614
614
|
className: vt,
|
|
615
615
|
children: [
|
|
@@ -629,21 +629,21 @@ var Et = "drqe3uh", Ct = "drqe3ui", te = {
|
|
|
629
629
|
children: n?.misses ?? 0
|
|
630
630
|
}),
|
|
631
631
|
/* @__PURE__ */ d("td", {
|
|
632
|
-
className:
|
|
632
|
+
className: A,
|
|
633
633
|
children: n?.hits ?? 0
|
|
634
634
|
}),
|
|
635
635
|
/* @__PURE__ */ d("td", {
|
|
636
|
-
className:
|
|
636
|
+
className: A,
|
|
637
637
|
children: t[r].misses
|
|
638
638
|
}),
|
|
639
639
|
/* @__PURE__ */ d("td", {
|
|
640
|
-
className:
|
|
640
|
+
className: A,
|
|
641
641
|
children: t[r].hits
|
|
642
642
|
})
|
|
643
643
|
]
|
|
644
644
|
}, r);
|
|
645
645
|
}) })]
|
|
646
|
-
}),
|
|
646
|
+
}), Rt = ({ entries: e }) => e.length === 0 ? null : /* @__PURE__ */ v("div", {
|
|
647
647
|
className: yt,
|
|
648
648
|
children: [/* @__PURE__ */ d("div", {
|
|
649
649
|
className: Ct,
|
|
@@ -675,12 +675,12 @@ var Et = "drqe3uh", Ct = "drqe3ui", te = {
|
|
|
675
675
|
]
|
|
676
676
|
}, t.id);
|
|
677
677
|
})]
|
|
678
|
-
}),
|
|
678
|
+
}), Tt = (e) => !e || e.hits === 0 && e.misses === 0 ? "untouched" : e.misses > 0 ? "ran" : "cached", qt = (e, t) => {
|
|
679
679
|
let r = 0;
|
|
680
680
|
for (const n of j) t(e[n]) && (r += 1);
|
|
681
681
|
return r;
|
|
682
682
|
}, ie = (e) => e >= 10 ? `${e.toFixed(0)}ms` : `${e.toFixed(2)}ms`, br = () => {
|
|
683
|
-
const { history: e } = ne(), { stack: t, undo: r, redo: n } = e, o = f((c) => t.subscribe(c), [t]), a = f(() => t.getSnapshot(), [t]), i =
|
|
683
|
+
const { history: e } = ne(), { stack: t, undo: r, redo: n } = e, o = f((c) => t.subscribe(c), [t]), a = f(() => t.getSnapshot(), [t]), i = Ge(o, a, a);
|
|
684
684
|
return $(() => ({
|
|
685
685
|
...i,
|
|
686
686
|
undo: r,
|
|
@@ -703,12 +703,12 @@ var Et = "drqe3uh", Ct = "drqe3ui", te = {
|
|
|
703
703
|
"submit"
|
|
704
704
|
]), Sr = (e, t = {}) => {
|
|
705
705
|
const { target: r, enabled: n = !0 } = t;
|
|
706
|
-
|
|
707
|
-
const o =
|
|
706
|
+
H(() => {
|
|
707
|
+
const o = kt(r);
|
|
708
708
|
if (!n || !o) return;
|
|
709
709
|
const a = (i) => {
|
|
710
|
-
if (!
|
|
711
|
-
const c =
|
|
710
|
+
if (!Gt(i) || i.defaultPrevented || _t(i.target)) return;
|
|
711
|
+
const c = ge(i);
|
|
712
712
|
if (!c) return;
|
|
713
713
|
const u = e.current;
|
|
714
714
|
u && (c === "undo" ? u.undo() : u.redo()) && i.preventDefault();
|
|
@@ -719,46 +719,46 @@ var Et = "drqe3uh", Ct = "drqe3ui", te = {
|
|
|
719
719
|
r,
|
|
720
720
|
n
|
|
721
721
|
]);
|
|
722
|
-
},
|
|
722
|
+
}, kt = (e) => e === void 0 ? window : e !== null && "current" in e ? e.current : e, Gt = (e) => "key" in e, _t = (e) => e instanceof HTMLInputElement ? !It.has(e.type) : e instanceof HTMLElement ? e.isContentEditable || e.tagName === "TEXTAREA" : !1;
|
|
723
723
|
export {
|
|
724
724
|
Pt as BrandMark,
|
|
725
|
-
|
|
725
|
+
$t as CanvasTextMeasurer,
|
|
726
726
|
Dt as DefaultFooter,
|
|
727
727
|
sr as DefaultGrid,
|
|
728
|
-
|
|
729
|
-
|
|
728
|
+
Zt as DefaultHeader,
|
|
729
|
+
xt as DefaultSwatch,
|
|
730
730
|
At as DefaultTooltip,
|
|
731
731
|
yr as DevToolsPanel,
|
|
732
732
|
er as GRAPH_MODES,
|
|
733
733
|
Le as GraphErrorBoundary,
|
|
734
734
|
Z as GraphErrorPanel,
|
|
735
735
|
at as GraphProvider,
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
736
|
+
Ft as GraphRenderer,
|
|
737
|
+
jt as HoverProvider,
|
|
738
|
+
Bt as TextMeasurerProvider,
|
|
739
739
|
rr as ThemeProvider,
|
|
740
740
|
vr as UnitBoxSvg,
|
|
741
741
|
fr as UnitSpaceSvg,
|
|
742
742
|
pr as createGraphyKit,
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
743
|
+
Qt as darkTheme,
|
|
744
|
+
or as defineGeomRenderer,
|
|
745
|
+
Yt as lightTheme,
|
|
746
|
+
Mt as lightenCss,
|
|
747
747
|
Oe as pruneSelection,
|
|
748
748
|
Lt as resolveBrandMarkVisual,
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
749
|
+
Ht as useCompiledSelector,
|
|
750
|
+
Wt as useElementScreenRect,
|
|
751
|
+
Xt as useGeomHitTest,
|
|
752
|
+
Vt as useGeomHover,
|
|
753
753
|
tr as useGraphCommands,
|
|
754
|
-
|
|
754
|
+
zt as useGraphHandle,
|
|
755
755
|
br as useGraphHistory,
|
|
756
756
|
Sr as useGraphHistoryShortcuts,
|
|
757
|
-
|
|
757
|
+
Ut as useGraphSelection,
|
|
758
758
|
nr as useHandleCompiled,
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
759
|
+
Kt as useHoverState,
|
|
760
|
+
Ot as useStyleReaders,
|
|
761
|
+
ir as useStyleResolver,
|
|
762
|
+
Jt as useTextMeasurer,
|
|
763
763
|
cr as vars
|
|
764
764
|
};
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"visualization",
|
|
12
12
|
"renderer"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.9.0-beta.
|
|
14
|
+
"version": "1.9.0-beta.1789369549494",
|
|
15
15
|
"type": "module",
|
|
16
16
|
"sideEffects": [
|
|
17
17
|
"**/*.css.ts",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"react-colorful": "^5.6.1",
|
|
56
56
|
"react-intl": "^8.1.3",
|
|
57
57
|
"zustand": "^5.0.12",
|
|
58
|
-
"@graphysdk/viz-engine": "1.9.0-beta.
|
|
58
|
+
"@graphysdk/viz-engine": "1.9.0-beta.1789369549494"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"@tiptap/core": "^3.0.0",
|