@likec4/diagram 1.57.0 → 1.58.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/adhoc-editor/EditorPanel.d.ts +1 -1
- package/dist/adhoc-editor/ElementsTree.d.ts +1 -1
- package/dist/adhoc-editor/LikeC4AdHocViewEditor.d.ts +1 -1
- package/dist/adhoc-editor/components/Tree.d.ts +5 -5
- package/dist/adhoc-editor/state/ActorProvider.d.ts +1 -1
- package/dist/adhoc-editor/state/panel.d.ts +1 -1
- package/dist/adhoc-editor/viewrules/ViewRulesPanel.d.ts +1 -1
- package/dist/base/BaseXYFlow.d.ts +1 -1
- package/dist/base-primitives/Markdown.d.ts +1 -1
- package/dist/base-primitives/NodeHandles.d.ts +1 -1
- package/dist/base-primitives/compound/CompoundActionButton.d.ts +1 -1
- package/dist/base-primitives/compound/CompoundDetailsButton.d.ts +1 -1
- package/dist/base-primitives/compound/CompoundNodeContainer.d.ts +1 -1
- package/dist/base-primitives/compound/CompoundTitle.d.ts +1 -1
- package/dist/base-primitives/compound/actionbtns.css.d.ts +1 -1
- package/dist/base-primitives/edge/EdgeActionButton.d.ts +1 -1
- package/dist/base-primitives/edge/EdgeContainer.d.ts +1 -1
- package/dist/base-primitives/edge/EdgeLabelContainer.d.ts +1 -1
- package/dist/base-primitives/edge/EdgeMarkers.d.ts +8 -8
- package/dist/base-primitives/element/ElementActionButtons.d.ts +1 -1
- package/dist/base-primitives/element/ElementData.d.ts +2 -2
- package/dist/base-primitives/element/ElementDetailsButton.d.ts +1 -1
- package/dist/base-primitives/element/ElementShape.d.ts +1 -1
- package/dist/base-primitives/element/ElementTags.d.ts +1 -1
- package/dist/base-primitives/element/ElementTags.js +1 -3
- package/dist/components/ErrorFallback.d.ts +2 -2
- package/dist/components/NavigationPanel.d.ts +2 -2
- package/dist/components/PortalToContainer.d.ts +1 -1
- package/dist/components/RootContainer.d.ts +1 -1
- package/dist/components/SearchControl.d.ts +2 -2
- package/dist/components/ViewNotFound.d.ts +2 -2
- package/dist/context/CurrentViewModelProvider.d.ts +1 -1
- package/dist/context/DefaultMantineProvider.d.ts +1 -1
- package/dist/context/DiagramEventHandlers.d.ts +1 -1
- package/dist/context/EnsureMantine.d.ts +1 -1
- package/dist/context/FramerMotionConfig.d.ts +3 -3
- package/dist/context/FramerMotionConfig.js +2 -2
- package/dist/context/IconRenderer.d.ts +2 -2
- package/dist/context/IconRenderer.js +32 -12
- package/dist/context/LikeC4ModelContext.d.ts +1 -1
- package/dist/context/ShadowRootContext.d.ts +3 -0
- package/dist/context/ShadowRootContext.js +5 -0
- package/dist/context/TagStylesContext.d.ts +2 -1
- package/dist/context/TagStylesContext.js +5 -7
- package/dist/editor/LikeC4EditorProvider.d.ts +2 -2
- package/dist/editor/actor/actions.d.ts +74 -15
- package/dist/editor/actor/actions.js +91 -25
- package/dist/editor/actor/hotkey.d.ts +1 -1
- package/dist/editor/actor/hotkey.js +7 -0
- package/dist/editor/actor/machine.d.ts +1 -1
- package/dist/editor/actor/machine.js +1 -0
- package/dist/editor/actor/setup.d.ts +10 -3
- package/dist/editor/actor/setup.js +3 -2
- package/dist/editor/actor/state.editor.d.ts +64 -14
- package/dist/editor/actor/state.editor.js +12 -11
- package/dist/editor/actor/state.sync-queue.d.ts +283 -91
- package/dist/editor/actor/state.sync-queue.js +93 -56
- package/dist/editor/actor/types.d.ts +6 -1
- package/dist/editor/actor/types.js +1 -1
- package/dist/editor/useEditorActorLogic.js +14 -2
- package/dist/hooks/useEditorActor.d.ts +5 -0
- package/dist/hooks/useEditorActor.js +3 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -1
- package/dist/likec4diagram/DiagramUI.d.ts +1 -1
- package/dist/likec4diagram/DiagramXYFlow.js +15 -3
- package/dist/likec4diagram/custom/edges/EdgeDrifts.d.ts +1 -1
- package/dist/likec4diagram/custom/edges/RelationshipEdge.js +127 -14
- package/dist/likec4diagram/custom/edges/SequenceStepEdge.d.ts +1 -1
- package/dist/likec4diagram/custom/edges/edges.css.d.ts +1 -0
- package/dist/likec4diagram/custom/edges/edges.css.js +5 -1
- package/dist/likec4diagram/custom/nodes/CompoundActions.d.ts +1 -1
- package/dist/likec4diagram/custom/nodes/ElementActions.d.ts +2 -2
- package/dist/likec4diagram/custom/nodes/NodeDrifts.d.ts +1 -1
- package/dist/likec4diagram/custom/nodes/NodeNotes.d.ts +1 -1
- package/dist/likec4diagram/custom/nodes/SequenceActorNode.d.ts +2 -2
- package/dist/likec4diagram/custom/nodes/nodes.d.ts +7 -7
- package/dist/likec4diagram/custom/nodes/toolbar/ColorButton.d.ts +3 -3
- package/dist/likec4diagram/custom/nodes/toolbar/CompoundToolbar.d.ts +2 -2
- package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.d.ts +2 -2
- package/dist/likec4diagram/custom/nodes/toolbar/Toolbar.d.ts +1 -1
- package/dist/likec4diagram/custom/nodes/toolbar/_shared.d.ts +3 -3
- package/dist/likec4diagram/relationship-popover/RelationshipPopover.d.ts +1 -1
- package/dist/likec4diagram/relationship-popover/components.d.ts +2 -2
- package/dist/likec4diagram/state/DiagramActorProvider.d.ts +1 -1
- package/dist/likec4diagram/state/createViewChange.js +1 -0
- package/dist/likec4diagram/state/machine.actions.js +3 -2
- package/dist/likec4diagram/types.d.ts +2 -0
- package/dist/likec4diagram/ui/LayoutDriftFrame.d.ts +1 -1
- package/dist/likec4diagram/ui/notation/NotationPanel.d.ts +1 -1
- package/dist/likec4diagram/xyflow-diagram/diagram-view.js +4 -2
- package/dist/likec4diagram/xyflow-sequence/sequence-layout.js +1 -0
- package/dist/navigationpanel/NavigationPanel.d.ts +1 -1
- package/dist/navigationpanel/NavigationPanelControls.d.ts +1 -1
- package/dist/navigationpanel/NavigationPanelDropdown.d.ts +1 -1
- package/dist/navigationpanel/NavigationPanelDropdown.js +2 -2
- package/dist/navigationpanel/_common.d.ts +2 -2
- package/dist/navigationpanel/comparepanel/CompareActionsMenu.d.ts +1 -1
- package/dist/navigationpanel/comparepanel/ComparePanel.d.ts +1 -1
- package/dist/navigationpanel/comparepanel/ComparePanelControls.d.ts +1 -1
- package/dist/navigationpanel/comparepanel/DriftsSummary.d.ts +1 -1
- package/dist/navigationpanel/comparepanel/LayoutTypeSwitcher.d.ts +1 -1
- package/dist/navigationpanel/controls/DetailsControls.d.ts +1 -1
- package/dist/navigationpanel/controls/LayoutWarning.d.ts +1 -1
- package/dist/navigationpanel/controls/LogoButton.d.ts +1 -1
- package/dist/navigationpanel/controls/NavigationButtons.d.ts +1 -1
- package/dist/navigationpanel/controls/OpenSource.d.ts +1 -1
- package/dist/navigationpanel/controls/SearchControl.d.ts +1 -1
- package/dist/navigationpanel/controls/ToggleReadonly.d.ts +1 -1
- package/dist/navigationpanel/editorpanel/CenterCamera.d.ts +1 -1
- package/dist/navigationpanel/editorpanel/ChangeAutoLayoutButton.d.ts +1 -1
- package/dist/navigationpanel/editorpanel/EditorPanel.d.ts +1 -1
- package/dist/navigationpanel/editorpanel/ManualLayoutToolsButton.d.ts +1 -1
- package/dist/navigationpanel/editorpanel/ToggleReadonly.d.ts +1 -1
- package/dist/navigationpanel/styles.css.d.ts +1 -1
- package/dist/navigationpanel/walkthrough/ActiveWalkthroughControls.d.ts +1 -1
- package/dist/navigationpanel/walkthrough/DynamicViewControls.d.ts +1 -1
- package/dist/navigationpanel/walkthrough/WalkthroughPanel.d.ts +1 -1
- package/dist/overlays/Overlays.d.ts +1 -1
- package/dist/overlays/element-details/ElementDetails.d.ts +1 -1
- package/dist/overlays/element-details/ElementDetailsCard.d.ts +1 -1
- package/dist/overlays/element-details/MetadataValue.d.ts +2 -2
- package/dist/overlays/element-details/TabPanelRelationships.d.ts +1 -1
- package/dist/overlays/element-details/TabPanelStructure.d.ts +2 -2
- package/dist/overlays/relationship-details/RelationshipDetails.d.ts +1 -1
- package/dist/overlays/relationship-details/SelectEdge.d.ts +1 -1
- package/dist/overlays/relationship-details/custom/ElementActions.d.ts +1 -1
- package/dist/overlays/relationship-details/custom/nodeTypes.d.ts +4 -4
- package/dist/overlays/relationships-browser/RelationshipsBrowser.d.ts +1 -1
- package/dist/overlays/relationships-browser/SelectElement.d.ts +1 -1
- package/dist/overlays/relationships-browser/custom/ElementActions.d.ts +1 -1
- package/dist/overlays/relationships-browser/custom/EmptyNode.d.ts +1 -1
- package/dist/overlays/relationships-browser/custom/nodeTypes.d.ts +4 -4
- package/dist/projects-overview/ProjectsOverview.d.ts +1 -1
- package/dist/projects-overview/custom/nodeTypes.d.ts +1 -1
- package/dist/projects-overview/panel/ProjectsOverviewPanel.d.ts +1 -1
- package/dist/search/Search.d.ts +1 -1
- package/dist/search/XStateSearchAdapter.d.ts +1 -1
- package/dist/search/components/ElementsColumn.d.ts +1 -1
- package/dist/search/components/PickView.d.ts +1 -1
- package/dist/search/components/SearchByTags.d.ts +1 -1
- package/dist/search/components/SearchInput.d.ts +1 -1
- package/dist/search/components/ViewsColum.d.ts +3 -3
- package/dist/search/components/_shared.css.d.ts +1 -1
- package/dist/shadowroot/ShadowRoot.d.ts +1 -2
- package/dist/shadowroot/ShadowRoot.js +27 -21
- package/dist/shadowroot/index.d.ts +1 -0
- package/dist/shadowroot/{styles.css.d.ts → styles.d.ts} +3 -2
- package/dist/shadowroot/{styles.css.js → styles.js} +9 -8
- package/dist/styles2.js +1 -1
- package/package.json +27 -28
- package/panda.buildinfo.json +4 -7
- package/styles-min.css +1 -1
- package/styles-xyflow.css +1 -1
- package/styles.css +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActionFunction, PromiseActorLogic, EventObject,
|
|
1
|
+
import { ActionFunction, PromiseActorLogic, EventObject, CancelAction, LogAction, GuardArgs, ActorRef, MachineSnapshot, AnyActorRef, StateValue, AnyEventObject, DoneActorEvent, ErrorActorEvent, ActionArgs } from 'xstate';
|
|
2
2
|
import { EditorActorContext, EditorActorEvent, EditorActorEmitedEvent } from './types';
|
|
3
3
|
import { HotkeyActorLogic } from './hotkey';
|
|
4
4
|
import { DiagramView, Any, ViewId, ViewChange } from '@likec4/core';
|
|
@@ -11,6 +11,34 @@ export declare const syncQueue: {
|
|
|
11
11
|
guard: "has pending";
|
|
12
12
|
};
|
|
13
13
|
on: {
|
|
14
|
+
'delete.nodes-edges': {
|
|
15
|
+
actions: ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, {
|
|
16
|
+
src: "hotkey";
|
|
17
|
+
logic: HotkeyActorLogic;
|
|
18
|
+
id: "hotkey";
|
|
19
|
+
} | {
|
|
20
|
+
src: "applyLatest";
|
|
21
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ApplyLatestToManual.Output, import("./setup").EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
22
|
+
id: string | undefined;
|
|
23
|
+
} | {
|
|
24
|
+
src: "executeChange";
|
|
25
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ExecuteChange.Output, import("./setup").EditorCalls.ExecuteChange.Input, EventObject>;
|
|
26
|
+
id: string | undefined;
|
|
27
|
+
} | {
|
|
28
|
+
src: "applySemanticLayout";
|
|
29
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ApplySemanticLayout.Output, import("./setup").EditorCalls.ApplySemanticLayout.Input, EventObject>;
|
|
30
|
+
id: string | undefined;
|
|
31
|
+
}, never, {
|
|
32
|
+
type: "has pending";
|
|
33
|
+
params: unknown;
|
|
34
|
+
} | {
|
|
35
|
+
type: "can undo";
|
|
36
|
+
params: unknown;
|
|
37
|
+
} | {
|
|
38
|
+
type: "can redo";
|
|
39
|
+
params: unknown;
|
|
40
|
+
}, "500ms" | "wait-after-edit", EditorActorEmitedEvent>;
|
|
41
|
+
};
|
|
14
42
|
'change.sync-snapshot': {
|
|
15
43
|
target: "#queue-pending";
|
|
16
44
|
actions: ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, {
|
|
@@ -23,7 +51,7 @@ export declare const syncQueue: {
|
|
|
23
51
|
id: string | undefined;
|
|
24
52
|
} | {
|
|
25
53
|
src: "executeChange";
|
|
26
|
-
logic: PromiseActorLogic<
|
|
54
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ExecuteChange.Output, import("./setup").EditorCalls.ExecuteChange.Input, EventObject>;
|
|
27
55
|
id: string | undefined;
|
|
28
56
|
} | {
|
|
29
57
|
src: "applySemanticLayout";
|
|
@@ -43,7 +71,7 @@ export declare const syncQueue: {
|
|
|
43
71
|
id: string | undefined;
|
|
44
72
|
} | {
|
|
45
73
|
src: "executeChange";
|
|
46
|
-
logic: PromiseActorLogic<
|
|
74
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ExecuteChange.Output, import("./setup").EditorCalls.ExecuteChange.Input, EventObject>;
|
|
47
75
|
id: string | undefined;
|
|
48
76
|
} | {
|
|
49
77
|
src: "applySemanticLayout";
|
|
@@ -52,7 +80,6 @@ export declare const syncQueue: {
|
|
|
52
80
|
}, never, never, never, never>;
|
|
53
81
|
};
|
|
54
82
|
undo: {
|
|
55
|
-
target: "#queue-idle";
|
|
56
83
|
actions: ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, {
|
|
57
84
|
src: "hotkey";
|
|
58
85
|
logic: HotkeyActorLogic;
|
|
@@ -63,7 +90,7 @@ export declare const syncQueue: {
|
|
|
63
90
|
id: string | undefined;
|
|
64
91
|
} | {
|
|
65
92
|
src: "executeChange";
|
|
66
|
-
logic: PromiseActorLogic<
|
|
93
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ExecuteChange.Output, import("./setup").EditorCalls.ExecuteChange.Input, EventObject>;
|
|
67
94
|
id: string | undefined;
|
|
68
95
|
} | {
|
|
69
96
|
src: "applySemanticLayout";
|
|
@@ -75,8 +102,47 @@ export declare const syncQueue: {
|
|
|
75
102
|
} | {
|
|
76
103
|
type: "can undo";
|
|
77
104
|
params: unknown;
|
|
105
|
+
} | {
|
|
106
|
+
type: "can redo";
|
|
107
|
+
params: unknown;
|
|
78
108
|
}, "500ms" | "wait-after-edit", EditorActorEmitedEvent>;
|
|
79
|
-
|
|
109
|
+
};
|
|
110
|
+
redo: {
|
|
111
|
+
actions: ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, {
|
|
112
|
+
src: "hotkey";
|
|
113
|
+
logic: HotkeyActorLogic;
|
|
114
|
+
id: "hotkey";
|
|
115
|
+
} | {
|
|
116
|
+
src: "applyLatest";
|
|
117
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ApplyLatestToManual.Output, import("./setup").EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
118
|
+
id: string | undefined;
|
|
119
|
+
} | {
|
|
120
|
+
src: "executeChange";
|
|
121
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ExecuteChange.Output, import("./setup").EditorCalls.ExecuteChange.Input, EventObject>;
|
|
122
|
+
id: string | undefined;
|
|
123
|
+
} | {
|
|
124
|
+
src: "applySemanticLayout";
|
|
125
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ApplySemanticLayout.Output, import("./setup").EditorCalls.ApplySemanticLayout.Input, EventObject>;
|
|
126
|
+
id: string | undefined;
|
|
127
|
+
}, never, {
|
|
128
|
+
type: "has pending";
|
|
129
|
+
params: unknown;
|
|
130
|
+
} | {
|
|
131
|
+
type: "can undo";
|
|
132
|
+
params: unknown;
|
|
133
|
+
} | {
|
|
134
|
+
type: "can redo";
|
|
135
|
+
params: unknown;
|
|
136
|
+
}, "500ms" | "wait-after-edit", EditorActorEmitedEvent>;
|
|
137
|
+
};
|
|
138
|
+
cancel: {
|
|
139
|
+
target: "#queue-idle";
|
|
140
|
+
actions: CancelAction<EditorActorContext, EditorActorEvent, undefined, EditorActorEvent>;
|
|
141
|
+
};
|
|
142
|
+
'view.synched': {
|
|
143
|
+
actions: LogAction<EditorActorContext, {
|
|
144
|
+
type: "view.synched";
|
|
145
|
+
}, undefined, EditorActorEvent>;
|
|
80
146
|
};
|
|
81
147
|
};
|
|
82
148
|
id: string;
|
|
@@ -96,7 +162,7 @@ export declare const syncQueue: {
|
|
|
96
162
|
id: string | undefined;
|
|
97
163
|
} | {
|
|
98
164
|
src: "executeChange";
|
|
99
|
-
logic: PromiseActorLogic<
|
|
165
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ExecuteChange.Output, import("./setup").EditorCalls.ExecuteChange.Input, EventObject>;
|
|
100
166
|
id: string | undefined;
|
|
101
167
|
} | {
|
|
102
168
|
src: "applySemanticLayout";
|
|
@@ -116,7 +182,7 @@ export declare const syncQueue: {
|
|
|
116
182
|
id: string | undefined;
|
|
117
183
|
} | {
|
|
118
184
|
src: "executeChange";
|
|
119
|
-
logic: PromiseActorLogic<
|
|
185
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ExecuteChange.Output, import("./setup").EditorCalls.ExecuteChange.Input, EventObject>;
|
|
120
186
|
id: string | undefined;
|
|
121
187
|
} | {
|
|
122
188
|
src: "applySemanticLayout";
|
|
@@ -124,11 +190,42 @@ export declare const syncQueue: {
|
|
|
124
190
|
id: string | undefined;
|
|
125
191
|
}, never, never, never, never>;
|
|
126
192
|
};
|
|
193
|
+
'delete.nodes-edges': {
|
|
194
|
+
target: "#queue-pending";
|
|
195
|
+
actions: ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, {
|
|
196
|
+
src: "hotkey";
|
|
197
|
+
logic: HotkeyActorLogic;
|
|
198
|
+
id: "hotkey";
|
|
199
|
+
} | {
|
|
200
|
+
src: "applyLatest";
|
|
201
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ApplyLatestToManual.Output, import("./setup").EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
202
|
+
id: string | undefined;
|
|
203
|
+
} | {
|
|
204
|
+
src: "executeChange";
|
|
205
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ExecuteChange.Output, import("./setup").EditorCalls.ExecuteChange.Input, EventObject>;
|
|
206
|
+
id: string | undefined;
|
|
207
|
+
} | {
|
|
208
|
+
src: "applySemanticLayout";
|
|
209
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ApplySemanticLayout.Output, import("./setup").EditorCalls.ApplySemanticLayout.Input, EventObject>;
|
|
210
|
+
id: string | undefined;
|
|
211
|
+
}, never, {
|
|
212
|
+
type: "has pending";
|
|
213
|
+
params: unknown;
|
|
214
|
+
} | {
|
|
215
|
+
type: "can undo";
|
|
216
|
+
params: unknown;
|
|
217
|
+
} | {
|
|
218
|
+
type: "can redo";
|
|
219
|
+
params: unknown;
|
|
220
|
+
}, "500ms" | "wait-after-edit", EditorActorEmitedEvent>;
|
|
221
|
+
reenter: true;
|
|
222
|
+
};
|
|
127
223
|
'edit.move.start': {
|
|
128
224
|
target: "#queue-suspended";
|
|
129
225
|
};
|
|
130
226
|
undo: {
|
|
131
|
-
target: "#queue-
|
|
227
|
+
target: "#queue-pending";
|
|
228
|
+
reenter: true;
|
|
132
229
|
actions: ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, {
|
|
133
230
|
src: "hotkey";
|
|
134
231
|
logic: HotkeyActorLogic;
|
|
@@ -139,7 +236,7 @@ export declare const syncQueue: {
|
|
|
139
236
|
id: string | undefined;
|
|
140
237
|
} | {
|
|
141
238
|
src: "executeChange";
|
|
142
|
-
logic: PromiseActorLogic<
|
|
239
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ExecuteChange.Output, import("./setup").EditorCalls.ExecuteChange.Input, EventObject>;
|
|
143
240
|
id: string | undefined;
|
|
144
241
|
} | {
|
|
145
242
|
src: "applySemanticLayout";
|
|
@@ -151,28 +248,14 @@ export declare const syncQueue: {
|
|
|
151
248
|
} | {
|
|
152
249
|
type: "can undo";
|
|
153
250
|
params: unknown;
|
|
251
|
+
} | {
|
|
252
|
+
type: "can redo";
|
|
253
|
+
params: unknown;
|
|
154
254
|
}, "500ms" | "wait-after-edit", EditorActorEmitedEvent>;
|
|
155
255
|
};
|
|
156
|
-
|
|
157
|
-
target: "#queue-
|
|
158
|
-
|
|
159
|
-
actions: () => void;
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
|
-
after: {
|
|
163
|
-
'wait-after-edit': ({
|
|
164
|
-
target: "#queue-process";
|
|
165
|
-
guard: "has pending";
|
|
166
|
-
} | {
|
|
167
|
-
target: "#queue-idle";
|
|
168
|
-
})[];
|
|
169
|
-
};
|
|
170
|
-
id: string;
|
|
171
|
-
};
|
|
172
|
-
suspended: {
|
|
173
|
-
on: {
|
|
174
|
-
undo: {
|
|
175
|
-
target: "#queue-idle";
|
|
256
|
+
redo: {
|
|
257
|
+
target: "#queue-pending";
|
|
258
|
+
reenter: true;
|
|
176
259
|
actions: ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, {
|
|
177
260
|
src: "hotkey";
|
|
178
261
|
logic: HotkeyActorLogic;
|
|
@@ -183,7 +266,7 @@ export declare const syncQueue: {
|
|
|
183
266
|
id: string | undefined;
|
|
184
267
|
} | {
|
|
185
268
|
src: "executeChange";
|
|
186
|
-
logic: PromiseActorLogic<
|
|
269
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ExecuteChange.Output, import("./setup").EditorCalls.ExecuteChange.Input, EventObject>;
|
|
187
270
|
id: string | undefined;
|
|
188
271
|
} | {
|
|
189
272
|
src: "applySemanticLayout";
|
|
@@ -195,16 +278,55 @@ export declare const syncQueue: {
|
|
|
195
278
|
} | {
|
|
196
279
|
type: "can undo";
|
|
197
280
|
params: unknown;
|
|
281
|
+
} | {
|
|
282
|
+
type: "can redo";
|
|
283
|
+
params: unknown;
|
|
198
284
|
}, "500ms" | "wait-after-edit", EditorActorEmitedEvent>;
|
|
199
285
|
};
|
|
200
|
-
|
|
201
|
-
target: "#queue-
|
|
286
|
+
cancel: {
|
|
287
|
+
target: "#queue-idle";
|
|
288
|
+
actions: ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, {
|
|
289
|
+
src: "hotkey";
|
|
290
|
+
logic: HotkeyActorLogic;
|
|
291
|
+
id: "hotkey";
|
|
292
|
+
} | {
|
|
293
|
+
src: "applyLatest";
|
|
294
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ApplyLatestToManual.Output, import("./setup").EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
295
|
+
id: string | undefined;
|
|
296
|
+
} | {
|
|
297
|
+
src: "executeChange";
|
|
298
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ExecuteChange.Output, import("./setup").EditorCalls.ExecuteChange.Input, EventObject>;
|
|
299
|
+
id: string | undefined;
|
|
300
|
+
} | {
|
|
301
|
+
src: "applySemanticLayout";
|
|
302
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ApplySemanticLayout.Output, import("./setup").EditorCalls.ApplySemanticLayout.Input, EventObject>;
|
|
303
|
+
id: string | undefined;
|
|
304
|
+
}, never, never, never, never>;
|
|
202
305
|
};
|
|
203
|
-
'
|
|
204
|
-
actions:
|
|
306
|
+
'view.synched': {
|
|
307
|
+
actions: LogAction<EditorActorContext, {
|
|
308
|
+
type: "view.synched";
|
|
309
|
+
}, undefined, EditorActorEvent>;
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
after: {
|
|
313
|
+
'wait-after-edit': ({
|
|
314
|
+
readonly target: "#queue-idle";
|
|
315
|
+
} | {
|
|
316
|
+
target: "#queue-process";
|
|
317
|
+
guard: "has pending";
|
|
318
|
+
})[];
|
|
319
|
+
};
|
|
320
|
+
id: string;
|
|
321
|
+
};
|
|
322
|
+
suspended: {
|
|
323
|
+
on: {
|
|
324
|
+
'edit.*': {
|
|
325
|
+
readonly target: "#queue-idle";
|
|
205
326
|
};
|
|
206
327
|
cancel: {
|
|
207
328
|
target: "#queue-idle";
|
|
329
|
+
actions: CancelAction<EditorActorContext, EditorActorEvent, undefined, EditorActorEvent>[];
|
|
208
330
|
};
|
|
209
331
|
};
|
|
210
332
|
id: string;
|
|
@@ -213,7 +335,7 @@ export declare const syncQueue: {
|
|
|
213
335
|
initial: string;
|
|
214
336
|
tags: "busy"[];
|
|
215
337
|
states: {
|
|
216
|
-
|
|
338
|
+
peekFromQueue: {
|
|
217
339
|
entry: ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, {
|
|
218
340
|
src: "hotkey";
|
|
219
341
|
logic: HotkeyActorLogic;
|
|
@@ -224,7 +346,7 @@ export declare const syncQueue: {
|
|
|
224
346
|
id: string | undefined;
|
|
225
347
|
} | {
|
|
226
348
|
src: "executeChange";
|
|
227
|
-
logic: PromiseActorLogic<
|
|
349
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ExecuteChange.Output, import("./setup").EditorCalls.ExecuteChange.Input, EventObject>;
|
|
228
350
|
id: string | undefined;
|
|
229
351
|
} | {
|
|
230
352
|
src: "applySemanticLayout";
|
|
@@ -235,7 +357,28 @@ export declare const syncQueue: {
|
|
|
235
357
|
guard: ({ context: { processing } }: GuardArgs<EditorActorContext, EditorActorEvent>) => boolean;
|
|
236
358
|
target: string;
|
|
237
359
|
} | {
|
|
238
|
-
target:
|
|
360
|
+
target: "#queue-process";
|
|
361
|
+
guard: "has pending";
|
|
362
|
+
reenter: true;
|
|
363
|
+
} | {
|
|
364
|
+
target: "#queue-idle";
|
|
365
|
+
actions: ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, {
|
|
366
|
+
src: "hotkey";
|
|
367
|
+
logic: HotkeyActorLogic;
|
|
368
|
+
id: "hotkey";
|
|
369
|
+
} | {
|
|
370
|
+
src: "applyLatest";
|
|
371
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ApplyLatestToManual.Output, import("./setup").EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
372
|
+
id: string | undefined;
|
|
373
|
+
} | {
|
|
374
|
+
src: "executeChange";
|
|
375
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ExecuteChange.Output, import("./setup").EditorCalls.ExecuteChange.Input, EventObject>;
|
|
376
|
+
id: string | undefined;
|
|
377
|
+
} | {
|
|
378
|
+
src: "applySemanticLayout";
|
|
379
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ApplySemanticLayout.Output, import("./setup").EditorCalls.ApplySemanticLayout.Input, EventObject>;
|
|
380
|
+
id: string | undefined;
|
|
381
|
+
}, never, never, never, never>;
|
|
239
382
|
guard?: never;
|
|
240
383
|
})[];
|
|
241
384
|
};
|
|
@@ -244,6 +387,23 @@ export declare const syncQueue: {
|
|
|
244
387
|
*/
|
|
245
388
|
applyLatestToManual: {
|
|
246
389
|
initial: string;
|
|
390
|
+
entry: ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, {
|
|
391
|
+
src: "hotkey";
|
|
392
|
+
logic: HotkeyActorLogic;
|
|
393
|
+
id: "hotkey";
|
|
394
|
+
} | {
|
|
395
|
+
src: "applyLatest";
|
|
396
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ApplyLatestToManual.Output, import("./setup").EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
397
|
+
id: string | undefined;
|
|
398
|
+
} | {
|
|
399
|
+
src: "executeChange";
|
|
400
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ExecuteChange.Output, import("./setup").EditorCalls.ExecuteChange.Input, EventObject>;
|
|
401
|
+
id: string | undefined;
|
|
402
|
+
} | {
|
|
403
|
+
src: "applySemanticLayout";
|
|
404
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ApplySemanticLayout.Output, import("./setup").EditorCalls.ApplySemanticLayout.Input, EventObject>;
|
|
405
|
+
id: string | undefined;
|
|
406
|
+
}, never, never, never, never>;
|
|
247
407
|
states: {
|
|
248
408
|
call: {
|
|
249
409
|
invoke: {
|
|
@@ -253,7 +413,7 @@ export declare const syncQueue: {
|
|
|
253
413
|
event: EditorActorEvent;
|
|
254
414
|
self: ActorRef<MachineSnapshot<EditorActorContext, EditorActorEvent, Record<string, AnyActorRef>, StateValue, string, unknown, any, any>, EditorActorEvent, AnyEventObject>;
|
|
255
415
|
}) => {
|
|
256
|
-
current: DiagramView<Any
|
|
416
|
+
current: DiagramView<Any>;
|
|
257
417
|
viewId: ViewId;
|
|
258
418
|
};
|
|
259
419
|
onDone: {
|
|
@@ -262,32 +422,52 @@ export declare const syncQueue: {
|
|
|
262
422
|
};
|
|
263
423
|
onError: {
|
|
264
424
|
target: "#queue-idle";
|
|
265
|
-
actions:
|
|
425
|
+
actions: ActionFunction<EditorActorContext, ErrorActorEvent<unknown, string>, EditorActorEvent, undefined, {
|
|
426
|
+
src: "hotkey";
|
|
427
|
+
logic: HotkeyActorLogic;
|
|
428
|
+
id: "hotkey";
|
|
429
|
+
} | {
|
|
430
|
+
src: "applyLatest";
|
|
431
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ApplyLatestToManual.Output, import("./setup").EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
432
|
+
id: string | undefined;
|
|
433
|
+
} | {
|
|
434
|
+
src: "executeChange";
|
|
435
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ExecuteChange.Output, import("./setup").EditorCalls.ExecuteChange.Input, EventObject>;
|
|
436
|
+
id: string | undefined;
|
|
437
|
+
} | {
|
|
438
|
+
src: "applySemanticLayout";
|
|
439
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ApplySemanticLayout.Output, import("./setup").EditorCalls.ApplySemanticLayout.Input, EventObject>;
|
|
440
|
+
id: string | undefined;
|
|
441
|
+
}, never, never, never, never>;
|
|
266
442
|
};
|
|
267
443
|
};
|
|
268
444
|
};
|
|
269
445
|
wait: {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
}
|
|
275
|
-
src: "applyLatest";
|
|
276
|
-
logic: PromiseActorLogic<import("./setup").EditorCalls.ApplyLatestToManual.Output, import("./setup").EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
277
|
-
id: string | undefined;
|
|
278
|
-
} | {
|
|
279
|
-
src: "executeChange";
|
|
280
|
-
logic: PromiseActorLogic<NonReducibleUnknown, import("./setup").EditorCalls.ExecuteChange.Input, EventObject>;
|
|
281
|
-
id: string | undefined;
|
|
282
|
-
} | {
|
|
283
|
-
src: "applySemanticLayout";
|
|
284
|
-
logic: PromiseActorLogic<import("./setup").EditorCalls.ApplySemanticLayout.Output, import("./setup").EditorCalls.ApplySemanticLayout.Input, EventObject>;
|
|
285
|
-
id: string | undefined;
|
|
286
|
-
}, never, never, never, never>;
|
|
446
|
+
on: {
|
|
447
|
+
'*': {
|
|
448
|
+
actions: LogAction<EditorActorContext, EditorActorEvent, undefined, EditorActorEvent>;
|
|
449
|
+
};
|
|
450
|
+
};
|
|
287
451
|
after: {
|
|
288
452
|
'500ms': {
|
|
289
453
|
target: "#queue-idle";
|
|
290
|
-
actions: ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, never, never, never, "500ms" | "wait-after-edit", never
|
|
454
|
+
actions: ( ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, never, never, never, "500ms" | "wait-after-edit", never> | ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, {
|
|
455
|
+
src: "hotkey";
|
|
456
|
+
logic: HotkeyActorLogic;
|
|
457
|
+
id: "hotkey";
|
|
458
|
+
} | {
|
|
459
|
+
src: "applyLatest";
|
|
460
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ApplyLatestToManual.Output, import("./setup").EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
461
|
+
id: string | undefined;
|
|
462
|
+
} | {
|
|
463
|
+
src: "executeChange";
|
|
464
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ExecuteChange.Output, import("./setup").EditorCalls.ExecuteChange.Input, EventObject>;
|
|
465
|
+
id: string | undefined;
|
|
466
|
+
} | {
|
|
467
|
+
src: "applySemanticLayout";
|
|
468
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ApplySemanticLayout.Output, import("./setup").EditorCalls.ApplySemanticLayout.Input, EventObject>;
|
|
469
|
+
id: string | undefined;
|
|
470
|
+
}, never, never, never, never>)[];
|
|
291
471
|
};
|
|
292
472
|
};
|
|
293
473
|
};
|
|
@@ -311,7 +491,7 @@ export declare const syncQueue: {
|
|
|
311
491
|
target: string;
|
|
312
492
|
};
|
|
313
493
|
onError: {
|
|
314
|
-
actions: (
|
|
494
|
+
actions: ({ event }: ActionArgs<EditorActorContext, ErrorActorEvent<unknown, string>, EditorActorEvent>) => void;
|
|
315
495
|
target: string;
|
|
316
496
|
};
|
|
317
497
|
};
|
|
@@ -331,7 +511,7 @@ export declare const syncQueue: {
|
|
|
331
511
|
viewId: ViewId;
|
|
332
512
|
};
|
|
333
513
|
onDone: {
|
|
334
|
-
actions: ActionFunction<EditorActorContext, DoneActorEvent<
|
|
514
|
+
actions: ActionFunction<EditorActorContext, DoneActorEvent<import("./setup").EditorCalls.ExecuteChange.Output, string>, EditorActorEvent, undefined, {
|
|
335
515
|
src: "hotkey";
|
|
336
516
|
logic: HotkeyActorLogic;
|
|
337
517
|
id: "hotkey";
|
|
@@ -341,7 +521,7 @@ export declare const syncQueue: {
|
|
|
341
521
|
id: string | undefined;
|
|
342
522
|
} | {
|
|
343
523
|
src: "executeChange";
|
|
344
|
-
logic: PromiseActorLogic<
|
|
524
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ExecuteChange.Output, import("./setup").EditorCalls.ExecuteChange.Input, EventObject>;
|
|
345
525
|
id: string | undefined;
|
|
346
526
|
} | {
|
|
347
527
|
src: "applySemanticLayout";
|
|
@@ -353,31 +533,28 @@ export declare const syncQueue: {
|
|
|
353
533
|
} | {
|
|
354
534
|
type: "can undo";
|
|
355
535
|
params: unknown;
|
|
536
|
+
} | {
|
|
537
|
+
type: "can redo";
|
|
538
|
+
params: unknown;
|
|
356
539
|
}, "500ms" | "wait-after-edit", EditorActorEmitedEvent>;
|
|
357
540
|
target: string;
|
|
358
541
|
};
|
|
359
542
|
onError: {
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
src: "hotkey";
|
|
363
|
-
logic: HotkeyActorLogic;
|
|
364
|
-
id: "hotkey";
|
|
365
|
-
} | {
|
|
366
|
-
src: "applyLatest";
|
|
367
|
-
logic: PromiseActorLogic<import("./setup").EditorCalls.ApplyLatestToManual.Output, import("./setup").EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
368
|
-
id: string | undefined;
|
|
369
|
-
} | {
|
|
370
|
-
src: "executeChange";
|
|
371
|
-
logic: PromiseActorLogic<NonReducibleUnknown, import("./setup").EditorCalls.ExecuteChange.Input, EventObject>;
|
|
372
|
-
id: string | undefined;
|
|
373
|
-
} | {
|
|
374
|
-
src: "applySemanticLayout";
|
|
375
|
-
logic: PromiseActorLogic<import("./setup").EditorCalls.ApplySemanticLayout.Output, import("./setup").EditorCalls.ApplySemanticLayout.Input, EventObject>;
|
|
376
|
-
id: string | undefined;
|
|
377
|
-
}, never, never, never, never>;
|
|
543
|
+
actions: ({ event }: ActionArgs<EditorActorContext, ErrorActorEvent<unknown, string>, EditorActorEvent>) => void;
|
|
544
|
+
target: string;
|
|
378
545
|
};
|
|
379
546
|
};
|
|
380
547
|
};
|
|
548
|
+
waitViewSynced: {
|
|
549
|
+
on: {
|
|
550
|
+
'view.synched': {
|
|
551
|
+
target: string;
|
|
552
|
+
};
|
|
553
|
+
};
|
|
554
|
+
after: {
|
|
555
|
+
2000: string;
|
|
556
|
+
};
|
|
557
|
+
};
|
|
381
558
|
decideNext: {
|
|
382
559
|
entry: ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, {
|
|
383
560
|
src: "hotkey";
|
|
@@ -389,7 +566,7 @@ export declare const syncQueue: {
|
|
|
389
566
|
id: string | undefined;
|
|
390
567
|
} | {
|
|
391
568
|
src: "executeChange";
|
|
392
|
-
logic: PromiseActorLogic<
|
|
569
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ExecuteChange.Output, import("./setup").EditorCalls.ExecuteChange.Input, EventObject>;
|
|
393
570
|
id: string | undefined;
|
|
394
571
|
} | {
|
|
395
572
|
src: "applySemanticLayout";
|
|
@@ -397,22 +574,37 @@ export declare const syncQueue: {
|
|
|
397
574
|
id: string | undefined;
|
|
398
575
|
}, never, never, never, never>;
|
|
399
576
|
always: ({
|
|
400
|
-
|
|
401
|
-
target: string;
|
|
577
|
+
readonly target: "#queue-idle";
|
|
402
578
|
} | {
|
|
403
|
-
target: "#queue-
|
|
404
|
-
guard
|
|
579
|
+
target: "#queue-process";
|
|
580
|
+
guard: "has pending";
|
|
581
|
+
reenter: true;
|
|
405
582
|
})[];
|
|
406
583
|
};
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
584
|
+
failure: {
|
|
585
|
+
always: {
|
|
586
|
+
target: "#queue-idle";
|
|
587
|
+
actions: ActionFunction<EditorActorContext, EditorActorEvent, EditorActorEvent, undefined, {
|
|
588
|
+
src: "hotkey";
|
|
589
|
+
logic: HotkeyActorLogic;
|
|
590
|
+
id: "hotkey";
|
|
591
|
+
} | {
|
|
592
|
+
src: "applyLatest";
|
|
593
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ApplyLatestToManual.Output, import("./setup").EditorCalls.ApplyLatestToManual.Input, EventObject>;
|
|
594
|
+
id: string | undefined;
|
|
595
|
+
} | {
|
|
596
|
+
src: "executeChange";
|
|
597
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ExecuteChange.Output, import("./setup").EditorCalls.ExecuteChange.Input, EventObject>;
|
|
598
|
+
id: string | undefined;
|
|
599
|
+
} | {
|
|
600
|
+
src: "applySemanticLayout";
|
|
601
|
+
logic: PromiseActorLogic<import("./setup").EditorCalls.ApplySemanticLayout.Output, import("./setup").EditorCalls.ApplySemanticLayout.Input, EventObject>;
|
|
602
|
+
id: string | undefined;
|
|
603
|
+
}, never, never, never, never>;
|
|
604
|
+
};
|
|
414
605
|
};
|
|
415
606
|
};
|
|
607
|
+
on: {};
|
|
416
608
|
id: string;
|
|
417
609
|
};
|
|
418
610
|
};
|