likec4 1.40.0 → 1.41.0
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/likec4.js +91 -76
- package/__app__/src/main.js +2 -2
- package/__app__/src/style.css +1 -1
- package/__app__/src/vendors.js +120 -91
- package/dist/cli/index.mjs +213 -213
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/shared/{likec4.DDO3vjMr.d.mts → likec4.3AlS7pfZ.d.mts} +92 -56
- package/dist/shared/{likec4.P9UC3Wd_.mjs → likec4.Db3cTW-C.mjs} +1 -1
- package/dist/shared/{likec4.hpe1blK6.mjs → likec4.bxIrQhth.mjs} +2404 -2403
- package/dist/vite-plugin/index.d.mts +1 -1
- package/dist/vite-plugin/index.mjs +1 -1
- package/package.json +12 -12
- package/react/index.d.mts +55 -35
- package/react/index.mjs +36 -36
package/__app__/src/vendors.js
CHANGED
|
@@ -29540,7 +29540,27 @@ function useDebouncedCallback(callback, deps, delay2, maxWait = 0) {
|
|
|
29540
29540
|
}, [delay2, maxWait, ...deps]);
|
|
29541
29541
|
}
|
|
29542
29542
|
const noop = () => {
|
|
29543
|
-
}, isBrowser$1 = typeof globalThis < "u" && typeof navigator < "u" && typeof document < "u"
|
|
29543
|
+
}, isBrowser$1 = typeof globalThis < "u" && typeof navigator < "u" && typeof document < "u";
|
|
29544
|
+
function useRafCallback(cb) {
|
|
29545
|
+
const cbRef = useSyncedRef(cb), frame2 = useRef(0), cancel = useCallback(() => {
|
|
29546
|
+
isBrowser$1 && frame2.current && (cancelAnimationFrame(frame2.current), frame2.current = 0);
|
|
29547
|
+
}, []);
|
|
29548
|
+
return useUnmountEffect(cancel), [
|
|
29549
|
+
useMemo(() => {
|
|
29550
|
+
const wrapped = (...args) => {
|
|
29551
|
+
isBrowser$1 && (cancel(), frame2.current = requestAnimationFrame(() => {
|
|
29552
|
+
cbRef.current(...args), frame2.current = 0;
|
|
29553
|
+
}));
|
|
29554
|
+
};
|
|
29555
|
+
return Object.defineProperties(wrapped, {
|
|
29556
|
+
length: { value: cb.length },
|
|
29557
|
+
name: { value: `${cb.name || "anonymous"}__raf` }
|
|
29558
|
+
}), wrapped;
|
|
29559
|
+
}, []),
|
|
29560
|
+
cancel
|
|
29561
|
+
];
|
|
29562
|
+
}
|
|
29563
|
+
const basicDepsComparator = (d1, d2) => {
|
|
29544
29564
|
if (d1 === d2)
|
|
29545
29565
|
return !0;
|
|
29546
29566
|
if (d1.length !== d2.length)
|
|
@@ -29624,6 +29644,14 @@ function useFirstMountState() {
|
|
|
29624
29644
|
}, []), isFirstMount.current;
|
|
29625
29645
|
}
|
|
29626
29646
|
const useIsomorphicLayoutEffect$1 = isBrowser$1 ? useLayoutEffect$1 : useEffect;
|
|
29647
|
+
function useRafEffect(callback, deps) {
|
|
29648
|
+
const [rafCallback, cancelRaf] = useRafCallback(callback);
|
|
29649
|
+
useEffect(
|
|
29650
|
+
() => (rafCallback(), cancelRaf),
|
|
29651
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
29652
|
+
deps
|
|
29653
|
+
);
|
|
29654
|
+
}
|
|
29627
29655
|
function useUpdateEffect(effect, deps) {
|
|
29628
29656
|
const isFirstMount = useFirstMountState();
|
|
29629
29657
|
useEffect(isFirstMount ? noop : effect, deps);
|
|
@@ -40354,7 +40382,7 @@ export {
|
|
|
40354
40382
|
useMergedRef as ay,
|
|
40355
40383
|
ReactRemoveScroll as az,
|
|
40356
40384
|
useCustomCompareEffect as b,
|
|
40357
|
-
|
|
40385
|
+
Spoiler as b$,
|
|
40358
40386
|
ErrorBoundary as b0,
|
|
40359
40387
|
useTree as b1,
|
|
40360
40388
|
Alert as b2,
|
|
@@ -40390,8 +40418,8 @@ export {
|
|
|
40390
40418
|
size$1 as bW,
|
|
40391
40419
|
hide$1 as bX,
|
|
40392
40420
|
useLocalStorage as bY,
|
|
40393
|
-
|
|
40394
|
-
|
|
40421
|
+
Card as bZ,
|
|
40422
|
+
CardSection as b_,
|
|
40395
40423
|
n$o as ba,
|
|
40396
40424
|
r$8 as bb,
|
|
40397
40425
|
t$c as bc,
|
|
@@ -40402,15 +40430,15 @@ export {
|
|
|
40402
40430
|
t$3 as bh,
|
|
40403
40431
|
ReactFlowProvider as bi,
|
|
40404
40432
|
useStateHistory as bj,
|
|
40405
|
-
|
|
40406
|
-
|
|
40407
|
-
|
|
40408
|
-
|
|
40409
|
-
|
|
40410
|
-
|
|
40411
|
-
|
|
40412
|
-
|
|
40413
|
-
|
|
40433
|
+
useRafEffect as bk,
|
|
40434
|
+
Panel$1 as bl,
|
|
40435
|
+
Anchor as bm,
|
|
40436
|
+
Pill as bn,
|
|
40437
|
+
useViewportSize as bo,
|
|
40438
|
+
useSessionStorage as bp,
|
|
40439
|
+
t$b as bq,
|
|
40440
|
+
useDragControls as br,
|
|
40441
|
+
useMotionValue as bs,
|
|
40414
40442
|
CloseButton as bt,
|
|
40415
40443
|
ActionIconGroup as bu,
|
|
40416
40444
|
Tabs as bv,
|
|
@@ -40419,85 +40447,86 @@ export {
|
|
|
40419
40447
|
TabsPanel as by,
|
|
40420
40448
|
ScrollArea as bz,
|
|
40421
40449
|
useStoreApi as c,
|
|
40422
|
-
|
|
40423
|
-
|
|
40424
|
-
|
|
40425
|
-
|
|
40426
|
-
|
|
40427
|
-
|
|
40428
|
-
|
|
40429
|
-
|
|
40430
|
-
|
|
40431
|
-
|
|
40432
|
-
|
|
40433
|
-
|
|
40434
|
-
|
|
40435
|
-
|
|
40436
|
-
|
|
40437
|
-
|
|
40438
|
-
|
|
40439
|
-
|
|
40440
|
-
|
|
40441
|
-
|
|
40442
|
-
|
|
40443
|
-
|
|
40444
|
-
|
|
40445
|
-
|
|
40446
|
-
|
|
40447
|
-
|
|
40448
|
-
|
|
40449
|
-
|
|
40450
|
-
|
|
40451
|
-
|
|
40452
|
-
|
|
40453
|
-
|
|
40454
|
-
|
|
40455
|
-
|
|
40456
|
-
|
|
40457
|
-
|
|
40458
|
-
|
|
40459
|
-
|
|
40460
|
-
t$
|
|
40461
|
-
t$
|
|
40462
|
-
|
|
40463
|
-
|
|
40464
|
-
|
|
40465
|
-
|
|
40466
|
-
|
|
40467
|
-
|
|
40468
|
-
|
|
40469
|
-
|
|
40470
|
-
|
|
40471
|
-
|
|
40472
|
-
|
|
40473
|
-
|
|
40474
|
-
|
|
40475
|
-
|
|
40476
|
-
|
|
40477
|
-
|
|
40478
|
-
|
|
40479
|
-
|
|
40480
|
-
|
|
40481
|
-
|
|
40482
|
-
|
|
40483
|
-
|
|
40484
|
-
|
|
40485
|
-
|
|
40450
|
+
useDisclosure as c$,
|
|
40451
|
+
n$t as c0,
|
|
40452
|
+
ButtonGroup as c1,
|
|
40453
|
+
useTimeout as c2,
|
|
40454
|
+
useDebouncedCallback$1 as c3,
|
|
40455
|
+
useCustomCompareMemo as c4,
|
|
40456
|
+
toRgba as c5,
|
|
40457
|
+
t$7 as c6,
|
|
40458
|
+
mix as c7,
|
|
40459
|
+
toHex as c8,
|
|
40460
|
+
scale as c9,
|
|
40461
|
+
useNavigate as cA,
|
|
40462
|
+
createRootRouteWithContext as cB,
|
|
40463
|
+
stripSearchParams as cC,
|
|
40464
|
+
Outlet as cD,
|
|
40465
|
+
useMantineColorScheme as cE,
|
|
40466
|
+
createFileRoute as cF,
|
|
40467
|
+
useDocumentTitle as cG,
|
|
40468
|
+
Loader as cH,
|
|
40469
|
+
useStore as cI,
|
|
40470
|
+
Navigate as cJ,
|
|
40471
|
+
SimpleGrid as cK,
|
|
40472
|
+
useInViewport as cL,
|
|
40473
|
+
e as cM,
|
|
40474
|
+
notFound as cN,
|
|
40475
|
+
useParams as cO,
|
|
40476
|
+
useIsomorphicLayoutEffect$1 as cP,
|
|
40477
|
+
useComputedColorScheme as cQ,
|
|
40478
|
+
onMount as cR,
|
|
40479
|
+
Drawer as cS,
|
|
40480
|
+
Select as cT,
|
|
40481
|
+
ModalRoot as cU,
|
|
40482
|
+
ModalOverlay as cV,
|
|
40483
|
+
ModalContent as cW,
|
|
40484
|
+
ModalBody as cX,
|
|
40485
|
+
useMatches as cY,
|
|
40486
|
+
useMantineTheme as cZ,
|
|
40487
|
+
useMediaQuery as c_,
|
|
40488
|
+
t$a as ca,
|
|
40489
|
+
t$1 as cb,
|
|
40490
|
+
t$d as cc,
|
|
40491
|
+
Solver as cd,
|
|
40492
|
+
Strength as ce,
|
|
40493
|
+
Variable as cf,
|
|
40494
|
+
Operator as cg,
|
|
40495
|
+
Constraint as ch,
|
|
40496
|
+
e$b as ci,
|
|
40497
|
+
n$b as cj,
|
|
40498
|
+
applyEdgeChanges as ck,
|
|
40499
|
+
applyNodeChanges as cl,
|
|
40500
|
+
getViewportForBounds as cm,
|
|
40501
|
+
e$3 as cn,
|
|
40502
|
+
t$5 as co,
|
|
40503
|
+
getHotkeyHandler as cp,
|
|
40504
|
+
n$c as cq,
|
|
40505
|
+
t$9 as cr,
|
|
40506
|
+
e$c as cs,
|
|
40507
|
+
getBoundsOfRects as ct,
|
|
40508
|
+
boxToRect as cu,
|
|
40509
|
+
nodeToRect as cv,
|
|
40510
|
+
useRouter as cw,
|
|
40511
|
+
isNotFound as cx,
|
|
40512
|
+
Container as cy,
|
|
40513
|
+
Link as cz,
|
|
40486
40514
|
domMax as d,
|
|
40487
|
-
|
|
40488
|
-
|
|
40489
|
-
|
|
40490
|
-
|
|
40491
|
-
|
|
40492
|
-
|
|
40493
|
-
|
|
40494
|
-
|
|
40495
|
-
|
|
40496
|
-
|
|
40497
|
-
|
|
40498
|
-
|
|
40499
|
-
|
|
40500
|
-
|
|
40515
|
+
useParentMatches as d0,
|
|
40516
|
+
MenuLabel as d1,
|
|
40517
|
+
useSearch as d2,
|
|
40518
|
+
LoadingOverlay as d3,
|
|
40519
|
+
useAsync as d4,
|
|
40520
|
+
PanelGroup as d5,
|
|
40521
|
+
Panel as d6,
|
|
40522
|
+
PanelResizeHandle as d7,
|
|
40523
|
+
Burger as d8,
|
|
40524
|
+
RouterProvider as d9,
|
|
40525
|
+
createRouter as da,
|
|
40526
|
+
createHashHistory as db,
|
|
40527
|
+
createBrowserHistory as dc,
|
|
40528
|
+
createTheme as dd,
|
|
40529
|
+
index as de,
|
|
40501
40530
|
useStore$1 as e,
|
|
40502
40531
|
useCallbackRef as f,
|
|
40503
40532
|
useReactFlow as g,
|