likec4 1.2.1 → 1.2.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/dist/__app__/src/{view._viewId.react-legacy.lazy-Cxs6F284.js → ViewAsReact-CowYtE-c.mjs} +2 -26
- package/dist/__app__/src/{main-yVRq2dIl.js → main-DMmXFqbw.mjs} +2707 -1080
- package/dist/__app__/src/main.mjs +1 -0
- package/dist/__app__/src/style.css +1 -1
- package/dist/cli/index.mjs +2 -2
- package/package.json +15 -15
- package/react/index.d.ts +1 -0
- package/react/index.mjs +2 -2
- package/react/styles.d.ts +0 -1
- package/dist/__app__/src/main.js +0 -1
- package/dist/__app__/src/view._viewId.d2.lazy-CaQPy48H.js +0 -46
- package/dist/__app__/src/view._viewId.dot.lazy-6H3L1GpV.js +0 -49
- package/dist/__app__/src/view._viewId.mmd.lazy-By6xPESQ.js +0 -89
- package/dist/__app__/src/view_viewId_.css-LQsQcFpp.js +0 -1469
- /package/dist/__app__/src/{index-CgQjA8pD.js → index-CgQjA8pD.mjs} +0 -0
package/dist/__app__/src/{view._viewId.react-legacy.lazy-Cxs6F284.js → ViewAsReact-CowYtE-c.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as useSyncedRef$1, r as reactExports, i as isBrowser$1, a as useUnmountEffect, b as useFirstMountState, c as commonjsGlobal, g as getDefaultExportFromCjs, s as schedulerExports, R as React, j as jsxRuntimeExports, d as invariant, n as nonexhaustive, e as useUpdateEffect, f as nonNullable, h as defaultTheme, B as Box
|
|
1
|
+
import { u as useSyncedRef$1, r as reactExports, i as isBrowser$1, a as useUnmountEffect, b as useFirstMountState, c as commonjsGlobal, g as getDefaultExportFromCjs, s as schedulerExports, R as React, j as jsxRuntimeExports, d as invariant, n as nonexhaustive, e as useUpdateEffect, f as nonNullable, h as defaultTheme, B as Box } from "./main-DMmXFqbw.mjs";
|
|
2
2
|
function useRafCallback(cb) {
|
|
3
3
|
const cbRef = useSyncedRef$1(cb), frame = reactExports.useRef(0), cancel = reactExports.useCallback(() => {
|
|
4
4
|
isBrowser$1 && frame.current && (cancelAnimationFrame(frame.current), frame.current = 0);
|
|
@@ -15519,30 +15519,6 @@ function ViewAsReact({ diagram, onNodeClick }) {
|
|
|
15519
15519
|
}
|
|
15520
15520
|
);
|
|
15521
15521
|
}
|
|
15522
|
-
const Route = createLazyFileRoute("/view/$viewId/react-legacy")({
|
|
15523
|
-
component: ViewReactLegacy
|
|
15524
|
-
});
|
|
15525
|
-
function ViewReactLegacy() {
|
|
15526
|
-
const router = useRouter(), { viewId } = Route.useParams(), view = useLikeC4View(viewId), navigateTo = reactExports.useCallback((node) => {
|
|
15527
|
-
router.navigate({
|
|
15528
|
-
to: "/view/$viewId/react-legacy",
|
|
15529
|
-
params: { viewId: node.navigateTo },
|
|
15530
|
-
startTransition: !0,
|
|
15531
|
-
search: !0
|
|
15532
|
-
});
|
|
15533
|
-
}, [router]);
|
|
15534
|
-
if (!view)
|
|
15535
|
-
throw notFound();
|
|
15536
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
15537
|
-
ViewAsReact,
|
|
15538
|
-
{
|
|
15539
|
-
diagram: view,
|
|
15540
|
-
onNodeClick: (node) => {
|
|
15541
|
-
node.navigateTo && navigateTo({ navigateTo: node.navigateTo });
|
|
15542
|
-
}
|
|
15543
|
-
}
|
|
15544
|
-
);
|
|
15545
|
-
}
|
|
15546
15522
|
export {
|
|
15547
|
-
|
|
15523
|
+
ViewAsReact as default
|
|
15548
15524
|
};
|