likec4 1.59.3 → 1.59.4
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/__app__/src/chunks/AIChat.mjs +108 -108
- package/__app__/src/chunks/LikeC4Styles.mjs +752 -604
- package/__app__/src/chunks/ProjectsOverview.mjs +72 -72
- package/__app__/src/chunks/es.mjs +1 -1
- package/__app__/src/chunks/hooks.mjs +94 -91
- package/__app__/src/chunks/libs/@floating-ui.mjs +3 -3
- package/__app__/src/chunks/libs/@mantine.mjs +1609 -892
- package/__app__/src/chunks/libs/@tanstack-ai.mjs +2 -2
- package/__app__/src/chunks/libs/@tanstack.mjs +4 -10
- package/__app__/src/chunks/libs/@xyflow/react.mjs +4 -4
- package/__app__/src/chunks/libs/d3.mjs +4 -9
- package/__app__/src/chunks/libs/fast-equals.mjs +61 -49
- package/__app__/src/chunks/libs/framer.mjs +6 -6
- package/__app__/src/chunks/styled-system.mjs +2578 -124
- package/__app__/src/main.mjs +21537 -20155
- package/__app__/src/style.css +1 -1
- package/config/schema.json +14 -0
- package/dist/app/render-view-client.css +1 -1
- package/dist/app/render-view-client.js +99 -105
- package/dist/chunks/filenames.mjs +6 -6
- package/dist/chunks/index.d.mts +7 -1
- package/dist/chunks/index2.d.mts +38 -21
- package/dist/chunks/libs/@chevrotain/gast.mjs +1 -1
- package/dist/chunks/libs/@chevrotain/types.d.mts +108 -0
- package/dist/chunks/libs/@logtape/logtape.mjs +4 -4
- package/dist/chunks/libs/langium.d.mts +1777 -16
- package/dist/chunks/libs/langium.mjs +4 -4
- package/dist/chunks/libs/p-queue.mjs +1 -1
- package/dist/chunks/libs/package-manager-detector.mjs +1 -1
- package/dist/chunks/libs/pako.mjs +2 -2
- package/dist/chunks/libs/picomatch.mjs +1 -1
- package/dist/chunks/libs/pretty-ms.mjs +1 -1
- package/dist/chunks/libs/remeda.mjs +1 -1
- package/dist/chunks/libs/ufo.mjs +1 -1
- package/dist/chunks/libs/unstorage.mjs +1 -1
- package/dist/chunks/libs/zod.d.mts +1717 -17
- package/dist/chunks/node.mjs +58 -59
- package/dist/chunks/vite-plugin.mjs +15 -12
- package/dist/cli/index.d.mts +1 -1
- package/dist/cli/index.mjs +104 -88
- package/dist/index.d.mts +3 -3
- package/dist/model/index.d.mts +4 -4
- package/dist/vite-plugin/index.d.mts +2 -2
- package/dist/vite-plugin/internal/index.d.mts +15 -15
- package/dist/vite-plugin/internal/index.mjs +72 -27
- package/package.json +28 -28
- package/react/index.d.mts +22720 -1460
- package/react/index.mjs +30391 -25072
- package/vite-plugin-modules.d.ts +4 -2
|
@@ -413,7 +413,7 @@ var f = /* @__PURE__ */ e(((e) => {
|
|
|
413
413
|
e.parse = parseJSON;
|
|
414
414
|
})))(), PartialJSONParser = class {
|
|
415
415
|
parse(e) {
|
|
416
|
-
if (
|
|
416
|
+
if (e && e.trim() !== "") try {
|
|
417
417
|
return (0, p.parse)(e);
|
|
418
418
|
} catch {
|
|
419
419
|
return;
|
|
@@ -1430,7 +1430,7 @@ var ChatClient = class {
|
|
|
1430
1430
|
}
|
|
1431
1431
|
subscribe(e) {
|
|
1432
1432
|
let t = e?.restart === !0;
|
|
1433
|
-
this.isSubscribed
|
|
1433
|
+
(!this.isSubscribed || t) && (this.isSubscribed && t && this.abortSubscriptionLoop(), this.setIsSubscribed(!0), this.setConnectionStatus("connecting"), this.startSubscription());
|
|
1434
1434
|
}
|
|
1435
1435
|
unsubscribe() {
|
|
1436
1436
|
this.cancelInFlightStream({
|
|
@@ -559,7 +559,7 @@ function encodePathParam(e, t) {
|
|
|
559
559
|
}
|
|
560
560
|
function matchPathname(e, t, n) {
|
|
561
561
|
let r = matchByPath(e, t, n);
|
|
562
|
-
if (!
|
|
562
|
+
if (!n.to || r) return r ?? {};
|
|
563
563
|
}
|
|
564
564
|
function removeBasepath(e, t, n = !1) {
|
|
565
565
|
let r = n ? e : e.toLowerCase(), i = n ? t : t.toLowerCase();
|
|
@@ -1250,7 +1250,7 @@ var RouterCore = class {
|
|
|
1250
1250
|
].find((t) => t.id === e), this.loadMatches = async ({ location: e, matches: t, preload: n, onReady: r, updateMatch: i = this.updateMatch, sync: a }) => {
|
|
1251
1251
|
let o, s = !1, triggerOnReady = async () => {
|
|
1252
1252
|
s || (s = !0, await r?.());
|
|
1253
|
-
}, resolvePreload = (e) =>
|
|
1253
|
+
}, resolvePreload = (e) => !(!n || this.state.matches.find((t) => t.id === e));
|
|
1254
1254
|
!this.isServer && !this.state.matches.length && triggerOnReady();
|
|
1255
1255
|
let handleRedirectAndNotFound = (n, r) => {
|
|
1256
1256
|
var a, o, c, l;
|
|
@@ -2047,12 +2047,6 @@ function useNavigate(e) {
|
|
|
2047
2047
|
...t
|
|
2048
2048
|
}), [e?.from, n]);
|
|
2049
2049
|
}
|
|
2050
|
-
function Navigate(e) {
|
|
2051
|
-
let n = useRouter(), r = t.useRef(null);
|
|
2052
|
-
return t.useEffect(() => {
|
|
2053
|
-
r.current !== e && (n.navigate({ ...e }), r.current = e);
|
|
2054
|
-
}, [n, e]), null;
|
|
2055
|
-
}
|
|
2056
2050
|
//#endregion
|
|
2057
2051
|
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.114.27_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@tanstack/react-router/dist/esm/route.js
|
|
2058
2052
|
var Route = class extends BaseRoute {
|
|
@@ -2389,7 +2383,7 @@ function usePrevious(e) {
|
|
|
2389
2383
|
function useIntersectionObserver(e, n, r = {}, i = {}) {
|
|
2390
2384
|
let a = t.useRef(typeof IntersectionObserver == "function"), o = t.useRef(null);
|
|
2391
2385
|
return t.useEffect(() => {
|
|
2392
|
-
if (
|
|
2386
|
+
if (e.current && a.current && !i.disabled) return o.current = new IntersectionObserver(([e]) => {
|
|
2393
2387
|
n(e);
|
|
2394
2388
|
}, r), o.current.observe(e.current), () => {
|
|
2395
2389
|
var e;
|
|
@@ -2691,4 +2685,4 @@ function RouterProvider({ router: e, ...t }) {
|
|
|
2691
2685
|
});
|
|
2692
2686
|
}
|
|
2693
2687
|
//#endregion
|
|
2694
|
-
export {
|
|
2688
|
+
export { createHashHistory as _, P as a, useNavigate as c, useRouter as d, stripSearchParams as f, createBrowserHistory as g, notFound as h, useMatches as i, useSearch as l, isNotFound as m, createRouter as n, createFileRoute as o, redirect as p, I as r, createRootRouteWithContext as s, RouterProvider as t, useParams as u };
|
|
@@ -2246,7 +2246,7 @@ function getSelectionChanges(e, t = /* @__PURE__ */ new Set(), n = !1) {
|
|
|
2246
2246
|
let r = [];
|
|
2247
2247
|
for (let [i, a] of e) {
|
|
2248
2248
|
let e = t.has(i);
|
|
2249
|
-
|
|
2249
|
+
(a.selected !== void 0 || e) && a.selected !== e && (n && (a.selected = e), r.push(createSelectionChange(a.id, e)));
|
|
2250
2250
|
}
|
|
2251
2251
|
return r;
|
|
2252
2252
|
}
|
|
@@ -2845,7 +2845,7 @@ function useDrag({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelec
|
|
|
2845
2845
|
s,
|
|
2846
2846
|
e
|
|
2847
2847
|
]), h(() => {
|
|
2848
|
-
t
|
|
2848
|
+
!t && e.current && u.current && u.current.update({
|
|
2849
2849
|
noDragClassName: n,
|
|
2850
2850
|
handleSelector: r,
|
|
2851
2851
|
domNode: e.current,
|
|
@@ -4271,7 +4271,7 @@ var Ye = f(GraphViewComponent), Xe = createDevWarn("React Flow", "https://reactf
|
|
|
4271
4271
|
1
|
|
4272
4272
|
];
|
|
4273
4273
|
if (o && i && a) {
|
|
4274
|
-
let { x: e, y: t, zoom: n } = getViewportForBounds(getInternalNodesBounds(p, { filter: (e) =>
|
|
4274
|
+
let { x: e, y: t, zoom: n } = getViewportForBounds(getInternalNodesBounds(p, { filter: (e) => !(!e.width && !e.initialWidth || !e.height && !e.initialHeight) }), i, a, c, l, s?.padding ?? .1);
|
|
4275
4275
|
S = [
|
|
4276
4276
|
e,
|
|
4277
4277
|
t,
|
|
@@ -5197,7 +5197,7 @@ var scaleSelector = (e) => (t) => e ? `${Math.max(1 / t.transform[2], 1)}` : voi
|
|
|
5197
5197
|
function ResizeControl({ nodeId: e, position: t, variant: n = K.Handle, className: r, style: i = void 0, children: a, color: o, minWidth: s = 10, minHeight: c = 10, maxWidth: l = Number.MAX_VALUE, maxHeight: u = Number.MAX_VALUE, keepAspectRatio: d = !1, resizeDirection: f, autoScale: m = !0, shouldResize: g, onResizeStart: _, onResize: y, onResizeEnd: b }) {
|
|
5198
5198
|
let S = useNodeId(), C = typeof e == "string" ? e : S, w = useStoreApi(), T = v(null), E = n === K.Handle, D = useStore(p(scaleSelector(E && m), [E, m]), shallow$1), O = v(null), k = t ?? ct[n];
|
|
5199
5199
|
h(() => {
|
|
5200
|
-
if (
|
|
5200
|
+
if (T.current && C) return O.current ||= XYResizer({
|
|
5201
5201
|
domNode: T.current,
|
|
5202
5202
|
nodeId: C,
|
|
5203
5203
|
getStoreItems: () => {
|
|
@@ -901,7 +901,7 @@ function drag_default() {
|
|
|
901
901
|
e.on("mousedown.drag", mousedowned).filter(r).on("touchstart.drag", touchstarted).on("touchmove.drag", touchmoved, s).on("touchend.drag touchcancel.drag", touchended).style("touch-action", "none").style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
|
|
902
902
|
}
|
|
903
903
|
function mousedowned(n, r) {
|
|
904
|
-
if (!
|
|
904
|
+
if (!m && e.call(this, n, r)) {
|
|
905
905
|
var a = beforestart(this, t.call(this, n, r), n, r, "mouse");
|
|
906
906
|
a && (select_default$1(n.view).on("mousemove.drag", mousemoved, c).on("mouseup.drag", mouseupped, c), nodrag_default(n.view), nopropagation$1(n), p = !1, d = n.clientX, f = n.clientY, a("start", n));
|
|
907
907
|
}
|
|
@@ -917,14 +917,10 @@ function drag_default() {
|
|
|
917
917
|
select_default$1(e.view).on("mousemove.drag mouseup.drag", null), yesdrag(e.view, p), noevent_default$1(e), a.mouse("end", e);
|
|
918
918
|
}
|
|
919
919
|
function touchstarted(n, r) {
|
|
920
|
-
if (e.call(this, n, r))
|
|
921
|
-
var a = n.changedTouches, o = t.call(this, n, r), s = a.length, c, l;
|
|
922
|
-
for (c = 0; c < s; ++c) (l = beforestart(this, o, n, r, a[c].identifier, a[c])) && (nopropagation$1(n), l("start", n, a[c]));
|
|
923
|
-
}
|
|
920
|
+
if (e.call(this, n, r)) for (var a = n.changedTouches, o = t.call(this, n, r), s = a.length, c = 0, l; c < s; ++c) (l = beforestart(this, o, n, r, a[c].identifier, a[c])) && (nopropagation$1(n), l("start", n, a[c]));
|
|
924
921
|
}
|
|
925
922
|
function touchmoved(e) {
|
|
926
|
-
var t = e.changedTouches, n = t.length, r, o;
|
|
927
|
-
for (r = 0; r < n; ++r) (o = a[t[r].identifier]) && (noevent_default$1(e), o("drag", e, t[r]));
|
|
923
|
+
for (var t = e.changedTouches, n = t.length, r = 0, o; r < n; ++r) (o = a[t[r].identifier]) && (noevent_default$1(e), o("drag", e, t[r]));
|
|
928
924
|
}
|
|
929
925
|
function touchended(e) {
|
|
930
926
|
var t = e.changedTouches, n = t.length, r, o;
|
|
@@ -1357,8 +1353,7 @@ function isNumberArray(e) {
|
|
|
1357
1353
|
//#endregion
|
|
1358
1354
|
//#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/array.js
|
|
1359
1355
|
function genericArray(e, t) {
|
|
1360
|
-
var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, a = Array(r), o = Array(n), s;
|
|
1361
|
-
for (s = 0; s < r; ++s) a[s] = value_default(e[s], t[s]);
|
|
1356
|
+
for (var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, a = Array(r), o = Array(n), s = 0; s < r; ++s) a[s] = value_default(e[s], t[s]);
|
|
1362
1357
|
for (; s < n; ++s) o[s] = t[s];
|
|
1363
1358
|
return function(e) {
|
|
1364
1359
|
for (s = 0; s < r; ++s) o[s] = a[s](e);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../rolldown-runtime.mjs";
|
|
2
|
-
//#region ../../node_modules/.pnpm/fast-equals@6.0.
|
|
2
|
+
//#region ../../node_modules/.pnpm/fast-equals@6.0.3/node_modules/fast-equals/dist/es/index.mjs
|
|
3
3
|
var { getOwnPropertyNames: e, getOwnPropertySymbols: t } = Object, { hasOwnProperty: n } = Object.prototype;
|
|
4
4
|
function combineComparators(e, t) {
|
|
5
5
|
return function isEqual(n, r, i) {
|
|
@@ -20,7 +20,7 @@ function getStrictProperties(n) {
|
|
|
20
20
|
let r = t(n);
|
|
21
21
|
return r.length ? e(n).concat(r) : e(n);
|
|
22
22
|
}
|
|
23
|
-
var r = Object.hasOwn || ((e, t) => n.call(e, t)), i = "__v", a = "__o", o = "_owner", { getOwnPropertyDescriptor:
|
|
23
|
+
var r = Object.hasOwn || ((e, t) => n.call(e, t)), i = "__v", a = "__o", o = "_owner", s = typeof Float16Array < "u", { getOwnPropertyDescriptor: c, keys: l } = Object, u = Object.is || function sameValueEqual(e, t) {
|
|
24
24
|
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
|
|
25
25
|
};
|
|
26
26
|
function strictEqual(e, t) {
|
|
@@ -39,10 +39,10 @@ function areDataViewsEqual(e, t) {
|
|
|
39
39
|
return e.byteLength === t.byteLength && areTypedArraysEqual(new Uint8Array(e.buffer, e.byteOffset, e.byteLength), new Uint8Array(t.buffer, t.byteOffset, t.byteLength));
|
|
40
40
|
}
|
|
41
41
|
function areDatesEqual(e, t) {
|
|
42
|
-
return
|
|
42
|
+
return u(e.getTime(), t.getTime());
|
|
43
43
|
}
|
|
44
|
-
function areErrorsEqual(e, t) {
|
|
45
|
-
return e.name === t.name && e.message === t.message && e.
|
|
44
|
+
function areErrorsEqual(e, t, n) {
|
|
45
|
+
return e.name === t.name && e.message === t.message && e.stack === t.stack && n.equals(e.cause, t.cause, "cause", "cause", e, t, n);
|
|
46
46
|
}
|
|
47
47
|
function areMapsEqual(e, t, n) {
|
|
48
48
|
let r = e.size;
|
|
@@ -69,20 +69,20 @@ function areMapsEqual(e, t, n) {
|
|
|
69
69
|
return !0;
|
|
70
70
|
}
|
|
71
71
|
function areObjectsEqual(e, t, n) {
|
|
72
|
-
let r =
|
|
73
|
-
if (
|
|
72
|
+
let r = l(e), i = r.length;
|
|
73
|
+
if (l(t).length !== i) return !1;
|
|
74
74
|
for (; i-- > 0;) if (!isPropertyEqual(e, t, n, r[i])) return !1;
|
|
75
75
|
return !0;
|
|
76
76
|
}
|
|
77
77
|
function areObjectsEqualStrict(e, t, n) {
|
|
78
78
|
let r = getStrictProperties(e), i = r.length;
|
|
79
79
|
if (getStrictProperties(t).length !== i) return !1;
|
|
80
|
-
let a, o,
|
|
81
|
-
for (; i-- > 0;) if (a = r[i], !isPropertyEqual(e, t, n, a) || (o =
|
|
80
|
+
let a, o, s;
|
|
81
|
+
for (; i-- > 0;) if (a = r[i], !isPropertyEqual(e, t, n, a) || (o = c(e, a), s = c(t, a), (o || s) && (!o || !s || o.configurable !== s.configurable || o.enumerable !== s.enumerable || o.writable !== s.writable))) return !1;
|
|
82
82
|
return !0;
|
|
83
83
|
}
|
|
84
84
|
function arePrimitiveWrappersEqual(e, t) {
|
|
85
|
-
return
|
|
85
|
+
return u(e.valueOf(), t.valueOf());
|
|
86
86
|
}
|
|
87
87
|
function areRegExpsEqual(e, t) {
|
|
88
88
|
return e.source === t.source && e.flags === t.flags;
|
|
@@ -108,18 +108,29 @@ function areSetsEqual(e, t, n) {
|
|
|
108
108
|
function areTypedArraysEqual(e, t) {
|
|
109
109
|
let n = e.length;
|
|
110
110
|
if (t.length !== n || e.byteOffset !== t.byteOffset) return !1;
|
|
111
|
+
if (e instanceof Float64Array || e instanceof Float32Array || s && e instanceof Float16Array) {
|
|
112
|
+
for (; n-- > 0;) if (e[n] !== t[n] && (e[n] === e[n] || t[n] === t[n])) return !1;
|
|
113
|
+
return !0;
|
|
114
|
+
}
|
|
111
115
|
for (; n-- > 0;) if (e[n] !== t[n]) return !1;
|
|
112
116
|
return !0;
|
|
113
117
|
}
|
|
114
118
|
function areUrlsEqual(e, t) {
|
|
115
|
-
return e.
|
|
119
|
+
return e.href === t.href || e.protocol === t.protocol && e.username === t.username && e.password === t.password && e.host === t.host && e.pathname === t.pathname && e.hash === t.hash && areSearchParamsEqual(e.searchParams, t.searchParams);
|
|
120
|
+
}
|
|
121
|
+
function areSearchParamsEqual(e, t) {
|
|
122
|
+
let n = e.toString(), r = t.toString();
|
|
123
|
+
return n === r || sortSearchParams(n) === sortSearchParams(r);
|
|
124
|
+
}
|
|
125
|
+
function sortSearchParams(e) {
|
|
126
|
+
return e.split("&").sort().join("&");
|
|
116
127
|
}
|
|
117
128
|
function isPropertyEqual(e, t, n, s) {
|
|
118
129
|
return (s === o || s === a || s === i) && (e.$$typeof || t.$$typeof) ? !0 : r(t, s) && n.equals(e[s], t[s], s, s, e, t, n);
|
|
119
130
|
}
|
|
120
|
-
var
|
|
131
|
+
var d = Object.prototype.toString;
|
|
121
132
|
function createEqualityComparator(e) {
|
|
122
|
-
let t = createSupportedComparatorMap(e), { areArraysEqual: n, areDatesEqual: r, areFunctionsEqual: i, areMapsEqual: a, areNumbersEqual: o, areObjectsEqual: s, areRegExpsEqual: c, areSetsEqual: l, getUnsupportedCustomComparator:
|
|
133
|
+
let t = createSupportedComparatorMap(e), { areArraysEqual: n, areDatesEqual: r, areFunctionsEqual: i, areMapsEqual: a, areNumbersEqual: o, areObjectsEqual: s, areRegExpsEqual: c, areSetsEqual: l, getUnsupportedCustomComparator: u } = e;
|
|
123
134
|
return function comparator(e, f, p) {
|
|
124
135
|
if (e === f) return !0;
|
|
125
136
|
if (e == null || f == null) return !1;
|
|
@@ -136,9 +147,9 @@ function createEqualityComparator(e) {
|
|
|
136
147
|
if (h === Set) return l(e, f, p);
|
|
137
148
|
if (h === Promise) return !1;
|
|
138
149
|
if (Array.isArray(e)) return n(e, f, p);
|
|
139
|
-
let g =
|
|
150
|
+
let g = d.call(e), _ = t[g];
|
|
140
151
|
if (_) return _(e, f, p);
|
|
141
|
-
let v =
|
|
152
|
+
let v = u && u(e, f, p, g);
|
|
142
153
|
return v ? v(e, f, p) : !1;
|
|
143
154
|
};
|
|
144
155
|
}
|
|
@@ -148,10 +159,10 @@ function createEqualityComparatorConfig({ circular: e, createCustomConfig: t, st
|
|
|
148
159
|
areArraysEqual: n ? areObjectsEqualStrict : areArraysEqual,
|
|
149
160
|
areDataViewsEqual,
|
|
150
161
|
areDatesEqual,
|
|
151
|
-
areErrorsEqual,
|
|
162
|
+
areErrorsEqual: n ? combineComparators(areErrorsEqual, areObjectsEqualStrict) : combineComparators(areErrorsEqual, areObjectsEqual),
|
|
152
163
|
areFunctionsEqual: strictEqual,
|
|
153
164
|
areMapsEqual: n ? combineComparators(areMapsEqual, areObjectsEqualStrict) : areMapsEqual,
|
|
154
|
-
areNumbersEqual:
|
|
165
|
+
areNumbersEqual: u,
|
|
155
166
|
areObjectsEqual: n ? areObjectsEqualStrict : areObjectsEqual,
|
|
156
167
|
arePrimitiveWrappersEqual,
|
|
157
168
|
areRegExpsEqual,
|
|
@@ -161,12 +172,13 @@ function createEqualityComparatorConfig({ circular: e, createCustomConfig: t, st
|
|
|
161
172
|
getUnsupportedCustomComparator: void 0
|
|
162
173
|
};
|
|
163
174
|
if (t && (r = Object.assign({}, r, t(r))), e) {
|
|
164
|
-
let e = createIsCircular(r.areArraysEqual), t = createIsCircular(r.
|
|
175
|
+
let e = createIsCircular(r.areArraysEqual), t = createIsCircular(r.areErrorsEqual), n = createIsCircular(r.areMapsEqual), i = createIsCircular(r.areObjectsEqual), a = createIsCircular(r.areSetsEqual);
|
|
165
176
|
r = Object.assign({}, r, {
|
|
166
177
|
areArraysEqual: e,
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
178
|
+
areErrorsEqual: t,
|
|
179
|
+
areMapsEqual: n,
|
|
180
|
+
areObjectsEqual: i,
|
|
181
|
+
areSetsEqual: a
|
|
170
182
|
});
|
|
171
183
|
}
|
|
172
184
|
return r;
|
|
@@ -204,55 +216,55 @@ function createIsEqual({ circular: e, comparator: t, createState: n, equals: r,
|
|
|
204
216
|
return t(e, n, a);
|
|
205
217
|
};
|
|
206
218
|
}
|
|
207
|
-
function createSupportedComparatorMap({ areArrayBuffersEqual: e, areArraysEqual: t, areDataViewsEqual: n, areDatesEqual: r, areErrorsEqual: i, areFunctionsEqual: a, areMapsEqual: o,
|
|
219
|
+
function createSupportedComparatorMap({ areArrayBuffersEqual: e, areArraysEqual: t, areDataViewsEqual: n, areDatesEqual: r, areErrorsEqual: i, areFunctionsEqual: a, areMapsEqual: o, areObjectsEqual: s, arePrimitiveWrappersEqual: c, areRegExpsEqual: l, areSetsEqual: u, areTypedArraysEqual: d, areUrlsEqual: f }) {
|
|
208
220
|
return {
|
|
209
|
-
"[object Arguments]":
|
|
221
|
+
"[object Arguments]": s,
|
|
210
222
|
"[object Array]": t,
|
|
211
223
|
"[object ArrayBuffer]": e,
|
|
212
224
|
"[object AsyncGeneratorFunction]": a,
|
|
213
|
-
"[object BigInt]":
|
|
214
|
-
"[object BigInt64Array]":
|
|
215
|
-
"[object BigUint64Array]":
|
|
216
|
-
"[object Boolean]":
|
|
225
|
+
"[object BigInt]": c,
|
|
226
|
+
"[object BigInt64Array]": d,
|
|
227
|
+
"[object BigUint64Array]": d,
|
|
228
|
+
"[object Boolean]": c,
|
|
217
229
|
"[object DataView]": n,
|
|
218
230
|
"[object Date]": r,
|
|
219
231
|
"[object Error]": i,
|
|
220
|
-
"[object Float16Array]":
|
|
221
|
-
"[object Float32Array]":
|
|
222
|
-
"[object Float64Array]":
|
|
232
|
+
"[object Float16Array]": d,
|
|
233
|
+
"[object Float32Array]": d,
|
|
234
|
+
"[object Float64Array]": d,
|
|
223
235
|
"[object Function]": a,
|
|
224
236
|
"[object GeneratorFunction]": a,
|
|
225
|
-
"[object Int8Array]":
|
|
226
|
-
"[object Int16Array]":
|
|
227
|
-
"[object Int32Array]":
|
|
237
|
+
"[object Int8Array]": d,
|
|
238
|
+
"[object Int16Array]": d,
|
|
239
|
+
"[object Int32Array]": d,
|
|
228
240
|
"[object Map]": o,
|
|
229
|
-
"[object Number]":
|
|
230
|
-
"[object Object]": (e, t, n) => typeof e.then != "function" && typeof t.then != "function" &&
|
|
231
|
-
"[object RegExp]":
|
|
232
|
-
"[object Set]":
|
|
233
|
-
"[object String]":
|
|
234
|
-
"[object URL]":
|
|
235
|
-
"[object Uint8Array]":
|
|
236
|
-
"[object Uint8ClampedArray]":
|
|
237
|
-
"[object Uint16Array]":
|
|
238
|
-
"[object Uint32Array]":
|
|
241
|
+
"[object Number]": c,
|
|
242
|
+
"[object Object]": (e, t, n) => typeof e.then != "function" && typeof t.then != "function" && s(e, t, n),
|
|
243
|
+
"[object RegExp]": l,
|
|
244
|
+
"[object Set]": u,
|
|
245
|
+
"[object String]": c,
|
|
246
|
+
"[object URL]": f,
|
|
247
|
+
"[object Uint8Array]": d,
|
|
248
|
+
"[object Uint8ClampedArray]": d,
|
|
249
|
+
"[object Uint16Array]": d,
|
|
250
|
+
"[object Uint32Array]": d
|
|
239
251
|
};
|
|
240
252
|
}
|
|
241
|
-
var
|
|
253
|
+
var f = createCustomEqual();
|
|
242
254
|
createCustomEqual({ strict: !0 }), createCustomEqual({ circular: !0 }), createCustomEqual({
|
|
243
255
|
circular: !0,
|
|
244
256
|
strict: !0
|
|
245
257
|
});
|
|
246
|
-
var
|
|
258
|
+
var p = createCustomEqual({ createInternalComparator: () => u });
|
|
247
259
|
createCustomEqual({
|
|
248
260
|
strict: !0,
|
|
249
|
-
createInternalComparator: () =>
|
|
261
|
+
createInternalComparator: () => u
|
|
250
262
|
}), createCustomEqual({
|
|
251
263
|
circular: !0,
|
|
252
|
-
createInternalComparator: () =>
|
|
264
|
+
createInternalComparator: () => u
|
|
253
265
|
}), createCustomEqual({
|
|
254
266
|
circular: !0,
|
|
255
|
-
createInternalComparator: () =>
|
|
267
|
+
createInternalComparator: () => u,
|
|
256
268
|
strict: !0
|
|
257
269
|
});
|
|
258
270
|
function createCustomEqual(e = {}) {
|
|
@@ -266,4 +278,4 @@ function createCustomEqual(e = {}) {
|
|
|
266
278
|
});
|
|
267
279
|
}
|
|
268
280
|
//#endregion
|
|
269
|
-
export {
|
|
281
|
+
export { p as n, f as t };
|
|
@@ -3593,7 +3593,7 @@ function createProjectionNode$1({ attachResizeListener: e, defaultParent: t, mea
|
|
|
3593
3593
|
});
|
|
3594
3594
|
}
|
|
3595
3595
|
updateSnapshot() {
|
|
3596
|
-
this.snapshot
|
|
3596
|
+
!this.snapshot && this.instance && (this.snapshot = this.measure(), this.snapshot && !calcLength(this.snapshot.measuredBox.x) && !calcLength(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
|
|
3597
3597
|
}
|
|
3598
3598
|
updateLayout() {
|
|
3599
3599
|
if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty)) return;
|
|
@@ -3695,7 +3695,7 @@ function createProjectionNode$1({ attachResizeListener: e, defaultParent: t, mea
|
|
|
3695
3695
|
if (!this.layout || !(r || i)) return;
|
|
3696
3696
|
this.resolvedRelativeTargetAt = M.timestamp;
|
|
3697
3697
|
let a = this.getClosestProjectingParent();
|
|
3698
|
-
a && this.linkedParentVersion !== a.layoutVersion && !a.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()),
|
|
3698
|
+
a && this.linkedParentVersion !== a.layoutVersion && !a.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), (this.relativeTarget || this.targetDelta) && (this.target || (this.target = createBox(), this.targetWithTransforms = createBox()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), calcRelativeBox(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : copyBoxInto(this.target, this.layout.layoutBox), applyBoxDelta(this.target, this.targetDelta)) : copyBoxInto(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && !!a.resumingFrom == !!this.resumingFrom && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), X.value && Q.calculatedTargetDeltas++);
|
|
3699
3699
|
}
|
|
3700
3700
|
getClosestProjectingParent() {
|
|
3701
3701
|
if (!(!this.parent || hasScale(this.parent.latestValues) || has2DTranslate(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
|
|
@@ -3743,7 +3743,7 @@ function createProjectionNode$1({ attachResizeListener: e, defaultParent: t, mea
|
|
|
3743
3743
|
setAnimationOrigin(e, t = !1, n) {
|
|
3744
3744
|
let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = createDelta();
|
|
3745
3745
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !t;
|
|
3746
|
-
let s = createBox(), c = (r ? r.source : void 0) !== (this.layout ? this.layout.source : void 0), l = this.getStack(), u = !l || l.members.length <= 1, d =
|
|
3746
|
+
let s = createBox(), c = (r ? r.source : void 0) !== (this.layout ? this.layout.source : void 0), l = this.getStack(), u = !l || l.members.length <= 1, d = !(!c || u || this.options.crossfade !== !0 || this.path.some(hasOpacityCrossfade));
|
|
3747
3747
|
this.animationProgress = 0;
|
|
3748
3748
|
let f, p = n?.interpolateProjection(e);
|
|
3749
3749
|
this.mixTargetDelta = (t) => {
|
|
@@ -3776,7 +3776,7 @@ function createProjectionNode$1({ attachResizeListener: e, defaultParent: t, mea
|
|
|
3776
3776
|
}
|
|
3777
3777
|
applyTransformsToTarget() {
|
|
3778
3778
|
let e = this.getLead(), { targetWithTransforms: t, target: n, layout: r, latestValues: i } = e;
|
|
3779
|
-
if (
|
|
3779
|
+
if (t && n && r) {
|
|
3780
3780
|
if (this !== e && this.layout && r && shouldAnimatePositionOnly(this.options.animationType, this.layout.layoutBox, r.layoutBox)) {
|
|
3781
3781
|
n = this.target || createBox();
|
|
3782
3782
|
let t = calcLength(this.layout.layoutBox.x);
|
|
@@ -5325,10 +5325,10 @@ var HoverGesture = class extends Feature {
|
|
|
5325
5325
|
} catch {
|
|
5326
5326
|
e = !0;
|
|
5327
5327
|
}
|
|
5328
|
-
|
|
5328
|
+
e && this.node.animationState && (this.node.animationState.setActive("whileFocus", !0), this.isActive = !0);
|
|
5329
5329
|
}
|
|
5330
5330
|
onBlur() {
|
|
5331
|
-
|
|
5331
|
+
this.isActive && this.node.animationState && (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
|
|
5332
5332
|
}
|
|
5333
5333
|
mount() {
|
|
5334
5334
|
this.unmount = pipe(addDomEvent(this.node.current, "focus", () => this.onFocus()), addDomEvent(this.node.current, "blur", () => this.onBlur()));
|