@likec4/diagram 1.24.0 → 1.24.1
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/LikeC4Diagram.css.d.ts +5 -0
- package/dist/LikeC4Diagram.css.js +1 -0
- package/dist/LikeC4Diagram.d.ts +1 -1
- package/dist/LikeC4Diagram.js +6 -2
- package/dist/LikeC4Diagram.props.d.ts +6 -0
- package/dist/base/BaseXYFlow.d.ts +1 -1
- package/dist/base/BaseXYFlow.js +12 -3
- package/dist/base/const.d.ts +1 -1
- package/dist/base/const.js +1 -1
- package/dist/base/primitives/compound/CompoundActionButton.css.js +2 -0
- package/dist/base/primitives/compound/CompoundDetailsButton.css.js +2 -0
- package/dist/base/primitives/compound/CompoundNodeContainer.css.d.ts +0 -1
- package/dist/base/primitives/compound/CompoundNodeContainer.css.js +4 -4
- package/dist/base/primitives/compound/CompoundNodeContainer.js +35 -22
- package/dist/base/primitives/compound/CompoundTitle.css.js +3 -1
- package/dist/base/primitives/customNode.js +1 -1
- package/dist/base/primitives/edge/EdgeContainer.js +5 -4
- package/dist/base/primitives/edge/EdgeLabel.css.d.ts +0 -1
- package/dist/base/primitives/edge/EdgeLabel.css.js +2 -5
- package/dist/base/primitives/edge/EdgeLabel.js +5 -5
- package/dist/base/primitives/edge/edge.css.d.ts +1 -1
- package/dist/base/primitives/edge/edge.css.js +4 -5
- package/dist/base/primitives/element/ElementActionButtons.css.js +2 -0
- package/dist/base/primitives/element/ElementActionButtons.js +4 -3
- package/dist/base/primitives/element/ElementDetailsButton.css.js +2 -0
- package/dist/base/primitives/element/ElementNodeContainer.css.js +2 -0
- package/dist/base/primitives/element/ElementNodeContainer.js +3 -1
- package/dist/base/primitives/element/ElementShape.css.js +4 -2
- package/dist/base/primitives/element/ElementShape.js +2 -3
- package/dist/base/primitives/element/ElementTitle.css.js +2 -0
- package/dist/base/primitives/element/styles.css.js +2 -0
- package/dist/components/SearchControl.css.js +2 -0
- package/dist/context/FramerMotionConfig.d.ts +9 -1
- package/dist/context/FramerMotionConfig.js +5 -2
- package/dist/context/RootContainer.js +13 -1
- package/dist/diagram.css +1 -1
- package/dist/globals.css.d.ts +2 -0
- package/dist/hooks/safeContext.js +1 -0
- package/dist/hooks/useDiagram.d.ts +554 -864
- package/dist/hooks/useDiagram.js +1 -0
- package/dist/hooks/useIsReducedGraphics.d.ts +4 -0
- package/dist/hooks/useIsReducedGraphics.js +8 -0
- package/dist/hooks/useXYFlow.js +1 -1
- package/dist/likec4diagram/DiagramUI.d.ts +2 -1
- package/dist/likec4diagram/DiagramUI.js +5 -3
- package/dist/likec4diagram/custom/nodes/nodeTypes.js +2 -2
- package/dist/likec4diagram/ui/controls/styles.css.js +2 -0
- package/dist/likec4diagram/ui/diagram-title/DiagramTitlePanel.css.js +2 -0
- package/dist/likec4diagram/ui/diagram-title/DiagramTitlePanel.js +3 -4
- package/dist/likec4diagram/ui/search/LikeC4Search.css.js +2 -0
- package/dist/overlays/element-details/ElementDetailsCard.js +12 -8
- package/dist/overlays/element-details/actor.d.ts +9084 -2569
- package/dist/overlays/overlay/Overlay.js +6 -3
- package/dist/overlays/relationship-details/RelationshipDetails.js +31 -17
- package/dist/overlays/relationship-details/actor.d.ts +228 -3
- package/dist/overlays/relationship-details/actor.js +86 -14
- package/dist/overlays/relationship-details/hooks.d.ts +3 -0
- package/dist/overlays/relationship-details/hooks.js +6 -2
- package/dist/overlays/relationships-browser/-useRelationshipsView.js +12 -3
- package/dist/overlays/relationships-browser/RelationshipsBrowser.js +12 -3
- package/dist/overlays/relationships-browser/actor.d.ts +271 -54
- package/dist/overlays/relationships-browser/actor.js +86 -23
- package/dist/state/DiagramActorProvider.js +12 -2
- package/dist/state/diagram-machine.d.ts +563 -867
- package/dist/state/diagram-machine.js +82 -81
- package/dist/state/persistence.d.ts +5 -0
- package/dist/state/persistence.js +23 -0
- package/package.json +9 -9
- package/src/LikeC4Diagram.css.ts +13 -5
- package/src/LikeC4Diagram.props.ts +7 -0
- package/src/LikeC4Diagram.tsx +33 -24
- package/src/base/BaseXYFlow.tsx +14 -9
- package/src/base/const.ts +1 -1
- package/src/base/primitives/compound/CompoundActionButton.css.ts +6 -0
- package/src/base/primitives/compound/CompoundDetailsButton.css.ts +4 -0
- package/src/base/primitives/compound/CompoundNodeContainer.css.ts +41 -59
- package/src/base/primitives/compound/CompoundNodeContainer.tsx +42 -22
- package/src/base/primitives/compound/CompoundTitle.css.ts +14 -13
- package/src/base/primitives/customNode.ts +3 -2
- package/src/base/primitives/edge/EdgeContainer.tsx +4 -3
- package/src/base/primitives/edge/EdgeLabel.css.ts +17 -11
- package/src/base/primitives/edge/EdgeLabel.tsx +4 -4
- package/src/base/primitives/edge/edge.css.ts +47 -27
- package/src/base/primitives/element/ElementActionButtons.css.ts +4 -0
- package/src/base/primitives/element/ElementActionButtons.tsx +4 -2
- package/src/base/primitives/element/ElementDetailsButton.css.ts +6 -8
- package/src/base/primitives/element/ElementNodeContainer.css.ts +18 -21
- package/src/base/primitives/element/ElementNodeContainer.tsx +3 -1
- package/src/base/primitives/element/ElementShape.css.ts +10 -6
- package/src/base/primitives/element/ElementShape.tsx +2 -2
- package/src/components/SearchControl.css.ts +11 -4
- package/src/context/FramerMotionConfig.tsx +13 -2
- package/src/context/RootContainer.tsx +9 -2
- package/src/globals.css.ts +3 -0
- package/src/hooks/safeContext.tsx +2 -1
- package/src/hooks/useDiagram.ts +1 -0
- package/src/hooks/useIsReducedGraphics.ts +5 -0
- package/src/hooks/useXYFlow.ts +1 -1
- package/src/likec4diagram/DiagramUI.tsx +5 -3
- package/src/likec4diagram/custom/nodes/nodeTypes.tsx +2 -2
- package/src/likec4diagram/ui/controls/styles.css.ts +11 -1
- package/src/likec4diagram/ui/diagram-title/DiagramTitlePanel.css.ts +10 -3
- package/src/likec4diagram/ui/diagram-title/DiagramTitlePanel.tsx +6 -3
- package/src/likec4diagram/ui/search/LikeC4Search.css.ts +1 -0
- package/src/overlays/element-details/ElementDetailsCard.tsx +238 -231
- package/src/overlays/overlay/Overlay.css.ts +1 -9
- package/src/overlays/overlay/Overlay.tsx +6 -3
- package/src/overlays/relationship-details/RelationshipDetails.tsx +83 -66
- package/src/overlays/relationship-details/actor.ts +106 -13
- package/src/overlays/relationship-details/hooks.ts +6 -2
- package/src/overlays/relationships-browser/-useRelationshipsView.ts +10 -0
- package/src/overlays/relationships-browser/RelationshipsBrowser.tsx +16 -8
- package/src/overlays/relationships-browser/actor.ts +92 -22
- package/src/state/DiagramActorProvider.tsx +13 -2
- package/src/state/diagram-machine.ts +80 -79
- package/src/state/persistence.ts +22 -0
|
@@ -687,8 +687,12 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
687
687
|
type: "trigger:OpenSource";
|
|
688
688
|
params: OpenSourceParams;
|
|
689
689
|
};
|
|
690
|
-
"
|
|
691
|
-
type: "
|
|
690
|
+
"assign lastClickedNode": {
|
|
691
|
+
type: "assign lastClickedNode";
|
|
692
|
+
params: NonReducibleUnknown;
|
|
693
|
+
};
|
|
694
|
+
"open source of focused or last clicked node": {
|
|
695
|
+
type: "open source of focused or last clicked node";
|
|
692
696
|
params: NonReducibleUnknown;
|
|
693
697
|
};
|
|
694
698
|
"xyflow:setViewportCenter": {
|
|
@@ -745,8 +749,8 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
745
749
|
type: "is another view";
|
|
746
750
|
params: unknown;
|
|
747
751
|
};
|
|
748
|
-
"click: selected node
|
|
749
|
-
type: "click: selected node
|
|
752
|
+
"click: selected node": {
|
|
753
|
+
type: "click: selected node";
|
|
750
754
|
params: unknown;
|
|
751
755
|
};
|
|
752
756
|
"click: same node": {
|
|
@@ -757,9 +761,11 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
757
761
|
type: "click: focused node";
|
|
758
762
|
params: unknown;
|
|
759
763
|
};
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
764
|
+
"click: node has connections": {
|
|
765
|
+
type: "click: node has connections";
|
|
766
|
+
params: unknown;
|
|
767
|
+
};
|
|
768
|
+
}>, never, "initializing" | "idle" | "walkthrough" | "focused" | "navigating", string, Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
763
769
|
readonly initial: "initializing";
|
|
764
770
|
readonly context: ({ input, self, spawn }: {
|
|
765
771
|
spawn: {
|
|
@@ -1564,9 +1570,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
1564
1570
|
enableLikeC4Model: boolean;
|
|
1565
1571
|
enableVscode: boolean;
|
|
1566
1572
|
};
|
|
1567
|
-
toggledFeatures:
|
|
1568
|
-
enableReadOnly: true;
|
|
1569
|
-
};
|
|
1573
|
+
toggledFeatures: Partial<EnabledFeatures>;
|
|
1570
1574
|
initialized: false;
|
|
1571
1575
|
viewportChangedManually: false;
|
|
1572
1576
|
lastOnNavigate: null;
|
|
@@ -1981,8 +1985,12 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
1981
1985
|
type: "trigger:OpenSource";
|
|
1982
1986
|
params: OpenSourceParams;
|
|
1983
1987
|
};
|
|
1984
|
-
"
|
|
1985
|
-
type: "
|
|
1988
|
+
"assign lastClickedNode": {
|
|
1989
|
+
type: "assign lastClickedNode";
|
|
1990
|
+
params: NonReducibleUnknown;
|
|
1991
|
+
};
|
|
1992
|
+
"open source of focused or last clicked node": {
|
|
1993
|
+
type: "open source of focused or last clicked node";
|
|
1986
1994
|
params: NonReducibleUnknown;
|
|
1987
1995
|
};
|
|
1988
1996
|
"xyflow:setViewportCenter": {
|
|
@@ -2039,8 +2047,8 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
2039
2047
|
type: "is another view";
|
|
2040
2048
|
params: unknown;
|
|
2041
2049
|
};
|
|
2042
|
-
"click: selected node
|
|
2043
|
-
type: "click: selected node
|
|
2050
|
+
"click: selected node": {
|
|
2051
|
+
type: "click: selected node";
|
|
2044
2052
|
params: unknown;
|
|
2045
2053
|
};
|
|
2046
2054
|
"click: same node": {
|
|
@@ -2051,6 +2059,10 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
2051
2059
|
type: "click: focused node";
|
|
2052
2060
|
params: unknown;
|
|
2053
2061
|
};
|
|
2062
|
+
"click: node has connections": {
|
|
2063
|
+
type: "click: node has connections";
|
|
2064
|
+
params: unknown;
|
|
2065
|
+
};
|
|
2054
2066
|
}>, never, EventObject>;
|
|
2055
2067
|
readonly target: "idle";
|
|
2056
2068
|
};
|
|
@@ -2320,9 +2332,11 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
2320
2332
|
}>, never, never, never, never>];
|
|
2321
2333
|
readonly target: "focused";
|
|
2322
2334
|
}, {
|
|
2323
|
-
readonly actions:
|
|
2324
|
-
|
|
2325
|
-
|
|
2335
|
+
readonly actions: readonly ["assign lastClickedNode", "open source of focused or last clicked node"];
|
|
2336
|
+
}];
|
|
2337
|
+
readonly 'xyflow.paneClick': {
|
|
2338
|
+
readonly actions: readonly [ ActionFunction<Context, {
|
|
2339
|
+
type: "xyflow.paneClick";
|
|
2326
2340
|
}, Events, undefined, Values<{
|
|
2327
2341
|
syncManualLayoutActorLogic: {
|
|
2328
2342
|
src: "syncManualLayoutActorLogic";
|
|
@@ -2576,11 +2590,36 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
2576
2590
|
}>;
|
|
2577
2591
|
id: "overlays";
|
|
2578
2592
|
};
|
|
2579
|
-
}>, never, never, never, never
|
|
2580
|
-
}
|
|
2581
|
-
readonly 'xyflow.
|
|
2582
|
-
readonly actions: readonly [
|
|
2583
|
-
type: "xyflow
|
|
2593
|
+
}>, never, never, never, never>];
|
|
2594
|
+
};
|
|
2595
|
+
readonly 'xyflow.paneDblClick': {
|
|
2596
|
+
readonly actions: readonly [{
|
|
2597
|
+
readonly type: "xyflow:fitDiagram";
|
|
2598
|
+
}, {
|
|
2599
|
+
readonly type: "trigger:OpenSource";
|
|
2600
|
+
readonly params: ({ context }: {
|
|
2601
|
+
context: Context;
|
|
2602
|
+
event: {
|
|
2603
|
+
type: "xyflow.paneDblClick";
|
|
2604
|
+
};
|
|
2605
|
+
}) => {
|
|
2606
|
+
view: ViewId<string>;
|
|
2607
|
+
};
|
|
2608
|
+
}];
|
|
2609
|
+
};
|
|
2610
|
+
readonly 'saveManualLayout.*': {
|
|
2611
|
+
readonly guard: "not readonly";
|
|
2612
|
+
readonly actions: ActionFunction<Context, {
|
|
2613
|
+
type: "saveManualLayout.schedule";
|
|
2614
|
+
} | {
|
|
2615
|
+
type: "saveManualLayout.cancel";
|
|
2616
|
+
}, Events, undefined, never, never, never, never, never>;
|
|
2617
|
+
};
|
|
2618
|
+
readonly 'focus.node': {
|
|
2619
|
+
readonly guard: "enabled: FocusMode";
|
|
2620
|
+
readonly actions: ActionFunction<Context, {
|
|
2621
|
+
type: "focus.node";
|
|
2622
|
+
nodeId: NodeId;
|
|
2584
2623
|
}, Events, undefined, Values<{
|
|
2585
2624
|
syncManualLayoutActorLogic: {
|
|
2586
2625
|
src: "syncManualLayoutActorLogic";
|
|
@@ -2834,390 +2873,107 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
2834
2873
|
}>;
|
|
2835
2874
|
id: "overlays";
|
|
2836
2875
|
};
|
|
2837
|
-
}>, never, never, never, never
|
|
2876
|
+
}>, never, never, never, never>;
|
|
2877
|
+
readonly target: "focused";
|
|
2838
2878
|
};
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2879
|
+
};
|
|
2880
|
+
};
|
|
2881
|
+
readonly focused: {
|
|
2882
|
+
readonly entry: readonly [ ActionFunction<Context, Events, Events, undefined, Values<{
|
|
2883
|
+
syncManualLayoutActorLogic: {
|
|
2884
|
+
src: "syncManualLayoutActorLogic";
|
|
2885
|
+
logic: StateMachine<Readonly< Input>, SyncLayoutEvents, {}, never, {
|
|
2886
|
+
type: "trigger:OnChange";
|
|
2887
|
+
params: {
|
|
2888
|
+
change: ViewChange;
|
|
2889
|
+
};
|
|
2842
2890
|
}, {
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2891
|
+
type: "same view";
|
|
2892
|
+
params: unknown;
|
|
2893
|
+
}, "timeout", "paused" | "stopped" | "idle" | "synced" | "pending", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
2894
|
+
readonly initial: "idle";
|
|
2895
|
+
readonly context: ({ input }: {
|
|
2896
|
+
spawn: {
|
|
2897
|
+
<TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
|
|
2898
|
+
<TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
|
|
2899
|
+
id?: never;
|
|
2900
|
+
systemId?: string;
|
|
2901
|
+
input?: InputFrom<TLogic>;
|
|
2902
|
+
syncSnapshot?: boolean;
|
|
2903
|
+
} & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
|
|
2848
2904
|
};
|
|
2905
|
+
input: Input;
|
|
2906
|
+
self: ActorRef< MachineSnapshot<Readonly< Input>, SyncLayoutEvents, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, SyncLayoutEvents, AnyEventObject>;
|
|
2849
2907
|
}) => {
|
|
2850
|
-
|
|
2908
|
+
parent: ActorRef< MachineSnapshot<Context, Events, any, any, any, any, any, any>, Events, any>;
|
|
2909
|
+
viewId: ViewId;
|
|
2851
2910
|
};
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
} | {
|
|
2859
|
-
type: "saveManualLayout.cancel";
|
|
2860
|
-
}, Events, undefined, never, never, never, never, never>;
|
|
2861
|
-
};
|
|
2862
|
-
readonly 'focus.node': {
|
|
2863
|
-
readonly guard: "enabled: FocusMode";
|
|
2864
|
-
readonly actions: ActionFunction<Context, {
|
|
2865
|
-
type: "focus.node";
|
|
2866
|
-
nodeId: NodeId;
|
|
2867
|
-
}, Events, undefined, Values<{
|
|
2868
|
-
syncManualLayoutActorLogic: {
|
|
2869
|
-
src: "syncManualLayoutActorLogic";
|
|
2870
|
-
logic: StateMachine<Readonly< Input>, SyncLayoutEvents, {}, never, {
|
|
2871
|
-
type: "trigger:OnChange";
|
|
2872
|
-
params: {
|
|
2873
|
-
change: ViewChange;
|
|
2874
|
-
};
|
|
2875
|
-
}, {
|
|
2876
|
-
type: "same view";
|
|
2877
|
-
params: unknown;
|
|
2878
|
-
}, "timeout", "paused" | "stopped" | "idle" | "synced" | "pending", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
2879
|
-
readonly initial: "idle";
|
|
2880
|
-
readonly context: ({ input }: {
|
|
2881
|
-
spawn: {
|
|
2882
|
-
<TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
|
|
2883
|
-
<TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
|
|
2884
|
-
id?: never;
|
|
2885
|
-
systemId?: string;
|
|
2886
|
-
input?: InputFrom<TLogic>;
|
|
2887
|
-
syncSnapshot?: boolean;
|
|
2888
|
-
} & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
|
|
2911
|
+
readonly states: {
|
|
2912
|
+
readonly idle: {
|
|
2913
|
+
readonly tags: "ready";
|
|
2914
|
+
readonly on: {
|
|
2915
|
+
readonly sync: {
|
|
2916
|
+
readonly target: "pending";
|
|
2889
2917
|
};
|
|
2890
|
-
input: Input;
|
|
2891
|
-
self: ActorRef< MachineSnapshot<Readonly< Input>, SyncLayoutEvents, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, SyncLayoutEvents, AnyEventObject>;
|
|
2892
|
-
}) => {
|
|
2893
|
-
parent: ActorRef< MachineSnapshot<Context, Events, any, any, any, any, any, any>, Events, any>;
|
|
2894
|
-
viewId: ViewId;
|
|
2895
2918
|
};
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
};
|
|
2903
|
-
};
|
|
2919
|
+
};
|
|
2920
|
+
readonly paused: {
|
|
2921
|
+
readonly tags: "pending";
|
|
2922
|
+
readonly on: {
|
|
2923
|
+
readonly sync: {
|
|
2924
|
+
readonly target: "pending";
|
|
2904
2925
|
};
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2926
|
+
};
|
|
2927
|
+
};
|
|
2928
|
+
readonly pending: {
|
|
2929
|
+
readonly tags: "pending";
|
|
2930
|
+
readonly on: {
|
|
2931
|
+
readonly sync: {
|
|
2932
|
+
readonly target: "pending";
|
|
2933
|
+
readonly reenter: true;
|
|
2912
2934
|
};
|
|
2913
|
-
readonly
|
|
2914
|
-
readonly
|
|
2915
|
-
readonly on: {
|
|
2916
|
-
readonly sync: {
|
|
2917
|
-
readonly target: "pending";
|
|
2918
|
-
readonly reenter: true;
|
|
2919
|
-
};
|
|
2920
|
-
readonly cancel: {
|
|
2921
|
-
readonly target: "paused";
|
|
2922
|
-
};
|
|
2923
|
-
};
|
|
2924
|
-
readonly after: {
|
|
2925
|
-
readonly timeout: readonly [{
|
|
2926
|
-
readonly guard: "same view";
|
|
2927
|
-
readonly actions: {
|
|
2928
|
-
readonly type: "trigger:OnChange";
|
|
2929
|
-
readonly params: ({ context }: {
|
|
2930
|
-
context: Readonly< Input>;
|
|
2931
|
-
event: SyncLayoutEvents;
|
|
2932
|
-
}) => {
|
|
2933
|
-
change: ViewChange.SaveManualLayout;
|
|
2934
|
-
};
|
|
2935
|
-
};
|
|
2936
|
-
readonly target: "synced";
|
|
2937
|
-
}, {
|
|
2938
|
-
readonly target: "stopped";
|
|
2939
|
-
}];
|
|
2940
|
-
};
|
|
2935
|
+
readonly cancel: {
|
|
2936
|
+
readonly target: "paused";
|
|
2941
2937
|
};
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2938
|
+
};
|
|
2939
|
+
readonly after: {
|
|
2940
|
+
readonly timeout: readonly [{
|
|
2941
|
+
readonly guard: "same view";
|
|
2942
|
+
readonly actions: {
|
|
2943
|
+
readonly type: "trigger:OnChange";
|
|
2944
|
+
readonly params: ({ context }: {
|
|
2945
|
+
context: Readonly< Input>;
|
|
2946
|
+
event: SyncLayoutEvents;
|
|
2947
|
+
}) => {
|
|
2948
|
+
change: ViewChange.SaveManualLayout;
|
|
2947
2949
|
};
|
|
2948
2950
|
};
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
readonly
|
|
2952
|
-
|
|
2953
|
-
};
|
|
2951
|
+
readonly target: "synced";
|
|
2952
|
+
}, {
|
|
2953
|
+
readonly target: "stopped";
|
|
2954
|
+
}];
|
|
2954
2955
|
};
|
|
2956
|
+
};
|
|
2957
|
+
readonly synced: {
|
|
2958
|
+
readonly tags: "ready";
|
|
2955
2959
|
readonly on: {
|
|
2956
|
-
readonly
|
|
2957
|
-
readonly target: "
|
|
2958
|
-
};
|
|
2959
|
-
readonly stop: {
|
|
2960
|
-
readonly target: ".stopped";
|
|
2960
|
+
readonly sync: {
|
|
2961
|
+
readonly target: "pending";
|
|
2961
2962
|
};
|
|
2962
2963
|
};
|
|
2963
|
-
}
|
|
2964
|
-
|
|
2964
|
+
};
|
|
2965
|
+
readonly stopped: {
|
|
2966
|
+
readonly entry: ActionFunction<Readonly< Input>, SyncLayoutEvents, SyncLayoutEvents, undefined, never, never, never, never, never>;
|
|
2967
|
+
readonly type: "final";
|
|
2968
|
+
};
|
|
2965
2969
|
};
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
logic: StateMachine<OverlaysContext, OverlayActorEvent, {
|
|
2974
|
-
[x: `elementDetails-${number}`]: ActorRefFromLogic<ElementDetailsLogic> | undefined;
|
|
2975
|
-
[x: `relationshipDetails-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipDetails.Logic> | undefined;
|
|
2976
|
-
[x: `relationshipsBrowser-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipsBrowser.Logic> | undefined;
|
|
2977
|
-
hotkey?: ActorRefFromLogic<CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>>;
|
|
2978
|
-
}, Values<{
|
|
2979
|
-
elementDetails: {
|
|
2980
|
-
src: "elementDetails";
|
|
2981
|
-
logic: ElementDetailsLogic;
|
|
2982
|
-
id: `elementDetails-${number}`;
|
|
2983
|
-
};
|
|
2984
|
-
relationshipDetails: {
|
|
2985
|
-
src: "relationshipDetails";
|
|
2986
|
-
logic: import("../overlays/types").Overlays.RelationshipDetails.Logic;
|
|
2987
|
-
id: `relationshipDetails-${number}`;
|
|
2988
|
-
};
|
|
2989
|
-
relationshipsBrowser: {
|
|
2990
|
-
src: "relationshipsBrowser";
|
|
2991
|
-
logic: import("../overlays/types").Overlays.RelationshipsBrowser.Logic;
|
|
2992
|
-
id: `relationshipsBrowser-${number}`;
|
|
2993
|
-
};
|
|
2994
|
-
hotkey: {
|
|
2995
|
-
src: "hotkey";
|
|
2996
|
-
logic: CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>;
|
|
2997
|
-
id: "hotkey";
|
|
2998
|
-
};
|
|
2999
|
-
}>, Values<{
|
|
3000
|
-
closeLastOverlay: {
|
|
3001
|
-
type: "closeLastOverlay";
|
|
3002
|
-
params: NonReducibleUnknown;
|
|
3003
|
-
};
|
|
3004
|
-
closeSpecificOverlay: {
|
|
3005
|
-
type: "closeSpecificOverlay";
|
|
3006
|
-
params: {
|
|
3007
|
-
actorId: string;
|
|
3008
|
-
};
|
|
3009
|
-
};
|
|
3010
|
-
closeAllOverlays: {
|
|
3011
|
-
type: "closeAllOverlays";
|
|
3012
|
-
params: NonReducibleUnknown;
|
|
3013
|
-
};
|
|
3014
|
-
openElementDetails: {
|
|
3015
|
-
type: "openElementDetails";
|
|
3016
|
-
params: NonReducibleUnknown;
|
|
3017
|
-
};
|
|
3018
|
-
openRelationshipDetails: {
|
|
3019
|
-
type: "openRelationshipDetails";
|
|
3020
|
-
params: NonReducibleUnknown;
|
|
3021
|
-
};
|
|
3022
|
-
openRelationshipsBrowser: {
|
|
3023
|
-
type: "openRelationshipsBrowser";
|
|
3024
|
-
params: NonReducibleUnknown;
|
|
3025
|
-
};
|
|
3026
|
-
listenToEsc: {
|
|
3027
|
-
type: "listenToEsc";
|
|
3028
|
-
params: NonReducibleUnknown;
|
|
3029
|
-
};
|
|
3030
|
-
stopListeningToEsc: {
|
|
3031
|
-
type: "stopListeningToEsc";
|
|
3032
|
-
params: NonReducibleUnknown;
|
|
3033
|
-
};
|
|
3034
|
-
}>, Values<{
|
|
3035
|
-
"has overlays?": {
|
|
3036
|
-
type: "has overlays?";
|
|
3037
|
-
params: unknown;
|
|
3038
|
-
};
|
|
3039
|
-
"close specific overlay?": {
|
|
3040
|
-
type: "close specific overlay?";
|
|
3041
|
-
params: unknown;
|
|
3042
|
-
};
|
|
3043
|
-
"last: is relationshipDetails?": {
|
|
3044
|
-
type: "last: is relationshipDetails?";
|
|
3045
|
-
params: unknown;
|
|
3046
|
-
};
|
|
3047
|
-
"last: is relationshipsBrowser?": {
|
|
3048
|
-
type: "last: is relationshipsBrowser?";
|
|
3049
|
-
params: unknown;
|
|
3050
|
-
};
|
|
3051
|
-
}>, never, "active" | "idle" | "closing", string, NonReducibleUnknown, NonReducibleUnknown, OverlayActorEmitedEvent, MetaObject, {
|
|
3052
|
-
readonly id: "overlays";
|
|
3053
|
-
readonly context: () => {
|
|
3054
|
-
seq: number;
|
|
3055
|
-
overlays: never[];
|
|
3056
|
-
};
|
|
3057
|
-
readonly initial: "idle";
|
|
3058
|
-
readonly on: {
|
|
3059
|
-
readonly 'open.elementDetails': {
|
|
3060
|
-
readonly actions: "openElementDetails";
|
|
3061
|
-
readonly target: ".active";
|
|
3062
|
-
readonly reenter: false;
|
|
3063
|
-
};
|
|
3064
|
-
readonly 'open.relationshipDetails': {
|
|
3065
|
-
readonly actions: "openRelationshipDetails";
|
|
3066
|
-
readonly target: ".active";
|
|
3067
|
-
readonly reenter: false;
|
|
3068
|
-
};
|
|
3069
|
-
readonly 'open.relationshipsBrowser': {
|
|
3070
|
-
readonly actions: "openRelationshipsBrowser";
|
|
3071
|
-
readonly target: ".active";
|
|
3072
|
-
readonly reenter: false;
|
|
3073
|
-
};
|
|
3074
|
-
};
|
|
3075
|
-
readonly states: {
|
|
3076
|
-
readonly idle: {};
|
|
3077
|
-
readonly active: {
|
|
3078
|
-
readonly entry: "listenToEsc";
|
|
3079
|
-
readonly exit: "stopListeningToEsc";
|
|
3080
|
-
readonly on: {
|
|
3081
|
-
readonly close: readonly [{
|
|
3082
|
-
readonly guard: "close specific overlay?";
|
|
3083
|
-
readonly actions: {
|
|
3084
|
-
readonly type: "closeSpecificOverlay";
|
|
3085
|
-
readonly params: ({ event }: {
|
|
3086
|
-
context: OverlaysContext;
|
|
3087
|
-
event: {
|
|
3088
|
-
type: "close";
|
|
3089
|
-
actorId?: string | undefined;
|
|
3090
|
-
};
|
|
3091
|
-
}) => {
|
|
3092
|
-
actorId: string;
|
|
3093
|
-
};
|
|
3094
|
-
};
|
|
3095
|
-
readonly target: "closing";
|
|
3096
|
-
}, {
|
|
3097
|
-
readonly actions: "closeLastOverlay";
|
|
3098
|
-
readonly target: "closing";
|
|
3099
|
-
}];
|
|
3100
|
-
readonly 'close.all': {
|
|
3101
|
-
readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
|
|
3102
|
-
readonly target: "idle";
|
|
3103
|
-
};
|
|
3104
|
-
};
|
|
3105
|
-
};
|
|
3106
|
-
readonly closing: {
|
|
3107
|
-
readonly always: readonly [{
|
|
3108
|
-
readonly guard: "has overlays?";
|
|
3109
|
-
readonly target: "active";
|
|
3110
|
-
}, {
|
|
3111
|
-
readonly actions: "stopListeningToEsc";
|
|
3112
|
-
readonly target: "idle";
|
|
3113
|
-
}];
|
|
3114
|
-
};
|
|
3115
|
-
};
|
|
3116
|
-
readonly exit: readonly ["stopListeningToEsc", "closeAllOverlays"];
|
|
3117
|
-
}>;
|
|
3118
|
-
id: "overlays";
|
|
3119
|
-
};
|
|
3120
|
-
}>, never, never, never, never>;
|
|
3121
|
-
readonly target: "focused";
|
|
3122
|
-
};
|
|
3123
|
-
};
|
|
3124
|
-
};
|
|
3125
|
-
readonly focused: {
|
|
3126
|
-
readonly entry: readonly [ ActionFunction<Context, Events, Events, undefined, Values<{
|
|
3127
|
-
syncManualLayoutActorLogic: {
|
|
3128
|
-
src: "syncManualLayoutActorLogic";
|
|
3129
|
-
logic: StateMachine<Readonly< Input>, SyncLayoutEvents, {}, never, {
|
|
3130
|
-
type: "trigger:OnChange";
|
|
3131
|
-
params: {
|
|
3132
|
-
change: ViewChange;
|
|
3133
|
-
};
|
|
3134
|
-
}, {
|
|
3135
|
-
type: "same view";
|
|
3136
|
-
params: unknown;
|
|
3137
|
-
}, "timeout", "paused" | "stopped" | "idle" | "synced" | "pending", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
3138
|
-
readonly initial: "idle";
|
|
3139
|
-
readonly context: ({ input }: {
|
|
3140
|
-
spawn: {
|
|
3141
|
-
<TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
|
|
3142
|
-
<TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
|
|
3143
|
-
id?: never;
|
|
3144
|
-
systemId?: string;
|
|
3145
|
-
input?: InputFrom<TLogic>;
|
|
3146
|
-
syncSnapshot?: boolean;
|
|
3147
|
-
} & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
|
|
3148
|
-
};
|
|
3149
|
-
input: Input;
|
|
3150
|
-
self: ActorRef< MachineSnapshot<Readonly< Input>, SyncLayoutEvents, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, SyncLayoutEvents, AnyEventObject>;
|
|
3151
|
-
}) => {
|
|
3152
|
-
parent: ActorRef< MachineSnapshot<Context, Events, any, any, any, any, any, any>, Events, any>;
|
|
3153
|
-
viewId: ViewId;
|
|
3154
|
-
};
|
|
3155
|
-
readonly states: {
|
|
3156
|
-
readonly idle: {
|
|
3157
|
-
readonly tags: "ready";
|
|
3158
|
-
readonly on: {
|
|
3159
|
-
readonly sync: {
|
|
3160
|
-
readonly target: "pending";
|
|
3161
|
-
};
|
|
3162
|
-
};
|
|
3163
|
-
};
|
|
3164
|
-
readonly paused: {
|
|
3165
|
-
readonly tags: "pending";
|
|
3166
|
-
readonly on: {
|
|
3167
|
-
readonly sync: {
|
|
3168
|
-
readonly target: "pending";
|
|
3169
|
-
};
|
|
3170
|
-
};
|
|
3171
|
-
};
|
|
3172
|
-
readonly pending: {
|
|
3173
|
-
readonly tags: "pending";
|
|
3174
|
-
readonly on: {
|
|
3175
|
-
readonly sync: {
|
|
3176
|
-
readonly target: "pending";
|
|
3177
|
-
readonly reenter: true;
|
|
3178
|
-
};
|
|
3179
|
-
readonly cancel: {
|
|
3180
|
-
readonly target: "paused";
|
|
3181
|
-
};
|
|
3182
|
-
};
|
|
3183
|
-
readonly after: {
|
|
3184
|
-
readonly timeout: readonly [{
|
|
3185
|
-
readonly guard: "same view";
|
|
3186
|
-
readonly actions: {
|
|
3187
|
-
readonly type: "trigger:OnChange";
|
|
3188
|
-
readonly params: ({ context }: {
|
|
3189
|
-
context: Readonly< Input>;
|
|
3190
|
-
event: SyncLayoutEvents;
|
|
3191
|
-
}) => {
|
|
3192
|
-
change: ViewChange.SaveManualLayout;
|
|
3193
|
-
};
|
|
3194
|
-
};
|
|
3195
|
-
readonly target: "synced";
|
|
3196
|
-
}, {
|
|
3197
|
-
readonly target: "stopped";
|
|
3198
|
-
}];
|
|
3199
|
-
};
|
|
3200
|
-
};
|
|
3201
|
-
readonly synced: {
|
|
3202
|
-
readonly tags: "ready";
|
|
3203
|
-
readonly on: {
|
|
3204
|
-
readonly sync: {
|
|
3205
|
-
readonly target: "pending";
|
|
3206
|
-
};
|
|
3207
|
-
};
|
|
3208
|
-
};
|
|
3209
|
-
readonly stopped: {
|
|
3210
|
-
readonly entry: ActionFunction<Readonly< Input>, SyncLayoutEvents, SyncLayoutEvents, undefined, never, never, never, never, never>;
|
|
3211
|
-
readonly type: "final";
|
|
3212
|
-
};
|
|
3213
|
-
};
|
|
3214
|
-
readonly on: {
|
|
3215
|
-
readonly synced: {
|
|
3216
|
-
readonly target: ".synced";
|
|
3217
|
-
};
|
|
3218
|
-
readonly stop: {
|
|
3219
|
-
readonly target: ".stopped";
|
|
3220
|
-
};
|
|
2970
|
+
readonly on: {
|
|
2971
|
+
readonly synced: {
|
|
2972
|
+
readonly target: ".synced";
|
|
2973
|
+
};
|
|
2974
|
+
readonly stop: {
|
|
2975
|
+
readonly target: ".stopped";
|
|
2976
|
+
};
|
|
3221
2977
|
};
|
|
3222
2978
|
}>;
|
|
3223
2979
|
id: "syncLayout";
|
|
@@ -3376,7 +3132,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
3376
3132
|
}>;
|
|
3377
3133
|
id: "overlays";
|
|
3378
3134
|
};
|
|
3379
|
-
}>, never, never, never, never>, "open source of focused node", ActionFunction<Context, Events, Events, undefined, Values<{
|
|
3135
|
+
}>, never, never, never, never>, "open source of focused or last clicked node", ActionFunction<Context, Events, Events, undefined, Values<{
|
|
3380
3136
|
syncManualLayoutActorLogic: {
|
|
3381
3137
|
src: "syncManualLayoutActorLogic";
|
|
3382
3138
|
logic: StateMachine<Readonly< Input>, SyncLayoutEvents, {}, never, {
|
|
@@ -3920,8 +3676,12 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
3920
3676
|
type: "trigger:OpenSource";
|
|
3921
3677
|
params: OpenSourceParams;
|
|
3922
3678
|
};
|
|
3923
|
-
"
|
|
3924
|
-
type: "
|
|
3679
|
+
"assign lastClickedNode": {
|
|
3680
|
+
type: "assign lastClickedNode";
|
|
3681
|
+
params: NonReducibleUnknown;
|
|
3682
|
+
};
|
|
3683
|
+
"open source of focused or last clicked node": {
|
|
3684
|
+
type: "open source of focused or last clicked node";
|
|
3925
3685
|
params: NonReducibleUnknown;
|
|
3926
3686
|
};
|
|
3927
3687
|
"xyflow:setViewportCenter": {
|
|
@@ -3978,8 +3738,8 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
3978
3738
|
type: "is another view";
|
|
3979
3739
|
params: unknown;
|
|
3980
3740
|
};
|
|
3981
|
-
"click: selected node
|
|
3982
|
-
type: "click: selected node
|
|
3741
|
+
"click: selected node": {
|
|
3742
|
+
type: "click: selected node";
|
|
3983
3743
|
params: unknown;
|
|
3984
3744
|
};
|
|
3985
3745
|
"click: same node": {
|
|
@@ -3990,6 +3750,10 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
3990
3750
|
type: "click: focused node";
|
|
3991
3751
|
params: unknown;
|
|
3992
3752
|
};
|
|
3753
|
+
"click: node has connections": {
|
|
3754
|
+
type: "click: node has connections";
|
|
3755
|
+
params: unknown;
|
|
3756
|
+
};
|
|
3993
3757
|
}>, never, EventObject>;
|
|
3994
3758
|
readonly on: {
|
|
3995
3759
|
readonly 'xyflow.nodeClick': readonly [{
|
|
@@ -4505,7 +4269,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
4505
4269
|
}>;
|
|
4506
4270
|
id: "overlays";
|
|
4507
4271
|
};
|
|
4508
|
-
}>, never, never, never, never>, "open source of focused node", {
|
|
4272
|
+
}>, never, never, never, never>, "open source of focused or last clicked node", {
|
|
4509
4273
|
readonly type: "xyflow:fitDiagram";
|
|
4510
4274
|
readonly params: typeof focusedBounds;
|
|
4511
4275
|
}];
|
|
@@ -5020,7 +4784,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
5020
4784
|
}>;
|
|
5021
4785
|
id: "overlays";
|
|
5022
4786
|
};
|
|
5023
|
-
}>, never, never, never, never>, "open source of focused node", {
|
|
4787
|
+
}>, never, never, never, never>, "open source of focused or last clicked node", {
|
|
5024
4788
|
readonly type: "xyflow:fitDiagram";
|
|
5025
4789
|
readonly params: typeof focusedBounds;
|
|
5026
4790
|
}];
|
|
@@ -5223,86 +4987,352 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
5223
4987
|
};
|
|
5224
4988
|
readonly initial: "idle";
|
|
5225
4989
|
readonly on: {
|
|
5226
|
-
readonly 'open.elementDetails': {
|
|
5227
|
-
readonly actions: "openElementDetails";
|
|
5228
|
-
readonly target: ".active";
|
|
5229
|
-
readonly reenter: false;
|
|
5230
|
-
};
|
|
5231
|
-
readonly 'open.relationshipDetails': {
|
|
5232
|
-
readonly actions: "openRelationshipDetails";
|
|
5233
|
-
readonly target: ".active";
|
|
5234
|
-
readonly reenter: false;
|
|
5235
|
-
};
|
|
5236
|
-
readonly 'open.relationshipsBrowser': {
|
|
5237
|
-
readonly actions: "openRelationshipsBrowser";
|
|
5238
|
-
readonly target: ".active";
|
|
5239
|
-
readonly reenter: false;
|
|
5240
|
-
};
|
|
5241
|
-
};
|
|
5242
|
-
readonly states: {
|
|
5243
|
-
readonly idle: {};
|
|
5244
|
-
readonly active: {
|
|
5245
|
-
readonly entry: "listenToEsc";
|
|
5246
|
-
readonly exit: "stopListeningToEsc";
|
|
5247
|
-
readonly on: {
|
|
5248
|
-
readonly close: readonly [{
|
|
5249
|
-
readonly guard: "close specific overlay?";
|
|
5250
|
-
readonly actions: {
|
|
5251
|
-
readonly type: "closeSpecificOverlay";
|
|
5252
|
-
readonly params: ({ event }: {
|
|
5253
|
-
context: OverlaysContext;
|
|
5254
|
-
event: {
|
|
5255
|
-
type: "close";
|
|
5256
|
-
actorId?: string | undefined;
|
|
5257
|
-
};
|
|
5258
|
-
}) => {
|
|
5259
|
-
actorId: string;
|
|
5260
|
-
};
|
|
4990
|
+
readonly 'open.elementDetails': {
|
|
4991
|
+
readonly actions: "openElementDetails";
|
|
4992
|
+
readonly target: ".active";
|
|
4993
|
+
readonly reenter: false;
|
|
4994
|
+
};
|
|
4995
|
+
readonly 'open.relationshipDetails': {
|
|
4996
|
+
readonly actions: "openRelationshipDetails";
|
|
4997
|
+
readonly target: ".active";
|
|
4998
|
+
readonly reenter: false;
|
|
4999
|
+
};
|
|
5000
|
+
readonly 'open.relationshipsBrowser': {
|
|
5001
|
+
readonly actions: "openRelationshipsBrowser";
|
|
5002
|
+
readonly target: ".active";
|
|
5003
|
+
readonly reenter: false;
|
|
5004
|
+
};
|
|
5005
|
+
};
|
|
5006
|
+
readonly states: {
|
|
5007
|
+
readonly idle: {};
|
|
5008
|
+
readonly active: {
|
|
5009
|
+
readonly entry: "listenToEsc";
|
|
5010
|
+
readonly exit: "stopListeningToEsc";
|
|
5011
|
+
readonly on: {
|
|
5012
|
+
readonly close: readonly [{
|
|
5013
|
+
readonly guard: "close specific overlay?";
|
|
5014
|
+
readonly actions: {
|
|
5015
|
+
readonly type: "closeSpecificOverlay";
|
|
5016
|
+
readonly params: ({ event }: {
|
|
5017
|
+
context: OverlaysContext;
|
|
5018
|
+
event: {
|
|
5019
|
+
type: "close";
|
|
5020
|
+
actorId?: string | undefined;
|
|
5021
|
+
};
|
|
5022
|
+
}) => {
|
|
5023
|
+
actorId: string;
|
|
5024
|
+
};
|
|
5025
|
+
};
|
|
5026
|
+
readonly target: "closing";
|
|
5027
|
+
}, {
|
|
5028
|
+
readonly actions: "closeLastOverlay";
|
|
5029
|
+
readonly target: "closing";
|
|
5030
|
+
}];
|
|
5031
|
+
readonly 'close.all': {
|
|
5032
|
+
readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
|
|
5033
|
+
readonly target: "idle";
|
|
5034
|
+
};
|
|
5035
|
+
};
|
|
5036
|
+
};
|
|
5037
|
+
readonly closing: {
|
|
5038
|
+
readonly always: readonly [{
|
|
5039
|
+
readonly guard: "has overlays?";
|
|
5040
|
+
readonly target: "active";
|
|
5041
|
+
}, {
|
|
5042
|
+
readonly actions: "stopListeningToEsc";
|
|
5043
|
+
readonly target: "idle";
|
|
5044
|
+
}];
|
|
5045
|
+
};
|
|
5046
|
+
};
|
|
5047
|
+
readonly exit: readonly ["stopListeningToEsc", "closeAllOverlays"];
|
|
5048
|
+
}>;
|
|
5049
|
+
id: "overlays";
|
|
5050
|
+
};
|
|
5051
|
+
}>, never, never, never, never>;
|
|
5052
|
+
readonly target: "idle";
|
|
5053
|
+
};
|
|
5054
|
+
readonly 'saveManualLayout.*': {
|
|
5055
|
+
readonly guard: "not readonly";
|
|
5056
|
+
readonly actions: ActionFunction<Context, {
|
|
5057
|
+
type: "saveManualLayout.schedule";
|
|
5058
|
+
} | {
|
|
5059
|
+
type: "saveManualLayout.cancel";
|
|
5060
|
+
}, Events, undefined, never, never, never, never, never>;
|
|
5061
|
+
};
|
|
5062
|
+
};
|
|
5063
|
+
};
|
|
5064
|
+
readonly navigating: {
|
|
5065
|
+
readonly entry: readonly ["closeAllOverlays", "stopSyncLayout", {
|
|
5066
|
+
readonly type: "trigger:NavigateTo";
|
|
5067
|
+
readonly params: ({ context }: {
|
|
5068
|
+
context: Context;
|
|
5069
|
+
event: Events;
|
|
5070
|
+
}) => {
|
|
5071
|
+
viewId: ViewId;
|
|
5072
|
+
};
|
|
5073
|
+
}];
|
|
5074
|
+
readonly exit: ActionFunction<Context, Events, Events, undefined, Values<{
|
|
5075
|
+
syncManualLayoutActorLogic: {
|
|
5076
|
+
src: "syncManualLayoutActorLogic";
|
|
5077
|
+
logic: StateMachine<Readonly< Input>, SyncLayoutEvents, {}, never, {
|
|
5078
|
+
type: "trigger:OnChange";
|
|
5079
|
+
params: {
|
|
5080
|
+
change: ViewChange;
|
|
5081
|
+
};
|
|
5082
|
+
}, {
|
|
5083
|
+
type: "same view";
|
|
5084
|
+
params: unknown;
|
|
5085
|
+
}, "timeout", "paused" | "stopped" | "idle" | "synced" | "pending", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
5086
|
+
readonly initial: "idle";
|
|
5087
|
+
readonly context: ({ input }: {
|
|
5088
|
+
spawn: {
|
|
5089
|
+
<TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
|
|
5090
|
+
<TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
|
|
5091
|
+
id?: never;
|
|
5092
|
+
systemId?: string;
|
|
5093
|
+
input?: InputFrom<TLogic>;
|
|
5094
|
+
syncSnapshot?: boolean;
|
|
5095
|
+
} & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
|
|
5096
|
+
};
|
|
5097
|
+
input: Input;
|
|
5098
|
+
self: ActorRef< MachineSnapshot<Readonly< Input>, SyncLayoutEvents, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, SyncLayoutEvents, AnyEventObject>;
|
|
5099
|
+
}) => {
|
|
5100
|
+
parent: ActorRef< MachineSnapshot<Context, Events, any, any, any, any, any, any>, Events, any>;
|
|
5101
|
+
viewId: ViewId;
|
|
5102
|
+
};
|
|
5103
|
+
readonly states: {
|
|
5104
|
+
readonly idle: {
|
|
5105
|
+
readonly tags: "ready";
|
|
5106
|
+
readonly on: {
|
|
5107
|
+
readonly sync: {
|
|
5108
|
+
readonly target: "pending";
|
|
5109
|
+
};
|
|
5110
|
+
};
|
|
5111
|
+
};
|
|
5112
|
+
readonly paused: {
|
|
5113
|
+
readonly tags: "pending";
|
|
5114
|
+
readonly on: {
|
|
5115
|
+
readonly sync: {
|
|
5116
|
+
readonly target: "pending";
|
|
5117
|
+
};
|
|
5118
|
+
};
|
|
5119
|
+
};
|
|
5120
|
+
readonly pending: {
|
|
5121
|
+
readonly tags: "pending";
|
|
5122
|
+
readonly on: {
|
|
5123
|
+
readonly sync: {
|
|
5124
|
+
readonly target: "pending";
|
|
5125
|
+
readonly reenter: true;
|
|
5126
|
+
};
|
|
5127
|
+
readonly cancel: {
|
|
5128
|
+
readonly target: "paused";
|
|
5129
|
+
};
|
|
5130
|
+
};
|
|
5131
|
+
readonly after: {
|
|
5132
|
+
readonly timeout: readonly [{
|
|
5133
|
+
readonly guard: "same view";
|
|
5134
|
+
readonly actions: {
|
|
5135
|
+
readonly type: "trigger:OnChange";
|
|
5136
|
+
readonly params: ({ context }: {
|
|
5137
|
+
context: Readonly< Input>;
|
|
5138
|
+
event: SyncLayoutEvents;
|
|
5139
|
+
}) => {
|
|
5140
|
+
change: ViewChange.SaveManualLayout;
|
|
5141
|
+
};
|
|
5142
|
+
};
|
|
5143
|
+
readonly target: "synced";
|
|
5144
|
+
}, {
|
|
5145
|
+
readonly target: "stopped";
|
|
5146
|
+
}];
|
|
5147
|
+
};
|
|
5148
|
+
};
|
|
5149
|
+
readonly synced: {
|
|
5150
|
+
readonly tags: "ready";
|
|
5151
|
+
readonly on: {
|
|
5152
|
+
readonly sync: {
|
|
5153
|
+
readonly target: "pending";
|
|
5154
|
+
};
|
|
5155
|
+
};
|
|
5156
|
+
};
|
|
5157
|
+
readonly stopped: {
|
|
5158
|
+
readonly entry: ActionFunction<Readonly< Input>, SyncLayoutEvents, SyncLayoutEvents, undefined, never, never, never, never, never>;
|
|
5159
|
+
readonly type: "final";
|
|
5160
|
+
};
|
|
5161
|
+
};
|
|
5162
|
+
readonly on: {
|
|
5163
|
+
readonly synced: {
|
|
5164
|
+
readonly target: ".synced";
|
|
5165
|
+
};
|
|
5166
|
+
readonly stop: {
|
|
5167
|
+
readonly target: ".stopped";
|
|
5168
|
+
};
|
|
5169
|
+
};
|
|
5170
|
+
}>;
|
|
5171
|
+
id: "syncLayout";
|
|
5172
|
+
};
|
|
5173
|
+
hotkeyActorLogic: {
|
|
5174
|
+
src: "hotkeyActorLogic";
|
|
5175
|
+
logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
|
|
5176
|
+
id: "hotkey";
|
|
5177
|
+
};
|
|
5178
|
+
overlaysActorLogic: {
|
|
5179
|
+
src: "overlaysActorLogic";
|
|
5180
|
+
logic: StateMachine<OverlaysContext, OverlayActorEvent, {
|
|
5181
|
+
[x: `elementDetails-${number}`]: ActorRefFromLogic<ElementDetailsLogic> | undefined;
|
|
5182
|
+
[x: `relationshipDetails-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipDetails.Logic> | undefined;
|
|
5183
|
+
[x: `relationshipsBrowser-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipsBrowser.Logic> | undefined;
|
|
5184
|
+
hotkey?: ActorRefFromLogic<CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>>;
|
|
5185
|
+
}, Values<{
|
|
5186
|
+
elementDetails: {
|
|
5187
|
+
src: "elementDetails";
|
|
5188
|
+
logic: ElementDetailsLogic;
|
|
5189
|
+
id: `elementDetails-${number}`;
|
|
5190
|
+
};
|
|
5191
|
+
relationshipDetails: {
|
|
5192
|
+
src: "relationshipDetails";
|
|
5193
|
+
logic: import("../overlays/types").Overlays.RelationshipDetails.Logic;
|
|
5194
|
+
id: `relationshipDetails-${number}`;
|
|
5195
|
+
};
|
|
5196
|
+
relationshipsBrowser: {
|
|
5197
|
+
src: "relationshipsBrowser";
|
|
5198
|
+
logic: import("../overlays/types").Overlays.RelationshipsBrowser.Logic;
|
|
5199
|
+
id: `relationshipsBrowser-${number}`;
|
|
5200
|
+
};
|
|
5201
|
+
hotkey: {
|
|
5202
|
+
src: "hotkey";
|
|
5203
|
+
logic: CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>;
|
|
5204
|
+
id: "hotkey";
|
|
5205
|
+
};
|
|
5206
|
+
}>, Values<{
|
|
5207
|
+
closeLastOverlay: {
|
|
5208
|
+
type: "closeLastOverlay";
|
|
5209
|
+
params: NonReducibleUnknown;
|
|
5210
|
+
};
|
|
5211
|
+
closeSpecificOverlay: {
|
|
5212
|
+
type: "closeSpecificOverlay";
|
|
5213
|
+
params: {
|
|
5214
|
+
actorId: string;
|
|
5215
|
+
};
|
|
5216
|
+
};
|
|
5217
|
+
closeAllOverlays: {
|
|
5218
|
+
type: "closeAllOverlays";
|
|
5219
|
+
params: NonReducibleUnknown;
|
|
5220
|
+
};
|
|
5221
|
+
openElementDetails: {
|
|
5222
|
+
type: "openElementDetails";
|
|
5223
|
+
params: NonReducibleUnknown;
|
|
5224
|
+
};
|
|
5225
|
+
openRelationshipDetails: {
|
|
5226
|
+
type: "openRelationshipDetails";
|
|
5227
|
+
params: NonReducibleUnknown;
|
|
5228
|
+
};
|
|
5229
|
+
openRelationshipsBrowser: {
|
|
5230
|
+
type: "openRelationshipsBrowser";
|
|
5231
|
+
params: NonReducibleUnknown;
|
|
5232
|
+
};
|
|
5233
|
+
listenToEsc: {
|
|
5234
|
+
type: "listenToEsc";
|
|
5235
|
+
params: NonReducibleUnknown;
|
|
5236
|
+
};
|
|
5237
|
+
stopListeningToEsc: {
|
|
5238
|
+
type: "stopListeningToEsc";
|
|
5239
|
+
params: NonReducibleUnknown;
|
|
5240
|
+
};
|
|
5241
|
+
}>, Values<{
|
|
5242
|
+
"has overlays?": {
|
|
5243
|
+
type: "has overlays?";
|
|
5244
|
+
params: unknown;
|
|
5245
|
+
};
|
|
5246
|
+
"close specific overlay?": {
|
|
5247
|
+
type: "close specific overlay?";
|
|
5248
|
+
params: unknown;
|
|
5249
|
+
};
|
|
5250
|
+
"last: is relationshipDetails?": {
|
|
5251
|
+
type: "last: is relationshipDetails?";
|
|
5252
|
+
params: unknown;
|
|
5253
|
+
};
|
|
5254
|
+
"last: is relationshipsBrowser?": {
|
|
5255
|
+
type: "last: is relationshipsBrowser?";
|
|
5256
|
+
params: unknown;
|
|
5257
|
+
};
|
|
5258
|
+
}>, never, "active" | "idle" | "closing", string, NonReducibleUnknown, NonReducibleUnknown, OverlayActorEmitedEvent, MetaObject, {
|
|
5259
|
+
readonly id: "overlays";
|
|
5260
|
+
readonly context: () => {
|
|
5261
|
+
seq: number;
|
|
5262
|
+
overlays: never[];
|
|
5263
|
+
};
|
|
5264
|
+
readonly initial: "idle";
|
|
5265
|
+
readonly on: {
|
|
5266
|
+
readonly 'open.elementDetails': {
|
|
5267
|
+
readonly actions: "openElementDetails";
|
|
5268
|
+
readonly target: ".active";
|
|
5269
|
+
readonly reenter: false;
|
|
5270
|
+
};
|
|
5271
|
+
readonly 'open.relationshipDetails': {
|
|
5272
|
+
readonly actions: "openRelationshipDetails";
|
|
5273
|
+
readonly target: ".active";
|
|
5274
|
+
readonly reenter: false;
|
|
5275
|
+
};
|
|
5276
|
+
readonly 'open.relationshipsBrowser': {
|
|
5277
|
+
readonly actions: "openRelationshipsBrowser";
|
|
5278
|
+
readonly target: ".active";
|
|
5279
|
+
readonly reenter: false;
|
|
5280
|
+
};
|
|
5281
|
+
};
|
|
5282
|
+
readonly states: {
|
|
5283
|
+
readonly idle: {};
|
|
5284
|
+
readonly active: {
|
|
5285
|
+
readonly entry: "listenToEsc";
|
|
5286
|
+
readonly exit: "stopListeningToEsc";
|
|
5287
|
+
readonly on: {
|
|
5288
|
+
readonly close: readonly [{
|
|
5289
|
+
readonly guard: "close specific overlay?";
|
|
5290
|
+
readonly actions: {
|
|
5291
|
+
readonly type: "closeSpecificOverlay";
|
|
5292
|
+
readonly params: ({ event }: {
|
|
5293
|
+
context: OverlaysContext;
|
|
5294
|
+
event: {
|
|
5295
|
+
type: "close";
|
|
5296
|
+
actorId?: string | undefined;
|
|
5261
5297
|
};
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
readonly actions: "closeLastOverlay";
|
|
5265
|
-
readonly target: "closing";
|
|
5266
|
-
}];
|
|
5267
|
-
readonly 'close.all': {
|
|
5268
|
-
readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
|
|
5269
|
-
readonly target: "idle";
|
|
5298
|
+
}) => {
|
|
5299
|
+
actorId: string;
|
|
5270
5300
|
};
|
|
5271
5301
|
};
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
readonly
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
}];
|
|
5302
|
+
readonly target: "closing";
|
|
5303
|
+
}, {
|
|
5304
|
+
readonly actions: "closeLastOverlay";
|
|
5305
|
+
readonly target: "closing";
|
|
5306
|
+
}];
|
|
5307
|
+
readonly 'close.all': {
|
|
5308
|
+
readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
|
|
5309
|
+
readonly target: "idle";
|
|
5281
5310
|
};
|
|
5282
5311
|
};
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5312
|
+
};
|
|
5313
|
+
readonly closing: {
|
|
5314
|
+
readonly always: readonly [{
|
|
5315
|
+
readonly guard: "has overlays?";
|
|
5316
|
+
readonly target: "active";
|
|
5317
|
+
}, {
|
|
5318
|
+
readonly actions: "stopListeningToEsc";
|
|
5319
|
+
readonly target: "idle";
|
|
5320
|
+
}];
|
|
5321
|
+
};
|
|
5286
5322
|
};
|
|
5287
|
-
|
|
5288
|
-
|
|
5323
|
+
readonly exit: readonly ["stopListeningToEsc", "closeAllOverlays"];
|
|
5324
|
+
}>;
|
|
5325
|
+
id: "overlays";
|
|
5289
5326
|
};
|
|
5290
|
-
|
|
5291
|
-
|
|
5327
|
+
}>, never, never, never, never>;
|
|
5328
|
+
readonly on: {
|
|
5329
|
+
readonly 'update.view': {
|
|
5292
5330
|
readonly actions: ActionFunction<Context, {
|
|
5293
|
-
type: "
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
};
|
|
5299
|
-
};
|
|
5300
|
-
readonly navigating: {
|
|
5301
|
-
readonly initial: "pending";
|
|
5302
|
-
readonly type: "compound";
|
|
5303
|
-
readonly states: {
|
|
5304
|
-
readonly pending: {
|
|
5305
|
-
readonly entry: ActionFunction<Context, Events, Events, undefined, Values<{
|
|
5331
|
+
type: "update.view";
|
|
5332
|
+
view: DiagramView;
|
|
5333
|
+
xynodes: Types.Node[];
|
|
5334
|
+
xyedges: Types.Edge[];
|
|
5335
|
+
}, Events, undefined, Values<{
|
|
5306
5336
|
syncManualLayoutActorLogic: {
|
|
5307
5337
|
src: "syncManualLayoutActorLogic";
|
|
5308
5338
|
logic: StateMachine<Readonly< Input>, SyncLayoutEvents, {}, never, {
|
|
@@ -5589,8 +5619,12 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
5589
5619
|
type: "trigger:OpenSource";
|
|
5590
5620
|
params: OpenSourceParams;
|
|
5591
5621
|
};
|
|
5592
|
-
"
|
|
5593
|
-
type: "
|
|
5622
|
+
"assign lastClickedNode": {
|
|
5623
|
+
type: "assign lastClickedNode";
|
|
5624
|
+
params: NonReducibleUnknown;
|
|
5625
|
+
};
|
|
5626
|
+
"open source of focused or last clicked node": {
|
|
5627
|
+
type: "open source of focused or last clicked node";
|
|
5594
5628
|
params: NonReducibleUnknown;
|
|
5595
5629
|
};
|
|
5596
5630
|
"xyflow:setViewportCenter": {
|
|
@@ -5647,8 +5681,8 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
5647
5681
|
type: "is another view";
|
|
5648
5682
|
params: unknown;
|
|
5649
5683
|
};
|
|
5650
|
-
"click: selected node
|
|
5651
|
-
type: "click: selected node
|
|
5684
|
+
"click: selected node": {
|
|
5685
|
+
type: "click: selected node";
|
|
5652
5686
|
params: unknown;
|
|
5653
5687
|
};
|
|
5654
5688
|
"click: same node": {
|
|
@@ -5659,384 +5693,17 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
5659
5693
|
type: "click: focused node";
|
|
5660
5694
|
params: unknown;
|
|
5661
5695
|
};
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
readonly actions: ActionFunction<Context, {
|
|
5666
|
-
type: "update.view";
|
|
5667
|
-
view: DiagramView;
|
|
5668
|
-
xynodes: Types.Node[];
|
|
5669
|
-
xyedges: Types.Edge[];
|
|
5670
|
-
}, Events, undefined, Values<{
|
|
5671
|
-
syncManualLayoutActorLogic: {
|
|
5672
|
-
src: "syncManualLayoutActorLogic";
|
|
5673
|
-
logic: StateMachine<Readonly< Input>, SyncLayoutEvents, {}, never, {
|
|
5674
|
-
type: "trigger:OnChange";
|
|
5675
|
-
params: {
|
|
5676
|
-
change: ViewChange;
|
|
5677
|
-
};
|
|
5678
|
-
}, {
|
|
5679
|
-
type: "same view";
|
|
5680
|
-
params: unknown;
|
|
5681
|
-
}, "timeout", "paused" | "stopped" | "idle" | "synced" | "pending", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
|
|
5682
|
-
readonly initial: "idle";
|
|
5683
|
-
readonly context: ({ input }: {
|
|
5684
|
-
spawn: {
|
|
5685
|
-
<TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
|
|
5686
|
-
<TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
|
|
5687
|
-
id?: never;
|
|
5688
|
-
systemId?: string;
|
|
5689
|
-
input?: InputFrom<TLogic>;
|
|
5690
|
-
syncSnapshot?: boolean;
|
|
5691
|
-
} & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
|
|
5692
|
-
};
|
|
5693
|
-
input: Input;
|
|
5694
|
-
self: ActorRef< MachineSnapshot<Readonly< Input>, SyncLayoutEvents, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, SyncLayoutEvents, AnyEventObject>;
|
|
5695
|
-
}) => {
|
|
5696
|
-
parent: ActorRef< MachineSnapshot<Context, Events, any, any, any, any, any, any>, Events, any>;
|
|
5697
|
-
viewId: ViewId;
|
|
5698
|
-
};
|
|
5699
|
-
readonly states: {
|
|
5700
|
-
readonly idle: {
|
|
5701
|
-
readonly tags: "ready";
|
|
5702
|
-
readonly on: {
|
|
5703
|
-
readonly sync: {
|
|
5704
|
-
readonly target: "pending";
|
|
5705
|
-
};
|
|
5706
|
-
};
|
|
5707
|
-
};
|
|
5708
|
-
readonly paused: {
|
|
5709
|
-
readonly tags: "pending";
|
|
5710
|
-
readonly on: {
|
|
5711
|
-
readonly sync: {
|
|
5712
|
-
readonly target: "pending";
|
|
5713
|
-
};
|
|
5714
|
-
};
|
|
5715
|
-
};
|
|
5716
|
-
readonly pending: {
|
|
5717
|
-
readonly tags: "pending";
|
|
5718
|
-
readonly on: {
|
|
5719
|
-
readonly sync: {
|
|
5720
|
-
readonly target: "pending";
|
|
5721
|
-
readonly reenter: true;
|
|
5722
|
-
};
|
|
5723
|
-
readonly cancel: {
|
|
5724
|
-
readonly target: "paused";
|
|
5725
|
-
};
|
|
5726
|
-
};
|
|
5727
|
-
readonly after: {
|
|
5728
|
-
readonly timeout: readonly [{
|
|
5729
|
-
readonly guard: "same view";
|
|
5730
|
-
readonly actions: {
|
|
5731
|
-
readonly type: "trigger:OnChange";
|
|
5732
|
-
readonly params: ({ context }: {
|
|
5733
|
-
context: Readonly< Input>;
|
|
5734
|
-
event: SyncLayoutEvents;
|
|
5735
|
-
}) => {
|
|
5736
|
-
change: ViewChange.SaveManualLayout;
|
|
5737
|
-
};
|
|
5738
|
-
};
|
|
5739
|
-
readonly target: "synced";
|
|
5740
|
-
}, {
|
|
5741
|
-
readonly target: "stopped";
|
|
5742
|
-
}];
|
|
5743
|
-
};
|
|
5744
|
-
};
|
|
5745
|
-
readonly synced: {
|
|
5746
|
-
readonly tags: "ready";
|
|
5747
|
-
readonly on: {
|
|
5748
|
-
readonly sync: {
|
|
5749
|
-
readonly target: "pending";
|
|
5750
|
-
};
|
|
5751
|
-
};
|
|
5752
|
-
};
|
|
5753
|
-
readonly stopped: {
|
|
5754
|
-
readonly entry: ActionFunction<Readonly< Input>, SyncLayoutEvents, SyncLayoutEvents, undefined, never, never, never, never, never>;
|
|
5755
|
-
readonly type: "final";
|
|
5756
|
-
};
|
|
5757
|
-
};
|
|
5758
|
-
readonly on: {
|
|
5759
|
-
readonly synced: {
|
|
5760
|
-
readonly target: ".synced";
|
|
5761
|
-
};
|
|
5762
|
-
readonly stop: {
|
|
5763
|
-
readonly target: ".stopped";
|
|
5764
|
-
};
|
|
5765
|
-
};
|
|
5766
|
-
}>;
|
|
5767
|
-
id: "syncLayout";
|
|
5768
|
-
};
|
|
5769
|
-
hotkeyActorLogic: {
|
|
5770
|
-
src: "hotkeyActorLogic";
|
|
5771
|
-
logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
|
|
5772
|
-
id: "hotkey";
|
|
5773
|
-
};
|
|
5774
|
-
overlaysActorLogic: {
|
|
5775
|
-
src: "overlaysActorLogic";
|
|
5776
|
-
logic: StateMachine<OverlaysContext, OverlayActorEvent, {
|
|
5777
|
-
[x: `elementDetails-${number}`]: ActorRefFromLogic<ElementDetailsLogic> | undefined;
|
|
5778
|
-
[x: `relationshipDetails-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipDetails.Logic> | undefined;
|
|
5779
|
-
[x: `relationshipsBrowser-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipsBrowser.Logic> | undefined;
|
|
5780
|
-
hotkey?: ActorRefFromLogic<CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>>;
|
|
5781
|
-
}, Values<{
|
|
5782
|
-
elementDetails: {
|
|
5783
|
-
src: "elementDetails";
|
|
5784
|
-
logic: ElementDetailsLogic;
|
|
5785
|
-
id: `elementDetails-${number}`;
|
|
5786
|
-
};
|
|
5787
|
-
relationshipDetails: {
|
|
5788
|
-
src: "relationshipDetails";
|
|
5789
|
-
logic: import("../overlays/types").Overlays.RelationshipDetails.Logic;
|
|
5790
|
-
id: `relationshipDetails-${number}`;
|
|
5791
|
-
};
|
|
5792
|
-
relationshipsBrowser: {
|
|
5793
|
-
src: "relationshipsBrowser";
|
|
5794
|
-
logic: import("../overlays/types").Overlays.RelationshipsBrowser.Logic;
|
|
5795
|
-
id: `relationshipsBrowser-${number}`;
|
|
5796
|
-
};
|
|
5797
|
-
hotkey: {
|
|
5798
|
-
src: "hotkey";
|
|
5799
|
-
logic: CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>;
|
|
5800
|
-
id: "hotkey";
|
|
5801
|
-
};
|
|
5802
|
-
}>, Values<{
|
|
5803
|
-
closeLastOverlay: {
|
|
5804
|
-
type: "closeLastOverlay";
|
|
5805
|
-
params: NonReducibleUnknown;
|
|
5806
|
-
};
|
|
5807
|
-
closeSpecificOverlay: {
|
|
5808
|
-
type: "closeSpecificOverlay";
|
|
5809
|
-
params: {
|
|
5810
|
-
actorId: string;
|
|
5811
|
-
};
|
|
5812
|
-
};
|
|
5813
|
-
closeAllOverlays: {
|
|
5814
|
-
type: "closeAllOverlays";
|
|
5815
|
-
params: NonReducibleUnknown;
|
|
5816
|
-
};
|
|
5817
|
-
openElementDetails: {
|
|
5818
|
-
type: "openElementDetails";
|
|
5819
|
-
params: NonReducibleUnknown;
|
|
5820
|
-
};
|
|
5821
|
-
openRelationshipDetails: {
|
|
5822
|
-
type: "openRelationshipDetails";
|
|
5823
|
-
params: NonReducibleUnknown;
|
|
5824
|
-
};
|
|
5825
|
-
openRelationshipsBrowser: {
|
|
5826
|
-
type: "openRelationshipsBrowser";
|
|
5827
|
-
params: NonReducibleUnknown;
|
|
5828
|
-
};
|
|
5829
|
-
listenToEsc: {
|
|
5830
|
-
type: "listenToEsc";
|
|
5831
|
-
params: NonReducibleUnknown;
|
|
5832
|
-
};
|
|
5833
|
-
stopListeningToEsc: {
|
|
5834
|
-
type: "stopListeningToEsc";
|
|
5835
|
-
params: NonReducibleUnknown;
|
|
5836
|
-
};
|
|
5837
|
-
}>, Values<{
|
|
5838
|
-
"has overlays?": {
|
|
5839
|
-
type: "has overlays?";
|
|
5840
|
-
params: unknown;
|
|
5841
|
-
};
|
|
5842
|
-
"close specific overlay?": {
|
|
5843
|
-
type: "close specific overlay?";
|
|
5844
|
-
params: unknown;
|
|
5845
|
-
};
|
|
5846
|
-
"last: is relationshipDetails?": {
|
|
5847
|
-
type: "last: is relationshipDetails?";
|
|
5848
|
-
params: unknown;
|
|
5849
|
-
};
|
|
5850
|
-
"last: is relationshipsBrowser?": {
|
|
5851
|
-
type: "last: is relationshipsBrowser?";
|
|
5852
|
-
params: unknown;
|
|
5853
|
-
};
|
|
5854
|
-
}>, never, "active" | "idle" | "closing", string, NonReducibleUnknown, NonReducibleUnknown, OverlayActorEmitedEvent, MetaObject, {
|
|
5855
|
-
readonly id: "overlays";
|
|
5856
|
-
readonly context: () => {
|
|
5857
|
-
seq: number;
|
|
5858
|
-
overlays: never[];
|
|
5859
|
-
};
|
|
5860
|
-
readonly initial: "idle";
|
|
5861
|
-
readonly on: {
|
|
5862
|
-
readonly 'open.elementDetails': {
|
|
5863
|
-
readonly actions: "openElementDetails";
|
|
5864
|
-
readonly target: ".active";
|
|
5865
|
-
readonly reenter: false;
|
|
5866
|
-
};
|
|
5867
|
-
readonly 'open.relationshipDetails': {
|
|
5868
|
-
readonly actions: "openRelationshipDetails";
|
|
5869
|
-
readonly target: ".active";
|
|
5870
|
-
readonly reenter: false;
|
|
5871
|
-
};
|
|
5872
|
-
readonly 'open.relationshipsBrowser': {
|
|
5873
|
-
readonly actions: "openRelationshipsBrowser";
|
|
5874
|
-
readonly target: ".active";
|
|
5875
|
-
readonly reenter: false;
|
|
5876
|
-
};
|
|
5877
|
-
};
|
|
5878
|
-
readonly states: {
|
|
5879
|
-
readonly idle: {};
|
|
5880
|
-
readonly active: {
|
|
5881
|
-
readonly entry: "listenToEsc";
|
|
5882
|
-
readonly exit: "stopListeningToEsc";
|
|
5883
|
-
readonly on: {
|
|
5884
|
-
readonly close: readonly [{
|
|
5885
|
-
readonly guard: "close specific overlay?";
|
|
5886
|
-
readonly actions: {
|
|
5887
|
-
readonly type: "closeSpecificOverlay";
|
|
5888
|
-
readonly params: ({ event }: {
|
|
5889
|
-
context: OverlaysContext;
|
|
5890
|
-
event: {
|
|
5891
|
-
type: "close";
|
|
5892
|
-
actorId?: string | undefined;
|
|
5893
|
-
};
|
|
5894
|
-
}) => {
|
|
5895
|
-
actorId: string;
|
|
5896
|
-
};
|
|
5897
|
-
};
|
|
5898
|
-
readonly target: "closing";
|
|
5899
|
-
}, {
|
|
5900
|
-
readonly actions: "closeLastOverlay";
|
|
5901
|
-
readonly target: "closing";
|
|
5902
|
-
}];
|
|
5903
|
-
readonly 'close.all': {
|
|
5904
|
-
readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
|
|
5905
|
-
readonly target: "idle";
|
|
5906
|
-
};
|
|
5907
|
-
};
|
|
5908
|
-
};
|
|
5909
|
-
readonly closing: {
|
|
5910
|
-
readonly always: readonly [{
|
|
5911
|
-
readonly guard: "has overlays?";
|
|
5912
|
-
readonly target: "active";
|
|
5913
|
-
}, {
|
|
5914
|
-
readonly actions: "stopListeningToEsc";
|
|
5915
|
-
readonly target: "idle";
|
|
5916
|
-
}];
|
|
5917
|
-
};
|
|
5918
|
-
};
|
|
5919
|
-
readonly exit: readonly ["stopListeningToEsc", "closeAllOverlays"];
|
|
5920
|
-
}>;
|
|
5921
|
-
id: "overlays";
|
|
5922
|
-
};
|
|
5923
|
-
}>, Values<{
|
|
5924
|
-
"xyflow:fitDiagram": {
|
|
5925
|
-
type: "xyflow:fitDiagram";
|
|
5926
|
-
params: {
|
|
5927
|
-
duration?: number;
|
|
5928
|
-
bounds?: BBox;
|
|
5929
|
-
} | undefined;
|
|
5930
|
-
};
|
|
5931
|
-
closeAllOverlays: {
|
|
5932
|
-
type: "closeAllOverlays";
|
|
5933
|
-
params: NonReducibleUnknown;
|
|
5934
|
-
};
|
|
5935
|
-
"layout.align": {
|
|
5936
|
-
type: "layout.align";
|
|
5937
|
-
params: {
|
|
5938
|
-
mode: AlignmentMode;
|
|
5939
|
-
};
|
|
5940
|
-
};
|
|
5941
|
-
"trigger:OnChange": {
|
|
5942
|
-
type: "trigger:OnChange";
|
|
5943
|
-
params: {
|
|
5944
|
-
change: ViewChange;
|
|
5945
|
-
};
|
|
5946
|
-
};
|
|
5947
|
-
"trigger:NavigateTo": {
|
|
5948
|
-
type: "trigger:NavigateTo";
|
|
5949
|
-
params: {
|
|
5950
|
-
viewId: ViewId;
|
|
5951
|
-
};
|
|
5952
|
-
};
|
|
5953
|
-
"trigger:OpenSource": {
|
|
5954
|
-
type: "trigger:OpenSource";
|
|
5955
|
-
params: OpenSourceParams;
|
|
5956
|
-
};
|
|
5957
|
-
"open source of focused node": {
|
|
5958
|
-
type: "open source of focused node";
|
|
5959
|
-
params: NonReducibleUnknown;
|
|
5960
|
-
};
|
|
5961
|
-
"xyflow:setViewportCenter": {
|
|
5962
|
-
type: "xyflow:setViewportCenter";
|
|
5963
|
-
params: {
|
|
5964
|
-
x: number;
|
|
5965
|
-
y: number;
|
|
5966
|
-
};
|
|
5967
|
-
};
|
|
5968
|
-
"xyflow:setViewport": {
|
|
5969
|
-
type: "xyflow:setViewport";
|
|
5970
|
-
params: {
|
|
5971
|
-
viewport: Viewport;
|
|
5972
|
-
duration?: number;
|
|
5973
|
-
};
|
|
5974
|
-
};
|
|
5975
|
-
"xyflow:alignNodeFromToAfterNavigate": {
|
|
5976
|
-
type: "xyflow:alignNodeFromToAfterNavigate";
|
|
5977
|
-
params: {
|
|
5978
|
-
fromNode: NodeId;
|
|
5979
|
-
toPosition: XYPoint;
|
|
5980
|
-
};
|
|
5981
|
-
};
|
|
5982
|
-
updateFeatures: {
|
|
5983
|
-
type: "updateFeatures";
|
|
5984
|
-
params: NonReducibleUnknown;
|
|
5985
|
-
};
|
|
5986
|
-
stopSyncLayout: {
|
|
5987
|
-
type: "stopSyncLayout";
|
|
5988
|
-
params: NonReducibleUnknown;
|
|
5989
|
-
};
|
|
5990
|
-
}>, Values<{
|
|
5991
|
-
"enabled: FitView": {
|
|
5992
|
-
type: "enabled: FitView";
|
|
5993
|
-
params: unknown;
|
|
5994
|
-
};
|
|
5995
|
-
"enabled: FocusMode": {
|
|
5996
|
-
type: "enabled: FocusMode";
|
|
5997
|
-
params: unknown;
|
|
5998
|
-
};
|
|
5999
|
-
"enabled: Readonly": {
|
|
6000
|
-
type: "enabled: Readonly";
|
|
6001
|
-
params: unknown;
|
|
6002
|
-
};
|
|
6003
|
-
"not readonly": {
|
|
6004
|
-
type: "not readonly";
|
|
6005
|
-
params: unknown;
|
|
6006
|
-
};
|
|
6007
|
-
"is dynamic view": {
|
|
6008
|
-
type: "is dynamic view";
|
|
6009
|
-
params: unknown;
|
|
6010
|
-
};
|
|
6011
|
-
"is another view": {
|
|
6012
|
-
type: "is another view";
|
|
6013
|
-
params: unknown;
|
|
6014
|
-
};
|
|
6015
|
-
"click: selected node ": {
|
|
6016
|
-
type: "click: selected node ";
|
|
6017
|
-
params: unknown;
|
|
6018
|
-
};
|
|
6019
|
-
"click: same node": {
|
|
6020
|
-
type: "click: same node";
|
|
6021
|
-
params: unknown;
|
|
6022
|
-
};
|
|
6023
|
-
"click: focused node": {
|
|
6024
|
-
type: "click: focused node";
|
|
6025
|
-
params: unknown;
|
|
6026
|
-
};
|
|
6027
|
-
}>, never, EventObject>;
|
|
6028
|
-
readonly target: "done";
|
|
5696
|
+
"click: node has connections": {
|
|
5697
|
+
type: "click: node has connections";
|
|
5698
|
+
params: unknown;
|
|
6029
5699
|
};
|
|
6030
|
-
}
|
|
6031
|
-
|
|
6032
|
-
readonly done: {
|
|
6033
|
-
readonly type: "final";
|
|
5700
|
+
}>, never, EventObject>;
|
|
5701
|
+
readonly target: "#idle";
|
|
6034
5702
|
};
|
|
6035
5703
|
};
|
|
6036
|
-
|
|
6037
|
-
|
|
6038
|
-
|
|
6039
|
-
readonly exit: ActionFunction<Context, Events, Events, undefined, Values<{
|
|
5704
|
+
};
|
|
5705
|
+
readonly walkthrough: {
|
|
5706
|
+
readonly entry: readonly [ ActionFunction<Context, Events, Events, undefined, Values<{
|
|
6040
5707
|
syncManualLayoutActorLogic: {
|
|
6041
5708
|
src: "syncManualLayoutActorLogic";
|
|
6042
5709
|
logic: StateMachine<Readonly< Input>, SyncLayoutEvents, {}, never, {
|
|
@@ -6289,10 +5956,7 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
6289
5956
|
}>;
|
|
6290
5957
|
id: "overlays";
|
|
6291
5958
|
};
|
|
6292
|
-
}>, never, never, never, never
|
|
6293
|
-
};
|
|
6294
|
-
readonly walkthrough: {
|
|
6295
|
-
readonly entry: readonly [ ActionFunction<Context, Events, Events, undefined, Values<{
|
|
5959
|
+
}>, never, never, never, never>, ActionFunction<Context, Events, Events, undefined, Values<{
|
|
6296
5960
|
syncManualLayoutActorLogic: {
|
|
6297
5961
|
src: "syncManualLayoutActorLogic";
|
|
6298
5962
|
logic: StateMachine<Readonly< Input>, SyncLayoutEvents, {}, never, {
|
|
@@ -7103,8 +6767,12 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
7103
6767
|
type: "trigger:OpenSource";
|
|
7104
6768
|
params: OpenSourceParams;
|
|
7105
6769
|
};
|
|
7106
|
-
"
|
|
7107
|
-
type: "
|
|
6770
|
+
"assign lastClickedNode": {
|
|
6771
|
+
type: "assign lastClickedNode";
|
|
6772
|
+
params: NonReducibleUnknown;
|
|
6773
|
+
};
|
|
6774
|
+
"open source of focused or last clicked node": {
|
|
6775
|
+
type: "open source of focused or last clicked node";
|
|
7108
6776
|
params: NonReducibleUnknown;
|
|
7109
6777
|
};
|
|
7110
6778
|
"xyflow:setViewportCenter": {
|
|
@@ -7161,8 +6829,8 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
7161
6829
|
type: "is another view";
|
|
7162
6830
|
params: unknown;
|
|
7163
6831
|
};
|
|
7164
|
-
"click: selected node
|
|
7165
|
-
type: "click: selected node
|
|
6832
|
+
"click: selected node": {
|
|
6833
|
+
type: "click: selected node";
|
|
7166
6834
|
params: unknown;
|
|
7167
6835
|
};
|
|
7168
6836
|
"click: same node": {
|
|
@@ -7173,6 +6841,10 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
7173
6841
|
type: "click: focused node";
|
|
7174
6842
|
params: unknown;
|
|
7175
6843
|
};
|
|
6844
|
+
"click: node has connections": {
|
|
6845
|
+
type: "click: node has connections";
|
|
6846
|
+
params: unknown;
|
|
6847
|
+
};
|
|
7176
6848
|
}>, never, EventObject>;
|
|
7177
6849
|
};
|
|
7178
6850
|
readonly 'walkthrough.end': {
|
|
@@ -7476,8 +7148,12 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
7476
7148
|
type: "trigger:OpenSource";
|
|
7477
7149
|
params: OpenSourceParams;
|
|
7478
7150
|
};
|
|
7479
|
-
"
|
|
7480
|
-
type: "
|
|
7151
|
+
"assign lastClickedNode": {
|
|
7152
|
+
type: "assign lastClickedNode";
|
|
7153
|
+
params: NonReducibleUnknown;
|
|
7154
|
+
};
|
|
7155
|
+
"open source of focused or last clicked node": {
|
|
7156
|
+
type: "open source of focused or last clicked node";
|
|
7481
7157
|
params: NonReducibleUnknown;
|
|
7482
7158
|
};
|
|
7483
7159
|
"xyflow:setViewportCenter": {
|
|
@@ -7534,8 +7210,8 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
7534
7210
|
type: "is another view";
|
|
7535
7211
|
params: unknown;
|
|
7536
7212
|
};
|
|
7537
|
-
"click: selected node
|
|
7538
|
-
type: "click: selected node
|
|
7213
|
+
"click: selected node": {
|
|
7214
|
+
type: "click: selected node";
|
|
7539
7215
|
params: unknown;
|
|
7540
7216
|
};
|
|
7541
7217
|
"click: same node": {
|
|
@@ -7546,6 +7222,10 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
7546
7222
|
type: "click: focused node";
|
|
7547
7223
|
params: unknown;
|
|
7548
7224
|
};
|
|
7225
|
+
"click: node has connections": {
|
|
7226
|
+
type: "click: node has connections";
|
|
7227
|
+
params: unknown;
|
|
7228
|
+
};
|
|
7549
7229
|
}>, never, EventObject>;
|
|
7550
7230
|
};
|
|
7551
7231
|
};
|
|
@@ -9670,8 +9350,12 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
9670
9350
|
type: "trigger:OpenSource";
|
|
9671
9351
|
params: OpenSourceParams;
|
|
9672
9352
|
};
|
|
9673
|
-
"
|
|
9674
|
-
type: "
|
|
9353
|
+
"assign lastClickedNode": {
|
|
9354
|
+
type: "assign lastClickedNode";
|
|
9355
|
+
params: NonReducibleUnknown;
|
|
9356
|
+
};
|
|
9357
|
+
"open source of focused or last clicked node": {
|
|
9358
|
+
type: "open source of focused or last clicked node";
|
|
9675
9359
|
params: NonReducibleUnknown;
|
|
9676
9360
|
};
|
|
9677
9361
|
"xyflow:setViewportCenter": {
|
|
@@ -9728,8 +9412,8 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
9728
9412
|
type: "is another view";
|
|
9729
9413
|
params: unknown;
|
|
9730
9414
|
};
|
|
9731
|
-
"click: selected node
|
|
9732
|
-
type: "click: selected node
|
|
9415
|
+
"click: selected node": {
|
|
9416
|
+
type: "click: selected node";
|
|
9733
9417
|
params: unknown;
|
|
9734
9418
|
};
|
|
9735
9419
|
"click: same node": {
|
|
@@ -9740,6 +9424,10 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
9740
9424
|
type: "click: focused node";
|
|
9741
9425
|
params: unknown;
|
|
9742
9426
|
};
|
|
9427
|
+
"click: node has connections": {
|
|
9428
|
+
type: "click: node has connections";
|
|
9429
|
+
params: unknown;
|
|
9430
|
+
};
|
|
9743
9431
|
}>, never, EventObject>];
|
|
9744
9432
|
};
|
|
9745
9433
|
readonly 'update.inputs': {
|
|
@@ -11095,8 +10783,12 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
11095
10783
|
type: "trigger:OpenSource";
|
|
11096
10784
|
params: OpenSourceParams;
|
|
11097
10785
|
};
|
|
11098
|
-
"
|
|
11099
|
-
type: "
|
|
10786
|
+
"assign lastClickedNode": {
|
|
10787
|
+
type: "assign lastClickedNode";
|
|
10788
|
+
params: NonReducibleUnknown;
|
|
10789
|
+
};
|
|
10790
|
+
"open source of focused or last clicked node": {
|
|
10791
|
+
type: "open source of focused or last clicked node";
|
|
11100
10792
|
params: NonReducibleUnknown;
|
|
11101
10793
|
};
|
|
11102
10794
|
"xyflow:setViewportCenter": {
|
|
@@ -11153,8 +10845,8 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
11153
10845
|
type: "is another view";
|
|
11154
10846
|
params: unknown;
|
|
11155
10847
|
};
|
|
11156
|
-
"click: selected node
|
|
11157
|
-
type: "click: selected node
|
|
10848
|
+
"click: selected node": {
|
|
10849
|
+
type: "click: selected node";
|
|
11158
10850
|
params: unknown;
|
|
11159
10851
|
};
|
|
11160
10852
|
"click: same node": {
|
|
@@ -11165,6 +10857,10 @@ export declare const diagramMachine: StateMachine<Context, Events, {
|
|
|
11165
10857
|
type: "click: focused node";
|
|
11166
10858
|
params: unknown;
|
|
11167
10859
|
};
|
|
10860
|
+
"click: node has connections": {
|
|
10861
|
+
type: "click: node has connections";
|
|
10862
|
+
params: unknown;
|
|
10863
|
+
};
|
|
11168
10864
|
}>, never, EventObject>;
|
|
11169
10865
|
};
|
|
11170
10866
|
readonly 'open.relationshipsBrowser': {
|