likec4 1.59.1 → 1.59.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.
- package/__app__/src/chunks/AIChat.mjs +21 -26
- package/__app__/src/chunks/LikeC4Styles.mjs +257 -263
- package/__app__/src/chunks/ProjectsOverview.mjs +58 -58
- package/__app__/src/chunks/hooks.mjs +106 -80
- package/__app__/src/chunks/libs/@floating-ui.mjs +646 -332
- package/__app__/src/chunks/libs/@mantine.mjs +1911 -1734
- package/__app__/src/chunks/libs/@tanstack-ai.mjs +26 -26
- package/__app__/src/chunks/libs/@tanstack.mjs +42 -41
- package/__app__/src/chunks/libs/@xstate/react.mjs +59 -40
- package/__app__/src/chunks/libs/@xyflow/react.mjs +532 -445
- package/__app__/src/chunks/libs/bezier-js.mjs +10 -9
- package/__app__/src/chunks/libs/d3.mjs +16 -36
- package/__app__/src/chunks/libs/fast-equals.mjs +12 -11
- package/__app__/src/chunks/libs/framer.mjs +294 -273
- package/__app__/src/chunks/libs/zod.mjs +17 -14
- package/__app__/src/chunks/rolldown-runtime.mjs +2 -2
- package/__app__/src/chunks/styled-system.mjs +9 -15
- package/__app__/src/main.mjs +15994 -15936
- package/__app__/src/style.css +1 -1
- package/config/schema.json +35 -0
- package/dist/app/render-view-client.css +1 -0
- package/dist/app/render-view-client.js +745 -0
- package/dist/chunks/enableServer.mjs +1 -1
- package/dist/chunks/filenames.mjs +7 -6
- package/dist/chunks/index.d.mts +11 -0
- package/dist/chunks/index2.d.mts +47 -7
- package/dist/chunks/libs/@chevrotain/gast.mjs +1 -1
- package/dist/chunks/libs/@chevrotain/regexp-to-ast.mjs +5 -5
- package/dist/chunks/libs/@logtape/logtape.mjs +1 -1
- package/dist/chunks/libs/@lume/kiwi.mjs +1 -1
- package/dist/chunks/libs/birpc.mjs +1 -1
- package/dist/chunks/libs/chevrotain-allstar.mjs +1 -1
- package/dist/chunks/libs/chevrotain.mjs +16 -16
- package/dist/chunks/libs/json5.mjs +3 -3
- package/dist/chunks/libs/langium.mjs +11 -11
- package/dist/chunks/libs/merge-error-cause.mjs +2 -2
- package/dist/chunks/libs/package-manager-detector.mjs +1 -1
- package/dist/chunks/libs/pako.mjs +1 -1
- package/dist/chunks/libs/picomatch.mjs +1 -1
- package/dist/chunks/libs/pretty-ms.mjs +1 -1
- package/dist/chunks/libs/remeda.mjs +1 -1
- package/dist/chunks/libs/zod.mjs +4 -4
- package/dist/chunks/node.mjs +69 -57
- package/dist/chunks/rolldown-runtime.mjs +1 -1
- package/dist/chunks/sequence-view.mjs +1 -1
- package/dist/chunks/vite-plugin.mjs +161 -50
- package/dist/cli/index.mjs +272 -162
- package/dist/config/index.d.mts +7 -1
- package/dist/config/index.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/vite-plugin/internal/index.d.mts +64 -27
- package/dist/vite-plugin/internal/index.mjs +76 -39
- package/package.json +41 -41
- package/react/index.d.mts +76 -1
- package/react/index.mjs +7310 -6785
- package/vite-plugin-modules.d.ts +18 -0
- package/dist/chunks/dist.mjs +0 -10
- package/dist/chunks/logger.mjs +0 -1
|
@@ -59,7 +59,6 @@ function cached(e) {
|
|
|
59
59
|
let t = e();
|
|
60
60
|
return Object.defineProperty(this, "value", { value: t }), t;
|
|
61
61
|
}
|
|
62
|
-
throw Error("cached value already set");
|
|
63
62
|
} };
|
|
64
63
|
}
|
|
65
64
|
function nullish(e) {
|
|
@@ -125,7 +124,7 @@ function isPlainObject(e) {
|
|
|
125
124
|
let t = e.constructor;
|
|
126
125
|
if (t === void 0 || typeof t != "function") return !0;
|
|
127
126
|
let n = t.prototype;
|
|
128
|
-
return
|
|
127
|
+
return isObject(n) !== !1 && Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") !== !1;
|
|
129
128
|
}
|
|
130
129
|
function shallowClone(e) {
|
|
131
130
|
return isPlainObject(e) ? { ...e } : Array.isArray(e) ? [...e] : e instanceof Map ? new Map(e) : e instanceof Set ? new Set(e) : e;
|
|
@@ -891,7 +890,7 @@ var _e = /* @__PURE__ */ e((e) => {
|
|
|
891
890
|
input: n.value,
|
|
892
891
|
inst: e,
|
|
893
892
|
continue: !t.abort
|
|
894
|
-
})), t.normalize ?
|
|
893
|
+
})), n.value = t.normalize ? i.href : r;
|
|
895
894
|
return;
|
|
896
895
|
} catch {
|
|
897
896
|
n.issues.push({
|
|
@@ -1555,7 +1554,8 @@ var R = /*@__PURE__*/ $constructor("$ZodCodec", (e, t) => {
|
|
|
1555
1554
|
if ((n.direction || "forward") === "forward") {
|
|
1556
1555
|
let r = t.in._zod.run(e, n);
|
|
1557
1556
|
return r instanceof Promise ? r.then((e) => handleCodecAResult(e, t, n)) : handleCodecAResult(r, t, n);
|
|
1558
|
-
}
|
|
1557
|
+
}
|
|
1558
|
+
{
|
|
1559
1559
|
let r = t.out._zod.run(e, n);
|
|
1560
1560
|
return r instanceof Promise ? r.then((e) => handleCodecAResult(e, t, n)) : handleCodecAResult(r, t, n);
|
|
1561
1561
|
}
|
|
@@ -1566,7 +1566,8 @@ function handleCodecAResult(e, t, n) {
|
|
|
1566
1566
|
if ((n.direction || "forward") === "forward") {
|
|
1567
1567
|
let r = t.transform(e.value, e);
|
|
1568
1568
|
return r instanceof Promise ? r.then((r) => handleCodecTxResult(e, r, t.out, n)) : handleCodecTxResult(e, r, t.out, n);
|
|
1569
|
-
}
|
|
1569
|
+
}
|
|
1570
|
+
{
|
|
1570
1571
|
let r = t.reverseTransform(e.value, e);
|
|
1571
1572
|
return r instanceof Promise ? r.then((r) => handleCodecTxResult(e, r, t.in, n)) : handleCodecTxResult(e, r, t.in, n);
|
|
1572
1573
|
}
|
|
@@ -2166,7 +2167,7 @@ function _stringbool(e, t) {
|
|
|
2166
2167
|
}),
|
|
2167
2168
|
transform: ((e, t) => {
|
|
2168
2169
|
let r = e;
|
|
2169
|
-
return n.case !== "sensitive" && (r = r.toLowerCase()), a.has(r) ? !0 : o.has(r)
|
|
2170
|
+
return n.case !== "sensitive" && (r = r.toLowerCase()), a.has(r) ? !0 : !o.has(r) && (t.issues.push({
|
|
2170
2171
|
code: "invalid_value",
|
|
2171
2172
|
expected: "stringbool",
|
|
2172
2173
|
values: [...a, ...o],
|
|
@@ -2312,14 +2313,14 @@ function finalize(e, t) {
|
|
|
2312
2313
|
if (n.ref = null, a) {
|
|
2313
2314
|
flattenRef(a);
|
|
2314
2315
|
let n = e.seen.get(a), o = n.schema;
|
|
2315
|
-
if (o.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (r.allOf = r.allOf ?? [], r.allOf.push(o)) : Object.assign(r, o), Object.assign(r, i), t._zod.parent === a) for (let e in r) e
|
|
2316
|
-
if (o.$ref && n.def) for (let e in r) e
|
|
2316
|
+
if (o.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (r.allOf = r.allOf ?? [], r.allOf.push(o)) : Object.assign(r, o), Object.assign(r, i), t._zod.parent === a) for (let e in r) e !== "$ref" && e !== "allOf" && (e in i || delete r[e]);
|
|
2317
|
+
if (o.$ref && n.def) for (let e in r) e !== "$ref" && e !== "allOf" && e in n.def && JSON.stringify(r[e]) === JSON.stringify(n.def[e]) && delete r[e];
|
|
2317
2318
|
}
|
|
2318
2319
|
let o = t._zod.parent;
|
|
2319
2320
|
if (o && o !== a) {
|
|
2320
2321
|
flattenRef(o);
|
|
2321
2322
|
let t = e.seen.get(o);
|
|
2322
|
-
if (t?.schema.$ref && (r.$ref = t.schema.$ref, t.def)) for (let e in r) e
|
|
2323
|
+
if (t?.schema.$ref && (r.$ref = t.schema.$ref, t.def)) for (let e in r) e !== "$ref" && e !== "allOf" && e in t.def && JSON.stringify(r[e]) === JSON.stringify(t.def[e]) && delete r[e];
|
|
2323
2324
|
}
|
|
2324
2325
|
e.override({
|
|
2325
2326
|
zodSchema: t,
|
|
@@ -2420,7 +2421,7 @@ var createToJSONSchemaMethod = (e, t = {}) => (n) => {
|
|
|
2420
2421
|
}
|
|
2421
2422
|
}, numberProcessor = (e, t, n, r) => {
|
|
2422
2423
|
let i = n, { minimum: a, maximum: o, format: s, multipleOf: c, exclusiveMaximum: l, exclusiveMinimum: u } = e._zod.bag;
|
|
2423
|
-
typeof s == "string" && s.includes("int") ?
|
|
2424
|
+
i.type = typeof s == "string" && s.includes("int") ? "integer" : "number";
|
|
2424
2425
|
let d = typeof u == "number" && u >= (a ?? -Infinity), f = typeof l == "number" && l <= (o ?? Infinity), p = t.target === "draft-04" || t.target === "openapi-3.0";
|
|
2425
2426
|
d ? p ? (i.minimum = u, i.exclusiveMinimum = !0) : i.exclusiveMinimum = u : typeof a == "number" && (i.minimum = a), f ? p ? (i.maximum = l, i.exclusiveMaximum = !0) : i.exclusiveMaximum = l : typeof o == "number" && (i.maximum = o), typeof c == "number" && (i.multipleOf = c);
|
|
2426
2427
|
}, booleanProcessor = (e, t, n, r) => {
|
|
@@ -2438,10 +2439,12 @@ var createToJSONSchemaMethod = (e, t = {}) => (n) => {
|
|
|
2438
2439
|
if (t.unrepresentable === "throw") throw Error("BigInt literals cannot be represented in JSON Schema");
|
|
2439
2440
|
a.push(Number(e));
|
|
2440
2441
|
} else a.push(e);
|
|
2441
|
-
if (a.length !== 0)
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2442
|
+
if (a.length !== 0) {
|
|
2443
|
+
if (a.length === 1) {
|
|
2444
|
+
let e = a[0];
|
|
2445
|
+
n.type = e === null ? "null" : typeof e, t.target === "draft-04" || t.target === "openapi-3.0" ? n.enum = [e] : n.const = e;
|
|
2446
|
+
} else a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), a.every((e) => typeof e == "boolean") && (n.type = "boolean"), a.every((e) => e === null) && (n.type = "null"), n.enum = a;
|
|
2447
|
+
}
|
|
2445
2448
|
}, customProcessor = (e, t, n, r) => {
|
|
2446
2449
|
if (t.unrepresentable === "throw") throw Error("Custom types cannot be represented in JSON Schema");
|
|
2447
2450
|
}, transformProcessor = (e, t, n, r) => {
|
|
@@ -22,9 +22,9 @@ var e = Object.create, t = Object.defineProperty, __name = (e, n) => t(e, "name"
|
|
|
22
22
|
enumerable: !(s = n(i, d)) || s.enumerable
|
|
23
23
|
});
|
|
24
24
|
return e;
|
|
25
|
-
}, __toESM = (n, r,
|
|
25
|
+
}, __toESM = (n, r, o) => (o = n == null ? {} : e(i(n)), __copyProps(r || !n || !n.__esModule || !a.call(n, "default") ? t(o, "default", {
|
|
26
26
|
value: n,
|
|
27
27
|
enumerable: !0
|
|
28
|
-
}) :
|
|
28
|
+
}) : o, n)), __toCommonJS = (e) => a.call(e, "module.exports") ? e["module.exports"] : __copyProps(t({}, "__esModule", { value: !0 }), e);
|
|
29
29
|
//#endregion
|
|
30
30
|
export { __toCommonJS as a, __name as i, __esmMin as n, __toESM as o, __exportAll as r, __commonJSMin as t };
|
|
@@ -30,7 +30,7 @@ function toHash(e) {
|
|
|
30
30
|
}
|
|
31
31
|
var o = /\s*!(important)?/i;
|
|
32
32
|
function isImportant(e) {
|
|
33
|
-
return typeof e == "string"
|
|
33
|
+
return typeof e == "string" && o.test(e);
|
|
34
34
|
}
|
|
35
35
|
function withoutImportant(e) {
|
|
36
36
|
return typeof e == "string" ? e.replace(o, "").trim() : e;
|
|
@@ -55,7 +55,7 @@ function mergeProps(...e) {
|
|
|
55
55
|
return e.reduce((e, t) => (t && Object.keys(t).forEach((n) => {
|
|
56
56
|
if (c.has(n)) return;
|
|
57
57
|
let r = e[n], i = t[n];
|
|
58
|
-
isObject(r) && isObject(i) ?
|
|
58
|
+
e[n] = isObject(r) && isObject(i) ? mergeProps(r, i) : i;
|
|
59
59
|
}), e), {});
|
|
60
60
|
}
|
|
61
61
|
var isNotNullish = (e) => e != null;
|
|
@@ -299,7 +299,7 @@ function cva(e) {
|
|
|
299
299
|
function getCompoundVariantCss(e, t) {
|
|
300
300
|
let n = {};
|
|
301
301
|
return e.forEach((e) => {
|
|
302
|
-
Object.entries(e).every(([e, n]) => e === "css"
|
|
302
|
+
Object.entries(e).every(([e, n]) => e === "css" || (Array.isArray(n) ? n : [n]).some((n) => t[e] === n)) && (n = y(n, e.css));
|
|
303
303
|
}), n;
|
|
304
304
|
}
|
|
305
305
|
function assertCompoundVariant(e, t, n, r) {
|
|
@@ -473,11 +473,7 @@ var S = { transform(e) {
|
|
|
473
473
|
} }, getBoxStyle = (e = {}) => {
|
|
474
474
|
let t = getPatternStyles(S, e);
|
|
475
475
|
return S.transform(t, m);
|
|
476
|
-
},
|
|
477
|
-
box.raw = getBoxStyle;
|
|
478
|
-
//#endregion
|
|
479
|
-
//#region styled-system/jsx/box.mjs
|
|
480
|
-
var pe = /* @__PURE__ */ r(function Box(e, t) {
|
|
476
|
+
}, pe = /* @__PURE__ */ r(function Box(e, t) {
|
|
481
477
|
let [r, i] = splitProps(e, []), a = {
|
|
482
478
|
ref: t,
|
|
483
479
|
...getBoxStyle(r),
|
|
@@ -500,11 +496,7 @@ var pe = /* @__PURE__ */ r(function Box(e, t) {
|
|
|
500
496
|
} }, getFlexStyle = (e = {}) => {
|
|
501
497
|
let t = getPatternStyles(C, e);
|
|
502
498
|
return C.transform(t, m);
|
|
503
|
-
},
|
|
504
|
-
flex.raw = getFlexStyle;
|
|
505
|
-
//#endregion
|
|
506
|
-
//#region styled-system/jsx/flex.mjs
|
|
507
|
-
var me = /* @__PURE__ */ r(function Flex(e, t) {
|
|
499
|
+
}, me = /* @__PURE__ */ r(function Flex(e, t) {
|
|
508
500
|
let [r, i] = splitProps(e, [
|
|
509
501
|
"align",
|
|
510
502
|
"justify",
|
|
@@ -845,7 +837,8 @@ var _e = /* @__PURE__ */ r(function Txt(e, t) {
|
|
|
845
837
|
getVariantProps: G.getVariantProps
|
|
846
838
|
}), K = /* @__PURE__ */ createRecipe("likec4-element-node-data", {
|
|
847
839
|
iconPosition: "left",
|
|
848
|
-
withIconColor: !1
|
|
840
|
+
withIconColor: !1,
|
|
841
|
+
withIconBlend: !1
|
|
849
842
|
}, []), je = {
|
|
850
843
|
iconPosition: [
|
|
851
844
|
"left",
|
|
@@ -853,7 +846,8 @@ var _e = /* @__PURE__ */ r(function Txt(e, t) {
|
|
|
853
846
|
"top",
|
|
854
847
|
"bottom"
|
|
855
848
|
],
|
|
856
|
-
withIconColor: ["true", "false"]
|
|
849
|
+
withIconColor: ["true", "false"],
|
|
850
|
+
withIconBlend: ["true", "false"]
|
|
857
851
|
}, Me = Object.keys(je), Ne = /* @__PURE__ */ Object.assign(s(K.recipeFn), {
|
|
858
852
|
__recipe__: !0,
|
|
859
853
|
__name__: "elementNodeData",
|