@tldiagram/core-ui 1.87.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/dist/App.d.ts +1 -0
- package/dist/api/client.d.ts +143 -0
- package/dist/api/transport-vscode.d.ts +8 -0
- package/dist/api/transport.d.ts +1 -0
- package/dist/components/CodePreviewPanel-vscode.d.ts +7 -0
- package/dist/components/CodePreviewPanel.d.ts +9 -0
- package/dist/components/ConfirmDialog.d.ts +12 -0
- package/dist/components/ConnectorPanel.d.ts +21 -0
- package/dist/components/ContextBoundaryElement.d.ts +11 -0
- package/dist/components/ContextNeighborElement.d.ts +29 -0
- package/dist/components/ContextStraightConnector.d.ts +4 -0
- package/dist/components/CrossBranchControls.d.ts +9 -0
- package/dist/components/DependenciesOnboarding.d.ts +5 -0
- package/dist/components/DrawingCanvas.d.ts +39 -0
- package/dist/components/ElementLibrary-vscode.d.ts +7 -0
- package/dist/components/ElementLibrary.d.ts +22 -0
- package/dist/components/ElementNode.d.ts +36 -0
- package/dist/components/ElementPanel.d.ts +25 -0
- package/dist/components/ExploreOnboarding.d.ts +5 -0
- package/dist/components/ExplorePageOnboarding.d.ts +5 -0
- package/dist/components/ExportModal.d.ts +16 -0
- package/dist/components/FloatingEdge.d.ts +9 -0
- package/dist/components/GitSourceLinker.d.ts +8 -0
- package/dist/components/HeaderContext.d.ts +16 -0
- package/dist/components/Icons.d.ts +95 -0
- package/dist/components/ImportModal.d.ts +10 -0
- package/dist/components/InlineElementAdder.d.ts +17 -0
- package/dist/components/LayoutSection.d.ts +7 -0
- package/dist/components/LocalSourceLinker.d.ts +8 -0
- package/dist/components/MiniZoomOnboarding.d.ts +5 -0
- package/dist/components/NavBreadcrumb.d.ts +6 -0
- package/dist/components/NodeBody.d.ts +12 -0
- package/dist/components/NodeContainer.d.ts +8 -0
- package/dist/components/NodeHoverCard.d.ts +10 -0
- package/dist/components/PanelHeader.d.ts +8 -0
- package/dist/components/PanelUI.d.ts +3 -0
- package/dist/components/ProxyConnectorEdge.d.ts +4 -0
- package/dist/components/ProxyConnectorPanel.d.ts +9 -0
- package/dist/components/SafeBackground.d.ts +13 -0
- package/dist/components/ScrollIndicatorWrapper.d.ts +8 -0
- package/dist/components/SetChildModal.d.ts +10 -0
- package/dist/components/SetParentModal.d.ts +10 -0
- package/dist/components/SlidingPanel.d.ts +16 -0
- package/dist/components/TagUpsert.d.ts +8 -0
- package/dist/components/TopMenuBar.d.ts +8 -0
- package/dist/components/ViewBezierConnector.d.ts +4 -0
- package/dist/components/ViewDrawMenu.d.ts +22 -0
- package/dist/components/ViewEditorEdgeLabelLayout.d.ts +16 -0
- package/dist/components/ViewEditorOnboarding.d.ts +5 -0
- package/dist/components/ViewExplorer/TagManager/ColorPicker.d.ts +7 -0
- package/dist/components/ViewExplorer/TagManager/GroupNamingPopover.d.ts +10 -0
- package/dist/components/ViewExplorer/TagManager/LayerItem.d.ts +27 -0
- package/dist/components/ViewExplorer/TagManager/TagItem.d.ts +25 -0
- package/dist/components/ViewExplorer/TagManager/index.d.ts +21 -0
- package/dist/components/ViewExplorer/ViewNavigator.d.ts +11 -0
- package/dist/components/ViewExplorer/ViewSearch.d.ts +8 -0
- package/dist/components/ViewExplorer/ViewTree.d.ts +18 -0
- package/dist/components/ViewExplorer/index.d.ts +31 -0
- package/dist/components/ViewExplorer/types.d.ts +11 -0
- package/dist/components/ViewExplorer/utils.d.ts +6 -0
- package/dist/components/ViewExplorer-vscode.d.ts +6 -0
- package/dist/components/ViewFloatingMenu-vscode.d.ts +27 -0
- package/dist/components/ViewFloatingMenu.d.ts +39 -0
- package/dist/components/ViewGridNode.d.ts +29 -0
- package/dist/components/ViewHeaderButton.d.ts +11 -0
- package/dist/components/ViewPanel.d.ts +18 -0
- package/dist/components/ViewsGridOnboarding.d.ts +5 -0
- package/dist/components/ZUI/ZUICanvas.d.ts +18 -0
- package/dist/components/ZUI/index.d.ts +2 -0
- package/dist/components/ZUI/layout.d.ts +18 -0
- package/dist/components/ZUI/proxy.d.ts +25 -0
- package/dist/components/ZUI/renderer.d.ts +30 -0
- package/dist/components/ZUI/types.d.ts +140 -0
- package/dist/components/ZUI/useZUIInteraction.d.ts +21 -0
- package/dist/config/runtime-vscode.d.ts +22 -0
- package/dist/config/runtime.d.ts +5 -0
- package/dist/constants/colors.d.ts +27 -0
- package/dist/constants/diagramColors.d.ts +1 -0
- package/dist/context/ThemeContext.d.ts +27 -0
- package/dist/crossBranch/graph.d.ts +13 -0
- package/dist/crossBranch/resolve.d.ts +22 -0
- package/dist/crossBranch/settings.d.ts +6 -0
- package/dist/crossBranch/store.d.ts +11 -0
- package/dist/crossBranch/types.d.ts +96 -0
- package/dist/demo/DemoPage.d.ts +9 -0
- package/dist/demo/seed.d.ts +9 -0
- package/dist/demo/store.d.ts +137 -0
- package/dist/demo/viewEditor.d.ts +26 -0
- package/dist/favicon.svg +35 -0
- package/dist/hooks/useSafeFitView.d.ts +16 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +115 -0
- package/dist/index.js +19966 -0
- package/dist/lib/vscodeBridge-vscode.d.ts +13 -0
- package/dist/lib/vscodeBridge.d.ts +5 -0
- package/dist/logo-120.png +0 -0
- package/dist/logo-bw.png +0 -0
- package/dist/logo-bw.svg +15 -0
- package/dist/logo-text.svg +51 -0
- package/dist/logo.svg +35 -0
- package/dist/pages/AppearanceSettings.d.ts +3 -0
- package/dist/pages/Dependencies.d.ts +1 -0
- package/dist/pages/InfiniteZoom.d.ts +7 -0
- package/dist/pages/Settings.d.ts +7 -0
- package/dist/pages/ViewEditor/components/EditorMenus.d.ts +24 -0
- package/dist/pages/ViewEditor/components/EditorOverlays.d.ts +30 -0
- package/dist/pages/ViewEditor/components/EmptyCanvasState.d.ts +7 -0
- package/dist/pages/ViewEditor/context.d.ts +13 -0
- package/dist/pages/ViewEditor/hooks/useCanvasInteractions.d.ts +201 -0
- package/dist/pages/ViewEditor/hooks/useDrawingEngine.d.ts +40 -0
- package/dist/pages/ViewEditor/hooks/useViewContextNeighbours.d.ts +20 -0
- package/dist/pages/ViewEditor/hooks/useViewData.d.ts +74 -0
- package/dist/pages/ViewEditor/index.d.ts +8 -0
- package/dist/pages/ViewEditor/utils.d.ts +14 -0
- package/dist/pages/Views.d.ts +6 -0
- package/dist/pages/ViewsGrid.d.ts +6 -0
- package/dist/pkg/importer/mermaid.d.ts +7 -0
- package/dist/pkg/importer/mermaid.test.d.ts +1 -0
- package/dist/platform/PlatformContext.d.ts +6 -0
- package/dist/platform/context.d.ts +3 -0
- package/dist/platform/local.d.ts +2 -0
- package/dist/platform/types.d.ts +17 -0
- package/dist/slots.d.ts +67 -0
- package/dist/theme.d.ts +2 -0
- package/dist/types/index.d.ts +193 -0
- package/dist/types/vscode-messages.d.ts +60 -0
- package/dist/utils/edgeDistribution.d.ts +34 -0
- package/dist/utils/githubApi.d.ts +4 -0
- package/dist/utils/githubCache.d.ts +17 -0
- package/dist/utils/ids.d.ts +2 -0
- package/dist/utils/technologyCatalog.d.ts +15 -0
- package/dist/utils/toast.d.ts +15 -0
- package/dist/utils/treesitter.d.ts +13 -0
- package/dist/utils/url.d.ts +12 -0
- package/package.json +159 -0
- package/src/App.tsx +141 -0
- package/src/api/client.ts +618 -0
- package/src/api/transport-vscode.ts +28 -0
- package/src/api/transport.ts +7 -0
- package/src/assets/logo-mark.svg +31 -0
- package/src/assets/logo-wordmark.svg +22 -0
- package/src/assets/logo.svg +35 -0
- package/src/components/CodePreviewPanel-vscode.tsx +85 -0
- package/src/components/CodePreviewPanel.tsx +384 -0
- package/src/components/ConfirmDialog.tsx +66 -0
- package/src/components/ConnectorPanel.tsx +403 -0
- package/src/components/ContextBoundaryElement.tsx +35 -0
- package/src/components/ContextNeighborElement.tsx +282 -0
- package/src/components/ContextStraightConnector.tsx +144 -0
- package/src/components/CrossBranchControls.tsx +105 -0
- package/src/components/DependenciesOnboarding.tsx +427 -0
- package/src/components/DrawingCanvas.tsx +391 -0
- package/src/components/ElementLibrary-vscode.tsx +9 -0
- package/src/components/ElementLibrary.tsx +512 -0
- package/src/components/ElementNode.tsx +1033 -0
- package/src/components/ElementPanel.tsx +928 -0
- package/src/components/ExploreOnboarding.tsx +347 -0
- package/src/components/ExplorePageOnboarding.tsx +383 -0
- package/src/components/ExportModal.tsx +132 -0
- package/src/components/FloatingEdge.tsx +115 -0
- package/src/components/GitSourceLinker.tsx +1053 -0
- package/src/components/HeaderContext.tsx +30 -0
- package/src/components/Icons.tsx +245 -0
- package/src/components/ImportModal.tsx +219 -0
- package/src/components/InlineElementAdder.tsx +216 -0
- package/src/components/LayoutSection.tsx +624 -0
- package/src/components/LocalSourceLinker.tsx +330 -0
- package/src/components/MiniZoomOnboarding.tsx +78 -0
- package/src/components/NavBreadcrumb.tsx +24 -0
- package/src/components/NodeBody.tsx +89 -0
- package/src/components/NodeContainer.tsx +58 -0
- package/src/components/NodeHoverCard.tsx +135 -0
- package/src/components/PanelHeader.tsx +36 -0
- package/src/components/PanelUI.tsx +24 -0
- package/src/components/ProxyConnectorEdge.tsx +169 -0
- package/src/components/ProxyConnectorPanel.tsx +130 -0
- package/src/components/SafeBackground.tsx +19 -0
- package/src/components/ScrollIndicatorWrapper.tsx +117 -0
- package/src/components/SetChildModal.tsx +191 -0
- package/src/components/SetParentModal.tsx +187 -0
- package/src/components/SlidingPanel.tsx +114 -0
- package/src/components/TagUpsert.tsx +142 -0
- package/src/components/TopMenuBar.tsx +380 -0
- package/src/components/ViewBezierConnector.tsx +143 -0
- package/src/components/ViewDrawMenu.tsx +270 -0
- package/src/components/ViewEditorEdgeLabelLayout.ts +189 -0
- package/src/components/ViewEditorOnboarding.tsx +445 -0
- package/src/components/ViewExplorer/TagManager/ColorPicker.tsx +49 -0
- package/src/components/ViewExplorer/TagManager/GroupNamingPopover.tsx +96 -0
- package/src/components/ViewExplorer/TagManager/LayerItem.tsx +228 -0
- package/src/components/ViewExplorer/TagManager/TagItem.tsx +242 -0
- package/src/components/ViewExplorer/TagManager/index.tsx +418 -0
- package/src/components/ViewExplorer/ViewNavigator.tsx +121 -0
- package/src/components/ViewExplorer/ViewSearch.tsx +33 -0
- package/src/components/ViewExplorer/ViewTree.tsx +98 -0
- package/src/components/ViewExplorer/index.tsx +384 -0
- package/src/components/ViewExplorer/types.ts +13 -0
- package/src/components/ViewExplorer/utils.ts +56 -0
- package/src/components/ViewExplorer-vscode.tsx +8 -0
- package/src/components/ViewFloatingMenu-vscode.tsx +248 -0
- package/src/components/ViewFloatingMenu.tsx +379 -0
- package/src/components/ViewGridNode.tsx +451 -0
- package/src/components/ViewHeaderButton.tsx +60 -0
- package/src/components/ViewPanel.tsx +162 -0
- package/src/components/ViewsGridOnboarding.tsx +400 -0
- package/src/components/ZUI/ZUICanvas.tsx +853 -0
- package/src/components/ZUI/index.ts +3 -0
- package/src/components/ZUI/layout.ts +323 -0
- package/src/components/ZUI/proxy.ts +278 -0
- package/src/components/ZUI/renderer.ts +1189 -0
- package/src/components/ZUI/types.ts +150 -0
- package/src/components/ZUI/useZUIInteraction.ts +720 -0
- package/src/config/runtime-vscode.ts +46 -0
- package/src/config/runtime.ts +30 -0
- package/src/constants/colors.ts +80 -0
- package/src/constants/diagramColors.ts +9 -0
- package/src/context/ThemeContext.tsx +158 -0
- package/src/crossBranch/graph.ts +207 -0
- package/src/crossBranch/resolve.ts +643 -0
- package/src/crossBranch/settings.ts +59 -0
- package/src/crossBranch/store.ts +71 -0
- package/src/crossBranch/types.ts +102 -0
- package/src/demo/DemoPage.tsx +184 -0
- package/src/demo/seed.ts +67 -0
- package/src/demo/store.ts +536 -0
- package/src/demo/viewEditor.ts +110 -0
- package/src/hooks/useSafeFitView.ts +60 -0
- package/src/index.css +309 -0
- package/src/index.ts +184 -0
- package/src/kafka-ss.png +0 -0
- package/src/lib/vscodeBridge-vscode.ts +27 -0
- package/src/lib/vscodeBridge.ts +7 -0
- package/src/main.tsx +46 -0
- package/src/pages/AppearanceSettings.tsx +135 -0
- package/src/pages/Dependencies.tsx +926 -0
- package/src/pages/InfiniteZoom.tsx +404 -0
- package/src/pages/Settings.tsx +91 -0
- package/src/pages/ViewEditor/EDGE_DISTRIBUTION.md +64 -0
- package/src/pages/ViewEditor/components/EditorMenus.tsx +112 -0
- package/src/pages/ViewEditor/components/EditorOverlays.tsx +172 -0
- package/src/pages/ViewEditor/components/EmptyCanvasState.tsx +42 -0
- package/src/pages/ViewEditor/context.tsx +21 -0
- package/src/pages/ViewEditor/hooks/useCanvasInteractions.ts +1349 -0
- package/src/pages/ViewEditor/hooks/useDrawingEngine.ts +127 -0
- package/src/pages/ViewEditor/hooks/useViewContextNeighbours.ts +501 -0
- package/src/pages/ViewEditor/hooks/useViewData.ts +491 -0
- package/src/pages/ViewEditor/index.tsx +1366 -0
- package/src/pages/ViewEditor/utils.ts +88 -0
- package/src/pages/Views.tsx +171 -0
- package/src/pages/ViewsGrid.tsx +1310 -0
- package/src/pkg/importer/mermaid.test.ts +141 -0
- package/src/pkg/importer/mermaid.ts +76 -0
- package/src/platform/PlatformContext.tsx +17 -0
- package/src/platform/context.ts +9 -0
- package/src/platform/local.tsx +15 -0
- package/src/platform/types.ts +19 -0
- package/src/slots.ts +92 -0
- package/src/styles/editor-panels.css +66 -0
- package/src/styles/theme.css +56 -0
- package/src/theme.ts +336 -0
- package/src/types/index.ts +234 -0
- package/src/types/offline-ambient.d.ts +14 -0
- package/src/types/vscode-messages.ts +32 -0
- package/src/utils/edgeDistribution.ts +103 -0
- package/src/utils/githubApi.ts +121 -0
- package/src/utils/githubCache.ts +108 -0
- package/src/utils/ids.ts +9 -0
- package/src/utils/technologyCatalog.ts +143 -0
- package/src/utils/toast.ts +100 -0
- package/src/utils/treesitter.ts +147 -0
- package/src/utils/url.ts +72 -0
- package/src/vite-env.d.ts +1 -0
package/dist/App.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function App(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import type { Connector, DependencyConnector, DependencyElement, ElementPlacement, ExploreData, LibraryElement, PlacedElement, View, ViewConnector, ViewLayer, ViewPlacement, ViewTreeNode } from '../types';
|
|
2
|
+
import { PlanElement, PlanConnector } from '@buf/tldiagramcom_diagram.bufbuild_es/diag/v1/workspace_service_pb';
|
|
3
|
+
export interface DependenciesResponse {
|
|
4
|
+
elements: DependencyElement[];
|
|
5
|
+
connectors: DependencyConnector[];
|
|
6
|
+
}
|
|
7
|
+
export declare const api: {
|
|
8
|
+
system: {
|
|
9
|
+
ready: () => Promise<{
|
|
10
|
+
ok: boolean;
|
|
11
|
+
}>;
|
|
12
|
+
};
|
|
13
|
+
user: {
|
|
14
|
+
getPreferences: () => Promise<{
|
|
15
|
+
accent_color: string | null;
|
|
16
|
+
background_color: string | null;
|
|
17
|
+
element_color: string | null;
|
|
18
|
+
}>;
|
|
19
|
+
updatePreferences: (prefs: {
|
|
20
|
+
accent_color?: string;
|
|
21
|
+
background_color?: string;
|
|
22
|
+
element_color?: string;
|
|
23
|
+
}) => Promise<void>;
|
|
24
|
+
};
|
|
25
|
+
elements: {
|
|
26
|
+
list: (params?: {
|
|
27
|
+
limit?: number;
|
|
28
|
+
offset?: number;
|
|
29
|
+
search?: string;
|
|
30
|
+
}) => Promise<LibraryElement[]>;
|
|
31
|
+
get: (id: number) => Promise<LibraryElement>;
|
|
32
|
+
create: (data: Partial<LibraryElement>) => Promise<LibraryElement>;
|
|
33
|
+
update: (id: number, data: Partial<LibraryElement>) => Promise<LibraryElement>;
|
|
34
|
+
delete: (_orgId: string, id: number) => Promise<void>;
|
|
35
|
+
placements: (id: number) => Promise<ViewPlacement[]>;
|
|
36
|
+
};
|
|
37
|
+
workspace: {
|
|
38
|
+
elements: {
|
|
39
|
+
list: (params?: {
|
|
40
|
+
limit?: number;
|
|
41
|
+
offset?: number;
|
|
42
|
+
search?: string;
|
|
43
|
+
}) => Promise<LibraryElement[]>;
|
|
44
|
+
get: (id: number) => Promise<LibraryElement>;
|
|
45
|
+
create: (data: Partial<LibraryElement>) => Promise<LibraryElement>;
|
|
46
|
+
update: (id: number, data: Partial<LibraryElement>) => Promise<LibraryElement>;
|
|
47
|
+
delete: (_orgId: string, id: number) => Promise<void>;
|
|
48
|
+
placements: (id: number) => Promise<ViewPlacement[]>;
|
|
49
|
+
navigations: {
|
|
50
|
+
list: (elementId: number, fromDiagramId: number) => Promise<ViewConnector[]>;
|
|
51
|
+
listParents: (elementId: number, toDiagramId: number) => Promise<ViewConnector[]>;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
views: {
|
|
55
|
+
list: () => Promise<View[]>;
|
|
56
|
+
content: (id: number) => Promise<{
|
|
57
|
+
placements: PlacedElement[];
|
|
58
|
+
connectors: Connector[];
|
|
59
|
+
}>;
|
|
60
|
+
tree: () => Promise<ViewTreeNode[]>;
|
|
61
|
+
get: (id: number) => Promise<ViewTreeNode>;
|
|
62
|
+
create: (data: {
|
|
63
|
+
name: string;
|
|
64
|
+
label?: string;
|
|
65
|
+
parent_view_id?: number | null;
|
|
66
|
+
}) => Promise<View>;
|
|
67
|
+
update: (id: number, data: {
|
|
68
|
+
name: string;
|
|
69
|
+
label?: string;
|
|
70
|
+
}) => Promise<View>;
|
|
71
|
+
rename: (id: number, name: string) => Promise<View>;
|
|
72
|
+
setLevel: (id: number, level: number) => Promise<void>;
|
|
73
|
+
delete: (_orgId: string, id: number) => Promise<void>;
|
|
74
|
+
thumbnail: (_id: number) => Promise<string | null>;
|
|
75
|
+
placements: {
|
|
76
|
+
list: (diagramId: number) => Promise<ElementPlacement[]>;
|
|
77
|
+
add: (diagramId: number, elementId: number, x?: number, y?: number) => Promise<ElementPlacement>;
|
|
78
|
+
updatePosition: (diagramId: number, elementId: number, x: number, y: number) => Promise<void>;
|
|
79
|
+
remove: (diagramId: number, elementId: number) => Promise<void>;
|
|
80
|
+
};
|
|
81
|
+
layers: {
|
|
82
|
+
list: (diagramId: number) => Promise<ViewLayer[]>;
|
|
83
|
+
create: (diagramId: number, data: {
|
|
84
|
+
name: string;
|
|
85
|
+
tags: string[];
|
|
86
|
+
color?: string;
|
|
87
|
+
}) => Promise<ViewLayer>;
|
|
88
|
+
update: (_diagramId: number, layerId: number, data: Partial<ViewLayer>) => Promise<ViewLayer>;
|
|
89
|
+
delete: (_diagramId: number, layerId: number) => Promise<void>;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
connectors: {
|
|
93
|
+
list: (diagramId: number) => Promise<Connector[]>;
|
|
94
|
+
create: (diagramId: number, data: {
|
|
95
|
+
source_element_id: number;
|
|
96
|
+
target_element_id: number;
|
|
97
|
+
label?: string;
|
|
98
|
+
description?: string;
|
|
99
|
+
relationship?: string;
|
|
100
|
+
direction?: string;
|
|
101
|
+
style?: string;
|
|
102
|
+
url?: string;
|
|
103
|
+
source_handle?: string | null;
|
|
104
|
+
target_handle?: string | null;
|
|
105
|
+
}) => Promise<Connector>;
|
|
106
|
+
update: (_diagramId: number, connectorId: number, data: {
|
|
107
|
+
source_element_id?: number;
|
|
108
|
+
target_element_id?: number;
|
|
109
|
+
label?: string;
|
|
110
|
+
description?: string;
|
|
111
|
+
relationship?: string;
|
|
112
|
+
direction?: string;
|
|
113
|
+
style?: string;
|
|
114
|
+
url?: string;
|
|
115
|
+
source_handle?: string | null;
|
|
116
|
+
target_handle?: string | null;
|
|
117
|
+
}) => Promise<Connector>;
|
|
118
|
+
delete: (_orgId: string, connectorId: number) => Promise<void>;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
dependencies: {
|
|
122
|
+
list: () => Promise<DependenciesResponse>;
|
|
123
|
+
};
|
|
124
|
+
explore: {
|
|
125
|
+
load: () => Promise<ExploreData & {
|
|
126
|
+
password_required?: boolean;
|
|
127
|
+
}>;
|
|
128
|
+
};
|
|
129
|
+
import: {
|
|
130
|
+
resources: (orgId: string, data: {
|
|
131
|
+
elements: PlanElement[];
|
|
132
|
+
connectors: PlanConnector[];
|
|
133
|
+
}) => Promise<{
|
|
134
|
+
view_id: number;
|
|
135
|
+
view_url: string;
|
|
136
|
+
}>;
|
|
137
|
+
parseStructurizr: (code: string) => Promise<{
|
|
138
|
+
elements: PlanElement[];
|
|
139
|
+
connectors: PlanConnector[];
|
|
140
|
+
warnings: string[];
|
|
141
|
+
}>;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const transport: import("@connectrpc/connect").Transport;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { PlacedElement } from '../types';
|
|
2
|
+
interface Props {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
element: PlacedElement | null;
|
|
6
|
+
hasBackdrop?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export default function CodePreviewPanel({ isOpen, onClose, element, hasBackdrop }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
onConfirm: () => void;
|
|
5
|
+
title: string;
|
|
6
|
+
body: string;
|
|
7
|
+
confirmLabel?: string;
|
|
8
|
+
confirmColorScheme?: string;
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export default function ConfirmDialog({ isOpen, onClose, onConfirm, title, body, confirmLabel, confirmColorScheme, isLoading, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ConnectorPanelSlots } from '../slots';
|
|
2
|
+
import type { Connector } from '../types';
|
|
3
|
+
export interface ConnectorPanelProps extends ConnectorPanelSlots {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
connector: Connector | null;
|
|
7
|
+
orgId: string;
|
|
8
|
+
onSave: (connector: Connector) => void;
|
|
9
|
+
autoSave?: boolean;
|
|
10
|
+
onDelete: (edgeId: number) => void;
|
|
11
|
+
hasBackdrop?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Name: Edit Connector Panel
|
|
15
|
+
* Role: Opens when clicked on a connector and displays its fields, allowing for editing. Same as Edit Element Panel but for connectors.
|
|
16
|
+
* Location: Right side of the screen on desktop. Overlays screen on mobile.
|
|
17
|
+
* Aliases: Connector Properties, Connector Details.
|
|
18
|
+
*/
|
|
19
|
+
declare function ConnectorPanel({ isOpen, onClose, connector, orgId, onSave, autoSave, onDelete, hasBackdrop, connectorPanelAfterContentSlot }: ConnectorPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare const _default: import("react").MemoExoticComponent<typeof ConnectorPanel>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
data: {
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
parentName: string;
|
|
6
|
+
onNavigateToDiagram: () => void;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
declare function ContextBoundaryElement({ data }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const _default: import("react").MemoExoticComponent<typeof ContextBoundaryElement>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { PlacedElement } from '../types';
|
|
2
|
+
interface ContextNeighborData {
|
|
3
|
+
element_id: number;
|
|
4
|
+
name: string;
|
|
5
|
+
kind: string | null;
|
|
6
|
+
description: string | null;
|
|
7
|
+
technology: string | null;
|
|
8
|
+
logo_url: string | null;
|
|
9
|
+
technology_connectors: PlacedElement['technology_connectors'];
|
|
10
|
+
ownerViewIds: number[];
|
|
11
|
+
ownerViewNames: string[];
|
|
12
|
+
commonAncestorViewId: number | null;
|
|
13
|
+
commonAncestorViewName: string | null;
|
|
14
|
+
connectorCount: number;
|
|
15
|
+
onNavigateToView: (viewId: number) => void;
|
|
16
|
+
onSelectDetails?: () => void;
|
|
17
|
+
isCanvasMoving?: boolean;
|
|
18
|
+
isGroupAnchor?: boolean;
|
|
19
|
+
groupChildCount?: number;
|
|
20
|
+
isGroupExpanded?: boolean;
|
|
21
|
+
onToggleGroup?: () => void;
|
|
22
|
+
side?: 'top' | 'bottom' | 'left' | 'right';
|
|
23
|
+
}
|
|
24
|
+
interface Props {
|
|
25
|
+
data: ContextNeighborData;
|
|
26
|
+
}
|
|
27
|
+
declare function ContextNeighborNode({ data }: Props): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
declare const _default: import("react").MemoExoticComponent<typeof ContextNeighborNode>;
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { EdgeProps } from 'reactflow';
|
|
2
|
+
declare function ContextStraightConnector({ id, source, target, style, markerEnd, markerStart, data, }: EdgeProps): import("react/jsx-runtime").JSX.Element | null;
|
|
3
|
+
declare const _default: import("react").MemoExoticComponent<typeof ContextStraightConnector>;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CrossBranchContextSettings } from '../crossBranch/types';
|
|
2
|
+
interface Props {
|
|
3
|
+
settings: CrossBranchContextSettings;
|
|
4
|
+
onEnabledChange: (enabled: boolean) => void;
|
|
5
|
+
onDepthChange: (depth: number) => void;
|
|
6
|
+
label?: string;
|
|
7
|
+
}
|
|
8
|
+
export default function CrossBranchControls({ settings, onEnabledChange, onDepthChange, label, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type DrawingPoint = {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
};
|
|
6
|
+
export type DrawingPath = {
|
|
7
|
+
id: string;
|
|
8
|
+
points: DrawingPoint[];
|
|
9
|
+
color: string;
|
|
10
|
+
width: number;
|
|
11
|
+
text?: string;
|
|
12
|
+
fontSize?: number;
|
|
13
|
+
};
|
|
14
|
+
interface DrawingCanvasProps {
|
|
15
|
+
paths: DrawingPath[];
|
|
16
|
+
isDrawing: boolean;
|
|
17
|
+
isVisible: boolean;
|
|
18
|
+
strokeColor?: string;
|
|
19
|
+
strokeWidth?: number;
|
|
20
|
+
mode?: 'pencil' | 'eraser' | 'text' | 'select';
|
|
21
|
+
onPathComplete: (path: DrawingPath) => void;
|
|
22
|
+
onPathDelete?: (pathId: string) => void;
|
|
23
|
+
onPathUpdate?: (path: DrawingPath) => void;
|
|
24
|
+
onTextPositionSelected?: (canvasX: number, canvasY: number, flowX: number, flowY: number) => void;
|
|
25
|
+
}
|
|
26
|
+
export interface DrawingCanvasHandle {
|
|
27
|
+
/** Imperatively update the viewport and redraw avoids React re-renders on every pan frame. */
|
|
28
|
+
notifyViewportChange: (vp: {
|
|
29
|
+
x: number;
|
|
30
|
+
y: number;
|
|
31
|
+
zoom: number;
|
|
32
|
+
}) => void;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* A premium free-drawing overlay with smooth ink-like strokes, hit detection for move/erase,
|
|
36
|
+
* and a broad eraser brush.
|
|
37
|
+
*/
|
|
38
|
+
declare const DrawingCanvas: React.ForwardRefExoticComponent<DrawingCanvasProps & React.RefAttributes<DrawingCanvasHandle>>;
|
|
39
|
+
export default DrawingCanvas;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VS Code variant of ElementLibrary.
|
|
3
|
+
* The element library is surfaced as a native VS Code tree view instead.
|
|
4
|
+
* This stub prevents the web component (with its drag/touch/scroll logic) from
|
|
5
|
+
* being bundled into the webview build.
|
|
6
|
+
*/
|
|
7
|
+
export default function ElementLibrary(): null;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import '../styles/editor-panels.css';
|
|
2
|
+
import type { LibraryElement } from '../types';
|
|
3
|
+
interface Props {
|
|
4
|
+
existingElementIds: Set<number>;
|
|
5
|
+
existingElements?: LibraryElement[];
|
|
6
|
+
onCreateNew: () => void;
|
|
7
|
+
refresh: number;
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
onTapAdd?: (obj: LibraryElement) => void;
|
|
11
|
+
onFindElement?: (id: number) => void;
|
|
12
|
+
onTouchDrop?: (obj: LibraryElement, clientX: number, clientY: number) => void;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Name: Element Library
|
|
16
|
+
* Role: Panel/drawer that displays the organization's element library and shows which are in the current view and which are not. Includes an add new element button.
|
|
17
|
+
* Location: Left side panel/drawer on desktop. Collapsed under a button on mobile.
|
|
18
|
+
* Aliases: Element sidebar, Library panel.
|
|
19
|
+
*/
|
|
20
|
+
declare function ElementLibrary({ existingElementIds, existingElements, onCreateNew, refresh, isOpen, onClose, onTapAdd, onFindElement, onTouchDrop, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare const _default: import("react").MemoExoticComponent<typeof ElementLibrary>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { PlacedElement, ViewConnector, Tag } from '../types';
|
|
2
|
+
interface NodeData extends PlacedElement {
|
|
3
|
+
links: ViewConnector[];
|
|
4
|
+
parentLinks: ViewConnector[];
|
|
5
|
+
parentViewId?: number | null;
|
|
6
|
+
onZoomIn: (elementId: number) => void;
|
|
7
|
+
onZoomOut: (elementId: number) => void;
|
|
8
|
+
onNavigateToDiagram: (viewId: number) => void;
|
|
9
|
+
onSelect: (obj: PlacedElement) => void;
|
|
10
|
+
onInteractionStart: (elementId: number) => void;
|
|
11
|
+
onConnectTo: (elementId: number) => void;
|
|
12
|
+
onStartHandleReconnect?: (args: {
|
|
13
|
+
edgeId: string;
|
|
14
|
+
endpoint: 'source' | 'target';
|
|
15
|
+
handleId: string;
|
|
16
|
+
clientX: number;
|
|
17
|
+
clientY: number;
|
|
18
|
+
}) => void;
|
|
19
|
+
onRemove: (elementId: number) => void;
|
|
20
|
+
onHoverZoom: (elementId: number, type: 'in' | 'out' | null) => void;
|
|
21
|
+
isZoomHovered: 'in' | 'out' | null;
|
|
22
|
+
interactionSourceId: number | null;
|
|
23
|
+
onOpenCodePreview?: (elementId: number) => void;
|
|
24
|
+
isClickConnectMode?: boolean;
|
|
25
|
+
tagColors: Record<string, Tag>;
|
|
26
|
+
layerHighlightColor?: string;
|
|
27
|
+
forceShowTagPopup?: boolean;
|
|
28
|
+
isCanvasMoving?: boolean;
|
|
29
|
+
}
|
|
30
|
+
interface Props {
|
|
31
|
+
data: NodeData;
|
|
32
|
+
selected: boolean;
|
|
33
|
+
}
|
|
34
|
+
declare function ElementNode({ data, selected }: Props): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
declare const _default: import("react").MemoExoticComponent<typeof ElementNode>;
|
|
36
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ElementPanelSlots } from '../slots';
|
|
2
|
+
import { type LibraryElement, type ViewConnector } from '../types';
|
|
3
|
+
export interface ElementPanelProps extends ElementPanelSlots {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
element?: LibraryElement | null;
|
|
7
|
+
onSave: (obj: LibraryElement) => void;
|
|
8
|
+
autoSave?: boolean;
|
|
9
|
+
onDelete?: (id: number) => void;
|
|
10
|
+
onPermanentDelete?: (id: number) => void;
|
|
11
|
+
orgId?: string;
|
|
12
|
+
links?: ViewConnector[];
|
|
13
|
+
parentLinks?: ViewConnector[];
|
|
14
|
+
hasBackdrop?: boolean;
|
|
15
|
+
availableTags?: string[];
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Name: Edit Element Panel
|
|
19
|
+
* Role: Opens when clicked on an element and displays its fields, allowing for editing.
|
|
20
|
+
* Location: Right side of the screen on desktop. Overlays screen on mobile.
|
|
21
|
+
* Aliases: Element Properties, Element Details.
|
|
22
|
+
*/
|
|
23
|
+
declare function ElementPanel({ isOpen, onClose, element, onSave, autoSave, onDelete, onPermanentDelete, orgId, links, parentLinks, hasBackdrop, availableTags, elementPanelAfterContentSlot }: ElementPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
declare const _default: import("react").MemoExoticComponent<typeof ElementPanel>;
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type ExportFormat = 'svg' | 'png' | 'mermaid';
|
|
2
|
+
export interface ExportOptions {
|
|
3
|
+
format: ExportFormat;
|
|
4
|
+
scale: 1 | 2 | 3;
|
|
5
|
+
filename: string;
|
|
6
|
+
}
|
|
7
|
+
interface Props {
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
defaultFilename: string;
|
|
11
|
+
isExporting?: boolean;
|
|
12
|
+
onExport: (options: ExportOptions) => Promise<void> | void;
|
|
13
|
+
}
|
|
14
|
+
declare function ExportModal({ isOpen, onClose, defaultFilename, isExporting, onExport, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare const _default: import("react").MemoExoticComponent<typeof ExportModal>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type EdgeProps } from 'reactflow';
|
|
2
|
+
export interface FloatingConnectorData {
|
|
3
|
+
color: string;
|
|
4
|
+
/** true = portal/navigational link (dotted), false = hierarchy (solid) */
|
|
5
|
+
dashed?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare function FloatingConnector({ source, target, data, selected, }: EdgeProps<FloatingConnectorData>): import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
declare const _default: import("react").MemoExoticComponent<typeof FloatingConnector>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { LibraryElement } from '../types';
|
|
2
|
+
interface Props {
|
|
3
|
+
element: LibraryElement;
|
|
4
|
+
isReadOnly: boolean;
|
|
5
|
+
onUpdate: (updates: Partial<LibraryElement>) => void;
|
|
6
|
+
}
|
|
7
|
+
export default function GitSourceLinker({ element, isReadOnly, onUpdate }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type HeaderPayload = {
|
|
3
|
+
node: React.ReactNode | null;
|
|
4
|
+
hideMobileBar?: boolean;
|
|
5
|
+
} | React.ReactNode | null;
|
|
6
|
+
type HeaderSetter = (payload: HeaderPayload) => void;
|
|
7
|
+
declare const HeaderContext: React.Context<{
|
|
8
|
+
header: HeaderPayload;
|
|
9
|
+
setHeader: HeaderSetter;
|
|
10
|
+
} | undefined>;
|
|
11
|
+
export declare function HeaderProvider({ children }: {
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function useSetHeader(): HeaderSetter;
|
|
15
|
+
export declare function useHeader(): HeaderPayload;
|
|
16
|
+
export default HeaderContext;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
export declare function ZoomOutIcon({ size, strokeWidth }: {
|
|
2
|
+
size?: number;
|
|
3
|
+
strokeWidth?: number;
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function ZoomInIcon({ size, strokeWidth }: {
|
|
6
|
+
size?: number;
|
|
7
|
+
strokeWidth?: number;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function AddElementIcon({ size, strokeWidth }: {
|
|
10
|
+
size?: number;
|
|
11
|
+
strokeWidth?: number;
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function FitViewIcon({ size, strokeWidth }: {
|
|
14
|
+
size?: number;
|
|
15
|
+
strokeWidth?: number;
|
|
16
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare function ShareIcon({ size, strokeWidth }: {
|
|
18
|
+
size?: number;
|
|
19
|
+
strokeWidth?: number;
|
|
20
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare function TrashIcon({ size, strokeWidth }: {
|
|
22
|
+
size?: number;
|
|
23
|
+
strokeWidth?: number;
|
|
24
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare function EditIcon({ size, strokeWidth }: {
|
|
26
|
+
size?: number;
|
|
27
|
+
strokeWidth?: number;
|
|
28
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare function GitIcon({ size, strokeWidth }: {
|
|
30
|
+
size?: number;
|
|
31
|
+
strokeWidth?: number;
|
|
32
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export declare function MoveSourceIcon({ size, strokeWidth }: {
|
|
34
|
+
size?: number;
|
|
35
|
+
strokeWidth?: number;
|
|
36
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
export declare function MoveTargetIcon({ size, strokeWidth }: {
|
|
38
|
+
size?: number;
|
|
39
|
+
strokeWidth?: number;
|
|
40
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
export declare function NavigationIcon({ size, strokeWidth }: {
|
|
42
|
+
size?: number;
|
|
43
|
+
strokeWidth?: number;
|
|
44
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export declare function LibraryIcon({ size }: {
|
|
46
|
+
size?: number;
|
|
47
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
export declare function ExpandExtrasIcon({ size, strokeWidth }: {
|
|
49
|
+
size?: number;
|
|
50
|
+
strokeWidth?: number;
|
|
51
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
export declare function CollapseExtrasIcon({ size, strokeWidth }: {
|
|
53
|
+
size?: number;
|
|
54
|
+
strokeWidth?: number;
|
|
55
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
export declare function EyeIcon({ size, strokeWidth }: {
|
|
57
|
+
size?: number;
|
|
58
|
+
strokeWidth?: number;
|
|
59
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
60
|
+
export declare function EyeOffIcon({ size, strokeWidth }: {
|
|
61
|
+
size?: number;
|
|
62
|
+
strokeWidth?: number;
|
|
63
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
export declare function ImportIcon({ size, strokeWidth }: {
|
|
65
|
+
size?: number;
|
|
66
|
+
strokeWidth?: number;
|
|
67
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
68
|
+
export declare function LayerIcon({ size, strokeWidth }: {
|
|
69
|
+
size?: number;
|
|
70
|
+
strokeWidth?: number;
|
|
71
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
72
|
+
export declare function ChevronLeftIcon({ size, strokeWidth }: {
|
|
73
|
+
size?: number;
|
|
74
|
+
strokeWidth?: number;
|
|
75
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
76
|
+
export declare function ChevronRightIcon({ size, strokeWidth }: {
|
|
77
|
+
size?: number;
|
|
78
|
+
strokeWidth?: number;
|
|
79
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
80
|
+
export declare function ChevronDownIcon({ size, strokeWidth }: {
|
|
81
|
+
size?: number;
|
|
82
|
+
strokeWidth?: number;
|
|
83
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
84
|
+
export declare function TagsIcon({ size, strokeWidth }: {
|
|
85
|
+
size?: number;
|
|
86
|
+
strokeWidth?: number;
|
|
87
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
88
|
+
export declare function GridIcon({ size, strokeWidth }: {
|
|
89
|
+
size?: number;
|
|
90
|
+
strokeWidth?: number;
|
|
91
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
92
|
+
export declare function FocusIcon({ size, strokeWidth }: {
|
|
93
|
+
size?: number;
|
|
94
|
+
strokeWidth?: number;
|
|
95
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ParsedImport } from '../pkg/importer/mermaid';
|
|
2
|
+
interface Props {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
isImporting?: boolean;
|
|
6
|
+
onImport: (parsed: ParsedImport) => Promise<void> | void;
|
|
7
|
+
}
|
|
8
|
+
declare function ImportModal({ isOpen, onClose, isImporting, onImport }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare const _default: import("react").MemoExoticComponent<typeof ImportModal>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { LibraryElement } from '../types';
|
|
2
|
+
interface Props {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
allElements: LibraryElement[];
|
|
6
|
+
existingElementIds: Set<number>;
|
|
7
|
+
onConfirmNew: (name: string) => Promise<void>;
|
|
8
|
+
onConfirmExisting: (obj: LibraryElement) => Promise<void>;
|
|
9
|
+
onCancel: () => void;
|
|
10
|
+
expandResults?: boolean;
|
|
11
|
+
allowCreate?: boolean;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
title?: string;
|
|
14
|
+
getSecondaryLabel?: (obj: LibraryElement) => string | null;
|
|
15
|
+
}
|
|
16
|
+
export default function InlineElementAdder({ x, y, allElements, existingElementIds, onConfirmNew, onConfirmExisting, onCancel, expandResults, allowCreate, placeholder, title, getSecondaryLabel, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { LibraryElement } from '../types';
|
|
2
|
+
interface Props {
|
|
3
|
+
element: LibraryElement;
|
|
4
|
+
isReadOnly: boolean;
|
|
5
|
+
onUpdate: (updates: Partial<LibraryElement>) => void;
|
|
6
|
+
}
|
|
7
|
+
export default function LocalSourceLinker({ element, isReadOnly, onUpdate }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FlexProps } from '@chakra-ui/react';
|
|
2
|
+
interface ElementBodyProps extends FlexProps {
|
|
3
|
+
name: string;
|
|
4
|
+
type: string;
|
|
5
|
+
technology?: string;
|
|
6
|
+
logoUrl?: string;
|
|
7
|
+
nameSize?: string;
|
|
8
|
+
typeSize?: string;
|
|
9
|
+
techSize?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const ElementBody: ({ name, type, technology, logoUrl, nameSize, typeSize, techSize, children, ...props }: ElementBodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|