@likec4/core 1.38.1 → 1.39.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 (98) hide show
  1. package/dist/builder/index.d.mts +6 -3
  2. package/dist/builder/index.mjs +55 -111
  3. package/dist/compute-view/index.d.mts +6 -3
  4. package/dist/compute-view/index.mjs +33 -34
  5. package/dist/compute-view/relationships-view/index.d.mts +6 -3
  6. package/dist/compute-view/relationships-view/index.mjs +6 -6
  7. package/dist/index.d.mts +8 -5
  8. package/dist/index.mjs +15 -24
  9. package/dist/model/connection/deployment/index.d.mts +8 -5
  10. package/dist/model/connection/deployment/index.mjs +7 -9
  11. package/dist/model/connection/index.d.mts +10 -7
  12. package/dist/model/connection/index.mjs +10 -14
  13. package/dist/model/connection/model/index.d.mts +8 -5
  14. package/dist/model/connection/model/index.mjs +7 -10
  15. package/dist/model/index.d.mts +13 -10
  16. package/dist/model/index.mjs +17 -20
  17. package/dist/shared/core.20m8Um0g.d.mts +253 -0
  18. package/dist/shared/{core.CpwrZi3D.mjs → core.4u1dVmfX.mjs} +3 -5
  19. package/dist/shared/{core.Bp-IQmJR.mjs → core.BB6zA-UU.mjs} +9 -214
  20. package/dist/shared/{core.BH0VqY-7.mjs → core.BVNaR17u.mjs} +1 -1
  21. package/dist/shared/{core.BL_xjl90.mjs → core.Be1n9a0i.mjs} +4 -5
  22. package/dist/shared/{core.BoyJPEen.mjs → core.Be4Jy9Qx.mjs} +2 -2
  23. package/dist/shared/{core.H8NbNp2X.mjs → core.BqVo8LrH.mjs} +1 -1
  24. package/dist/shared/{core.DDoAFHHp.mjs → core.BuoXfSMj.mjs} +1 -1
  25. package/dist/shared/{core.DhDo8LAz.d.mts → core.C7pZp1nR.d.mts} +3 -3
  26. package/dist/shared/{core.BH9nN-_I.mjs → core.CCD1ID81.mjs} +3 -4
  27. package/dist/shared/{core.8KM0D6va.mjs → core.CNGyqkJh.mjs} +1 -9
  28. package/dist/shared/{core.B0oEIXqd.mjs → core.CUw_2J9j.mjs} +1 -1
  29. package/dist/shared/{core.C4Cn4Jy_.mjs → core.CWv15GLo.mjs} +11 -15
  30. package/dist/shared/{core.Bf5zKDK1.d.mts → core.CXCmvCws.d.mts} +2 -2
  31. package/dist/shared/core.CaT0SUUK.mjs +201 -0
  32. package/dist/shared/{core.Dtw1SBlz.d.mts → core.ClpXZ4Ib.d.mts} +3 -3
  33. package/dist/shared/{core.DC6zzxS0.mjs → core.CsbOakly.mjs} +13 -22
  34. package/dist/shared/{core.Btl47GOn.mjs → core.DLpidoWc.mjs} +2 -2
  35. package/dist/shared/{core.wwaSalox.d.mts → core.DM3vdkO_.d.mts} +1 -1
  36. package/dist/shared/core.DXhDWKFZ.d.mts +3 -0
  37. package/dist/shared/{core.O6FG0HF9.d.mts → core.DdzRtJ9d.d.mts} +1 -1
  38. package/dist/shared/{core.OUoo2ohq.mjs → core.DgttqsJc.mjs} +5 -9
  39. package/dist/shared/{core.Dhc0yIwT.mjs → core.DlG1xWt2.mjs} +3 -43
  40. package/dist/shared/core.DnRszv-l.mjs +11982 -0
  41. package/dist/shared/core.DoM6aM9N.mjs +7 -0
  42. package/dist/shared/{core.CzHQRs5x.mjs → core.DozSPE83.mjs} +43 -60
  43. package/dist/shared/{core.DsMrjY2q.mjs → core.GTgsmXS_.mjs} +2 -2
  44. package/dist/shared/core.ILwny7BV.mjs +38 -0
  45. package/dist/shared/core.PHwHXzkG.d.mts +213 -0
  46. package/dist/shared/core.T-eLZTW_.mjs +59 -0
  47. package/dist/shared/{core.CE_hG7EJ.d.mts → core.aWJgARyY.d.mts} +10 -486
  48. package/dist/shared/{core.BvlHvikl.d.mts → core.v1iEaXaR.d.mts} +5 -3
  49. package/dist/shared/core.yHe79zEl.mjs +98 -0
  50. package/dist/theme/index.d.mts +3 -126
  51. package/dist/theme/index.mjs +2 -3
  52. package/dist/types/_aux.d.mts +1 -1
  53. package/dist/types/expression-model.d.mts +191 -0
  54. package/dist/types/expression-model.mjs +112 -0
  55. package/dist/types/expression.d.mts +7 -0
  56. package/dist/types/expression.mjs +116 -0
  57. package/dist/types/fqnRef.d.mts +61 -0
  58. package/dist/types/fqnRef.mjs +46 -0
  59. package/dist/types/index.d.mts +6 -3
  60. package/dist/types/index.mjs +9 -9
  61. package/dist/types/scalar.mjs +2 -3
  62. package/dist/utils/index.d.mts +6 -428
  63. package/dist/utils/index.mjs +56 -15
  64. package/dist/utils/iterable/index.d.mts +2 -3
  65. package/dist/utils/iterable/index.mjs +9 -44
  66. package/package.json +8 -7
  67. package/src/index.ts +24 -1
  68. package/src/model/RelationModel.ts +1 -1
  69. package/src/model/index.ts +1 -1
  70. package/src/theme/element.ts +2 -2
  71. package/src/theme/relationships.ts +2 -2
  72. package/src/types/RichText.ts +1 -1
  73. package/src/types/expression-model.ts +3 -1
  74. package/src/types/expression.ts +3 -1
  75. package/src/types/fqnRef.ts +4 -1
  76. package/src/utils/guards.ts +0 -1
  77. package/src/utils/index.ts +0 -1
  78. package/dist/shared/core.BW8K1y6R.mjs +0 -278
  79. package/dist/shared/core.BgvIuGGU.mjs +0 -3
  80. package/dist/shared/core.BpJu1RrF.mjs +0 -5
  81. package/dist/shared/core.ByrmCl9I.mjs +0 -5
  82. package/dist/shared/core.CnIyafWn.mjs +0 -3
  83. package/dist/shared/core.DK6I-Nr7.mjs +0 -149
  84. package/dist/shared/core.DbRvwARP.mjs +0 -5
  85. package/dist/shared/core.Dw47t7nG.mjs +0 -5236
  86. package/dist/shared/core.zLlww-07.mjs +0 -3
  87. package/src/builder/__snapshots__/Builder-style1.spec.ts.snap +0 -425
  88. package/src/builder/__snapshots__/Builder-style2.compute-model.json5 +0 -318
  89. package/src/builder/__snapshots__/Builder-style2.spec.ts.snap +0 -221
  90. package/src/compute-view/deployment-view/__test__/TestHelper.ts +0 -249
  91. package/src/compute-view/deployment-view/__test__/fixture.ts +0 -238
  92. package/src/compute-view/dynamic-view/__test__/fixture.ts +0 -67
  93. package/src/compute-view/element-view/__test__/TestHelper.ts +0 -282
  94. package/src/compute-view/element-view/__test__/__snapshots__/legacy.spec.ts.snap +0 -458
  95. package/src/compute-view/element-view/__test__/fixture.ts +0 -749
  96. package/src/compute-view/utils/__snapshots__/sortNodes.spec.ts.snap +0 -113
  97. package/src/model/__test__/fixture.ts +0 -168
  98. package/src/theme/__test__/theme-index.ts +0 -29
@@ -1,12 +1,10 @@
1
- export { C as Connection } from '../../../shared/core.BH0VqY-7.mjs';
2
- export { D as DeploymentConnectionModel, f as findConnection, a as findConnectionsBetween, b as findConnectionsWithin } from '../../../shared/core.DC6zzxS0.mjs';
3
- import '../../../shared/core.OUoo2ohq.mjs';
4
- import '../../../shared/core.zLlww-07.mjs';
5
- import '../../../shared/core.CpwrZi3D.mjs';
6
- import '../../../shared/core.DbRvwARP.mjs';
1
+ export { C as Connection } from '../../../shared/core.BVNaR17u.mjs';
2
+ export { D as DeploymentConnectionModel, f as findConnection, a as findConnectionsBetween, b as findConnectionsWithin } from '../../../shared/core.CsbOakly.mjs';
3
+ import '../../../shared/core.DgttqsJc.mjs';
4
+ import 'remeda';
5
+ import '../../../shared/core.4u1dVmfX.mjs';
7
6
  import '../../../shared/core.D4npX2q8.mjs';
8
- import '../../../shared/core.CnIyafWn.mjs';
9
- import '../../../shared/core.B0oEIXqd.mjs';
7
+ import '../../../shared/core.CUw_2J9j.mjs';
10
8
  import 'rehype-raw';
11
9
  import 'rehype-sanitize';
12
10
  import 'rehype-stringify';
@@ -16,4 +14,4 @@ import 'remark-rehype';
16
14
  import 'unified';
17
15
  import 'mdast-util-from-markdown';
18
16
  import 'mdast-util-to-string';
19
- import '../../../shared/core.H8NbNp2X.mjs';
17
+ import '../../../shared/core.BqVo8LrH.mjs';
@@ -1,14 +1,17 @@
1
- import { C as Connection } from '../../shared/core.Bf5zKDK1.mjs';
2
- export { D as DeploymentConnectionModel, f as deployment } from '../../shared/core.DhDo8LAz.mjs';
3
- export { C as ConnectionModel, f as model } from '../../shared/core.Dtw1SBlz.mjs';
4
- import { I as IterableContainer, R as ReorderedArray } from '../../shared/core.wwaSalox.mjs';
5
- import '../../shared/core.BvlHvikl.mjs';
6
- import '../../shared/core.O6FG0HF9.mjs';
1
+ import { C as Connection } from '../../shared/core.CXCmvCws.mjs';
2
+ export { D as DeploymentConnectionModel, f as deployment } from '../../shared/core.C7pZp1nR.mjs';
3
+ export { C as ConnectionModel, f as model } from '../../shared/core.ClpXZ4Ib.mjs';
4
+ import { I as IterableContainer, R as ReorderedArray } from '../../shared/core.DM3vdkO_.mjs';
5
+ import '../../shared/core.v1iEaXaR.mjs';
6
+ import '../../shared/core.DdzRtJ9d.mjs';
7
7
  import 'type-fest';
8
8
  import '../../shared/core.DuSLYTG6.mjs';
9
9
  import '../../shared/core.DX-WYEPA.mjs';
10
10
  import '../../shared/core.CywrQs86.mjs';
11
- import '../../shared/core.CE_hG7EJ.mjs';
11
+ import '../../shared/core.aWJgARyY.mjs';
12
+ import '../../types/expression-model.mjs';
13
+ import '../../shared/core.20m8Um0g.mjs';
14
+ import '../../types/fqnRef.mjs';
12
15
  import '../../shared/core.CzdwsPmY.mjs';
13
16
 
14
17
  /**
@@ -1,13 +1,11 @@
1
- export { C as Connection } from '../../shared/core.BH0VqY-7.mjs';
2
- export { D as DeploymentConnectionModel, d as deployment } from '../../shared/core.DC6zzxS0.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.C4Cn4Jy_.mjs';
4
- import '../../shared/core.OUoo2ohq.mjs';
5
- import '../../shared/core.zLlww-07.mjs';
6
- import '../../shared/core.CpwrZi3D.mjs';
7
- import '../../shared/core.DbRvwARP.mjs';
1
+ export { C as Connection } from '../../shared/core.BVNaR17u.mjs';
2
+ export { D as DeploymentConnectionModel, d as deployment } from '../../shared/core.CsbOakly.mjs';
3
+ export { C as ConnectionModel, d as differenceConnections, c as findAscendingConnections, e as findDeepestNestedConnection, g as findDescendantConnections, h as hasSameSource, i as hasSameSourceTarget, j as hasSameTarget, k as isAnyInOut, l as isIncoming, m as isNestedConnection, n as isOutgoing, o as mergeConnections, q as model, s as sortConnectionsByBoundaryHierarchy, p as sortDeepestFirst } from '../../shared/core.CWv15GLo.mjs';
4
+ import '../../shared/core.DgttqsJc.mjs';
5
+ import 'remeda';
6
+ import '../../shared/core.4u1dVmfX.mjs';
8
7
  import '../../shared/core.D4npX2q8.mjs';
9
- import '../../shared/core.CnIyafWn.mjs';
10
- import '../../shared/core.B0oEIXqd.mjs';
8
+ import '../../shared/core.CUw_2J9j.mjs';
11
9
  import 'rehype-raw';
12
10
  import 'rehype-sanitize';
13
11
  import 'rehype-stringify';
@@ -17,8 +15,6 @@ import 'remark-rehype';
17
15
  import 'unified';
18
16
  import 'mdast-util-from-markdown';
19
17
  import 'mdast-util-to-string';
20
- import '../../shared/core.H8NbNp2X.mjs';
21
- import '../../shared/core.BgvIuGGU.mjs';
22
- import '../../shared/core.ByrmCl9I.mjs';
23
- import '../../shared/core.BoyJPEen.mjs';
24
- import '../../shared/core.BH9nN-_I.mjs';
18
+ import '../../shared/core.BqVo8LrH.mjs';
19
+ import '../../shared/core.Be4Jy9Qx.mjs';
20
+ import '../../shared/core.CCD1ID81.mjs';
@@ -1,10 +1,13 @@
1
- export { C as Connection } from '../../../shared/core.Bf5zKDK1.mjs';
2
- export { C as ConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.Dtw1SBlz.mjs';
3
- import '../../../shared/core.BvlHvikl.mjs';
4
- import '../../../shared/core.O6FG0HF9.mjs';
1
+ export { C as Connection } from '../../../shared/core.CXCmvCws.mjs';
2
+ export { C as ConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.ClpXZ4Ib.mjs';
3
+ import '../../../shared/core.v1iEaXaR.mjs';
4
+ import '../../../shared/core.DdzRtJ9d.mjs';
5
5
  import 'type-fest';
6
6
  import '../../../shared/core.DuSLYTG6.mjs';
7
7
  import '../../../shared/core.DX-WYEPA.mjs';
8
8
  import '../../../shared/core.CywrQs86.mjs';
9
- import '../../../shared/core.CE_hG7EJ.mjs';
9
+ import '../../../shared/core.aWJgARyY.mjs';
10
+ import '../../../types/expression-model.mjs';
11
+ import '../../../shared/core.20m8Um0g.mjs';
12
+ import '../../../types/fqnRef.mjs';
10
13
  import '../../../shared/core.CzdwsPmY.mjs';
@@ -1,11 +1,8 @@
1
- export { C as Connection } from '../../../shared/core.BH0VqY-7.mjs';
2
- export { C as ConnectionModel, q as findConnection, o as findConnectionsBetween, r as findConnectionsWithin } from '../../../shared/core.C4Cn4Jy_.mjs';
3
- import '../../../shared/core.OUoo2ohq.mjs';
4
- import '../../../shared/core.zLlww-07.mjs';
5
- import '../../../shared/core.BgvIuGGU.mjs';
6
- import '../../../shared/core.CpwrZi3D.mjs';
7
- import '../../../shared/core.DbRvwARP.mjs';
1
+ export { C as Connection } from '../../../shared/core.BVNaR17u.mjs';
2
+ export { C as ConnectionModel, f as findConnection, a as findConnectionsBetween, b as findConnectionsWithin } from '../../../shared/core.CWv15GLo.mjs';
3
+ import '../../../shared/core.DgttqsJc.mjs';
4
+ import 'remeda';
5
+ import '../../../shared/core.4u1dVmfX.mjs';
8
6
  import '../../../shared/core.D4npX2q8.mjs';
9
- import '../../../shared/core.ByrmCl9I.mjs';
10
- import '../../../shared/core.BoyJPEen.mjs';
11
- import '../../../shared/core.BH9nN-_I.mjs';
7
+ import '../../../shared/core.Be4Jy9Qx.mjs';
8
+ import '../../../shared/core.CCD1ID81.mjs';
@@ -1,18 +1,21 @@
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.BvlHvikl.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.BvlHvikl.mjs';
3
- import { A as Any } from '../shared/core.O6FG0HF9.mjs';
4
- export { a as Aux, S as SpecAux, _ as aux } from '../shared/core.O6FG0HF9.mjs';
5
- export { C as Connection } from '../shared/core.Bf5zKDK1.mjs';
6
- export { C as ConnectionModel, f as modelConnection } from '../shared/core.Dtw1SBlz.mjs';
7
- export { D as DeploymentConnectionModel, f as deploymentConnection } from '../shared/core.DhDo8LAz.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.v1iEaXaR.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.v1iEaXaR.mjs';
3
+ import { A as Any } from '../shared/core.DdzRtJ9d.mjs';
4
+ export { a as Aux, S as SpecAux, _ as aux } from '../shared/core.DdzRtJ9d.mjs';
5
+ export { C as Connection } from '../shared/core.CXCmvCws.mjs';
6
+ export { C as ConnectionModel, f as modelConnection } from '../shared/core.ClpXZ4Ib.mjs';
7
+ export { D as DeploymentConnectionModel, f as deploymentConnection } from '../shared/core.C7pZp1nR.mjs';
8
8
  export { differenceConnections, findAscendingConnections, findDeepestNestedConnection, findDescendantConnections, hasSameSource, hasSameSourceTarget, hasSameTarget, isAnyInOut, isIncoming, isNestedConnection, isOutgoing, mergeConnections, sortConnectionsByBoundaryHierarchy, sortDeepestFirst } from './connection/index.mjs';
9
- export { H as AuxFromDump, A as AuxFromLikeC4ModelData, R as RichText, a as RichTextEmpty, b as RichTextOrEmpty } from '../shared/core.CE_hG7EJ.mjs';
9
+ export { u as AuxFromDump, A as AuxFromLikeC4ModelData, R as RichText, a as RichTextEmpty, b as RichTextOrEmpty } from '../shared/core.aWJgARyY.mjs';
10
10
  import '../shared/core.DX-WYEPA.mjs';
11
11
  import 'type-fest';
12
12
  import '../shared/core.CywrQs86.mjs';
13
13
  import '../shared/core.DuSLYTG6.mjs';
14
14
  import '../shared/core.CzdwsPmY.mjs';
15
- import '../shared/core.wwaSalox.mjs';
15
+ import '../shared/core.20m8Um0g.mjs';
16
+ import '../types/fqnRef.mjs';
17
+ import '../shared/core.DM3vdkO_.mjs';
18
+ import '../types/expression-model.mjs';
16
19
 
17
20
  type AnyModel<A extends Any> = DeploymentNodeModel<A> | DeployedInstanceModel<A> | DeploymentRelationModel<A> | AnyRelationshipModel<A> | NestedElementOfDeployedInstanceModel<A> | ElementModel<A> | RelationshipModel<A> | LikeC4ViewModel<A> | NodeModel<A> | EdgeModel<A>;
18
21
  declare function isDeploymentNodeModel<M extends Any>(model: AnyModel<M>): model is DeploymentNodeModel<M>;
@@ -51,4 +54,4 @@ declare const getViewFolderPath: (title: string) => string | null;
51
54
  */
52
55
  declare const extractViewTitleFromPath: (title: string) => string;
53
56
 
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 };
57
+ export { Any, Any as AnyAux, AnyRelationshipModel, 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,21 +1,17 @@
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.CzHQRs5x.mjs';
2
- export { c as DeployedInstanceModel, D as DeploymentConnectionModel, e as DeploymentNodeModel, g as DeploymentRelationModel, R as RelationshipsAccum, d as deploymentConnection } from '../shared/core.DC6zzxS0.mjs';
3
- export { C as Connection } from '../shared/core.BH0VqY-7.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.C4Cn4Jy_.mjs';
5
- export { R as RichText } from '../shared/core.H8NbNp2X.mjs';
6
- import '../shared/core.DbRvwARP.mjs';
7
- import '../shared/core.ByrmCl9I.mjs';
8
- import '../shared/core.CpwrZi3D.mjs';
9
- import '../shared/core.D4npX2q8.mjs';
10
- import '../shared/core.OUoo2ohq.mjs';
11
- import '../shared/core.zLlww-07.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.DozSPE83.mjs';
2
+ export { c as DeployedInstanceModel, D as DeploymentConnectionModel, e as DeploymentNodeModel, g as DeploymentRelationModel, R as RelationshipsAccum, d as deploymentConnection } from '../shared/core.CsbOakly.mjs';
3
+ export { C as Connection } from '../shared/core.BVNaR17u.mjs';
4
+ export { C as ConnectionModel, d as differenceConnections, c as findAscendingConnections, e as findDeepestNestedConnection, g as findDescendantConnections, h as hasSameSource, i as hasSameSourceTarget, j as hasSameTarget, k as isAnyInOut, l as isIncoming, m as isNestedConnection, n as isOutgoing, o as mergeConnections, q as modelConnection, s as sortConnectionsByBoundaryHierarchy, p as sortDeepestFirst } from '../shared/core.CWv15GLo.mjs';
5
+ export { R as RichText } from '../shared/core.BqVo8LrH.mjs';
6
+ import 'remeda';
7
+ import '../shared/core.DgttqsJc.mjs';
12
8
  import '../shared/core.DcS-0zys.mjs';
13
- import '../shared/core.DDoAFHHp.mjs';
14
- import '../shared/core.DK6I-Nr7.mjs';
15
- import '../shared/core.BL_xjl90.mjs';
16
- import '../shared/core.CnIyafWn.mjs';
17
- import '../shared/core.BgvIuGGU.mjs';
18
- import '../shared/core.B0oEIXqd.mjs';
9
+ import '../shared/core.BuoXfSMj.mjs';
10
+ import '../shared/core.D4npX2q8.mjs';
11
+ import '../types/fqnRef.mjs';
12
+ import '../shared/core.Be1n9a0i.mjs';
13
+ import '../shared/core.yHe79zEl.mjs';
14
+ import '../shared/core.CUw_2J9j.mjs';
19
15
  import 'rehype-raw';
20
16
  import 'rehype-sanitize';
21
17
  import 'rehype-stringify';
@@ -25,6 +21,7 @@ import 'remark-rehype';
25
21
  import 'unified';
26
22
  import 'mdast-util-from-markdown';
27
23
  import 'mdast-util-to-string';
28
- import '../shared/core.BH9nN-_I.mjs';
29
- import '../shared/core.DsMrjY2q.mjs';
30
- import '../shared/core.BoyJPEen.mjs';
24
+ import '../shared/core.CCD1ID81.mjs';
25
+ import '../shared/core.GTgsmXS_.mjs';
26
+ import '../shared/core.4u1dVmfX.mjs';
27
+ import '../shared/core.Be4Jy9Qx.mjs';
@@ -0,0 +1,253 @@
1
+ import { A as Any, T as Tag, k as AllKinds, l as Tags, g as StrictViewId, h as ElementKind } from './core.DdzRtJ9d.mjs';
2
+ import { N as NonEmptyArray, E as ExclusiveUnion } from './core.DuSLYTG6.mjs';
3
+ import { FqnRef } from '../types/fqnRef.mjs';
4
+ import { M as MarkdownOrString, I as Icon } from './core.DX-WYEPA.mjs';
5
+ import { i as Color, R as RelationshipLineType, f as RelationshipArrowType, c as ElementShape, b as BorderStyle, a as ShapeSize } from './core.CzdwsPmY.mjs';
6
+
7
+ type EqualOperator<V> = {
8
+ eq: V;
9
+ neq?: never;
10
+ } | {
11
+ eq?: never;
12
+ neq: V;
13
+ };
14
+ type AllNever = {
15
+ not?: never;
16
+ and?: never;
17
+ or?: never;
18
+ tag?: never;
19
+ kind?: never;
20
+ participant?: never;
21
+ operator?: never;
22
+ };
23
+ type TagEqual<A extends Any> = Omit<AllNever, 'tag'> & {
24
+ tag: EqualOperator<Tag<A>> | Tag<A>;
25
+ };
26
+ declare function isTagEqual<A extends Any>(operator: WhereOperator<A>): operator is TagEqual<A>;
27
+ type KindEqual<A extends Any> = Omit<AllNever, 'kind'> & {
28
+ kind: EqualOperator<AllKinds<A>> | AllKinds<A>;
29
+ };
30
+ declare function isKindEqual<A extends Any>(operator: WhereOperator<A>): operator is KindEqual<A>;
31
+ type Participant = 'source' | 'target';
32
+ type ParticipantOperator<A extends Any> = Omit<AllNever, 'participant' | 'operator'> & {
33
+ participant: Participant;
34
+ operator: KindEqual<A> | TagEqual<A>;
35
+ };
36
+ declare function isParticipantOperator<A extends Any>(operator: WhereOperator<A>): operator is ParticipantOperator<A>;
37
+ type NotOperator<A extends Any> = Omit<AllNever, 'not'> & {
38
+ not: WhereOperator<A>;
39
+ };
40
+ declare function isNotOperator<A extends Any>(operator: WhereOperator<A>): operator is NotOperator<A>;
41
+ type AndOperator<A extends Any> = Omit<AllNever, 'and'> & {
42
+ and: NonEmptyArray<WhereOperator<A>>;
43
+ };
44
+ declare function isAndOperator<A extends Any>(operator: WhereOperator<A>): operator is AndOperator<A>;
45
+ type OrOperator<A extends Any> = Omit<AllNever, 'or'> & {
46
+ or: NonEmptyArray<WhereOperator<A>>;
47
+ };
48
+ declare function isOrOperator<A extends Any>(operator: WhereOperator<A>): operator is OrOperator<A>;
49
+ type WhereOperator<A extends Any = Any> = TagEqual<A> | KindEqual<A> | ParticipantOperator<A> | NotOperator<A> | AndOperator<A> | OrOperator<A>;
50
+ type Filterable<A extends Any> = {
51
+ tags?: Tags<A> | null | undefined;
52
+ kind?: AllKinds<A> | null | undefined;
53
+ source?: Filterable<A>;
54
+ target?: Filterable<A>;
55
+ };
56
+ type OperatorPredicate<A extends Any> = (value: Filterable<A>) => boolean;
57
+ declare function whereOperatorAsPredicate<A extends Any>(operator: WhereOperator<A>): OperatorPredicate<A>;
58
+
59
+ type AnyAux = Any;
60
+ type PredicateSelector = 'children' | 'expanded' | 'descendants';
61
+ declare namespace FqnExpr {
62
+ type Wildcard = {
63
+ wildcard: true;
64
+ };
65
+ function isWildcard<A extends AnyAux>(expr: Expression<A>): expr is FqnExpr.Wildcard;
66
+ interface ModelRef<M extends AnyAux = AnyAux> {
67
+ ref: FqnRef.ModelRef<M>;
68
+ selector?: PredicateSelector;
69
+ }
70
+ function isModelRef<A extends AnyAux>(ref: Expression<A>): ref is FqnExpr.ModelRef<A>;
71
+ interface DeploymentRef<A extends AnyAux = AnyAux> {
72
+ ref: FqnRef.DeploymentRef<A>;
73
+ selector?: PredicateSelector;
74
+ }
75
+ function isDeploymentRef<A extends AnyAux>(expr: Expression<A>): expr is FqnExpr.DeploymentRef<A>;
76
+ interface ElementKindExpr<A extends AnyAux = AnyAux> {
77
+ elementKind: ElementKind<A>;
78
+ isEqual: boolean;
79
+ }
80
+ function isElementKindExpr<A extends AnyAux>(expr: Expression<A>): expr is ElementKindExpr<A>;
81
+ interface ElementTagExpr<A extends AnyAux = AnyAux> {
82
+ elementTag: Tag<A>;
83
+ isEqual: boolean;
84
+ }
85
+ function isElementTagExpr<A extends AnyAux>(expr: Expression<A>): expr is ElementTagExpr<A>;
86
+ type NonWildcard<A extends AnyAux = AnyAux> = ExclusiveUnion<{
87
+ ModelRef: ModelRef<A>;
88
+ DeploymentRef: DeploymentRef<A>;
89
+ ElementKind: ElementKindExpr<A>;
90
+ ElementTag: ElementTagExpr<A>;
91
+ }>;
92
+ interface Where<A extends AnyAux = AnyAux> {
93
+ where: {
94
+ expr: ExclusiveUnion<{
95
+ Wildcard: Wildcard;
96
+ ModelRef: ModelRef<A>;
97
+ DeploymentRef: DeploymentRef<A>;
98
+ ElementKind: ElementKindExpr<A>;
99
+ ElementTag: ElementTagExpr<A>;
100
+ }>;
101
+ condition: WhereOperator<A>;
102
+ };
103
+ }
104
+ function isWhere<A extends AnyAux>(expr: Expression<A>): expr is FqnExpr.Where<A>;
105
+ interface Custom<A extends AnyAux = AnyAux> {
106
+ custom: {
107
+ expr: OrWhere<A>;
108
+ title?: string;
109
+ description?: MarkdownOrString;
110
+ technology?: string;
111
+ notation?: string;
112
+ shape?: ElementShape;
113
+ color?: Color;
114
+ icon?: Icon;
115
+ border?: BorderStyle;
116
+ opacity?: number;
117
+ navigateTo?: StrictViewId<A>;
118
+ multiple?: boolean;
119
+ size?: ShapeSize;
120
+ padding?: ShapeSize;
121
+ textSize?: ShapeSize;
122
+ };
123
+ }
124
+ function isCustom<A extends AnyAux>(expr: Expression<A>): expr is Custom<A>;
125
+ function is<A extends AnyAux>(expr: Expression<A>): expr is FqnExpr<A>;
126
+ type OrWhere<A extends AnyAux = AnyAux> = ExclusiveUnion<{
127
+ Wildcard: FqnExpr.Wildcard;
128
+ ModelRef: FqnExpr.ModelRef<A>;
129
+ DeploymentRef: FqnExpr.DeploymentRef<A>;
130
+ ElementKind: ElementKindExpr<A>;
131
+ ElementTag: ElementTagExpr<A>;
132
+ Where: FqnExpr.Where<A>;
133
+ }>;
134
+ type Any<A extends AnyAux = AnyAux> = ExclusiveUnion<{
135
+ Wildcard: Wildcard;
136
+ ModelRef: ModelRef<A>;
137
+ DeploymentRef: DeploymentRef<A>;
138
+ ElementKind: ElementKindExpr<A>;
139
+ ElementTag: ElementTagExpr<A>;
140
+ Where: Where<A>;
141
+ Custom: Custom<A>;
142
+ }>;
143
+ function unwrap<A extends AnyAux>(expr: FqnExpr.Any<A>): Wildcard | ModelRef<A> | DeploymentRef<A> | ElementKindExpr<A> | ElementTagExpr<A>;
144
+ }
145
+ type FqnExpr<A extends AnyAux = AnyAux> = ExclusiveUnion<{
146
+ Wildcard: FqnExpr.Wildcard;
147
+ ModelRef: FqnExpr.ModelRef<A>;
148
+ DeploymentRef: FqnExpr.DeploymentRef<A>;
149
+ ElementKind: FqnExpr.ElementKindExpr<A>;
150
+ ElementTag: FqnExpr.ElementTagExpr<A>;
151
+ }>;
152
+ declare namespace RelationExpr {
153
+ type Endpoint<A extends AnyAux = AnyAux> = FqnExpr.Where<A>['where']['expr'];
154
+ interface Direct<A extends AnyAux = AnyAux> {
155
+ source: Endpoint<A>;
156
+ target: Endpoint<A>;
157
+ isBidirectional?: boolean;
158
+ }
159
+ function isDirect<A extends AnyAux>(expr: Expression<A>): expr is RelationExpr.Direct<A>;
160
+ interface Incoming<A extends AnyAux = AnyAux> {
161
+ incoming: Endpoint<A>;
162
+ }
163
+ function isIncoming<A extends AnyAux>(expr: Expression<A>): expr is RelationExpr.Incoming<A>;
164
+ interface Outgoing<A extends AnyAux = AnyAux> {
165
+ outgoing: Endpoint<A>;
166
+ }
167
+ function isOutgoing<A extends AnyAux>(expr: Expression<A>): expr is RelationExpr.Outgoing<A>;
168
+ interface InOut<A extends AnyAux = AnyAux> {
169
+ inout: Endpoint<A>;
170
+ }
171
+ function isInOut<A extends AnyAux>(expr: Expression<A>): expr is RelationExpr.InOut<A>;
172
+ interface Where<A extends AnyAux = AnyAux> {
173
+ where: {
174
+ expr: ExclusiveUnion<{
175
+ Direct: RelationExpr.Direct<A>;
176
+ Incoming: RelationExpr.Incoming<A>;
177
+ Outgoing: RelationExpr.Outgoing<A>;
178
+ InOut: RelationExpr.InOut<A>;
179
+ }>;
180
+ condition: WhereOperator<A>;
181
+ };
182
+ }
183
+ function isWhere<A extends AnyAux>(expr: Expression<A>): expr is RelationExpr.Where<A>;
184
+ interface Custom<A extends AnyAux = AnyAux> {
185
+ customRelation: {
186
+ expr: OrWhere<A>;
187
+ title?: string;
188
+ description?: string;
189
+ technology?: string;
190
+ notation?: string;
191
+ navigateTo?: StrictViewId<A>;
192
+ notes?: string;
193
+ color?: Color;
194
+ line?: RelationshipLineType;
195
+ head?: RelationshipArrowType;
196
+ tail?: RelationshipArrowType;
197
+ };
198
+ }
199
+ function isCustom<A extends AnyAux>(expr: Expression<A>): expr is Custom<A>;
200
+ function is<A extends AnyAux>(expr: Expression<A>): expr is RelationExpr<A>;
201
+ type OrWhere<A extends AnyAux = AnyAux> = ExclusiveUnion<{
202
+ Direct: Direct<A>;
203
+ Incoming: Incoming<A>;
204
+ Outgoing: Outgoing<A>;
205
+ InOut: InOut<A>;
206
+ Where: Where<A>;
207
+ }>;
208
+ type Any<A extends AnyAux = AnyAux> = ExclusiveUnion<{
209
+ Direct: Direct<A>;
210
+ Incoming: Incoming<A>;
211
+ Outgoing: Outgoing<A>;
212
+ InOut: InOut<A>;
213
+ Where: Where<A>;
214
+ Custom: Custom<A>;
215
+ }>;
216
+ function unwrap<A extends AnyAux>(expr: RelationExpr.Any<A>): Direct<A> | Incoming<A> | Outgoing<A> | InOut<A>;
217
+ }
218
+ type RelationExpr<A extends AnyAux = AnyAux> = ExclusiveUnion<{
219
+ Direct: RelationExpr.Direct<A>;
220
+ Incoming: RelationExpr.Incoming<A>;
221
+ Outgoing: RelationExpr.Outgoing<A>;
222
+ InOut: RelationExpr.InOut<A>;
223
+ }>;
224
+ /**
225
+ * Represents a version 2 expression which can be one of several types.
226
+ *
227
+ * @template D - The type for the deployment FQN, defaults to `Fqn`.
228
+ * @template M - The type for the model FQN, defaults to `Fqn`.
229
+ */
230
+ type Expression<A extends AnyAux = AnyAux> = ExclusiveUnion<{
231
+ Wildcard: FqnExpr.Wildcard;
232
+ ModelRef: FqnExpr.ModelRef<A>;
233
+ DeploymentRef: FqnExpr.DeploymentRef<A>;
234
+ ElementKind: FqnExpr.ElementKindExpr<A>;
235
+ ElementTag: FqnExpr.ElementTagExpr<A>;
236
+ Custom: FqnExpr.Custom<A>;
237
+ Direct: RelationExpr.Direct<A>;
238
+ Incoming: RelationExpr.Incoming<A>;
239
+ Outgoing: RelationExpr.Outgoing<A>;
240
+ InOut: RelationExpr.InOut<A>;
241
+ Where: Expression.Where<A>;
242
+ CustomRelation: RelationExpr.Custom<A>;
243
+ }>;
244
+ declare namespace Expression {
245
+ type Where<A extends AnyAux = AnyAux> = FqnExpr.Where<A> | RelationExpr.Where<A>;
246
+ function isWhere<A extends AnyAux>(expr: Expression<A>): expr is Expression.Where<A>;
247
+ function isRelationWhere<A extends AnyAux>(expr: Expression<A>): expr is RelationExpr.Where<A>;
248
+ function isFqnExprWhere<A extends AnyAux>(expr: Expression<A>): expr is FqnExpr.Where<A>;
249
+ function isFqnExpr<A extends AnyAux>(expr: Expression<A>): expr is FqnExpr.Any<A>;
250
+ function isRelation<A extends AnyAux>(expr: Expression<A>): expr is RelationExpr.Any<A>;
251
+ }
252
+
253
+ export { type AndOperator as A, Expression as E, FqnExpr as F, type KindEqual as K, type NotOperator as N, type OrOperator as O, type PredicateSelector as P, RelationExpr as R, type TagEqual as T, type WhereOperator as W, type EqualOperator as a, isKindEqual as b, type Participant as c, type ParticipantOperator as d, isParticipantOperator as e, isNotOperator as f, isAndOperator as g, isOrOperator as h, isTagEqual as i, type Filterable as j, type OperatorPredicate as k, whereOperatorAsPredicate as w };
@@ -1,8 +1,6 @@
1
- import { u } from './core.DbRvwARP.mjs';
1
+ import { hasAtLeast } from 'remeda';
2
2
  import { i as invariant } from './core.D4npX2q8.mjs';
3
3
 
4
- function i(...e){return u(n,e)}var n=(e,r)=>e.length>=r;
5
-
6
4
  var set = {};
7
5
 
8
6
  /**
@@ -387,7 +385,7 @@ function intersection(first, ...sets) {
387
385
  if (first.size === 0) {
388
386
  return result;
389
387
  }
390
- let other = i(sets, 2) ? setExports.intersection(...sets) : sets[0];
388
+ let other = hasAtLeast(sets, 2) ? setExports.intersection(...sets) : sets[0];
391
389
  if (other.size === 0) {
392
390
  return result;
393
391
  }
@@ -444,4 +442,4 @@ function stringHash(str) {
444
442
  return (hash >>> 0).toString(36);
445
443
  }
446
444
 
447
- export { intersection as a, stringHash as b, difference as d, equals as e, hasIntersection as h, i, symmetricDifference as s, union as u };
445
+ export { stringHash as a, difference as d, equals as e, hasIntersection as h, intersection as i, symmetricDifference as s, union as u };