@likec4/core 1.34.1 → 1.35.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 (56) hide show
  1. package/dist/builder/index.d.mts +2 -2
  2. package/dist/builder/index.mjs +11 -10
  3. package/dist/compute-view/index.d.mts +2 -2
  4. package/dist/compute-view/index.mjs +12 -11
  5. package/dist/compute-view/relationships-view/index.d.mts +2 -2
  6. package/dist/compute-view/relationships-view/index.mjs +2 -2
  7. package/dist/index.d.mts +2 -2
  8. package/dist/index.mjs +9 -8
  9. package/dist/model/connection/deployment/index.d.mts +4 -4
  10. package/dist/model/connection/deployment/index.mjs +3 -3
  11. package/dist/model/connection/index.d.mts +5 -5
  12. package/dist/model/connection/index.mjs +4 -4
  13. package/dist/model/connection/model/index.d.mts +4 -4
  14. package/dist/model/connection/model/index.mjs +3 -3
  15. package/dist/model/index.d.mts +31 -7
  16. package/dist/model/index.mjs +9 -9
  17. package/dist/shared/{core.D3xEWj5B.d.mts → core.72IoI17N.d.mts} +1 -1
  18. package/dist/shared/{core.DXRAwwDB.mjs → core.B1ZN723l.mjs} +1 -1
  19. package/dist/shared/core.BpJu1RrF.mjs +5 -0
  20. package/dist/shared/{core.C80Z37Eu.mjs → core.C1GV0WWV.mjs} +1 -1
  21. package/dist/shared/{core.D5qVzkws.mjs → core.CQS11dNK.mjs} +2 -2
  22. package/dist/shared/{core.C_C-3c1S.mjs → core.DQj9iv_y.mjs} +3 -5
  23. package/dist/shared/{core.IWLie-Ma.d.mts → core.Ddua-wiI.d.mts} +3 -0
  24. package/dist/shared/{core.CJSFKrYf.d.mts → core.DhTO8rgm.d.mts} +2 -2
  25. package/dist/shared/{core.CtKXPqN_.mjs → core.HUONfQfd.mjs} +1 -1
  26. package/dist/shared/{core.Di7__sMg.d.mts → core.NBNeVyag.d.mts} +2 -2
  27. package/dist/shared/{core.PqNe5WxQ.mjs → core.RnUJywKk.mjs} +94 -92
  28. package/dist/shared/{core.DrS4Bf4y.d.mts → core.SciGxb--.d.mts} +183 -8
  29. package/dist/shared/{core.BTnf14gD.mjs → core.Y3j3s-oq.mjs} +2 -2
  30. package/dist/shared/{core.XptQjhMA.mjs → core.b2BzqGz0.mjs} +2 -2
  31. package/dist/shared/{core.4SpVCM9m.mjs → core.rpF8esVq.mjs} +354 -28
  32. package/dist/shared/{core.BMCb0wJI.mjs → core.yaRvRnMW.mjs} +1 -1
  33. package/dist/theme/index.mjs +33 -3
  34. package/dist/types/index.d.mts +2 -2
  35. package/dist/types/index.mjs +2 -2
  36. package/dist/utils/index.d.mts +6 -8
  37. package/dist/utils/index.mjs +5 -5
  38. package/dist/utils/iterable/index.d.mts +18 -1
  39. package/dist/utils/iterable/index.mjs +22 -2
  40. package/package.json +6 -5
  41. package/src/compute-view/element-view/predicates/relation-direct.ts +8 -2
  42. package/src/model/DeploymentModel.ts +1 -1
  43. package/src/model/LikeC4Model.ts +146 -7
  44. package/src/model/index.ts +8 -0
  45. package/src/model/types.ts +1 -8
  46. package/src/model/utils.ts +66 -0
  47. package/src/model/view/LikeC4ViewModel.ts +62 -7
  48. package/src/model/view/LikeC4ViewsFolder.ts +151 -0
  49. package/src/theme/__test__/theme-index.ts +29 -0
  50. package/src/theme/index.ts +49 -3
  51. package/src/types/model-spec.ts +4 -0
  52. package/src/utils/compare-natural.ts +14 -12
  53. package/src/utils/index.ts +1 -0
  54. package/src/utils/iterable/first.ts +48 -0
  55. package/src/utils/iterable/index.ts +1 -0
  56. package/dist/shared/{core.Br7Fab9l.mjs → core.BajmN8zR.mjs} +6 -6
@@ -1,7 +1,7 @@
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.SciGxb--.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, 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.Ddua-wiI.mjs';
5
5
  import { N as NonEmptyArray, K as KeysOf } from '../shared/core.DuSLYTG6.mjs';
6
6
  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
7
  import { a as Aux, S as SpecAux, A as Any } from '../shared/core.DAj3LuFH.mjs';
@@ -1,18 +1,18 @@
1
- import { i, l, d, c as computeLikeC4Model } from '../shared/core.PqNe5WxQ.mjs';
1
+ import { i, l, d, c as computeLikeC4Model } from '../shared/core.RnUJywKk.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, t as n$1, _ as _stage, c as isDeployedInstance, F as FqnRef } from '../shared/core.BajmN8zR.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.rpF8esVq.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.B1ZN723l.mjs';
12
12
  import { i as invariant } from '../shared/core.D4npX2q8.mjs';
13
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';
14
+ import '../shared/core.CQS11dNK.mjs';
15
+ import '../shared/core.C1GV0WWV.mjs';
16
16
  import '../shared/core.B0oEIXqd.mjs';
17
17
  import 'rehype-raw';
18
18
  import 'rehype-sanitize';
@@ -23,12 +23,13 @@ import 'remark-rehype';
23
23
  import 'unified';
24
24
  import 'mdast-util-from-markdown';
25
25
  import 'mdast-util-to-string';
26
- import '../shared/core.BTnf14gD.mjs';
26
+ import '../shared/core.Y3j3s-oq.mjs';
27
27
  import '../shared/core.BgvIuGGU.mjs';
28
28
  import '../shared/core.BoyJPEen.mjs';
29
- import '../shared/core.CtKXPqN_.mjs';
29
+ import '../shared/core.HUONfQfd.mjs';
30
+ import '../shared/core.BpJu1RrF.mjs';
30
31
  import '../shared/core.Btl47GOn.mjs';
31
- import '../shared/core.BMCb0wJI.mjs';
32
+ import '../shared/core.yaRvRnMW.mjs';
32
33
  import '../shared/core.DcS-0zys.mjs';
33
34
  import '../shared/core.DsMrjY2q.mjs';
34
35
 
@@ -1,6 +1,6 @@
1
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';
2
+ import { g as LikeC4Model } from '../shared/core.SciGxb--.mjs';
3
+ import { n as ParsedLikeC4ModelData, C as ComputedLikeC4ModelData, al as ParsedView, ao as ComputedView } from '../shared/core.Ddua-wiI.mjs';
4
4
  import 'type-fest';
5
5
  import '../shared/core.DuSLYTG6.mjs';
6
6
  import '../shared/core.668kXpZq.mjs';
@@ -1,19 +1,19 @@
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.RnUJywKk.mjs';
2
+ export { c as computeLikeC4Model, a as computeParsedModelData, b as computeView, u as unsafeComputeView } from '../shared/core.RnUJywKk.mjs';
3
+ import { i as i$1 } from '../shared/core.CQS11dNK.mjs';
4
+ import { r } from '../shared/core.rpF8esVq.mjs';
5
+ import { h as isExtendsElementView, f as isElementView } from '../shared/core.B1ZN723l.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
18
  import '../shared/core.D56nCp7e.mjs';
19
19
  import '../shared/core.B0oEIXqd.mjs';
@@ -26,10 +26,11 @@ import 'remark-rehype';
26
26
  import 'unified';
27
27
  import 'mdast-util-from-markdown';
28
28
  import 'mdast-util-to-string';
29
- import '../shared/core.Br7Fab9l.mjs';
29
+ import '../shared/core.BajmN8zR.mjs';
30
30
  import '../shared/core.zLlww-07.mjs';
31
+ import '../shared/core.BpJu1RrF.mjs';
31
32
  import '../shared/core.Btl47GOn.mjs';
32
- import '../shared/core.BMCb0wJI.mjs';
33
+ import '../shared/core.yaRvRnMW.mjs';
33
34
  import '../shared/core.DcS-0zys.mjs';
34
35
  import '../shared/core.DsMrjY2q.mjs';
35
36
 
@@ -1,10 +1,10 @@
1
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';
2
+ import { E as ElementModel, R as RelationshipModel, g as LikeC4Model } from '../../shared/core.SciGxb--.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.Ddua-wiI.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
@@ -3,10 +3,10 @@ export { BiMap, DefaultWeakMap, LinkedList, MultiMap, Queue, Stack, commonHead,
3
3
  export { D as DefaultMap } from './shared/core.CywrQs86.mjs';
4
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';
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 { 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.Ddua-wiI.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,26 @@
1
1
  export { ElementColors, RelationshipColors, computeColorValues, defaultTheme } from './theme/index.mjs';
2
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';
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.BajmN8zR.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.B1ZN723l.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 { 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';
7
+ export { D as DefaultMap } from './shared/core.yaRvRnMW.mjs';
8
+ export { S as Stack, c as commonHead, o as objectHash } from './shared/core.HUONfQfd.mjs';
9
9
  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';
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.DQj9iv_y.mjs';
11
11
  export { g as getOrCreate } from './shared/core.DcS-0zys.mjs';
12
12
  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
13
  export { i as ifilter } from './shared/core.BH9nN-_I.mjs';
14
14
  export { i as ifind, a as ihead } from './shared/core.DsMrjY2q.mjs';
15
+ export { ifirst, ireduce } from './utils/iterable/index.mjs';
15
16
  export { i as iflat, a as isIterable, b as iunique } from './shared/core.8KM0D6va.mjs';
16
17
  export { i as imap, t as toArray, a as toSet } from './shared/core.Btl47GOn.mjs';
17
- export { ireduce } from './utils/iterable/index.mjs';
18
18
  export { i as isome } from './shared/core.BoyJPEen.mjs';
19
19
  export { a as markdownToHtml, b as markdownToText, m as memoizeProp } from './shared/core.B0oEIXqd.mjs';
20
+ import './shared/core.BpJu1RrF.mjs';
21
+ import './shared/core.DbRvwARP.mjs';
20
22
  import './shared/core.zLlww-07.mjs';
21
23
  import './shared/core.BgvIuGGU.mjs';
22
- import './shared/core.DbRvwARP.mjs';
23
24
  import './shared/core.ByrmCl9I.mjs';
24
25
  import 'rehype-raw';
25
26
  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';
1
+ export { C as Connection } from '../../../shared/core.72IoI17N.mjs';
2
+ export { D as DeploymentConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.NBNeVyag.mjs';
3
+ import '../../../shared/core.SciGxb--.mjs';
4
4
  import '../../../shared/core.DAj3LuFH.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.Ddua-wiI.mjs';
10
10
  import '../../../shared/core.CzdwsPmY.mjs';
@@ -1,6 +1,6 @@
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.CQS11dNK.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';
@@ -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.72IoI17N.mjs';
2
+ export { D as DeploymentConnectionModel, f as deployment } from '../../shared/core.NBNeVyag.mjs';
3
+ export { C as ConnectionModel, f as model } from '../../shared/core.DhTO8rgm.mjs';
4
4
  import { I as IterableContainer, R as ReorderedArray } from '../../shared/core.CF82MWyh.mjs';
5
- import '../../shared/core.DrS4Bf4y.mjs';
5
+ import '../../shared/core.SciGxb--.mjs';
6
6
  import '../../shared/core.DAj3LuFH.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.Ddua-wiI.mjs';
12
12
  import '../../shared/core.CzdwsPmY.mjs';
13
13
 
14
14
  /**
@@ -1,7 +1,7 @@
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.CQS11dNK.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';
@@ -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';
1
+ export { C as Connection } from '../../../shared/core.72IoI17N.mjs';
2
+ export { C as ConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.DhTO8rgm.mjs';
3
+ import '../../../shared/core.SciGxb--.mjs';
4
4
  import '../../../shared/core.DAj3LuFH.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.Ddua-wiI.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';
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.SciGxb--.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.SciGxb--.mjs';
3
3
  import { A as Any } from '../shared/core.DAj3LuFH.mjs';
4
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';
5
+ export { C as Connection } from '../shared/core.72IoI17N.mjs';
6
+ export { C as ConnectionModel, f as modelConnection } from '../shared/core.DhTO8rgm.mjs';
7
+ export { D as DeploymentConnectionModel, f as deploymentConnection } from '../shared/core.NBNeVyag.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 { z as AuxFromDump, A as AuxFromLikeC4ModelData, R as RichText, a as RichTextEmpty, b as RichTextOrEmpty } from '../shared/core.Ddua-wiI.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,17 @@
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';
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.rpF8esVq.mjs';
2
+ export { c as DeployedInstanceModel, D as DeploymentConnectionModel, e as DeploymentNodeModel, g as DeploymentRelationModel, R as RelationshipsAccum, d as deploymentConnection } from '../shared/core.CQS11dNK.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
5
  export { R as RichText } from '../shared/core.D56nCp7e.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.BajmN8zR.mjs';
14
15
  import '../shared/core.BgvIuGGU.mjs';
15
16
  import '../shared/core.B0oEIXqd.mjs';
16
17
  import 'rehype-raw';
@@ -24,5 +25,4 @@ import 'mdast-util-from-markdown';
24
25
  import 'mdast-util-to-string';
25
26
  import '../shared/core.BH9nN-_I.mjs';
26
27
  import '../shared/core.DsMrjY2q.mjs';
27
- import '../shared/core.CpwrZi3D.mjs';
28
28
  import '../shared/core.BoyJPEen.mjs';
@@ -1,4 +1,4 @@
1
- import { E as ElementModel, e as DeploymentElementModel } from './core.DrS4Bf4y.mjs';
1
+ import { E as ElementModel, e as DeploymentElementModel } from './core.SciGxb--.mjs';
2
2
  import { A as Any } from './core.DAj3LuFH.mjs';
3
3
  import { F as Fqn } from './core.668kXpZq.mjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { F as FqnRef, q as isStepEdgeId } from './core.Br7Fab9l.mjs';
1
+ import { F as FqnRef, q as isStepEdgeId } from './core.BajmN8zR.mjs';
2
2
  import { n } from './core.D56nCp7e.mjs';
3
3
 
4
4
  function o(r){return Array.isArray(r)}
@@ -0,0 +1,5 @@
1
+ import { u as u$1 } from './core.DbRvwARP.mjs';
2
+
3
+ function k(...n){return u$1(u,n)}function u(n,e){if(n===e||Object.is(n,e))return true;if(typeof n!="object"||typeof e!="object"||n===null||e===null||Object.getPrototypeOf(n)!==Object.getPrototypeOf(e))return false;if(Array.isArray(n))return l(n,e);if(n instanceof Map)return a(n,e);if(n instanceof Set)return c(n,e);if(n instanceof Date)return n.getTime()===e.getTime();if(n instanceof RegExp)return n.toString()===e.toString();if(Object.keys(n).length!==Object.keys(e).length)return false;for(let[r,t]of Object.entries(n))if(!(r in e)||!u(t,e[r]))return false;return true}function l(n,e){if(n.length!==e.length)return false;for(let[r,t]of n.entries())if(!u(t,e[r]))return false;return true}function a(n,e){if(n.size!==e.size)return false;for(let[r,t]of n.entries())if(!e.has(r)||!u(t,e.get(r)))return false;return true}function c(n,e){if(n.size!==e.size)return false;let r=[...e];for(let t of n){let o=false;for(let[s,f]of r.entries())if(u(t,f)){o=true,r.splice(s,1);break}if(!o)return false}return true}
4
+
5
+ export { k };
@@ -1,4 +1,4 @@
1
- import { i as isAncestor } from './core.C_C-3c1S.mjs';
1
+ import { i as isAncestor } from './core.DQj9iv_y.mjs';
2
2
 
3
3
  var Connection;
4
4
  ((Connection2) => {
@@ -1,6 +1,6 @@
1
- import { c as customInspectSymbol } from './core.C80Z37Eu.mjs';
1
+ import { c as customInspectSymbol } from './core.C1GV0WWV.mjs';
2
2
  import { a as intersection, d as difference, u as union, b as stringHash, e as equals } from './core.CpwrZi3D.mjs';
3
- import { C, t as s, g as hierarchyLevel, d as commonAncestor, k as isSameHierarchy } from './core.C_C-3c1S.mjs';
3
+ import { C, t as s, g as hierarchyLevel, d as commonAncestor, k as isSameHierarchy } from './core.DQj9iv_y.mjs';
4
4
  import { u } from './core.DbRvwARP.mjs';
5
5
  import { b as DefaultShapeSize, R as RichText, n as n$1, D as DefaultThemeColor, e as DefaultLineStyle, a as DefaultElementShape } from './core.D56nCp7e.mjs';
6
6
  import { a as nonNullable, i as invariant } from './core.D4npX2q8.mjs';
@@ -92,10 +92,8 @@ function compareNaturalHierarchically(separator = ".") {
92
92
  if (!b) return 1;
93
93
  const aParts = a.split(separator);
94
94
  const bParts = b.split(separator);
95
- if (aParts.length !== bParts.length) {
96
- return aParts.length - bParts.length;
97
- }
98
- for (let i = 0; i < aParts.length; i++) {
95
+ const minLength = Math.min(aParts.length, bParts.length);
96
+ for (let i = 0; i < minLength; i++) {
99
97
  const aPart = aParts[i];
100
98
  const bPart = bParts[i];
101
99
  const comparison = compare(aPart, bPart);
@@ -103,7 +101,7 @@ function compareNaturalHierarchically(separator = ".") {
103
101
  return comparison;
104
102
  }
105
103
  }
106
- return 0;
104
+ return aParts.length - bParts.length;
107
105
  };
108
106
  }
109
107
 
@@ -847,8 +847,11 @@ type DeploymentRelation<A extends Any = Unknown> = DeploymentRelationship<A>;
847
847
  */
848
848
  interface ElementSpecification {
849
849
  tags?: Tag$1[];
850
+ title?: string;
851
+ description?: MarkdownOrString;
850
852
  technology?: string;
851
853
  notation?: string;
854
+ links?: NonEmptyArray<Link>;
852
855
  style: {
853
856
  shape?: ElementShape;
854
857
  icon?: Icon;
@@ -1,5 +1,5 @@
1
- import { C as Connection, c as customInspectSymbol } from './core.D3xEWj5B.mjs';
2
- import { E as ElementModel, R as RelationshipModel } from './core.DrS4Bf4y.mjs';
1
+ import { C as Connection, c as customInspectSymbol } from './core.72IoI17N.mjs';
2
+ import { E as ElementModel, R as RelationshipModel } from './core.SciGxb--.mjs';
3
3
  import { A as Any, U as Unknown, B as EdgeId } from './core.DAj3LuFH.mjs';
4
4
 
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { r as getDefaultExportFromCjs, C } from './core.C_C-3c1S.mjs';
1
+ import { r as getDefaultExportFromCjs, C } from './core.DQj9iv_y.mjs';
2
2
  import { u as u$1 } from './core.DbRvwARP.mjs';
3
3
  import { m } from './core.ByrmCl9I.mjs';
4
4
  import { l } from './core.8KM0D6va.mjs';
@@ -1,5 +1,5 @@
1
- import { C as Connection, c as customInspectSymbol } from './core.D3xEWj5B.mjs';
2
- import { e as DeploymentElementModel, i as RelationshipsAccum, D as DeploymentNodeModel, R as RelationshipModel, b as DeploymentRelationModel } from './core.DrS4Bf4y.mjs';
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
3
  import { A as Any, B as EdgeId } from './core.DAj3LuFH.mjs';
4
4
  import { I as IteratorLike } from './core.DuSLYTG6.mjs';
5
5