@likec4/diagram 1.28.1 → 1.29.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.
@@ -4989,6 +4989,19 @@ export declare function useDiagram(): {
4989
4989
  }>, never, never, never, never>;
4990
4990
  readonly target: "focused";
4991
4991
  };
4992
+ readonly 'xyflow.edgeClick': readonly [{
4993
+ readonly guard: any;
4994
+ readonly actions: ActionFunction<DiagramContext, {
4995
+ type: "xyflow.edgeClick";
4996
+ edge: Types.Edge;
4997
+ }, Events, undefined, never, never, never, never, never>;
4998
+ }, {
4999
+ readonly guard: any;
5000
+ readonly actions: ActionFunction<DiagramContext, {
5001
+ type: "xyflow.edgeClick";
5002
+ edge: Types.Edge;
5003
+ }, Events, undefined, never, never, never, never, never>;
5004
+ }];
4992
5005
  };
4993
5006
  };
4994
5007
  readonly focused: {
@@ -5879,6 +5892,10 @@ export declare function useDiagram(): {
5879
5892
  type: "enabled: Readonly";
5880
5893
  params: unknown;
5881
5894
  };
5895
+ "enabled: RelationshipDetails": {
5896
+ type: "enabled: RelationshipDetails";
5897
+ params: unknown;
5898
+ };
5882
5899
  "not readonly": {
5883
5900
  type: "not readonly";
5884
5901
  params: unknown;
@@ -5907,6 +5924,10 @@ export declare function useDiagram(): {
5907
5924
  type: "click: node has connections";
5908
5925
  params: unknown;
5909
5926
  };
5927
+ "click: selected edge": {
5928
+ type: "click: selected edge";
5929
+ params: unknown;
5930
+ };
5910
5931
  }>, never, EventObject>;
5911
5932
  readonly on: {
5912
5933
  readonly 'xyflow.nodeClick': readonly [{
@@ -8363,6 +8384,10 @@ export declare function useDiagram(): {
8363
8384
  type: "enabled: Readonly";
8364
8385
  params: unknown;
8365
8386
  };
8387
+ "enabled: RelationshipDetails": {
8388
+ type: "enabled: RelationshipDetails";
8389
+ params: unknown;
8390
+ };
8366
8391
  "not readonly": {
8367
8392
  type: "not readonly";
8368
8393
  params: unknown;
@@ -8391,11 +8416,16 @@ export declare function useDiagram(): {
8391
8416
  type: "click: node has connections";
8392
8417
  params: unknown;
8393
8418
  };
8419
+ "click: selected edge": {
8420
+ type: "click: selected edge";
8421
+ params: unknown;
8422
+ };
8394
8423
  }>, never, EventObject>;
8395
8424
  };
8396
- readonly 'notations.unhighlight': {
8397
- readonly actions: ActionFunction<DiagramContext, {
8398
- type: "notations.unhighlight";
8425
+ readonly 'xyflow.edgeClick': {
8426
+ readonly actions: readonly [ ActionFunction<DiagramContext, {
8427
+ type: "xyflow.edgeClick";
8428
+ edge: Types.Edge;
8399
8429
  }, Events, undefined, Values<{
8400
8430
  syncManualLayoutActorLogic: {
8401
8431
  src: "syncManualLayoutActorLogic";
@@ -8649,163 +8679,674 @@ export declare function useDiagram(): {
8649
8679
  }>;
8650
8680
  id: "overlays";
8651
8681
  };
8652
- }>, never, never, never, never>;
8653
- };
8654
- readonly 'walkthrough.end': {
8655
- readonly target: "idle";
8656
- };
8657
- readonly 'xyflow.paneDblClick': {
8658
- readonly target: "idle";
8659
- };
8660
- readonly 'update.view': {
8661
- readonly guard: "is another view";
8662
- readonly actions: ActionFunction<DiagramContext, {
8663
- type: "update.view";
8664
- view: DiagramView;
8665
- xynodes: Types.Node[];
8666
- xyedges: Types.Edge[];
8667
- }, Events, undefined, never, never, never, never, never>;
8668
- readonly target: "idle";
8669
- };
8670
- };
8671
- readonly exit: ActionFunction<DiagramContext, Events, Events, undefined, Values<{
8672
- syncManualLayoutActorLogic: {
8673
- src: "syncManualLayoutActorLogic";
8674
- logic: StateMachine<Readonly< Input>, Events, {}, never, {
8675
- type: "trigger:OnChange";
8676
- params: {
8677
- change: ViewChange;
8678
- };
8679
- }, {
8680
- type: "same view";
8681
- params: unknown;
8682
- }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
8683
- readonly initial: "idle";
8684
- readonly context: ({ input }: {
8685
- spawn: {
8686
- <TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
8687
- <TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
8688
- id?: never;
8689
- systemId?: string;
8690
- input?: InputFrom<TLogic>;
8691
- syncSnapshot?: boolean;
8692
- } & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
8693
- };
8694
- input: Input;
8695
- self: ActorRef<MachineSnapshot<Readonly< Input>, Events, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, Events, AnyEventObject>;
8696
- }) => {
8697
- parent: ActorRef<MachineSnapshot<DiagramContext, Events, any, any, any, any, any, any>, Events, any>;
8698
- viewId: ViewId;
8699
- };
8700
- readonly states: {
8701
- readonly idle: {
8702
- readonly tags: "ready";
8703
- readonly on: {
8704
- readonly sync: {
8705
- readonly target: "pending";
8706
- };
8682
+ }>, never, never, never, never>, ActionFunction<DiagramContext, Events, Events, undefined, Values<{
8683
+ syncManualLayoutActorLogic: {
8684
+ src: "syncManualLayoutActorLogic";
8685
+ logic: StateMachine<Readonly< Input>, Events, {}, never, {
8686
+ type: "trigger:OnChange";
8687
+ params: {
8688
+ change: ViewChange;
8707
8689
  };
8708
- };
8709
- readonly paused: {
8710
- readonly tags: "pending";
8711
- readonly on: {
8712
- readonly sync: {
8713
- readonly target: "pending";
8690
+ }, {
8691
+ type: "same view";
8692
+ params: unknown;
8693
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
8694
+ readonly initial: "idle";
8695
+ readonly context: ({ input }: {
8696
+ spawn: {
8697
+ <TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
8698
+ <TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
8699
+ id?: never;
8700
+ systemId?: string;
8701
+ input?: InputFrom<TLogic>;
8702
+ syncSnapshot?: boolean;
8703
+ } & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
8714
8704
  };
8705
+ input: Input;
8706
+ self: ActorRef<MachineSnapshot<Readonly< Input>, Events, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, Events, AnyEventObject>;
8707
+ }) => {
8708
+ parent: ActorRef<MachineSnapshot<DiagramContext, Events, any, any, any, any, any, any>, Events, any>;
8709
+ viewId: ViewId;
8715
8710
  };
8716
- };
8717
- readonly pending: {
8718
- readonly tags: "pending";
8719
- readonly on: {
8720
- readonly sync: {
8721
- readonly target: "pending";
8722
- readonly reenter: true;
8711
+ readonly states: {
8712
+ readonly idle: {
8713
+ readonly tags: "ready";
8714
+ readonly on: {
8715
+ readonly sync: {
8716
+ readonly target: "pending";
8717
+ };
8718
+ };
8723
8719
  };
8724
- readonly cancel: {
8725
- readonly target: "paused";
8720
+ readonly paused: {
8721
+ readonly tags: "pending";
8722
+ readonly on: {
8723
+ readonly sync: {
8724
+ readonly target: "pending";
8725
+ };
8726
+ };
8726
8727
  };
8727
- };
8728
- readonly after: {
8729
- readonly timeout: readonly [{
8730
- readonly guard: "same view";
8731
- readonly actions: {
8732
- readonly type: "trigger:OnChange";
8733
- readonly params: ({ context }: {
8734
- context: Readonly< Input>;
8735
- event: Events;
8736
- }) => {
8737
- change: import("@likec4/core").ViewChange.SaveManualLayout;
8728
+ readonly pending: {
8729
+ readonly tags: "pending";
8730
+ readonly on: {
8731
+ readonly sync: {
8732
+ readonly target: "pending";
8733
+ readonly reenter: true;
8734
+ };
8735
+ readonly cancel: {
8736
+ readonly target: "paused";
8738
8737
  };
8739
8738
  };
8740
- readonly target: "synced";
8741
- }, {
8742
- readonly target: "stopped";
8743
- }];
8739
+ readonly after: {
8740
+ readonly timeout: readonly [{
8741
+ readonly guard: "same view";
8742
+ readonly actions: {
8743
+ readonly type: "trigger:OnChange";
8744
+ readonly params: ({ context }: {
8745
+ context: Readonly< Input>;
8746
+ event: Events;
8747
+ }) => {
8748
+ change: import("@likec4/core").ViewChange.SaveManualLayout;
8749
+ };
8750
+ };
8751
+ readonly target: "synced";
8752
+ }, {
8753
+ readonly target: "stopped";
8754
+ }];
8755
+ };
8756
+ };
8757
+ readonly synced: {
8758
+ readonly tags: "ready";
8759
+ readonly on: {
8760
+ readonly sync: {
8761
+ readonly target: "pending";
8762
+ };
8763
+ };
8764
+ };
8765
+ readonly stopped: {
8766
+ readonly entry: ActionFunction<Readonly< Input>, Events, Events, undefined, never, never, never, never, never>;
8767
+ readonly type: "final";
8768
+ };
8744
8769
  };
8745
- };
8746
- readonly synced: {
8747
- readonly tags: "ready";
8748
8770
  readonly on: {
8749
- readonly sync: {
8750
- readonly target: "pending";
8771
+ readonly synced: {
8772
+ readonly target: ".synced";
8773
+ };
8774
+ readonly stop: {
8775
+ readonly target: ".stopped";
8751
8776
  };
8752
8777
  };
8753
- };
8754
- readonly stopped: {
8755
- readonly entry: ActionFunction<Readonly< Input>, Events, Events, undefined, never, never, never, never, never>;
8756
- readonly type: "final";
8757
- };
8758
- };
8759
- readonly on: {
8760
- readonly synced: {
8761
- readonly target: ".synced";
8762
- };
8763
- readonly stop: {
8764
- readonly target: ".stopped";
8765
- };
8766
- };
8767
- }>;
8768
- id: "syncLayout";
8769
- };
8770
- hotkeyActorLogic: {
8771
- src: "hotkeyActorLogic";
8772
- logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
8773
- id: "hotkey";
8774
- };
8775
- overlaysActorLogic: {
8776
- src: "overlaysActorLogic";
8777
- logic: StateMachine<OverlaysContext, OverlayActorEvent, {
8778
- [x: `elementDetails-${number}`]: ActorRefFromLogic<ElementDetailsLogic> | undefined;
8779
- [x: `relationshipsBrowser-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipsBrowser.Logic> | undefined;
8780
- [x: `relationshipDetails-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipDetails.Logic> | undefined;
8781
- hotkey?: ActorRefFromLogic<CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>>;
8782
- }, Values<{
8783
- elementDetails: {
8784
- src: "elementDetails";
8785
- logic: ElementDetailsLogic;
8786
- id: `elementDetails-${number}`;
8787
- };
8788
- relationshipsBrowser: {
8789
- src: "relationshipsBrowser";
8790
- logic: import("../overlays/types").Overlays.RelationshipsBrowser.Logic;
8791
- id: `relationshipsBrowser-${number}`;
8792
- };
8793
- relationshipDetails: {
8794
- src: "relationshipDetails";
8795
- logic: import("../overlays/types").Overlays.RelationshipDetails.Logic;
8796
- id: `relationshipDetails-${number}`;
8778
+ }>;
8779
+ id: "syncLayout";
8797
8780
  };
8798
- hotkey: {
8799
- src: "hotkey";
8800
- logic: CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>;
8781
+ hotkeyActorLogic: {
8782
+ src: "hotkeyActorLogic";
8783
+ logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
8801
8784
  id: "hotkey";
8802
8785
  };
8803
- }>, Values<{
8804
- closeLastOverlay: {
8805
- type: "closeLastOverlay";
8806
- params: NonReducibleUnknown;
8807
- };
8808
- closeSpecificOverlay: {
8786
+ overlaysActorLogic: {
8787
+ src: "overlaysActorLogic";
8788
+ logic: StateMachine<OverlaysContext, OverlayActorEvent, {
8789
+ [x: `elementDetails-${number}`]: ActorRefFromLogic<ElementDetailsLogic> | undefined;
8790
+ [x: `relationshipsBrowser-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipsBrowser.Logic> | undefined;
8791
+ [x: `relationshipDetails-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipDetails.Logic> | undefined;
8792
+ hotkey?: ActorRefFromLogic<CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>>;
8793
+ }, Values<{
8794
+ elementDetails: {
8795
+ src: "elementDetails";
8796
+ logic: ElementDetailsLogic;
8797
+ id: `elementDetails-${number}`;
8798
+ };
8799
+ relationshipsBrowser: {
8800
+ src: "relationshipsBrowser";
8801
+ logic: import("../overlays/types").Overlays.RelationshipsBrowser.Logic;
8802
+ id: `relationshipsBrowser-${number}`;
8803
+ };
8804
+ relationshipDetails: {
8805
+ src: "relationshipDetails";
8806
+ logic: import("../overlays/types").Overlays.RelationshipDetails.Logic;
8807
+ id: `relationshipDetails-${number}`;
8808
+ };
8809
+ hotkey: {
8810
+ src: "hotkey";
8811
+ logic: CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>;
8812
+ id: "hotkey";
8813
+ };
8814
+ }>, Values<{
8815
+ closeLastOverlay: {
8816
+ type: "closeLastOverlay";
8817
+ params: NonReducibleUnknown;
8818
+ };
8819
+ closeSpecificOverlay: {
8820
+ type: "closeSpecificOverlay";
8821
+ params: {
8822
+ actorId: string;
8823
+ };
8824
+ };
8825
+ closeAllOverlays: {
8826
+ type: "closeAllOverlays";
8827
+ params: NonReducibleUnknown;
8828
+ };
8829
+ openElementDetails: {
8830
+ type: "openElementDetails";
8831
+ params: NonReducibleUnknown;
8832
+ };
8833
+ openRelationshipDetails: {
8834
+ type: "openRelationshipDetails";
8835
+ params: NonReducibleUnknown;
8836
+ };
8837
+ openRelationshipsBrowser: {
8838
+ type: "openRelationshipsBrowser";
8839
+ params: NonReducibleUnknown;
8840
+ };
8841
+ listenToEsc: {
8842
+ type: "listenToEsc";
8843
+ params: NonReducibleUnknown;
8844
+ };
8845
+ stopListeningToEsc: {
8846
+ type: "stopListeningToEsc";
8847
+ params: NonReducibleUnknown;
8848
+ };
8849
+ }>, Values<{
8850
+ "has overlays?": {
8851
+ type: "has overlays?";
8852
+ params: unknown;
8853
+ };
8854
+ "close specific overlay?": {
8855
+ type: "close specific overlay?";
8856
+ params: unknown;
8857
+ };
8858
+ "last: is relationshipDetails?": {
8859
+ type: "last: is relationshipDetails?";
8860
+ params: unknown;
8861
+ };
8862
+ "last: is relationshipsBrowser?": {
8863
+ type: "last: is relationshipsBrowser?";
8864
+ params: unknown;
8865
+ };
8866
+ }>, never, "active" | "idle" | "closing", string, NonReducibleUnknown, NonReducibleUnknown, OverlayActorEmitedEvent, MetaObject, {
8867
+ readonly id: "overlays";
8868
+ readonly context: () => {
8869
+ seq: number;
8870
+ overlays: never[];
8871
+ };
8872
+ readonly initial: "idle";
8873
+ readonly on: {
8874
+ readonly 'open.elementDetails': {
8875
+ readonly actions: "openElementDetails";
8876
+ readonly target: ".active";
8877
+ readonly reenter: false;
8878
+ };
8879
+ readonly 'open.relationshipDetails': {
8880
+ readonly actions: "openRelationshipDetails";
8881
+ readonly target: ".active";
8882
+ readonly reenter: false;
8883
+ };
8884
+ readonly 'open.relationshipsBrowser': {
8885
+ readonly actions: "openRelationshipsBrowser";
8886
+ readonly target: ".active";
8887
+ readonly reenter: false;
8888
+ };
8889
+ };
8890
+ readonly states: {
8891
+ readonly idle: {};
8892
+ readonly active: {
8893
+ readonly entry: "listenToEsc";
8894
+ readonly exit: "stopListeningToEsc";
8895
+ readonly on: {
8896
+ readonly close: readonly [{
8897
+ readonly guard: "close specific overlay?";
8898
+ readonly actions: {
8899
+ readonly type: "closeSpecificOverlay";
8900
+ readonly params: ({ event }: {
8901
+ context: OverlaysContext;
8902
+ event: {
8903
+ type: "close";
8904
+ actorId?: string | undefined;
8905
+ };
8906
+ }) => {
8907
+ actorId: string;
8908
+ };
8909
+ };
8910
+ readonly target: "closing";
8911
+ }, {
8912
+ readonly actions: "closeLastOverlay";
8913
+ readonly target: "closing";
8914
+ }];
8915
+ readonly 'close.all': {
8916
+ readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
8917
+ readonly target: "idle";
8918
+ };
8919
+ };
8920
+ };
8921
+ readonly closing: {
8922
+ readonly always: readonly [{
8923
+ readonly guard: "has overlays?";
8924
+ readonly target: "active";
8925
+ }, {
8926
+ readonly actions: "stopListeningToEsc";
8927
+ readonly target: "idle";
8928
+ }];
8929
+ };
8930
+ };
8931
+ readonly exit: readonly ["stopListeningToEsc", "closeAllOverlays"];
8932
+ }>;
8933
+ id: "overlays";
8934
+ };
8935
+ }>, never, never, never, never>, "xyflow:fitFocusedBounds"];
8936
+ };
8937
+ readonly 'notations.unhighlight': {
8938
+ readonly actions: ActionFunction<DiagramContext, {
8939
+ type: "notations.unhighlight";
8940
+ }, Events, undefined, Values<{
8941
+ syncManualLayoutActorLogic: {
8942
+ src: "syncManualLayoutActorLogic";
8943
+ logic: StateMachine<Readonly< Input>, Events, {}, never, {
8944
+ type: "trigger:OnChange";
8945
+ params: {
8946
+ change: ViewChange;
8947
+ };
8948
+ }, {
8949
+ type: "same view";
8950
+ params: unknown;
8951
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
8952
+ readonly initial: "idle";
8953
+ readonly context: ({ input }: {
8954
+ spawn: {
8955
+ <TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
8956
+ <TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
8957
+ id?: never;
8958
+ systemId?: string;
8959
+ input?: InputFrom<TLogic>;
8960
+ syncSnapshot?: boolean;
8961
+ } & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
8962
+ };
8963
+ input: Input;
8964
+ self: ActorRef<MachineSnapshot<Readonly< Input>, Events, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, Events, AnyEventObject>;
8965
+ }) => {
8966
+ parent: ActorRef<MachineSnapshot<DiagramContext, Events, any, any, any, any, any, any>, Events, any>;
8967
+ viewId: ViewId;
8968
+ };
8969
+ readonly states: {
8970
+ readonly idle: {
8971
+ readonly tags: "ready";
8972
+ readonly on: {
8973
+ readonly sync: {
8974
+ readonly target: "pending";
8975
+ };
8976
+ };
8977
+ };
8978
+ readonly paused: {
8979
+ readonly tags: "pending";
8980
+ readonly on: {
8981
+ readonly sync: {
8982
+ readonly target: "pending";
8983
+ };
8984
+ };
8985
+ };
8986
+ readonly pending: {
8987
+ readonly tags: "pending";
8988
+ readonly on: {
8989
+ readonly sync: {
8990
+ readonly target: "pending";
8991
+ readonly reenter: true;
8992
+ };
8993
+ readonly cancel: {
8994
+ readonly target: "paused";
8995
+ };
8996
+ };
8997
+ readonly after: {
8998
+ readonly timeout: readonly [{
8999
+ readonly guard: "same view";
9000
+ readonly actions: {
9001
+ readonly type: "trigger:OnChange";
9002
+ readonly params: ({ context }: {
9003
+ context: Readonly< Input>;
9004
+ event: Events;
9005
+ }) => {
9006
+ change: import("@likec4/core").ViewChange.SaveManualLayout;
9007
+ };
9008
+ };
9009
+ readonly target: "synced";
9010
+ }, {
9011
+ readonly target: "stopped";
9012
+ }];
9013
+ };
9014
+ };
9015
+ readonly synced: {
9016
+ readonly tags: "ready";
9017
+ readonly on: {
9018
+ readonly sync: {
9019
+ readonly target: "pending";
9020
+ };
9021
+ };
9022
+ };
9023
+ readonly stopped: {
9024
+ readonly entry: ActionFunction<Readonly< Input>, Events, Events, undefined, never, never, never, never, never>;
9025
+ readonly type: "final";
9026
+ };
9027
+ };
9028
+ readonly on: {
9029
+ readonly synced: {
9030
+ readonly target: ".synced";
9031
+ };
9032
+ readonly stop: {
9033
+ readonly target: ".stopped";
9034
+ };
9035
+ };
9036
+ }>;
9037
+ id: "syncLayout";
9038
+ };
9039
+ hotkeyActorLogic: {
9040
+ src: "hotkeyActorLogic";
9041
+ logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
9042
+ id: "hotkey";
9043
+ };
9044
+ overlaysActorLogic: {
9045
+ src: "overlaysActorLogic";
9046
+ logic: StateMachine<OverlaysContext, OverlayActorEvent, {
9047
+ [x: `elementDetails-${number}`]: ActorRefFromLogic<ElementDetailsLogic> | undefined;
9048
+ [x: `relationshipsBrowser-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipsBrowser.Logic> | undefined;
9049
+ [x: `relationshipDetails-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipDetails.Logic> | undefined;
9050
+ hotkey?: ActorRefFromLogic<CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>>;
9051
+ }, Values<{
9052
+ elementDetails: {
9053
+ src: "elementDetails";
9054
+ logic: ElementDetailsLogic;
9055
+ id: `elementDetails-${number}`;
9056
+ };
9057
+ relationshipsBrowser: {
9058
+ src: "relationshipsBrowser";
9059
+ logic: import("../overlays/types").Overlays.RelationshipsBrowser.Logic;
9060
+ id: `relationshipsBrowser-${number}`;
9061
+ };
9062
+ relationshipDetails: {
9063
+ src: "relationshipDetails";
9064
+ logic: import("../overlays/types").Overlays.RelationshipDetails.Logic;
9065
+ id: `relationshipDetails-${number}`;
9066
+ };
9067
+ hotkey: {
9068
+ src: "hotkey";
9069
+ logic: CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>;
9070
+ id: "hotkey";
9071
+ };
9072
+ }>, Values<{
9073
+ closeLastOverlay: {
9074
+ type: "closeLastOverlay";
9075
+ params: NonReducibleUnknown;
9076
+ };
9077
+ closeSpecificOverlay: {
9078
+ type: "closeSpecificOverlay";
9079
+ params: {
9080
+ actorId: string;
9081
+ };
9082
+ };
9083
+ closeAllOverlays: {
9084
+ type: "closeAllOverlays";
9085
+ params: NonReducibleUnknown;
9086
+ };
9087
+ openElementDetails: {
9088
+ type: "openElementDetails";
9089
+ params: NonReducibleUnknown;
9090
+ };
9091
+ openRelationshipDetails: {
9092
+ type: "openRelationshipDetails";
9093
+ params: NonReducibleUnknown;
9094
+ };
9095
+ openRelationshipsBrowser: {
9096
+ type: "openRelationshipsBrowser";
9097
+ params: NonReducibleUnknown;
9098
+ };
9099
+ listenToEsc: {
9100
+ type: "listenToEsc";
9101
+ params: NonReducibleUnknown;
9102
+ };
9103
+ stopListeningToEsc: {
9104
+ type: "stopListeningToEsc";
9105
+ params: NonReducibleUnknown;
9106
+ };
9107
+ }>, Values<{
9108
+ "has overlays?": {
9109
+ type: "has overlays?";
9110
+ params: unknown;
9111
+ };
9112
+ "close specific overlay?": {
9113
+ type: "close specific overlay?";
9114
+ params: unknown;
9115
+ };
9116
+ "last: is relationshipDetails?": {
9117
+ type: "last: is relationshipDetails?";
9118
+ params: unknown;
9119
+ };
9120
+ "last: is relationshipsBrowser?": {
9121
+ type: "last: is relationshipsBrowser?";
9122
+ params: unknown;
9123
+ };
9124
+ }>, never, "active" | "idle" | "closing", string, NonReducibleUnknown, NonReducibleUnknown, OverlayActorEmitedEvent, MetaObject, {
9125
+ readonly id: "overlays";
9126
+ readonly context: () => {
9127
+ seq: number;
9128
+ overlays: never[];
9129
+ };
9130
+ readonly initial: "idle";
9131
+ readonly on: {
9132
+ readonly 'open.elementDetails': {
9133
+ readonly actions: "openElementDetails";
9134
+ readonly target: ".active";
9135
+ readonly reenter: false;
9136
+ };
9137
+ readonly 'open.relationshipDetails': {
9138
+ readonly actions: "openRelationshipDetails";
9139
+ readonly target: ".active";
9140
+ readonly reenter: false;
9141
+ };
9142
+ readonly 'open.relationshipsBrowser': {
9143
+ readonly actions: "openRelationshipsBrowser";
9144
+ readonly target: ".active";
9145
+ readonly reenter: false;
9146
+ };
9147
+ };
9148
+ readonly states: {
9149
+ readonly idle: {};
9150
+ readonly active: {
9151
+ readonly entry: "listenToEsc";
9152
+ readonly exit: "stopListeningToEsc";
9153
+ readonly on: {
9154
+ readonly close: readonly [{
9155
+ readonly guard: "close specific overlay?";
9156
+ readonly actions: {
9157
+ readonly type: "closeSpecificOverlay";
9158
+ readonly params: ({ event }: {
9159
+ context: OverlaysContext;
9160
+ event: {
9161
+ type: "close";
9162
+ actorId?: string | undefined;
9163
+ };
9164
+ }) => {
9165
+ actorId: string;
9166
+ };
9167
+ };
9168
+ readonly target: "closing";
9169
+ }, {
9170
+ readonly actions: "closeLastOverlay";
9171
+ readonly target: "closing";
9172
+ }];
9173
+ readonly 'close.all': {
9174
+ readonly actions: readonly ["closeAllOverlays", "stopListeningToEsc"];
9175
+ readonly target: "idle";
9176
+ };
9177
+ };
9178
+ };
9179
+ readonly closing: {
9180
+ readonly always: readonly [{
9181
+ readonly guard: "has overlays?";
9182
+ readonly target: "active";
9183
+ }, {
9184
+ readonly actions: "stopListeningToEsc";
9185
+ readonly target: "idle";
9186
+ }];
9187
+ };
9188
+ };
9189
+ readonly exit: readonly ["stopListeningToEsc", "closeAllOverlays"];
9190
+ }>;
9191
+ id: "overlays";
9192
+ };
9193
+ }>, never, never, never, never>;
9194
+ };
9195
+ readonly 'walkthrough.end': {
9196
+ readonly target: "idle";
9197
+ };
9198
+ readonly 'xyflow.paneDblClick': {
9199
+ readonly target: "idle";
9200
+ };
9201
+ readonly 'update.view': {
9202
+ readonly guard: "is another view";
9203
+ readonly actions: ActionFunction<DiagramContext, {
9204
+ type: "update.view";
9205
+ view: DiagramView;
9206
+ xynodes: Types.Node[];
9207
+ xyedges: Types.Edge[];
9208
+ }, Events, undefined, never, never, never, never, never>;
9209
+ readonly target: "idle";
9210
+ };
9211
+ };
9212
+ readonly exit: ActionFunction<DiagramContext, Events, Events, undefined, Values<{
9213
+ syncManualLayoutActorLogic: {
9214
+ src: "syncManualLayoutActorLogic";
9215
+ logic: StateMachine<Readonly< Input>, Events, {}, never, {
9216
+ type: "trigger:OnChange";
9217
+ params: {
9218
+ change: ViewChange;
9219
+ };
9220
+ }, {
9221
+ type: "same view";
9222
+ params: unknown;
9223
+ }, "timeout", "synced" | "pending" | "stopped" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
9224
+ readonly initial: "idle";
9225
+ readonly context: ({ input }: {
9226
+ spawn: {
9227
+ <TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
9228
+ <TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
9229
+ id?: never;
9230
+ systemId?: string;
9231
+ input?: InputFrom<TLogic>;
9232
+ syncSnapshot?: boolean;
9233
+ } & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
9234
+ };
9235
+ input: Input;
9236
+ self: ActorRef<MachineSnapshot<Readonly< Input>, Events, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, Events, AnyEventObject>;
9237
+ }) => {
9238
+ parent: ActorRef<MachineSnapshot<DiagramContext, Events, any, any, any, any, any, any>, Events, any>;
9239
+ viewId: ViewId;
9240
+ };
9241
+ readonly states: {
9242
+ readonly idle: {
9243
+ readonly tags: "ready";
9244
+ readonly on: {
9245
+ readonly sync: {
9246
+ readonly target: "pending";
9247
+ };
9248
+ };
9249
+ };
9250
+ readonly paused: {
9251
+ readonly tags: "pending";
9252
+ readonly on: {
9253
+ readonly sync: {
9254
+ readonly target: "pending";
9255
+ };
9256
+ };
9257
+ };
9258
+ readonly pending: {
9259
+ readonly tags: "pending";
9260
+ readonly on: {
9261
+ readonly sync: {
9262
+ readonly target: "pending";
9263
+ readonly reenter: true;
9264
+ };
9265
+ readonly cancel: {
9266
+ readonly target: "paused";
9267
+ };
9268
+ };
9269
+ readonly after: {
9270
+ readonly timeout: readonly [{
9271
+ readonly guard: "same view";
9272
+ readonly actions: {
9273
+ readonly type: "trigger:OnChange";
9274
+ readonly params: ({ context }: {
9275
+ context: Readonly< Input>;
9276
+ event: Events;
9277
+ }) => {
9278
+ change: import("@likec4/core").ViewChange.SaveManualLayout;
9279
+ };
9280
+ };
9281
+ readonly target: "synced";
9282
+ }, {
9283
+ readonly target: "stopped";
9284
+ }];
9285
+ };
9286
+ };
9287
+ readonly synced: {
9288
+ readonly tags: "ready";
9289
+ readonly on: {
9290
+ readonly sync: {
9291
+ readonly target: "pending";
9292
+ };
9293
+ };
9294
+ };
9295
+ readonly stopped: {
9296
+ readonly entry: ActionFunction<Readonly< Input>, Events, Events, undefined, never, never, never, never, never>;
9297
+ readonly type: "final";
9298
+ };
9299
+ };
9300
+ readonly on: {
9301
+ readonly synced: {
9302
+ readonly target: ".synced";
9303
+ };
9304
+ readonly stop: {
9305
+ readonly target: ".stopped";
9306
+ };
9307
+ };
9308
+ }>;
9309
+ id: "syncLayout";
9310
+ };
9311
+ hotkeyActorLogic: {
9312
+ src: "hotkeyActorLogic";
9313
+ logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
9314
+ id: "hotkey";
9315
+ };
9316
+ overlaysActorLogic: {
9317
+ src: "overlaysActorLogic";
9318
+ logic: StateMachine<OverlaysContext, OverlayActorEvent, {
9319
+ [x: `elementDetails-${number}`]: ActorRefFromLogic<ElementDetailsLogic> | undefined;
9320
+ [x: `relationshipsBrowser-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipsBrowser.Logic> | undefined;
9321
+ [x: `relationshipDetails-${number}`]: ActorRefFromLogic<import("../overlays/types").Overlays.RelationshipDetails.Logic> | undefined;
9322
+ hotkey?: ActorRefFromLogic<CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>>;
9323
+ }, Values<{
9324
+ elementDetails: {
9325
+ src: "elementDetails";
9326
+ logic: ElementDetailsLogic;
9327
+ id: `elementDetails-${number}`;
9328
+ };
9329
+ relationshipsBrowser: {
9330
+ src: "relationshipsBrowser";
9331
+ logic: import("../overlays/types").Overlays.RelationshipsBrowser.Logic;
9332
+ id: `relationshipsBrowser-${number}`;
9333
+ };
9334
+ relationshipDetails: {
9335
+ src: "relationshipDetails";
9336
+ logic: import("../overlays/types").Overlays.RelationshipDetails.Logic;
9337
+ id: `relationshipDetails-${number}`;
9338
+ };
9339
+ hotkey: {
9340
+ src: "hotkey";
9341
+ logic: CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>;
9342
+ id: "hotkey";
9343
+ };
9344
+ }>, Values<{
9345
+ closeLastOverlay: {
9346
+ type: "closeLastOverlay";
9347
+ params: NonReducibleUnknown;
9348
+ };
9349
+ closeSpecificOverlay: {
8809
9350
  type: "closeSpecificOverlay";
8810
9351
  params: {
8811
9352
  actorId: string;
@@ -9048,6 +9589,10 @@ export declare function useDiagram(): {
9048
9589
  type: "enabled: Readonly";
9049
9590
  params: unknown;
9050
9591
  };
9592
+ "enabled: RelationshipDetails": {
9593
+ type: "enabled: RelationshipDetails";
9594
+ params: unknown;
9595
+ };
9051
9596
  "not readonly": {
9052
9597
  type: "not readonly";
9053
9598
  params: unknown;
@@ -9076,6 +9621,10 @@ export declare function useDiagram(): {
9076
9621
  type: "click: node has connections";
9077
9622
  params: unknown;
9078
9623
  };
9624
+ "click: selected edge": {
9625
+ type: "click: selected edge";
9626
+ params: unknown;
9627
+ };
9079
9628
  }>, never, EventObject>;
9080
9629
  };
9081
9630
  };
@@ -9478,6 +10027,10 @@ export declare function useDiagram(): {
9478
10027
  type: "enabled: Readonly";
9479
10028
  params: unknown;
9480
10029
  };
10030
+ "enabled: RelationshipDetails": {
10031
+ type: "enabled: RelationshipDetails";
10032
+ params: unknown;
10033
+ };
9481
10034
  "not readonly": {
9482
10035
  type: "not readonly";
9483
10036
  params: unknown;
@@ -9506,6 +10059,10 @@ export declare function useDiagram(): {
9506
10059
  type: "click: node has connections";
9507
10060
  params: unknown;
9508
10061
  };
10062
+ "click: selected edge": {
10063
+ type: "click: selected edge";
10064
+ params: unknown;
10065
+ };
9509
10066
  }>, never, EventObject>;
9510
10067
  readonly target: "#idle";
9511
10068
  };
@@ -11460,6 +12017,10 @@ export declare function useDiagram(): {
11460
12017
  type: "enabled: Readonly";
11461
12018
  params: unknown;
11462
12019
  };
12020
+ "enabled: RelationshipDetails": {
12021
+ type: "enabled: RelationshipDetails";
12022
+ params: unknown;
12023
+ };
11463
12024
  "not readonly": {
11464
12025
  type: "not readonly";
11465
12026
  params: unknown;
@@ -11488,6 +12049,10 @@ export declare function useDiagram(): {
11488
12049
  type: "click: node has connections";
11489
12050
  params: unknown;
11490
12051
  };
12052
+ "click: selected edge": {
12053
+ type: "click: selected edge";
12054
+ params: unknown;
12055
+ };
11491
12056
  }>, never, EventObject>];
11492
12057
  };
11493
12058
  readonly 'update.inputs': {