@likec4/core 1.20.2 → 1.20.3

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.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const model_index = require('../shared/core.DxJ1KbOs.cjs');
3
+ const model_index = require('../shared/core.DRfrKNT6.cjs');
4
4
  const object_hash = require('../shared/core.FACQZmma.cjs');
5
5
  const view = require('../shared/core.uxHtIZaH.cjs');
6
6
  const chunkRAAYCPUM = require('../shared/core.CKYxnFEl.cjs');
@@ -1,4 +1,4 @@
1
- import { l, L as LikeC4Model, i, d } from '../shared/core.PYycpzvA.mjs';
1
+ import { l, L as LikeC4Model, i, d } from '../shared/core.BG1hfxpq.mjs';
2
2
  import { b as t, m, p as parentFqn, c as isSameHierarchy, n as nameFromFqn, a as i$1, l as l$1, d as t$1 } from '../shared/core.CCyhaU-4.mjs';
3
3
  import { b as isElementPredicateExpr, o, c as isScopedElementView, D as DeploymentElement, n as n$1, d as DefaultThemeColor, e as DefaultElementShape } from '../shared/core.0PxLtLpP.mjs';
4
4
  import { u, i as invariant } from '../shared/core.Bezy7K65.mjs';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const model_index = require('../shared/core.DxJ1KbOs.cjs');
3
+ const model_index = require('../shared/core.DRfrKNT6.cjs');
4
4
  const compute = require('../shared/core.Db_OTRdC.cjs');
5
5
  const view = require('../shared/core.uxHtIZaH.cjs');
6
6
  const object_hash = require('../shared/core.FACQZmma.cjs');
@@ -1,5 +1,5 @@
1
- import { G as Graph, r, w as willCreateCycle, t as topologicalSortExports, l, i as i$1 } from '../shared/core.PYycpzvA.mjs';
2
- export { c as computeView, a as computeViews, u as unsafeComputeView } from '../shared/core.PYycpzvA.mjs';
1
+ import { G as Graph, r, w as willCreateCycle, t as topologicalSortExports, l, i as i$1 } from '../shared/core.BG1hfxpq.mjs';
2
+ export { c as computeView, a as computeViews, u as unsafeComputeView } from '../shared/core.BG1hfxpq.mjs';
3
3
  export { c as computeRelationshipsView } from '../shared/core.El-gigOM.mjs';
4
4
  import { i as isExtendsElementView, a as isElementView } from '../shared/core.0PxLtLpP.mjs';
5
5
  import { a as i, m } from '../shared/core.CCyhaU-4.mjs';
package/dist/index.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  const chunkRAAYCPUM = require('./shared/core.CKYxnFEl.cjs');
4
4
  const view = require('./shared/core.uxHtIZaH.cjs');
5
- const model_index = require('./shared/core.DxJ1KbOs.cjs');
5
+ const model_index = require('./shared/core.DRfrKNT6.cjs');
6
6
  const compute = require('./shared/core.Db_OTRdC.cjs');
7
7
  const types_index = require('./types/index.cjs');
8
8
  const object_hash = require('./shared/core.FACQZmma.cjs');
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  export { i as invariant, a as nonNullable, n as nonexhaustive } from './shared/core.Bezy7K65.mjs';
2
2
  export { A as AsFqn, B as BorderStyles, Q as ComputedNode, S as ComputedView, N as DefaultArrowType, e as DefaultElementShape, O as DefaultLineStyle, P as DefaultRelationshipColor, d as DefaultThemeColor, D as DeploymentElement, T as DiagramNode, E as ElementKind, g as ElementShapes, f as Expr, C as ExpressionV2, F as FqnExpr, G as FqnRef, R as RelationExpr, U as extractStep, V as getBBoxCenter, W as getParallelStepsPrefix, H as isAndOperator, X as isAutoLayoutDirection, h as isCustomElement, j as isCustomRelationExpr, Y as isDeploymentView, Z as isDynamicView, _ as isDynamicViewParallelSteps, k as isElement, l as isElementKindExpr, b as isElementPredicateExpr, m as isElementRef, p as isElementTagExpr, a as isElementView, q as isElementWhere, r as isExpandedElementExpr, i as isExtendsElementView, t as isInOut, s as isIncoming, I as isKindEqual, J as isNotOperator, K as isOrOperator, u as isOutgoing, v as isRelation, w as isRelationExpression, x as isRelationPredicateExpr, y as isRelationWhere, c as isScopedElementView, $ as isStepEdgeId, L as isTagEqual, a0 as isViewRuleAutoLayout, a1 as isViewRuleGlobalPredicateRef, a2 as isViewRuleGlobalStyle, a3 as isViewRuleGroup, a4 as isViewRulePredicate, a5 as isViewRuleStyle, z as isWildcard, a6 as stepEdgeId, M as whereOperatorAsPredicate } from './shared/core.0PxLtLpP.mjs';
3
- export { b as LikeC4DeploymentModel, L as LikeC4Model, e as LikeC4ViewModel, c as computeView, a as computeViews, u as unsafeComputeView } from './shared/core.PYycpzvA.mjs';
3
+ export { b as LikeC4DeploymentModel, L as LikeC4Model, e as LikeC4ViewModel, c as computeView, a as computeViews, u as unsafeComputeView } from './shared/core.BG1hfxpq.mjs';
4
4
  export { c as computeRelationshipsView } from './shared/core.El-gigOM.mjs';
5
5
  export { isThemeColor } from './types/index.mjs';
6
6
  export { D as DefaultMap, e as LinkedList, q as Queue, S as Stack, h as ancestorsFqn, j as commonAncestor, f as commonHead, k as compareByFqnHierarchically, o as compareFqnHierarchically, g as compareNatural, K as difference, L as equalsSet, z as getOrCreate, a as hasAtLeast, r as hierarchyDistance, s as hierarchyLevel, C as ifilter, i as ifind, E as iflat, F as imap, M as intersection, u as isAncestor, v as isDescendantOf, G as isIterable, A as isNonEmptyArray, c as isSameHierarchy, B as isString, H as isome, I as iunique, n as nameFromFqn, Q as objectHash, p as parentFqn, w as sortByFqnHierarchically, x as sortNaturalByFqn, y as sortParentsFirst, P as stringHash, N as symmetricDifference, J as toArray, t as toSet, O as union } from './shared/core.CCyhaU-4.mjs';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const model_index = require('../shared/core.DxJ1KbOs.cjs');
3
+ const model_index = require('../shared/core.DRfrKNT6.cjs');
4
4
 
5
5
 
6
6
 
@@ -1 +1 @@
1
- export { C as Connection, f as ConnectionModel, F as DeployedInstanceModel, D as DeploymentConnectionModel, H as DeploymentNodeModel, I as DeploymentRelationModel, J as EdgeModel, E as ElementModel, b as LikeC4DeploymentModel, L as LikeC4Model, e as LikeC4ViewModel, N as NodeModel, R as RelationshipModel, g as deploymentConnection, h as differenceConnections, j as findAscendingConnections, k as findDeepestNestedConnection, m as findDescendantConnections, n as hasSameSource, o as hasSameSourceTarget, p as hasSameTarget, q as isAnyInOut, K as isDeployedInstance, M as isDeploymentNode, s as isIncoming, v as isNestedConnection, x as isOutgoing, y as mergeConnections, z as modelConnection, A as sortConnectionsByBoundaryHierarchy, B as sortDeepestFirst } from '../shared/core.PYycpzvA.mjs';
1
+ export { C as Connection, f as ConnectionModel, F as DeployedInstanceModel, D as DeploymentConnectionModel, H as DeploymentNodeModel, I as DeploymentRelationModel, J as EdgeModel, E as ElementModel, b as LikeC4DeploymentModel, L as LikeC4Model, e as LikeC4ViewModel, N as NodeModel, R as RelationshipModel, g as deploymentConnection, h as differenceConnections, j as findAscendingConnections, k as findDeepestNestedConnection, m as findDescendantConnections, n as hasSameSource, o as hasSameSourceTarget, p as hasSameTarget, q as isAnyInOut, K as isDeployedInstance, M as isDeploymentNode, s as isIncoming, v as isNestedConnection, x as isOutgoing, y as mergeConnections, z as modelConnection, A as sortConnectionsByBoundaryHierarchy, B as sortDeepestFirst } from '../shared/core.BG1hfxpq.mjs';
@@ -5093,7 +5093,7 @@ class ActiveGroupMemory extends Memory {
5093
5093
  static enter(memory, rule) {
5094
5094
  const groupId = `@gr${memory.groups.length + 1}`;
5095
5095
  if (memory instanceof ActiveGroupMemory) {
5096
- const stack2 = Stack.from(memory.stack);
5096
+ const stack2 = Stack.from([...memory.stack].reverse());
5097
5097
  const state2 = memory.mutableState();
5098
5098
  state2.groups.push(new NodesGroup(groupId, rule, memory.activeGroupId));
5099
5099
  stack2.push(groupId);
@@ -5095,7 +5095,7 @@ class ActiveGroupMemory extends Memory {
5095
5095
  static enter(memory, rule) {
5096
5096
  const groupId = `@gr${memory.groups.length + 1}`;
5097
5097
  if (memory instanceof ActiveGroupMemory) {
5098
- const stack2 = object_hash.Stack.from(memory.stack);
5098
+ const stack2 = object_hash.Stack.from([...memory.stack].reverse());
5099
5099
  const state2 = memory.mutableState();
5100
5100
  state2.groups.push(new NodesGroup(groupId, rule, memory.activeGroupId));
5101
5101
  stack2.push(groupId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likec4/core",
3
- "version": "1.20.2",
3
+ "version": "1.20.3",
4
4
  "license": "MIT",
5
5
  "homepage": "https://likec4.dev",
6
6
  "author": "Denis Davydkov <denis@davydkov.com>",
@@ -112,7 +112,7 @@
112
112
  },
113
113
  "devDependencies": {
114
114
  "@dagrejs/dagre": "1.1.4",
115
- "@likec4/tsconfig": "1.20.2",
115
+ "@likec4/tsconfig": "1.20.3",
116
116
  "@mantine/colors-generator": "7.15.2",
117
117
  "@types/natural-compare-lite": "^1.4.2",
118
118
  "@types/object-hash": "^3.0.6",
@@ -111,7 +111,7 @@ export class ActiveGroupMemory extends Memory<ActiveGroupCtx> {
111
111
  ): ActiveGroupMemory {
112
112
  const groupId = `@gr${memory.groups.length + 1}` as NodeId
113
113
  if (memory instanceof ActiveGroupMemory) {
114
- const stack = Stack.from(memory.stack)
114
+ const stack = Stack.from([...memory.stack].reverse())
115
115
  const state = memory.mutableState()
116
116
  state.groups.push(new NodesGroup(groupId, rule, memory.activeGroupId))
117
117
  stack.push(groupId)