@likec4/core 1.44.0 → 1.45.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 (51) hide show
  1. package/dist/builder/index.d.mts +14 -13
  2. package/dist/builder/index.mjs +29 -14
  3. package/dist/compute-view/index.d.mts +6 -6
  4. package/dist/compute-view/index.mjs +6 -5
  5. package/dist/compute-view/relationships-view/index.d.mts +6 -6
  6. package/dist/compute-view/relationships-view/index.mjs +2 -2
  7. package/dist/index.d.mts +25 -5
  8. package/dist/index.mjs +2 -1
  9. package/dist/model/connection/deployment/index.d.mts +8 -8
  10. package/dist/model/connection/deployment/index.mjs +2 -2
  11. package/dist/model/connection/index.d.mts +9 -9
  12. package/dist/model/connection/index.mjs +3 -3
  13. package/dist/model/connection/model/index.d.mts +8 -8
  14. package/dist/model/connection/model/index.mjs +2 -2
  15. package/dist/model/index.d.mts +11 -25
  16. package/dist/model/index.mjs +4 -4
  17. package/dist/shared/{core.BnOetIAR.d.mts → core.0zAQeenX.d.mts} +2 -2
  18. package/dist/shared/{core.Bv3cd-jC.mjs → core.3ZhnKAlZ.mjs} +9 -5
  19. package/dist/shared/{core.CDOKQTW6.d.mts → core.B73yxfPi.d.mts} +2 -2
  20. package/dist/shared/{core.DTJYgLXI.d.mts → core.BGFjN3nv.d.mts} +3 -3
  21. package/dist/shared/core.BhNcrwzK.mjs +7 -0
  22. package/dist/shared/core.BkVA6gjl.mjs +5 -0
  23. package/dist/shared/{core.bKIs4oDO.mjs → core.CQPEY2wQ.mjs} +5 -4
  24. package/dist/shared/{core.h4TqqSC0.mjs → core.CRI1AjFj.mjs} +67 -1172
  25. package/dist/shared/{core.23WeDKcI.mjs → core.CWwSgOzF.mjs} +224 -224
  26. package/dist/shared/{core.6VsRBhGY.mjs → core.CdNCAwq7.mjs} +1 -1
  27. package/dist/shared/{core.BnDbAOR2.d.mts → core.Cog93roC.d.mts} +2 -2
  28. package/dist/shared/core.Coi_LOUZ.mjs +7 -0
  29. package/dist/shared/{core.DjAM-S6a.d.mts → core.CpURdWRM.d.mts} +14 -13
  30. package/dist/shared/{core.DFCHU59b.mjs → core.DViDmiAu.mjs} +2 -2
  31. package/dist/shared/{core.CHwVhuc9.mjs → core.D_f4F48-.mjs} +10 -13
  32. package/dist/shared/{core.CbsSAn1j.mjs → core.DbfO90vF.mjs} +1 -12
  33. package/dist/shared/{core.CKNmSm2W.d.mts → core.DnCLhN8C.d.mts} +7 -14
  34. package/dist/shared/{core.C0Ye2OCr.mjs → core.DqlrMlsf.mjs} +1 -1
  35. package/dist/shared/{core.8mmHFn9g.d.mts → core.Dvh1H0T2.d.mts} +2 -2
  36. package/dist/shared/{core.BMtVqKl7.d.mts → core.mUnpvHtA.d.mts} +11 -5
  37. package/dist/shared/core.oSV6SRfk.mjs +13 -0
  38. package/dist/shared/{core.WwMWeiFL.d.mts → core.t3qfsVvn.d.mts} +3 -3
  39. package/dist/shared/core.vzLtp8i3.mjs +1282 -0
  40. package/dist/styles/index.d.mts +5 -5
  41. package/dist/styles/index.mjs +3 -3
  42. package/dist/types/_aux.d.mts +1 -1
  43. package/dist/types/expression-model.d.mts +2 -2
  44. package/dist/types/expression.d.mts +2 -2
  45. package/dist/types/fqnRef.d.mts +1 -1
  46. package/dist/types/index.d.mts +7 -7
  47. package/dist/types/index.mjs +23 -9
  48. package/dist/utils/index.mjs +5 -4
  49. package/package.json +8 -8
  50. package/dist/shared/core.B9BjmjuH.mjs +0 -9
  51. package/dist/shared/core.OHD4KXm9.mjs +0 -5
@@ -1,10 +1,10 @@
1
1
  import { T as Tag } from '../shared/core.DX-WYEPA.mjs';
2
- import { T as TagSpecification } from '../shared/core.BMtVqKl7.mjs';
3
- import { C as ColorLiteral, T as ThemeColorValues, L as LikeC4StyleDefaults, U as ElementColorValues, V as RelationshipColorValues } from '../shared/core.BnOetIAR.mjs';
4
- export { s as BorderStyle, B as BorderStyles, Q as Color, J as CustomColor, I as CustomColorDefinitions, u as ElementShape, t as ElementShapes, H as HexColor, a as LikeC4StylesConfig, b as LikeC4Theme, y as RelationshipArrowType, x as RelationshipArrowTypes, v as RelationshipLineType, q as ShapeSize, o as Size, S as Sizes, r as SpacingSize, p as TextSize, D as ThemeColor, z as ThemeColors, M as isCustomColor, G as isThemeColor } from '../shared/core.BnOetIAR.mjs';
5
- export { L as LikeC4Styles } from '../shared/core.8mmHFn9g.mjs';
2
+ import { T as TagSpecification } from '../shared/core.mUnpvHtA.mjs';
3
+ import { G as ColorLiteral, c as ThemeColorValues, b as LikeC4StyleDefaults, E as ElementColorValues, R as RelationshipColorValues } from '../shared/core.0zAQeenX.mjs';
4
+ export { B as BorderStyle, z as BorderStyles, C as Color, U as CustomColor, Q as CustomColorDefinitions, h as ElementShape, D as ElementShapes, H as HexColor, L as LikeC4StylesConfig, a as LikeC4Theme, g as RelationshipArrowType, I as RelationshipArrowTypes, f as RelationshipLineType, e as ShapeSize, y as Size, x as Sizes, S as SpacingSize, d as TextSize, T as ThemeColor, J as ThemeColors, V as isCustomColor, M as isThemeColor } from '../shared/core.0zAQeenX.mjs';
5
+ export { L as LikeC4Styles } from '../shared/core.Dvh1H0T2.mjs';
6
6
  import 'type-fest';
7
- import '../shared/core.CDOKQTW6.mjs';
7
+ import '../shared/core.B73yxfPi.mjs';
8
8
  import '../shared/core.DB0Ue5Wx.mjs';
9
9
  import '../types/fqnRef.mjs';
10
10
  import '../types/expression-model.mjs';
@@ -1,10 +1,10 @@
1
1
  import { t as t$5 } from '../shared/core.q10OP9oJ.mjs';
2
- import { t as t$3 } from '../shared/core.OHD4KXm9.mjs';
3
- import { t as t$2, e as e$1, a as t$4 } from '../shared/core.B9BjmjuH.mjs';
2
+ import { t as t$3, c as compareNatural } from '../shared/core.3ZhnKAlZ.mjs';
3
+ import { t as t$2, e as e$1 } from '../shared/core.Coi_LOUZ.mjs';
4
4
  import { e } from '../shared/core.BKlholso.mjs';
5
5
  import { t as t$6 } from '../shared/core.CbT8JVYL.mjs';
6
6
  import { t as t$1 } from '../shared/core.BsSXS-_R.mjs';
7
- import { c as compareNatural } from '../shared/core.Bv3cd-jC.mjs';
7
+ import { t as t$4 } from '../shared/core.BkVA6gjl.mjs';
8
8
  import { a as nonNullable } from '../shared/core.D4npX2q8.mjs';
9
9
  export { B as BorderStyles, E as ElementShapes, L as LikeC4Styles, R as RelationshipArrowTypes, S as Sizes, T as ThemeColors, c as computeColorValues, b as defaultTheme, f as isCustomColor, i as isThemeColor, s as styleDefaults } from '../shared/core.DEieYfbG.mjs';
10
10
 
@@ -1,4 +1,4 @@
1
1
  import 'type-fest';
2
2
  import '../shared/core.DB0Ue5Wx.mjs';
3
- export { q as AllKinds, A as Any, A as AnyAux, a as AnyComputed, b as AnyLayouted, $ as AnyOnStage, c as AnyParsed, Z as AnySpec, d as Aux, x as DeploymentFqn, D as DeploymentId, y as DeploymentKind, z as EdgeId, o as ElementId, n as ElementKind, F as Fqn, O as LooseDeploymentId, ae as LooseDeploymentKind, K as LooseElementId, ad as LooseElementKind, L as LooseLiteral, af as LooseRelationKind, I as LooseTag, ac as LooseTags, X as LooseViewId, H as Metadata, C as MetadataKey, B as Never, N as NodeId, ab as OrString, a0 as PickByStage, P as ProjectId, J as RelationId, R as RelationKind, a4 as Spec, S as SpecAux, Q as Stage, x as StrictDeploymentFqn, a8 as StrictDeploymentKind, a7 as StrictElementKind, F as StrictFqn, a5 as StrictProjectId, a9 as StrictRelationKind, a6 as StrictTag, m as StrictViewId, T as Tag, r as Tags, U as Unknown, e as UnknownComputed, f as UnknownLayouted, g as UnknownParsed, V as ViewId, W as WithDescriptionAndTech, aa as WithLinks, v as WithMetadata, w as WithNotation, u as WithOptionalLinks, s as WithOptionalTags, G as WithTags, p as preferDescription, h as preferSummary, Y as setProject, a1 as setStage, t as toComputed, a3 as toLayouted, a2 as toParsed } from '../shared/core.CDOKQTW6.mjs';
3
+ export { q as AllKinds, A as Any, A as AnyAux, b as AnyComputed, c as AnyLayouted, $ as AnyOnStage, d as AnyParsed, Z as AnySpec, e as Aux, x as DeploymentFqn, D as DeploymentId, y as DeploymentKind, z as EdgeId, a as ElementId, E as ElementKind, F as Fqn, O as LooseDeploymentId, ae as LooseDeploymentKind, K as LooseElementId, ad as LooseElementKind, L as LooseLiteral, af as LooseRelationKind, I as LooseTag, ac as LooseTags, X as LooseViewId, H as Metadata, C as MetadataKey, B as Never, N as NodeId, ab as OrString, a0 as PickByStage, P as ProjectId, J as RelationId, R as RelationKind, a4 as Spec, f as SpecAux, Q as Stage, x as StrictDeploymentFqn, a8 as StrictDeploymentKind, a7 as StrictElementKind, F as StrictFqn, a5 as StrictProjectId, a9 as StrictRelationKind, a6 as StrictTag, S as StrictViewId, T as Tag, r as Tags, U as Unknown, g as UnknownComputed, h as UnknownLayouted, i as UnknownParsed, V as ViewId, W as WithDescriptionAndTech, aa as WithLinks, v as WithMetadata, w as WithNotation, u as WithOptionalLinks, s as WithOptionalTags, G as WithTags, p as preferDescription, j as preferSummary, Y as setProject, a1 as setStage, t as toComputed, a3 as toLayouted, a2 as toParsed } from '../shared/core.B73yxfPi.mjs';
4
4
  import '../shared/core.DX-WYEPA.mjs';
@@ -1,5 +1,5 @@
1
- import { W as WhereOperator, Q as Color, v as RelationshipLineType, y as RelationshipArrowType, P as PredicateSelector, u as ElementShape, s as BorderStyle, q as ShapeSize } from '../shared/core.BnOetIAR.mjs';
2
- import { A as Any, m as StrictViewId, n as ElementKind, T as Tag } from '../shared/core.CDOKQTW6.mjs';
1
+ import { W as WhereOperator, C as Color, f as RelationshipLineType, g as RelationshipArrowType, P as PredicateSelector, h as ElementShape, B as BorderStyle, e as ShapeSize } from '../shared/core.0zAQeenX.mjs';
2
+ import { A as Any, S as StrictViewId, E as ElementKind, T as Tag } from '../shared/core.B73yxfPi.mjs';
3
3
  import { E as ExclusiveUnion } from '../shared/core.DB0Ue5Wx.mjs';
4
4
  import { FqnRef } from './fqnRef.mjs';
5
5
  import { M as MarkdownOrString, I as Icon } from '../shared/core.DX-WYEPA.mjs';
@@ -1,5 +1,5 @@
1
- export { E as Expression, F as FqnExpr, P as PredicateSelector, R as RelationExpr } from '../shared/core.BnOetIAR.mjs';
2
- import '../shared/core.CDOKQTW6.mjs';
1
+ export { j as Expression, F as FqnExpr, P as PredicateSelector, i as RelationExpr } from '../shared/core.0zAQeenX.mjs';
2
+ import '../shared/core.B73yxfPi.mjs';
3
3
  import '../shared/core.DB0Ue5Wx.mjs';
4
4
  import './fqnRef.mjs';
5
5
  import '../shared/core.DX-WYEPA.mjs';
@@ -1,4 +1,4 @@
1
- import { A as Any, o as ElementId, P as ProjectId, F as Fqn, D as DeploymentId } from '../shared/core.CDOKQTW6.mjs';
1
+ import { A as Any, a as ElementId, P as ProjectId, F as Fqn, D as DeploymentId } from '../shared/core.B73yxfPi.mjs';
2
2
  import { E as ExclusiveUnion } from '../shared/core.DB0Ue5Wx.mjs';
3
3
  import 'type-fest';
4
4
  import '../shared/core.DX-WYEPA.mjs';
@@ -1,14 +1,14 @@
1
1
  import { N as NonEmptyArray } from '../shared/core.DB0Ue5Wx.mjs';
2
2
  export { C as Coalesce, E as ExclusiveUnion, I as IterableContainer, c as IteratorLike, K as KeysOf, L as Link, b as NTuple, a as NonEmptyReadonlyArray, P as Predicate, R as ReorderedArray, e as exact } from '../shared/core.DB0Ue5Wx.mjs';
3
- export { A as Any, A as AnyAux, a as AnyComputed, b as AnyLayouted, c as AnyParsed, d as Aux, E as ExtractOnStage, L as LooseLiteral, M as ModelStage, S as SpecAux, U as Unknown, e as UnknownComputed, f as UnknownLayouted, g as UnknownParsed, l as _layout, j as _stage, k as _type, _ as aux, i as isOnStage, p as preferDescription, h as preferSummary } from '../shared/core.CDOKQTW6.mjs';
4
- import { s as BorderStyle, u as ElementShape, D as ThemeColor } from '../shared/core.BnOetIAR.mjs';
5
- export { A as AndOperator, B as BorderStyles, Q as Color, C as ColorLiteral, J as CustomColor, I as CustomColorDefinitions, U as ElementColorValues, t as ElementShapes, c as EqualOperator, E as Expression, m as Filterable, F as FqnExpr, H as HexColor, K as KindEqual, L as LikeC4StyleDefaults, a as LikeC4StylesConfig, b as LikeC4Theme, N as NotOperator, n as OperatorPredicate, O as OrOperator, f as Participant, g as ParticipantOperator, P as PredicateSelector, R as RelationExpr, y as RelationshipArrowType, x as RelationshipArrowTypes, V as RelationshipColorValues, v as RelationshipLineType, q as ShapeSize, o as Size, S as Sizes, r as SpacingSize, d as TagEqual, p as TextSize, T as ThemeColorValues, z as ThemeColors, W as WhereOperator, k as isAndOperator, M as isCustomColor, e as isKindEqual, j as isNotOperator, l as isOrOperator, h as isParticipantOperator, i as isTagEqual, G as isThemeColor, w as whereOperatorAsPredicate } from '../shared/core.BnOetIAR.mjs';
3
+ export { A as Any, A as AnyAux, b as AnyComputed, c as AnyLayouted, d as AnyParsed, e as Aux, k as ExtractOnStage, L as LooseLiteral, M as ModelStage, f as SpecAux, U as Unknown, g as UnknownComputed, h as UnknownLayouted, i as UnknownParsed, o as _layout, m as _stage, n as _type, _ as aux, l as isOnStage, p as preferDescription, j as preferSummary } from '../shared/core.B73yxfPi.mjs';
4
+ import { B as BorderStyle, h as ElementShape, T as ThemeColor } from '../shared/core.0zAQeenX.mjs';
5
+ export { A as AndOperator, z as BorderStyles, C as Color, G as ColorLiteral, U as CustomColor, Q as CustomColorDefinitions, E as ElementColorValues, D as ElementShapes, k as EqualOperator, j as Expression, u as Filterable, F as FqnExpr, H as HexColor, K as KindEqual, b as LikeC4StyleDefaults, L as LikeC4StylesConfig, a as LikeC4Theme, N as NotOperator, v as OperatorPredicate, O as OrOperator, o as Participant, p as ParticipantOperator, P as PredicateSelector, i as RelationExpr, g as RelationshipArrowType, I as RelationshipArrowTypes, R as RelationshipColorValues, f as RelationshipLineType, e as ShapeSize, y as Size, x as Sizes, S as SpacingSize, l as TagEqual, d as TextSize, c as ThemeColorValues, J as ThemeColors, W as WhereOperator, s as isAndOperator, V as isCustomColor, n as isKindEqual, r as isNotOperator, t as isOrOperator, q as isParticipantOperator, m as isTagEqual, M as isThemeColor, w as whereOperatorAsPredicate } from '../shared/core.0zAQeenX.mjs';
6
6
  export { ModelExpression, ModelFqnExpr, ModelRelationExpr } from './expression-model.mjs';
7
7
  export { FqnRef } from './fqnRef.mjs';
8
- import { v as AutoLayoutDirection } from '../shared/core.BMtVqKl7.mjs';
9
- export { A as AbstractRelationship, q as AnyExcludePredicate, p as AnyIncludePredicate, r as AnyViewRuleStyle, B as BBox, H as BaseParsedViewProperties, F as BaseViewProperties, W as ComputedDeploymentView, Y as ComputedDynamicView, Q as ComputedEdge, U as ComputedElementView, O as ComputedNode, K as ComputedNodeStyle, Z as DynamicStep, $ as DynamicStepsParallel, _ as DynamicStepsSeries, a7 as DynamicViewDisplayVariant, a5 as DynamicViewIncludeRule, a6 as DynamicViewRule, a1 as DynamicViewStep, f as Element, i as ElementSpecification, E as ElementStyle, aa as ElementViewExcludePredicate, a9 as ElementViewIncludePredicate, ab as ElementViewPredicate, af as ElementViewRule, ac as ElementViewRuleGroup, ae as ElementViewRuleStyle, b as GlobalDynamicPredicates, G as GlobalPredicateId, a as GlobalPredicates, c as GlobalStyleID, d as GlobalStyles, o as LikeC4Project, n as LikeC4ProjectManualLayoutsConfig, l as LikeC4ProjectStyleDefaults, m as LikeC4ProjectStylesConfig, L as LikeC4ProjectTheme, M as ModelGlobals, h as ModelRelation, N as NodeNotation, a8 as ParsedDynamicView, ag as ParsedElementView, P as Point, R as RectBox, g as Relationship, k as RelationshipSpecification, S as Specification, T as TagSpecification, z as ViewAutoLayout, C as ViewManualLayout, x as ViewRuleAutoLayout, t as ViewRuleGlobalPredicateRef, V as ViewRuleGlobalStyle, D as ViewType, J as ViewWithHash, I as ViewWithNotation, X as XYPoint, e as ensureSizes, a0 as getParallelStepsPrefix, w as isAutoLayoutDirection, a2 as isDynamicStep, a3 as isDynamicStepsParallel, a4 as isDynamicStepsSeries, j as isTagColorSpecified, y as isViewRuleAutoLayout, u as isViewRuleGlobalPredicateRef, s as isViewRuleGlobalStyle, ad as isViewRuleGroup } from '../shared/core.BMtVqKl7.mjs';
10
- import { p as LayoutedView } from '../shared/core.CKNmSm2W.mjs';
11
- export { t as AnyView, n as AuxFromDump, A as AuxFromLikeC4ModelData, C as ComputedLikeC4ModelData, r as ComputedView, d as DeployedInstance, e as DeploymentElement, f as DeploymentElementRef, D as DeploymentNode, j as DeploymentRelation, h as DeploymentRelationship, Y as DeploymentViewExcludePredicate, X as DeploymentViewIncludePredicate, Z as DeploymentViewPredicate, $ as DeploymentViewRule, _ as DeploymentViewRuleStyle, J as DiagramEdge, U as DiagramEdgeDriftReason, I as DiagramNode, T as DiagramNodeDriftReason, K as LayoutType, N as LayoutedDeploymentView, O as LayoutedDynamicView, M as LayoutedElementView, L as LayoutedLikeC4ModelData, Q as LayoutedViewDriftReason, c as LikeC4ModelData, l as LikeC4ModelDump, o as LikeC4View, a0 as ParsedDeploymentView, P as ParsedLikeC4ModelData, o as ParsedView, s as ProcessedView, m as ProjectDump, R as RichText, a as RichTextEmpty, b as RichTextOrEmpty, k as SpecTypesFromDump, S as SpecificationDump, W as ViewManualLayoutSnapshot, V as ViewOnStage, v as ViewRule, w as ViewRulePredicate, u as ViewWithType, z as isComputedView, g as isDeployedInstance, i as isDeploymentNode, G as isDeploymentView, q as isDiagramView, H as isDynamicView, B as isElementView, F as isExtendsElementView, q as isLayoutedView, E as isScopedElementView, x as isViewRulePredicate, y as isViewRuleStyle } from '../shared/core.CKNmSm2W.mjs';
8
+ import { v as AutoLayoutDirection } from '../shared/core.mUnpvHtA.mjs';
9
+ export { A as AbstractRelationship, q as AnyExcludePredicate, p as AnyIncludePredicate, r as AnyViewRuleStyle, B as BBox, I as BaseParsedViewProperties, H as BaseViewProperties, W as ComputedDeploymentView, Y as ComputedDynamicView, Q as ComputedEdge, U as ComputedElementView, O as ComputedNode, C as ComputedNodeStyle, Z as DynamicStep, $ as DynamicStepsParallel, _ as DynamicStepsSeries, a7 as DynamicViewDisplayVariant, a5 as DynamicViewIncludeRule, a6 as DynamicViewRule, a1 as DynamicViewStep, f as Element, i as ElementSpecification, E as ElementStyle, aa as ElementViewExcludePredicate, a9 as ElementViewIncludePredicate, ab as ElementViewPredicate, af as ElementViewRule, ac as ElementViewRuleGroup, ae as ElementViewRuleStyle, b as GlobalDynamicPredicates, G as GlobalPredicateId, a as GlobalPredicates, c as GlobalStyleID, d as GlobalStyles, o as LikeC4Project, n as LikeC4ProjectManualLayoutsConfig, m as LikeC4ProjectStyleDefaults, L as LikeC4ProjectStylesConfig, l as LikeC4ProjectTheme, M as ModelGlobals, h as ModelRelation, N as NodeNotation, a8 as ParsedDynamicView, ag as ParsedElementView, P as Point, R as RectBox, g as Relationship, k as RelationshipSpecification, S as Specification, T as TagSpecification, z as ViewAutoLayout, D as ViewManualLayout, x as ViewRuleAutoLayout, t as ViewRuleGlobalPredicateRef, V as ViewRuleGlobalStyle, F as ViewType, K as ViewWithHash, J as ViewWithNotation, X as XYPoint, e as ensureSizes, a0 as getParallelStepsPrefix, w as isAutoLayoutDirection, a2 as isDynamicStep, a3 as isDynamicStepsParallel, a4 as isDynamicStepsSeries, j as isTagColorSpecified, y as isViewRuleAutoLayout, u as isViewRuleGlobalPredicateRef, s as isViewRuleGlobalStyle, ad as isViewRuleGroup } from '../shared/core.mUnpvHtA.mjs';
10
+ import { L as LayoutedView } from '../shared/core.DnCLhN8C.mjs';
11
+ export { t as AnyView, o as AuxFromDump, A as AuxFromLikeC4ModelData, C as ComputedLikeC4ModelData, r as ComputedView, e as DeployedInstance, f as DeploymentElement, g as DeploymentElementRef, D as DeploymentNode, k as DeploymentRelation, j as DeploymentRelationship, Y as DeploymentViewExcludePredicate, X as DeploymentViewIncludePredicate, Z as DeploymentViewPredicate, $ as DeploymentViewRule, _ as DeploymentViewRuleStyle, K as DiagramEdge, W as DiagramEdgeDriftReason, J as DiagramNode, U as DiagramNodeDriftReason, M as LayoutType, O as LayoutedDeploymentView, Q as LayoutedDynamicView, N as LayoutedElementView, c as LayoutedLikeC4ModelData, T as LayoutedViewDriftReason, d as LikeC4ModelData, m as LikeC4ModelDump, p as LikeC4View, a0 as ParsedDeploymentView, P as ParsedLikeC4ModelData, p as ParsedView, s as ProcessedView, n as ProjectDump, R as RichText, a as RichTextEmpty, b as RichTextOrEmpty, l as SpecTypesFromDump, S as SpecificationDump, V as ViewManualLayoutSnapshot, u as ViewOnStage, w as ViewRule, x as ViewRulePredicate, v as ViewWithType, B as isComputedView, h as isDeployedInstance, i as isDeploymentNode, H as isDeploymentView, q as isDiagramView, I as isDynamicView, E as isElementView, G as isExtendsElementView, q as isLayoutedView, F as isScopedElementView, y as isViewRulePredicate, z as isViewRuleStyle } from '../shared/core.DnCLhN8C.mjs';
12
12
  import { F as Fqn, D as DeploymentFqn } from '../shared/core.DX-WYEPA.mjs';
13
13
  export { A as AnyFqn, B as BuiltInIcon, b as DeploymentKind, j as EdgeId, E as ElementKind, 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.DX-WYEPA.mjs';
14
14
  import 'type-fest';
@@ -19,6 +19,19 @@ var BBox;
19
19
  };
20
20
  }
21
21
  BBox2.center = center;
22
+ function toPoints({ x, y, width, height }) {
23
+ return [
24
+ { x, y },
25
+ // Top left
26
+ { x: x + width, y },
27
+ // Top right
28
+ { x: x + width, y: y + height },
29
+ // Bottom right
30
+ { x, y: y + height }
31
+ // Bottom left
32
+ ];
33
+ }
34
+ BBox2.toPoints = toPoints;
22
35
  function fromPoints(points) {
23
36
  const { x1, y1, x2, y2 } = RectBox.fromPoints(points);
24
37
  return {
@@ -34,21 +47,22 @@ var BBox;
34
47
  if (boxes.length === 1) {
35
48
  return boxes[0];
36
49
  }
37
- let minX = Infinity;
38
- let minY = Infinity;
39
- let maxX = -Infinity;
40
- let maxY = -Infinity;
41
- for (const box of boxes) {
50
+ let minX = boxes[0].x;
51
+ let minY = boxes[0].y;
52
+ let maxX = boxes[0].x + boxes[0].width;
53
+ let maxY = boxes[0].y + boxes[0].height;
54
+ for (let i = 1; i < boxes.length; i++) {
55
+ const box = boxes[i];
42
56
  minX = Math.min(minX, box.x);
43
57
  minY = Math.min(minY, box.y);
44
58
  maxX = Math.max(maxX, box.x + box.width);
45
59
  maxY = Math.max(maxY, box.y + box.height);
46
60
  }
47
61
  return {
48
- x: minX,
49
- y: minY,
50
- width: maxX - minX,
51
- height: maxY - minY
62
+ x: Math.floor(minX),
63
+ y: Math.floor(minY),
64
+ width: Math.round(maxX - minX),
65
+ height: Math.round(maxY - minY)
52
66
  };
53
67
  }
54
68
  BBox2.merge = merge;
@@ -1,10 +1,11 @@
1
1
  export { i as invariant, a as nonNullable, n as nonexhaustive } from '../shared/core.D4npX2q8.mjs';
2
- export { S as Stack, c as commonHead, a as compareRelations, o as objectHash } from '../shared/core.DFCHU59b.mjs';
3
- export { c as compareNatural, a as compareNaturalHierarchically } from '../shared/core.Bv3cd-jC.mjs';
4
- export { a as ancestorsFqn, g as commonAncestor, j as compareByFqnHierarchically, k as compareFqnHierarchically, h as hasProp, l as hierarchyDistance, m as hierarchyLevel, i as isAncestor, q as isAnyOf, b as isDescendantOf, c as isNonEmptyArray, d as isSameHierarchy, e as isString, n as nameFromFqn, p as parentFqn, o as sortByFqnHierarchically, s as sortNaturalByFqn, f as sortParentsFirst } from '../shared/core.6VsRBhGY.mjs';
2
+ export { S as Stack, c as commonHead, a as compareRelations, o as objectHash } from '../shared/core.DViDmiAu.mjs';
3
+ export { c as compareNatural, b as compareNaturalHierarchically } from '../shared/core.3ZhnKAlZ.mjs';
4
+ export { a as ancestorsFqn, g as commonAncestor, j as compareByFqnHierarchically, k as compareFqnHierarchically, h as hasProp, l as hierarchyDistance, m as hierarchyLevel, i as isAncestor, q as isAnyOf, b as isDescendantOf, c as isNonEmptyArray, d as isSameHierarchy, e as isString, n as nameFromFqn, p as parentFqn, o as sortByFqnHierarchically, s as sortNaturalByFqn, f as sortParentsFirst } from '../shared/core.CdNCAwq7.mjs';
5
5
  export { g as getOrCreate } from '../shared/core.DcS-0zys.mjs';
6
6
  export { m as memoizeProp } from '../shared/core.BR4zXDH-.mjs';
7
- export { d as difference, e as equalsSet, i as intersection, a as stringHash, s as symmetricDifference, u as union } from '../shared/core.CbsSAn1j.mjs';
7
+ export { d as difference, e as equalsSet, i as intersection, s as symmetricDifference, u as union } from '../shared/core.DbfO90vF.mjs';
8
+ export { s as stringHash } from '../shared/core.oSV6SRfk.mjs';
8
9
  export { b as BiMap, d as DefaultWeakMap, l as LinkedList, m as MultiMap, q as Queue } from '../shared/core.DIE3F6sw.mjs';
9
10
  export { D as DefaultMap } from '../shared/core.BbE4y-yl.mjs';
10
11
  export { i as ifilter } from '../shared/core.DRJma0Ol.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likec4/core",
3
- "version": "1.44.0",
3
+ "version": "1.45.0",
4
4
  "license": "MIT",
5
5
  "homepage": "https://likec4.dev",
6
6
  "author": "Denis Davydkov <denis@davydkov.com>",
@@ -106,8 +106,8 @@
106
106
  },
107
107
  "devDependencies": {
108
108
  "@dagrejs/dagre": "1.1.5",
109
- "@mantine/colors-generator": "8.3.7",
110
- "@types/chroma-js": "^3.1.1",
109
+ "@mantine/colors-generator": "8.3.9",
110
+ "@types/chroma-js": "^3.1.2",
111
111
  "@types/extend": "3.0.4",
112
112
  "@types/hast": "3.0.4",
113
113
  "@types/mdast": "4.0.4",
@@ -128,7 +128,7 @@
128
128
  "natural-compare-lite": "^1.4.0",
129
129
  "object-hash": "^3.0.0",
130
130
  "obliterator": "^2.0.5",
131
- "oxlint": "1.28.0",
131
+ "oxlint": "1.29.0",
132
132
  "rehype-format": "5.0.1",
133
133
  "rehype-raw": "7.0.0",
134
134
  "rehype-sanitize": "^6.0.0",
@@ -137,13 +137,13 @@
137
137
  "remark-parse": "11.0.0",
138
138
  "remark-rehype": "11.1.2",
139
139
  "remeda": "^2.32.0",
140
- "turbo": "2.6.0",
140
+ "turbo": "2.6.1",
141
141
  "typescript": "5.9.3",
142
142
  "unbuild": "3.5.0",
143
143
  "unified": "11.0.5",
144
- "vitest": "4.0.8",
145
- "@likec4/tsconfig": "1.44.0",
146
- "@likec4/devops": "1.42.0"
144
+ "vitest": "4.0.13",
145
+ "@likec4/devops": "1.42.0",
146
+ "@likec4/tsconfig": "1.45.0"
147
147
  },
148
148
  "scripts": {
149
149
  "typecheck": "tsc -b --verbose",
@@ -1,9 +0,0 @@
1
- import { t as t$3 } from './core.BsSXS-_R.mjs';
2
-
3
- function t$2(...t){return t$3(Object.entries,t)}
4
-
5
- function e(e,...n){return typeof e==`string`||typeof e==`number`||typeof e==`symbol`?r=>t$1(r,e,...n):t$1(e,...n)}function t$1(e,...t){let n=e;for(let e of t){if(n==null)return;n=n[e];}return n}
6
-
7
- function t(...t){return t$3(n,t)}function n(e,t){let n=[...e];return n.sort(t),n}
8
-
9
- export { t as a, e, t$2 as t };
@@ -1,5 +0,0 @@
1
- const e={done:true,hasNext:false},t$1={done:false,hasNext:false},n$1=()=>e;
2
-
3
- function t(e,...t){let a=e,o=t.map(e=>`lazy`in e?r(e):void 0),s=0;for(;s<t.length;){if(o[s]===void 0||!i(a)){let e=t[s];a=e(a),s+=1;continue}let e=[];for(let n=s;n<t.length;n++){let t=o[n];if(t===void 0||(e.push(t),t.isSingle))break}let r=[];for(let t of a)if(n(t,r,e))break;let{isSingle:c}=e.at(-1);a=c?r[0]:r,s+=e.length;}return a}function n(t,r,i){if(i.length===0)return r.push(t),false;let a=t,o=t$1,s=false;for(let[e,t]of i.entries()){let{index:c,items:l}=t;if(l.push(a),o=t(a,c,l),t.index+=1,o.hasNext){if(o.hasMany??false){for(let t of o.next)if(n(t,r,i.slice(e+1)))return true;return s}a=o.next;}if(!o.hasNext)break;o.done&&(s=true);}return o.hasNext&&r.push(a),s}function r(e){let{lazy:t,lazyArgs:n}=e,r=t(...n);return Object.assign(r,{isSingle:t.single??false,index:0,items:[]})}function i(e){return typeof e==`string`||typeof e==`object`&&!!e&&Symbol.iterator in e}
4
-
5
- export { t$1 as a, n$1 as n, t };