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.
- package/__app__/src/chunks/{-index-overview-Csw3b-Fk.js → -index-overview-B8hfKX1i.js} +4 -4
- package/__app__/src/chunks/{index-DrdkNxpF.js → index-KI-kE60c.js} +14 -14
- package/__app__/src/chunks/{likec4-fsbHEjF3.js → likec4-B-gfuLMn.js} +2324 -2323
- package/__app__/src/chunks/{main-DbAbBULM.js → main-BJUkPUKs.js} +11045 -10302
- package/__app__/src/chunks/{mantine-BdYO4lQg.js → mantine-pfC7caNp.js} +4060 -4535
- package/__app__/src/chunks/{tanstack-router-H-3IPlI6.js → tanstack-router-CsfoXGgM.js} +730 -730
- package/__app__/src/main.js +1 -1
- package/__app__/src/style.css +1 -1
- package/__app__/webcomponent/webcomponent.js +43 -39161
- package/dist/cli/index.cjs +105 -89
- package/dist/cli/index.mjs +130 -114
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +140 -2
- package/dist/index.d.mts +140 -2
- package/dist/index.d.ts +140 -2
- package/dist/index.mjs +1 -1
- package/dist/shared/likec4.CSvz6V2S.cjs +1782 -0
- package/dist/shared/likec4.DIBfXG6W.mjs +1782 -0
- package/icons/all.d.ts +1 -0
- package/icons/all.js +2 -0
- package/icons/azure/arc-postgre-sql.js +73 -0
- package/package.json +29 -24
- package/react/index.js +7135 -6574
- package/react/style.css +1 -1
- package/dist/chunks/prompt.cjs +0 -45
- package/dist/chunks/prompt.mjs +0 -45
- package/dist/shared/likec4.BH2DNgw1.mjs +0 -1855
- package/dist/shared/likec4.DIyCHEbR.cjs +0 -1855
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 ||
|
|
38
|
+
const r = e.width || O(t), n = e.height || _(t);
|
|
39
39
|
return { width: r, height: n };
|
|
40
40
|
}
|
|
41
|
-
function
|
|
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 =
|
|
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 ?
|
|
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) =>
|
|
327
|
+
const n = f(t.childNodes).map((i) => v(i, e));
|
|
328
328
|
await Promise.all(n).then(() => t);
|
|
329
329
|
}
|
|
330
|
-
async function
|
|
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 (
|
|
394
|
+
} catch (V) {
|
|
395
395
|
console.error("Error inserting rule from remote css", {
|
|
396
396
|
rule: p,
|
|
397
|
-
error:
|
|
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
|
|
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 ||
|
|
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 = {}) {
|