likec4 1.19.2 → 1.20.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.
Files changed (38) hide show
  1. package/__app__/react/likec4.tsx +16 -114
  2. package/__app__/src/chunks/{-index-overview-COSF42be.js → -index-overview-B8Ngh4J7.js} +20 -19
  3. package/__app__/src/chunks/{likec4-CusAw_j6.js → likec4-CK8zVxjc.js} +1172 -1209
  4. package/__app__/src/chunks/main-DwHOiMDD.js +23884 -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 +31795 -32402
  10. package/dist/chunks/prompt.cjs +1 -1
  11. package/dist/chunks/prompt.mjs +1 -1
  12. package/dist/cli/index.cjs +47 -58
  13. package/dist/cli/index.mjs +29 -40
  14. package/dist/index.cjs +1 -1
  15. package/dist/index.d.cts +106 -81
  16. package/dist/index.d.mts +106 -81
  17. package/dist/index.d.ts +106 -81
  18. package/dist/index.mjs +1 -1
  19. package/dist/model/index.cjs +1 -1
  20. package/dist/model/index.d.cts +4 -257
  21. package/dist/model/index.d.mts +4 -257
  22. package/dist/model/index.d.ts +4 -257
  23. package/dist/model/index.mjs +1 -1
  24. package/dist/shared/likec4.Buej2FfJ.mjs +1857 -0
  25. package/dist/shared/likec4.pZxbrzrY.cjs +1857 -0
  26. package/package.json +39 -39
  27. package/react/index.d.ts +771 -1546
  28. package/react/index.js +36196 -36908
  29. package/react/style.css +1 -1
  30. package/__app__/src/chunks/main-CtzxB_vG.js +0 -24136
  31. package/__app__/src/chunks/tanstack-router-BBWuTKWO.js +0 -2373
  32. package/dist/shared/likec4.-U9_Dinu.cjs +0 -1856
  33. package/dist/shared/likec4.CVn8U3Og.cjs +0 -9
  34. package/dist/shared/likec4.Cgd5VecV.mjs +0 -9
  35. package/dist/shared/likec4.D7BM0ZAO.mjs +0 -1856
  36. package/dist/shared/likec4.DJeGiAvE.d.cts +0 -1639
  37. package/dist/shared/likec4.DJeGiAvE.d.mts +0 -1639
  38. package/dist/shared/likec4.DJeGiAvE.d.ts +0 -1639
package/dist/index.d.ts 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.DJeGiAvE.js';
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.DJeGiAvE.js';
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;
@@ -13945,12 +13948,13 @@ 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;
@@ -13990,13 +13994,13 @@ type WhereElementExpression = WhereBinaryExpression | WhereElement | WhereElemen
13990
13994
  declare const WhereElementExpression = "WhereElementExpression";
13991
13995
  type WhereExpression = WhereElementExpression | WhereRelationExpression;
13992
13996
  declare const WhereExpression = "WhereExpression";
13993
- type WhereKindEqual = WhereElementKind | WhereRelationKind;
13997
+ type WhereKindEqual = WhereElementKind | WhereRelationKind | WhereRelationParticipantKind;
13994
13998
  declare const WhereKindEqual = "WhereKindEqual";
13995
- type WhereRelation = WhereRelationKind | WhereRelationTag;
13999
+ type WhereRelation = WhereRelationKind | WhereRelationParticipantKind | WhereRelationParticipantTag | WhereRelationTag;
13996
14000
  declare const WhereRelation = "WhereRelation";
13997
14001
  type WhereRelationExpression = WhereBinaryExpression | WhereRelation | WhereRelationNegation;
13998
14002
  declare const WhereRelationExpression = "WhereRelationExpression";
13999
- type WhereTagEqual = WhereElementTag | WhereRelationTag;
14003
+ type WhereTagEqual = WhereElementTag | WhereRelationParticipantTag | WhereRelationTag;
14000
14004
  declare const WhereTagEqual = "WhereTagEqual";
14001
14005
  interface ArrowProperty extends AstNode {
14002
14006
  readonly $container: CustomRelationProperties | RelationStyleProperty | SpecificationRelationshipKind;
@@ -14808,6 +14812,24 @@ interface WhereRelationNegation extends AstNode {
14808
14812
  value: WhereRelationExpression;
14809
14813
  }
14810
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";
14811
14833
  interface WhereRelationTag extends AstNode {
14812
14834
  readonly $container: RelationPredicateWhere | RelationPredicateWhereV2 | WhereBinaryExpression | WhereRelationNegation;
14813
14835
  readonly $type: 'WhereRelationTag';
@@ -14835,6 +14857,7 @@ type LikeC4AstType = {
14835
14857
  DeploymentNode: DeploymentNode;
14836
14858
  DeploymentNodeBody: DeploymentNodeBody;
14837
14859
  DeploymentNodeKind: DeploymentNodeKind;
14860
+ DeploymentNodeOrElementKind: DeploymentNodeOrElementKind;
14838
14861
  DeploymentRelation: DeploymentRelation;
14839
14862
  DeploymentRelationBody: DeploymentRelationBody;
14840
14863
  DeploymentView: DeploymentView;
@@ -14969,6 +14992,8 @@ type LikeC4AstType = {
14969
14992
  WhereRelationExpression: WhereRelationExpression;
14970
14993
  WhereRelationKind: WhereRelationKind;
14971
14994
  WhereRelationNegation: WhereRelationNegation;
14995
+ WhereRelationParticipantKind: WhereRelationParticipantKind;
14996
+ WhereRelationParticipantTag: WhereRelationParticipantTag;
14972
14997
  WhereRelationTag: WhereRelationTag;
14973
14998
  WhereTagEqual: WhereTagEqual;
14974
14999
  WildcardExpression: WildcardExpression;
@@ -14988,128 +15013,128 @@ type IsValidFn = ChecksFromDiagnostics['isValid'];
14988
15013
  declare const idattr: unique symbol;
14989
15014
  declare module './generated/ast' {
14990
15015
  interface Element {
14991
- [idattr]?: Fqn | undefined;
15016
+ [idattr]?: c4.Fqn | undefined;
14992
15017
  }
14993
15018
  interface ElementView {
14994
- [idattr]?: ViewId | undefined;
15019
+ [idattr]?: c4.ViewId | undefined;
14995
15020
  }
14996
15021
  interface DynamicView {
14997
- [idattr]?: ViewId | undefined;
15022
+ [idattr]?: c4.ViewId | undefined;
14998
15023
  }
14999
15024
  interface DeploymentView {
15000
- [idattr]?: ViewId | undefined;
15025
+ [idattr]?: c4.ViewId | undefined;
15001
15026
  }
15002
15027
  interface DeploymentNode {
15003
- [idattr]?: Fqn | undefined;
15028
+ [idattr]?: c4.Fqn | undefined;
15004
15029
  }
15005
15030
  interface DeployedInstance {
15006
- [idattr]?: Fqn | undefined;
15031
+ [idattr]?: c4.Fqn | undefined;
15007
15032
  }
15008
15033
  }
15009
15034
  type ParsedElementStyle = {
15010
- shape?: ElementShape$1;
15011
- icon?: IconUrl;
15012
- color?: Color$1;
15013
- border?: BorderStyle;
15035
+ shape?: c4.ElementShape;
15036
+ icon?: c4.IconUrl;
15037
+ color?: c4.Color;
15038
+ border?: c4.BorderStyle;
15014
15039
  opacity?: number;
15015
15040
  };
15016
15041
  interface ParsedAstSpecification {
15017
- tags: Set<Tag$1>;
15018
- elements: Record<ElementKind$1, {
15042
+ tags: Set<c4.Tag>;
15043
+ elements: Record<c4.ElementKind, {
15019
15044
  technology?: string;
15020
15045
  notation?: string;
15021
15046
  style: ParsedElementStyle;
15022
15047
  }>;
15023
- relationships: Record<RelationshipKind$1, {
15048
+ relationships: Record<c4.RelationshipKind, {
15024
15049
  technology?: string;
15025
15050
  notation?: string;
15026
- color?: Color$1;
15027
- line?: RelationshipLineType;
15028
- head?: RelationshipArrowType;
15029
- tail?: RelationshipArrowType;
15051
+ color?: c4.Color;
15052
+ line?: c4.RelationshipLineType;
15053
+ head?: c4.RelationshipArrowType;
15054
+ tail?: c4.RelationshipArrowType;
15030
15055
  }>;
15031
- colors: Record<CustomColor$1, {
15032
- color: HexColorLiteral;
15056
+ colors: Record<c4.CustomColor, {
15057
+ color: c4.HexColorLiteral;
15033
15058
  }>;
15034
- deployments: Record<DeploymentNodeKind$1, DeploymentNodeKindSpecification>;
15059
+ deployments: Record<c4.DeploymentNodeKind, c4.DeploymentNodeKindSpecification>;
15035
15060
  }
15036
15061
  interface ParsedAstElement {
15037
- id: Fqn;
15062
+ id: c4.Fqn;
15038
15063
  astPath: string;
15039
- kind: ElementKind$1;
15064
+ kind: c4.ElementKind;
15040
15065
  title: string;
15041
15066
  description?: string;
15042
15067
  technology?: string;
15043
- tags?: NonEmptyArray<Tag$1>;
15044
- links?: NonEmptyArray<ParsedLink>;
15068
+ tags?: c4.NonEmptyArray<c4.Tag>;
15069
+ links?: c4.NonEmptyArray<ParsedLink>;
15045
15070
  style: ParsedElementStyle;
15046
15071
  metadata?: {
15047
15072
  [key: string]: string;
15048
15073
  };
15049
15074
  }
15050
15075
  interface ParsedAstRelation {
15051
- id: RelationId;
15076
+ id: c4.RelationId;
15052
15077
  astPath: string;
15053
- source: Fqn;
15054
- target: Fqn;
15055
- kind?: RelationshipKind$1;
15056
- tags?: NonEmptyArray<Tag$1>;
15078
+ source: c4.Fqn;
15079
+ target: c4.Fqn;
15080
+ kind?: c4.RelationshipKind;
15081
+ tags?: c4.NonEmptyArray<c4.Tag>;
15057
15082
  title: string;
15058
15083
  description?: string;
15059
15084
  technology?: string;
15060
- color?: Color$1;
15061
- line?: RelationshipLineType;
15062
- head?: RelationshipArrowType;
15063
- tail?: RelationshipArrowType;
15064
- links?: NonEmptyArray<ParsedLink>;
15065
- 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;
15066
15091
  metadata?: {
15067
15092
  [key: string]: string;
15068
15093
  };
15069
15094
  }
15070
- type ParsedAstDeployment = DeploymentElement$1;
15095
+ type ParsedAstDeployment = c4.DeploymentElement;
15071
15096
  declare namespace ParsedAstDeployment {
15072
- type Node = DeploymentNode$1;
15073
- type Instance = DeployedInstance$1;
15097
+ type Node = c4.DeploymentNode;
15098
+ type Instance = c4.DeployedInstance;
15074
15099
  }
15075
- type ParsedAstDeploymentRelation = DeploymentRelation$1 & {
15100
+ type ParsedAstDeploymentRelation = c4.DeploymentRelation & {
15076
15101
  astPath: string;
15077
15102
  };
15078
- type ParsedAstGlobals = Writable<ModelGlobals>;
15103
+ type ParsedAstGlobals = Writable<c4.ModelGlobals>;
15079
15104
  interface ParsedAstElementView {
15080
15105
  __: 'element';
15081
- id: ViewId;
15082
- viewOf?: Fqn;
15083
- extends?: ViewId;
15106
+ id: c4.ViewId;
15107
+ viewOf?: c4.Fqn;
15108
+ extends?: c4.ViewId;
15084
15109
  astPath: string;
15085
15110
  title: string | null;
15086
15111
  description: string | null;
15087
- tags: NonEmptyArray<Tag$1> | null;
15088
- links: NonEmptyArray<ParsedLink> | null;
15089
- rules: ViewRule$1[];
15090
- manualLayout?: ViewManualLayout;
15112
+ tags: c4.NonEmptyArray<c4.Tag> | null;
15113
+ links: c4.NonEmptyArray<ParsedLink> | null;
15114
+ rules: c4.ViewRule[];
15115
+ manualLayout?: c4.ViewManualLayout;
15091
15116
  }
15092
15117
  interface ParsedAstDynamicView {
15093
15118
  __: 'dynamic';
15094
- id: ViewId;
15119
+ id: c4.ViewId;
15095
15120
  astPath: string;
15096
15121
  title: string | null;
15097
15122
  description: string | null;
15098
- tags: NonEmptyArray<Tag$1> | null;
15099
- links: NonEmptyArray<ParsedLink> | null;
15100
- steps: DynamicViewStepOrParallel[];
15101
- rules: Array<DynamicViewRule$1>;
15102
- 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;
15103
15128
  }
15104
15129
  interface ParsedAstDeploymentView {
15105
15130
  __: 'deployment';
15106
- id: ViewId;
15131
+ id: c4.ViewId;
15107
15132
  astPath: string;
15108
15133
  title: string | null;
15109
15134
  description: string | null;
15110
- tags: NonEmptyArray<Tag$1> | null;
15111
- links: NonEmptyArray<ParsedLink> | null;
15112
- rules: Array<DeploymentViewRule$1>;
15135
+ tags: c4.NonEmptyArray<c4.Tag> | null;
15136
+ links: c4.NonEmptyArray<ParsedLink> | null;
15137
+ rules: Array<c4.DeploymentViewRule>;
15113
15138
  }
15114
15139
  type ParsedAstView = ParsedAstElementView | ParsedAstDynamicView | ParsedAstDeploymentView;
15115
15140
  interface ParsedLink {
@@ -15117,7 +15142,7 @@ interface ParsedLink {
15117
15142
  url: string;
15118
15143
  }
15119
15144
  interface DocFqnIndexAstNodeDescription extends AstNodeDescription {
15120
- fqn: Fqn;
15145
+ fqn: c4.Fqn;
15121
15146
  }
15122
15147
  interface DeploymentAstNodeDescription extends AstNodeDescription {
15123
15148
  fqn: string;
@@ -15133,7 +15158,7 @@ interface LikeC4DocumentProps {
15133
15158
  c4Views?: ParsedAstView[];
15134
15159
  c4Deployments?: ParsedAstDeployment[];
15135
15160
  c4DeploymentRelations?: ParsedAstDeploymentRelation[];
15136
- c4fqnIndex?: MultiMap<Fqn, DocFqnIndexAstNodeDescription>;
15161
+ c4fqnIndex?: MultiMap<c4.Fqn, DocFqnIndexAstNodeDescription>;
15137
15162
  }
15138
15163
  type LikeC4GrammarDocument = Omit<LangiumDocument<LikeC4Grammar>, 'diagnostics'>;
15139
15164
  interface LikeC4LangiumDocument extends LikeC4GrammarDocument, LikeC4DocumentProps {
@@ -15260,17 +15285,17 @@ declare class LikeC4ModelBuilder {
15260
15285
  * This method is internal and should to be called only when all documents are known to be parsed.
15261
15286
  * Otherwise, the model may be incomplete.
15262
15287
  */
15263
- unsafeSyncBuildModel(): ParsedLikeC4Model | null;
15264
- buildModel(cancelToken?: CancellationToken): Promise<ParsedLikeC4Model | null>;
15288
+ unsafeSyncBuildModel(): c4.ParsedLikeC4Model | null;
15289
+ buildModel(cancelToken?: CancellationToken): Promise<c4.ParsedLikeC4Model | null>;
15265
15290
  private previousViews;
15266
15291
  /**
15267
15292
  * WARNING:
15268
15293
  * This method is internal and should to be called only when all documents are known to be parsed.
15269
15294
  * Otherwise, the model may be incomplete.
15270
15295
  */
15271
- unsafeSyncBuildComputedModel(model: ParsedLikeC4Model): ComputedLikeC4Model;
15272
- buildComputedModel(cancelToken?: CancellationToken): Promise<ComputedLikeC4Model | null>;
15273
- 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>;
15274
15299
  onModelParsed(callback: ModelParsedListener): Disposable;
15275
15300
  private documents;
15276
15301
  private notifyListeners;
@@ -15283,16 +15308,16 @@ declare class LikeC4ModelLocator {
15283
15308
  private langiumDocuments;
15284
15309
  constructor(services: LikeC4Services);
15285
15310
  private documents;
15286
- getParsedElement(astNodeOrFqn: Element | Fqn): ParsedAstElement | null;
15287
- locateElement(fqn: Fqn, _prop?: string): Location | null;
15288
- locateDeploymentElement(fqn: Fqn, _prop?: string): Location | null;
15289
- locateRelation(relationId: RelationId): Location | null;
15290
- 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): {
15291
15316
  doc: any;
15292
15317
  view: any;
15293
15318
  viewAst: LikeC4View;
15294
15319
  } | null;
15295
- locateView(viewId: ViewId): Location | null;
15320
+ locateView(viewId: c4.ViewId): Location | null;
15296
15321
  }
15297
15322
 
15298
15323
  declare class BaseParser {
@@ -15300,7 +15325,7 @@ declare class BaseParser {
15300
15325
  readonly doc: ParsedLikeC4LangiumDocument;
15301
15326
  isValid: IsValidFn;
15302
15327
  constructor(services: LikeC4Services, doc: ParsedLikeC4LangiumDocument);
15303
- resolveFqn(node: FqnReferenceable): Fqn;
15328
+ resolveFqn(node: FqnReferenceable): c4.Fqn;
15304
15329
  getAstNodePath(node: AstNode): any;
15305
15330
  getMetadata(metadataAstNode: MetadataProperty | undefined): {
15306
15331
  [key: string]: string;
@@ -15310,7 +15335,7 @@ declare class BaseParser {
15310
15335
  }>(withTags?: E): any;
15311
15336
  parseTags<E extends {
15312
15337
  tags?: Tags;
15313
- }>(withTags?: E): NonEmptyArray<Tag$1> | null;
15338
+ }>(withTags?: E): c4.NonEmptyArray<c4.Tag> | null;
15314
15339
  convertLinks(source?: LinkProperty['$container']): ParsedLink[] | undefined;
15315
15340
  parseLinks(source?: LinkProperty['$container']): ParsedLink[] | undefined;
15316
15341
  }
@@ -16472,4 +16497,4 @@ declare class LikeC4 {
16472
16497
  dispose(): void;
16473
16498
  }
16474
16499
 
16475
- 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 };
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- export{L as LikeC4}from"./shared/likec4.D7BM0ZAO.mjs";export{U as LikeC4DeploymentModel,a as LikeC4Model,V as LikeC4ViewModel}from"./shared/likec4.Cgd5VecV.mjs";import"node:fs";import"node:path";import"node:url";import"tty";import"node:util";import"util";import"path";import"os";import"crypto";import"net";import"url";import"fs";import"child_process";import"node:fs/promises";import"node:process";import"node:tty";import"@hpcc-js/wasm-graphviz";import"buffer";import"node:child_process";import"node:string_decoder";import"node:timers/promises";import"node:os";import"node:events";import"node:v8";import"node:stream";import"node:buffer";import"node:stream/promises";import"vite";
1
+ export{LikeC4DeploymentModel,LikeC4Model,LikeC4ViewModel}from"@likec4/core/model";import"@likec4/core";export{L as LikeC4}from"./shared/likec4.Buej2FfJ.mjs";import"node:fs";import"node:path";import"node:url";import"tty";import"node:util";import"util";import"path";import"os";import"crypto";import"net";import"url";import"fs";import"child_process";import"node:fs/promises";import"node:process";import"node:tty";import"@hpcc-js/wasm-graphviz";import"buffer";import"@likec4/core/compute-view";import"node:child_process";import"node:string_decoder";import"node:timers/promises";import"node:os";import"node:events";import"node:v8";import"node:stream";import"node:buffer";import"node:stream/promises";import"vite";
@@ -1 +1 @@
1
- "use strict";const index_KOeaSlL8=require("../shared/likec4.CVn8U3Og.cjs");function createLikeC4Model(e){return index_KOeaSlL8.a.create(e)}Object.defineProperty(exports,"ComputedNode",{enumerable:!0,get:function(){return index_KOeaSlL8.i}}),Object.defineProperty(exports,"ComputedView",{enumerable:!0,get:function(){return index_KOeaSlL8.k}}),Object.defineProperty(exports,"Connection",{enumerable:!0,get:function(){return index_KOeaSlL8.c}}),exports.ConnectionModel=index_KOeaSlL8.e,exports.DeployedInstanceModel=index_KOeaSlL8.I,exports.DeploymentConnectionModel=index_KOeaSlL8.A,exports.DeploymentNodeModel=index_KOeaSlL8.$,exports.DeploymentRelationModel=index_KOeaSlL8.g,Object.defineProperty(exports,"DiagramNode",{enumerable:!0,get:function(){return index_KOeaSlL8.l}}),exports.EdgeModel=index_KOeaSlL8.q,exports.ElementModel=index_KOeaSlL8.y,exports.LikeC4DeploymentModel=index_KOeaSlL8.U,exports.LikeC4Model=index_KOeaSlL8.a,exports.LikeC4ViewModel=index_KOeaSlL8.V,exports.NodeModel=index_KOeaSlL8.B,exports.RelationshipModel=index_KOeaSlL8.F,exports.deploymentConnection=index_KOeaSlL8.j,exports.differenceConnections=index_KOeaSlL8.u,exports.findAscendingConnections=index_KOeaSlL8.w,exports.findDeepestNestedConnection=index_KOeaSlL8.G,exports.findDescendantConnections=index_KOeaSlL8.v,exports.hasSameSource=index_KOeaSlL8.z,exports.hasSameSourceTarget=index_KOeaSlL8.b,exports.hasSameTarget=index_KOeaSlL8.P,exports.isAnyInOut=index_KOeaSlL8.d,exports.isIncoming=index_KOeaSlL8.C,exports.isNestedConnection=index_KOeaSlL8.f,exports.isOutgoing=index_KOeaSlL8.D,exports.mergeConnections=index_KOeaSlL8.h,exports.modelConnection=index_KOeaSlL8.W,exports.sortConnectionsByBoundaryHierarchy=index_KOeaSlL8.m,exports.sortDeepestFirst=index_KOeaSlL8.L,exports.createLikeC4Model=createLikeC4Model;
1
+ "use strict";const model=require("@likec4/core/model"),core=require("@likec4/core");function createLikeC4Model(e){return model.LikeC4Model.create(e)}exports.Connection=model.Connection,exports.ConnectionModel=model.ConnectionModel,exports.DeployedInstanceModel=model.DeployedInstanceModel,exports.DeploymentConnectionModel=model.DeploymentConnectionModel,exports.DeploymentNodeModel=model.DeploymentNodeModel,exports.DeploymentRelationModel=model.DeploymentRelationModel,exports.EdgeModel=model.EdgeModel,exports.ElementModel=model.ElementModel,exports.LikeC4DeploymentModel=model.LikeC4DeploymentModel,exports.LikeC4Model=model.LikeC4Model,exports.LikeC4ViewModel=model.LikeC4ViewModel,exports.NodeModel=model.NodeModel,exports.RelationshipModel=model.RelationshipModel,exports.deploymentConnection=model.deploymentConnection,exports.differenceConnections=model.differenceConnections,exports.findAscendingConnections=model.findAscendingConnections,exports.findDeepestNestedConnection=model.findDeepestNestedConnection,exports.findDescendantConnections=model.findDescendantConnections,exports.hasSameSource=model.hasSameSource,exports.hasSameSourceTarget=model.hasSameSourceTarget,exports.hasSameTarget=model.hasSameTarget,exports.isAnyInOut=model.isAnyInOut,exports.isIncoming=model.isIncoming,exports.isNestedConnection=model.isNestedConnection,exports.isOutgoing=model.isOutgoing,exports.mergeConnections=model.mergeConnections,exports.modelConnection=model.modelConnection,exports.sortConnectionsByBoundaryHierarchy=model.sortConnectionsByBoundaryHierarchy,exports.sortDeepestFirst=model.sortDeepestFirst,exports.ComputedNode=core.ComputedNode,exports.ComputedView=core.ComputedView,exports.DiagramNode=core.DiagramNode,exports.createLikeC4Model=createLikeC4Model;