likec4 1.21.0 → 1.22.0

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,11 +1,11 @@
1
1
  import { jsx as t, jsxs as u, Fragment as z } from "react/jsx-runtime";
2
2
  import { useOverviewGraph as L } from "virtual:likec4/overview-graph";
3
3
  import { nonexhaustive as R } from "@likec4/core";
4
- import { u as V } from "./tanstack-router-H-3IPlI6.js";
5
- import { B as G, H as v, P as g, u as $, a as K, i as U, b as A, c as X } from "./likec4-fsbHEjF3.js";
4
+ import { u as V } from "./tanstack-router-CsfoXGgM.js";
5
+ import { B as G, H as v, P as g, u as $, a as K, i as U, b as A, c as X } from "./likec4-B-gfuLMn.js";
6
6
  import { memo as k, useRef as Y, useMemo as B } from "react";
7
- import { c as b, I as q, n as S, u as j, i as J } from "./main-DbAbBULM.js";
8
- import { P as O, c as I, G as C, T as F, a as y, C as Q, b as W, d as ee, I as te, B as P, u as se } from "./mantine-BdYO4lQg.js";
7
+ import { c as b, I as q, n as S, u as j, i as J } from "./main-BJUkPUKs.js";
8
+ import { P as O, c as I, G as C, T as F, a as y, C as Q, b as W, d as ee, I as te, B as P, u as se } from "./mantine-pfC7caNp.js";
9
9
  import { usePreviewUrl as ae } from "virtual:likec4/previews";
10
10
  /**
11
11
  * @license @tabler/icons-react v3.29.0 - MIT
@@ -1,4 +1,4 @@
1
- function M(t, e) {
1
+ function H(t, e) {
2
2
  if (t.match(/^[a-z]+:\/\//i))
3
3
  return t;
4
4
  if (t.match(/^\/\//))
@@ -8,7 +8,7 @@ function M(t, e) {
8
8
  const r = document.implementation.createHTMLDocument(), n = r.createElement("base"), i = r.createElement("a");
9
9
  return r.head.appendChild(n), r.body.appendChild(i), e && (n.href = e), i.href = t, i.href;
10
10
  }
11
- const O = /* @__PURE__ */ (() => {
11
+ const M = /* @__PURE__ */ (() => {
12
12
  let t = 0;
13
13
  const e = () => (
14
14
  // eslint-disable-next-line no-bitwise
@@ -26,19 +26,19 @@ function d(t, e) {
26
26
  const n = (t.ownerDocument.defaultView || window).getComputedStyle(t).getPropertyValue(e);
27
27
  return n ? parseFloat(n.replace("px", "")) : 0;
28
28
  }
29
- function _(t) {
29
+ function O(t) {
30
30
  const e = d(t, "border-left-width"), r = d(t, "border-right-width");
31
31
  return t.clientWidth + e + r;
32
32
  }
33
- function W(t) {
33
+ function _(t) {
34
34
  const e = d(t, "border-top-width"), r = d(t, "border-bottom-width");
35
35
  return t.clientHeight + e + r;
36
36
  }
37
37
  function I(t, e = {}) {
38
- const r = e.width || _(t), n = e.height || W(t);
38
+ const r = e.width || O(t), n = e.height || _(t);
39
39
  return { width: r, height: n };
40
40
  }
41
- function v() {
41
+ function W() {
42
42
  let t, e;
43
43
  try {
44
44
  e = process;
@@ -100,7 +100,7 @@ function R(t, e, r) {
100
100
  const n = window.getComputedStyle(t, r), i = n.getPropertyValue("content");
101
101
  if (i === "" || i === "none")
102
102
  return;
103
- const s = O();
103
+ const s = M();
104
104
  try {
105
105
  e.className = `${e.className} ${s}`;
106
106
  } catch {
@@ -273,7 +273,7 @@ function dt(t) {
273
273
  }
274
274
  async function yt(t, e, r, n, i) {
275
275
  try {
276
- const s = r ? M(e, r) : e, c = E(e);
276
+ const s = r ? H(e, r) : e, c = E(e);
277
277
  let a;
278
278
  return i || (a = await x(s, c, n)), t.replace(mt(e), `$1${a}$3`);
279
279
  } catch {
@@ -324,10 +324,10 @@ async function bt(t, e) {
324
324
  });
325
325
  }
326
326
  async function St(t, e) {
327
- const n = f(t.childNodes).map((i) => V(i, e));
327
+ const n = f(t.childNodes).map((i) => v(i, e));
328
328
  await Promise.all(n).then(() => t);
329
329
  }
330
- async function V(t, e) {
330
+ async function v(t, e) {
331
331
  l(t, Element) && (await pt(t, e), await bt(t, e), await St(t, e));
332
332
  }
333
333
  function Et(t, e) {
@@ -391,10 +391,10 @@ async function xt(t, e) {
391
391
  const o = s.href, g = T(o).then((h) => L(h, e)).then((h) => A(h).forEach((p) => {
392
392
  try {
393
393
  i.insertRule(p, p.startsWith("@import") ? a += 1 : i.cssRules.length);
394
- } catch (H) {
394
+ } catch (V) {
395
395
  console.error("Error inserting rule from remote css", {
396
396
  rule: p,
397
- error: H
397
+ error: V
398
398
  });
399
399
  }
400
400
  })).catch((h) => {
@@ -448,10 +448,10 @@ async function $t(t, e) {
448
448
  }
449
449
  async function Tt(t, e = {}) {
450
450
  const { width: r, height: n } = I(t, e), i = await w(t, e, !0);
451
- return await $t(i, e), await V(i, e), Et(i, e), await z(i, r, n);
451
+ return await $t(i, e), await v(i, e), Et(i, e), await z(i, r, n);
452
452
  }
453
453
  async function Lt(t, e = {}) {
454
- const { width: r, height: n } = I(t, e), i = await Tt(t, e), s = await y(i), c = document.createElement("canvas"), a = c.getContext("2d"), o = e.pixelRatio || v(), g = e.canvasWidth || r, h = e.canvasHeight || n;
454
+ const { width: r, height: n } = I(t, e), i = await Tt(t, e), s = await y(i), c = document.createElement("canvas"), a = c.getContext("2d"), o = e.pixelRatio || W(), g = e.canvasWidth || r, h = e.canvasHeight || n;
455
455
  return c.width = g * o, c.height = h * o, e.skipAutoScale || B(c), c.style.width = `${g}`, c.style.height = `${h}`, e.backgroundColor && (a.fillStyle = e.backgroundColor, a.fillRect(0, 0, c.width, c.height)), a.drawImage(s, 0, 0, c.width, c.height), c;
456
456
  }
457
457
  async function At(t, e = {}) {