@likec4/diagram 1.22.0 → 1.22.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.
@@ -12,7 +12,7 @@ import { LayoutRelationshipsViewResult } from '../../overlays/relationships-brow
12
12
  import { AlignmentMode } from './aligners';
13
13
  import { OpenSourceParams } from '../..';
14
14
  import { focusedBounds } from './utils';
15
- import { EnabledFeatures } from '../../context';
15
+ import { FeatureName } from '../../context/DiagramFeatures';
16
16
  export declare const LikeC4ViewMachineContextProvider: (props: {
17
17
  children: React.ReactNode;
18
18
  options?: ActorOptions<StateMachine<DiagramContext, Events, {
@@ -542,6 +542,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
542
542
  toPosition: XYPoint;
543
543
  };
544
544
  };
545
+ updateFeatures: {
546
+ type: "updateFeatures";
547
+ params: NonReducibleUnknown;
548
+ };
545
549
  }>, Values<{
546
550
  "enabled: FitView": {
547
551
  type: "enabled: FitView";
@@ -1372,6 +1376,9 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
1372
1376
  enableLikeC4Model: boolean;
1373
1377
  enableVscode: boolean;
1374
1378
  };
1379
+ toggledFeatures: {
1380
+ enableReadOnly: true;
1381
+ };
1375
1382
  initialized: false;
1376
1383
  viewportChangedManually: false;
1377
1384
  lastOnNavigate: null;
@@ -2260,6 +2267,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
2260
2267
  toPosition: XYPoint;
2261
2268
  };
2262
2269
  };
2270
+ updateFeatures: {
2271
+ type: "updateFeatures";
2272
+ params: NonReducibleUnknown;
2273
+ };
2263
2274
  }>, Values<{
2264
2275
  "enabled: FitView": {
2265
2276
  type: "enabled: FitView";
@@ -5404,6 +5415,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
5404
5415
  toPosition: XYPoint;
5405
5416
  };
5406
5417
  };
5418
+ updateFeatures: {
5419
+ type: "updateFeatures";
5420
+ params: NonReducibleUnknown;
5421
+ };
5407
5422
  }>, Values<{
5408
5423
  "enabled: FitView": {
5409
5424
  type: "enabled: FitView";
@@ -6879,6 +6894,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
6879
6894
  toPosition: XYPoint;
6880
6895
  };
6881
6896
  };
6897
+ updateFeatures: {
6898
+ type: "updateFeatures";
6899
+ params: NonReducibleUnknown;
6900
+ };
6882
6901
  }>, Values<{
6883
6902
  "enabled: FitView": {
6884
6903
  type: "enabled: FitView";
@@ -7267,6 +7286,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
7267
7286
  toPosition: XYPoint;
7268
7287
  };
7269
7288
  };
7289
+ updateFeatures: {
7290
+ type: "updateFeatures";
7291
+ params: NonReducibleUnknown;
7292
+ };
7270
7293
  }>, Values<{
7271
7294
  "enabled: FitView": {
7272
7295
  type: "enabled: FitView";
@@ -8618,6 +8641,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
8618
8641
  toPosition: XYPoint;
8619
8642
  };
8620
8643
  };
8644
+ updateFeatures: {
8645
+ type: "updateFeatures";
8646
+ params: NonReducibleUnknown;
8647
+ };
8621
8648
  }>, Values<{
8622
8649
  "enabled: FitView": {
8623
8650
  type: "enabled: FitView";
@@ -9014,6 +9041,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
9014
9041
  toPosition: XYPoint;
9015
9042
  };
9016
9043
  };
9044
+ updateFeatures: {
9045
+ type: "updateFeatures";
9046
+ params: NonReducibleUnknown;
9047
+ };
9017
9048
  }>, Values<{
9018
9049
  "enabled: FitView": {
9019
9050
  type: "enabled: FitView";
@@ -11228,6 +11259,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
11228
11259
  toPosition: XYPoint;
11229
11260
  };
11230
11261
  };
11262
+ updateFeatures: {
11263
+ type: "updateFeatures";
11264
+ params: NonReducibleUnknown;
11265
+ };
11231
11266
  }>, Values<{
11232
11267
  "enabled: FitView": {
11233
11268
  type: "enabled: FitView";
@@ -11520,256 +11555,7 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
11520
11555
  }>, never, never, never, never>;
11521
11556
  };
11522
11557
  readonly 'update.features': {
11523
- readonly actions: ActionFunction<DiagramContext, {
11524
- type: "update.features";
11525
- features: EnabledFeatures;
11526
- }, Events, undefined, Values<{
11527
- hotkeyActor: {
11528
- src: "hotkeyActor";
11529
- logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
11530
- id: "hotkey";
11531
- };
11532
- syncManualLayoutActor: {
11533
- src: "syncManualLayoutActor";
11534
- logic: StateMachine<Readonly< Input>, Events, {}, never, {
11535
- type: "trigger:OnChange";
11536
- params: {
11537
- change: ViewChange;
11538
- };
11539
- }, {
11540
- type: "same view";
11541
- params: unknown;
11542
- }, "timeout", "stopped" | "synced" | "pending" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
11543
- readonly initial: "idle";
11544
- readonly context: ({ input }: {
11545
- spawn: {
11546
- <TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
11547
- <TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
11548
- id?: never;
11549
- systemId?: string;
11550
- input?: InputFrom<TLogic>;
11551
- syncSnapshot?: boolean;
11552
- } & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
11553
- };
11554
- input: Input;
11555
- self: ActorRef<MachineSnapshot<Readonly< Input>, Events, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, Events, AnyEventObject>;
11556
- }) => {
11557
- parent: ActorRef<MachineSnapshot<DiagramContext, Events, any, any, any, any, any, any>, Events, any>;
11558
- viewId: ViewId;
11559
- };
11560
- readonly states: {
11561
- readonly idle: {
11562
- readonly tags: "ready";
11563
- readonly on: {
11564
- readonly sync: {
11565
- readonly target: "pending";
11566
- };
11567
- };
11568
- };
11569
- readonly paused: {
11570
- readonly tags: "pending";
11571
- readonly on: {
11572
- readonly sync: {
11573
- readonly target: "pending";
11574
- };
11575
- };
11576
- };
11577
- readonly pending: {
11578
- readonly tags: "pending";
11579
- readonly on: {
11580
- readonly sync: {
11581
- readonly target: "pending";
11582
- readonly reenter: true;
11583
- };
11584
- readonly cancel: {
11585
- readonly target: "paused";
11586
- };
11587
- };
11588
- readonly after: {
11589
- readonly timeout: readonly [{
11590
- readonly guard: "same view";
11591
- readonly actions: {
11592
- readonly type: "trigger:OnChange";
11593
- readonly params: ({ context }: {
11594
- context: Readonly< Input>;
11595
- event: Events;
11596
- }) => {
11597
- change: import("@likec4/core").ViewChange.SaveManualLayout;
11598
- };
11599
- };
11600
- readonly target: "synced";
11601
- }, {
11602
- readonly target: "stopped";
11603
- }];
11604
- };
11605
- };
11606
- readonly synced: {
11607
- readonly tags: "ready";
11608
- readonly on: {
11609
- readonly sync: {
11610
- readonly target: "pending";
11611
- };
11612
- };
11613
- };
11614
- readonly stopped: {
11615
- readonly entry: ActionFunction<Readonly< Input>, Events, Events, undefined, never, never, never, never, never>;
11616
- readonly type: "final";
11617
- };
11618
- };
11619
- readonly on: {
11620
- readonly synced: {
11621
- readonly target: ".synced";
11622
- };
11623
- readonly stop: {
11624
- readonly target: ".stopped";
11625
- };
11626
- };
11627
- }>;
11628
- id: "syncLayout";
11629
- };
11630
- relationshipDetailsActor: {
11631
- src: "relationshipDetailsActor";
11632
- logic: ActorLogic<MachineSnapshot<Readonly< Input & {
11633
- xyflow: ( GeneralHelpers<import("../../overlays/relationship-details/_types").RelationshipDetailsTypes.Node, {
11634
- id: string;
11635
- source: string;
11636
- target: string;
11637
- sourceHandle?: string | null;
11638
- targetHandle?: string | null;
11639
- animated?: boolean;
11640
- hidden?: boolean;
11641
- deletable?: boolean;
11642
- selectable?: boolean;
11643
- selected?: boolean;
11644
- markerStart?: EdgeMarkerType;
11645
- markerEnd?: EdgeMarkerType;
11646
- zIndex?: number;
11647
- ariaLabel?: string;
11648
- interactionWidth?: number;
11649
- label?: ReactNode;
11650
- labelStyle?: CSSProperties;
11651
- labelShowBg?: boolean;
11652
- labelBgStyle?: CSSProperties;
11653
- labelBgPadding?: [number, number];
11654
- labelBgBorderRadius?: number;
11655
- style?: CSSProperties;
11656
- className?: string;
11657
- reconnectable?: boolean | HandleType;
11658
- focusable?: boolean;
11659
- type: "relationship";
11660
- data: {
11661
- relationId: RelationId;
11662
- color: Color | undefined;
11663
- label: string | null;
11664
- technology?: string | undefined | undefined;
11665
- description?: string | undefined | undefined;
11666
- navigateTo: ViewId | null;
11667
- line: RelationshipLineType;
11668
- hovered?: boolean;
11669
- active?: boolean;
11670
- dimmed?: import("../../base").Base.Dimmed;
11671
- };
11672
- }> & Omit< ViewportHelperFunctions, "initialized"> & {
11673
- viewportInitialized: boolean;
11674
- }) | null;
11675
- initialized: boolean;
11676
- }>, Events, any, "active" | "opening" | "closed", any, any, any, any>, Events, Input, any, any>;
11677
- id: "relationshipDetails";
11678
- };
11679
- relationshipsBrowserActor: {
11680
- src: "relationshipsBrowserActor";
11681
- logic: ActorLogic<MachineSnapshot<Readonly< Input & {
11682
- closeable: boolean;
11683
- enableNavigationMenu: boolean;
11684
- xyflow: ( GeneralHelpers<import("../../overlays/relationships-browser/_types").RelationshipsBrowserTypes.Node, {
11685
- id: string;
11686
- source: string;
11687
- target: string;
11688
- sourceHandle?: string | null;
11689
- targetHandle?: string | null;
11690
- animated?: boolean;
11691
- hidden?: boolean;
11692
- deletable?: boolean;
11693
- selectable?: boolean;
11694
- selected?: boolean;
11695
- markerStart?: EdgeMarkerType;
11696
- markerEnd?: EdgeMarkerType;
11697
- zIndex?: number;
11698
- ariaLabel?: string;
11699
- interactionWidth?: number;
11700
- label?: ReactNode;
11701
- labelStyle?: CSSProperties;
11702
- labelShowBg?: boolean;
11703
- labelBgStyle?: CSSProperties;
11704
- labelBgPadding?: [number, number];
11705
- labelBgBorderRadius?: number;
11706
- style?: CSSProperties;
11707
- className?: string;
11708
- reconnectable?: boolean | HandleType;
11709
- focusable?: boolean;
11710
- type: "relationships";
11711
- data: {
11712
- relations: NonEmptyArray<RelationId>;
11713
- color: Color | undefined;
11714
- label: string | null;
11715
- navigateTo: ViewId | null;
11716
- line: RelationshipLineType;
11717
- hovered?: boolean;
11718
- active?: boolean;
11719
- dimmed?: import("../../base").Base.Dimmed;
11720
- };
11721
- }> & Omit< ViewportHelperFunctions, "initialized"> & {
11722
- viewportInitialized: boolean;
11723
- }) | null;
11724
- xystore: XYStoreApi | null;
11725
- initialized: boolean;
11726
- layouted: LayoutRelationshipsViewResult | null;
11727
- navigateFromNode: string | null;
11728
- xynodes: import("../../overlays/relationships-browser/_types").RelationshipsBrowserTypes.Node[];
11729
- xyedges: {
11730
- id: string;
11731
- source: string;
11732
- target: string;
11733
- sourceHandle?: string | null;
11734
- targetHandle?: string | null;
11735
- animated?: boolean;
11736
- hidden?: boolean;
11737
- deletable?: boolean;
11738
- selectable?: boolean;
11739
- selected?: boolean;
11740
- markerStart?: EdgeMarkerType;
11741
- markerEnd?: EdgeMarkerType;
11742
- zIndex?: number;
11743
- ariaLabel?: string;
11744
- interactionWidth?: number;
11745
- label?: ReactNode;
11746
- labelStyle?: CSSProperties;
11747
- labelShowBg?: boolean;
11748
- labelBgStyle?: CSSProperties;
11749
- labelBgPadding?: [number, number];
11750
- labelBgBorderRadius?: number;
11751
- style?: CSSProperties;
11752
- className?: string;
11753
- reconnectable?: boolean | HandleType;
11754
- focusable?: boolean;
11755
- type: "relationships";
11756
- data: {
11757
- relations: NonEmptyArray<RelationId>;
11758
- color: Color | undefined;
11759
- label: string | null;
11760
- navigateTo: ViewId | null;
11761
- line: RelationshipLineType;
11762
- hovered?: boolean;
11763
- active?: boolean;
11764
- dimmed?: import("../../base").Base.Dimmed;
11765
- };
11766
- }[];
11767
- }>, Events, any, "closed" | "initializing" | "waiting-data" | {
11768
- active: "idle" | "layouting";
11769
- }, "active", any, any, any>, Events, Input, any, any>;
11770
- id: "relationshipsBrowser";
11771
- };
11772
- }>, never, never, never, never>;
11558
+ readonly actions: "updateFeatures";
11773
11559
  };
11774
11560
  readonly 'update.nodeData': {
11775
11561
  readonly actions: ActionFunction<DiagramContext, Events, Events, undefined, Values<{
@@ -12826,6 +12612,259 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
12826
12612
  readonly guard: "is dynamic view";
12827
12613
  readonly target: ".walkthrough";
12828
12614
  };
12615
+ readonly 'toggle.feature': {
12616
+ readonly actions: ActionFunction<DiagramContext, {
12617
+ type: "toggle.feature";
12618
+ feature: FeatureName;
12619
+ forceValue?: boolean;
12620
+ }, Events, undefined, Values<{
12621
+ hotkeyActor: {
12622
+ src: "hotkeyActor";
12623
+ logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
12624
+ id: "hotkey";
12625
+ };
12626
+ syncManualLayoutActor: {
12627
+ src: "syncManualLayoutActor";
12628
+ logic: StateMachine<Readonly< Input>, Events, {}, never, {
12629
+ type: "trigger:OnChange";
12630
+ params: {
12631
+ change: ViewChange;
12632
+ };
12633
+ }, {
12634
+ type: "same view";
12635
+ params: unknown;
12636
+ }, "timeout", "stopped" | "synced" | "pending" | "idle" | "paused", "pending" | "ready", Input, NonReducibleUnknown, EventObject, MetaObject, {
12637
+ readonly initial: "idle";
12638
+ readonly context: ({ input }: {
12639
+ spawn: {
12640
+ <TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
12641
+ <TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: {
12642
+ id?: never;
12643
+ systemId?: string;
12644
+ input?: InputFrom<TLogic>;
12645
+ syncSnapshot?: boolean;
12646
+ } & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
12647
+ };
12648
+ input: Input;
12649
+ self: ActorRef<MachineSnapshot<Readonly< Input>, Events, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, Events, AnyEventObject>;
12650
+ }) => {
12651
+ parent: ActorRef<MachineSnapshot<DiagramContext, Events, any, any, any, any, any, any>, Events, any>;
12652
+ viewId: ViewId;
12653
+ };
12654
+ readonly states: {
12655
+ readonly idle: {
12656
+ readonly tags: "ready";
12657
+ readonly on: {
12658
+ readonly sync: {
12659
+ readonly target: "pending";
12660
+ };
12661
+ };
12662
+ };
12663
+ readonly paused: {
12664
+ readonly tags: "pending";
12665
+ readonly on: {
12666
+ readonly sync: {
12667
+ readonly target: "pending";
12668
+ };
12669
+ };
12670
+ };
12671
+ readonly pending: {
12672
+ readonly tags: "pending";
12673
+ readonly on: {
12674
+ readonly sync: {
12675
+ readonly target: "pending";
12676
+ readonly reenter: true;
12677
+ };
12678
+ readonly cancel: {
12679
+ readonly target: "paused";
12680
+ };
12681
+ };
12682
+ readonly after: {
12683
+ readonly timeout: readonly [{
12684
+ readonly guard: "same view";
12685
+ readonly actions: {
12686
+ readonly type: "trigger:OnChange";
12687
+ readonly params: ({ context }: {
12688
+ context: Readonly< Input>;
12689
+ event: Events;
12690
+ }) => {
12691
+ change: import("@likec4/core").ViewChange.SaveManualLayout;
12692
+ };
12693
+ };
12694
+ readonly target: "synced";
12695
+ }, {
12696
+ readonly target: "stopped";
12697
+ }];
12698
+ };
12699
+ };
12700
+ readonly synced: {
12701
+ readonly tags: "ready";
12702
+ readonly on: {
12703
+ readonly sync: {
12704
+ readonly target: "pending";
12705
+ };
12706
+ };
12707
+ };
12708
+ readonly stopped: {
12709
+ readonly entry: ActionFunction<Readonly< Input>, Events, Events, undefined, never, never, never, never, never>;
12710
+ readonly type: "final";
12711
+ };
12712
+ };
12713
+ readonly on: {
12714
+ readonly synced: {
12715
+ readonly target: ".synced";
12716
+ };
12717
+ readonly stop: {
12718
+ readonly target: ".stopped";
12719
+ };
12720
+ };
12721
+ }>;
12722
+ id: "syncLayout";
12723
+ };
12724
+ relationshipDetailsActor: {
12725
+ src: "relationshipDetailsActor";
12726
+ logic: ActorLogic<MachineSnapshot<Readonly< Input & {
12727
+ xyflow: ( GeneralHelpers<import("../../overlays/relationship-details/_types").RelationshipDetailsTypes.Node, {
12728
+ id: string;
12729
+ source: string;
12730
+ target: string;
12731
+ sourceHandle?: string | null;
12732
+ targetHandle?: string | null;
12733
+ animated?: boolean;
12734
+ hidden?: boolean;
12735
+ deletable?: boolean;
12736
+ selectable?: boolean;
12737
+ selected?: boolean;
12738
+ markerStart?: EdgeMarkerType;
12739
+ markerEnd?: EdgeMarkerType;
12740
+ zIndex?: number;
12741
+ ariaLabel?: string;
12742
+ interactionWidth?: number;
12743
+ label?: ReactNode;
12744
+ labelStyle?: CSSProperties;
12745
+ labelShowBg?: boolean;
12746
+ labelBgStyle?: CSSProperties;
12747
+ labelBgPadding?: [number, number];
12748
+ labelBgBorderRadius?: number;
12749
+ style?: CSSProperties;
12750
+ className?: string;
12751
+ reconnectable?: boolean | HandleType;
12752
+ focusable?: boolean;
12753
+ type: "relationship";
12754
+ data: {
12755
+ relationId: RelationId;
12756
+ color: Color | undefined;
12757
+ label: string | null;
12758
+ technology?: string | undefined | undefined;
12759
+ description?: string | undefined | undefined;
12760
+ navigateTo: ViewId | null;
12761
+ line: RelationshipLineType;
12762
+ hovered?: boolean;
12763
+ active?: boolean;
12764
+ dimmed?: import("../../base").Base.Dimmed;
12765
+ };
12766
+ }> & Omit< ViewportHelperFunctions, "initialized"> & {
12767
+ viewportInitialized: boolean;
12768
+ }) | null;
12769
+ initialized: boolean;
12770
+ }>, Events, any, "active" | "opening" | "closed", any, any, any, any>, Events, Input, any, any>;
12771
+ id: "relationshipDetails";
12772
+ };
12773
+ relationshipsBrowserActor: {
12774
+ src: "relationshipsBrowserActor";
12775
+ logic: ActorLogic<MachineSnapshot<Readonly< Input & {
12776
+ closeable: boolean;
12777
+ enableNavigationMenu: boolean;
12778
+ xyflow: ( GeneralHelpers<import("../../overlays/relationships-browser/_types").RelationshipsBrowserTypes.Node, {
12779
+ id: string;
12780
+ source: string;
12781
+ target: string;
12782
+ sourceHandle?: string | null;
12783
+ targetHandle?: string | null;
12784
+ animated?: boolean;
12785
+ hidden?: boolean;
12786
+ deletable?: boolean;
12787
+ selectable?: boolean;
12788
+ selected?: boolean;
12789
+ markerStart?: EdgeMarkerType;
12790
+ markerEnd?: EdgeMarkerType;
12791
+ zIndex?: number;
12792
+ ariaLabel?: string;
12793
+ interactionWidth?: number;
12794
+ label?: ReactNode;
12795
+ labelStyle?: CSSProperties;
12796
+ labelShowBg?: boolean;
12797
+ labelBgStyle?: CSSProperties;
12798
+ labelBgPadding?: [number, number];
12799
+ labelBgBorderRadius?: number;
12800
+ style?: CSSProperties;
12801
+ className?: string;
12802
+ reconnectable?: boolean | HandleType;
12803
+ focusable?: boolean;
12804
+ type: "relationships";
12805
+ data: {
12806
+ relations: NonEmptyArray<RelationId>;
12807
+ color: Color | undefined;
12808
+ label: string | null;
12809
+ navigateTo: ViewId | null;
12810
+ line: RelationshipLineType;
12811
+ hovered?: boolean;
12812
+ active?: boolean;
12813
+ dimmed?: import("../../base").Base.Dimmed;
12814
+ };
12815
+ }> & Omit< ViewportHelperFunctions, "initialized"> & {
12816
+ viewportInitialized: boolean;
12817
+ }) | null;
12818
+ xystore: XYStoreApi | null;
12819
+ initialized: boolean;
12820
+ layouted: LayoutRelationshipsViewResult | null;
12821
+ navigateFromNode: string | null;
12822
+ xynodes: import("../../overlays/relationships-browser/_types").RelationshipsBrowserTypes.Node[];
12823
+ xyedges: {
12824
+ id: string;
12825
+ source: string;
12826
+ target: string;
12827
+ sourceHandle?: string | null;
12828
+ targetHandle?: string | null;
12829
+ animated?: boolean;
12830
+ hidden?: boolean;
12831
+ deletable?: boolean;
12832
+ selectable?: boolean;
12833
+ selected?: boolean;
12834
+ markerStart?: EdgeMarkerType;
12835
+ markerEnd?: EdgeMarkerType;
12836
+ zIndex?: number;
12837
+ ariaLabel?: string;
12838
+ interactionWidth?: number;
12839
+ label?: ReactNode;
12840
+ labelStyle?: CSSProperties;
12841
+ labelShowBg?: boolean;
12842
+ labelBgStyle?: CSSProperties;
12843
+ labelBgPadding?: [number, number];
12844
+ labelBgBorderRadius?: number;
12845
+ style?: CSSProperties;
12846
+ className?: string;
12847
+ reconnectable?: boolean | HandleType;
12848
+ focusable?: boolean;
12849
+ type: "relationships";
12850
+ data: {
12851
+ relations: NonEmptyArray<RelationId>;
12852
+ color: Color | undefined;
12853
+ label: string | null;
12854
+ navigateTo: ViewId | null;
12855
+ line: RelationshipLineType;
12856
+ hovered?: boolean;
12857
+ active?: boolean;
12858
+ dimmed?: import("../../base").Base.Dimmed;
12859
+ };
12860
+ }[];
12861
+ }>, Events, any, "closed" | "initializing" | "waiting-data" | {
12862
+ active: "idle" | "layouting";
12863
+ }, "active", any, any, any>, Events, Input, any, any>;
12864
+ id: "relationshipsBrowser";
12865
+ };
12866
+ }>, never, never, never, never>;
12867
+ };
12829
12868
  };
12830
12869
  readonly exit: readonly [ StopAction<DiagramContext, Events, undefined, Events>, StopAction<DiagramContext, Events, undefined, Events>, ActionFunction<DiagramContext, Events, Events, undefined, Values<{
12831
12870
  hotkeyActor: {
@@ -13603,6 +13642,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
13603
13642
  toPosition: XYPoint;
13604
13643
  };
13605
13644
  };
13645
+ updateFeatures: {
13646
+ type: "updateFeatures";
13647
+ params: NonReducibleUnknown;
13648
+ };
13606
13649
  }>, Values<{
13607
13650
  "enabled: FitView": {
13608
13651
  type: "enabled: FitView";
@@ -14433,6 +14476,9 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
14433
14476
  enableLikeC4Model: boolean;
14434
14477
  enableVscode: boolean;
14435
14478
  };
14479
+ toggledFeatures: {
14480
+ enableReadOnly: true;
14481
+ };
14436
14482
  initialized: false;
14437
14483
  viewportChangedManually: false;
14438
14484
  lastOnNavigate: null;
@@ -15321,6 +15367,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
15321
15367
  toPosition: XYPoint;
15322
15368
  };
15323
15369
  };
15370
+ updateFeatures: {
15371
+ type: "updateFeatures";
15372
+ params: NonReducibleUnknown;
15373
+ };
15324
15374
  }>, Values<{
15325
15375
  "enabled: FitView": {
15326
15376
  type: "enabled: FitView";
@@ -18465,6 +18515,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
18465
18515
  toPosition: XYPoint;
18466
18516
  };
18467
18517
  };
18518
+ updateFeatures: {
18519
+ type: "updateFeatures";
18520
+ params: NonReducibleUnknown;
18521
+ };
18468
18522
  }>, Values<{
18469
18523
  "enabled: FitView": {
18470
18524
  type: "enabled: FitView";
@@ -19940,6 +19994,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
19940
19994
  toPosition: XYPoint;
19941
19995
  };
19942
19996
  };
19997
+ updateFeatures: {
19998
+ type: "updateFeatures";
19999
+ params: NonReducibleUnknown;
20000
+ };
19943
20001
  }>, Values<{
19944
20002
  "enabled: FitView": {
19945
20003
  type: "enabled: FitView";
@@ -20328,6 +20386,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
20328
20386
  toPosition: XYPoint;
20329
20387
  };
20330
20388
  };
20389
+ updateFeatures: {
20390
+ type: "updateFeatures";
20391
+ params: NonReducibleUnknown;
20392
+ };
20331
20393
  }>, Values<{
20332
20394
  "enabled: FitView": {
20333
20395
  type: "enabled: FitView";
@@ -21679,6 +21741,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
21679
21741
  toPosition: XYPoint;
21680
21742
  };
21681
21743
  };
21744
+ updateFeatures: {
21745
+ type: "updateFeatures";
21746
+ params: NonReducibleUnknown;
21747
+ };
21682
21748
  }>, Values<{
21683
21749
  "enabled: FitView": {
21684
21750
  type: "enabled: FitView";
@@ -22075,6 +22141,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
22075
22141
  toPosition: XYPoint;
22076
22142
  };
22077
22143
  };
22144
+ updateFeatures: {
22145
+ type: "updateFeatures";
22146
+ params: NonReducibleUnknown;
22147
+ };
22078
22148
  }>, Values<{
22079
22149
  "enabled: FitView": {
22080
22150
  type: "enabled: FitView";
@@ -24289,6 +24359,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
24289
24359
  toPosition: XYPoint;
24290
24360
  };
24291
24361
  };
24362
+ updateFeatures: {
24363
+ type: "updateFeatures";
24364
+ params: NonReducibleUnknown;
24365
+ };
24292
24366
  }>, Values<{
24293
24367
  "enabled: FitView": {
24294
24368
  type: "enabled: FitView";
@@ -24581,10 +24655,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
24581
24655
  }>, never, never, never, never>;
24582
24656
  };
24583
24657
  readonly 'update.features': {
24584
- readonly actions: ActionFunction<DiagramContext, {
24585
- type: "update.features";
24586
- features: EnabledFeatures;
24587
- }, Events, undefined, Values<{
24658
+ readonly actions: "updateFeatures";
24659
+ };
24660
+ readonly 'update.nodeData': {
24661
+ readonly actions: ActionFunction<DiagramContext, Events, Events, undefined, Values<{
24588
24662
  hotkeyActor: {
24589
24663
  src: "hotkeyActor";
24590
24664
  logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
@@ -24832,7 +24906,7 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
24832
24906
  };
24833
24907
  }>, never, never, never, never>;
24834
24908
  };
24835
- readonly 'update.nodeData': {
24909
+ readonly 'update.edgeData': {
24836
24910
  readonly actions: ActionFunction<DiagramContext, Events, Events, undefined, Values<{
24837
24911
  hotkeyActor: {
24838
24912
  src: "hotkeyActor";
@@ -25081,8 +25155,27 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
25081
25155
  };
25082
25156
  }>, never, never, never, never>;
25083
25157
  };
25084
- readonly 'update.edgeData': {
25085
- readonly actions: ActionFunction<DiagramContext, Events, Events, undefined, Values<{
25158
+ readonly 'layout.align': {
25159
+ readonly guard: "not readonly";
25160
+ readonly actions: readonly [{
25161
+ readonly type: "layout.align";
25162
+ readonly params: ({ event }: {
25163
+ context: DiagramContext;
25164
+ event: {
25165
+ type: "layout.align";
25166
+ mode: AlignmentMode;
25167
+ };
25168
+ }) => {
25169
+ mode: AlignmentMode;
25170
+ };
25171
+ }, ActionFunction<DiagramContext, {
25172
+ type: "layout.align";
25173
+ mode: AlignmentMode;
25174
+ }, Events, undefined, never, never, never, never, never>];
25175
+ };
25176
+ readonly 'layout.resetEdgeControlPoints': {
25177
+ readonly guard: "not readonly";
25178
+ readonly actions: readonly [ ActionFunction<DiagramContext, Events, Events, undefined, Values<{
25086
25179
  hotkeyActor: {
25087
25180
  src: "hotkeyActor";
25088
25181
  logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
@@ -25328,29 +25421,26 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
25328
25421
  }, "active", any, any, any>, Events, Input, any, any>;
25329
25422
  id: "relationshipsBrowser";
25330
25423
  };
25331
- }>, never, never, never, never>;
25424
+ }>, never, never, never, never>, ActionFunction<DiagramContext, {
25425
+ type: "layout.resetEdgeControlPoints";
25426
+ }, Events, undefined, never, never, never, never, never>];
25332
25427
  };
25333
- readonly 'layout.align': {
25334
- readonly guard: "not readonly";
25335
- readonly actions: readonly [{
25336
- readonly type: "layout.align";
25337
- readonly params: ({ event }: {
25338
- context: DiagramContext;
25339
- event: {
25340
- type: "layout.align";
25341
- mode: AlignmentMode;
25342
- };
25343
- }) => {
25344
- mode: AlignmentMode;
25345
- };
25346
- }, ActionFunction<DiagramContext, {
25347
- type: "layout.align";
25348
- mode: AlignmentMode;
25428
+ readonly 'xyflow.resized': {
25429
+ readonly guard: ({ context }: {
25430
+ context: DiagramContext;
25431
+ }) => boolean;
25432
+ readonly actions: readonly [ CancelAction<DiagramContext, {
25433
+ type: "xyflow.resized";
25434
+ }, undefined, Events>, ActionFunction<DiagramContext, {
25435
+ type: "xyflow.resized";
25349
25436
  }, Events, undefined, never, never, never, never, never>];
25350
25437
  };
25351
- readonly 'layout.resetEdgeControlPoints': {
25352
- readonly guard: "not readonly";
25353
- readonly actions: readonly [ ActionFunction<DiagramContext, Events, Events, undefined, Values<{
25438
+ readonly 'open.elementDetails': {
25439
+ readonly actions: ActionFunction<DiagramContext, {
25440
+ type: "open.elementDetails";
25441
+ fqn: Fqn;
25442
+ fromNode?: NodeId | undefined;
25443
+ }, Events, undefined, Values<{
25354
25444
  hotkeyActor: {
25355
25445
  src: "hotkeyActor";
25356
25446
  logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
@@ -25596,25 +25686,37 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
25596
25686
  }, "active", any, any, any>, Events, Input, any, any>;
25597
25687
  id: "relationshipsBrowser";
25598
25688
  };
25599
- }>, never, never, never, never>, ActionFunction<DiagramContext, {
25600
- type: "layout.resetEdgeControlPoints";
25601
- }, Events, undefined, never, never, never, never, never>];
25689
+ }>, never, never, never, never>;
25690
+ readonly target: ".overlay.elementDetails";
25602
25691
  };
25603
- readonly 'xyflow.resized': {
25604
- readonly guard: ({ context }: {
25605
- context: DiagramContext;
25606
- }) => boolean;
25607
- readonly actions: readonly [ CancelAction<DiagramContext, {
25608
- type: "xyflow.resized";
25609
- }, undefined, Events>, ActionFunction<DiagramContext, {
25610
- type: "xyflow.resized";
25611
- }, Events, undefined, never, never, never, never, never>];
25692
+ readonly 'open.relationshipDetails': {
25693
+ readonly target: ".overlay.relationshipDetails";
25612
25694
  };
25613
- readonly 'open.elementDetails': {
25695
+ readonly 'open.relationshipsBrowser': {
25696
+ readonly target: ".overlay.relationshipsBrowser";
25697
+ };
25698
+ readonly 'open.source': {
25699
+ readonly actions: {
25700
+ readonly type: "trigger:OpenSource";
25701
+ readonly params: (data: {
25702
+ context: DiagramContext;
25703
+ event: {
25704
+ type: "open.source";
25705
+ } & OpenSourceParams;
25706
+ }) => {
25707
+ type: "open.source";
25708
+ } & OpenSourceParams;
25709
+ };
25710
+ };
25711
+ readonly 'walkthrough.start': {
25712
+ readonly guard: "is dynamic view";
25713
+ readonly target: ".walkthrough";
25714
+ };
25715
+ readonly 'toggle.feature': {
25614
25716
  readonly actions: ActionFunction<DiagramContext, {
25615
- type: "open.elementDetails";
25616
- fqn: Fqn;
25617
- fromNode?: NodeId | undefined;
25717
+ type: "toggle.feature";
25718
+ feature: FeatureName;
25719
+ forceValue?: boolean;
25618
25720
  }, Events, undefined, Values<{
25619
25721
  hotkeyActor: {
25620
25722
  src: "hotkeyActor";
@@ -25862,30 +25964,6 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
25862
25964
  id: "relationshipsBrowser";
25863
25965
  };
25864
25966
  }>, never, never, never, never>;
25865
- readonly target: ".overlay.elementDetails";
25866
- };
25867
- readonly 'open.relationshipDetails': {
25868
- readonly target: ".overlay.relationshipDetails";
25869
- };
25870
- readonly 'open.relationshipsBrowser': {
25871
- readonly target: ".overlay.relationshipsBrowser";
25872
- };
25873
- readonly 'open.source': {
25874
- readonly actions: {
25875
- readonly type: "trigger:OpenSource";
25876
- readonly params: (data: {
25877
- context: DiagramContext;
25878
- event: {
25879
- type: "open.source";
25880
- } & OpenSourceParams;
25881
- }) => {
25882
- type: "open.source";
25883
- } & OpenSourceParams;
25884
- };
25885
- };
25886
- readonly 'walkthrough.start': {
25887
- readonly guard: "is dynamic view";
25888
- readonly target: ".walkthrough";
25889
25967
  };
25890
25968
  };
25891
25969
  readonly exit: readonly [ StopAction<DiagramContext, Events, undefined, Events>, StopAction<DiagramContext, Events, undefined, Events>, ActionFunction<DiagramContext, Events, Events, undefined, Values<{
@@ -27159,6 +27237,9 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
27159
27237
  enableLikeC4Model: boolean;
27160
27238
  enableVscode: boolean;
27161
27239
  };
27240
+ toggledFeatures: {
27241
+ enableReadOnly: true;
27242
+ };
27162
27243
  initialized: false;
27163
27244
  viewportChangedManually: false;
27164
27245
  lastOnNavigate: null;
@@ -28047,6 +28128,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
28047
28128
  toPosition: XYPoint;
28048
28129
  };
28049
28130
  };
28131
+ updateFeatures: {
28132
+ type: "updateFeatures";
28133
+ params: NonReducibleUnknown;
28134
+ };
28050
28135
  }>, Values<{
28051
28136
  "enabled: FitView": {
28052
28137
  type: "enabled: FitView";
@@ -31191,6 +31276,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
31191
31276
  toPosition: XYPoint;
31192
31277
  };
31193
31278
  };
31279
+ updateFeatures: {
31280
+ type: "updateFeatures";
31281
+ params: NonReducibleUnknown;
31282
+ };
31194
31283
  }>, Values<{
31195
31284
  "enabled: FitView": {
31196
31285
  type: "enabled: FitView";
@@ -32666,6 +32755,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
32666
32755
  toPosition: XYPoint;
32667
32756
  };
32668
32757
  };
32758
+ updateFeatures: {
32759
+ type: "updateFeatures";
32760
+ params: NonReducibleUnknown;
32761
+ };
32669
32762
  }>, Values<{
32670
32763
  "enabled: FitView": {
32671
32764
  type: "enabled: FitView";
@@ -33054,6 +33147,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
33054
33147
  toPosition: XYPoint;
33055
33148
  };
33056
33149
  };
33150
+ updateFeatures: {
33151
+ type: "updateFeatures";
33152
+ params: NonReducibleUnknown;
33153
+ };
33057
33154
  }>, Values<{
33058
33155
  "enabled: FitView": {
33059
33156
  type: "enabled: FitView";
@@ -34405,6 +34502,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
34405
34502
  toPosition: XYPoint;
34406
34503
  };
34407
34504
  };
34505
+ updateFeatures: {
34506
+ type: "updateFeatures";
34507
+ params: NonReducibleUnknown;
34508
+ };
34408
34509
  }>, Values<{
34409
34510
  "enabled: FitView": {
34410
34511
  type: "enabled: FitView";
@@ -34801,6 +34902,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
34801
34902
  toPosition: XYPoint;
34802
34903
  };
34803
34904
  };
34905
+ updateFeatures: {
34906
+ type: "updateFeatures";
34907
+ params: NonReducibleUnknown;
34908
+ };
34804
34909
  }>, Values<{
34805
34910
  "enabled: FitView": {
34806
34911
  type: "enabled: FitView";
@@ -37015,6 +37120,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
37015
37120
  toPosition: XYPoint;
37016
37121
  };
37017
37122
  };
37123
+ updateFeatures: {
37124
+ type: "updateFeatures";
37125
+ params: NonReducibleUnknown;
37126
+ };
37018
37127
  }>, Values<{
37019
37128
  "enabled: FitView": {
37020
37129
  type: "enabled: FitView";
@@ -37307,10 +37416,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
37307
37416
  }>, never, never, never, never>;
37308
37417
  };
37309
37418
  readonly 'update.features': {
37310
- readonly actions: ActionFunction<DiagramContext, {
37311
- type: "update.features";
37312
- features: EnabledFeatures;
37313
- }, Events, undefined, Values<{
37419
+ readonly actions: "updateFeatures";
37420
+ };
37421
+ readonly 'update.nodeData': {
37422
+ readonly actions: ActionFunction<DiagramContext, Events, Events, undefined, Values<{
37314
37423
  hotkeyActor: {
37315
37424
  src: "hotkeyActor";
37316
37425
  logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
@@ -37558,7 +37667,7 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
37558
37667
  };
37559
37668
  }>, never, never, never, never>;
37560
37669
  };
37561
- readonly 'update.nodeData': {
37670
+ readonly 'update.edgeData': {
37562
37671
  readonly actions: ActionFunction<DiagramContext, Events, Events, undefined, Values<{
37563
37672
  hotkeyActor: {
37564
37673
  src: "hotkeyActor";
@@ -37807,8 +37916,27 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
37807
37916
  };
37808
37917
  }>, never, never, never, never>;
37809
37918
  };
37810
- readonly 'update.edgeData': {
37811
- readonly actions: ActionFunction<DiagramContext, Events, Events, undefined, Values<{
37919
+ readonly 'layout.align': {
37920
+ readonly guard: "not readonly";
37921
+ readonly actions: readonly [{
37922
+ readonly type: "layout.align";
37923
+ readonly params: ({ event }: {
37924
+ context: DiagramContext;
37925
+ event: {
37926
+ type: "layout.align";
37927
+ mode: AlignmentMode;
37928
+ };
37929
+ }) => {
37930
+ mode: AlignmentMode;
37931
+ };
37932
+ }, ActionFunction<DiagramContext, {
37933
+ type: "layout.align";
37934
+ mode: AlignmentMode;
37935
+ }, Events, undefined, never, never, never, never, never>];
37936
+ };
37937
+ readonly 'layout.resetEdgeControlPoints': {
37938
+ readonly guard: "not readonly";
37939
+ readonly actions: readonly [ ActionFunction<DiagramContext, Events, Events, undefined, Values<{
37812
37940
  hotkeyActor: {
37813
37941
  src: "hotkeyActor";
37814
37942
  logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
@@ -38054,29 +38182,26 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
38054
38182
  }, "active", any, any, any>, Events, Input, any, any>;
38055
38183
  id: "relationshipsBrowser";
38056
38184
  };
38057
- }>, never, never, never, never>;
38185
+ }>, never, never, never, never>, ActionFunction<DiagramContext, {
38186
+ type: "layout.resetEdgeControlPoints";
38187
+ }, Events, undefined, never, never, never, never, never>];
38058
38188
  };
38059
- readonly 'layout.align': {
38060
- readonly guard: "not readonly";
38061
- readonly actions: readonly [{
38062
- readonly type: "layout.align";
38063
- readonly params: ({ event }: {
38064
- context: DiagramContext;
38065
- event: {
38066
- type: "layout.align";
38067
- mode: AlignmentMode;
38068
- };
38069
- }) => {
38070
- mode: AlignmentMode;
38071
- };
38072
- }, ActionFunction<DiagramContext, {
38073
- type: "layout.align";
38074
- mode: AlignmentMode;
38189
+ readonly 'xyflow.resized': {
38190
+ readonly guard: ({ context }: {
38191
+ context: DiagramContext;
38192
+ }) => boolean;
38193
+ readonly actions: readonly [ CancelAction<DiagramContext, {
38194
+ type: "xyflow.resized";
38195
+ }, undefined, Events>, ActionFunction<DiagramContext, {
38196
+ type: "xyflow.resized";
38075
38197
  }, Events, undefined, never, never, never, never, never>];
38076
38198
  };
38077
- readonly 'layout.resetEdgeControlPoints': {
38078
- readonly guard: "not readonly";
38079
- readonly actions: readonly [ ActionFunction<DiagramContext, Events, Events, undefined, Values<{
38199
+ readonly 'open.elementDetails': {
38200
+ readonly actions: ActionFunction<DiagramContext, {
38201
+ type: "open.elementDetails";
38202
+ fqn: Fqn;
38203
+ fromNode?: NodeId | undefined;
38204
+ }, Events, undefined, Values<{
38080
38205
  hotkeyActor: {
38081
38206
  src: "hotkeyActor";
38082
38207
  logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
@@ -38322,25 +38447,37 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
38322
38447
  }, "active", any, any, any>, Events, Input, any, any>;
38323
38448
  id: "relationshipsBrowser";
38324
38449
  };
38325
- }>, never, never, never, never>, ActionFunction<DiagramContext, {
38326
- type: "layout.resetEdgeControlPoints";
38327
- }, Events, undefined, never, never, never, never, never>];
38450
+ }>, never, never, never, never>;
38451
+ readonly target: ".overlay.elementDetails";
38328
38452
  };
38329
- readonly 'xyflow.resized': {
38330
- readonly guard: ({ context }: {
38331
- context: DiagramContext;
38332
- }) => boolean;
38333
- readonly actions: readonly [ CancelAction<DiagramContext, {
38334
- type: "xyflow.resized";
38335
- }, undefined, Events>, ActionFunction<DiagramContext, {
38336
- type: "xyflow.resized";
38337
- }, Events, undefined, never, never, never, never, never>];
38453
+ readonly 'open.relationshipDetails': {
38454
+ readonly target: ".overlay.relationshipDetails";
38338
38455
  };
38339
- readonly 'open.elementDetails': {
38456
+ readonly 'open.relationshipsBrowser': {
38457
+ readonly target: ".overlay.relationshipsBrowser";
38458
+ };
38459
+ readonly 'open.source': {
38460
+ readonly actions: {
38461
+ readonly type: "trigger:OpenSource";
38462
+ readonly params: (data: {
38463
+ context: DiagramContext;
38464
+ event: {
38465
+ type: "open.source";
38466
+ } & OpenSourceParams;
38467
+ }) => {
38468
+ type: "open.source";
38469
+ } & OpenSourceParams;
38470
+ };
38471
+ };
38472
+ readonly 'walkthrough.start': {
38473
+ readonly guard: "is dynamic view";
38474
+ readonly target: ".walkthrough";
38475
+ };
38476
+ readonly 'toggle.feature': {
38340
38477
  readonly actions: ActionFunction<DiagramContext, {
38341
- type: "open.elementDetails";
38342
- fqn: Fqn;
38343
- fromNode?: NodeId | undefined;
38478
+ type: "toggle.feature";
38479
+ feature: FeatureName;
38480
+ forceValue?: boolean;
38344
38481
  }, Events, undefined, Values<{
38345
38482
  hotkeyActor: {
38346
38483
  src: "hotkeyActor";
@@ -38588,30 +38725,6 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
38588
38725
  id: "relationshipsBrowser";
38589
38726
  };
38590
38727
  }>, never, never, never, never>;
38591
- readonly target: ".overlay.elementDetails";
38592
- };
38593
- readonly 'open.relationshipDetails': {
38594
- readonly target: ".overlay.relationshipDetails";
38595
- };
38596
- readonly 'open.relationshipsBrowser': {
38597
- readonly target: ".overlay.relationshipsBrowser";
38598
- };
38599
- readonly 'open.source': {
38600
- readonly actions: {
38601
- readonly type: "trigger:OpenSource";
38602
- readonly params: (data: {
38603
- context: DiagramContext;
38604
- event: {
38605
- type: "open.source";
38606
- } & OpenSourceParams;
38607
- }) => {
38608
- type: "open.source";
38609
- } & OpenSourceParams;
38610
- };
38611
- };
38612
- readonly 'walkthrough.start': {
38613
- readonly guard: "is dynamic view";
38614
- readonly target: ".walkthrough";
38615
38728
  };
38616
38729
  };
38617
38730
  readonly exit: readonly [ StopAction<DiagramContext, Events, undefined, Events>, StopAction<DiagramContext, Events, undefined, Events>, ActionFunction<DiagramContext, Events, Events, undefined, Values<{
@@ -39388,6 +39501,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
39388
39501
  toPosition: XYPoint;
39389
39502
  };
39390
39503
  };
39504
+ updateFeatures: {
39505
+ type: "updateFeatures";
39506
+ params: NonReducibleUnknown;
39507
+ };
39391
39508
  }>, Values<{
39392
39509
  "enabled: FitView": {
39393
39510
  type: "enabled: FitView";
@@ -40218,6 +40335,9 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
40218
40335
  enableLikeC4Model: boolean;
40219
40336
  enableVscode: boolean;
40220
40337
  };
40338
+ toggledFeatures: {
40339
+ enableReadOnly: true;
40340
+ };
40221
40341
  initialized: false;
40222
40342
  viewportChangedManually: false;
40223
40343
  lastOnNavigate: null;
@@ -41106,6 +41226,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
41106
41226
  toPosition: XYPoint;
41107
41227
  };
41108
41228
  };
41229
+ updateFeatures: {
41230
+ type: "updateFeatures";
41231
+ params: NonReducibleUnknown;
41232
+ };
41109
41233
  }>, Values<{
41110
41234
  "enabled: FitView": {
41111
41235
  type: "enabled: FitView";
@@ -44250,6 +44374,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
44250
44374
  toPosition: XYPoint;
44251
44375
  };
44252
44376
  };
44377
+ updateFeatures: {
44378
+ type: "updateFeatures";
44379
+ params: NonReducibleUnknown;
44380
+ };
44253
44381
  }>, Values<{
44254
44382
  "enabled: FitView": {
44255
44383
  type: "enabled: FitView";
@@ -45725,6 +45853,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
45725
45853
  toPosition: XYPoint;
45726
45854
  };
45727
45855
  };
45856
+ updateFeatures: {
45857
+ type: "updateFeatures";
45858
+ params: NonReducibleUnknown;
45859
+ };
45728
45860
  }>, Values<{
45729
45861
  "enabled: FitView": {
45730
45862
  type: "enabled: FitView";
@@ -46113,6 +46245,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
46113
46245
  toPosition: XYPoint;
46114
46246
  };
46115
46247
  };
46248
+ updateFeatures: {
46249
+ type: "updateFeatures";
46250
+ params: NonReducibleUnknown;
46251
+ };
46116
46252
  }>, Values<{
46117
46253
  "enabled: FitView": {
46118
46254
  type: "enabled: FitView";
@@ -47464,6 +47600,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
47464
47600
  toPosition: XYPoint;
47465
47601
  };
47466
47602
  };
47603
+ updateFeatures: {
47604
+ type: "updateFeatures";
47605
+ params: NonReducibleUnknown;
47606
+ };
47467
47607
  }>, Values<{
47468
47608
  "enabled: FitView": {
47469
47609
  type: "enabled: FitView";
@@ -47860,6 +48000,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
47860
48000
  toPosition: XYPoint;
47861
48001
  };
47862
48002
  };
48003
+ updateFeatures: {
48004
+ type: "updateFeatures";
48005
+ params: NonReducibleUnknown;
48006
+ };
47863
48007
  }>, Values<{
47864
48008
  "enabled: FitView": {
47865
48009
  type: "enabled: FitView";
@@ -50074,6 +50218,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
50074
50218
  toPosition: XYPoint;
50075
50219
  };
50076
50220
  };
50221
+ updateFeatures: {
50222
+ type: "updateFeatures";
50223
+ params: NonReducibleUnknown;
50224
+ };
50077
50225
  }>, Values<{
50078
50226
  "enabled: FitView": {
50079
50227
  type: "enabled: FitView";
@@ -50366,10 +50514,10 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
50366
50514
  }>, never, never, never, never>;
50367
50515
  };
50368
50516
  readonly 'update.features': {
50369
- readonly actions: ActionFunction<DiagramContext, {
50370
- type: "update.features";
50371
- features: EnabledFeatures;
50372
- }, Events, undefined, Values<{
50517
+ readonly actions: "updateFeatures";
50518
+ };
50519
+ readonly 'update.nodeData': {
50520
+ readonly actions: ActionFunction<DiagramContext, Events, Events, undefined, Values<{
50373
50521
  hotkeyActor: {
50374
50522
  src: "hotkeyActor";
50375
50523
  logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
@@ -50617,7 +50765,7 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
50617
50765
  };
50618
50766
  }>, never, never, never, never>;
50619
50767
  };
50620
- readonly 'update.nodeData': {
50768
+ readonly 'update.edgeData': {
50621
50769
  readonly actions: ActionFunction<DiagramContext, Events, Events, undefined, Values<{
50622
50770
  hotkeyActor: {
50623
50771
  src: "hotkeyActor";
@@ -50866,8 +51014,27 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
50866
51014
  };
50867
51015
  }>, never, never, never, never>;
50868
51016
  };
50869
- readonly 'update.edgeData': {
50870
- readonly actions: ActionFunction<DiagramContext, Events, Events, undefined, Values<{
51017
+ readonly 'layout.align': {
51018
+ readonly guard: "not readonly";
51019
+ readonly actions: readonly [{
51020
+ readonly type: "layout.align";
51021
+ readonly params: ({ event }: {
51022
+ context: DiagramContext;
51023
+ event: {
51024
+ type: "layout.align";
51025
+ mode: AlignmentMode;
51026
+ };
51027
+ }) => {
51028
+ mode: AlignmentMode;
51029
+ };
51030
+ }, ActionFunction<DiagramContext, {
51031
+ type: "layout.align";
51032
+ mode: AlignmentMode;
51033
+ }, Events, undefined, never, never, never, never, never>];
51034
+ };
51035
+ readonly 'layout.resetEdgeControlPoints': {
51036
+ readonly guard: "not readonly";
51037
+ readonly actions: readonly [ ActionFunction<DiagramContext, Events, Events, undefined, Values<{
50871
51038
  hotkeyActor: {
50872
51039
  src: "hotkeyActor";
50873
51040
  logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
@@ -51113,29 +51280,26 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
51113
51280
  }, "active", any, any, any>, Events, Input, any, any>;
51114
51281
  id: "relationshipsBrowser";
51115
51282
  };
51116
- }>, never, never, never, never>;
51283
+ }>, never, never, never, never>, ActionFunction<DiagramContext, {
51284
+ type: "layout.resetEdgeControlPoints";
51285
+ }, Events, undefined, never, never, never, never, never>];
51117
51286
  };
51118
- readonly 'layout.align': {
51119
- readonly guard: "not readonly";
51120
- readonly actions: readonly [{
51121
- readonly type: "layout.align";
51122
- readonly params: ({ event }: {
51123
- context: DiagramContext;
51124
- event: {
51125
- type: "layout.align";
51126
- mode: AlignmentMode;
51127
- };
51128
- }) => {
51129
- mode: AlignmentMode;
51130
- };
51131
- }, ActionFunction<DiagramContext, {
51132
- type: "layout.align";
51133
- mode: AlignmentMode;
51287
+ readonly 'xyflow.resized': {
51288
+ readonly guard: ({ context }: {
51289
+ context: DiagramContext;
51290
+ }) => boolean;
51291
+ readonly actions: readonly [ CancelAction<DiagramContext, {
51292
+ type: "xyflow.resized";
51293
+ }, undefined, Events>, ActionFunction<DiagramContext, {
51294
+ type: "xyflow.resized";
51134
51295
  }, Events, undefined, never, never, never, never, never>];
51135
51296
  };
51136
- readonly 'layout.resetEdgeControlPoints': {
51137
- readonly guard: "not readonly";
51138
- readonly actions: readonly [ ActionFunction<DiagramContext, Events, Events, undefined, Values<{
51297
+ readonly 'open.elementDetails': {
51298
+ readonly actions: ActionFunction<DiagramContext, {
51299
+ type: "open.elementDetails";
51300
+ fqn: Fqn;
51301
+ fromNode?: NodeId | undefined;
51302
+ }, Events, undefined, Values<{
51139
51303
  hotkeyActor: {
51140
51304
  src: "hotkeyActor";
51141
51305
  logic: CallbackActorLogic<AnyEventObject, NonReducibleUnknown, HotKeyEvent>;
@@ -51381,25 +51545,37 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
51381
51545
  }, "active", any, any, any>, Events, Input, any, any>;
51382
51546
  id: "relationshipsBrowser";
51383
51547
  };
51384
- }>, never, never, never, never>, ActionFunction<DiagramContext, {
51385
- type: "layout.resetEdgeControlPoints";
51386
- }, Events, undefined, never, never, never, never, never>];
51548
+ }>, never, never, never, never>;
51549
+ readonly target: ".overlay.elementDetails";
51387
51550
  };
51388
- readonly 'xyflow.resized': {
51389
- readonly guard: ({ context }: {
51390
- context: DiagramContext;
51391
- }) => boolean;
51392
- readonly actions: readonly [ CancelAction<DiagramContext, {
51393
- type: "xyflow.resized";
51394
- }, undefined, Events>, ActionFunction<DiagramContext, {
51395
- type: "xyflow.resized";
51396
- }, Events, undefined, never, never, never, never, never>];
51551
+ readonly 'open.relationshipDetails': {
51552
+ readonly target: ".overlay.relationshipDetails";
51397
51553
  };
51398
- readonly 'open.elementDetails': {
51554
+ readonly 'open.relationshipsBrowser': {
51555
+ readonly target: ".overlay.relationshipsBrowser";
51556
+ };
51557
+ readonly 'open.source': {
51558
+ readonly actions: {
51559
+ readonly type: "trigger:OpenSource";
51560
+ readonly params: (data: {
51561
+ context: DiagramContext;
51562
+ event: {
51563
+ type: "open.source";
51564
+ } & OpenSourceParams;
51565
+ }) => {
51566
+ type: "open.source";
51567
+ } & OpenSourceParams;
51568
+ };
51569
+ };
51570
+ readonly 'walkthrough.start': {
51571
+ readonly guard: "is dynamic view";
51572
+ readonly target: ".walkthrough";
51573
+ };
51574
+ readonly 'toggle.feature': {
51399
51575
  readonly actions: ActionFunction<DiagramContext, {
51400
- type: "open.elementDetails";
51401
- fqn: Fqn;
51402
- fromNode?: NodeId | undefined;
51576
+ type: "toggle.feature";
51577
+ feature: FeatureName;
51578
+ forceValue?: boolean;
51403
51579
  }, Events, undefined, Values<{
51404
51580
  hotkeyActor: {
51405
51581
  src: "hotkeyActor";
@@ -51647,30 +51823,6 @@ export declare const LikeC4ViewMachineContextProvider: (props: {
51647
51823
  id: "relationshipsBrowser";
51648
51824
  };
51649
51825
  }>, never, never, never, never>;
51650
- readonly target: ".overlay.elementDetails";
51651
- };
51652
- readonly 'open.relationshipDetails': {
51653
- readonly target: ".overlay.relationshipDetails";
51654
- };
51655
- readonly 'open.relationshipsBrowser': {
51656
- readonly target: ".overlay.relationshipsBrowser";
51657
- };
51658
- readonly 'open.source': {
51659
- readonly actions: {
51660
- readonly type: "trigger:OpenSource";
51661
- readonly params: (data: {
51662
- context: DiagramContext;
51663
- event: {
51664
- type: "open.source";
51665
- } & OpenSourceParams;
51666
- }) => {
51667
- type: "open.source";
51668
- } & OpenSourceParams;
51669
- };
51670
- };
51671
- readonly 'walkthrough.start': {
51672
- readonly guard: "is dynamic view";
51673
- readonly target: ".walkthrough";
51674
51826
  };
51675
51827
  };
51676
51828
  readonly exit: readonly [ StopAction<DiagramContext, Events, undefined, Events>, StopAction<DiagramContext, Events, undefined, Events>, ActionFunction<DiagramContext, Events, Events, undefined, Values<{