likec4 1.41.0 → 1.42.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 (42) hide show
  1. package/__app__/src/likec4.js +11520 -11895
  2. package/__app__/src/main.js +185 -129
  3. package/__app__/src/style.css +1 -1
  4. package/__app__/src/vendors.js +38559 -17023
  5. package/__app__/src/webcomponent.js +68 -0
  6. package/config/package.json +2 -2
  7. package/config/schema.json +575 -0
  8. package/dist/cli/index.mjs +569 -564
  9. package/dist/config/index.d.mts +4 -1
  10. package/dist/config/index.mjs +1 -1
  11. package/dist/index.d.mts +4 -4
  12. package/dist/index.mjs +1 -1
  13. package/dist/model/index.d.mts +47 -4
  14. package/dist/model/index.mjs +1 -1
  15. package/dist/shared/likec4.B5Q51Z1F.mjs +543 -0
  16. package/dist/shared/likec4.BCSBNe4z.d.mts +6808 -0
  17. package/dist/shared/likec4.BEwUtMsL.mjs +256 -0
  18. package/dist/shared/likec4.CB2-Uaub.mjs +47 -0
  19. package/dist/shared/{likec4.3AlS7pfZ.d.mts → likec4.CaOUU1HJ.d.mts} +204 -149
  20. package/dist/shared/likec4.D51sTGt6.mjs +4038 -0
  21. package/dist/shared/likec4.DOUP9ptn.mjs +1 -0
  22. package/dist/shared/{likec4.C8C0fF8a.mjs → likec4.DO_7oUns.mjs} +1 -1
  23. package/dist/vite-plugin/index.d.mts +4 -3
  24. package/dist/vite-plugin/index.mjs +1 -1
  25. package/dist/vite-plugin/internal.mjs +3 -3
  26. package/icons/all/package.json +4 -0
  27. package/model/builder/package.json +4 -0
  28. package/model/package.json +4 -0
  29. package/package.json +41 -41
  30. package/react/index.d.ts +6637 -0
  31. package/react/index.js +48759 -0
  32. package/react/package.json +3 -2
  33. package/vite-plugin/package.json +2 -2
  34. package/vite-plugin-modules.d.ts +5 -5
  35. package/__app__/src/webcomponent.tsx +0 -81
  36. package/dist/shared/likec4.CdNNo2L4.mjs +0 -1
  37. package/dist/shared/likec4.CxmGAh_J.mjs +0 -144
  38. package/dist/shared/likec4.DX1wM3Or.d.mts +0 -1704
  39. package/dist/shared/likec4.Db3cTW-C.mjs +0 -257
  40. package/dist/shared/likec4.bxIrQhth.mjs +0 -4174
  41. package/react/index.d.mts +0 -6578
  42. package/react/index.mjs +0 -185
@@ -1,9 +1,11 @@
1
- import * as c4 from '@likec4/core';
2
- import { Fqn, EdgeId, AnyAux, aux, ComputedView, Specification, DiagramView, ProjectId, NonEmptyArray, NonEmptyReadonlyArray, ViewId, RelationId, DeploymentFqn, ViewChange } from '@likec4/core';
1
+ import * as _likec4_core from '@likec4/core';
2
+ import { Fqn, EdgeId, AnyAux, aux, ComputedView, LikeC4Styles, DiagramView, ProjectId, NonEmptyArray, NonEmptyReadonlyArray, ViewId, RelationId, DeploymentFqn, ViewChange } from '@likec4/core';
3
+ import * as type_fest from 'type-fest';
3
4
  import { Tagged, ValueOf, ConditionalPick, Writable, Simplify, MergeExclusive } from 'type-fest';
4
- import { U as URI$1, L as LikeC4ProjectConfig } from './likec4.DX1wM3Or.mjs';
5
+ import { U as URI$1, L as LikeC4ProjectConfig, a as LikeC4ProjectConfigInput } from './likec4.BCSBNe4z.mjs';
5
6
  import { LikeC4Model } from '@likec4/core/model';
6
- import { ProjectId as ProjectId$1, Fqn as Fqn$1 } from '@likec4/core/types';
7
+ import * as c4 from '@likec4/core/types';
8
+ import { scalar, ProjectId as ProjectId$1, Fqn as Fqn$1 } from '@likec4/core/types';
7
9
  import { MultiMap as MultiMap$1, DefaultWeakMap } from '@likec4/core/utils';
8
10
 
9
11
  /**
@@ -11946,7 +11948,7 @@ interface GraphvizPort extends Disposable {
11946
11948
  }
11947
11949
  type LayoutTaskParams<A extends aux.Any = aux.Any> = {
11948
11950
  view: ComputedView<A>;
11949
- specification: Specification<A>;
11951
+ styles: LikeC4Styles;
11950
11952
  };
11951
11953
  type LayoutResult<A extends aux.Any = aux.Any> = {
11952
11954
  dot: DotSource;
@@ -14095,6 +14097,8 @@ type DynamicViewProperty = DynamicViewDisplayVariantProperty | ViewProperty;
14095
14097
  declare const DynamicViewProperty = "DynamicViewProperty";
14096
14098
  type DynamicViewRule = DynamicViewGlobalPredicateRef | DynamicViewIncludePredicate | ViewRuleAutoLayout | ViewRuleStyleOrGlobalRef;
14097
14099
  declare const DynamicViewRule = "DynamicViewRule";
14100
+ type DynamicViewStep = DynamicStepChain | DynamicStepSingle;
14101
+ declare const DynamicViewStep = "DynamicViewStep";
14098
14102
  type ElementProperty = ElementStringProperty | ElementStyleProperty | IconProperty | LinkProperty | MetadataProperty;
14099
14103
  declare const ElementProperty = "ElementProperty";
14100
14104
  type ElementShape = 'browser' | 'cylinder' | 'mobile' | 'person' | 'queue' | 'rectangle' | 'storage';
@@ -14162,6 +14166,16 @@ type WhereRelationExpression = WhereBinaryExpression | WhereRelation | WhereRela
14162
14166
  declare const WhereRelationExpression = "WhereRelationExpression";
14163
14167
  type WhereTagEqual = WhereElementTag | WhereRelationParticipantTag | WhereRelationTag;
14164
14168
  declare const WhereTagEqual = "WhereTagEqual";
14169
+ interface AbstractDynamicStep extends AstNode {
14170
+ readonly $container: DynamicStepChain | DynamicViewBody | DynamicViewParallelSteps;
14171
+ readonly $type: 'AbstractDynamicStep' | 'DynamicStepChain' | 'DynamicStepSingle';
14172
+ custom?: CustomRelationProperties;
14173
+ dotKind?: RelationKindDotRef;
14174
+ kind?: Reference<RelationshipKind>;
14175
+ target: ElementRef;
14176
+ title?: string;
14177
+ }
14178
+ declare const AbstractDynamicStep = "AbstractDynamicStep";
14165
14179
  interface ArrowProperty extends AstNode {
14166
14180
  readonly $container: CustomRelationProperties | RelationStyleProperty | SpecificationRelationshipKind;
14167
14181
  readonly $type: 'ArrowProperty';
@@ -14197,7 +14211,7 @@ interface CustomElementProperties extends AstNode {
14197
14211
  }
14198
14212
  declare const CustomElementProperties = "CustomElementProperties";
14199
14213
  interface CustomRelationProperties extends AstNode {
14200
- readonly $container: DynamicViewStep | RelationExprWith;
14214
+ readonly $container: AbstractDynamicStep | RelationExprWith;
14201
14215
  readonly $type: 'CustomRelationProperties';
14202
14216
  props: Array<NotationProperty | NotesProperty | RelationNavigateToProperty | RelationStringProperty | RelationshipStyleProperty>;
14203
14217
  }
@@ -14348,18 +14362,6 @@ interface DynamicViewRef extends AstNode {
14348
14362
  view: Reference<DynamicView>;
14349
14363
  }
14350
14364
  declare const DynamicViewRef = "DynamicViewRef";
14351
- interface DynamicViewStep extends AstNode {
14352
- readonly $container: DynamicViewBody | DynamicViewParallelSteps;
14353
- readonly $type: 'DynamicViewStep';
14354
- custom?: CustomRelationProperties;
14355
- dotKind?: RelationKindDotRef;
14356
- isBackward: boolean;
14357
- kind?: Reference<RelationshipKind>;
14358
- source: ElementRef;
14359
- target: ElementRef;
14360
- title?: string;
14361
- }
14362
- declare const DynamicViewStep = "DynamicViewStep";
14363
14365
  interface Element extends AstNode {
14364
14366
  readonly $container: ElementBody | ExtendElementBody | Model;
14365
14367
  readonly $type: 'Element';
@@ -14391,7 +14393,7 @@ interface ElementKindExpression extends AstNode {
14391
14393
  }
14392
14394
  declare const ElementKindExpression = "ElementKindExpression";
14393
14395
  interface ElementRef extends AstNode {
14394
- readonly $container: DeployedInstance | DynamicViewStep | ElementView;
14396
+ readonly $container: AbstractDynamicStep | DeployedInstance | DynamicStepSingle | ElementView;
14395
14397
  readonly $type: 'ElementRef';
14396
14398
  modelElement: FqnRef;
14397
14399
  }
@@ -14763,7 +14765,7 @@ interface RelationExprWith extends AstNode {
14763
14765
  }
14764
14766
  declare const RelationExprWith = "RelationExprWith";
14765
14767
  interface RelationKindDotRef extends AstNode {
14766
- readonly $container: DeploymentRelation | DynamicViewStep | OutgoingRelationExpr | Relation;
14768
+ readonly $container: AbstractDynamicStep | DeploymentRelation | OutgoingRelationExpr | Relation;
14767
14769
  readonly $type: 'RelationKindDotRef';
14768
14770
  kind: Reference<RelationshipKind>;
14769
14771
  }
@@ -15051,7 +15053,21 @@ interface WildcardExpression extends AstNode {
15051
15053
  isWildcard: boolean;
15052
15054
  }
15053
15055
  declare const WildcardExpression = "WildcardExpression";
15056
+ interface DynamicStepChain extends AbstractDynamicStep {
15057
+ readonly $container: DynamicStepChain | DynamicViewBody | DynamicViewParallelSteps;
15058
+ readonly $type: 'DynamicStepChain';
15059
+ source: DynamicStepChain | DynamicStepSingle;
15060
+ }
15061
+ declare const DynamicStepChain = "DynamicStepChain";
15062
+ interface DynamicStepSingle extends AbstractDynamicStep {
15063
+ readonly $container: DynamicStepChain | DynamicViewBody | DynamicViewParallelSteps;
15064
+ readonly $type: 'DynamicStepSingle';
15065
+ isBackward: boolean;
15066
+ source: ElementRef;
15067
+ }
15068
+ declare const DynamicStepSingle = "DynamicStepSingle";
15054
15069
  type LikeC4AstType = {
15070
+ AbstractDynamicStep: AbstractDynamicStep;
15055
15071
  ArrowProperty: ArrowProperty;
15056
15072
  BorderProperty: BorderProperty;
15057
15073
  ColorLiteral: ColorLiteral;
@@ -15074,6 +15090,8 @@ type LikeC4AstType = {
15074
15090
  DeploymentViewRulePredicate: DeploymentViewRulePredicate;
15075
15091
  DeploymentViewRuleStyle: DeploymentViewRuleStyle;
15076
15092
  DirectedRelationExpr: DirectedRelationExpr;
15093
+ DynamicStepChain: DynamicStepChain;
15094
+ DynamicStepSingle: DynamicStepSingle;
15077
15095
  DynamicView: DynamicView;
15078
15096
  DynamicViewBody: DynamicViewBody;
15079
15097
  DynamicViewDisplayVariantProperty: DynamicViewDisplayVariantProperty;
@@ -15221,7 +15239,7 @@ declare class LikeC4DocumentValidator extends DefaultDocumentValidator {
15221
15239
 
15222
15240
  type Guard<N extends AstNode> = (n: AstNode) => n is N;
15223
15241
  type Guarded<G> = G extends Guard<infer N> ? N : never;
15224
- declare const isValidatableAstNode: (n: AstNode) => n is HexColor | RGBAColor | DeployedInstance | DeploymentNode | DeploymentViewRulePredicate | DeploymentViewRuleStyle | ViewRuleAutoLayout | DynamicViewDisplayVariantProperty | LinkProperty | ViewStringProperty | DynamicViewGlobalPredicateRef | DynamicViewIncludePredicate | ViewRuleGlobalStyle | ViewRuleStyle | ElementStringProperty | ElementStyleProperty | IconProperty | MetadataBody | ElementKindExpression | ElementTagExpression | FqnRefExpr | WildcardExpression | FqnExprWhere | FqnExprWith | DirectedRelationExpr | InOutRelationExpr | IncomingRelationExpr | OutgoingRelationExpr | RelationExprWhere | RelationExprWith | Element | ExtendDeployment | ExtendElement | Imported | DeploymentView | DynamicView | ElementView | RelationStringProperty | ArrowProperty | ColorProperty | LineProperty | PaddingSizeProperty | ShapeSizeProperty | TextSizeProperty | MetadataAttribute | NotationProperty | NotesProperty | SpecificationElementStringProperty | SpecificationRelationshipStringProperty | BorderProperty | MultipleProperty | OpacityProperty | ShapeProperty | ViewRuleGlobalPredicateRef | ViewRuleGroup | ViewRulePredicate | SpecificationRelationshipKind | GlobalStyle | SpecificationColor | NavigateToProperty | DynamicViewStep | ElementRef | DeploymentRelation | Tags | SpecificationDeploymentNodeKind | DynamicViewParallelSteps | GlobalDynamicPredicateGroup | Relation | SpecificationElementKind | Globals | GlobalPredicateGroup | GlobalStyleGroup | SpecificationTag | ImportsFromPoject | SpecificationRule;
15242
+ declare const isValidatableAstNode: (n: AstNode) => n is HexColor | RGBAColor | DeployedInstance | DeploymentNode | DeploymentViewRulePredicate | DeploymentViewRuleStyle | ViewRuleAutoLayout | DynamicViewDisplayVariantProperty | LinkProperty | ViewStringProperty | DynamicViewGlobalPredicateRef | DynamicViewIncludePredicate | ViewRuleGlobalStyle | ViewRuleStyle | DynamicStepChain | DynamicStepSingle | ElementStringProperty | ElementStyleProperty | IconProperty | MetadataBody | ElementKindExpression | ElementTagExpression | FqnRefExpr | WildcardExpression | FqnExprWhere | FqnExprWith | DirectedRelationExpr | InOutRelationExpr | IncomingRelationExpr | OutgoingRelationExpr | RelationExprWhere | RelationExprWith | Element | ExtendDeployment | ExtendElement | Imported | DeploymentView | DynamicView | ElementView | RelationStringProperty | ArrowProperty | ColorProperty | LineProperty | PaddingSizeProperty | ShapeSizeProperty | TextSizeProperty | MetadataAttribute | NotationProperty | NotesProperty | SpecificationElementStringProperty | SpecificationRelationshipStringProperty | BorderProperty | MultipleProperty | OpacityProperty | ShapeProperty | ViewRuleGlobalPredicateRef | ViewRuleGroup | ViewRulePredicate | DynamicViewParallelSteps | ElementRef | SpecificationRelationshipKind | GlobalStyle | SpecificationColor | NavigateToProperty | DeploymentRelation | Tags | SpecificationDeploymentNodeKind | GlobalDynamicPredicateGroup | Relation | SpecificationElementKind | Globals | GlobalPredicateGroup | GlobalStyleGroup | SpecificationTag | ImportsFromPoject | SpecificationRule;
15225
15243
  type ValidatableAstNode = Guarded<typeof isValidatableAstNode>;
15226
15244
  declare function checksFromDiagnostics(doc: LikeC4LangiumDocument): {
15227
15245
  isValid: (n: ValidatableAstNode) => boolean;
@@ -15232,155 +15250,155 @@ type IsValidFn = ChecksFromDiagnostics['isValid'];
15232
15250
 
15233
15251
  declare module 'langium' {
15234
15252
  interface LangiumDocument {
15235
- likec4ProjectId?: c4.ProjectId;
15253
+ likec4ProjectId?: _likec4_core.ProjectId;
15236
15254
  }
15237
15255
  interface AstNodeDescription {
15238
- likec4ProjectId?: c4.ProjectId;
15256
+ likec4ProjectId?: _likec4_core.ProjectId;
15239
15257
  }
15240
15258
  }
15241
15259
  declare const idattr: unique symbol;
15242
15260
  declare module './generated/ast' {
15243
15261
  interface Element {
15244
- [idattr]?: c4.Fqn | undefined;
15262
+ [idattr]?: _likec4_core.Fqn | undefined;
15245
15263
  }
15246
15264
  interface ElementView {
15247
- [idattr]?: c4.ViewId | undefined;
15265
+ [idattr]?: _likec4_core.ViewId | undefined;
15248
15266
  }
15249
15267
  interface DynamicView {
15250
- [idattr]?: c4.ViewId | undefined;
15268
+ [idattr]?: _likec4_core.ViewId | undefined;
15251
15269
  }
15252
15270
  interface DeploymentView {
15253
- [idattr]?: c4.ViewId | undefined;
15271
+ [idattr]?: _likec4_core.ViewId | undefined;
15254
15272
  }
15255
15273
  interface DeploymentNode {
15256
- [idattr]?: c4.Fqn | undefined;
15274
+ [idattr]?: _likec4_core.Fqn | undefined;
15257
15275
  }
15258
15276
  interface DeployedInstance {
15259
- [idattr]?: c4.Fqn | undefined;
15277
+ [idattr]?: _likec4_core.Fqn | undefined;
15260
15278
  }
15261
15279
  }
15262
15280
  type ParsedElementStyle = {
15263
- shape?: c4.ElementShape;
15264
- icon?: c4.IconUrl;
15265
- color?: c4.Color;
15266
- border?: c4.BorderStyle;
15281
+ shape?: _likec4_core.ElementShape;
15282
+ icon?: _likec4_core.IconUrl;
15283
+ color?: _likec4_core.Color;
15284
+ border?: _likec4_core.BorderStyle;
15267
15285
  opacity?: number;
15268
15286
  multiple?: boolean;
15269
- size?: c4.ShapeSize;
15270
- padding?: c4.SpacingSize;
15271
- textSize?: c4.TextSize;
15287
+ size?: _likec4_core.ShapeSize;
15288
+ padding?: _likec4_core.SpacingSize;
15289
+ textSize?: _likec4_core.TextSize;
15272
15290
  };
15273
15291
  interface ParsedAstSpecification {
15274
- tags: Record<c4.Tag, {
15292
+ tags: Record<_likec4_core.Tag, {
15275
15293
  astPath: string;
15276
- color?: c4.ColorLiteral;
15294
+ color?: _likec4_core.ColorLiteral;
15277
15295
  }>;
15278
- elements: Record<c4.ElementKind, c4.ElementSpecification>;
15279
- relationships: Record<c4.RelationshipKind, {
15296
+ elements: Record<_likec4_core.ElementKind, _likec4_core.ElementSpecification>;
15297
+ relationships: Record<_likec4_core.RelationshipKind, {
15280
15298
  technology?: string;
15281
15299
  notation?: string;
15282
- color?: c4.Color;
15283
- line?: c4.RelationshipLineType;
15284
- head?: c4.RelationshipArrowType;
15285
- tail?: c4.RelationshipArrowType;
15300
+ color?: _likec4_core.Color;
15301
+ line?: _likec4_core.RelationshipLineType;
15302
+ head?: _likec4_core.RelationshipArrowType;
15303
+ tail?: _likec4_core.RelationshipArrowType;
15286
15304
  }>;
15287
- colors: Record<c4.CustomColor, {
15288
- color: c4.ColorLiteral;
15305
+ colors: Record<_likec4_core.CustomColor, {
15306
+ color: _likec4_core.ColorLiteral;
15289
15307
  }>;
15290
- deployments: Record<c4.DeploymentKind, c4.ElementSpecification>;
15308
+ deployments: Record<_likec4_core.DeploymentKind, _likec4_core.ElementSpecification>;
15291
15309
  }
15292
15310
  interface ParsedAstElement {
15293
- id: c4.Fqn;
15311
+ id: _likec4_core.Fqn;
15294
15312
  astPath: string;
15295
- kind: c4.ElementKind;
15313
+ kind: _likec4_core.ElementKind;
15296
15314
  title: string;
15297
- summary?: c4.MarkdownOrString;
15298
- description?: c4.MarkdownOrString;
15315
+ summary?: _likec4_core.MarkdownOrString;
15316
+ description?: _likec4_core.MarkdownOrString;
15299
15317
  technology?: string;
15300
- tags?: c4.NonEmptyArray<c4.Tag>;
15301
- links?: c4.NonEmptyArray<c4.Link>;
15318
+ tags?: _likec4_core.NonEmptyArray<_likec4_core.Tag>;
15319
+ links?: _likec4_core.NonEmptyArray<_likec4_core.Link>;
15302
15320
  style: ParsedElementStyle;
15303
15321
  metadata?: {
15304
15322
  [key: string]: string;
15305
15323
  };
15306
15324
  }
15307
15325
  interface ParsedAstExtend {
15308
- id: c4.Fqn;
15326
+ id: _likec4_core.Fqn;
15309
15327
  astPath: string;
15310
- tags: c4.NonEmptyArray<c4.Tag> | null;
15311
- links: c4.NonEmptyArray<c4.Link> | null;
15328
+ tags: _likec4_core.NonEmptyArray<_likec4_core.Tag> | null;
15329
+ links: _likec4_core.NonEmptyArray<_likec4_core.Link> | null;
15312
15330
  metadata?: {
15313
15331
  [key: string]: string;
15314
15332
  };
15315
15333
  }
15316
15334
  interface ParsedAstRelation {
15317
- id: c4.RelationId;
15335
+ id: _likec4_core.RelationId;
15318
15336
  astPath: string;
15319
- source: c4.FqnRef.ModelRef;
15320
- target: c4.FqnRef.ModelRef;
15321
- kind?: c4.RelationshipKind;
15322
- tags?: c4.NonEmptyArray<c4.Tag>;
15337
+ source: _likec4_core.FqnRef.ModelRef;
15338
+ target: _likec4_core.FqnRef.ModelRef;
15339
+ kind?: _likec4_core.RelationshipKind;
15340
+ tags?: _likec4_core.NonEmptyArray<_likec4_core.Tag>;
15323
15341
  title: string;
15324
- description?: c4.MarkdownOrString;
15342
+ description?: _likec4_core.MarkdownOrString;
15325
15343
  technology?: string;
15326
- color?: c4.Color;
15327
- line?: c4.RelationshipLineType;
15328
- head?: c4.RelationshipArrowType;
15329
- tail?: c4.RelationshipArrowType;
15330
- links?: c4.NonEmptyArray<c4.Link>;
15331
- navigateTo?: c4.ViewId;
15344
+ color?: _likec4_core.Color;
15345
+ line?: _likec4_core.RelationshipLineType;
15346
+ head?: _likec4_core.RelationshipArrowType;
15347
+ tail?: _likec4_core.RelationshipArrowType;
15348
+ links?: _likec4_core.NonEmptyArray<_likec4_core.Link>;
15349
+ navigateTo?: _likec4_core.ViewId;
15332
15350
  metadata?: {
15333
15351
  [key: string]: string;
15334
15352
  };
15335
15353
  }
15336
15354
  type ParsedAstDeployment = Simplify<MergeExclusive<ParsedAstDeployment.Node, ParsedAstDeployment.Instance>>;
15337
15355
  declare namespace ParsedAstDeployment {
15338
- type Node = c4.DeploymentNode;
15339
- type Instance = Omit<c4.DeployedInstance, 'element'> & {
15340
- readonly element: c4.FqnRef.ModelRef;
15356
+ type Node = _likec4_core.DeploymentNode;
15357
+ type Instance = Omit<_likec4_core.DeployedInstance, 'element'> & {
15358
+ readonly element: _likec4_core.FqnRef.ModelRef;
15341
15359
  };
15342
15360
  }
15343
- type ParsedAstDeploymentRelation = c4.DeploymentRelationship & {
15361
+ type ParsedAstDeploymentRelation = _likec4_core.DeploymentRelationship & {
15344
15362
  astPath: string;
15345
15363
  };
15346
- type ParsedAstGlobals = Writable<c4.ModelGlobals>;
15364
+ type ParsedAstGlobals = Writable<_likec4_core.ModelGlobals>;
15347
15365
  interface ParsedAstElementView {
15348
- id: c4.ViewId;
15349
- viewOf?: c4.Fqn;
15350
- extends?: c4.ViewId;
15366
+ id: _likec4_core.ViewId;
15367
+ viewOf?: _likec4_core.Fqn;
15368
+ extends?: _likec4_core.ViewId;
15351
15369
  astPath: string;
15352
15370
  title: string | null;
15353
- description: c4.MarkdownOrString | null;
15354
- tags: c4.NonEmptyArray<c4.Tag> | null;
15355
- links: c4.NonEmptyArray<c4.Link> | null;
15356
- rules: c4.ElementViewRule[];
15357
- manualLayout?: c4.ViewManualLayout;
15371
+ description: _likec4_core.MarkdownOrString | null;
15372
+ tags: _likec4_core.NonEmptyArray<_likec4_core.Tag> | null;
15373
+ links: _likec4_core.NonEmptyArray<_likec4_core.Link> | null;
15374
+ rules: _likec4_core.ElementViewRule[];
15375
+ manualLayout?: _likec4_core.ViewManualLayout;
15358
15376
  }
15359
15377
  interface ParsedAstDynamicView {
15360
- id: c4.ViewId;
15378
+ id: _likec4_core.ViewId;
15361
15379
  astPath: string;
15362
15380
  title: string | null;
15363
- description: c4.MarkdownOrString | null;
15364
- tags: c4.NonEmptyArray<c4.Tag> | null;
15365
- links: c4.NonEmptyArray<c4.Link> | null;
15366
- steps: c4.DynamicViewStepOrParallel[];
15367
- rules: Array<c4.DynamicViewRule>;
15368
- variant: c4.DynamicViewDisplayVariant | undefined;
15369
- manualLayout?: c4.ViewManualLayout;
15381
+ description: _likec4_core.MarkdownOrString | null;
15382
+ tags: _likec4_core.NonEmptyArray<_likec4_core.Tag> | null;
15383
+ links: _likec4_core.NonEmptyArray<_likec4_core.Link> | null;
15384
+ steps: _likec4_core.DynamicViewStep[];
15385
+ rules: Array<_likec4_core.DynamicViewRule>;
15386
+ variant: _likec4_core.DynamicViewDisplayVariant | undefined;
15387
+ manualLayout?: _likec4_core.ViewManualLayout;
15370
15388
  }
15371
15389
  interface ParsedAstDeploymentView {
15372
- id: c4.ViewId;
15390
+ id: _likec4_core.ViewId;
15373
15391
  astPath: string;
15374
15392
  title: string | null;
15375
- description: c4.MarkdownOrString | null;
15376
- tags: c4.NonEmptyArray<c4.Tag> | null;
15377
- links: c4.NonEmptyArray<c4.Link> | null;
15378
- rules: Array<c4.DeploymentViewRule>;
15393
+ description: _likec4_core.MarkdownOrString | null;
15394
+ tags: _likec4_core.NonEmptyArray<_likec4_core.Tag> | null;
15395
+ links: _likec4_core.NonEmptyArray<_likec4_core.Link> | null;
15396
+ rules: Array<_likec4_core.DeploymentViewRule>;
15379
15397
  }
15380
15398
  type ParsedAstView = ParsedAstElementView | ParsedAstDynamicView | ParsedAstDeploymentView;
15381
15399
  interface AstNodeDescriptionWithFqn extends AstNodeDescription {
15382
- likec4ProjectId: c4.ProjectId;
15383
- id: c4.Fqn;
15400
+ likec4ProjectId: _likec4_core.ProjectId;
15401
+ id: _likec4_core.Fqn;
15384
15402
  }
15385
15403
  type LikeC4AstNode = ValueOf<ConditionalPick<LikeC4AstType, AstNode>>;
15386
15404
  type LikeC4DocumentDiagnostic = Diagnostic & DiagnosticInfo<LikeC4AstNode>;
@@ -15395,14 +15413,14 @@ interface LikeC4DocumentProps {
15395
15413
  c4Views?: ParsedAstView[];
15396
15414
  c4Deployments?: ParsedAstDeployment[];
15397
15415
  c4DeploymentRelations?: ParsedAstDeploymentRelation[];
15398
- c4Imports?: MultiMap$1<c4.ProjectId, c4.Fqn, Set<c4.Fqn>>;
15416
+ c4Imports?: MultiMap$1<_likec4_core.ProjectId, _likec4_core.Fqn, Set<_likec4_core.Fqn>>;
15399
15417
  }
15400
15418
  type LikeC4GrammarDocument = Omit<LangiumDocument<LikeC4Grammar>, 'diagnostics'>;
15401
15419
  interface LikeC4LangiumDocument extends LikeC4GrammarDocument, LikeC4DocumentProps {
15402
- likec4ProjectId: c4.ProjectId;
15420
+ likec4ProjectId: _likec4_core.ProjectId;
15403
15421
  }
15404
15422
  interface ParsedLikeC4LangiumDocument extends LikeC4GrammarDocument, Required<LikeC4DocumentProps> {
15405
- likec4ProjectId: c4.ProjectId;
15423
+ likec4ProjectId: _likec4_core.ProjectId;
15406
15424
  }
15407
15425
 
15408
15426
  declare class LikeC4NameProvider extends DefaultNameProvider {
@@ -15457,14 +15475,14 @@ declare class LangiumDocuments extends DefaultLangiumDocuments {
15457
15475
  type ProjectFolder = Tagged<string, 'ProjectFolder'>;
15458
15476
  declare function ProjectFolder(folder: URI$1 | string): ProjectFolder;
15459
15477
  interface ProjectData {
15460
- id: ProjectId;
15478
+ id: scalar.ProjectId;
15461
15479
  config: LikeC4ProjectConfig;
15462
15480
  folder: ProjectFolder;
15463
15481
  folderUri: URI$1;
15464
15482
  exclude?: (path: string) => boolean;
15465
15483
  }
15466
15484
  interface Project {
15467
- id: ProjectId;
15485
+ id: scalar.ProjectId;
15468
15486
  folderUri: URI$1;
15469
15487
  config: LikeC4ProjectConfig;
15470
15488
  }
@@ -15475,21 +15493,7 @@ declare class ProjectsManager {
15475
15493
  * The global project ID used for all documents
15476
15494
  * that are not part of a specific project.
15477
15495
  */
15478
- static readonly DefaultProjectId: ProjectId;
15479
- private static DefaultProject;
15480
- /**
15481
- * The mapping between project config files and project IDs.
15482
- */
15483
- private projectIdToFolder;
15484
- /**
15485
- * Registered projects.
15486
- * Sorted descending by the number of segments in the folder path.
15487
- * This ensures that the most specific project is used for a document.
15488
- */
15489
- private _projects;
15490
- private excludedDocuments;
15491
- private get defaultGlobalProject();
15492
- private reloadProjectsLimiter;
15496
+ static readonly DefaultProjectId: scalar.ProjectId;
15493
15497
  constructor(services: LikeC4SharedServices);
15494
15498
  /**
15495
15499
  * Returns:
@@ -15498,16 +15502,16 @@ declare class ProjectsManager {
15498
15502
  * - the ID of the only project
15499
15503
  * - undefined if there are multiple projects.
15500
15504
  */
15501
- get defaultProjectId(): ProjectId | undefined;
15502
- set defaultProjectId(id: ProjectId | undefined);
15503
- get all(): NonEmptyReadonlyArray<ProjectId>;
15504
- getProject(arg: ProjectId | LangiumDocument): Project;
15505
+ get defaultProjectId(): scalar.ProjectId | undefined;
15506
+ set defaultProjectId(id: string | scalar.ProjectId | undefined);
15507
+ get all(): NonEmptyReadonlyArray<scalar.ProjectId>;
15508
+ getProject(arg: scalar.ProjectId | LangiumDocument): Project;
15505
15509
  /**
15506
15510
  * Validates and ensures the project ID.
15507
15511
  * If no project ID is specified, returns default project ID
15508
15512
  * If there are multiple projects and default project is not set, throws an error
15509
15513
  */
15510
- ensureProjectId(projectId?: ProjectId | undefined): ProjectId;
15514
+ ensureProjectId(projectId?: scalar.ProjectId | undefined): scalar.ProjectId;
15511
15515
  hasMultipleProjects(): boolean;
15512
15516
  /**
15513
15517
  * Checks if the specified document should be excluded from processing.
@@ -15524,20 +15528,25 @@ declare class ProjectsManager {
15524
15528
  *
15525
15529
  * @param entry The file system entry to check
15526
15530
  */
15527
- loadConfigFile(entry: FileSystemNode): Promise<ProjectData | undefined>;
15531
+ registerConfigFile(configFile: URI$1): Promise<ProjectData | undefined>;
15528
15532
  /**
15529
15533
  * Registers (or reloads) likec4 project by config file or config object.
15530
15534
  * If there is some project registered at same folder, it will be reloaded.
15531
15535
  */
15532
15536
  registerProject(opts: URI$1 | {
15533
- config: LikeC4ProjectConfig;
15537
+ config: LikeC4ProjectConfigInput;
15534
15538
  folderUri: URI$1 | string;
15535
15539
  }): Promise<ProjectData>;
15536
- belongsTo(document: LangiumDocument | URI$1 | string): ProjectId;
15537
- reloadProjects(token?: CancellationToken): Promise<void>;
15538
- protected uniqueProjectId(name: string): ProjectId;
15540
+ /**
15541
+ * Registers (or reloads) likec4 project by config file or config object.
15542
+ * If there is some project registered at same folder, it will be reloaded.
15543
+ */
15544
+ private _registerProject;
15545
+ belongsTo(document: LangiumDocument | URI$1 | string): scalar.ProjectId;
15546
+ reloadProjects(): Promise<void>;
15547
+ protected uniqueProjectId(name: string): scalar.ProjectId;
15539
15548
  protected resetProjectIds(): void;
15540
- protected rebuidDocuments(): Promise<void>;
15549
+ protected rebuidDocuments(cancelToken?: CancellationToken): Promise<void>;
15541
15550
  protected findProjectForDocument(documentUri: string): any;
15542
15551
  protected get mappingsToProject(): WorkspaceCache<string, Pick<ProjectData, 'id' | 'config' | 'exclude'>>;
15543
15552
  }
@@ -15691,22 +15700,27 @@ declare class LikeC4ModelLocator {
15691
15700
  private projects;
15692
15701
  constructor(services: LikeC4Services);
15693
15702
  private documents;
15694
- getParsedElement(...args: [Element] | [c4.Fqn] | [c4.Fqn, c4.ProjectId]): ParsedAstElement | null;
15695
- locateElement(fqn: c4.Fqn, projectId?: c4.ProjectId | undefined): Location | null;
15696
- locateDeploymentElement(deploymentFqn: c4.DeploymentFqn, projectId?: c4.ProjectId | undefined): Location | null;
15697
- locateRelation(relationId: c4.RelationId, projectId?: c4.ProjectId): Location | null;
15698
- locateViewAst(viewId: c4.ViewId, projectId?: c4.ProjectId | undefined): null | {
15703
+ getParsedElement(...args: [Element] | [_likec4_core.Fqn] | [_likec4_core.Fqn, _likec4_core.ProjectId]): ParsedAstElement | null;
15704
+ locateElement(fqn: _likec4_core.Fqn, projectId?: _likec4_core.ProjectId | undefined): Location | null;
15705
+ locateDeploymentElement(deploymentFqn: _likec4_core.DeploymentFqn, projectId?: _likec4_core.ProjectId | undefined): Location | null;
15706
+ locateRelation(relationId: _likec4_core.RelationId, projectId?: _likec4_core.ProjectId): Location | null;
15707
+ locateViewAst(viewId: _likec4_core.ViewId, projectId?: _likec4_core.ProjectId | undefined): null | {
15699
15708
  doc: ParsedLikeC4LangiumDocument;
15700
15709
  view: ParsedAstView;
15701
15710
  viewAst: LikeC4View;
15702
15711
  };
15703
- locateView(viewId: c4.ViewId, projectId?: c4.ProjectId): Location | null;
15712
+ locateView(viewId: _likec4_core.ViewId, projectId?: _likec4_core.ProjectId): Location | null;
15704
15713
  locateDocumentTags(documentUri: URI$1, cancelToken?: CancellationToken): Promise<Array<{
15705
15714
  name: string;
15706
15715
  color: string;
15707
15716
  range: Range$1;
15708
15717
  isSpecification: boolean;
15709
15718
  }>>;
15719
+ locateDynamicViewStep(params: {
15720
+ view: _likec4_core.ViewId;
15721
+ astPath: string;
15722
+ projectId?: _likec4_core.ProjectId | undefined;
15723
+ }): Location | null;
15710
15724
  }
15711
15725
 
15712
15726
  declare class BaseParser {
@@ -15715,23 +15729,23 @@ declare class BaseParser {
15715
15729
  isValid: IsValidFn;
15716
15730
  constructor(services: LikeC4Services, doc: ParsedLikeC4LangiumDocument);
15717
15731
  get project(): Project;
15718
- resolveFqn(node: FqnReferenceable): c4.Fqn;
15732
+ resolveFqn(node: FqnReferenceable): _likec4_core.Fqn;
15719
15733
  getAstNodePath(node: AstNode): any;
15720
15734
  getMetadata(metadataAstNode: MetadataProperty | undefined): {
15721
15735
  [key: string]: string;
15722
15736
  } | undefined;
15723
- parseMarkdownOrString(markdownOrString: MarkdownOrString | undefined): c4.MarkdownOrString | undefined;
15737
+ parseMarkdownOrString(markdownOrString: MarkdownOrString | undefined): _likec4_core.MarkdownOrString | undefined;
15724
15738
  convertTags<E extends {
15725
15739
  tags?: Tags;
15726
15740
  }>(withTags?: E): any;
15727
15741
  parseTags<E extends {
15728
15742
  tags?: Tags;
15729
- }>(withTags?: E): c4.NonEmptyArray<c4.Tag> | null;
15730
- convertLinks(source?: LinkProperty['$container']): c4.Link[] | undefined;
15731
- parseLinks(source?: LinkProperty['$container']): c4.Link[] | undefined;
15732
- parseIconProperty(prop: IconProperty | undefined): c4.IconUrl | undefined;
15743
+ }>(withTags?: E): _likec4_core.NonEmptyArray<_likec4_core.Tag> | null;
15744
+ convertLinks(source?: LinkProperty['$container']): _likec4_core.Link[] | undefined;
15745
+ parseLinks(source?: LinkProperty['$container']): _likec4_core.Link[] | undefined;
15746
+ parseIconProperty(prop: IconProperty | undefined): _likec4_core.IconUrl | undefined;
15733
15747
  parseImageAlias(value: string): string | undefined;
15734
- parseColorLiteral(astNode: ColorLiteral): c4.ColorLiteral | undefined;
15748
+ parseColorLiteral(astNode: ColorLiteral): _likec4_core.ColorLiteral | undefined;
15735
15749
  parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
15736
15750
  parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
15737
15751
  /**
@@ -15753,8 +15767,8 @@ declare class BaseParser {
15753
15767
  technology?: string | undefined;
15754
15768
  }): {
15755
15769
  title?: string;
15756
- summary?: c4.MarkdownOrString;
15757
- description?: c4.MarkdownOrString;
15770
+ summary?: _likec4_core.MarkdownOrString;
15771
+ description?: _likec4_core.MarkdownOrString;
15758
15772
  technology?: string;
15759
15773
  };
15760
15774
  }
@@ -15779,7 +15793,12 @@ declare const DocumentParserFromMixins: {
15779
15793
  parseDynamicViewRule(astRule: DynamicViewRule): ProjectId;
15780
15794
  parseDynamicViewIncludePredicate(astRule: DynamicViewIncludePredicate): ProjectId;
15781
15795
  parseDynamicParallelSteps(node: DynamicViewParallelSteps): ProjectId;
15782
- parseDynamicStep(node: DynamicViewStep): ProjectId;
15796
+ parseDynamicStep(node: DynamicViewStep): ProjectId | ProjectId;
15797
+ recursiveParseDynamicStepChain(node: DynamicStepChain, callstack?: Array<[source: ProjectId, target: ProjectId]>): ProjectId[];
15798
+ parseDynamicStepSingle(node: DynamicStepSingle): ProjectId;
15799
+ parseAbstractDynamicStep(astnode: AbstractDynamicStep): type_fest.Writable<type_fest.Except<ProjectId, "source", {
15800
+ requireExactProps: true;
15801
+ }>>;
15783
15802
  parsePredicate(astNode: ExpressionV2): ProjectId;
15784
15803
  parseElementPredicate(astNode: FqnExprOrWith): ProjectId;
15785
15804
  parseElementPredicateOrWhere(astNode: FqnExprOrWhere): ProjectId;
@@ -15802,6 +15821,7 @@ declare const DocumentParserFromMixins: {
15802
15821
  parseFqnExpressions(astNode: FqnExpressions): ProjectId[];
15803
15822
  parseRelationExprOrWith(astNode: RelationExprOrWith): ProjectId;
15804
15823
  parseRelationExprWith(astNode: RelationExprWith): ProjectId;
15824
+ parseCustomRelationProperties(custom: CustomRelationProperties | undefined): type_fest.Except<ProjectId["customRelation"], "expr">;
15805
15825
  parseRelationExprOrWhere(astNode: RelationExprOrWhere): ProjectId;
15806
15826
  parseRelationExprWhere(astNode: RelationExprWhere): ProjectId;
15807
15827
  parseRelationExpr(astNode: RelationExpr): ProjectId;
@@ -15872,7 +15892,12 @@ declare const DocumentParserFromMixins: {
15872
15892
  parseDynamicViewRule(astRule: DynamicViewRule): ProjectId;
15873
15893
  parseDynamicViewIncludePredicate(astRule: DynamicViewIncludePredicate): ProjectId;
15874
15894
  parseDynamicParallelSteps(node: DynamicViewParallelSteps): ProjectId;
15875
- parseDynamicStep(node: DynamicViewStep): ProjectId;
15895
+ parseDynamicStep(node: DynamicViewStep): ProjectId | ProjectId;
15896
+ recursiveParseDynamicStepChain(node: DynamicStepChain, callstack?: Array<[source: ProjectId, target: ProjectId]>): ProjectId[];
15897
+ parseDynamicStepSingle(node: DynamicStepSingle): ProjectId;
15898
+ parseAbstractDynamicStep(astnode: AbstractDynamicStep): type_fest.Writable<type_fest.Except<ProjectId, "source", {
15899
+ requireExactProps: true;
15900
+ }>>;
15876
15901
  parsePredicate(astNode: ExpressionV2): ProjectId;
15877
15902
  parseElementPredicate(astNode: FqnExprOrWith): ProjectId;
15878
15903
  parseElementPredicateOrWhere(astNode: FqnExprOrWhere): ProjectId;
@@ -15895,6 +15920,7 @@ declare const DocumentParserFromMixins: {
15895
15920
  parseFqnExpressions(astNode: FqnExpressions): ProjectId[];
15896
15921
  parseRelationExprOrWith(astNode: RelationExprOrWith): ProjectId;
15897
15922
  parseRelationExprWith(astNode: RelationExprWith): ProjectId;
15923
+ parseCustomRelationProperties(custom: CustomRelationProperties | undefined): type_fest.Except<ProjectId["customRelation"], "expr">;
15898
15924
  parseRelationExprOrWhere(astNode: RelationExprOrWhere): ProjectId;
15899
15925
  parseRelationExprWhere(astNode: RelationExprWhere): ProjectId;
15900
15926
  parseRelationExpr(astNode: RelationExpr): ProjectId;
@@ -16019,6 +16045,7 @@ declare const DocumentParserFromMixins: {
16019
16045
  parseFqnExpressions(astNode: FqnExpressions): ProjectId[];
16020
16046
  parseRelationExprOrWith(astNode: RelationExprOrWith): ProjectId;
16021
16047
  parseRelationExprWith(astNode: RelationExprWith): ProjectId;
16048
+ parseCustomRelationProperties(custom: CustomRelationProperties | undefined): type_fest.Except<ProjectId["customRelation"], "expr">;
16022
16049
  parseRelationExprOrWhere(astNode: RelationExprOrWhere): ProjectId;
16023
16050
  parseRelationExprWhere(astNode: RelationExprWhere): ProjectId;
16024
16051
  parseRelationExpr(astNode: RelationExpr): ProjectId;
@@ -16081,6 +16108,7 @@ declare const DocumentParserFromMixins: {
16081
16108
  parseFqnExpressions(astNode: FqnExpressions): ProjectId[];
16082
16109
  parseRelationExprOrWith(astNode: RelationExprOrWith): ProjectId;
16083
16110
  parseRelationExprWith(astNode: RelationExprWith): ProjectId;
16111
+ parseCustomRelationProperties(custom: CustomRelationProperties | undefined): type_fest.Except<ProjectId["customRelation"], "expr">;
16084
16112
  parseRelationExprOrWhere(astNode: RelationExprOrWhere): ProjectId;
16085
16113
  parseRelationExprWhere(astNode: RelationExprWhere): ProjectId;
16086
16114
  parseRelationExpr(astNode: RelationExpr): ProjectId;
@@ -16151,6 +16179,7 @@ declare const DocumentParserFromMixins: {
16151
16179
  parseFqnExpressions(astNode: FqnExpressions): ProjectId[];
16152
16180
  parseRelationExprOrWith(astNode: RelationExprOrWith): ProjectId;
16153
16181
  parseRelationExprWith(astNode: RelationExprWith): ProjectId;
16182
+ parseCustomRelationProperties(custom: CustomRelationProperties | undefined): type_fest.Except<ProjectId["customRelation"], "expr">;
16154
16183
  parseRelationExprOrWhere(astNode: RelationExprOrWhere): ProjectId;
16155
16184
  parseRelationExprWhere(astNode: RelationExprWhere): ProjectId;
16156
16185
  parseRelationExpr(astNode: RelationExpr): ProjectId;
@@ -16214,6 +16243,7 @@ declare const DocumentParserFromMixins: {
16214
16243
  parseFqnExpressions(astNode: FqnExpressions): ProjectId[];
16215
16244
  parseRelationExprOrWith(astNode: RelationExprOrWith): ProjectId;
16216
16245
  parseRelationExprWith(astNode: RelationExprWith): ProjectId;
16246
+ parseCustomRelationProperties(custom: CustomRelationProperties | undefined): type_fest.Except<ProjectId["customRelation"], "expr">;
16217
16247
  parseRelationExprOrWhere(astNode: RelationExprOrWhere): ProjectId;
16218
16248
  parseRelationExprWhere(astNode: RelationExprWhere): ProjectId;
16219
16249
  parseRelationExpr(astNode: RelationExpr): ProjectId;
@@ -16315,6 +16345,7 @@ declare const DocumentParserFromMixins: {
16315
16345
  parseFqnExpressions(astNode: FqnExpressions): ProjectId[];
16316
16346
  parseRelationExprOrWith(astNode: RelationExprOrWith): ProjectId;
16317
16347
  parseRelationExprWith(astNode: RelationExprWith): ProjectId;
16348
+ parseCustomRelationProperties(custom: CustomRelationProperties | undefined): type_fest.Except<ProjectId["customRelation"], "expr">;
16318
16349
  parseRelationExprOrWhere(astNode: RelationExprOrWhere): ProjectId;
16319
16350
  parseRelationExprWhere(astNode: RelationExprWhere): ProjectId;
16320
16351
  parseRelationExpr(astNode: RelationExpr): ProjectId;
@@ -16395,18 +16426,42 @@ declare namespace DidRequestOpenViewNotification {
16395
16426
  * If LSP has multiple projects, the projectId is required.
16396
16427
  */
16397
16428
  declare namespace Locate {
16398
- type Params = {
16429
+ type Params =
16430
+ /**
16431
+ * Locate an element by its fqn
16432
+ */
16433
+ {
16399
16434
  element: Fqn;
16400
16435
  projectId?: string | undefined;
16401
16436
  property?: string;
16402
- } | {
16437
+ }
16438
+ /**
16439
+ * Locate a relation by its id
16440
+ */
16441
+ | {
16403
16442
  projectId?: string | undefined;
16404
16443
  relation: RelationId;
16405
- } | {
16444
+ }
16445
+ /**
16446
+ * Locate a deployment by its fqn
16447
+ */
16448
+ | {
16406
16449
  deployment: DeploymentFqn;
16407
16450
  projectId?: string | undefined;
16408
16451
  property?: string;
16409
- } | {
16452
+ }
16453
+ /**
16454
+ * Locate a step in a dynamic view by its astPath
16455
+ */
16456
+ | {
16457
+ view: ViewId;
16458
+ astPath: string;
16459
+ projectId?: string | undefined;
16460
+ }
16461
+ /**
16462
+ * Locate a view by its id
16463
+ */
16464
+ | {
16410
16465
  view: ViewId;
16411
16466
  projectId?: string | undefined;
16412
16467
  };
@@ -16550,7 +16605,7 @@ declare class LikeC4DocumentHighlightProvider extends DefaultDocumentHighlightPr
16550
16605
  declare class LikeC4DocumentLinkProvider implements DocumentLinkProvider {
16551
16606
  private services;
16552
16607
  constructor(services: LikeC4Services);
16553
- getDocumentLinks(doc: LangiumDocument, _params: DocumentLinkParams, cancelToken?: CancellationToken): Promise<DocumentLink[]>;
16608
+ getDocumentLinks(doc: LangiumDocument, _params: DocumentLinkParams, _cancelToken?: CancellationToken): Promise<DocumentLink[]>;
16554
16609
  resolveLink(doc: LangiumDocument, link: string): string;
16555
16610
  relativeLink(doc: LangiumDocument, link: string): string | null;
16556
16611
  }