@likec4/core 1.35.0 → 1.36.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 (52) hide show
  1. package/README.md +1 -1
  2. package/dist/builder/index.d.mts +15 -4
  3. package/dist/builder/index.mjs +13 -10
  4. package/dist/compute-view/index.d.mts +3 -3
  5. package/dist/compute-view/index.mjs +10 -8
  6. package/dist/compute-view/relationships-view/index.d.mts +3 -3
  7. package/dist/index.d.mts +2 -2
  8. package/dist/index.mjs +7 -3
  9. package/dist/model/connection/deployment/index.d.mts +5 -5
  10. package/dist/model/connection/deployment/index.mjs +3 -2
  11. package/dist/model/connection/index.d.mts +6 -6
  12. package/dist/model/connection/index.mjs +3 -2
  13. package/dist/model/connection/model/index.d.mts +5 -5
  14. package/dist/model/index.d.mts +8 -8
  15. package/dist/model/index.mjs +6 -4
  16. package/dist/shared/{core.DAj3LuFH.d.mts → core.BFb3p5d-.d.mts} +4 -2
  17. package/dist/shared/{core.RnUJywKk.mjs → core.BlwZ4tBa.mjs} +9 -5
  18. package/dist/shared/{core.DhTO8rgm.d.mts → core.Bt3kuGUN.d.mts} +3 -3
  19. package/dist/shared/{core.CQS11dNK.mjs → core.Bus32P0S.mjs} +2 -1
  20. package/dist/shared/{core.rpF8esVq.mjs → core.BvIGRozf.mjs} +13 -3
  21. package/dist/shared/{core.B1ZN723l.mjs → core.CaJp8Amg.mjs} +3 -2
  22. package/dist/shared/{core.D56nCp7e.mjs → core.CaaYNQDM.mjs} +1 -3
  23. package/dist/shared/core.CnIyafWn.mjs +3 -0
  24. package/dist/shared/{core.72IoI17N.d.mts → core.D8bTI5KC.d.mts} +2 -2
  25. package/dist/shared/{core.NBNeVyag.d.mts → core.DHYd2-VU.d.mts} +3 -3
  26. package/dist/shared/{core.SciGxb--.d.mts → core.DoNP3Yl-.d.mts} +6 -5
  27. package/dist/shared/{core.Ddua-wiI.d.mts → core.DxDn5nB5.d.mts} +21 -6
  28. package/dist/shared/{core.BajmN8zR.mjs → core._jnYNUQ-.mjs} +4 -66
  29. package/dist/theme/index.mjs +2 -3508
  30. package/dist/types/_aux.d.mts +1 -1
  31. package/dist/types/index.d.mts +3 -3
  32. package/dist/types/index.mjs +6 -4
  33. package/dist/types/scalar.d.mts +2 -0
  34. package/dist/types/scalar.mjs +68 -0
  35. package/package.json +8 -14
  36. package/src/builder/Builder.ts +17 -6
  37. package/src/builder/__snapshots__/Builder-style1.spec.ts.snap +9 -0
  38. package/src/builder/__snapshots__/Builder-style2.compute-model.json5 +3 -0
  39. package/src/builder/__snapshots__/Builder-style2.spec.ts.snap +3 -0
  40. package/src/builder/_types.ts +10 -0
  41. package/src/compute-view/dynamic-view/compute.ts +2 -0
  42. package/src/compute-view/element-view/__test__/fixture.ts +1 -0
  43. package/src/compute-view/utils/applyCustomRelationProperties.ts +2 -0
  44. package/src/model/LikeC4Model.ts +16 -6
  45. package/src/theme/element.ts +0 -19
  46. package/src/types/_aux.ts +6 -0
  47. package/src/types/index.ts +1 -0
  48. package/src/types/model-data.ts +2 -0
  49. package/src/types/model-dump.ts +8 -1
  50. package/src/types/project.ts +9 -0
  51. package/src/types/view-computed.ts +1 -1
  52. package/src/types/view-parsed.dynamic.ts +2 -2
@@ -1,5 +1,5 @@
1
- import { E as ElementModel, e as DeploymentElementModel } from './core.SciGxb--.mjs';
2
- import { A as Any } from './core.DAj3LuFH.mjs';
1
+ import { E as ElementModel, e as DeploymentElementModel } from './core.DoNP3Yl-.mjs';
2
+ import { A as Any } from './core.BFb3p5d-.mjs';
3
3
  import { F as Fqn } from './core.668kXpZq.mjs';
4
4
 
5
5
  interface Connection<Elem = ElementModel<Any> | DeploymentElementModel<Any>, Id = string> {
@@ -1,6 +1,6 @@
1
- import { C as Connection, c as customInspectSymbol } from './core.72IoI17N.mjs';
2
- import { e as DeploymentElementModel, i as RelationshipsAccum, D as DeploymentNodeModel, R as RelationshipModel, b as DeploymentRelationModel } from './core.SciGxb--.mjs';
3
- import { A as Any, B as EdgeId } from './core.DAj3LuFH.mjs';
1
+ import { C as Connection, c as customInspectSymbol } from './core.D8bTI5KC.mjs';
2
+ import { e as DeploymentElementModel, i as RelationshipsAccum, D as DeploymentNodeModel, R as RelationshipModel, b as DeploymentRelationModel } from './core.DoNP3Yl-.mjs';
3
+ import { A as Any, C as EdgeId } from './core.BFb3p5d-.mjs';
4
4
  import { I as IteratorLike } from './core.DuSLYTG6.mjs';
5
5
 
6
6
  /**
@@ -1,8 +1,8 @@
1
- import { A as Any, R as RelationKind, T as Tags, h as Metadata, j as MetadataKey, L as LooseTag, F as Fqn, g as ElementId, k as ElementKind, D as DeploymentKind, E as ExtractOnStage, l as RelationId$1, m as StrictViewId, f as _type, n as LooseElementId, o as LooseDeploymentId, p as DeploymentFqn, t as toComputed, q as toLayouted, r as Stage, s as DeploymentId, U as Unknown, V as ViewId, u as Tag, v as toParsed, P as ProjectId$1, w as LooseViewId, a as Aux, S as SpecAux, d as UnknownParsed, b as UnknownComputed, c as UnknownLayouted } from './core.DAj3LuFH.mjs';
1
+ import { A as Any, R as RelationKind, T as Tags, h as Metadata, j as MetadataKey, L as LooseTag, F as Fqn, g as ElementId, k as ElementKind, D as DeploymentKind, E as ExtractOnStage, l as RelationId$1, m as StrictViewId, f as _type, n as LooseElementId, o as LooseDeploymentId, p as DeploymentFqn, t as toComputed, q as toLayouted, r as Stage, s as DeploymentId, U as Unknown, V as ViewId, u as Tag, v as toParsed, P as ProjectId$1, w as LooseViewId, a as Aux, S as SpecAux, d as UnknownParsed, b as UnknownComputed, c as UnknownLayouted } from './core.BFb3p5d-.mjs';
2
2
  import { D as DefaultMap } from './core.CywrQs86.mjs';
3
3
  import { SetRequired } from 'type-fest';
4
4
  import { d as RelationId, P as ProjectId, a as IconUrl, N as NodeId, G as GroupElementKind, j as EdgeId, k as StepEdgeId, V as ViewId$1 } from './core.668kXpZq.mjs';
5
- import { b as RichTextOrEmpty, Y as Relationship, Q as Element, O as ElementStyle, as as ViewWithType, ao as ComputedView, am as LayoutedView, n as ParsedLikeC4ModelData, C as ComputedLikeC4ModelData, L as LayoutedLikeC4ModelData, f as FqnRef, q as DeployedInstance, D as DeploymentElementStyle, v as DeploymentRelationship, r as DeploymentElement, p as DeploymentNode, y as LikeC4ModelDump, z as AuxFromDump, a2 as Specification, m as ModelGlobals, ah as WhereOperator } from './core.Ddua-wiI.mjs';
5
+ import { b as RichTextOrEmpty, Z as Relationship, T as Element, Q as ElementStyle, au as ViewWithType, aq as ComputedView, ao as LayoutedView, n as ParsedLikeC4ModelData, C as ComputedLikeC4ModelData, L as LayoutedLikeC4ModelData, f as FqnRef, q as DeployedInstance, D as DeploymentElementStyle, v as DeploymentRelationship, r as DeploymentElement, p as DeploymentNode, y as LikeC4ModelDump, H as AuxFromDump, am as LikeC4Project, a3 as Specification, m as ModelGlobals, ai as WhereOperator } from './core.DxDn5nB5.mjs';
6
6
  import { I as IteratorLike, L as Link, N as NonEmptyArray } from './core.DuSLYTG6.mjs';
7
7
  import { i as Color, R as RelationshipLineType, c as ElementShape } from './core.CzdwsPmY.mjs';
8
8
 
@@ -886,6 +886,7 @@ declare class LikeC4Model<A extends Any = Unknown> {
886
886
  get $model(): $ModelData<A>;
887
887
  get stage(): Stage<A>;
888
888
  get projectId(): ProjectId$1<A>;
889
+ get project(): LikeC4Project;
889
890
  get specification(): Specification<A>;
890
891
  get globals(): ModelGlobals;
891
892
  /**
@@ -1088,9 +1089,9 @@ declare class LikeC4Model<A extends Any = Unknown> {
1088
1089
  }
1089
1090
  declare namespace LikeC4Model {
1090
1091
  const EMPTY: LikeC4Model<Aux<"computed", string, string, string, string, SpecAux<string, string, string, string, string>>>;
1091
- type Parsed<A = Unknown> = Unknown extends A ? LikeC4Model<UnknownParsed> : A extends Aux<any, infer E, infer D, infer V, infer P, infer Spec> ? LikeC4Model<Aux<'parsed', E, D, V, P, Spec>> : never;
1092
- type Computed<A = Unknown> = Unknown extends A ? LikeC4Model<UnknownComputed> : A extends Aux<any, infer E, infer D, infer V, infer P, infer Spec> ? LikeC4Model<Aux<'computed', E, D, V, P, Spec>> : never;
1093
- type Layouted<A = Unknown> = Unknown extends A ? LikeC4Model<UnknownLayouted> : A extends Aux<any, infer E, infer D, infer V, infer P, infer Spec> ? LikeC4Model<Aux<'layouted', E, D, V, P, Spec>> : never;
1092
+ type Parsed<A = Unknown> = Unknown extends A ? LikeC4Model<UnknownParsed> : A extends Aux<any, infer E, infer D, infer V, infer PID, infer Spec> ? LikeC4Model<Aux<'parsed', E, D, V, PID, Spec>> : never;
1093
+ type Computed<A = Unknown> = Unknown extends A ? LikeC4Model<UnknownComputed> : A extends Aux<any, infer E, infer D, infer V, infer PID, infer Spec> ? LikeC4Model<Aux<'computed', E, D, V, PID, Spec>> : never;
1094
+ type Layouted<A = Unknown> = Unknown extends A ? LikeC4Model<UnknownLayouted> : A extends Aux<any, infer E, infer D, infer V, infer PID, infer Spec> ? LikeC4Model<Aux<'layouted', E, D, V, PID, Spec>> : never;
1094
1095
  type Node<A = Unknown> = A extends Any ? NodeModel<A> : never;
1095
1096
  type Element<A = Unknown> = A extends Any ? ElementModel<A> : never;
1096
1097
  type Relationship<A = Unknown> = A extends Any ? RelationshipModel<A> : never;
@@ -1,7 +1,7 @@
1
1
  import { Simplify, MergeExclusive, Tagged, NonEmptyTuple, IsNever, IsAny } from 'type-fest';
2
- import { A as Any, U as Unknown, g as ElementId, P as ProjectId, F as Fqn, s as DeploymentId, u as Tag, x as AllKinds, T as Tags, m as StrictViewId, k as ElementKind, W as WithOptionalTags, y as WithOptionalLinks, e as _stage, f as _type, z as WithMetadata, h as Metadata, R as RelationKind, V as ViewId, p as DeploymentFqn, D as DeploymentKind, j as MetadataKey, E as ExtractOnStage, M as ModelStage, d as UnknownParsed, b as UnknownComputed, c as UnknownLayouted, S as SpecAux, a as Aux, N as Never } from './core.DAj3LuFH.mjs';
2
+ import { A as Any, U as Unknown, g as ElementId, P as ProjectId, F as Fqn, s as DeploymentId, u as Tag, y as AllKinds, T as Tags, m as StrictViewId, k as ElementKind, W as WithOptionalTags, z as WithOptionalLinks, e as _stage, f as _type, B as WithMetadata, h as Metadata, R as RelationKind, V as ViewId, p as DeploymentFqn, D as DeploymentKind, j as MetadataKey, E as ExtractOnStage, M as ModelStage, d as UnknownParsed, b as UnknownComputed, c as UnknownLayouted, S as SpecAux, a as Aux, N as Never } from './core.BFb3p5d-.mjs';
3
3
  import { E as ExclusiveUnion, N as NonEmptyArray, L as Link, K as KeysOf } from './core.DuSLYTG6.mjs';
4
- import { I as Icon, M as MarkdownOrString, d as RelationId, T as Tag$1, N as NodeId, j as EdgeId, m as StepEdgeKind } from './core.668kXpZq.mjs';
4
+ import { I as Icon, M as MarkdownOrString, d as RelationId, T as Tag$1, P as ProjectId$1, N as NodeId, j as EdgeId, m as StepEdgeKind } from './core.668kXpZq.mjs';
5
5
  import { i as Color, R as RelationshipLineType, f as RelationshipArrowType, c as ElementShape, b as BorderStyle, a as ShapeSize, S as SpacingSize, T as TextSize, h as ThemeColor, C as ColorLiteral, e as CustomColorDefinitions } from './core.CzdwsPmY.mjs';
6
6
 
7
7
  declare namespace FqnRef {
@@ -673,7 +673,7 @@ interface DynamicViewStep<A extends Any = Any> {
673
673
  readonly description?: string;
674
674
  readonly technology?: string;
675
675
  readonly notation?: string;
676
- readonly notes?: string;
676
+ readonly notes?: MarkdownOrString;
677
677
  readonly color?: Color;
678
678
  readonly line?: RelationshipLineType;
679
679
  readonly head?: RelationshipArrowType;
@@ -899,6 +899,14 @@ type Specification<A> = A extends Any ? {
899
899
  customColors?: CustomColorDefinitions;
900
900
  } : never;
901
901
 
902
+ /**
903
+ * LikeC4 projects encapsulate model, and can import from each other
904
+ */
905
+ interface LikeC4Project {
906
+ id: ProjectId$1;
907
+ title?: string;
908
+ }
909
+
902
910
  interface ComputedNode<A extends Any = Any> extends WithOptionalLinks {
903
911
  id: NodeId;
904
912
  kind: ElementKind<A> | DeploymentKind<A> | '@group';
@@ -942,7 +950,7 @@ interface ComputedEdge<A extends Any = Any> extends WithOptionalTags<A> {
942
950
  relations: RelationId[];
943
951
  kind?: RelationKind<A> | typeof StepEdgeKind;
944
952
  notation?: string;
945
- notes?: string;
953
+ notes?: MarkdownOrString;
946
954
  color?: Color;
947
955
  line?: RelationshipLineType;
948
956
  head?: RelationshipArrowType;
@@ -1108,6 +1116,7 @@ declare function isDynamicView<V extends AnyView<any>>(view: V): view is ViewWit
1108
1116
 
1109
1117
  interface BaseLikeC4ModelData<A extends Any> {
1110
1118
  projectId: ProjectId<A>;
1119
+ project: LikeC4Project;
1111
1120
  specification: Specification<A>;
1112
1121
  elements: Record<ElementId<A>, Element<A>>;
1113
1122
  deployments: {
@@ -1175,6 +1184,7 @@ type SpecTypesFromDump<J> = J extends SpecificationDump ? SpecAux<KeysOf<J['elem
1175
1184
  type LikeC4ModelDump = {
1176
1185
  [_stage]?: 'computed' | 'layouted';
1177
1186
  projectId?: string;
1187
+ project?: ProjectDump;
1178
1188
  specification: SpecificationDump;
1179
1189
  elements?: {
1180
1190
  [kind: string]: object;
@@ -1196,7 +1206,12 @@ type LikeC4ModelDump = {
1196
1206
  };
1197
1207
  imports?: {};
1198
1208
  };
1199
- type AuxFromDump<D> = D extends LikeC4ModelDump ? Aux<D[_stage] extends infer S extends string & 'computed' | 'layouted' ? S : 'computed' | 'layouted' | 'parsed', KeysOf<D['elements']>, KeysOf<D['deployments']['elements']>, KeysOf<D['views']>, D['projectId'] extends infer P extends string ? P : never, SpecTypesFromDump<D['specification']>> : Never;
1209
+ type ProjectDump = {
1210
+ id: string;
1211
+ name?: string;
1212
+ title?: string | undefined;
1213
+ };
1214
+ type AuxFromDump<D> = D extends LikeC4ModelDump ? Aux<D[_stage] extends infer S extends string & 'computed' | 'layouted' ? S : 'computed' | 'layouted' | 'parsed', KeysOf<D['elements']>, KeysOf<D['deployments']['elements']>, KeysOf<D['views']>, D['projectId'] extends infer PID extends string ? PID : never, SpecTypesFromDump<D['specification']>> : Never;
1200
1215
 
1201
1216
  interface RichTextEmpty {
1202
1217
  readonly isEmpty: true;
@@ -1275,4 +1290,4 @@ declare class RichText {
1275
1290
  equals(other: unknown): boolean;
1276
1291
  }
1277
1292
 
1278
- export { type TagSpecification as $, type AuxFromLikeC4ModelData as A, BBox as B, type ComputedLikeC4ModelData as C, type DeploymentElementStyle as D, Expression as E, FqnExpr as F, type GlobalPredicateId as G, DefaultThemeColor as H, DefaultElementShape as I, DefaultShapeSize as J, DefaultPaddingSize as K, type LayoutedLikeC4ModelData as L, ModelFqnExpr as M, DefaultTextSize as N, type ElementStyle as O, type PredicateSelector as P, type Element as Q, RichText as R, type SpecificationDump as S, DefaultLineStyle as T, DefaultArrowType as U, DefaultRelationshipColor as V, type AbstractRelationship as W, type XYPoint as X, type Relationship as Y, type ModelRelation as Z, type ElementSpecification as _, type RichTextEmpty as a, type DiagramNode as a$, isTagColorSpecified as a0, type RelationshipSpecification as a1, type Specification as a2, type EqualOperator as a3, type TagEqual as a4, isTagEqual as a5, type KindEqual as a6, isKindEqual as a7, type Participant as a8, type ParticipantOperator as a9, isExtendsElementView as aA, isDeploymentView as aB, isDynamicView as aC, type AnyIncludePredicate as aD, type AnyExcludePredicate as aE, type AnyViewRuleStyle as aF, type ViewRuleGlobalStyle as aG, isViewRuleGlobalStyle as aH, type ViewRuleGlobalPredicateRef as aI, isViewRuleGlobalPredicateRef as aJ, type AutoLayoutDirection as aK, isAutoLayoutDirection as aL, type ViewRuleAutoLayout as aM, isViewRuleAutoLayout as aN, type ViewAutoLayout as aO, type ViewManualLayout as aP, type ViewType as aQ, type BaseViewProperties as aR, type BaseParsedViewProperties as aS, type NodeNotation as aT, type ViewWithNotation as aU, type ViewWithHash as aV, type ComputedNode as aW, type ComputedEdge as aX, type ComputedElementView as aY, type ComputedDeploymentView as aZ, type ComputedDynamicView as a_, isParticipantOperator as aa, type NotOperator as ab, isNotOperator as ac, type AndOperator as ad, isAndOperator as ae, type OrOperator as af, isOrOperator as ag, type WhereOperator as ah, type Filterable as ai, type OperatorPredicate as aj, whereOperatorAsPredicate as ak, type ParsedView as al, type LayoutedView as am, isDiagramView as an, type ComputedView as ao, type ProcessedView as ap, type AnyView as aq, type ViewOnStage as ar, type ViewWithType as as, type ViewRule as at, type ViewRulePredicate as au, isViewRulePredicate as av, isViewRuleStyle as aw, isComputedView as ax, isElementView as ay, isScopedElementView as az, type RichTextOrEmpty as b, type DiagramEdge as b0, type LayoutedElementView as b1, type LayoutedDeploymentView as b2, type LayoutedDynamicView as b3, type DeploymentViewIncludePredicate as b4, type DeploymentViewExcludePredicate as b5, type DeploymentViewPredicate as b6, type DeploymentViewRuleStyle as b7, type DeploymentViewRule as b8, type ParsedDeploymentView as b9, type DynamicViewStep as ba, type DynamicViewParallelSteps as bb, getParallelStepsPrefix as bc, type DynamicViewStepOrParallel as bd, type DynamicViewIncludeRule as be, type DynamicViewRule as bf, type ParsedDynamicView as bg, isDynamicViewParallelSteps as bh, type ElementViewIncludePredicate as bi, type ElementViewExcludePredicate as bj, type ElementViewPredicate as bk, type ElementViewRuleGroup as bl, isViewRuleGroup as bm, type ElementViewRuleStyle as bn, type ElementViewRule as bo, type ParsedElementView as bp, RelationExpr as c, ModelRelationExpr as d, ModelExpression as e, FqnRef as f, type Point as g, RectBox as h, type GlobalPredicates as i, type GlobalDynamicPredicates as j, type GlobalStyleID as k, type GlobalStyles as l, type ModelGlobals as m, type ParsedLikeC4ModelData as n, type LikeC4ModelData as o, type DeploymentNode as p, type DeployedInstance as q, type DeploymentElement as r, type DeploymentElementRef as s, isDeploymentNode as t, isDeployedInstance as u, type DeploymentRelationship as v, type DeploymentRelation as w, type SpecTypesFromDump as x, type LikeC4ModelDump as y, type AuxFromDump as z };
1293
+ export { type ElementSpecification as $, type AuxFromLikeC4ModelData as A, BBox as B, type ComputedLikeC4ModelData as C, type DeploymentElementStyle as D, Expression as E, FqnExpr as F, type GlobalPredicateId as G, type AuxFromDump as H, DefaultThemeColor as I, DefaultElementShape as J, DefaultShapeSize as K, type LayoutedLikeC4ModelData as L, ModelFqnExpr as M, DefaultPaddingSize as N, DefaultTextSize as O, type PredicateSelector as P, type ElementStyle as Q, RichText as R, type SpecificationDump as S, type Element as T, DefaultLineStyle as U, DefaultArrowType as V, DefaultRelationshipColor as W, type XYPoint as X, type AbstractRelationship as Y, type Relationship as Z, type ModelRelation as _, type RichTextEmpty as a, type ComputedDeploymentView as a$, type TagSpecification as a0, isTagColorSpecified as a1, type RelationshipSpecification as a2, type Specification as a3, type EqualOperator as a4, type TagEqual as a5, isTagEqual as a6, type KindEqual as a7, isKindEqual as a8, type Participant as a9, isElementView as aA, isScopedElementView as aB, isExtendsElementView as aC, isDeploymentView as aD, isDynamicView as aE, type AnyIncludePredicate as aF, type AnyExcludePredicate as aG, type AnyViewRuleStyle as aH, type ViewRuleGlobalStyle as aI, isViewRuleGlobalStyle as aJ, type ViewRuleGlobalPredicateRef as aK, isViewRuleGlobalPredicateRef as aL, type AutoLayoutDirection as aM, isAutoLayoutDirection as aN, type ViewRuleAutoLayout as aO, isViewRuleAutoLayout as aP, type ViewAutoLayout as aQ, type ViewManualLayout as aR, type ViewType as aS, type BaseViewProperties as aT, type BaseParsedViewProperties as aU, type NodeNotation as aV, type ViewWithNotation as aW, type ViewWithHash as aX, type ComputedNode as aY, type ComputedEdge as aZ, type ComputedElementView as a_, type ParticipantOperator as aa, isParticipantOperator as ab, type NotOperator as ac, isNotOperator as ad, type AndOperator as ae, isAndOperator as af, type OrOperator as ag, isOrOperator as ah, type WhereOperator as ai, type Filterable as aj, type OperatorPredicate as ak, whereOperatorAsPredicate as al, type LikeC4Project as am, type ParsedView as an, type LayoutedView as ao, isDiagramView as ap, type ComputedView as aq, type ProcessedView as ar, type AnyView as as, type ViewOnStage as at, type ViewWithType as au, type ViewRule as av, type ViewRulePredicate as aw, isViewRulePredicate as ax, isViewRuleStyle as ay, isComputedView as az, type RichTextOrEmpty as b, type ComputedDynamicView as b0, type DiagramNode as b1, type DiagramEdge as b2, type LayoutedElementView as b3, type LayoutedDeploymentView as b4, type LayoutedDynamicView as b5, type DeploymentViewIncludePredicate as b6, type DeploymentViewExcludePredicate as b7, type DeploymentViewPredicate as b8, type DeploymentViewRuleStyle as b9, type DeploymentViewRule as ba, type ParsedDeploymentView as bb, type DynamicViewStep as bc, type DynamicViewParallelSteps as bd, getParallelStepsPrefix as be, type DynamicViewStepOrParallel as bf, type DynamicViewIncludeRule as bg, type DynamicViewRule as bh, type ParsedDynamicView as bi, isDynamicViewParallelSteps as bj, type ElementViewIncludePredicate as bk, type ElementViewExcludePredicate as bl, type ElementViewPredicate as bm, type ElementViewRuleGroup as bn, isViewRuleGroup as bo, type ElementViewRuleStyle as bp, type ElementViewRule as bq, type ParsedElementView as br, RelationExpr as c, ModelRelationExpr as d, ModelExpression as e, FqnRef as f, type Point as g, RectBox as h, type GlobalPredicates as i, type GlobalDynamicPredicates as j, type GlobalStyleID as k, type GlobalStyles as l, type ModelGlobals as m, type ParsedLikeC4ModelData as n, type LikeC4ModelData as o, type DeploymentNode as p, type DeployedInstance as q, type DeploymentElement as r, type DeploymentElementRef as s, isDeploymentNode as t, isDeployedInstance as u, type DeploymentRelationship as v, type DeploymentRelation as w, type SpecTypesFromDump as x, type LikeC4ModelDump as y, type ProjectDump as z };
@@ -1,8 +1,9 @@
1
1
  import { t as t$1 } from './core.zLlww-07.mjs';
2
- import { n as n$1 } from './core.D56nCp7e.mjs';
3
- import { i as invariant, n as nonexhaustive } from './core.D4npX2q8.mjs';
2
+ import { GlobalFqn } from '../types/scalar.mjs';
3
+ import { n as n$1 } from './core.CnIyafWn.mjs';
4
4
  import { o } from './core.BgvIuGGU.mjs';
5
5
  import { u } from './core.DbRvwARP.mjs';
6
+ import { n as nonexhaustive } from './core.D4npX2q8.mjs';
6
7
 
7
8
  function n(e){return e==null}
8
9
 
@@ -16,69 +17,6 @@ function isOnStage(value, stage) {
16
17
  const _stage = "_stage";
17
18
  const _type = "_type";
18
19
 
19
- function flattenMarkdownOrString(value) {
20
- if (value === null || value === void 0) {
21
- return null;
22
- }
23
- const content = t$1(value) ? value : value.txt ?? value.md;
24
- return n$1(content?.trim()) ? content : null;
25
- }
26
- function Fqn(name, parent) {
27
- return parent ? parent + "." + name : name;
28
- }
29
- const GroupElementKind = "@group";
30
- function isGroupElementKind(v) {
31
- return v.kind === GroupElementKind;
32
- }
33
- function DeploymentFqn(name, parent) {
34
- return parent ? parent + "." + name : name;
35
- }
36
- function ViewId(id) {
37
- return id;
38
- }
39
- function RelationId(id) {
40
- return id;
41
- }
42
- function GlobalFqn(projectId, name) {
43
- invariant(n$1(projectId), "Project ID must start with @");
44
- return "@" + projectId + "." + name;
45
- }
46
- function isGlobalFqn(fqn) {
47
- return fqn.startsWith("@");
48
- }
49
- function splitGlobalFqn(fqn) {
50
- if (!fqn.startsWith("@")) {
51
- return [null, fqn];
52
- }
53
- const firstDot = fqn.indexOf(".");
54
- if (firstDot < 2) {
55
- throw new Error("Invalid global FQN");
56
- }
57
- const projectId = fqn.slice(1, firstDot);
58
- const name = fqn.slice(firstDot + 1);
59
- return [projectId, name];
60
- }
61
- function NodeId(id) {
62
- return id;
63
- }
64
- function EdgeId(id) {
65
- return id;
66
- }
67
- function stepEdgeId(step, parallelStep) {
68
- const id = `step-${String(step).padStart(2, "0")}`;
69
- return parallelStep ? `${id}.${parallelStep}` : id;
70
- }
71
- const StepEdgeKind = "@step";
72
- function isStepEdgeId(id) {
73
- return id.startsWith("step-");
74
- }
75
- function extractStep(id) {
76
- if (!isStepEdgeId(id)) {
77
- throw new Error(`Invalid step edge id: ${id}`);
78
- }
79
- return parseFloat(id.slice("step-".length));
80
- }
81
-
82
20
  var FqnRef;
83
21
  ((FqnRef2) => {
84
22
  function isElementRef(ref) {
@@ -208,4 +146,4 @@ function participantIs(participant, predicate) {
208
146
  };
209
147
  }
210
148
 
211
- export { DeploymentFqn as D, EdgeId as E, FqnRef as F, GroupElementKind as G, NodeId as N, RelationId as R, StepEdgeKind as S, ViewId as V, _stage as _, _type as a, isDeploymentNode as b, isDeployedInstance as c, isTagEqual as d, isKindEqual as e, isParticipantOperator as f, isNotOperator as g, isAndOperator as h, isOnStage as i, isOrOperator as j, flattenMarkdownOrString as k, Fqn as l, isGroupElementKind as m, GlobalFqn as n, isGlobalFqn as o, stepEdgeId as p, isStepEdgeId as q, extractStep as r, splitGlobalFqn as s, n as t, whereOperatorAsPredicate as w, y };
149
+ export { FqnRef as F, _stage as _, _type as a, isDeploymentNode as b, isDeployedInstance as c, isTagEqual as d, isKindEqual as e, isParticipantOperator as f, isNotOperator as g, isAndOperator as h, isOnStage as i, isOrOperator as j, n, whereOperatorAsPredicate as w, y };