@likec4/diagram 1.46.3 → 1.47.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/bundle/index.js +1548 -595
- package/dist/LikeC4Diagram.d.ts +1 -1
- package/dist/LikeC4Diagram.js +2 -2
- package/dist/LikeC4Diagram.props.d.ts +1 -1
- package/dist/LikeC4ProjectsOverview.d.ts +7 -0
- package/dist/LikeC4ProjectsOverview.js +32 -0
- package/dist/base-primitives/Markdown.d.ts +1 -1
- package/dist/base-primitives/compound/CompoundNodeContainer.d.ts +4 -3
- package/dist/base-primitives/compound/actionbtns.css.d.ts +1 -1
- package/dist/base-primitives/element/ElementNodeContainer.js +2 -3
- package/dist/base-primitives/element/ElementShape.js +109 -20
- package/dist/components/NavigationPanel.d.ts +11 -0
- package/dist/components/NavigationPanel.js +69 -0
- package/dist/context/DiagramEventHandlers.js +1 -1
- package/dist/context/IconRenderer.js +4 -1
- package/dist/hooks/useLikeC4Project.js +10 -2
- package/dist/hooks/useLikeC4Styles.js +0 -3
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/likec4diagram/DiagramXYFlow.js +1 -0
- package/dist/likec4diagram/custom/nodes/toolbar/ColorButton.js +3 -3
- package/dist/likec4diagram/custom/nodes/toolbar/CompoundToolbar.js +1 -38
- package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.js +29 -14
- package/dist/likec4diagram/custom/nodes/toolbar/Toolbar.js +9 -5
- package/dist/likec4diagram/custom/nodes/toolbar/_shared.d.ts +6 -1
- package/dist/likec4diagram/custom/nodes/toolbar/_shared.js +44 -8
- package/dist/likec4diagram/xyflow-sequence/utils.d.ts +1 -1
- package/dist/navigationpanel/NavigationPanelControls.js +2 -2
- package/dist/navigationpanel/_common.d.ts +1 -1
- package/dist/navigationpanel/controls/LogoButton.d.ts +1 -0
- package/dist/navigationpanel/controls/{BurgerButton.js → LogoButton.js} +5 -5
- package/dist/navigationpanel/controls/index.d.ts +1 -1
- package/dist/navigationpanel/styles.css.d.ts +1 -1
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.3/node_modules/@tabler/icons-react/dist/esm/icons/IconFileText.js +14 -0
- package/dist/overlays/relationships-browser/custom/edgeTypes.js +0 -1
- package/dist/projects-overview/ProjectsOverview.d.ts +13 -0
- package/dist/projects-overview/ProjectsOverview.js +57 -0
- package/dist/projects-overview/ProjectsOverviewXY.d.ts +17 -0
- package/dist/projects-overview/ProjectsOverviewXY.js +98 -0
- package/dist/projects-overview/_types.d.ts +34 -0
- package/dist/projects-overview/actor.d.ts +121 -0
- package/dist/projects-overview/actor.js +382 -0
- package/dist/projects-overview/context.d.ts +4 -0
- package/dist/projects-overview/context.js +9 -0
- package/dist/projects-overview/custom/edgeTypes.d.ts +3 -0
- package/dist/projects-overview/custom/edgeTypes.js +23 -0
- package/dist/projects-overview/custom/index.d.ts +2 -0
- package/dist/projects-overview/custom/nodeTypes.d.ts +2 -0
- package/dist/projects-overview/custom/nodeTypes.js +45 -0
- package/dist/projects-overview/custom/styles.css.d.ts +1 -0
- package/dist/projects-overview/hooks.d.ts +5 -0
- package/dist/projects-overview/hooks.js +14 -0
- package/dist/projects-overview/index.d.ts +1 -0
- package/dist/projects-overview/layouted-to-xyflow.d.ts +6 -0
- package/dist/projects-overview/layouted-to-xyflow.js +49 -0
- package/dist/projects-overview/panel/ProjectsOverviewPanel.d.ts +1 -0
- package/dist/projects-overview/panel/ProjectsOverviewPanel.js +11 -0
- package/dist/projects-overview/persistence.d.ts +5 -0
- package/dist/projects-overview/persistence.js +24 -0
- package/dist/search/components/_shared.css.d.ts +1 -1
- package/dist/styles.css2.js +1 -1
- package/package.json +10 -10
- package/panda.buildinfo.json +62 -29
- package/styles-min.css +1 -1
- package/styles.css +1 -1
- package/dist/base-primitives/element/ElementNodeContainer.css.d.ts +0 -1
- package/dist/base-primitives/element/ElementNodeContainer.css.js +0 -39
- package/dist/navigationpanel/controls/BurgerButton.d.ts +0 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { NavigationPanel } from '../../components/NavigationPanel.js';
|
|
3
|
+
|
|
4
|
+
const ProjectsOverviewPanel = () => {
|
|
5
|
+
return /* @__PURE__ */ jsx(NavigationPanel.Root, { size: "lg", children: /* @__PURE__ */ jsxs(NavigationPanel.Body, { children: [
|
|
6
|
+
/* @__PURE__ */ jsx(NavigationPanel.Logo, {}),
|
|
7
|
+
/* @__PURE__ */ jsx(NavigationPanel.Label, { children: "Projects Overview" })
|
|
8
|
+
] }) });
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { ProjectsOverviewPanel };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const key = `likec4:projects-overview:lastViewport`;
|
|
2
|
+
const ProjectsOverviewViewportPersistence = {
|
|
3
|
+
read() {
|
|
4
|
+
try {
|
|
5
|
+
let fromStorage = sessionStorage.getItem(key);
|
|
6
|
+
if (fromStorage) {
|
|
7
|
+
return JSON.parse(fromStorage);
|
|
8
|
+
}
|
|
9
|
+
return null;
|
|
10
|
+
} catch (e) {
|
|
11
|
+
console.error(`Error reading fromStorage ${key}:`, e);
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
write(viewport) {
|
|
16
|
+
if (!viewport) {
|
|
17
|
+
sessionStorage.removeItem(key);
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
sessionStorage.setItem(key, JSON.stringify(viewport));
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export { ProjectsOverviewViewportPersistence };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SlotRecipeRuntimeFn, SlotRecipeVariantRecord } from '
|
|
1
|
+
import { SlotRecipeRuntimeFn, SlotRecipeVariantRecord } from '../../../styled-system';
|
|
2
2
|
export declare const focusable = "likec4-focusable";
|
|
3
3
|
export declare const emptyBoX: string;
|
|
4
4
|
export declare const buttonsva: SlotRecipeRuntimeFn<"title" | "description" | "icon" | "root" | "descriptionColor", SlotRecipeVariantRecord<"title" | "description" | "icon" | "root" | "descriptionColor">>;
|