likec4 1.19.2 → 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.
- package/__app__/react/likec4.tsx +16 -114
- package/__app__/src/chunks/{-index-overview-COSF42be.js → -index-overview-r2wnjkuP.js} +20 -19
- package/__app__/src/chunks/{likec4-CusAw_j6.js → likec4-CK8zVxjc.js} +1172 -1209
- package/__app__/src/chunks/main-DnSU4JID.js +23887 -0
- package/__app__/src/chunks/{mantine-B_6mKFFA.js → mantine-B9NZkjVg.js} +993 -981
- package/__app__/src/chunks/tanstack-router-B9I-d36d.js +3032 -0
- package/__app__/src/main.js +1 -2
- package/__app__/src/style.css +1 -1
- package/__app__/webcomponent/webcomponent.js +31797 -32401
- package/dist/chunks/prompt.cjs +1 -1
- package/dist/chunks/prompt.mjs +1 -1
- package/dist/cli/index.cjs +47 -58
- package/dist/cli/index.mjs +29 -40
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +106 -81
- package/dist/index.d.mts +106 -81
- package/dist/index.d.ts +106 -81
- package/dist/index.mjs +1 -1
- package/dist/model/index.cjs +1 -1
- package/dist/model/index.d.cts +4 -257
- package/dist/model/index.d.mts +4 -257
- package/dist/model/index.d.ts +4 -257
- package/dist/model/index.mjs +1 -1
- package/dist/shared/likec4.DBfW7tKq.cjs +1857 -0
- package/dist/shared/likec4.DCOeDSBO.mjs +1857 -0
- package/package.json +39 -39
- package/react/index.d.ts +771 -1546
- package/react/index.js +36748 -37458
- package/react/style.css +1 -1
- package/__app__/src/chunks/main-CtzxB_vG.js +0 -24136
- package/__app__/src/chunks/tanstack-router-BBWuTKWO.js +0 -2373
- package/dist/shared/likec4.-U9_Dinu.cjs +0 -1856
- package/dist/shared/likec4.CVn8U3Og.cjs +0 -9
- package/dist/shared/likec4.Cgd5VecV.mjs +0 -9
- package/dist/shared/likec4.D7BM0ZAO.mjs +0 -1856
- package/dist/shared/likec4.DJeGiAvE.d.cts +0 -1639
- package/dist/shared/likec4.DJeGiAvE.d.mts +0 -1639
- package/dist/shared/likec4.DJeGiAvE.d.ts +0 -1639
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const model=require("@likec4/core/model");require("@likec4/core");const LikeC4=require("./shared/likec4.DBfW7tKq.cjs");require("node:fs"),require("node:path"),require("node:url"),require("tty"),require("node:util"),require("util"),require("path"),require("os"),require("crypto"),require("net"),require("url"),require("fs"),require("child_process"),require("node:fs/promises"),require("node:process"),require("node:tty"),require("@hpcc-js/wasm-graphviz"),require("buffer"),require("@likec4/core/compute-view"),require("node:child_process"),require("node:string_decoder"),require("node:timers/promises"),require("node:os"),require("node:events"),require("node:v8"),require("node:stream"),require("node:buffer"),require("node:stream/promises"),require("vite"),exports.LikeC4DeploymentModel=model.LikeC4DeploymentModel,exports.LikeC4Model=model.LikeC4Model,exports.LikeC4ViewModel=model.LikeC4ViewModel,exports.LikeC4=LikeC4.L;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
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
|
|
15011
|
-
icon?: IconUrl;
|
|
15012
|
-
color?: Color
|
|
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
|
|
15018
|
-
elements: Record<ElementKind
|
|
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
|
|
15048
|
+
relationships: Record<c4.RelationshipKind, {
|
|
15024
15049
|
technology?: string;
|
|
15025
15050
|
notation?: string;
|
|
15026
|
-
color?: Color
|
|
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
|
|
15032
|
-
color: HexColorLiteral;
|
|
15056
|
+
colors: Record<c4.CustomColor, {
|
|
15057
|
+
color: c4.HexColorLiteral;
|
|
15033
15058
|
}>;
|
|
15034
|
-
deployments: Record<DeploymentNodeKind
|
|
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
|
|
15064
|
+
kind: c4.ElementKind;
|
|
15040
15065
|
title: string;
|
|
15041
15066
|
description?: string;
|
|
15042
15067
|
technology?: string;
|
|
15043
|
-
tags?: NonEmptyArray<Tag
|
|
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
|
|
15056
|
-
tags?: NonEmptyArray<Tag
|
|
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
|
|
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
|
|
15095
|
+
type ParsedAstDeployment = c4.DeploymentElement;
|
|
15071
15096
|
declare namespace ParsedAstDeployment {
|
|
15072
|
-
type Node = DeploymentNode
|
|
15073
|
-
type Instance = DeployedInstance
|
|
15097
|
+
type Node = c4.DeploymentNode;
|
|
15098
|
+
type Instance = c4.DeployedInstance;
|
|
15074
15099
|
}
|
|
15075
|
-
type ParsedAstDeploymentRelation = DeploymentRelation
|
|
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
|
|
15088
|
-
links: NonEmptyArray<ParsedLink> | null;
|
|
15089
|
-
rules: ViewRule
|
|
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
|
|
15099
|
-
links: NonEmptyArray<ParsedLink> | null;
|
|
15100
|
-
steps: DynamicViewStepOrParallel[];
|
|
15101
|
-
rules: Array<DynamicViewRule
|
|
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
|
|
15111
|
-
links: NonEmptyArray<ParsedLink> | null;
|
|
15112
|
-
rules: Array<DeploymentViewRule
|
|
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
|
|
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 {
|
|
16500
|
+
export { LikeC4 };
|