@likec4/core 1.34.2 → 1.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/README.md +1 -1
  2. package/dist/builder/index.d.mts +15 -4
  3. package/dist/builder/index.mjs +19 -15
  4. package/dist/compute-view/index.d.mts +3 -3
  5. package/dist/compute-view/index.mjs +16 -13
  6. package/dist/compute-view/relationships-view/index.d.mts +3 -3
  7. package/dist/compute-view/relationships-view/index.mjs +2 -2
  8. package/dist/index.d.mts +3 -3
  9. package/dist/index.mjs +14 -9
  10. package/dist/model/connection/deployment/index.d.mts +5 -5
  11. package/dist/model/connection/deployment/index.mjs +5 -4
  12. package/dist/model/connection/index.d.mts +6 -6
  13. package/dist/model/connection/index.mjs +6 -5
  14. package/dist/model/connection/model/index.d.mts +5 -5
  15. package/dist/model/connection/model/index.mjs +3 -3
  16. package/dist/model/index.d.mts +33 -9
  17. package/dist/model/index.mjs +12 -10
  18. package/dist/shared/{core.DAj3LuFH.d.mts → core.BFb3p5d-.d.mts} +4 -2
  19. package/dist/shared/{core.PqNe5WxQ.mjs → core.BlwZ4tBa.mjs} +98 -92
  20. package/dist/shared/core.BpJu1RrF.mjs +5 -0
  21. package/dist/shared/{core.CJSFKrYf.d.mts → core.Bt3kuGUN.d.mts} +3 -3
  22. package/dist/shared/{core.D5qVzkws.mjs → core.Bus32P0S.mjs} +4 -3
  23. package/dist/shared/{core.4SpVCM9m.mjs → core.BvIGRozf.mjs} +364 -28
  24. package/dist/shared/{core.C80Z37Eu.mjs → core.C1GV0WWV.mjs} +1 -1
  25. package/dist/shared/{core.DXRAwwDB.mjs → core.CaJp8Amg.mjs} +3 -2
  26. package/dist/shared/{core.D56nCp7e.mjs → core.CaaYNQDM.mjs} +1 -3
  27. package/dist/shared/core.CnIyafWn.mjs +3 -0
  28. package/dist/shared/{core.D3xEWj5B.d.mts → core.D8bTI5KC.d.mts} +2 -2
  29. package/dist/shared/{core.Di7__sMg.d.mts → core.DHYd2-VU.d.mts} +3 -3
  30. package/dist/shared/{core.C_C-3c1S.mjs → core.DQj9iv_y.mjs} +3 -5
  31. package/dist/shared/{core.DrS4Bf4y.d.mts → core.DoNP3Yl-.d.mts} +187 -11
  32. package/dist/shared/{core.IWLie-Ma.d.mts → core.DxDn5nB5.d.mts} +24 -6
  33. package/dist/shared/{core.CtKXPqN_.mjs → core.HUONfQfd.mjs} +1 -1
  34. package/dist/shared/{core.BTnf14gD.mjs → core.Y3j3s-oq.mjs} +2 -2
  35. package/dist/shared/{core.Br7Fab9l.mjs → core._jnYNUQ-.mjs} +8 -70
  36. package/dist/shared/{core.XptQjhMA.mjs → core.b2BzqGz0.mjs} +2 -2
  37. package/dist/shared/{core.BMCb0wJI.mjs → core.yaRvRnMW.mjs} +1 -1
  38. package/dist/theme/index.mjs +34 -3510
  39. package/dist/types/_aux.d.mts +1 -1
  40. package/dist/types/index.d.mts +3 -3
  41. package/dist/types/index.mjs +6 -4
  42. package/dist/types/scalar.d.mts +2 -0
  43. package/dist/types/scalar.mjs +68 -0
  44. package/dist/utils/index.d.mts +6 -8
  45. package/dist/utils/index.mjs +5 -5
  46. package/dist/utils/iterable/index.d.mts +18 -1
  47. package/dist/utils/iterable/index.mjs +22 -2
  48. package/package.json +11 -16
  49. package/src/builder/Builder.ts +17 -6
  50. package/src/builder/__snapshots__/Builder-style1.spec.ts.snap +9 -0
  51. package/src/builder/__snapshots__/Builder-style2.compute-model.json5 +3 -0
  52. package/src/builder/__snapshots__/Builder-style2.spec.ts.snap +3 -0
  53. package/src/builder/_types.ts +10 -0
  54. package/src/compute-view/dynamic-view/compute.ts +2 -0
  55. package/src/compute-view/element-view/__test__/fixture.ts +1 -0
  56. package/src/compute-view/element-view/predicates/relation-direct.ts +8 -2
  57. package/src/compute-view/utils/applyCustomRelationProperties.ts +2 -0
  58. package/src/model/DeploymentModel.ts +1 -1
  59. package/src/model/LikeC4Model.ts +162 -13
  60. package/src/model/index.ts +8 -0
  61. package/src/model/types.ts +1 -8
  62. package/src/model/utils.ts +66 -0
  63. package/src/model/view/LikeC4ViewModel.ts +62 -7
  64. package/src/model/view/LikeC4ViewsFolder.ts +151 -0
  65. package/src/theme/__test__/theme-index.ts +29 -0
  66. package/src/theme/element.ts +0 -19
  67. package/src/theme/index.ts +49 -3
  68. package/src/types/_aux.ts +6 -0
  69. package/src/types/index.ts +1 -0
  70. package/src/types/model-data.ts +2 -0
  71. package/src/types/model-dump.ts +8 -1
  72. package/src/types/model-spec.ts +4 -0
  73. package/src/types/project.ts +9 -0
  74. package/src/types/view-computed.ts +1 -1
  75. package/src/types/view-parsed.dynamic.ts +2 -2
  76. package/src/utils/compare-natural.ts +14 -12
  77. package/src/utils/index.ts +1 -0
  78. package/src/utils/iterable/first.ts +48 -0
  79. package/src/utils/iterable/index.ts +1 -0
package/README.md CHANGED
@@ -157,7 +157,7 @@ Generic guards are also available in `@likec4/core/model`:
157
157
 
158
158
  ```ts
159
159
  import {
160
- isElementModel,,
160
+ isElementModel,
161
161
  isDeployedInstanceModel,
162
162
  isLikeC4ViewModel,
163
163
  // ... other guards
@@ -1,10 +1,10 @@
1
1
  import { LastArrayElement, Split, Simplify, IsLiteral, Writable, IfNever, IsNever, TupleToUnion, Tagged } from 'type-fest';
2
- import { g as LikeC4Model } from '../shared/core.DrS4Bf4y.mjs';
2
+ import { g as LikeC4Model } from '../shared/core.DoNP3Yl-.mjs';
3
3
  import { D as DeploymentFqn, F as Fqn } from '../shared/core.668kXpZq.mjs';
4
- import { r as DeploymentElement, v as DeploymentRelationship, Q as Element, Z as ModelRelation, a8 as Participant, M as ModelFqnExpr, d as ModelRelationExpr, aF as AnyViewRuleStyle, aK as AutoLayoutDirection, E as Expression, al as ParsedView, b9 as ParsedDeploymentView, bp as ParsedElementView, n as ParsedLikeC4ModelData, _ as ElementSpecification$1, a1 as RelationshipSpecification, $ as TagSpecification } from '../shared/core.IWLie-Ma.mjs';
4
+ import { r as DeploymentElement, v as DeploymentRelationship, T as Element, _ as ModelRelation, a9 as Participant, M as ModelFqnExpr, d as ModelRelationExpr, aH as AnyViewRuleStyle, aM as AutoLayoutDirection, E as Expression, an as ParsedView, bb as ParsedDeploymentView, br as ParsedElementView, n as ParsedLikeC4ModelData, $ as ElementSpecification$1, a2 as RelationshipSpecification, a0 as TagSpecification } from '../shared/core.DxDn5nB5.mjs';
5
5
  import { N as NonEmptyArray, K as KeysOf } from '../shared/core.DuSLYTG6.mjs';
6
+ import { x as setProject, a as Aux, S as SpecAux, A as Any } from '../shared/core.BFb3p5d-.mjs';
6
7
  import { c as ElementShape, h as ThemeColor, b as BorderStyle, a as ShapeSize, S as SpacingSize, T as TextSize, f as RelationshipArrowType, R as RelationshipLineType } from '../shared/core.CzdwsPmY.mjs';
7
- import { a as Aux, S as SpecAux, A as Any } from '../shared/core.DAj3LuFH.mjs';
8
8
  import '../shared/core.CywrQs86.mjs';
9
9
 
10
10
  type ToNested$1<T, Id extends string> = T extends TypesNested<infer P, any, any, any, any, any, any, any, infer F> ? TypesNested<`${P}.${Id}`, T['ElementKind'], T['Fqn'], T['ViewId'], T['RelationshipKind'], T['Tag'], T['MetadataKey'], T['DeploymentKind'], `${P}.${Id}` | F> : T extends AnyTypes ? TypesNested<Id, T['ElementKind'], T['Fqn'], T['ViewId'], T['RelationshipKind'], T['Tag'], T['MetadataKey'], T['DeploymentKind'], Id | T['DeploymentFqn']> : never;
@@ -546,10 +546,12 @@ interface Builder<T extends AnyTypes> extends BuilderMethods<T> {
546
546
  * Views are not computed or layouted
547
547
  * {@link toLikeC4Model} should be used to get model with computed views
548
548
  */
549
+ build<const Project extends BuilderProjectSpecification>(project: Project): ParsedLikeC4ModelData<setProject<Types.ToAux<T>, Project['id']>>;
549
550
  build(): ParsedLikeC4ModelData<Types.ToAux<T>>;
550
551
  /**
551
552
  * Returns Computed LikeC4Model
552
553
  */
554
+ toLikeC4Model<const Project extends BuilderProjectSpecification>(project: Project): LikeC4Model.Computed<setProject<Types.ToAux<T>, Project['id']>>;
553
555
  toLikeC4Model(): LikeC4Model.Computed<Types.ToAux<T>>;
554
556
  }
555
557
  declare namespace Builder {
@@ -581,6 +583,15 @@ type BuilderSpecification = {
581
583
  };
582
584
  metadataKeys?: string[];
583
585
  };
586
+ /**
587
+ * We need with `id: string` to be able to derive the project id
588
+ *
589
+ * @see {@link LikeC4Project}
590
+ */
591
+ type BuilderProjectSpecification = {
592
+ id: string;
593
+ title?: string;
594
+ };
584
595
  type Metadata<MetadataKey extends string> = IsNever<MetadataKey> extends true ? never : IsLiteral<MetadataKey> extends true ? {
585
596
  [key in MetadataKey]?: string;
586
597
  } : Record<string, string>;
@@ -691,4 +702,4 @@ declare namespace Types {
691
702
  type DeploymentRules<B> = DeploymentRulesBuilderOp<From<B>>;
692
703
  }
693
704
 
694
- export { $autoLayout, $deploymentExpr, $exclude, $expr, $include, $rules, $style, type AddDeployedInstance, type AddDeploymentNode, type AddDeploymentNodeHelpers, type AddDeploymentRelation, type AddDeploymentViewHelper, type AddDeploymentViewRules, type AddElement, type AddElementHelpers, type AddViewHelper, type AddViewOfHelper, type AddViewRules, type AnyTypes, type AnyTypesNested, Builder, type BuilderMethods, type BuilderSpecification, type DeloymentModelBuildFunction, type DeloymentModelHelpers, type DeploymentModelBuilder, type DeploymentRulesBuilderOp, type DeploymentViewBuilder, type ElementViewBuilder, type ElementViewRulesBuilder, type Invalid, type LikeC4ViewBuilder, type Metadata, type ModelBuilder, type ModelBuilderFunction, type ModelHelpers, type NestedRelationshipHelper, type NewDeploymentNodeProps, type NewElementProps, type NewRelationProps, type NewViewProps, type RelationshipHelper, type TypedAddViewOfHelper, Types, type TypesNested, type ValidId, ViewPredicate, type ViewsBuilder, type ViewsBuilderFunction, type ViewsHelpers, type Warn, deployment, mkViewBuilder, model, views };
705
+ export { $autoLayout, $deploymentExpr, $exclude, $expr, $include, $rules, $style, type AddDeployedInstance, type AddDeploymentNode, type AddDeploymentNodeHelpers, type AddDeploymentRelation, type AddDeploymentViewHelper, type AddDeploymentViewRules, type AddElement, type AddElementHelpers, type AddViewHelper, type AddViewOfHelper, type AddViewRules, type AnyTypes, type AnyTypesNested, Builder, type BuilderMethods, type BuilderProjectSpecification, type BuilderSpecification, type DeloymentModelBuildFunction, type DeloymentModelHelpers, type DeploymentModelBuilder, type DeploymentRulesBuilderOp, type DeploymentViewBuilder, type ElementViewBuilder, type ElementViewRulesBuilder, type Invalid, type LikeC4ViewBuilder, type Metadata, type ModelBuilder, type ModelBuilderFunction, type ModelHelpers, type NestedRelationshipHelper, type NewDeploymentNodeProps, type NewElementProps, type NewRelationProps, type NewViewProps, type RelationshipHelper, type TypedAddViewOfHelper, Types, type TypesNested, type ValidId, ViewPredicate, type ViewsBuilder, type ViewsBuilderFunction, type ViewsHelpers, type Warn, deployment, mkViewBuilder, model, views };
@@ -1,18 +1,19 @@
1
- import { i, l, d, c as computeLikeC4Model } from '../shared/core.PqNe5WxQ.mjs';
1
+ import { i, l, d, c as computeLikeC4Model } from '../shared/core.BlwZ4tBa.mjs';
2
2
  import { m } from '../shared/core.ByrmCl9I.mjs';
3
- import { a as _type, t as n$1, _ as _stage, c as isDeployedInstance, F as FqnRef } from '../shared/core.Br7Fab9l.mjs';
3
+ import { a as _type, n as n$1, _ as _stage, c as isDeployedInstance, F as FqnRef } from '../shared/core._jnYNUQ-.mjs';
4
4
  import { t as t$2 } from '../shared/core.BH9nN-_I.mjs';
5
5
  import { l as l$1 } from '../shared/core.8KM0D6va.mjs';
6
6
  import { u } from '../shared/core.DbRvwARP.mjs';
7
- import { t as t$1 } from '../shared/core.4SpVCM9m.mjs';
7
+ import { t as t$1 } from '../shared/core.BvIGRozf.mjs';
8
8
  import { i as i$1 } from '../shared/core.CpwrZi3D.mjs';
9
- import { n as nameFromFqn, k as isSameHierarchy, p as parentFqn } from '../shared/core.C_C-3c1S.mjs';
9
+ import { n as nameFromFqn, k as isSameHierarchy, p as parentFqn } from '../shared/core.DQj9iv_y.mjs';
10
10
  import { t } from '../shared/core.zLlww-07.mjs';
11
- import { s as o, M as ModelFqnExpr, f as isElementView } from '../shared/core.DXRAwwDB.mjs';
11
+ import { s as o, M as ModelFqnExpr, f as isElementView } from '../shared/core.CaJp8Amg.mjs';
12
12
  import { i as invariant } from '../shared/core.D4npX2q8.mjs';
13
- import { a as DefaultElementShape, D as DefaultThemeColor } from '../shared/core.D56nCp7e.mjs';
14
- import '../shared/core.D5qVzkws.mjs';
15
- import '../shared/core.C80Z37Eu.mjs';
13
+ import { a as DefaultElementShape, D as DefaultThemeColor } from '../shared/core.CaaYNQDM.mjs';
14
+ import '../shared/core.Bus32P0S.mjs';
15
+ import '../shared/core.C1GV0WWV.mjs';
16
+ import '../shared/core.CnIyafWn.mjs';
16
17
  import '../shared/core.B0oEIXqd.mjs';
17
18
  import 'rehype-raw';
18
19
  import 'rehype-sanitize';
@@ -23,12 +24,14 @@ import 'remark-rehype';
23
24
  import 'unified';
24
25
  import 'mdast-util-from-markdown';
25
26
  import 'mdast-util-to-string';
26
- import '../shared/core.BTnf14gD.mjs';
27
+ import '../shared/core.Y3j3s-oq.mjs';
27
28
  import '../shared/core.BgvIuGGU.mjs';
28
29
  import '../shared/core.BoyJPEen.mjs';
29
- import '../shared/core.CtKXPqN_.mjs';
30
+ import '../shared/core.HUONfQfd.mjs';
31
+ import '../types/scalar.mjs';
32
+ import '../shared/core.BpJu1RrF.mjs';
30
33
  import '../shared/core.Btl47GOn.mjs';
31
- import '../shared/core.BMCb0wJI.mjs';
34
+ import '../shared/core.yaRvRnMW.mjs';
32
35
  import '../shared/core.DcS-0zys.mjs';
33
36
  import '../shared/core.DsMrjY2q.mjs';
34
37
 
@@ -585,9 +588,10 @@ function builder(spec, _elements = /* @__PURE__ */ new Map(), _relations = [], _
585
588
  });
586
589
  return self;
587
590
  },
588
- build: () => ({
591
+ build: (project) => ({
589
592
  [_stage]: "parsed",
590
- projectId: "from-builder",
593
+ projectId: project?.id ?? "from-builder",
594
+ project: project ?? { id: "from-builder" },
591
595
  specification: toLikeC4Specification(),
592
596
  elements: n(
593
597
  structuredClone(
@@ -611,8 +615,8 @@ function builder(spec, _elements = /* @__PURE__ */ new Map(), _relations = [], _
611
615
  ),
612
616
  imports: {}
613
617
  }),
614
- toLikeC4Model: () => {
615
- const parsed = self.build();
618
+ toLikeC4Model: (project) => {
619
+ const parsed = self.build(project);
616
620
  return computeLikeC4Model(parsed);
617
621
  },
618
622
  helpers: () => ({
@@ -1,6 +1,6 @@
1
- import { A as Any } from '../shared/core.DAj3LuFH.mjs';
2
- import { g as LikeC4Model } from '../shared/core.DrS4Bf4y.mjs';
3
- import { n as ParsedLikeC4ModelData, C as ComputedLikeC4ModelData, al as ParsedView, ao as ComputedView } from '../shared/core.IWLie-Ma.mjs';
1
+ import { A as Any } from '../shared/core.BFb3p5d-.mjs';
2
+ import { g as LikeC4Model } from '../shared/core.DoNP3Yl-.mjs';
3
+ import { n as ParsedLikeC4ModelData, C as ComputedLikeC4ModelData, an as ParsedView, aq as ComputedView } from '../shared/core.DxDn5nB5.mjs';
4
4
  import 'type-fest';
5
5
  import '../shared/core.DuSLYTG6.mjs';
6
6
  import '../shared/core.668kXpZq.mjs';
@@ -1,21 +1,25 @@
1
- import { G as Graph, w as willCreateCycle, t as topologicalSortExports, i as i$2, l } from '../shared/core.PqNe5WxQ.mjs';
2
- export { c as computeLikeC4Model, a as computeParsedModelData, b as computeView, u as unsafeComputeView } from '../shared/core.PqNe5WxQ.mjs';
3
- import { i as i$1 } from '../shared/core.D5qVzkws.mjs';
4
- import { r } from '../shared/core.4SpVCM9m.mjs';
5
- import { h as isExtendsElementView, f as isElementView } from '../shared/core.DXRAwwDB.mjs';
6
- import { o as isNonEmptyArray } from '../shared/core.C_C-3c1S.mjs';
1
+ import { G as Graph, w as willCreateCycle, t as topologicalSortExports, i as i$2, l } from '../shared/core.BlwZ4tBa.mjs';
2
+ export { c as computeLikeC4Model, a as computeParsedModelData, b as computeView, u as unsafeComputeView } from '../shared/core.BlwZ4tBa.mjs';
3
+ import { i as i$1 } from '../shared/core.Bus32P0S.mjs';
4
+ import { r } from '../shared/core.BvIGRozf.mjs';
5
+ import { h as isExtendsElementView, f as isElementView } from '../shared/core.CaJp8Amg.mjs';
6
+ import { o as isNonEmptyArray } from '../shared/core.DQj9iv_y.mjs';
7
7
  import { i } from '../shared/core.CpwrZi3D.mjs';
8
8
  import { u } from '../shared/core.DbRvwARP.mjs';
9
9
  import { m } from '../shared/core.ByrmCl9I.mjs';
10
- import '../shared/core.BTnf14gD.mjs';
11
- import '../shared/core.C80Z37Eu.mjs';
10
+ import '../shared/core.Y3j3s-oq.mjs';
11
+ import '../shared/core.C1GV0WWV.mjs';
12
12
  import '../shared/core.BgvIuGGU.mjs';
13
13
  import '../shared/core.BoyJPEen.mjs';
14
14
  import '../shared/core.BH9nN-_I.mjs';
15
15
  import '../shared/core.D4npX2q8.mjs';
16
- import '../shared/core.CtKXPqN_.mjs';
16
+ import '../shared/core.HUONfQfd.mjs';
17
17
  import '../shared/core.8KM0D6va.mjs';
18
- import '../shared/core.D56nCp7e.mjs';
18
+ import '../shared/core.CnIyafWn.mjs';
19
+ import '../shared/core._jnYNUQ-.mjs';
20
+ import '../shared/core.zLlww-07.mjs';
21
+ import '../types/scalar.mjs';
22
+ import '../shared/core.CaaYNQDM.mjs';
19
23
  import '../shared/core.B0oEIXqd.mjs';
20
24
  import 'rehype-raw';
21
25
  import 'rehype-sanitize';
@@ -26,10 +30,9 @@ import 'remark-rehype';
26
30
  import 'unified';
27
31
  import 'mdast-util-from-markdown';
28
32
  import 'mdast-util-to-string';
29
- import '../shared/core.Br7Fab9l.mjs';
30
- import '../shared/core.zLlww-07.mjs';
33
+ import '../shared/core.BpJu1RrF.mjs';
31
34
  import '../shared/core.Btl47GOn.mjs';
32
- import '../shared/core.BMCb0wJI.mjs';
35
+ import '../shared/core.yaRvRnMW.mjs';
33
36
  import '../shared/core.DcS-0zys.mjs';
34
37
  import '../shared/core.DsMrjY2q.mjs';
35
38
 
@@ -1,10 +1,10 @@
1
- import { A as Any, U as Unknown, g as ElementId, V as ViewId } from '../../shared/core.DAj3LuFH.mjs';
2
- import { E as ElementModel, R as RelationshipModel, g as LikeC4Model } from '../../shared/core.DrS4Bf4y.mjs';
1
+ import { A as Any, U as Unknown, g as ElementId, V as ViewId } from '../../shared/core.BFb3p5d-.mjs';
2
+ import { E as ElementModel, R as RelationshipModel, g as LikeC4Model } from '../../shared/core.DoNP3Yl-.mjs';
3
3
  import 'type-fest';
4
4
  import '../../shared/core.DuSLYTG6.mjs';
5
5
  import '../../shared/core.668kXpZq.mjs';
6
6
  import '../../shared/core.CywrQs86.mjs';
7
- import '../../shared/core.IWLie-Ma.mjs';
7
+ import '../../shared/core.DxDn5nB5.mjs';
8
8
  import '../../shared/core.CzdwsPmY.mjs';
9
9
 
10
10
  type RelationshipsViewData<M extends Any = Unknown> = {
@@ -1,5 +1,5 @@
1
- import { m as sortParentsFirst, j as isDescendantOf, i as isAncestor, C } from '../../shared/core.C_C-3c1S.mjs';
2
- import { D as DefaultMap } from '../../shared/core.BMCb0wJI.mjs';
1
+ import { m as sortParentsFirst, j as isDescendantOf, i as isAncestor, C } from '../../shared/core.DQj9iv_y.mjs';
2
+ import { D as DefaultMap } from '../../shared/core.yaRvRnMW.mjs';
3
3
  import { a as nonNullable, i as invariant } from '../../shared/core.D4npX2q8.mjs';
4
4
  import { a as toSet, t as toArray, i as imap } from '../../shared/core.Btl47GOn.mjs';
5
5
  import { i as ifilter } from '../../shared/core.BH9nN-_I.mjs';
package/dist/index.d.mts CHANGED
@@ -1,12 +1,12 @@
1
1
  export { ElementColors, RelationshipColors, computeColorValues, defaultTheme } from './theme/index.mjs';
2
2
  export { BiMap, DefaultWeakMap, LinkedList, MultiMap, Queue, Stack, commonHead, compareNatural, compareNaturalHierarchically, compareRelations, delay, difference, equalsSet, getOrCreate, hasAtLeast, intersection, invariant, isNonEmptyArray, isString, markdownToHtml, markdownToText, memoizeProp, nonNullable, nonexhaustive, objectHash, promiseNextTick, stringHash, symmetricDifference, union } from './utils/index.mjs';
3
3
  export { D as DefaultMap } from './shared/core.CywrQs86.mjs';
4
- export { A as Any, A as AnyAux, a as Aux, E as ExtractOnStage, M as ModelStage, S as SpecAux, U as Unknown, b as UnknownComputed, c as UnknownLayouted, d as UnknownParsed, e as _stage, f as _type, _ as aux, i as isOnStage } from './shared/core.DAj3LuFH.mjs';
4
+ export { A as Any, A as AnyAux, a as Aux, E as ExtractOnStage, M as ModelStage, S as SpecAux, U as Unknown, b as UnknownComputed, c as UnknownLayouted, d as UnknownParsed, e as _stage, f as _type, _ as aux, i as isOnStage } from './shared/core.BFb3p5d-.mjs';
5
5
  export { A as AnyFqn, B as BuiltInIcon, D as DeploymentFqn, b as DeploymentKind, j as EdgeId, E as ElementKind, F as Fqn, e as GlobalFqn, G as GroupElementKind, I as Icon, a as IconUrl, M as MarkdownOrString, N as NodeId, P as ProjectId, d as RelationId, R as RelationKind, c as RelationshipKind, k as StepEdgeId, S as StepEdgeIdLiteral, m as StepEdgeKind, T as Tag, V as ViewId, o as extractStep, f as flattenMarkdownOrString, g as isGlobalFqn, i as isGroupElementKind, n as isStepEdgeId, s as scalar, h as splitGlobalFqn, l as stepEdgeId } from './shared/core.668kXpZq.mjs';
6
- export { W as AbstractRelationship, ad as AndOperator, aE as AnyExcludePredicate, aD as AnyIncludePredicate, aq as AnyView, aF as AnyViewRuleStyle, aK as AutoLayoutDirection, z as AuxFromDump, A as AuxFromLikeC4ModelData, B as BBox, aS as BaseParsedViewProperties, aR as BaseViewProperties, aZ as ComputedDeploymentView, a_ as ComputedDynamicView, aX as ComputedEdge, aY as ComputedElementView, C as ComputedLikeC4ModelData, aW as ComputedNode, ao as ComputedView, U as DefaultArrowType, I as DefaultElementShape, T as DefaultLineStyle, K as DefaultPaddingSize, V as DefaultRelationshipColor, J as DefaultShapeSize, N as DefaultTextSize, H as DefaultThemeColor, q as DeployedInstance, r as DeploymentElement, s as DeploymentElementRef, D as DeploymentElementStyle, p as DeploymentNode, w as DeploymentRelation, v as DeploymentRelationship, b5 as DeploymentViewExcludePredicate, b4 as DeploymentViewIncludePredicate, b6 as DeploymentViewPredicate, b8 as DeploymentViewRule, b7 as DeploymentViewRuleStyle, b0 as DiagramEdge, a$ as DiagramNode, am as DiagramView, be as DynamicViewIncludeRule, bb as DynamicViewParallelSteps, bf as DynamicViewRule, ba as DynamicViewStep, bd as DynamicViewStepOrParallel, Q as Element, _ as ElementSpecification, O as ElementStyle, bj as ElementViewExcludePredicate, bi as ElementViewIncludePredicate, bk as ElementViewPredicate, bo as ElementViewRule, bl as ElementViewRuleGroup, bn as ElementViewRuleStyle, a3 as EqualOperator, E as Expression, ai as Filterable, F as FqnExpr, f as FqnRef, j as GlobalDynamicPredicates, G as GlobalPredicateId, i as GlobalPredicates, k as GlobalStyleID, l as GlobalStyles, a6 as KindEqual, b2 as LayoutedDeploymentView, b3 as LayoutedDynamicView, b1 as LayoutedElementView, L as LayoutedLikeC4ModelData, am as LayoutedView, o as LikeC4ModelData, y as LikeC4ModelDump, al as LikeC4View, e as ModelExpression, M as ModelFqnExpr, m as ModelGlobals, Z as ModelRelation, d as ModelRelationExpr, aT as NodeNotation, ab as NotOperator, aj as OperatorPredicate, af as OrOperator, b9 as ParsedDeploymentView, bg as ParsedDynamicView, bp as ParsedElementView, n as ParsedLikeC4ModelData, al as ParsedView, a8 as Participant, a9 as ParticipantOperator, g as Point, P as PredicateSelector, ap as ProcessedView, h as RectBox, c as RelationExpr, Y as Relationship, a1 as RelationshipSpecification, R as RichText, a as RichTextEmpty, b as RichTextOrEmpty, x as SpecTypesFromDump, a2 as Specification, S as SpecificationDump, a4 as TagEqual, $ as TagSpecification, aO as ViewAutoLayout, aP as ViewManualLayout, ar as ViewOnStage, at as ViewRule, aM as ViewRuleAutoLayout, aI as ViewRuleGlobalPredicateRef, aG as ViewRuleGlobalStyle, au as ViewRulePredicate, aQ as ViewType, aV as ViewWithHash, aU as ViewWithNotation, as as ViewWithType, ah as WhereOperator, X as XYPoint, bc as getParallelStepsPrefix, ae as isAndOperator, aL as isAutoLayoutDirection, ax as isComputedView, u as isDeployedInstance, t as isDeploymentNode, aB as isDeploymentView, an as isDiagramView, aC as isDynamicView, bh as isDynamicViewParallelSteps, ay as isElementView, aA as isExtendsElementView, a7 as isKindEqual, an as isLayoutedView, ac as isNotOperator, ag as isOrOperator, aa as isParticipantOperator, az as isScopedElementView, a0 as isTagColorSpecified, a5 as isTagEqual, aN as isViewRuleAutoLayout, aJ as isViewRuleGlobalPredicateRef, aH as isViewRuleGlobalStyle, bm as isViewRuleGroup, av as isViewRulePredicate, aw as isViewRuleStyle, ak as whereOperatorAsPredicate } from './shared/core.IWLie-Ma.mjs';
6
+ export { Y as AbstractRelationship, ae as AndOperator, aG as AnyExcludePredicate, aF as AnyIncludePredicate, as as AnyView, aH as AnyViewRuleStyle, aM as AutoLayoutDirection, H as AuxFromDump, A as AuxFromLikeC4ModelData, B as BBox, aU as BaseParsedViewProperties, aT as BaseViewProperties, a$ as ComputedDeploymentView, b0 as ComputedDynamicView, aZ as ComputedEdge, a_ as ComputedElementView, C as ComputedLikeC4ModelData, aY as ComputedNode, aq as ComputedView, V as DefaultArrowType, J as DefaultElementShape, U as DefaultLineStyle, N as DefaultPaddingSize, W as DefaultRelationshipColor, K as DefaultShapeSize, O as DefaultTextSize, I as DefaultThemeColor, q as DeployedInstance, r as DeploymentElement, s as DeploymentElementRef, D as DeploymentElementStyle, p as DeploymentNode, w as DeploymentRelation, v as DeploymentRelationship, b7 as DeploymentViewExcludePredicate, b6 as DeploymentViewIncludePredicate, b8 as DeploymentViewPredicate, ba as DeploymentViewRule, b9 as DeploymentViewRuleStyle, b2 as DiagramEdge, b1 as DiagramNode, ao as DiagramView, bg as DynamicViewIncludeRule, bd as DynamicViewParallelSteps, bh as DynamicViewRule, bc as DynamicViewStep, bf as DynamicViewStepOrParallel, T as Element, $ as ElementSpecification, Q as ElementStyle, bl as ElementViewExcludePredicate, bk as ElementViewIncludePredicate, bm as ElementViewPredicate, bq as ElementViewRule, bn as ElementViewRuleGroup, bp as ElementViewRuleStyle, a4 as EqualOperator, E as Expression, aj as Filterable, F as FqnExpr, f as FqnRef, j as GlobalDynamicPredicates, G as GlobalPredicateId, i as GlobalPredicates, k as GlobalStyleID, l as GlobalStyles, a7 as KindEqual, b4 as LayoutedDeploymentView, b5 as LayoutedDynamicView, b3 as LayoutedElementView, L as LayoutedLikeC4ModelData, ao as LayoutedView, o as LikeC4ModelData, y as LikeC4ModelDump, am as LikeC4Project, an as LikeC4View, e as ModelExpression, M as ModelFqnExpr, m as ModelGlobals, _ as ModelRelation, d as ModelRelationExpr, aV as NodeNotation, ac as NotOperator, ak as OperatorPredicate, ag as OrOperator, bb as ParsedDeploymentView, bi as ParsedDynamicView, br as ParsedElementView, n as ParsedLikeC4ModelData, an as ParsedView, a9 as Participant, aa as ParticipantOperator, g as Point, P as PredicateSelector, ar as ProcessedView, z as ProjectDump, h as RectBox, c as RelationExpr, Z as Relationship, a2 as RelationshipSpecification, R as RichText, a as RichTextEmpty, b as RichTextOrEmpty, x as SpecTypesFromDump, a3 as Specification, S as SpecificationDump, a5 as TagEqual, a0 as TagSpecification, aQ as ViewAutoLayout, aR as ViewManualLayout, at as ViewOnStage, av as ViewRule, aO as ViewRuleAutoLayout, aK as ViewRuleGlobalPredicateRef, aI as ViewRuleGlobalStyle, aw as ViewRulePredicate, aS as ViewType, aX as ViewWithHash, aW as ViewWithNotation, au as ViewWithType, ai as WhereOperator, X as XYPoint, be as getParallelStepsPrefix, af as isAndOperator, aN as isAutoLayoutDirection, az as isComputedView, u as isDeployedInstance, t as isDeploymentNode, aD as isDeploymentView, ap as isDiagramView, aE as isDynamicView, bj as isDynamicViewParallelSteps, aA as isElementView, aC as isExtendsElementView, a8 as isKindEqual, ap as isLayoutedView, ad as isNotOperator, ah as isOrOperator, ab as isParticipantOperator, aB as isScopedElementView, a1 as isTagColorSpecified, a6 as isTagEqual, aP as isViewRuleAutoLayout, aL as isViewRuleGlobalPredicateRef, aJ as isViewRuleGlobalStyle, bo as isViewRuleGroup, ax as isViewRulePredicate, ay as isViewRuleStyle, al as whereOperatorAsPredicate } from './shared/core.DxDn5nB5.mjs';
7
7
  export { C as Coalesce, E as ExclusiveUnion, I as IteratorLike, K as KeysOf, L as Link, b as NTuple, N as NonEmptyArray, a as NonEmptyReadonlyArray, P as Predicate } from './shared/core.DuSLYTG6.mjs';
8
8
  export { b as BorderStyle, B as BorderStyles, i as Color, C as ColorLiteral, d as CustomColor, e as CustomColorDefinitions, c as ElementShape, E as ElementShapes, k as ElementThemeColorValues, l as ElementThemeColors, H as HexColor, L as LikeC4Theme, f as RelationshipArrowType, R as RelationshipLineType, m as RelationshipThemeColorValues, o as RelationshipThemeColors, a as ShapeSize, S as SpacingSize, T as TextSize, h as ThemeColor, n as ThemeColorValues, g as ThemeColors, j as isThemeColor } from './shared/core.CzdwsPmY.mjs';
9
9
  export { ViewChange } from './types/index.mjs';
10
10
  export { I as IterableContainer, R as ReorderedArray, a as ancestorsFqn, c as commonAncestor, b as compareByFqnHierarchically, d as compareFqnHierarchically, h as hierarchyDistance, e as hierarchyLevel, i as isAncestor, f as isDescendantOf, g as isSameHierarchy, n as nameFromFqn, p as parentFqn, s as sortByFqnHierarchically, j as sortNaturalByFqn, k as sortParentsFirst } from './shared/core.CF82MWyh.mjs';
11
- export { ifilter, ifind, iflat, ihead, imap, ireduce, isIterable, isome, iunique, toArray, toSet } from './utils/iterable/index.mjs';
11
+ export { ifilter, ifind, ifirst, iflat, ihead, imap, ireduce, isIterable, isome, iunique, toArray, toSet } from './utils/iterable/index.mjs';
12
12
  import 'type-fest';
package/dist/index.mjs CHANGED
@@ -1,25 +1,30 @@
1
1
  export { ElementColors, RelationshipColors, computeColorValues, defaultTheme } from './theme/index.mjs';
2
- export { f as DefaultArrowType, a as DefaultElementShape, e as DefaultLineStyle, c as DefaultPaddingSize, g as DefaultRelationshipColor, b as DefaultShapeSize, d as DefaultTextSize, D as DefaultThemeColor, R as RichText } from './shared/core.D56nCp7e.mjs';
3
- export { D as DeploymentFqn, E as EdgeId, l as Fqn, F as FqnRef, n as GlobalFqn, G as GroupElementKind, N as NodeId, R as RelationId, S as StepEdgeKind, V as ViewId, _ as _stage, a as _type, r as extractStep, k as flattenMarkdownOrString, h as isAndOperator, c as isDeployedInstance, b as isDeploymentNode, o as isGlobalFqn, m as isGroupElementKind, e as isKindEqual, g as isNotOperator, i as isOnStage, j as isOrOperator, f as isParticipantOperator, q as isStepEdgeId, d as isTagEqual, s as splitGlobalFqn, p as stepEdgeId, w as whereOperatorAsPredicate } from './shared/core.Br7Fab9l.mjs';
4
- export { E as Expression, F as FqnExpr, b as ModelExpression, M as ModelFqnExpr, a as ModelRelationExpr, R as RelationExpr, p as getParallelStepsPrefix, n as isAutoLayoutDirection, d as isComputedView, j as isDeploymentView, e as isDiagramView, k as isDynamicView, q as isDynamicViewParallelSteps, f as isElementView, h as isExtendsElementView, e as isLayoutedView, g as isScopedElementView, o as isViewRuleAutoLayout, m as isViewRuleGlobalPredicateRef, l as isViewRuleGlobalStyle, r as isViewRuleGroup, i as isViewRulePredicate, c as isViewRuleStyle } from './shared/core.DXRAwwDB.mjs';
2
+ export { f as DefaultArrowType, a as DefaultElementShape, e as DefaultLineStyle, c as DefaultPaddingSize, g as DefaultRelationshipColor, b as DefaultShapeSize, d as DefaultTextSize, D as DefaultThemeColor, R as RichText } from './shared/core.CaaYNQDM.mjs';
3
+ export { F as FqnRef, _ as _stage, a as _type, h as isAndOperator, c as isDeployedInstance, b as isDeploymentNode, e as isKindEqual, g as isNotOperator, i as isOnStage, j as isOrOperator, f as isParticipantOperator, d as isTagEqual, w as whereOperatorAsPredicate } from './shared/core._jnYNUQ-.mjs';
4
+ export { E as Expression, F as FqnExpr, b as ModelExpression, M as ModelFqnExpr, a as ModelRelationExpr, R as RelationExpr, p as getParallelStepsPrefix, n as isAutoLayoutDirection, d as isComputedView, j as isDeploymentView, e as isDiagramView, k as isDynamicView, q as isDynamicViewParallelSteps, f as isElementView, h as isExtendsElementView, e as isLayoutedView, g as isScopedElementView, o as isViewRuleAutoLayout, m as isViewRuleGlobalPredicateRef, l as isViewRuleGlobalStyle, r as isViewRuleGroup, i as isViewRulePredicate, c as isViewRuleStyle } from './shared/core.CaJp8Amg.mjs';
5
5
  export { B as BBox, a as BorderStyles, E as ElementShapes, R as RectBox, T as ThemeColors, i as isTagColorSpecified, b as isThemeColor } from './shared/core.CxGKeL-L.mjs';
6
- export { b as BiMap, d as DefaultWeakMap, l as LinkedList, m as MultiMap, q as Queue, c as compareRelations, a as delay, p as promiseNextTick } from './shared/core.XptQjhMA.mjs';
7
- export { D as DefaultMap } from './shared/core.BMCb0wJI.mjs';
8
- export { S as Stack, c as commonHead, o as objectHash } from './shared/core.CtKXPqN_.mjs';
6
+ export { DeploymentFqn, EdgeId, Fqn, GlobalFqn, GroupElementKind, NodeId, RelationId, StepEdgeKind, ViewId, extractStep, flattenMarkdownOrString, isGlobalFqn, isGroupElementKind, isStepEdgeId, splitGlobalFqn, stepEdgeId } from './types/scalar.mjs';
7
+ export { b as BiMap, d as DefaultWeakMap, l as LinkedList, m as MultiMap, q as Queue, c as compareRelations, a as delay, p as promiseNextTick } from './shared/core.b2BzqGz0.mjs';
8
+ export { D as DefaultMap } from './shared/core.yaRvRnMW.mjs';
9
+ export { S as Stack, c as commonHead, o as objectHash } from './shared/core.HUONfQfd.mjs';
9
10
  export { i as invariant, a as nonNullable, n as nonexhaustive } from './shared/core.D4npX2q8.mjs';
10
- export { b as ancestorsFqn, d as commonAncestor, e as compareByFqnHierarchically, f as compareFqnHierarchically, c as compareNatural, a as compareNaturalHierarchically, h as hierarchyDistance, g as hierarchyLevel, i as isAncestor, j as isDescendantOf, o as isNonEmptyArray, k as isSameHierarchy, q as isString, n as nameFromFqn, p as parentFqn, s as sortByFqnHierarchically, l as sortNaturalByFqn, m as sortParentsFirst } from './shared/core.C_C-3c1S.mjs';
11
+ export { b as ancestorsFqn, d as commonAncestor, e as compareByFqnHierarchically, f as compareFqnHierarchically, c as compareNatural, a as compareNaturalHierarchically, h as hierarchyDistance, g as hierarchyLevel, i as isAncestor, j as isDescendantOf, o as isNonEmptyArray, k as isSameHierarchy, q as isString, n as nameFromFqn, p as parentFqn, s as sortByFqnHierarchically, l as sortNaturalByFqn, m as sortParentsFirst } from './shared/core.DQj9iv_y.mjs';
11
12
  export { g as getOrCreate } from './shared/core.DcS-0zys.mjs';
12
13
  export { d as difference, e as equalsSet, i as hasAtLeast, a as intersection, b as stringHash, s as symmetricDifference, u as union } from './shared/core.CpwrZi3D.mjs';
13
14
  export { i as ifilter } from './shared/core.BH9nN-_I.mjs';
14
15
  export { i as ifind, a as ihead } from './shared/core.DsMrjY2q.mjs';
16
+ export { ifirst, ireduce } from './utils/iterable/index.mjs';
15
17
  export { i as iflat, a as isIterable, b as iunique } from './shared/core.8KM0D6va.mjs';
16
18
  export { i as imap, t as toArray, a as toSet } from './shared/core.Btl47GOn.mjs';
17
- export { ireduce } from './utils/iterable/index.mjs';
18
19
  export { i as isome } from './shared/core.BoyJPEen.mjs';
19
20
  export { a as markdownToHtml, b as markdownToText, m as memoizeProp } from './shared/core.B0oEIXqd.mjs';
21
+ import '@mantine/colors-generator';
22
+ import 'chroma-js';
23
+ import './shared/core.BpJu1RrF.mjs';
24
+ import './shared/core.DbRvwARP.mjs';
20
25
  import './shared/core.zLlww-07.mjs';
26
+ import './shared/core.CnIyafWn.mjs';
21
27
  import './shared/core.BgvIuGGU.mjs';
22
- import './shared/core.DbRvwARP.mjs';
23
28
  import './shared/core.ByrmCl9I.mjs';
24
29
  import 'rehype-raw';
25
30
  import 'rehype-sanitize';
@@ -1,10 +1,10 @@
1
- export { C as Connection } from '../../../shared/core.D3xEWj5B.mjs';
2
- export { D as DeploymentConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.Di7__sMg.mjs';
3
- import '../../../shared/core.DrS4Bf4y.mjs';
4
- import '../../../shared/core.DAj3LuFH.mjs';
1
+ export { C as Connection } from '../../../shared/core.D8bTI5KC.mjs';
2
+ export { D as DeploymentConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.DHYd2-VU.mjs';
3
+ import '../../../shared/core.DoNP3Yl-.mjs';
4
+ import '../../../shared/core.BFb3p5d-.mjs';
5
5
  import 'type-fest';
6
6
  import '../../../shared/core.DuSLYTG6.mjs';
7
7
  import '../../../shared/core.668kXpZq.mjs';
8
8
  import '../../../shared/core.CywrQs86.mjs';
9
- import '../../../shared/core.IWLie-Ma.mjs';
9
+ import '../../../shared/core.DxDn5nB5.mjs';
10
10
  import '../../../shared/core.CzdwsPmY.mjs';
@@ -1,11 +1,11 @@
1
- export { C as Connection } from '../../../shared/core.C80Z37Eu.mjs';
2
- export { D as DeploymentConnectionModel, f as findConnection, a as findConnectionsBetween, b as findConnectionsWithin } from '../../../shared/core.D5qVzkws.mjs';
3
- import '../../../shared/core.C_C-3c1S.mjs';
1
+ export { C as Connection } from '../../../shared/core.C1GV0WWV.mjs';
2
+ export { D as DeploymentConnectionModel, f as findConnection, a as findConnectionsBetween, b as findConnectionsWithin } from '../../../shared/core.Bus32P0S.mjs';
3
+ import '../../../shared/core.DQj9iv_y.mjs';
4
4
  import '../../../shared/core.zLlww-07.mjs';
5
5
  import '../../../shared/core.CpwrZi3D.mjs';
6
6
  import '../../../shared/core.DbRvwARP.mjs';
7
7
  import '../../../shared/core.D4npX2q8.mjs';
8
- import '../../../shared/core.D56nCp7e.mjs';
8
+ import '../../../shared/core.CnIyafWn.mjs';
9
9
  import '../../../shared/core.B0oEIXqd.mjs';
10
10
  import 'rehype-raw';
11
11
  import 'rehype-sanitize';
@@ -16,3 +16,4 @@ import 'remark-rehype';
16
16
  import 'unified';
17
17
  import 'mdast-util-from-markdown';
18
18
  import 'mdast-util-to-string';
19
+ import '../../../shared/core.CaaYNQDM.mjs';
@@ -1,14 +1,14 @@
1
- import { C as Connection } from '../../shared/core.D3xEWj5B.mjs';
2
- export { D as DeploymentConnectionModel, f as deployment } from '../../shared/core.Di7__sMg.mjs';
3
- export { C as ConnectionModel, f as model } from '../../shared/core.CJSFKrYf.mjs';
1
+ import { C as Connection } from '../../shared/core.D8bTI5KC.mjs';
2
+ export { D as DeploymentConnectionModel, f as deployment } from '../../shared/core.DHYd2-VU.mjs';
3
+ export { C as ConnectionModel, f as model } from '../../shared/core.Bt3kuGUN.mjs';
4
4
  import { I as IterableContainer, R as ReorderedArray } from '../../shared/core.CF82MWyh.mjs';
5
- import '../../shared/core.DrS4Bf4y.mjs';
6
- import '../../shared/core.DAj3LuFH.mjs';
5
+ import '../../shared/core.DoNP3Yl-.mjs';
6
+ import '../../shared/core.BFb3p5d-.mjs';
7
7
  import 'type-fest';
8
8
  import '../../shared/core.DuSLYTG6.mjs';
9
9
  import '../../shared/core.668kXpZq.mjs';
10
10
  import '../../shared/core.CywrQs86.mjs';
11
- import '../../shared/core.IWLie-Ma.mjs';
11
+ import '../../shared/core.DxDn5nB5.mjs';
12
12
  import '../../shared/core.CzdwsPmY.mjs';
13
13
 
14
14
  /**
@@ -1,12 +1,12 @@
1
- export { C as Connection } from '../../shared/core.C80Z37Eu.mjs';
2
- export { D as DeploymentConnectionModel, d as deployment } from '../../shared/core.D5qVzkws.mjs';
3
- export { C as ConnectionModel, d as differenceConnections, f as findAscendingConnections, a as findDeepestNestedConnection, b as findDescendantConnections, h as hasSameSource, c as hasSameSourceTarget, e as hasSameTarget, i as isAnyInOut, g as isIncoming, j as isNestedConnection, k as isOutgoing, m as mergeConnections, n as model, s as sortConnectionsByBoundaryHierarchy, l as sortDeepestFirst } from '../../shared/core.BTnf14gD.mjs';
4
- import '../../shared/core.C_C-3c1S.mjs';
1
+ export { C as Connection } from '../../shared/core.C1GV0WWV.mjs';
2
+ export { D as DeploymentConnectionModel, d as deployment } from '../../shared/core.Bus32P0S.mjs';
3
+ export { C as ConnectionModel, d as differenceConnections, f as findAscendingConnections, a as findDeepestNestedConnection, b as findDescendantConnections, h as hasSameSource, c as hasSameSourceTarget, e as hasSameTarget, i as isAnyInOut, g as isIncoming, j as isNestedConnection, k as isOutgoing, m as mergeConnections, n as model, s as sortConnectionsByBoundaryHierarchy, l as sortDeepestFirst } from '../../shared/core.Y3j3s-oq.mjs';
4
+ import '../../shared/core.DQj9iv_y.mjs';
5
5
  import '../../shared/core.zLlww-07.mjs';
6
6
  import '../../shared/core.CpwrZi3D.mjs';
7
7
  import '../../shared/core.DbRvwARP.mjs';
8
8
  import '../../shared/core.D4npX2q8.mjs';
9
- import '../../shared/core.D56nCp7e.mjs';
9
+ import '../../shared/core.CnIyafWn.mjs';
10
10
  import '../../shared/core.B0oEIXqd.mjs';
11
11
  import 'rehype-raw';
12
12
  import 'rehype-sanitize';
@@ -17,6 +17,7 @@ import 'remark-rehype';
17
17
  import 'unified';
18
18
  import 'mdast-util-from-markdown';
19
19
  import 'mdast-util-to-string';
20
+ import '../../shared/core.CaaYNQDM.mjs';
20
21
  import '../../shared/core.BgvIuGGU.mjs';
21
22
  import '../../shared/core.ByrmCl9I.mjs';
22
23
  import '../../shared/core.BoyJPEen.mjs';
@@ -1,10 +1,10 @@
1
- export { C as Connection } from '../../../shared/core.D3xEWj5B.mjs';
2
- export { C as ConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.CJSFKrYf.mjs';
3
- import '../../../shared/core.DrS4Bf4y.mjs';
4
- import '../../../shared/core.DAj3LuFH.mjs';
1
+ export { C as Connection } from '../../../shared/core.D8bTI5KC.mjs';
2
+ export { C as ConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.Bt3kuGUN.mjs';
3
+ import '../../../shared/core.DoNP3Yl-.mjs';
4
+ import '../../../shared/core.BFb3p5d-.mjs';
5
5
  import 'type-fest';
6
6
  import '../../../shared/core.DuSLYTG6.mjs';
7
7
  import '../../../shared/core.668kXpZq.mjs';
8
8
  import '../../../shared/core.CywrQs86.mjs';
9
- import '../../../shared/core.IWLie-Ma.mjs';
9
+ import '../../../shared/core.DxDn5nB5.mjs';
10
10
  import '../../../shared/core.CzdwsPmY.mjs';
@@ -1,6 +1,6 @@
1
- export { C as Connection } from '../../../shared/core.C80Z37Eu.mjs';
2
- export { C as ConnectionModel, q as findConnection, o as findConnectionsBetween, r as findConnectionsWithin } from '../../../shared/core.BTnf14gD.mjs';
3
- import '../../../shared/core.C_C-3c1S.mjs';
1
+ export { C as Connection } from '../../../shared/core.C1GV0WWV.mjs';
2
+ export { C as ConnectionModel, q as findConnection, o as findConnectionsBetween, r as findConnectionsWithin } from '../../../shared/core.Y3j3s-oq.mjs';
3
+ import '../../../shared/core.DQj9iv_y.mjs';
4
4
  import '../../../shared/core.zLlww-07.mjs';
5
5
  import '../../../shared/core.BgvIuGGU.mjs';
6
6
  import '../../../shared/core.CpwrZi3D.mjs';
@@ -1,12 +1,12 @@
1
- import { D as DeploymentNodeModel, a as DeployedInstanceModel, b as DeploymentRelationModel, A as AnyRelationshipModel, N as NestedElementOfDeployedInstanceModel, E as ElementModel, R as RelationshipModel, L as LikeC4ViewModel, c as NodeModel, d as EdgeModel, e as DeploymentElementModel } from '../shared/core.DrS4Bf4y.mjs';
2
- export { f as AnyLikeC4Model, k as DeploymentOrFqn, h as DeploymentRelationEndpoint, l as EdgeOrId, m as ElementOrFqn, I as IncomingFilter, j as LikeC4DeploymentModel, g as LikeC4Model, n as NodeOrId, O as OutgoingFilter, i as RelationshipsAccum, W as WithMetadata, o as WithTags } from '../shared/core.DrS4Bf4y.mjs';
3
- import { A as Any } from '../shared/core.DAj3LuFH.mjs';
4
- export { a as Aux, S as SpecAux, _ as aux } from '../shared/core.DAj3LuFH.mjs';
5
- export { C as Connection } from '../shared/core.D3xEWj5B.mjs';
6
- export { C as ConnectionModel, f as modelConnection } from '../shared/core.CJSFKrYf.mjs';
7
- export { D as DeploymentConnectionModel, f as deploymentConnection } from '../shared/core.Di7__sMg.mjs';
1
+ import { D as DeploymentNodeModel, a as DeployedInstanceModel, b as DeploymentRelationModel, A as AnyRelationshipModel, N as NestedElementOfDeployedInstanceModel, E as ElementModel, R as RelationshipModel, L as LikeC4ViewModel, c as NodeModel, d as EdgeModel, e as DeploymentElementModel } from '../shared/core.DoNP3Yl-.mjs';
2
+ export { f as AnyLikeC4Model, l as DeploymentOrFqn, h as DeploymentRelationEndpoint, m as EdgeOrId, n as ElementOrFqn, I as IncomingFilter, j as LikeC4DeploymentModel, g as LikeC4Model, k as LikeC4ViewsFolder, o as NodeOrId, O as OutgoingFilter, i as RelationshipsAccum, W as WithMetadata, p as WithTags } from '../shared/core.DoNP3Yl-.mjs';
3
+ import { A as Any } from '../shared/core.BFb3p5d-.mjs';
4
+ export { a as Aux, S as SpecAux, _ as aux } from '../shared/core.BFb3p5d-.mjs';
5
+ export { C as Connection } from '../shared/core.D8bTI5KC.mjs';
6
+ export { C as ConnectionModel, f as modelConnection } from '../shared/core.Bt3kuGUN.mjs';
7
+ export { D as DeploymentConnectionModel, f as deploymentConnection } from '../shared/core.DHYd2-VU.mjs';
8
8
  export { differenceConnections, findAscendingConnections, findDeepestNestedConnection, findDescendantConnections, hasSameSource, hasSameSourceTarget, hasSameTarget, isAnyInOut, isIncoming, isNestedConnection, isOutgoing, mergeConnections, sortConnectionsByBoundaryHierarchy, sortDeepestFirst } from './connection/index.mjs';
9
- export { z as AuxFromDump, A as AuxFromLikeC4ModelData, R as RichText, a as RichTextEmpty, b as RichTextOrEmpty } from '../shared/core.IWLie-Ma.mjs';
9
+ export { H as AuxFromDump, A as AuxFromLikeC4ModelData, R as RichText, a as RichTextEmpty, b as RichTextOrEmpty } from '../shared/core.DxDn5nB5.mjs';
10
10
  import '../shared/core.CywrQs86.mjs';
11
11
  import 'type-fest';
12
12
  import '../shared/core.668kXpZq.mjs';
@@ -27,4 +27,28 @@ declare function isLikeC4ViewModel<M extends Any>(view: AnyModel<M>): view is Li
27
27
  declare function isNodeModel<M extends Any>(node: AnyModel<M>): node is NodeModel<M>;
28
28
  declare function isEdgeModel<M extends Any>(edge: AnyModel<M>): edge is EdgeModel<M>;
29
29
 
30
- export { Any, Any as AnyAux, DeployedInstanceModel, DeploymentElementModel, DeploymentNodeModel, DeploymentRelationModel, EdgeModel, ElementModel, LikeC4ViewModel, NodeModel, RelationshipModel, isDeployedInstanceModel, isDeploymentElementModel, isDeploymentNodeModel, isDeploymentRelationModel, isEdgeModel, isElementModel, isLikeC4ViewModel, isRelationModel as isModelRelation, isNestedElementOfDeployedInstanceModel, isNodeModel, isRelationModel, isRelationModel as isRelationshipModel };
30
+ declare const VIEW_FOLDERS_SEPARATOR = "/";
31
+ /**
32
+ * Normalizes view path by removing spaces from segments, removing empty segments,
33
+ * and removing leading/trailing slashes
34
+ * @example
35
+ * normalizeViewPath('One / Tw o / Thre e') === 'One/Tw o/Thre e'
36
+ */
37
+ declare const normalizeViewPath: (title: string) => string;
38
+ /**
39
+ * Returns view group path if it is used as a path
40
+ * Returns empty string if it is not a path
41
+ * @example
42
+ * getViewFolderPath('One / Tw o / Thre e') === 'One/Tw o'
43
+ * getViewFolderPath('One') === ''
44
+ */
45
+ declare const getViewFolderPath: (title: string) => string | null;
46
+ /**
47
+ * Returns view title if it is used as a path
48
+ * @example
49
+ * getViewTitleFromPath('One / Tw o / Thre e') === 'Thre e'
50
+ * getViewTitleFromPath('One') === 'One'
51
+ */
52
+ declare const extractViewTitleFromPath: (title: string) => string;
53
+
54
+ export { Any, Any as AnyAux, DeployedInstanceModel, DeploymentElementModel, DeploymentNodeModel, DeploymentRelationModel, EdgeModel, ElementModel, LikeC4ViewModel, NodeModel, RelationshipModel, VIEW_FOLDERS_SEPARATOR, extractViewTitleFromPath, getViewFolderPath, isDeployedInstanceModel, isDeploymentElementModel, isDeploymentNodeModel, isDeploymentRelationModel, isEdgeModel, isElementModel, isLikeC4ViewModel, isRelationModel as isModelRelation, isNestedElementOfDeployedInstanceModel, isNodeModel, isRelationModel, isRelationModel as isRelationshipModel, normalizeViewPath };
@@ -1,16 +1,19 @@
1
- export { b as EdgeModel, E as ElementModel, a as LikeC4DeploymentModel, L as LikeC4Model, c as LikeC4ViewModel, N as NodeModel, R as RelationshipModel, d as isDeployedInstanceModel, e as isDeploymentElementModel, i as isDeploymentNodeModel, g as isDeploymentRelationModel, m as isEdgeModel, j as isElementModel, k as isLikeC4ViewModel, h as isModelRelation, f as isNestedElementOfDeployedInstanceModel, l as isNodeModel, h as isRelationModel, h as isRelationshipModel } from '../shared/core.4SpVCM9m.mjs';
2
- export { c as DeployedInstanceModel, D as DeploymentConnectionModel, e as DeploymentNodeModel, g as DeploymentRelationModel, R as RelationshipsAccum, d as deploymentConnection } from '../shared/core.D5qVzkws.mjs';
3
- export { C as Connection } from '../shared/core.C80Z37Eu.mjs';
4
- export { C as ConnectionModel, d as differenceConnections, f as findAscendingConnections, a as findDeepestNestedConnection, b as findDescendantConnections, h as hasSameSource, c as hasSameSourceTarget, e as hasSameTarget, i as isAnyInOut, g as isIncoming, j as isNestedConnection, k as isOutgoing, m as mergeConnections, n as modelConnection, s as sortConnectionsByBoundaryHierarchy, l as sortDeepestFirst } from '../shared/core.BTnf14gD.mjs';
5
- export { R as RichText } from '../shared/core.D56nCp7e.mjs';
1
+ export { b as EdgeModel, E as ElementModel, a as LikeC4DeploymentModel, L as LikeC4Model, c as LikeC4ViewModel, d as LikeC4ViewsFolder, N as NodeModel, R as RelationshipModel, V as VIEW_FOLDERS_SEPARATOR, e as extractViewTitleFromPath, g as getViewFolderPath, f as isDeployedInstanceModel, h as isDeploymentElementModel, i as isDeploymentNodeModel, k as isDeploymentRelationModel, q as isEdgeModel, m as isElementModel, o as isLikeC4ViewModel, l as isModelRelation, j as isNestedElementOfDeployedInstanceModel, p as isNodeModel, l as isRelationModel, l as isRelationshipModel, n as normalizeViewPath } from '../shared/core.BvIGRozf.mjs';
2
+ export { c as DeployedInstanceModel, D as DeploymentConnectionModel, e as DeploymentNodeModel, g as DeploymentRelationModel, R as RelationshipsAccum, d as deploymentConnection } from '../shared/core.Bus32P0S.mjs';
3
+ export { C as Connection } from '../shared/core.C1GV0WWV.mjs';
4
+ export { C as ConnectionModel, d as differenceConnections, f as findAscendingConnections, a as findDeepestNestedConnection, b as findDescendantConnections, h as hasSameSource, c as hasSameSourceTarget, e as hasSameTarget, i as isAnyInOut, g as isIncoming, j as isNestedConnection, k as isOutgoing, m as mergeConnections, n as modelConnection, s as sortConnectionsByBoundaryHierarchy, l as sortDeepestFirst } from '../shared/core.Y3j3s-oq.mjs';
5
+ export { R as RichText } from '../shared/core.CaaYNQDM.mjs';
6
6
  import '../shared/core.DbRvwARP.mjs';
7
7
  import '../shared/core.ByrmCl9I.mjs';
8
- import '../shared/core.C_C-3c1S.mjs';
8
+ import '../shared/core.CpwrZi3D.mjs';
9
+ import '../shared/core.D4npX2q8.mjs';
10
+ import '../shared/core.DQj9iv_y.mjs';
9
11
  import '../shared/core.zLlww-07.mjs';
10
12
  import '../shared/core.DcS-0zys.mjs';
11
- import '../shared/core.BMCb0wJI.mjs';
12
- import '../shared/core.D4npX2q8.mjs';
13
- import '../shared/core.Br7Fab9l.mjs';
13
+ import '../shared/core.yaRvRnMW.mjs';
14
+ import '../shared/core._jnYNUQ-.mjs';
15
+ import '../types/scalar.mjs';
16
+ import '../shared/core.CnIyafWn.mjs';
14
17
  import '../shared/core.BgvIuGGU.mjs';
15
18
  import '../shared/core.B0oEIXqd.mjs';
16
19
  import 'rehype-raw';
@@ -24,5 +27,4 @@ import 'mdast-util-from-markdown';
24
27
  import 'mdast-util-to-string';
25
28
  import '../shared/core.BH9nN-_I.mjs';
26
29
  import '../shared/core.DsMrjY2q.mjs';
27
- import '../shared/core.CpwrZi3D.mjs';
28
30
  import '../shared/core.BoyJPEen.mjs';
@@ -102,6 +102,7 @@ type toLayouted<A> = A extends Aux<any, infer E, infer D, infer V, infer P, infe
102
102
  * Project identifier from Aux
103
103
  */
104
104
  type ProjectId<A> = A extends infer T extends Any ? Coalesce<T['ProjectId']> : never;
105
+ type setProject<A, P extends string> = A extends Aux<infer S, infer E, infer D, infer V, any, infer Spec> ? Aux<S, E, D, V, P, Spec> : never;
105
106
  /**
106
107
  * Element FQN from Aux as branded type
107
108
  */
@@ -248,12 +249,13 @@ type _aux_WithMetadata<A extends Any> = WithMetadata<A>;
248
249
  type _aux_WithOptionalLinks = WithOptionalLinks;
249
250
  type _aux_WithOptionalTags<A extends Any> = WithOptionalTags<A>;
250
251
  type _aux_WithTags<A extends Any> = WithTags<A>;
252
+ type _aux_setProject<A, P extends string> = setProject<A, P>;
251
253
  type _aux_setStage<A, S extends ModelStage> = setStage<A, S>;
252
254
  type _aux_toComputed<A> = toComputed<A>;
253
255
  type _aux_toLayouted<A> = toLayouted<A>;
254
256
  type _aux_toParsed<A> = toParsed<A>;
255
257
  declare namespace _aux {
256
- export type { _aux_AllKinds as AllKinds, _aux_Any as Any, Any as AnyAux, _aux_AnySpec as AnySpec, _aux_Aux as Aux, _aux_DeploymentFqn as DeploymentFqn, _aux_DeploymentId as DeploymentId, _aux_DeploymentKind as DeploymentKind, _aux_EdgeId as EdgeId, _aux_ElementId as ElementId, _aux_ElementKind as ElementKind, _aux_Fqn as Fqn, _aux_LooseDeploymentId as LooseDeploymentId, _aux_LooseDeploymentKind as LooseDeploymentKind, _aux_LooseElementId as LooseElementId, _aux_LooseElementKind as LooseElementKind, _aux_LooseRelationKind as LooseRelationKind, _aux_LooseTag as LooseTag, _aux_LooseTags as LooseTags, _aux_LooseViewId as LooseViewId, _aux_Metadata as Metadata, _aux_MetadataKey as MetadataKey, _aux_Never as Never, _aux_NodeId as NodeId, _aux_OrString as OrString, _aux_PickByStage as PickByStage, _aux_ProjectId as ProjectId, _aux_RelationId as RelationId, _aux_RelationKind as RelationKind, _aux_Spec as Spec, _aux_SpecAux as SpecAux, _aux_Stage as Stage, DeploymentFqn as StrictDeploymentFqn, _aux_StrictDeploymentKind as StrictDeploymentKind, _aux_StrictElementKind as StrictElementKind, Fqn as StrictFqn, _aux_StrictProjectId as StrictProjectId, _aux_StrictRelationKind as StrictRelationKind, _aux_StrictTag as StrictTag, _aux_StrictViewId as StrictViewId, _aux_Tag as Tag, _aux_Tags as Tags, _aux_Unknown as Unknown, _aux_UnknownComputed as UnknownComputed, _aux_UnknownLayouted as UnknownLayouted, _aux_UnknownParsed as UnknownParsed, _aux_ViewId as ViewId, _aux_WithLinks as WithLinks, _aux_WithMetadata as WithMetadata, _aux_WithOptionalLinks as WithOptionalLinks, _aux_WithOptionalTags as WithOptionalTags, _aux_WithTags as WithTags, _aux_setStage as setStage, _aux_toComputed as toComputed, _aux_toLayouted as toLayouted, _aux_toParsed as toParsed };
258
+ export type { _aux_AllKinds as AllKinds, _aux_Any as Any, Any as AnyAux, _aux_AnySpec as AnySpec, _aux_Aux as Aux, _aux_DeploymentFqn as DeploymentFqn, _aux_DeploymentId as DeploymentId, _aux_DeploymentKind as DeploymentKind, _aux_EdgeId as EdgeId, _aux_ElementId as ElementId, _aux_ElementKind as ElementKind, _aux_Fqn as Fqn, _aux_LooseDeploymentId as LooseDeploymentId, _aux_LooseDeploymentKind as LooseDeploymentKind, _aux_LooseElementId as LooseElementId, _aux_LooseElementKind as LooseElementKind, _aux_LooseRelationKind as LooseRelationKind, _aux_LooseTag as LooseTag, _aux_LooseTags as LooseTags, _aux_LooseViewId as LooseViewId, _aux_Metadata as Metadata, _aux_MetadataKey as MetadataKey, _aux_Never as Never, _aux_NodeId as NodeId, _aux_OrString as OrString, _aux_PickByStage as PickByStage, _aux_ProjectId as ProjectId, _aux_RelationId as RelationId, _aux_RelationKind as RelationKind, _aux_Spec as Spec, _aux_SpecAux as SpecAux, _aux_Stage as Stage, DeploymentFqn as StrictDeploymentFqn, _aux_StrictDeploymentKind as StrictDeploymentKind, _aux_StrictElementKind as StrictElementKind, Fqn as StrictFqn, _aux_StrictProjectId as StrictProjectId, _aux_StrictRelationKind as StrictRelationKind, _aux_StrictTag as StrictTag, _aux_StrictViewId as StrictViewId, _aux_Tag as Tag, _aux_Tags as Tags, _aux_Unknown as Unknown, _aux_UnknownComputed as UnknownComputed, _aux_UnknownLayouted as UnknownLayouted, _aux_UnknownParsed as UnknownParsed, _aux_ViewId as ViewId, _aux_WithLinks as WithLinks, _aux_WithMetadata as WithMetadata, _aux_WithOptionalLinks as WithOptionalLinks, _aux_WithOptionalTags as WithOptionalTags, _aux_WithTags as WithTags, _aux_setProject as setProject, _aux_setStage as setStage, _aux_toComputed as toComputed, _aux_toLayouted as toLayouted, _aux_toParsed as toParsed };
257
259
  }
258
260
 
259
- export { type WithLinks as $, type Any as A, type EdgeId as B, type AnySpec as C, type DeploymentKind as D, type ExtractOnStage as E, type Fqn as F, type PickByStage as G, type setStage as H, type NodeId as I, type Spec as J, type StrictProjectId as K, type LooseTag as L, type ModelStage as M, type Never as N, type StrictTag as O, type ProjectId as P, type StrictElementKind as Q, type RelationKind as R, type SpecAux as S, type Tags as T, type Unknown as U, type ViewId as V, type WithOptionalTags as W, type StrictDeploymentKind as X, type StrictRelationKind as Y, type WithTags as Z, _aux as _, type Aux as a, type OrString as a0, type LooseTags as a1, type LooseElementKind as a2, type LooseDeploymentKind as a3, type LooseRelationKind as a4, type UnknownComputed as b, type UnknownLayouted as c, type UnknownParsed as d, _stage as e, _type as f, type ElementId as g, type Metadata as h, isOnStage as i, type MetadataKey as j, type ElementKind as k, type RelationId as l, type StrictViewId as m, type LooseElementId as n, type LooseDeploymentId as o, type DeploymentFqn as p, type toLayouted as q, type Stage as r, type DeploymentId as s, type toComputed as t, type Tag as u, type toParsed as v, type LooseViewId as w, type AllKinds as x, type WithOptionalLinks as y, type WithMetadata as z };
261
+ export { type WithTags as $, type Any as A, type WithMetadata as B, type EdgeId as C, type DeploymentKind as D, type ExtractOnStage as E, type Fqn as F, type AnySpec as G, type PickByStage as H, type setStage as I, type NodeId as J, type Spec as K, type LooseTag as L, type ModelStage as M, type Never as N, type StrictProjectId as O, type ProjectId as P, type StrictTag as Q, type RelationKind as R, type SpecAux as S, type Tags as T, type Unknown as U, type ViewId as V, type WithOptionalTags as W, type StrictElementKind as X, type StrictDeploymentKind as Y, type StrictRelationKind as Z, _aux as _, type Aux as a, type WithLinks as a0, type OrString as a1, type LooseTags as a2, type LooseElementKind as a3, type LooseDeploymentKind as a4, type LooseRelationKind as a5, type UnknownComputed as b, type UnknownLayouted as c, type UnknownParsed as d, _stage as e, _type as f, type ElementId as g, type Metadata as h, isOnStage as i, type MetadataKey as j, type ElementKind as k, type RelationId as l, type StrictViewId as m, type LooseElementId as n, type LooseDeploymentId as o, type DeploymentFqn as p, type toLayouted as q, type Stage as r, type DeploymentId as s, type toComputed as t, type Tag as u, type toParsed as v, type LooseViewId as w, type setProject as x, type AllKinds as y, type WithOptionalLinks as z };