@likec4/core 1.28.1 → 1.29.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.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.CAcZ6_cP.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.CAcZ6_cP.mjs';
|
|
2
|
+
export { c as computeView, b as computeViews, u as unsafeComputeView } from '../shared/core.CAcZ6_cP.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.CAcZ6_cP.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.CAcZ6_cP.mjs';
|
|
@@ -7205,7 +7205,7 @@ class LikeC4Model {
|
|
|
7205
7205
|
this.#allTags.get(tag).add(el);
|
|
7206
7206
|
}
|
|
7207
7207
|
}
|
|
7208
|
-
for (const [projectId, elements] of t$1($model.imports)) {
|
|
7208
|
+
for (const [projectId, elements] of t$1($model.imports ?? {})) {
|
|
7209
7209
|
for (const element of sortParentsFirst(elements)) {
|
|
7210
7210
|
const el = this.addImportedElement(projectId, element);
|
|
7211
7211
|
for (const tag of el.tags) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@likec4/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.29.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://likec4.dev",
|
|
6
6
|
"author": "Denis Davydkov <denis@davydkov.com>",
|
|
@@ -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.
|
|
109
|
+
"@likec4/tsconfig": "1.29.0"
|
|
110
110
|
},
|
|
111
111
|
"scripts": {
|
|
112
112
|
"typecheck": "tsc --noEmit",
|
package/src/model/LikeC4Model.ts
CHANGED
|
@@ -123,7 +123,7 @@ export class LikeC4Model<M extends AnyAux = LikeC4Model.Any> {
|
|
|
123
123
|
this.#allTags.get(tag).add(el)
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
for (const [projectId, elements] of entries($model.imports)) {
|
|
126
|
+
for (const [projectId, elements] of entries($model.imports ?? {})) {
|
|
127
127
|
for (const element of sortParentsFirst(elements)) {
|
|
128
128
|
const el = this.addImportedElement(projectId as ProjectId, element)
|
|
129
129
|
for (const tag of el.tags) {
|