likec4 1.59.1 → 1.59.2
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/__app__/src/chunks/libs/fast-equals.mjs +11 -10
- package/dist/chunks/index2.d.mts +6 -2
- package/dist/chunks/node.mjs +2 -2
- package/dist/cli/index.mjs +7 -7
- package/dist/vite-plugin/internal/index.mjs +11 -10
- package/package.json +21 -21
- package/react/index.mjs +10 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../rolldown-runtime.mjs";
|
|
2
|
-
//#region ../../node_modules/.pnpm/fast-equals@6.0.
|
|
2
|
+
//#region ../../node_modules/.pnpm/fast-equals@6.0.2/node_modules/fast-equals/dist/es/index.mjs
|
|
3
3
|
var { getOwnPropertyNames: e, getOwnPropertySymbols: t } = Object, { hasOwnProperty: n } = Object.prototype;
|
|
4
4
|
function combineComparators(e, t) {
|
|
5
5
|
return function isEqual(n, r, i) {
|
|
@@ -17,7 +17,8 @@ function createIsCircular(e) {
|
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
function getStrictProperties(n) {
|
|
20
|
-
|
|
20
|
+
let r = t(n);
|
|
21
|
+
return r.length ? e(n).concat(r) : e(n);
|
|
21
22
|
}
|
|
22
23
|
var r = Object.hasOwn || ((e, t) => n.call(e, t)), i = "__v", a = "__o", o = "_owner", { getOwnPropertyDescriptor: s, keys: c } = Object, l = Object.is || function sameValueEqual(e, t) {
|
|
23
24
|
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
|
|
@@ -47,9 +48,9 @@ function areMapsEqual(e, t, n) {
|
|
|
47
48
|
let r = e.size;
|
|
48
49
|
if (r !== t.size) return !1;
|
|
49
50
|
if (!r) return !0;
|
|
50
|
-
let i =
|
|
51
|
+
let i = new Uint8Array(r), a = e.entries(), o, s, c = 0;
|
|
51
52
|
for (; (o = a.next()) && !o.done;) {
|
|
52
|
-
let r = t.entries(), a =
|
|
53
|
+
let r = t.entries(), a = 0, l = 0;
|
|
53
54
|
for (; (s = r.next()) && !s.done;) {
|
|
54
55
|
if (i[l]) {
|
|
55
56
|
l++;
|
|
@@ -57,7 +58,7 @@ function areMapsEqual(e, t, n) {
|
|
|
57
58
|
}
|
|
58
59
|
let r = o.value, u = s.value;
|
|
59
60
|
if (n.equals(r[0], u[0], c, l, e, t, n) && n.equals(r[1], u[1], r[0], u[0], e, t, n)) {
|
|
60
|
-
a = i[l] =
|
|
61
|
+
a = i[l] = 1;
|
|
61
62
|
break;
|
|
62
63
|
}
|
|
63
64
|
l++;
|
|
@@ -90,12 +91,12 @@ function areSetsEqual(e, t, n) {
|
|
|
90
91
|
let r = e.size;
|
|
91
92
|
if (r !== t.size) return !1;
|
|
92
93
|
if (!r) return !0;
|
|
93
|
-
let i =
|
|
94
|
+
let i = new Uint8Array(r), a = e.values(), o, s;
|
|
94
95
|
for (; (o = a.next()) && !o.done;) {
|
|
95
|
-
let r = t.values(), a =
|
|
96
|
+
let r = t.values(), a = 0, c = 0;
|
|
96
97
|
for (; (s = r.next()) && !s.done;) {
|
|
97
98
|
if (!i[c] && n.equals(o.value, s.value, o.value, s.value, e, t, n)) {
|
|
98
|
-
a = i[c] =
|
|
99
|
+
a = i[c] = 1;
|
|
99
100
|
break;
|
|
100
101
|
}
|
|
101
102
|
c++;
|
|
@@ -105,8 +106,8 @@ function areSetsEqual(e, t, n) {
|
|
|
105
106
|
return !0;
|
|
106
107
|
}
|
|
107
108
|
function areTypedArraysEqual(e, t) {
|
|
108
|
-
let n = e.
|
|
109
|
-
if (t.
|
|
109
|
+
let n = e.length;
|
|
110
|
+
if (t.length !== n || e.byteOffset !== t.byteOffset) return !1;
|
|
110
111
|
for (; n-- > 0;) if (e[n] !== t[n]) return !1;
|
|
111
112
|
return !0;
|
|
112
113
|
}
|
package/dist/chunks/index2.d.mts
CHANGED
|
@@ -1585,6 +1585,7 @@ declare const DeploymentNodeOrElementKind = "DeploymentNodeOrElementKind";
|
|
|
1585
1585
|
type DeploymentViewRule = DeploymentViewRulePredicate | DeploymentViewRuleStyle | ViewRuleAncestors | ViewRuleAutoLayout;
|
|
1586
1586
|
declare const DeploymentViewRule = "DeploymentViewRule";
|
|
1587
1587
|
type DynamicViewDisplayVariantValue = 'diagram' | 'sequence';
|
|
1588
|
+
type DynamicViewFlowKeyword = 'alt' | 'break' | 'catch' | 'else' | 'finally' | 'if' | 'loop' | 'opt' | 'par' | 'parallel' | 'try' | 'when';
|
|
1588
1589
|
type DynamicViewProperty = DynamicViewDisplayVariantProperty | ViewProperty;
|
|
1589
1590
|
declare const DynamicViewProperty = "DynamicViewProperty";
|
|
1590
1591
|
type DynamicViewRule = DynamicViewGlobalPredicateRef | DynamicViewIncludePredicate | ViewRuleAutoLayout | ViewRuleStyleOrGlobalRef;
|
|
@@ -1610,7 +1611,7 @@ type FqnReferenceable = Element | ExtendDeployment | ExtendElement | Referenceab
|
|
|
1610
1611
|
declare const FqnReferenceable = "FqnReferenceable";
|
|
1611
1612
|
type IconId = string;
|
|
1612
1613
|
type IconPositionValue = 'bottom' | 'left' | 'right' | 'top';
|
|
1613
|
-
type Id = 'deployment' | 'element' | 'group' | 'instance' | 'model' | 'node' | 'relationship' | ArrowType | DynamicViewDisplayVariantValue | ElementShape | IconPositionValue | LineOptions | Participant | RankValue | SizeValue | ThemeColor | string;
|
|
1614
|
+
type Id = 'deployment' | 'element' | 'group' | 'instance' | 'model' | 'node' | 'relationship' | ArrowType | DynamicViewDisplayVariantValue | DynamicViewFlowKeyword | ElementShape | IconPositionValue | LineOptions | Participant | RankValue | SizeValue | ThemeColor | string;
|
|
1614
1615
|
type LikeC4View = DeploymentView | DynamicView | ElementView;
|
|
1615
1616
|
declare const LikeC4View = "LikeC4View";
|
|
1616
1617
|
type LineOptions = 'dashed' | 'dotted' | 'solid';
|
|
@@ -1648,6 +1649,7 @@ type StringProperty = ElementStringProperty | MetadataAttribute | NotationProper
|
|
|
1648
1649
|
declare const StringProperty = "StringProperty";
|
|
1649
1650
|
type StyleProperty = BorderProperty | ColorProperty | IconColorProperty | IconPositionProperty | IconProperty | IconSizeProperty | MultipleProperty | OpacityProperty | PaddingSizeProperty | ShapeProperty | ShapeSizeProperty | TextSizeProperty;
|
|
1650
1651
|
declare const StyleProperty = "StyleProperty";
|
|
1652
|
+
type SubflowKind = 'break' | 'else' | 'if' | 'loop' | 'opt' | 'par' | 'parallel' | 'when';
|
|
1651
1653
|
type ThemeColor = 'amber' | 'blue' | 'gray' | 'green' | 'indigo' | 'muted' | 'primary' | 'red' | 'secondary' | 'sky' | 'slate';
|
|
1652
1654
|
type TryStep = CatchBlock | FinallyBlock | TryBlock;
|
|
1653
1655
|
declare const TryStep = "TryStep";
|
|
@@ -2699,7 +2701,7 @@ declare const StepSeries = "StepSeries";
|
|
|
2699
2701
|
interface SubflowStep extends StepsBlock {
|
|
2700
2702
|
readonly $container: AltSteps | DynamicViewBody | StepsBlock;
|
|
2701
2703
|
readonly $type: 'SubflowStep';
|
|
2702
|
-
kind:
|
|
2704
|
+
kind: SubflowKind;
|
|
2703
2705
|
title?: string;
|
|
2704
2706
|
}
|
|
2705
2707
|
declare const SubflowStep = "SubflowStep";
|
|
@@ -3928,6 +3930,7 @@ declare const DocumentParserFromMixins: {
|
|
|
3928
3930
|
parseAbstractDynamicStep(astnode: AbstractStep): import("type-fest").Writable<import("type-fest").Except<ProjectId$1, "source", {
|
|
3929
3931
|
requireExactProps: true;
|
|
3930
3932
|
}>>;
|
|
3933
|
+
parseDynamicStepEndpoint(node: ElementRef, endpoint: "source" | "target"): ProjectId$1;
|
|
3931
3934
|
parseSubflowStep(node: SubflowStep): ProjectId$1 | ProjectId$1 | ProjectId$1 | ProjectId$1;
|
|
3932
3935
|
parseTryStep(node: TryStep): ProjectId$1;
|
|
3933
3936
|
parseAltSteps(node: AltSteps): ProjectId$1;
|
|
@@ -4037,6 +4040,7 @@ declare const DocumentParserFromMixins: {
|
|
|
4037
4040
|
parseAbstractDynamicStep(astnode: AbstractStep): import("type-fest").Writable<import("type-fest").Except<ProjectId$1, "source", {
|
|
4038
4041
|
requireExactProps: true;
|
|
4039
4042
|
}>>;
|
|
4043
|
+
parseDynamicStepEndpoint(node: ElementRef, endpoint: "source" | "target"): ProjectId$1;
|
|
4040
4044
|
parseSubflowStep(node: SubflowStep): ProjectId$1 | ProjectId$1 | ProjectId$1 | ProjectId$1;
|
|
4041
4045
|
parseTryStep(node: TryStep): ProjectId$1;
|
|
4042
4046
|
parseAltSteps(node: AltSteps): ProjectId$1;
|