likec4 1.19.1 → 1.20.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.
Files changed (38) hide show
  1. package/__app__/react/likec4.tsx +16 -114
  2. package/__app__/src/chunks/{-index-overview-C9eO_hFX.js → -index-overview-r2wnjkuP.js} +20 -19
  3. package/__app__/src/chunks/{likec4-CusAw_j6.js → likec4-CK8zVxjc.js} +1172 -1209
  4. package/__app__/src/chunks/main-DnSU4JID.js +23887 -0
  5. package/__app__/src/chunks/{mantine-B_6mKFFA.js → mantine-B9NZkjVg.js} +993 -981
  6. package/__app__/src/chunks/tanstack-router-B9I-d36d.js +3032 -0
  7. package/__app__/src/main.js +1 -2
  8. package/__app__/src/style.css +1 -1
  9. package/__app__/webcomponent/webcomponent.js +31797 -32401
  10. package/dist/chunks/prompt.cjs +1 -1
  11. package/dist/chunks/prompt.mjs +1 -1
  12. package/dist/cli/index.cjs +45 -56
  13. package/dist/cli/index.mjs +29 -40
  14. package/dist/index.cjs +1 -1
  15. package/dist/index.d.cts +132 -91
  16. package/dist/index.d.mts +132 -91
  17. package/dist/index.d.ts +132 -91
  18. package/dist/index.mjs +1 -1
  19. package/dist/model/index.cjs +1 -1
  20. package/dist/model/index.d.cts +4 -252
  21. package/dist/model/index.d.mts +4 -252
  22. package/dist/model/index.d.ts +4 -252
  23. package/dist/model/index.mjs +1 -1
  24. package/dist/shared/likec4.DBfW7tKq.cjs +1857 -0
  25. package/dist/shared/likec4.DCOeDSBO.mjs +1857 -0
  26. package/package.json +41 -41
  27. package/react/index.d.ts +771 -1537
  28. package/react/index.js +36748 -37458
  29. package/react/style.css +1 -1
  30. package/__app__/src/chunks/main-DY2KbFcO.js +0 -24136
  31. package/__app__/src/chunks/tanstack-router-BBWuTKWO.js +0 -2373
  32. package/dist/shared/likec4.1r1CQuHw.mjs +0 -9
  33. package/dist/shared/likec4.CLgnaOeL.mjs +0 -1856
  34. package/dist/shared/likec4.CfqfZIn-.cjs +0 -1856
  35. package/dist/shared/likec4.D81G5JV4.cjs +0 -9
  36. package/dist/shared/likec4.DCwaTTuF.d.cts +0 -1625
  37. package/dist/shared/likec4.DCwaTTuF.d.mts +0 -1625
  38. package/dist/shared/likec4.DCwaTTuF.d.ts +0 -1625
package/dist/index.d.mts CHANGED
@@ -1,9 +1,10 @@
1
- import { i as ComputedView, T as OverviewGraph, z as DiagramView, F as Fqn, $ as ViewId, K as ElementKind$1, a2 as NonEmptyArray, Z as Tag$1, a3 as ElementShape$1, a4 as IconUrl, m as Color$1, a5 as BorderStyle, a6 as RelationshipKind$1, a7 as RelationshipLineType, a8 as RelationshipArrowType, a9 as CustomColor$1, O as HexColorLiteral, v as DeploymentNodeKind$1, aa as DeploymentNodeKindSpecification, X as RelationId, t as DeploymentElement$1, u as DeploymentNode$1, s as DeployedInstance$1, w as DeploymentRelation$1, ab as ModelGlobals, ac as ViewRule$1, ad as ViewManualLayout, ae as DynamicViewStepOrParallel, af as DynamicViewRule$1, ag as DeploymentViewRule$1, U as ParsedLikeC4Model, r as ComputedLikeC4Model, ah as ViewChange, L as LikeC4Model } from './shared/likec4.DCwaTTuF.mjs';
2
- export { k as AbstractRelation, A as AnyAux, l as AutoLayoutDirection, e as Aux, B as BBox, n as ComputedDeploymentView, o as ComputedDynamicView, p as ComputedEdge, q as ComputedElementView, C as ComputedNode, x as DeploymentView, y as DiagramEdge, j as DiagramNode, G as DynamicView, H as EdgeId, J as Element, M as ElementView, P as LayoutedLikeC4Model, g as LikeC4DeploymentModel, Q as LikeC4View, h as LikeC4ViewModel, S as NodeId, V as Point, W as RelationExpr, Y as StepEdgeId, _ as ThemeColor, a1 as XYPoint } from './shared/likec4.DCwaTTuF.mjs';
1
+ import { LikeC4Model } from '@likec4/core/model';
2
+ export { AnyAux, Aux, LikeC4DeploymentModel, LikeC4Model, LikeC4ViewModel } from '@likec4/core/model';
3
+ import * as c4 from '@likec4/core';
4
+ import { ComputedView, OverviewGraph, DiagramView, Fqn, ViewId, invariant, ViewChange } from '@likec4/core';
5
+ export { AbstractRelation, AutoLayoutDirection, BBox, Color, ComputedDeploymentView, ComputedDynamicView, ComputedEdge, ComputedElementView, ComputedLikeC4Model, ComputedNode, ComputedView, DeployedInstance, DeploymentElement, DeploymentNode, DeploymentNodeKind, DeploymentRelation, DeploymentView, DiagramEdge, DiagramNode, DiagramView, DynamicView, EdgeId, Element, ElementKind, ElementView, Fqn, HexColorLiteral, LayoutedLikeC4Model, LikeC4View, NodeId, ParsedLikeC4Model, Point, RelationExpr, RelationId, StepEdgeId, Tag, ThemeColor, ViewId, XYPoint } from '@likec4/core';
3
6
  import { Tagged, Writable, ValueOf, ConditionalPick } from 'type-fest';
4
7
 
5
- declare function invariant(condition: any, message?: string): asserts condition;
6
-
7
8
  /**
8
9
  * A tagging type for string properties that are actually document URIs.
9
10
  */
@@ -13925,6 +13926,8 @@ type CustomColorId = 'element' | 'model' | ArrowType | ElementShape | LineOption
13925
13926
  type CustomColorValue = string;
13926
13927
  type DeploymentElement = DeployedInstance | DeploymentNode;
13927
13928
  declare const DeploymentElement = "DeploymentElement";
13929
+ type DeploymentNodeOrElementKind = DeploymentNodeKind | ElementKind;
13930
+ declare const DeploymentNodeOrElementKind = "DeploymentNodeOrElementKind";
13928
13931
  type DeploymentViewRule = DeploymentViewRulePredicate | DeploymentViewRuleStyle | ViewRuleAutoLayout;
13929
13932
  declare const DeploymentViewRule = "DeploymentViewRule";
13930
13933
  type DynamicViewRule = DynamicViewGlobalPredicateRef | DynamicViewIncludePredicate | ViewRuleAutoLayout | ViewRuleStyleOrGlobalRef;
@@ -13938,19 +13941,20 @@ declare const ElementPredicateOrWhere = "ElementPredicateOrWhere";
13938
13941
  type ElementProperty = ElementStringProperty | ElementStyleProperty | IconProperty | LinkProperty | MetadataProperty;
13939
13942
  declare const ElementProperty = "ElementProperty";
13940
13943
  type ElementShape = 'browser' | 'cylinder' | 'mobile' | 'person' | 'queue' | 'rectangle' | 'storage';
13941
- type ExpressionV2 = FqnExpr | RelationExpr;
13944
+ type ExpressionV2 = FqnExpr | RelationPredicateOrWhereV2;
13942
13945
  declare const ExpressionV2 = "ExpressionV2";
13943
13946
  type FqnExpr = FqnRefExpr | WildcardExpression;
13944
13947
  declare const FqnExpr = "FqnExpr";
13945
13948
  type FqnReferenceable = Element | ExtendElement | Referenceable;
13946
13949
  declare const FqnReferenceable = "FqnReferenceable";
13947
13950
  type IconId = string;
13948
- type Id = 'deployment' | 'element' | 'group' | 'instance' | 'model' | 'node' | ArrowType | ElementShape | LineOptions | ThemeColor | string;
13951
+ type Id = 'deployment' | 'element' | 'group' | 'instance' | 'model' | 'node' | ArrowType | ElementShape | LineOptions | Participant | ThemeColor | string;
13949
13952
  type LikeC4View = DeploymentView | DynamicView | ElementView;
13950
13953
  declare const LikeC4View = "LikeC4View";
13951
13954
  type LineOptions = 'dashed' | 'dotted' | 'solid';
13952
13955
  type MetadataProperty = MetadataBody;
13953
13956
  declare const MetadataProperty = "MetadataProperty";
13957
+ type Participant = 'source' | 'target';
13954
13958
  type Predicate = ElementPredicate | RelationPredicate;
13955
13959
  declare const Predicate = "Predicate";
13956
13960
  type Referenceable = DeployedInstance | DeploymentNode | Element;
@@ -13963,6 +13967,8 @@ type RelationPredicate = RelationPredicateOrWhere | RelationPredicateWith;
13963
13967
  declare const RelationPredicate = "RelationPredicate";
13964
13968
  type RelationPredicateOrWhere = RelationExpression | RelationPredicateWhere;
13965
13969
  declare const RelationPredicateOrWhere = "RelationPredicateOrWhere";
13970
+ type RelationPredicateOrWhereV2 = RelationExpr | RelationPredicateWhereV2;
13971
+ declare const RelationPredicateOrWhereV2 = "RelationPredicateOrWhereV2";
13966
13972
  type RelationProperty = LinkProperty | MetadataProperty | RelationNavigateToProperty | RelationStringProperty | RelationStyleProperty;
13967
13973
  declare const RelationProperty = "RelationProperty";
13968
13974
  type RelationshipStyleProperty = ArrowProperty | ColorProperty | LineProperty;
@@ -13988,13 +13994,13 @@ type WhereElementExpression = WhereBinaryExpression | WhereElement | WhereElemen
13988
13994
  declare const WhereElementExpression = "WhereElementExpression";
13989
13995
  type WhereExpression = WhereElementExpression | WhereRelationExpression;
13990
13996
  declare const WhereExpression = "WhereExpression";
13991
- type WhereKindEqual = WhereElementKind | WhereRelationKind;
13997
+ type WhereKindEqual = WhereElementKind | WhereRelationKind | WhereRelationParticipantKind;
13992
13998
  declare const WhereKindEqual = "WhereKindEqual";
13993
- type WhereRelation = WhereRelationKind | WhereRelationTag;
13999
+ type WhereRelation = WhereRelationKind | WhereRelationParticipantKind | WhereRelationParticipantTag | WhereRelationTag;
13994
14000
  declare const WhereRelation = "WhereRelation";
13995
14001
  type WhereRelationExpression = WhereBinaryExpression | WhereRelation | WhereRelationNegation;
13996
14002
  declare const WhereRelationExpression = "WhereRelationExpression";
13997
- type WhereTagEqual = WhereElementTag | WhereRelationTag;
14003
+ type WhereTagEqual = WhereElementTag | WhereRelationParticipantTag | WhereRelationTag;
13998
14004
  declare const WhereTagEqual = "WhereTagEqual";
13999
14005
  interface ArrowProperty extends AstNode {
14000
14006
  readonly $container: CustomRelationProperties | RelationStyleProperty | SpecificationRelationshipKind;
@@ -14131,7 +14137,7 @@ interface DeploymentViewRuleStyle extends AstNode {
14131
14137
  }
14132
14138
  declare const DeploymentViewRuleStyle = "DeploymentViewRuleStyle";
14133
14139
  interface DirectedRelationExpr extends AstNode {
14134
- readonly $container: DeploymentViewRulePredicateExpression;
14140
+ readonly $container: DeploymentViewRulePredicateExpression | RelationPredicateWhereV2;
14135
14141
  readonly $type: 'DirectedRelationExpr';
14136
14142
  source: OutgoingRelationExpr;
14137
14143
  target: FqnExpr;
@@ -14422,7 +14428,7 @@ interface IncludePredicate extends AstNode {
14422
14428
  }
14423
14429
  declare const IncludePredicate = "IncludePredicate";
14424
14430
  interface IncomingRelationExpr extends AstNode {
14425
- readonly $container: DeploymentViewRulePredicateExpression | InOutRelationExpr;
14431
+ readonly $container: DeploymentViewRulePredicateExpression | InOutRelationExpr | RelationPredicateWhereV2;
14426
14432
  readonly $type: 'IncomingRelationExpr';
14427
14433
  to: FqnExpr;
14428
14434
  }
@@ -14434,7 +14440,7 @@ interface IncomingRelationExpression extends AstNode {
14434
14440
  }
14435
14441
  declare const IncomingRelationExpression = "IncomingRelationExpression";
14436
14442
  interface InOutRelationExpr extends AstNode {
14437
- readonly $container: DeploymentViewRulePredicateExpression;
14443
+ readonly $container: DeploymentViewRulePredicateExpression | RelationPredicateWhereV2;
14438
14444
  readonly $type: 'InOutRelationExpr';
14439
14445
  inout: IncomingRelationExpr;
14440
14446
  }
@@ -14546,7 +14552,7 @@ interface OpacityProperty extends AstNode {
14546
14552
  }
14547
14553
  declare const OpacityProperty = "OpacityProperty";
14548
14554
  interface OutgoingRelationExpr extends AstNode {
14549
- readonly $container: DeploymentViewRulePredicateExpression | DirectedRelationExpr;
14555
+ readonly $container: DeploymentViewRulePredicateExpression | DirectedRelationExpr | RelationPredicateWhereV2;
14550
14556
  readonly $type: 'OutgoingRelationExpr';
14551
14557
  from: FqnExpr;
14552
14558
  isBidirectional: boolean;
@@ -14601,6 +14607,13 @@ interface RelationPredicateWhere extends AstNode {
14601
14607
  where?: WhereRelationExpression;
14602
14608
  }
14603
14609
  declare const RelationPredicateWhere = "RelationPredicateWhere";
14610
+ interface RelationPredicateWhereV2 extends AstNode {
14611
+ readonly $container: DeploymentViewRulePredicateExpression;
14612
+ readonly $type: 'RelationPredicateWhereV2';
14613
+ subject: RelationExpr;
14614
+ where?: WhereRelationExpression;
14615
+ }
14616
+ declare const RelationPredicateWhereV2 = "RelationPredicateWhereV2";
14604
14617
  interface RelationPredicateWith extends AstNode {
14605
14618
  readonly $container: Predicates;
14606
14619
  readonly $type: 'RelationPredicateWith';
@@ -14756,7 +14769,7 @@ interface ViewStringProperty extends AstNode {
14756
14769
  }
14757
14770
  declare const ViewStringProperty = "ViewStringProperty";
14758
14771
  interface WhereBinaryExpression extends AstNode {
14759
- readonly $container: ElementPredicateWhere | RelationPredicateWhere | WhereBinaryExpression | WhereElementNegation | WhereRelationNegation;
14772
+ readonly $container: ElementPredicateWhere | RelationPredicateWhere | RelationPredicateWhereV2 | WhereBinaryExpression | WhereElementNegation | WhereRelationNegation;
14760
14773
  readonly $type: 'WhereBinaryExpression';
14761
14774
  left: WhereElementExpression | WhereRelationExpression;
14762
14775
  operator: 'and' | 'or';
@@ -14786,7 +14799,7 @@ interface WhereElementTag extends AstNode {
14786
14799
  }
14787
14800
  declare const WhereElementTag = "WhereElementTag";
14788
14801
  interface WhereRelationKind extends AstNode {
14789
- readonly $container: RelationPredicateWhere | WhereBinaryExpression | WhereRelationNegation;
14802
+ readonly $container: RelationPredicateWhere | RelationPredicateWhereV2 | WhereBinaryExpression | WhereRelationNegation;
14790
14803
  readonly $type: 'WhereRelationKind';
14791
14804
  not: boolean;
14792
14805
  operator: 'is' | string;
@@ -14794,13 +14807,31 @@ interface WhereRelationKind extends AstNode {
14794
14807
  }
14795
14808
  declare const WhereRelationKind = "WhereRelationKind";
14796
14809
  interface WhereRelationNegation extends AstNode {
14797
- readonly $container: RelationPredicateWhere | WhereBinaryExpression | WhereRelationNegation;
14810
+ readonly $container: RelationPredicateWhere | RelationPredicateWhereV2 | WhereBinaryExpression | WhereRelationNegation;
14798
14811
  readonly $type: 'WhereRelationNegation';
14799
14812
  value: WhereRelationExpression;
14800
14813
  }
14801
14814
  declare const WhereRelationNegation = "WhereRelationNegation";
14815
+ interface WhereRelationParticipantKind extends AstNode {
14816
+ readonly $container: RelationPredicateWhere | RelationPredicateWhereV2 | WhereBinaryExpression | WhereRelationNegation;
14817
+ readonly $type: 'WhereRelationParticipantKind';
14818
+ not: boolean;
14819
+ operator: 'is' | string;
14820
+ participant: Participant;
14821
+ value?: Reference<DeploymentNodeOrElementKind>;
14822
+ }
14823
+ declare const WhereRelationParticipantKind = "WhereRelationParticipantKind";
14824
+ interface WhereRelationParticipantTag extends AstNode {
14825
+ readonly $container: RelationPredicateWhere | RelationPredicateWhereV2 | WhereBinaryExpression | WhereRelationNegation;
14826
+ readonly $type: 'WhereRelationParticipantTag';
14827
+ not: boolean;
14828
+ operator: 'is' | string;
14829
+ participant: Participant;
14830
+ value?: Reference<Tag>;
14831
+ }
14832
+ declare const WhereRelationParticipantTag = "WhereRelationParticipantTag";
14802
14833
  interface WhereRelationTag extends AstNode {
14803
- readonly $container: RelationPredicateWhere | WhereBinaryExpression | WhereRelationNegation;
14834
+ readonly $container: RelationPredicateWhere | RelationPredicateWhereV2 | WhereBinaryExpression | WhereRelationNegation;
14804
14835
  readonly $type: 'WhereRelationTag';
14805
14836
  not: boolean;
14806
14837
  operator: 'is' | string;
@@ -14826,6 +14857,7 @@ type LikeC4AstType = {
14826
14857
  DeploymentNode: DeploymentNode;
14827
14858
  DeploymentNodeBody: DeploymentNodeBody;
14828
14859
  DeploymentNodeKind: DeploymentNodeKind;
14860
+ DeploymentNodeOrElementKind: DeploymentNodeOrElementKind;
14829
14861
  DeploymentRelation: DeploymentRelation;
14830
14862
  DeploymentRelationBody: DeploymentRelationBody;
14831
14863
  DeploymentView: DeploymentView;
@@ -14915,7 +14947,9 @@ type LikeC4AstType = {
14915
14947
  RelationNavigateToProperty: RelationNavigateToProperty;
14916
14948
  RelationPredicate: RelationPredicate;
14917
14949
  RelationPredicateOrWhere: RelationPredicateOrWhere;
14950
+ RelationPredicateOrWhereV2: RelationPredicateOrWhereV2;
14918
14951
  RelationPredicateWhere: RelationPredicateWhere;
14952
+ RelationPredicateWhereV2: RelationPredicateWhereV2;
14919
14953
  RelationPredicateWith: RelationPredicateWith;
14920
14954
  RelationProperty: RelationProperty;
14921
14955
  RelationStringProperty: RelationStringProperty;
@@ -14958,6 +14992,8 @@ type LikeC4AstType = {
14958
14992
  WhereRelationExpression: WhereRelationExpression;
14959
14993
  WhereRelationKind: WhereRelationKind;
14960
14994
  WhereRelationNegation: WhereRelationNegation;
14995
+ WhereRelationParticipantKind: WhereRelationParticipantKind;
14996
+ WhereRelationParticipantTag: WhereRelationParticipantTag;
14961
14997
  WhereRelationTag: WhereRelationTag;
14962
14998
  WhereTagEqual: WhereTagEqual;
14963
14999
  WildcardExpression: WildcardExpression;
@@ -14965,7 +15001,7 @@ type LikeC4AstType = {
14965
15001
 
14966
15002
  type Guard<N extends AstNode> = (n: AstNode) => n is N;
14967
15003
  type Guarded<G> = G extends Guard<infer N> ? N : never;
14968
- declare const isValidatableAstNode: (n: AstNode) => n is DeployedInstance | DeploymentNode | DeploymentViewRulePredicate | DeploymentViewRuleStyle | ViewRuleAutoLayout | DynamicViewGlobalPredicateRef | DynamicViewIncludePredicate | ViewRuleGlobalStyle | ViewRuleStyle | ElementDescedantsExpression | ElementKindExpression | ElementRef | ElementTagExpression | ExpandElementExpression | WildcardExpression | ElementPredicateWhere | ElementPredicateWith | ElementStringProperty | ElementStyleProperty | IconProperty | LinkProperty | MetadataBody | FqnRefExpr | DirectedRelationExpr | InOutRelationExpr | IncomingRelationExpr | OutgoingRelationExpr | Element | ExtendElement | DeploymentView | DynamicView | ElementView | DirectedRelationExpression | InOutRelationExpression | IncomingRelationExpression | OutgoingRelationExpression | RelationPredicateWhere | RelationPredicateWith | RelationStringProperty | ArrowProperty | ColorProperty | LineProperty | MetadataAttribute | NotationProperty | NotesProperty | SpecificationElementStringProperty | SpecificationRelationshipStringProperty | ViewStringProperty | BorderProperty | OpacityProperty | ShapeProperty | ViewRuleGlobalPredicateRef | ViewRuleGroup | ExcludePredicate | IncludePredicate | SpecificationRelationshipKind | GlobalStyle | SpecificationColor | NavigateToProperty | DynamicViewStep | Tags | DeploymentRelation | SpecificationDeploymentNodeKind | DynamicViewParallelSteps | GlobalDynamicPredicateGroup | DynamicViewPredicateIterator | Relation | SpecificationElementKind | GlobalPredicateGroup | Globals | GlobalStyleGroup | SpecificationRule | SpecificationTag;
15004
+ declare const isValidatableAstNode: (n: AstNode) => n is DeployedInstance | DeploymentNode | DeploymentViewRulePredicate | DeploymentViewRuleStyle | ViewRuleAutoLayout | DynamicViewGlobalPredicateRef | DynamicViewIncludePredicate | ViewRuleGlobalStyle | ViewRuleStyle | ElementDescedantsExpression | ElementKindExpression | ElementRef | ElementTagExpression | ExpandElementExpression | WildcardExpression | ElementPredicateWhere | ElementPredicateWith | ElementStringProperty | ElementStyleProperty | IconProperty | LinkProperty | MetadataBody | FqnRefExpr | DirectedRelationExpr | InOutRelationExpr | IncomingRelationExpr | OutgoingRelationExpr | RelationPredicateWhereV2 | Element | ExtendElement | DeploymentView | DynamicView | ElementView | DirectedRelationExpression | InOutRelationExpression | IncomingRelationExpression | OutgoingRelationExpression | RelationPredicateWhere | RelationPredicateWith | RelationStringProperty | ArrowProperty | ColorProperty | LineProperty | MetadataAttribute | NotationProperty | NotesProperty | SpecificationElementStringProperty | SpecificationRelationshipStringProperty | ViewStringProperty | BorderProperty | OpacityProperty | ShapeProperty | ViewRuleGlobalPredicateRef | ViewRuleGroup | ExcludePredicate | IncludePredicate | SpecificationRelationshipKind | GlobalStyle | SpecificationColor | NavigateToProperty | DynamicViewStep | Tags | DeploymentRelation | SpecificationDeploymentNodeKind | DynamicViewParallelSteps | GlobalDynamicPredicateGroup | DynamicViewPredicateIterator | Relation | SpecificationElementKind | GlobalPredicateGroup | Globals | GlobalStyleGroup | SpecificationRule | SpecificationTag;
14969
15005
  type ValidatableAstNode = Guarded<typeof isValidatableAstNode>;
14970
15006
  declare function checksFromDiagnostics(doc: LikeC4LangiumDocument): {
14971
15007
  isValid: (n: ValidatableAstNode) => boolean;
@@ -14977,128 +15013,128 @@ type IsValidFn = ChecksFromDiagnostics['isValid'];
14977
15013
  declare const idattr: unique symbol;
14978
15014
  declare module './generated/ast' {
14979
15015
  interface Element {
14980
- [idattr]?: Fqn | undefined;
15016
+ [idattr]?: c4.Fqn | undefined;
14981
15017
  }
14982
15018
  interface ElementView {
14983
- [idattr]?: ViewId | undefined;
15019
+ [idattr]?: c4.ViewId | undefined;
14984
15020
  }
14985
15021
  interface DynamicView {
14986
- [idattr]?: ViewId | undefined;
15022
+ [idattr]?: c4.ViewId | undefined;
14987
15023
  }
14988
15024
  interface DeploymentView {
14989
- [idattr]?: ViewId | undefined;
15025
+ [idattr]?: c4.ViewId | undefined;
14990
15026
  }
14991
15027
  interface DeploymentNode {
14992
- [idattr]?: Fqn | undefined;
15028
+ [idattr]?: c4.Fqn | undefined;
14993
15029
  }
14994
15030
  interface DeployedInstance {
14995
- [idattr]?: Fqn | undefined;
15031
+ [idattr]?: c4.Fqn | undefined;
14996
15032
  }
14997
15033
  }
14998
15034
  type ParsedElementStyle = {
14999
- shape?: ElementShape$1;
15000
- icon?: IconUrl;
15001
- color?: Color$1;
15002
- border?: BorderStyle;
15035
+ shape?: c4.ElementShape;
15036
+ icon?: c4.IconUrl;
15037
+ color?: c4.Color;
15038
+ border?: c4.BorderStyle;
15003
15039
  opacity?: number;
15004
15040
  };
15005
15041
  interface ParsedAstSpecification {
15006
- tags: Set<Tag$1>;
15007
- elements: Record<ElementKind$1, {
15042
+ tags: Set<c4.Tag>;
15043
+ elements: Record<c4.ElementKind, {
15008
15044
  technology?: string;
15009
15045
  notation?: string;
15010
15046
  style: ParsedElementStyle;
15011
15047
  }>;
15012
- relationships: Record<RelationshipKind$1, {
15048
+ relationships: Record<c4.RelationshipKind, {
15013
15049
  technology?: string;
15014
15050
  notation?: string;
15015
- color?: Color$1;
15016
- line?: RelationshipLineType;
15017
- head?: RelationshipArrowType;
15018
- tail?: RelationshipArrowType;
15051
+ color?: c4.Color;
15052
+ line?: c4.RelationshipLineType;
15053
+ head?: c4.RelationshipArrowType;
15054
+ tail?: c4.RelationshipArrowType;
15019
15055
  }>;
15020
- colors: Record<CustomColor$1, {
15021
- color: HexColorLiteral;
15056
+ colors: Record<c4.CustomColor, {
15057
+ color: c4.HexColorLiteral;
15022
15058
  }>;
15023
- deployments: Record<DeploymentNodeKind$1, DeploymentNodeKindSpecification>;
15059
+ deployments: Record<c4.DeploymentNodeKind, c4.DeploymentNodeKindSpecification>;
15024
15060
  }
15025
15061
  interface ParsedAstElement {
15026
- id: Fqn;
15062
+ id: c4.Fqn;
15027
15063
  astPath: string;
15028
- kind: ElementKind$1;
15064
+ kind: c4.ElementKind;
15029
15065
  title: string;
15030
15066
  description?: string;
15031
15067
  technology?: string;
15032
- tags?: NonEmptyArray<Tag$1>;
15033
- links?: NonEmptyArray<ParsedLink>;
15068
+ tags?: c4.NonEmptyArray<c4.Tag>;
15069
+ links?: c4.NonEmptyArray<ParsedLink>;
15034
15070
  style: ParsedElementStyle;
15035
15071
  metadata?: {
15036
15072
  [key: string]: string;
15037
15073
  };
15038
15074
  }
15039
15075
  interface ParsedAstRelation {
15040
- id: RelationId;
15076
+ id: c4.RelationId;
15041
15077
  astPath: string;
15042
- source: Fqn;
15043
- target: Fqn;
15044
- kind?: RelationshipKind$1;
15045
- tags?: NonEmptyArray<Tag$1>;
15078
+ source: c4.Fqn;
15079
+ target: c4.Fqn;
15080
+ kind?: c4.RelationshipKind;
15081
+ tags?: c4.NonEmptyArray<c4.Tag>;
15046
15082
  title: string;
15047
15083
  description?: string;
15048
15084
  technology?: string;
15049
- color?: Color$1;
15050
- line?: RelationshipLineType;
15051
- head?: RelationshipArrowType;
15052
- tail?: RelationshipArrowType;
15053
- links?: NonEmptyArray<ParsedLink>;
15054
- navigateTo?: ViewId;
15085
+ color?: c4.Color;
15086
+ line?: c4.RelationshipLineType;
15087
+ head?: c4.RelationshipArrowType;
15088
+ tail?: c4.RelationshipArrowType;
15089
+ links?: c4.NonEmptyArray<ParsedLink>;
15090
+ navigateTo?: c4.ViewId;
15055
15091
  metadata?: {
15056
15092
  [key: string]: string;
15057
15093
  };
15058
15094
  }
15059
- type ParsedAstDeployment = DeploymentElement$1;
15095
+ type ParsedAstDeployment = c4.DeploymentElement;
15060
15096
  declare namespace ParsedAstDeployment {
15061
- type Node = DeploymentNode$1;
15062
- type Instance = DeployedInstance$1;
15097
+ type Node = c4.DeploymentNode;
15098
+ type Instance = c4.DeployedInstance;
15063
15099
  }
15064
- type ParsedAstDeploymentRelation = DeploymentRelation$1 & {
15100
+ type ParsedAstDeploymentRelation = c4.DeploymentRelation & {
15065
15101
  astPath: string;
15066
15102
  };
15067
- type ParsedAstGlobals = Writable<ModelGlobals>;
15103
+ type ParsedAstGlobals = Writable<c4.ModelGlobals>;
15068
15104
  interface ParsedAstElementView {
15069
15105
  __: 'element';
15070
- id: ViewId;
15071
- viewOf?: Fqn;
15072
- extends?: ViewId;
15106
+ id: c4.ViewId;
15107
+ viewOf?: c4.Fqn;
15108
+ extends?: c4.ViewId;
15073
15109
  astPath: string;
15074
15110
  title: string | null;
15075
15111
  description: string | null;
15076
- tags: NonEmptyArray<Tag$1> | null;
15077
- links: NonEmptyArray<ParsedLink> | null;
15078
- rules: ViewRule$1[];
15079
- manualLayout?: ViewManualLayout;
15112
+ tags: c4.NonEmptyArray<c4.Tag> | null;
15113
+ links: c4.NonEmptyArray<ParsedLink> | null;
15114
+ rules: c4.ViewRule[];
15115
+ manualLayout?: c4.ViewManualLayout;
15080
15116
  }
15081
15117
  interface ParsedAstDynamicView {
15082
15118
  __: 'dynamic';
15083
- id: ViewId;
15119
+ id: c4.ViewId;
15084
15120
  astPath: string;
15085
15121
  title: string | null;
15086
15122
  description: string | null;
15087
- tags: NonEmptyArray<Tag$1> | null;
15088
- links: NonEmptyArray<ParsedLink> | null;
15089
- steps: DynamicViewStepOrParallel[];
15090
- rules: Array<DynamicViewRule$1>;
15091
- manualLayout?: ViewManualLayout;
15123
+ tags: c4.NonEmptyArray<c4.Tag> | null;
15124
+ links: c4.NonEmptyArray<ParsedLink> | null;
15125
+ steps: c4.DynamicViewStepOrParallel[];
15126
+ rules: Array<c4.DynamicViewRule>;
15127
+ manualLayout?: c4.ViewManualLayout;
15092
15128
  }
15093
15129
  interface ParsedAstDeploymentView {
15094
15130
  __: 'deployment';
15095
- id: ViewId;
15131
+ id: c4.ViewId;
15096
15132
  astPath: string;
15097
15133
  title: string | null;
15098
15134
  description: string | null;
15099
- tags: NonEmptyArray<Tag$1> | null;
15100
- links: NonEmptyArray<ParsedLink> | null;
15101
- rules: Array<DeploymentViewRule$1>;
15135
+ tags: c4.NonEmptyArray<c4.Tag> | null;
15136
+ links: c4.NonEmptyArray<ParsedLink> | null;
15137
+ rules: Array<c4.DeploymentViewRule>;
15102
15138
  }
15103
15139
  type ParsedAstView = ParsedAstElementView | ParsedAstDynamicView | ParsedAstDeploymentView;
15104
15140
  interface ParsedLink {
@@ -15106,7 +15142,7 @@ interface ParsedLink {
15106
15142
  url: string;
15107
15143
  }
15108
15144
  interface DocFqnIndexAstNodeDescription extends AstNodeDescription {
15109
- fqn: Fqn;
15145
+ fqn: c4.Fqn;
15110
15146
  }
15111
15147
  interface DeploymentAstNodeDescription extends AstNodeDescription {
15112
15148
  fqn: string;
@@ -15122,7 +15158,7 @@ interface LikeC4DocumentProps {
15122
15158
  c4Views?: ParsedAstView[];
15123
15159
  c4Deployments?: ParsedAstDeployment[];
15124
15160
  c4DeploymentRelations?: ParsedAstDeploymentRelation[];
15125
- c4fqnIndex?: MultiMap<Fqn, DocFqnIndexAstNodeDescription>;
15161
+ c4fqnIndex?: MultiMap<c4.Fqn, DocFqnIndexAstNodeDescription>;
15126
15162
  }
15127
15163
  type LikeC4GrammarDocument = Omit<LangiumDocument<LikeC4Grammar>, 'diagnostics'>;
15128
15164
  interface LikeC4LangiumDocument extends LikeC4GrammarDocument, LikeC4DocumentProps {
@@ -15249,17 +15285,17 @@ declare class LikeC4ModelBuilder {
15249
15285
  * This method is internal and should to be called only when all documents are known to be parsed.
15250
15286
  * Otherwise, the model may be incomplete.
15251
15287
  */
15252
- unsafeSyncBuildModel(): ParsedLikeC4Model | null;
15253
- buildModel(cancelToken?: CancellationToken): Promise<ParsedLikeC4Model | null>;
15288
+ unsafeSyncBuildModel(): c4.ParsedLikeC4Model | null;
15289
+ buildModel(cancelToken?: CancellationToken): Promise<c4.ParsedLikeC4Model | null>;
15254
15290
  private previousViews;
15255
15291
  /**
15256
15292
  * WARNING:
15257
15293
  * This method is internal and should to be called only when all documents are known to be parsed.
15258
15294
  * Otherwise, the model may be incomplete.
15259
15295
  */
15260
- unsafeSyncBuildComputedModel(model: ParsedLikeC4Model): ComputedLikeC4Model;
15261
- buildComputedModel(cancelToken?: CancellationToken): Promise<ComputedLikeC4Model | null>;
15262
- computeView(viewId: ViewId, cancelToken?: CancellationToken): Promise<ComputedView | null>;
15296
+ unsafeSyncBuildComputedModel(model: c4.ParsedLikeC4Model): c4.ComputedLikeC4Model;
15297
+ buildComputedModel(cancelToken?: CancellationToken): Promise<c4.ComputedLikeC4Model | null>;
15298
+ computeView(viewId: ViewId, cancelToken?: CancellationToken): Promise<c4.ComputedView | null>;
15263
15299
  onModelParsed(callback: ModelParsedListener): Disposable;
15264
15300
  private documents;
15265
15301
  private notifyListeners;
@@ -15272,16 +15308,16 @@ declare class LikeC4ModelLocator {
15272
15308
  private langiumDocuments;
15273
15309
  constructor(services: LikeC4Services);
15274
15310
  private documents;
15275
- getParsedElement(astNodeOrFqn: Element | Fqn): ParsedAstElement | null;
15276
- locateElement(fqn: Fqn, _prop?: string): Location | null;
15277
- locateDeploymentElement(fqn: Fqn, _prop?: string): Location | null;
15278
- locateRelation(relationId: RelationId): Location | null;
15279
- locateViewAst(viewId: ViewId): {
15311
+ getParsedElement(astNodeOrFqn: Element | c4.Fqn): ParsedAstElement | null;
15312
+ locateElement(fqn: c4.Fqn, _prop?: string): Location | null;
15313
+ locateDeploymentElement(fqn: c4.Fqn, _prop?: string): Location | null;
15314
+ locateRelation(relationId: c4.RelationId): Location | null;
15315
+ locateViewAst(viewId: c4.ViewId): {
15280
15316
  doc: any;
15281
15317
  view: any;
15282
15318
  viewAst: LikeC4View;
15283
15319
  } | null;
15284
- locateView(viewId: ViewId): Location | null;
15320
+ locateView(viewId: c4.ViewId): Location | null;
15285
15321
  }
15286
15322
 
15287
15323
  declare class BaseParser {
@@ -15289,7 +15325,7 @@ declare class BaseParser {
15289
15325
  readonly doc: ParsedLikeC4LangiumDocument;
15290
15326
  isValid: IsValidFn;
15291
15327
  constructor(services: LikeC4Services, doc: ParsedLikeC4LangiumDocument);
15292
- resolveFqn(node: FqnReferenceable): Fqn;
15328
+ resolveFqn(node: FqnReferenceable): c4.Fqn;
15293
15329
  getAstNodePath(node: AstNode): any;
15294
15330
  getMetadata(metadataAstNode: MetadataProperty | undefined): {
15295
15331
  [key: string]: string;
@@ -15299,7 +15335,7 @@ declare class BaseParser {
15299
15335
  }>(withTags?: E): any;
15300
15336
  parseTags<E extends {
15301
15337
  tags?: Tags;
15302
- }>(withTags?: E): NonEmptyArray<Tag$1> | null;
15338
+ }>(withTags?: E): c4.NonEmptyArray<c4.Tag> | null;
15303
15339
  convertLinks(source?: LinkProperty['$container']): ParsedLink[] | undefined;
15304
15340
  parseLinks(source?: LinkProperty['$container']): ParsedLink[] | undefined;
15305
15341
  }
@@ -15360,6 +15396,7 @@ declare const DocumentParserFromMixins: {
15360
15396
  parseFqnExpr(astNode: FqnExpr): invariant;
15361
15397
  parseFqnRefExpr(astNode: FqnRefExpr): invariant;
15362
15398
  parseFqnExpressions(astNode: FqnExpressions): invariant[];
15399
+ parseRelationWhereExpr(astNode: RelationPredicateWhereV2): invariant;
15363
15400
  parseRelationExpr(astNode: RelationExpr): invariant;
15364
15401
  parseDeployment(): void;
15365
15402
  parseDeploymentNode(astNode: DeploymentNode): ParsedAstDeployment.Node;
@@ -15417,6 +15454,7 @@ declare const DocumentParserFromMixins: {
15417
15454
  parseFqnExpr(astNode: FqnExpr): invariant;
15418
15455
  parseFqnRefExpr(astNode: FqnRefExpr): invariant;
15419
15456
  parseFqnExpressions(astNode: FqnExpressions): invariant[];
15457
+ parseRelationWhereExpr(astNode: RelationPredicateWhereV2): invariant;
15420
15458
  parseRelationExpr(astNode: RelationExpr): invariant;
15421
15459
  parseDeployment(): void;
15422
15460
  parseDeploymentNode(astNode: DeploymentNode): ParsedAstDeployment.Node;
@@ -15483,6 +15521,7 @@ declare const DocumentParserFromMixins: {
15483
15521
  parseFqnExpr(astNode: FqnExpr): invariant;
15484
15522
  parseFqnRefExpr(astNode: FqnRefExpr): invariant;
15485
15523
  parseFqnExpressions(astNode: FqnExpressions): invariant[];
15524
+ parseRelationWhereExpr(astNode: RelationPredicateWhereV2): invariant;
15486
15525
  parseRelationExpr(astNode: RelationExpr): invariant;
15487
15526
  isValid: IsValidFn;
15488
15527
  readonly services: LikeC4Services;
@@ -15515,6 +15554,7 @@ declare const DocumentParserFromMixins: {
15515
15554
  parseFqnExpr(astNode: FqnExpr): invariant;
15516
15555
  parseFqnRefExpr(astNode: FqnRefExpr): invariant;
15517
15556
  parseFqnExpressions(astNode: FqnExpressions): invariant[];
15557
+ parseRelationWhereExpr(astNode: RelationPredicateWhereV2): invariant;
15518
15558
  parseRelationExpr(astNode: RelationExpr): invariant;
15519
15559
  isValid: IsValidFn;
15520
15560
  readonly services: LikeC4Services;
@@ -15561,6 +15601,7 @@ declare const DocumentParserFromMixins: {
15561
15601
  parseFqnExpr(astNode: FqnExpr): invariant;
15562
15602
  parseFqnRefExpr(astNode: FqnRefExpr): invariant;
15563
15603
  parseFqnExpressions(astNode: FqnExpressions): invariant[];
15604
+ parseRelationWhereExpr(astNode: RelationPredicateWhereV2): invariant;
15564
15605
  parseRelationExpr(astNode: RelationExpr): invariant;
15565
15606
  isValid: IsValidFn;
15566
15607
  readonly services: LikeC4Services;
@@ -16456,4 +16497,4 @@ declare class LikeC4 {
16456
16497
  dispose(): void;
16457
16498
  }
16458
16499
 
16459
- export { Color$1 as Color, ComputedLikeC4Model, ComputedView, DeployedInstance$1 as DeployedInstance, DeploymentElement$1 as DeploymentElement, DeploymentNode$1 as DeploymentNode, DeploymentNodeKind$1 as DeploymentNodeKind, DeploymentRelation$1 as DeploymentRelation, DiagramView, ElementKind$1 as ElementKind, Fqn, HexColorLiteral, LikeC4, LikeC4Model, ParsedLikeC4Model, RelationId, Tag$1 as Tag, ViewId };
16500
+ export { LikeC4 };