@likec4/core 1.28.0 → 1.28.1
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.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as i, l, d, L as LikeC4Model } from '../shared/core.
|
|
1
|
+
import { a as i, l, d, L as LikeC4Model } from '../shared/core.w6BcP9z5.mjs';
|
|
2
2
|
import { m, l as l$1, i as i$1 } from '../shared/core.Cu-UdkSl.mjs';
|
|
3
3
|
import { f as t, n as nameFromFqn, g as isSameHierarchy, p as parentFqn, h as t$1 } from '../shared/core.CQXU9DF7.mjs';
|
|
4
4
|
import { o, M as ModelLayer, D as DefaultElementShape, b as DefaultThemeColor, n as n$1, c as DeploymentElement, d as isScopedElementView } from '../shared/core.DgfwjBtu.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { G as Graph, r, w as willCreateCycle, t as topologicalSortExports, i as i$1, a as i$2, l } from '../shared/core.
|
|
2
|
-
export { c as computeView, b as computeViews, u as unsafeComputeView } from '../shared/core.
|
|
1
|
+
import { G as Graph, r, w as willCreateCycle, t as topologicalSortExports, i as i$1, a as i$2, l } from '../shared/core.w6BcP9z5.mjs';
|
|
2
|
+
export { c as computeView, b as computeViews, u as unsafeComputeView } from '../shared/core.w6BcP9z5.mjs';
|
|
3
3
|
import { i as isExtendsElementView, a as isElementView } from '../shared/core.DgfwjBtu.mjs';
|
|
4
4
|
import { e as isNonEmptyArray } from '../shared/core.CQXU9DF7.mjs';
|
|
5
5
|
import { i, m } from '../shared/core.Cu-UdkSl.mjs';
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { i as invariant, n as nonNullable, a as nonexhaustive } from './shared/core.C-YXI-43.mjs';
|
|
2
|
-
export { C as Connection, e as ConnectionModel, D as DeployedInstanceModel, f as DeploymentConnectionModel, g as DeploymentNodeModel, h as DeploymentRelationModel, E as EdgeModel, j as ElementModel, k as LikeC4DeploymentModel, L as LikeC4Model, m as LikeC4ViewModel, N as NodeModel, R as RelationshipModel, c as computeView, b as computeViews, u as unsafeComputeView } from './shared/core.
|
|
2
|
+
export { C as Connection, e as ConnectionModel, D as DeployedInstanceModel, f as DeploymentConnectionModel, g as DeploymentNodeModel, h as DeploymentRelationModel, E as EdgeModel, j as ElementModel, k as LikeC4DeploymentModel, L as LikeC4Model, m as LikeC4ViewModel, N as NodeModel, R as RelationshipModel, c as computeView, b as computeViews, u as unsafeComputeView } from './shared/core.w6BcP9z5.mjs';
|
|
3
3
|
export { A as AsFqn, B as BorderStyles, C as ComputedNode, z as ComputedView, v as DefaultArrowType, D as DefaultElementShape, x as DefaultLineStyle, f as DefaultPaddingSize, y as DefaultRelationshipColor, g as DefaultShapeSize, h as DefaultTextSize, b as DefaultThemeColor, c as DeploymentElement, H as DiagramNode, E as ElementKind, j as ElementShapes, k as ExpressionV2, F as FqnExpr, l as FqnRef, G as GlobalFqn, M as ModelLayer, R as RelationExpr, I as extractStep, J as getBBoxCenter, K as getParallelStepsPrefix, m as isAndOperator, L as isAutoLayoutDirection, N as isDeploymentView, O as isDynamicView, P as isDynamicViewParallelSteps, a as isElementView, i as isExtendsElementView, e as isGlobalFqn, p as isKindEqual, q as isNotOperator, r as isOrOperator, t as isParticipantOperator, d as isScopedElementView, Q as isStepEdgeId, u as isTagEqual, S as isViewRuleAutoLayout, T as isViewRuleGlobalPredicateRef, U as isViewRuleGlobalStyle, V as isViewRuleGroup, W as isViewRulePredicate, X as isViewRuleStyle, s as splitGlobalFqn, Y as stepEdgeId, w as whereOperatorAsPredicate } from './shared/core.DgfwjBtu.mjs';
|
|
4
4
|
export { ThemeColors, isThemeColor } from './types/index.mjs';
|
|
5
5
|
export { BiMap, DefaultWeakMap, LinkedList, MultiMap, Queue, compareRelations, delay, ireduce } from './utils/index.mjs';
|
package/dist/model/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { C as Connection, e as ConnectionModel, D as DeployedInstanceModel, f as DeploymentConnectionModel, g as DeploymentNodeModel, h as DeploymentRelationModel, E as EdgeModel, j as ElementModel, k as LikeC4DeploymentModel, L as LikeC4Model, m as LikeC4ViewModel, N as NodeModel, R as RelationshipModel, n as deploymentConnection, o as differenceConnections, p as findAscendingConnections, q as findDeepestNestedConnection, s as findDescendantConnections, v as hasSameSource, x as hasSameSourceTarget, y as hasSameTarget, z as isAnyInOut, M as isDeployedInstance, O as isDeploymentNode, A as isIncoming, B as isNestedConnection, F as isOutgoing, H as mergeConnections, I as modelConnection, J as sortConnectionsByBoundaryHierarchy, K as sortDeepestFirst } from '../shared/core.
|
|
1
|
+
export { C as Connection, e as ConnectionModel, D as DeployedInstanceModel, f as DeploymentConnectionModel, g as DeploymentNodeModel, h as DeploymentRelationModel, E as EdgeModel, j as ElementModel, k as LikeC4DeploymentModel, L as LikeC4Model, m as LikeC4ViewModel, N as NodeModel, R as RelationshipModel, n as deploymentConnection, o as differenceConnections, p as findAscendingConnections, q as findDeepestNestedConnection, s as findDescendantConnections, v as hasSameSource, x as hasSameSourceTarget, y as hasSameTarget, z as isAnyInOut, M as isDeployedInstance, O as isDeploymentNode, A as isIncoming, B as isNestedConnection, F as isOutgoing, H as mergeConnections, I as modelConnection, J as sortConnectionsByBoundaryHierarchy, K as sortDeepestFirst } from '../shared/core.w6BcP9z5.mjs';
|
|
@@ -7207,7 +7207,10 @@ class LikeC4Model {
|
|
|
7207
7207
|
}
|
|
7208
7208
|
for (const [projectId, elements] of t$1($model.imports)) {
|
|
7209
7209
|
for (const element of sortParentsFirst(elements)) {
|
|
7210
|
-
this.addImportedElement(projectId, element);
|
|
7210
|
+
const el = this.addImportedElement(projectId, element);
|
|
7211
|
+
for (const tag of el.tags) {
|
|
7212
|
+
this.#allTags.get(tag).add(el);
|
|
7213
|
+
}
|
|
7211
7214
|
}
|
|
7212
7215
|
}
|
|
7213
7216
|
for (const relation of r$3($model.relations)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@likec4/core",
|
|
3
|
-
"version": "1.28.
|
|
3
|
+
"version": "1.28.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://likec4.dev",
|
|
6
6
|
"author": "Denis Davydkov <denis@davydkov.com>",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
90
|
"@dagrejs/dagre": "1.1.4",
|
|
91
|
-
"@mantine/colors-generator": "7.17.
|
|
91
|
+
"@mantine/colors-generator": "7.17.4",
|
|
92
92
|
"@types/natural-compare-lite": "^1.4.2",
|
|
93
93
|
"@types/object-hash": "^3.0.6",
|
|
94
94
|
"chroma-js": "^3.1.2",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"typescript": "^5.8.3",
|
|
107
107
|
"unbuild": "^3.5.0",
|
|
108
108
|
"vitest": "^3.1.1",
|
|
109
|
-
"@likec4/tsconfig": "1.28.
|
|
109
|
+
"@likec4/tsconfig": "1.28.1"
|
|
110
110
|
},
|
|
111
111
|
"scripts": {
|
|
112
112
|
"typecheck": "tsc --noEmit",
|
package/src/model/LikeC4Model.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { entries,
|
|
1
|
+
import { entries, mapValues, pipe, sort, values } from 'remeda'
|
|
2
2
|
import type { LiteralUnion } from 'type-fest'
|
|
3
3
|
import { computeView, unsafeComputeView } from '../compute-view'
|
|
4
4
|
import type { ComputeViewResult } from '../compute-view/compute-view'
|
|
@@ -125,7 +125,10 @@ export class LikeC4Model<M extends AnyAux = LikeC4Model.Any> {
|
|
|
125
125
|
}
|
|
126
126
|
for (const [projectId, elements] of entries($model.imports)) {
|
|
127
127
|
for (const element of sortParentsFirst(elements)) {
|
|
128
|
-
this.addImportedElement(projectId as ProjectId, element)
|
|
128
|
+
const el = this.addImportedElement(projectId as ProjectId, element)
|
|
129
|
+
for (const tag of el.tags) {
|
|
130
|
+
this.#allTags.get(tag).add(el)
|
|
131
|
+
}
|
|
129
132
|
}
|
|
130
133
|
}
|
|
131
134
|
for (const relation of values($model.relations)) {
|