@likec4/diagram 1.59.1 → 1.59.3
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/README.md +53 -0
- package/dist/LikeC4Styles.js +2 -1
- package/dist/base/BaseXYFlow.js +8 -1
- package/dist/base-primitives/compound/CompoundNodeContainer.js +2 -3
- package/dist/base-primitives/compound/CompoundTitle.js +5 -4
- package/dist/base-primitives/element/ElementData.js +6 -1
- package/dist/base-primitives/element/ElementShape.js +9 -10
- package/dist/context/CurrentViewModelProvider.js +2 -1
- package/dist/context/DiagramEventHandlers.js +2 -1
- package/dist/context/IconRenderer.js +42 -26
- package/dist/context/TagStylesContext.d.ts +2 -1
- package/dist/context/TagStylesContext.js +32 -20
- package/dist/custom/index.js +1 -1
- package/dist/editor/LikeC4EditorCallbacks.d.ts +20 -1
- package/dist/editor/LikeC4EditorCallbacks.js +4 -1
- package/dist/editor/actor/setup.d.ts +1 -0
- package/dist/editor/actor/setup.js +17 -12
- package/dist/editor/actor/state.sync-queue.js +1 -0
- package/dist/editor/applyChangesToManualLayout.js +1 -1
- package/dist/editor/index.d.ts +1 -1
- package/dist/editor/useEditorActorLogic.js +10 -3
- package/dist/hooks/useDiagram.js +4 -2
- package/dist/hooks/useDiagramCompareLayout.d.ts +13 -3
- package/dist/hooks/useDiagramCompareLayout.js +6 -1
- package/dist/hooks/useUpdateEffect.js +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -2
- package/dist/likec4diagram/DiagramUI.js +4 -3
- package/dist/likec4diagram/DiagramXYFlow.d.ts +1 -0
- package/dist/likec4diagram/DiagramXYFlow.js +14 -7
- package/dist/likec4diagram/custom/edges/RelationshipEdge.js +1 -3
- package/dist/likec4diagram/custom/edges/SequenceStepEdge.js +1 -3
- package/dist/likec4diagram/custom/edges/useRelationshipEdgePath.js +3 -2
- package/dist/likec4diagram/custom/nodes/nodes.js +6 -3
- package/dist/likec4diagram/custom/nodes/toolbar/Toolbar.js +4 -3
- package/dist/likec4diagram/relationship-popover/RelationshipPopover.js +1 -2
- package/dist/likec4diagram/state/assign.js +1 -1
- package/dist/likec4diagram/state/createViewChange.js +1 -6
- package/dist/likec4diagram/state/machine.actions.js +6 -2
- package/dist/likec4diagram/state/machine.setup.js +9 -8
- package/dist/likec4diagram/state/machine.state.ready.walkthrough.js +1 -1
- package/dist/likec4diagram/state/utils.js +7 -3
- package/dist/likec4diagram/ui/FloatingSequenceActors.js +2 -1
- package/dist/likec4diagram/ui/sequence-outline/SequenceOutlinePanel.js +4 -2
- package/dist/likec4diagram/useLayoutConstraints.js +19 -4
- package/dist/likec4diagram/xyflow-sequence/layouter.js +8 -10
- package/dist/navigationpanel/NavigationPanelDropdown.js +2 -1
- package/dist/navigationpanel/controls/DetailsControls.js +2 -1
- package/dist/navigationpanel/editorpanel/ApplySemanticLayout.js +2 -1
- package/dist/navigationpanel/editorpanel/ChangeAutoLayoutButton.js +2 -1
- package/dist/navigationpanel/editorpanel/ManualLayoutToolsButton.d.ts +2 -0
- package/dist/navigationpanel/editorpanel/ManualLayoutToolsButton.js +11 -3
- package/dist/navigationpanel/walkthrough/DynamicViewControls.js +1 -3
- package/dist/overlays/element-details/ElementDetailsCard.js +2 -2
- package/dist/overlays/overlaysActor.js +16 -17
- package/dist/overlays/relationship-details/RelationshipDetails.js +2 -1
- package/dist/overlays/relationship-details/hooks.js +2 -1
- package/dist/overlays/relationships-browser/RelationshipsBrowser.js +4 -2
- package/dist/overlays/relationships-browser/actor.js +2 -1
- package/dist/overlays/relationships-browser/custom/ElementActions.js +39 -38
- package/dist/overlays/relationships-browser/hooks.js +2 -1
- package/dist/projects-overview/ProjectsOverview.js +8 -7
- package/dist/projects-overview/hooks.js +2 -1
- package/dist/search/components/ViewsColum.js +10 -8
- package/dist/search/hooks.js +2 -1
- package/dist/shadowroot/ShadowRoot.js +4 -2
- package/dist/styles2.js +1 -1
- package/dist/utils/index.js +2 -2
- package/package.json +27 -27
- package/panda.buildinfo.json +2 -1
- package/styles-min.css +1 -1
- package/styles-xyflow.css +1 -1
- package/styles.css +1 -1
package/dist/utils/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { roundDpr } from "./roundDpr.js";
|
|
2
|
-
import {
|
|
2
|
+
import { stopPropagation } from "./xyflow.js";
|
|
3
3
|
import { pickViewBounds } from "./view-bounds.js";
|
|
4
4
|
import { readableText } from "./readableText.js";
|
|
5
5
|
import { vector as vector$1 } from "@likec4/core/geometry";
|
|
6
|
-
export {
|
|
6
|
+
export { pickViewBounds, readableText, roundDpr, stopPropagation, vector$1 as vector };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@likec4/diagram",
|
|
3
|
-
"version": "1.59.
|
|
3
|
+
"version": "1.59.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"bugs": "https://github.com/likec4/likec4/issues",
|
|
6
6
|
"homepage": "https://likec4.dev",
|
|
@@ -56,54 +56,54 @@
|
|
|
56
56
|
"./package.json": "./package.json"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
+
"@likec4/core": "1.59.3",
|
|
60
|
+
"@likec4/styles": "1.59.3",
|
|
59
61
|
"@dagrejs/dagre": "1.1.8",
|
|
60
62
|
"@floating-ui/dom": "^1.7.6",
|
|
61
63
|
"@lume/kiwi": "^0.4.4",
|
|
62
|
-
"@mantine/core": "9.
|
|
63
|
-
"@mantine/hooks": "9.
|
|
64
|
+
"@mantine/core": "9.6.0",
|
|
65
|
+
"@mantine/hooks": "9.6.0",
|
|
64
66
|
"@nanostores/media-query": "0.1.2",
|
|
65
67
|
"@nanostores/react": "1.1.0",
|
|
66
68
|
"@react-hookz/web": "^25.2.0",
|
|
67
69
|
"@xstate/react": "6.1.0",
|
|
68
|
-
"@xstate/store": "4.2.
|
|
70
|
+
"@xstate/store": "4.2.3",
|
|
69
71
|
"@xstate/store-react": "2.0.0",
|
|
70
72
|
"bezier-js": "^6.1.4",
|
|
71
73
|
"d3-shape": "^3.2.0",
|
|
72
74
|
"defu": "^6.1.7",
|
|
73
|
-
"fast-equals": "^6.0.
|
|
74
|
-
"immer": "^11.1.
|
|
75
|
-
"motion": "^12.
|
|
76
|
-
"nanostores": "1.
|
|
77
|
-
"react": "19.2.
|
|
78
|
-
"react-dom": "19.2.
|
|
79
|
-
"react-error-boundary": "^6.1.
|
|
80
|
-
"remeda": "^2.
|
|
75
|
+
"fast-equals": "^6.0.2",
|
|
76
|
+
"immer": "^11.1.18",
|
|
77
|
+
"motion": "^12.43.0",
|
|
78
|
+
"nanostores": "1.5.2",
|
|
79
|
+
"react": "19.2.8",
|
|
80
|
+
"react-dom": "19.2.8",
|
|
81
|
+
"react-error-boundary": "^6.1.4",
|
|
82
|
+
"remeda": "^2.45.0",
|
|
81
83
|
"type-fest": "^4.41.0",
|
|
82
|
-
"xstate": "5.32.
|
|
83
|
-
"@xyflow/react": "12.11.
|
|
84
|
-
"@xyflow/system": "0.0.
|
|
85
|
-
"@tabler/icons-react": "3.
|
|
86
|
-
"@likec4/core": "1.59.1",
|
|
87
|
-
"@likec4/styles": "1.59.1"
|
|
84
|
+
"xstate": "5.32.6",
|
|
85
|
+
"@xyflow/react": "12.11.6",
|
|
86
|
+
"@xyflow/system": "0.0.82",
|
|
87
|
+
"@tabler/icons-react": "3.46.0"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
|
+
"@likec4/devops": "1.59.3",
|
|
91
|
+
"@likec4/tsconfig": "1.59.3",
|
|
90
92
|
"@pandacss/dev": "^1.11.4",
|
|
91
93
|
"@statelyai/inspect": "^0.4.0",
|
|
92
94
|
"@types/bezier-js": "^4.1.3",
|
|
93
95
|
"@types/d3-shape": "^3.1.8",
|
|
94
96
|
"@types/node": "~22.19.19",
|
|
95
|
-
"@types/react": "19.2.
|
|
96
|
-
"@types/react-dom": "19.2.
|
|
97
|
-
"@vitejs/plugin-react": "^6.
|
|
97
|
+
"@types/react": "19.2.18",
|
|
98
|
+
"@types/react-dom": "19.2.5",
|
|
99
|
+
"@vitejs/plugin-react": "^6.1.1",
|
|
98
100
|
"oxlint": "1.72.0",
|
|
99
|
-
"postcss": "8.5.
|
|
101
|
+
"postcss": "8.5.23",
|
|
100
102
|
"typescript": "6.0.3",
|
|
101
|
-
"vite": "^8.
|
|
103
|
+
"vite": "^8.2.2",
|
|
102
104
|
"vite-plugin-dts": "5.0.2",
|
|
103
|
-
"vitest": "4.1.
|
|
104
|
-
"zx": "8.8.5"
|
|
105
|
-
"@likec4/tsconfig": "1.59.1",
|
|
106
|
-
"@likec4/devops": "1.59.1"
|
|
105
|
+
"vitest": "4.1.11",
|
|
106
|
+
"zx": "8.8.5"
|
|
107
107
|
},
|
|
108
108
|
"scripts": {
|
|
109
109
|
"typecheck": "tsc --build --verbose",
|
package/panda.buildinfo.json
CHANGED
|
@@ -1002,7 +1002,8 @@
|
|
|
1002
1002
|
"actionButtons": [],
|
|
1003
1003
|
"elementNodeData": [
|
|
1004
1004
|
"iconPosition]___[value:left]___[recipe:elementNodeData",
|
|
1005
|
-
"withIconColor]___[value:false]___[recipe:elementNodeData"
|
|
1005
|
+
"withIconColor]___[value:false]___[recipe:elementNodeData",
|
|
1006
|
+
"withIconBlend]___[value:false]___[recipe:elementNodeData"
|
|
1006
1007
|
],
|
|
1007
1008
|
"elementNode": [],
|
|
1008
1009
|
"elementShapeRecipe": [
|