likec4 1.59.2 → 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.
Files changed (58) hide show
  1. package/__app__/src/chunks/AIChat.mjs +21 -26
  2. package/__app__/src/chunks/LikeC4Styles.mjs +257 -263
  3. package/__app__/src/chunks/ProjectsOverview.mjs +58 -58
  4. package/__app__/src/chunks/hooks.mjs +106 -80
  5. package/__app__/src/chunks/libs/@floating-ui.mjs +646 -332
  6. package/__app__/src/chunks/libs/@mantine.mjs +1911 -1734
  7. package/__app__/src/chunks/libs/@tanstack-ai.mjs +26 -26
  8. package/__app__/src/chunks/libs/@tanstack.mjs +42 -41
  9. package/__app__/src/chunks/libs/@xstate/react.mjs +59 -40
  10. package/__app__/src/chunks/libs/@xyflow/react.mjs +532 -445
  11. package/__app__/src/chunks/libs/bezier-js.mjs +10 -9
  12. package/__app__/src/chunks/libs/d3.mjs +16 -36
  13. package/__app__/src/chunks/libs/fast-equals.mjs +1 -1
  14. package/__app__/src/chunks/libs/framer.mjs +294 -273
  15. package/__app__/src/chunks/libs/zod.mjs +17 -14
  16. package/__app__/src/chunks/rolldown-runtime.mjs +2 -2
  17. package/__app__/src/chunks/styled-system.mjs +9 -15
  18. package/__app__/src/main.mjs +15994 -15936
  19. package/__app__/src/style.css +1 -1
  20. package/config/schema.json +35 -0
  21. package/dist/app/render-view-client.css +1 -0
  22. package/dist/app/render-view-client.js +745 -0
  23. package/dist/chunks/enableServer.mjs +1 -1
  24. package/dist/chunks/filenames.mjs +7 -6
  25. package/dist/chunks/index.d.mts +11 -0
  26. package/dist/chunks/index2.d.mts +41 -5
  27. package/dist/chunks/libs/@chevrotain/gast.mjs +1 -1
  28. package/dist/chunks/libs/@chevrotain/regexp-to-ast.mjs +5 -5
  29. package/dist/chunks/libs/@logtape/logtape.mjs +1 -1
  30. package/dist/chunks/libs/@lume/kiwi.mjs +1 -1
  31. package/dist/chunks/libs/birpc.mjs +1 -1
  32. package/dist/chunks/libs/chevrotain-allstar.mjs +1 -1
  33. package/dist/chunks/libs/chevrotain.mjs +16 -16
  34. package/dist/chunks/libs/json5.mjs +3 -3
  35. package/dist/chunks/libs/langium.mjs +11 -11
  36. package/dist/chunks/libs/merge-error-cause.mjs +2 -2
  37. package/dist/chunks/libs/package-manager-detector.mjs +1 -1
  38. package/dist/chunks/libs/pako.mjs +1 -1
  39. package/dist/chunks/libs/picomatch.mjs +1 -1
  40. package/dist/chunks/libs/pretty-ms.mjs +1 -1
  41. package/dist/chunks/libs/remeda.mjs +1 -1
  42. package/dist/chunks/libs/zod.mjs +4 -4
  43. package/dist/chunks/node.mjs +69 -57
  44. package/dist/chunks/rolldown-runtime.mjs +1 -1
  45. package/dist/chunks/sequence-view.mjs +1 -1
  46. package/dist/chunks/vite-plugin.mjs +161 -50
  47. package/dist/cli/index.mjs +272 -162
  48. package/dist/config/index.d.mts +7 -1
  49. package/dist/config/index.mjs +1 -1
  50. package/dist/index.mjs +1 -1
  51. package/dist/vite-plugin/internal/index.d.mts +64 -27
  52. package/dist/vite-plugin/internal/index.mjs +65 -29
  53. package/package.json +39 -39
  54. package/react/index.d.mts +76 -1
  55. package/react/index.mjs +7302 -6778
  56. package/vite-plugin-modules.d.ts +18 -0
  57. package/dist/chunks/dist.mjs +0 -10
  58. 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 };
@@ -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" ? o.test(e) : !1;
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) ? e[n] = mergeProps(r, i) : e[n] = 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" ? !0 : (Array.isArray(n) ? n : [n]).some((n) => t[e] === n)) && (n = y(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
- }, box = (e) => css(getBoxStyle(e));
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
- }, flex = (e) => css(getFlexStyle(e));
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",