likec4 1.59.2 → 1.59.4

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.
Files changed (69) hide show
  1. package/__app__/src/chunks/AIChat.mjs +118 -123
  2. package/__app__/src/chunks/LikeC4Styles.mjs +828 -686
  3. package/__app__/src/chunks/ProjectsOverview.mjs +82 -82
  4. package/__app__/src/chunks/es.mjs +1 -1
  5. package/__app__/src/chunks/hooks.mjs +164 -135
  6. package/__app__/src/chunks/libs/@floating-ui.mjs +649 -335
  7. package/__app__/src/chunks/libs/@mantine.mjs +2934 -2040
  8. package/__app__/src/chunks/libs/@tanstack-ai.mjs +28 -28
  9. package/__app__/src/chunks/libs/@tanstack.mjs +46 -51
  10. package/__app__/src/chunks/libs/@xstate/react.mjs +59 -40
  11. package/__app__/src/chunks/libs/@xyflow/react.mjs +535 -448
  12. package/__app__/src/chunks/libs/bezier-js.mjs +10 -9
  13. package/__app__/src/chunks/libs/d3.mjs +20 -45
  14. package/__app__/src/chunks/libs/fast-equals.mjs +62 -50
  15. package/__app__/src/chunks/libs/framer.mjs +300 -279
  16. package/__app__/src/chunks/libs/zod.mjs +17 -14
  17. package/__app__/src/chunks/rolldown-runtime.mjs +2 -2
  18. package/__app__/src/chunks/styled-system.mjs +2580 -132
  19. package/__app__/src/main.mjs +24925 -23485
  20. package/__app__/src/style.css +1 -1
  21. package/config/schema.json +49 -0
  22. package/dist/app/render-view-client.css +1 -0
  23. package/dist/app/render-view-client.js +739 -0
  24. package/dist/chunks/enableServer.mjs +1 -1
  25. package/dist/chunks/filenames.mjs +7 -6
  26. package/dist/chunks/index.d.mts +18 -1
  27. package/dist/chunks/index2.d.mts +79 -26
  28. package/dist/chunks/libs/@chevrotain/gast.mjs +1 -1
  29. package/dist/chunks/libs/@chevrotain/regexp-to-ast.mjs +5 -5
  30. package/dist/chunks/libs/@chevrotain/types.d.mts +108 -0
  31. package/dist/chunks/libs/@logtape/logtape.mjs +4 -4
  32. package/dist/chunks/libs/@lume/kiwi.mjs +1 -1
  33. package/dist/chunks/libs/birpc.mjs +1 -1
  34. package/dist/chunks/libs/chevrotain-allstar.mjs +1 -1
  35. package/dist/chunks/libs/chevrotain.mjs +16 -16
  36. package/dist/chunks/libs/json5.mjs +3 -3
  37. package/dist/chunks/libs/langium.d.mts +1777 -16
  38. package/dist/chunks/libs/langium.mjs +11 -11
  39. package/dist/chunks/libs/merge-error-cause.mjs +2 -2
  40. package/dist/chunks/libs/p-queue.mjs +1 -1
  41. package/dist/chunks/libs/package-manager-detector.mjs +1 -1
  42. package/dist/chunks/libs/pako.mjs +2 -2
  43. package/dist/chunks/libs/picomatch.mjs +1 -1
  44. package/dist/chunks/libs/pretty-ms.mjs +1 -1
  45. package/dist/chunks/libs/remeda.mjs +1 -1
  46. package/dist/chunks/libs/ufo.mjs +1 -1
  47. package/dist/chunks/libs/unstorage.mjs +1 -1
  48. package/dist/chunks/libs/zod.d.mts +1717 -17
  49. package/dist/chunks/libs/zod.mjs +4 -4
  50. package/dist/chunks/node.mjs +68 -57
  51. package/dist/chunks/rolldown-runtime.mjs +1 -1
  52. package/dist/chunks/sequence-view.mjs +1 -1
  53. package/dist/chunks/vite-plugin.mjs +168 -54
  54. package/dist/cli/index.d.mts +1 -1
  55. package/dist/cli/index.mjs +291 -165
  56. package/dist/config/index.d.mts +7 -1
  57. package/dist/config/index.mjs +1 -1
  58. package/dist/index.d.mts +3 -3
  59. package/dist/index.mjs +1 -1
  60. package/dist/model/index.d.mts +4 -4
  61. package/dist/vite-plugin/index.d.mts +2 -2
  62. package/dist/vite-plugin/internal/index.d.mts +72 -35
  63. package/dist/vite-plugin/internal/index.mjs +125 -44
  64. package/package.json +47 -47
  65. package/react/index.d.mts +22767 -1432
  66. package/react/index.mjs +38152 -32309
  67. package/vite-plugin-modules.d.ts +21 -1
  68. package/dist/chunks/dist.mjs +0 -10
  69. 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 !(isObject(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
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 ? n.value = i.href : n.value = r;
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
- } else {
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
- } else {
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) ? !1 : (t.issues.push({
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 === "$ref" || e === "allOf" || e in i || delete r[e];
2316
- 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];
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 === "$ref" || e === "allOf" || e in t.def && JSON.stringify(r[e]) === JSON.stringify(t.def[e]) && delete 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") ? i.type = "integer" : i.type = "number";
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) if (a.length === 1) {
2442
- let e = a[0];
2443
- n.type = e === null ? "null" : typeof e, t.target === "draft-04" || t.target === "openapi-3.0" ? n.enum = [e] : n.const = e;
2444
- } 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;
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, a) => (a = n == null ? {} : e(i(n)), __copyProps(r || !n || !n.__esModule ? t(a, "default", {
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
- }) : a, n)), __toCommonJS = (e) => a.call(e, "module.exports") ? e["module.exports"] : __copyProps(t({}, "__esModule", { value: !0 }), e);
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 };