@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.
- package/dist/builder/index.d.mts +2 -2
- package/dist/builder/index.mjs +11 -10
- package/dist/compute-view/index.d.mts +2 -2
- package/dist/compute-view/index.mjs +12 -11
- package/dist/compute-view/relationships-view/index.d.mts +2 -2
- package/dist/compute-view/relationships-view/index.mjs +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +9 -8
- package/dist/model/connection/deployment/index.d.mts +4 -4
- package/dist/model/connection/deployment/index.mjs +3 -3
- package/dist/model/connection/index.d.mts +5 -5
- package/dist/model/connection/index.mjs +4 -4
- package/dist/model/connection/model/index.d.mts +4 -4
- package/dist/model/connection/model/index.mjs +3 -3
- package/dist/model/index.d.mts +31 -7
- package/dist/model/index.mjs +9 -9
- package/dist/shared/{core.D3xEWj5B.d.mts → core.72IoI17N.d.mts} +1 -1
- package/dist/shared/{core.DXRAwwDB.mjs → core.B1ZN723l.mjs} +1 -1
- package/dist/shared/core.BpJu1RrF.mjs +5 -0
- package/dist/shared/{core.C80Z37Eu.mjs → core.C1GV0WWV.mjs} +1 -1
- package/dist/shared/{core.D5qVzkws.mjs → core.CQS11dNK.mjs} +2 -2
- package/dist/shared/{core.C_C-3c1S.mjs → core.DQj9iv_y.mjs} +3 -5
- package/dist/shared/{core.IWLie-Ma.d.mts → core.Ddua-wiI.d.mts} +3 -0
- package/dist/shared/{core.CJSFKrYf.d.mts → core.DhTO8rgm.d.mts} +2 -2
- package/dist/shared/{core.CtKXPqN_.mjs → core.HUONfQfd.mjs} +1 -1
- package/dist/shared/{core.Di7__sMg.d.mts → core.NBNeVyag.d.mts} +2 -2
- package/dist/shared/{core.PqNe5WxQ.mjs → core.RnUJywKk.mjs} +94 -92
- package/dist/shared/{core.DrS4Bf4y.d.mts → core.SciGxb--.d.mts} +183 -8
- package/dist/shared/{core.BTnf14gD.mjs → core.Y3j3s-oq.mjs} +2 -2
- package/dist/shared/{core.XptQjhMA.mjs → core.b2BzqGz0.mjs} +2 -2
- package/dist/shared/{core.4SpVCM9m.mjs → core.rpF8esVq.mjs} +354 -28
- package/dist/shared/{core.BMCb0wJI.mjs → core.yaRvRnMW.mjs} +1 -1
- package/dist/theme/index.mjs +33 -3
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.mjs +2 -2
- package/dist/utils/index.d.mts +6 -8
- package/dist/utils/index.mjs +5 -5
- package/dist/utils/iterable/index.d.mts +18 -1
- package/dist/utils/iterable/index.mjs +22 -2
- package/package.json +6 -5
- package/src/compute-view/element-view/predicates/relation-direct.ts +8 -2
- package/src/model/DeploymentModel.ts +1 -1
- package/src/model/LikeC4Model.ts +146 -7
- package/src/model/index.ts +8 -0
- package/src/model/types.ts +1 -8
- package/src/model/utils.ts +66 -0
- package/src/model/view/LikeC4ViewModel.ts +62 -7
- package/src/model/view/LikeC4ViewsFolder.ts +151 -0
- package/src/theme/__test__/theme-index.ts +29 -0
- package/src/theme/index.ts +49 -3
- package/src/types/model-spec.ts +4 -0
- package/src/utils/compare-natural.ts +14 -12
- package/src/utils/index.ts +1 -0
- package/src/utils/iterable/first.ts +48 -0
- package/src/utils/iterable/index.ts +1 -0
- package/dist/shared/{core.Br7Fab9l.mjs → core.BajmN8zR.mjs} +6 -6
package/dist/builder/index.d.mts
CHANGED
|
@@ -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.
|
|
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.
|
|
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';
|
package/dist/builder/index.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { i, l, d, c as computeLikeC4Model } from '../shared/core.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
15
|
-
import '../shared/core.
|
|
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.
|
|
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.
|
|
29
|
+
import '../shared/core.HUONfQfd.mjs';
|
|
30
|
+
import '../shared/core.BpJu1RrF.mjs';
|
|
30
31
|
import '../shared/core.Btl47GOn.mjs';
|
|
31
|
-
import '../shared/core.
|
|
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.
|
|
3
|
-
import { n as ParsedLikeC4ModelData, C as ComputedLikeC4ModelData, al as ParsedView, ao as ComputedView } from '../shared/core.
|
|
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.
|
|
2
|
-
export { c as computeLikeC4Model, a as computeParsedModelData, b as computeView, u as unsafeComputeView } from '../shared/core.
|
|
3
|
-
import { i as i$1 } from '../shared/core.
|
|
4
|
-
import { r } from '../shared/core.
|
|
5
|
-
import { h as isExtendsElementView, f as isElementView } from '../shared/core.
|
|
6
|
-
import { o as isNonEmptyArray } from '../shared/core.
|
|
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.
|
|
11
|
-
import '../shared/core.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
2
|
-
import { D as DefaultMap } from '../../shared/core.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
7
|
-
export { D as DefaultMap } from './shared/core.
|
|
8
|
-
export { S as Stack, c as commonHead, o as objectHash } from './shared/core.
|
|
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.
|
|
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.
|
|
2
|
-
export { D as DeploymentConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.
|
|
3
|
-
import '../../../shared/core.
|
|
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.
|
|
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.
|
|
2
|
-
export { D as DeploymentConnectionModel, f as findConnection, a as findConnectionsBetween, b as findConnectionsWithin } from '../../../shared/core.
|
|
3
|
-
import '../../../shared/core.
|
|
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.
|
|
2
|
-
export { D as DeploymentConnectionModel, f as deployment } from '../../shared/core.
|
|
3
|
-
export { C as ConnectionModel, f as model } from '../../shared/core.
|
|
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.
|
|
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.
|
|
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.
|
|
2
|
-
export { D as DeploymentConnectionModel, d as deployment } from '../../shared/core.
|
|
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.
|
|
4
|
-
import '../../shared/core.
|
|
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.
|
|
2
|
-
export { C as ConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.
|
|
3
|
-
import '../../../shared/core.
|
|
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.
|
|
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.
|
|
2
|
-
export { C as ConnectionModel, q as findConnection, o as findConnectionsBetween, r as findConnectionsWithin } from '../../../shared/core.
|
|
3
|
-
import '../../../shared/core.
|
|
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';
|
package/dist/model/index.d.mts
CHANGED
|
@@ -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.
|
|
2
|
-
export { f as AnyLikeC4Model,
|
|
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.
|
|
6
|
-
export { C as ConnectionModel, f as modelConnection } from '../shared/core.
|
|
7
|
-
export { D as DeploymentConnectionModel, f as deploymentConnection } from '../shared/core.
|
|
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.
|
|
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
|
-
|
|
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 };
|
package/dist/model/index.mjs
CHANGED
|
@@ -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,
|
|
2
|
-
export { c as DeployedInstanceModel, D as DeploymentConnectionModel, e as DeploymentNodeModel, g as DeploymentRelationModel, R as RelationshipsAccum, d as deploymentConnection } from '../shared/core.
|
|
3
|
-
export { C as Connection } from '../shared/core.
|
|
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.
|
|
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.
|
|
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.
|
|
12
|
-
import '../shared/core.
|
|
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.
|
|
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
|
|
|
@@ -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,6 +1,6 @@
|
|
|
1
|
-
import { c as customInspectSymbol } from './core.
|
|
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.
|
|
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
|
-
|
|
96
|
-
|
|
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
|
|
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.
|
|
2
|
-
import { E as ElementModel, R as RelationshipModel } from './core.
|
|
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.
|
|
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.
|
|
2
|
-
import { e as DeploymentElementModel, i as RelationshipsAccum, D as DeploymentNodeModel, R as RelationshipModel, b as DeploymentRelationModel } from './core.
|
|
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
|
|