@marimo-team/islands 0.24.3-dev39 → 0.24.3-dev40
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/dist/{ConnectedDataExplorerComponent-DeiKXaGB.js → ConnectedDataExplorerComponent-KVhjDMSe.js} +1062 -1062
- package/dist/ErrorBoundary-CacTZz7K.js +200 -0
- package/dist/{abnfDiagram-VCTEODGH-DKNGRyhn.js → abnfDiagram-VCTEODGH-CpN0FRda.js} +2 -2
- package/dist/{any-language-editor-BdvsE_1G.js → any-language-editor-CycIVIeP.js} +13 -13
- package/dist/{architectureDiagram-5GKGNRK7-C9oCEyV-.js → architectureDiagram-5GKGNRK7-DDyj5SRB.js} +1 -1
- package/dist/{html-to-image-CZm_DMIE.js → cells-BSgNCBZ8.js} +5177 -8831
- package/dist/{chat-ui-D15itIKJ.js → chat-ui-CygzVJ9s.js} +1345 -1394
- package/dist/{check-mcQyZmFG.js → check-B7cIK6gb.js} +1 -1
- package/dist/{chunk-IMKFNOWR-ByL0a1rh.js → chunk-IMKFNOWR-BfwTebD0.js} +1 -1
- package/dist/{chunk-SHT3W25Y-D1Nb5X1c.js → chunk-SHT3W25Y-BspJEJ5H.js} +1 -1
- package/dist/{chunk-SVP7TREG-BShKxcfD.js → chunk-SVP7TREG-DX3rFNTe.js} +1 -1
- package/dist/{chunk-TICWLB2K-zpDbKPt8.js → chunk-TICWLB2K-fVF7Uujg.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-qcsoIIQw.js → classDiagram-ZZMXUADV-Fe-V14Sc.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-CAgMct5x.js → classDiagram-v2-VYDZK3BY-xTDg7lOs.js} +2 -2
- package/dist/code-visibility-BBNwvBcV.js +138 -0
- package/dist/{common-eNTtBSo2.js → common-DM3lblo7.js} +5531 -5730
- package/dist/copy-icon-CLdENY__.js +190 -0
- package/dist/{cynefinDiagram-5FMLGOSQ-BzBXigwN.js → cynefinDiagram-5FMLGOSQ-CFQrqzSX.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-B-75J283.js → dagre-GXQ25YYZ-xHNAUTyG.js} +1 -1
- package/dist/{data-grid-overlay-editor-DMu5X3F1.js → data-grid-overlay-editor-DjRvSwGI.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-Bzr5oWc0.js → diagram-S7CK7UJ4-Bt1rPbAx.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-CVIH_HJ_.js → diagram-UQ7AKVKN-D1sq5FoZ.js} +1 -1
- package/dist/{diagram-VX7I27RA-BmoMwYLC.js → diagram-VX7I27RA-BMwGFVD6.js} +1 -1
- package/dist/{diagram-Z3DM3KII-BW1w6mnj.js → diagram-Z3DM3KII--KLDR9Pl.js} +1 -1
- package/dist/dialog-CgNq6y9-.js +94 -0
- package/dist/{objectWithoutPropertiesLoose-BbiTb8zy.js → dist-CO1AwwG_.js} +516 -572
- package/dist/{dropdown-menu-WMrB1UnI.js → dropdown-menu-CZgjYSAh.js} +1437 -2793
- package/dist/{ebnfDiagram-PWID7BFC-90Q6gkC0.js → ebnfDiagram-PWID7BFC-WnG4cvSQ.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-BZkLy3TR.js → erDiagram-RLTQ6QDP-DhzKiYHc.js} +1 -1
- package/dist/error-banner-B94dcDmP.js +391 -0
- package/dist/error-entries-iJn-Nryx.js +56 -0
- package/dist/{esm-qM9GvHZi.js → esm-h8f7-1CJ.js} +316 -315
- package/dist/feedback-button-BkFFL-wb.js +380 -0
- package/dist/{flowDiagram-HODETNUW-CD1F_wj5.js → flowDiagram-HODETNUW-6dMdB8pR.js} +2 -2
- package/dist/{formats-B-gajYGs.js → formats-BR5iGb4s.js} +1 -1
- package/dist/{glide-data-editor-DzFEatOq.js → glide-data-editor-CeAOHG6x.js} +117 -116
- package/dist/{glide-utils-4WmLlefP.js → glide-utils-B3rUT5PI.js} +2 -2
- package/dist/globals-C74RodJy.js +19 -0
- package/dist/html-to-image-kpuRfdfZ.js +3253 -0
- package/dist/{infoDiagram-27XIBGKW-t0zIIRVa.js → infoDiagram-27XIBGKW-BagtCX_5.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-DtQUIYgx.js → ishikawaDiagram-5VMMS53U-DByDehYy.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-CUMmwuNB.js → kanban-definition-UXKFOSKX-BxwkbBI_.js} +1 -1
- package/dist/{label-e37ixur5.js → label-BJ49YTvk.js} +1 -1
- package/dist/main.js +4717 -4728
- package/dist/{mermaid-CMLxoJ0m.js → mermaid-DPNuhemn.js} +35 -35
- package/dist/{mindmap-definition-YA3MSWOX-DnbkiQla.js → mindmap-definition-YA3MSWOX-Cgvojw3y.js} +1 -1
- package/dist/{number-overlay-editor-lGqRHkFt.js → number-overlay-editor-DDyIkEk3.js} +1 -1
- package/dist/objectWithoutPropertiesLoose-BRDcTsfB.js +23 -0
- package/dist/{pegDiagram-XKGWAZYB-qgqAYMdv.js → pegDiagram-XKGWAZYB-DahHhYyN.js} +2 -2
- package/dist/{pieDiagram-E7YTZNPT-DJUB6w6B.js → pieDiagram-E7YTZNPT-CCtX0oCK.js} +1 -1
- package/dist/{process-output-DuupNR0m.js → process-output-DFe2tVIY.js} +7 -6
- package/dist/{railroadDiagram-O6MQD6OU-C0dtw4sR.js → railroadDiagram-O6MQD6OU-Du5NsPUb.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-DqaTsUuC.js → requirementDiagram-BXWQKSXE-0pmmxL6_.js} +1 -1
- package/dist/{reveal-component-CNqmC7b6.js → reveal-component-CRy68FxJ.js} +625 -625
- package/dist/{select-UMOSCa3W.js → select-C6plhmZr.js} +308 -553
- package/dist/{sequenceDiagram-WJ2MYXX4-D2NyWGuu.js → sequenceDiagram-WJ2MYXX4-DB-ChWwU.js} +1 -1
- package/dist/{spec-BiD5y7ft.js → spec-CAYwFeV6.js} +4 -4
- package/dist/{stateDiagram-D77RDMKH-JChw35bc.js → stateDiagram-D77RDMKH-orN6AwMx.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-BfVY7OxA.js → stateDiagram-v2-MP3YSRHH-o05_rJN8.js} +2 -2
- package/dist/{swimlanes-42K2YHIH-eAB6utyY.js → swimlanes-42K2YHIH-BkSDcqDT.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-Cnpd2YtA.js → swimlanesDiagram-VR7AAH4N-D_nFQfRc.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-DlnODX3U.js → timeline-definition-24CTP7MA-BuqJUIRZ.js} +1 -1
- package/dist/{toDate-0cxDmdsp.js → toDate-WXg1yLcI.js} +2 -2
- package/dist/toast-DvY70eFX.js +1834 -0
- package/dist/tooltip-qB8NlSqV.js +1742 -0
- package/dist/{schemas-BDZr-nP0.js → use-restore-focus-D5D9xEjZ.js} +1385 -1166
- package/dist/{useAsyncData-DCIhDLCe.js → useAsyncData-BD6AStMt.js} +1 -1
- package/dist/{useDateFormatter-BKpQHt-W.js → useDateFormatter-BRTPsUK7.js} +2 -2
- package/dist/{useDeepCompareMemoize-CLaZB7Gc.js → useDeepCompareMemoize-D_HNdyvI.js} +1 -1
- package/dist/{useLifecycle-C1ViBACC.js → useLifecycle-DPgiiwwU.js} +2 -2
- package/dist/useNumberFormatter-BfDpa21j.js +251 -0
- package/dist/{useTheme-Da9LJvrQ.js → useTheme-DzXmYZ5V.js} +83 -83
- package/dist/{vega-component-Bt6d8B4Q.js → vega-component-D0QXopU8.js} +27 -27
- package/dist/{vennDiagram-4TSXK5OY-B_m5KxUg.js → vennDiagram-4TSXK5OY-CTUlJ2PK.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-Dw-Lgv3D.js → wardleyDiagram-VM6X3IG4-3evLUb0M.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-BjfRms1e.js → xychartDiagram-S5SC5T6Z-DL2E3K8-.js} +1 -1
- package/package.json +1 -1
- package/src/components/editor/boundary/ErrorBoundary.tsx +38 -16
- package/src/components/editor/boundary/__tests__/ErrorBoundary.test.tsx +311 -0
- package/src/components/editor/chrome/components/__tests__/feedback-button.test.tsx +94 -0
- package/src/components/editor/chrome/components/feedback-button.tsx +53 -33
- package/src/components/ui/use-toast.ts +8 -0
- package/dist/ErrorBoundary-B3IKS4qY.js +0 -125
- package/dist/copy-C0N4m1lm.js +0 -141
- package/dist/dist-6ChWbo8z.js +0 -1360
- package/dist/error-banner-hCaH06e3.js +0 -611
- package/dist/tooltip-CdE8k0pS.js +0 -390
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
+
import { h as t, t as n } from "./button-DdXAm8iz.js";
|
|
3
|
+
import { t as r } from "./react-ofJbxM4x.js";
|
|
4
|
+
import { t as i } from "./compiler-runtime-Cj8ZWiNS.js";
|
|
5
|
+
import { a, t as o } from "./copy-icon-CLdENY__.js";
|
|
6
|
+
import { g as s, i as c } from "./tooltip-qB8NlSqV.js";
|
|
7
|
+
import { t as l } from "./react-dom-BUgJ-ab_.js";
|
|
8
|
+
import { t as u } from "./jsx-runtime-DgDPJV9S.js";
|
|
9
|
+
import { Q as d, Y as f } from "./use-restore-focus-D5D9xEjZ.js";
|
|
10
|
+
import { a as p, i as m, o as h, r as g, s as _, t as v } from "./toast-DvY70eFX.js";
|
|
11
|
+
import { _ as y, x as b } from "./useTheme-DzXmYZ5V.js";
|
|
12
|
+
import { o as x, t as S } from "./dialog-CgNq6y9-.js";
|
|
13
|
+
var C = s("plus", [["path", {
|
|
14
|
+
d: "M5 12h14",
|
|
15
|
+
key: "1ays0h"
|
|
16
|
+
}], ["path", {
|
|
17
|
+
d: "M12 5v14",
|
|
18
|
+
key: "s699le"
|
|
19
|
+
}]]), w = i(), T = /* @__PURE__ */ e(r()), E = (0, T.createContext)(null), D = {
|
|
20
|
+
didCatch: !1,
|
|
21
|
+
error: null
|
|
22
|
+
}, O = class extends T.Component {
|
|
23
|
+
constructor(e) {
|
|
24
|
+
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = D;
|
|
25
|
+
}
|
|
26
|
+
static getDerivedStateFromError(e) {
|
|
27
|
+
return {
|
|
28
|
+
didCatch: !0,
|
|
29
|
+
error: e
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
resetErrorBoundary() {
|
|
33
|
+
let { error: e } = this.state;
|
|
34
|
+
if (e !== null) {
|
|
35
|
+
var t, n, r = [...arguments];
|
|
36
|
+
(t = (n = this.props).onReset) == null || t.call(n, {
|
|
37
|
+
args: r,
|
|
38
|
+
reason: "imperative-api"
|
|
39
|
+
}), this.setState(D);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
componentDidCatch(e, t) {
|
|
43
|
+
var n, r;
|
|
44
|
+
(n = (r = this.props).onError) == null || n.call(r, e, t);
|
|
45
|
+
}
|
|
46
|
+
componentDidUpdate(e, t) {
|
|
47
|
+
let { didCatch: n } = this.state, { resetKeys: r } = this.props;
|
|
48
|
+
if (n && t.error !== null && k(e.resetKeys, r)) {
|
|
49
|
+
var i, a;
|
|
50
|
+
(i = (a = this.props).onReset) == null || i.call(a, {
|
|
51
|
+
next: r,
|
|
52
|
+
prev: e.resetKeys,
|
|
53
|
+
reason: "keys"
|
|
54
|
+
}), this.setState(D);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
render() {
|
|
58
|
+
let { children: e, fallbackRender: t, FallbackComponent: n, fallback: r } = this.props, { didCatch: i, error: a } = this.state, o = e;
|
|
59
|
+
if (i) {
|
|
60
|
+
let e = {
|
|
61
|
+
error: a,
|
|
62
|
+
resetErrorBoundary: this.resetErrorBoundary
|
|
63
|
+
};
|
|
64
|
+
if (typeof t == "function") o = t(e);
|
|
65
|
+
else if (n) o = (0, T.createElement)(n, e);
|
|
66
|
+
else if (r !== void 0) o = r;
|
|
67
|
+
else throw a;
|
|
68
|
+
}
|
|
69
|
+
return (0, T.createElement)(E.Provider, { value: {
|
|
70
|
+
didCatch: i,
|
|
71
|
+
error: a,
|
|
72
|
+
resetErrorBoundary: this.resetErrorBoundary
|
|
73
|
+
} }, o);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
function k() {
|
|
77
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
78
|
+
return e.length !== t.length || e.some((e, n) => !Object.is(e, t[n]));
|
|
79
|
+
}
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/components/ui/toaster.tsx
|
|
82
|
+
var A = /* @__PURE__ */ e(l(), 1), j = u(), M = () => {
|
|
83
|
+
let e = (0, w.c)(5), { toasts: t } = a(), n;
|
|
84
|
+
e[0] === t ? n = e[1] : (n = t.map(F), e[0] = t, e[1] = n);
|
|
85
|
+
let r;
|
|
86
|
+
e[2] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ (0, j.jsx)(N, {}), e[2] = r) : r = e[2];
|
|
87
|
+
let i;
|
|
88
|
+
return e[3] === n ? i = e[4] : (i = /* @__PURE__ */ (0, j.jsxs)(p, { children: [n, r] }), e[3] = n, e[4] = i), i;
|
|
89
|
+
}, N = f(({ container: e }) => (0, A.createPortal)(/* @__PURE__ */ (0, j.jsx)(d, { children: /* @__PURE__ */ (0, j.jsx)(_, {}) }), e ?? document.body)), P = (e) => {
|
|
90
|
+
let n = (0, w.c)(23), r, i, a, s, c;
|
|
91
|
+
n[0] === e ? (r = n[1], i = n[2], a = n[3], s = n[4], c = n[5]) : ({toastTitle: s, toastDescription: a, action: r, variant: c, ...i} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a, n[4] = s, n[5] = c);
|
|
92
|
+
let l = (0, T.useRef)(null), u = !!a && !r && c === "danger", d;
|
|
93
|
+
n[6] === s ? d = n[7] : (d = s && /* @__PURE__ */ (0, j.jsx)(h, { children: s }), n[6] = s, n[7] = d);
|
|
94
|
+
let f;
|
|
95
|
+
n[8] === a ? f = n[9] : (f = a && /* @__PURE__ */ (0, j.jsx)(m, {
|
|
96
|
+
ref: l,
|
|
97
|
+
children: a
|
|
98
|
+
}), n[8] = a, n[9] = f);
|
|
99
|
+
let p;
|
|
100
|
+
n[10] !== d || n[11] !== f ? (p = /* @__PURE__ */ (0, j.jsxs)("div", {
|
|
101
|
+
className: "grid min-w-0 flex-1 gap-1",
|
|
102
|
+
children: [d, f]
|
|
103
|
+
}), n[10] = d, n[11] = f, n[12] = p) : p = n[12];
|
|
104
|
+
let _;
|
|
105
|
+
n[13] !== u || n[14] !== a ? (_ = u && /* @__PURE__ */ (0, j.jsx)(o, {
|
|
106
|
+
tooltip: "Copy error",
|
|
107
|
+
ariaLabel: "Copy error",
|
|
108
|
+
className: "h-4 w-4",
|
|
109
|
+
buttonClassName: t("absolute right-8 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity", "hover:text-foreground focus:opacity-100 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 group-hover:opacity-100", "group-[.destructive]:text-red-300 hover:group-[.destructive]:text-red-500 focus-visible:group-[.destructive]:ring-red-400 focus-visible:group-[.destructive]:ring-offset-red-600"),
|
|
110
|
+
value: () => l.current?.innerText ?? (typeof a == "string" ? a : "")
|
|
111
|
+
}), n[13] = u, n[14] = a, n[15] = _) : _ = n[15];
|
|
112
|
+
let y;
|
|
113
|
+
n[16] === Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ (0, j.jsx)(g, {}), n[16] = y) : y = n[16];
|
|
114
|
+
let b;
|
|
115
|
+
return n[17] !== r || n[18] !== i || n[19] !== p || n[20] !== _ || n[21] !== c ? (b = /* @__PURE__ */ (0, j.jsxs)(v, {
|
|
116
|
+
variant: c,
|
|
117
|
+
...i,
|
|
118
|
+
children: [
|
|
119
|
+
p,
|
|
120
|
+
r,
|
|
121
|
+
_,
|
|
122
|
+
y
|
|
123
|
+
]
|
|
124
|
+
}), n[17] = r, n[18] = i, n[19] = p, n[20] = _, n[21] = c, n[22] = b) : b = n[22], b;
|
|
125
|
+
};
|
|
126
|
+
function F(e) {
|
|
127
|
+
let { id: t, title: n, description: r, action: i, variant: a, ...o } = e;
|
|
128
|
+
return /* @__PURE__ */ (0, j.jsx)(P, {
|
|
129
|
+
toastTitle: n,
|
|
130
|
+
toastDescription: r,
|
|
131
|
+
action: i,
|
|
132
|
+
variant: a,
|
|
133
|
+
...o
|
|
134
|
+
}, t);
|
|
135
|
+
}
|
|
136
|
+
//#endregion
|
|
137
|
+
//#region src/components/editor/boundary/ErrorBoundary.tsx
|
|
138
|
+
var I = (0, T.lazy)(() => import("./feedback-button-BkFFL-wb.js").then((e) => ({ default: e.FeedbackModal }))), L = (e) => {
|
|
139
|
+
let t = (0, w.c)(2), n;
|
|
140
|
+
return t[0] === e.children ? n = t[1] : (n = /* @__PURE__ */ (0, j.jsx)(O, {
|
|
141
|
+
FallbackComponent: R,
|
|
142
|
+
children: e.children
|
|
143
|
+
}), t[0] = e.children, t[1] = n), n;
|
|
144
|
+
}, R = (e) => {
|
|
145
|
+
let t = (0, w.c)(17), [r, i] = (0, T.useState)(!1), a;
|
|
146
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ (0, j.jsx)("h1", {
|
|
147
|
+
className: "text-2xl font-bold",
|
|
148
|
+
children: "Something went wrong"
|
|
149
|
+
}), t[0] = a) : a = t[0];
|
|
150
|
+
let o = e.error?.message, s;
|
|
151
|
+
t[1] === o ? s = t[2] : (s = /* @__PURE__ */ (0, j.jsx)("pre", {
|
|
152
|
+
className: "text-xs bg-muted/40 border rounded-md p-4 max-w-[80%] whitespace-normal",
|
|
153
|
+
children: o
|
|
154
|
+
}), t[1] = o, t[2] = s);
|
|
155
|
+
let l;
|
|
156
|
+
t[3] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ (0, j.jsx)(x, {
|
|
157
|
+
asChild: !0,
|
|
158
|
+
children: /* @__PURE__ */ (0, j.jsx)(n, {
|
|
159
|
+
variant: "outline",
|
|
160
|
+
children: "Report an issue"
|
|
161
|
+
})
|
|
162
|
+
}), t[3] = l) : l = t[3];
|
|
163
|
+
let u;
|
|
164
|
+
t[4] === r ? u = t[5] : (u = r && /* @__PURE__ */ (0, j.jsx)(b, {
|
|
165
|
+
store: y,
|
|
166
|
+
children: /* @__PURE__ */ (0, j.jsxs)(c, { children: [/* @__PURE__ */ (0, j.jsx)(T.Suspense, {
|
|
167
|
+
fallback: null,
|
|
168
|
+
children: /* @__PURE__ */ (0, j.jsx)(I, {})
|
|
169
|
+
}), /* @__PURE__ */ (0, j.jsx)(M, {})] })
|
|
170
|
+
}), t[4] = r, t[5] = u);
|
|
171
|
+
let d;
|
|
172
|
+
t[6] !== r || t[7] !== u ? (d = /* @__PURE__ */ (0, j.jsxs)(S, {
|
|
173
|
+
open: r,
|
|
174
|
+
onOpenChange: i,
|
|
175
|
+
children: [l, u]
|
|
176
|
+
}), t[6] = r, t[7] = u, t[8] = d) : d = t[8];
|
|
177
|
+
let f;
|
|
178
|
+
t[9] === e.resetErrorBoundary ? f = t[10] : (f = /* @__PURE__ */ (0, j.jsx)(n, {
|
|
179
|
+
"data-testid": "reset-error-boundary-button",
|
|
180
|
+
onClick: e.resetErrorBoundary,
|
|
181
|
+
variant: "outline",
|
|
182
|
+
children: "Try again"
|
|
183
|
+
}), t[9] = e.resetErrorBoundary, t[10] = f);
|
|
184
|
+
let p;
|
|
185
|
+
t[11] !== d || t[12] !== f ? (p = /* @__PURE__ */ (0, j.jsxs)("div", {
|
|
186
|
+
className: "flex flex-wrap items-center justify-center gap-2",
|
|
187
|
+
children: [d, f]
|
|
188
|
+
}), t[11] = d, t[12] = f, t[13] = p) : p = t[13];
|
|
189
|
+
let m;
|
|
190
|
+
return t[14] !== s || t[15] !== p ? (m = /* @__PURE__ */ (0, j.jsxs)("div", {
|
|
191
|
+
className: "flex-1 flex items-center justify-center flex-col space-y-4 max-w-2xl mx-auto px-6 pb-6",
|
|
192
|
+
children: [
|
|
193
|
+
a,
|
|
194
|
+
s,
|
|
195
|
+
p
|
|
196
|
+
]
|
|
197
|
+
}), t[14] = s, t[15] = p, t[16] = m) : m = t[16], m;
|
|
198
|
+
};
|
|
199
|
+
//#endregion
|
|
200
|
+
export { C as n, L as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as e } from "./src-CA_m4ONl.js";
|
|
2
2
|
import { n as t } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
|
|
3
3
|
import "./chunk-DU6HZSFF-BUgAHvnM.js";
|
|
4
|
-
import "./mermaid-
|
|
4
|
+
import "./mermaid-DPNuhemn.js";
|
|
5
5
|
import { m as n, t as r } from "./mermaid-parser.core-DxuSfYwJ.js";
|
|
6
|
-
import { n as i, r as a, t as o } from "./chunk-SVP7TREG-
|
|
6
|
+
import { n as i, r as a, t as o } from "./chunk-SVP7TREG-DX3rFNTe.js";
|
|
7
7
|
import { t as s } from "./chunk-JWPE2WC7-DJvv1t8U.js";
|
|
8
8
|
//#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/abnfDiagram-VCTEODGH.mjs
|
|
9
9
|
var c = n().RailroadAbnf.parser.LangiumParser, l = /* @__PURE__ */ t((e) => {
|
|
@@ -2,15 +2,15 @@ import "./rolldown-runtime-Cb76FRpK.js";
|
|
|
2
2
|
import { g as e } from "./button-DdXAm8iz.js";
|
|
3
3
|
import { t } from "./react-ofJbxM4x.js";
|
|
4
4
|
import { t as n } from "./compiler-runtime-Cj8ZWiNS.js";
|
|
5
|
-
import { t as r } from "./
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { t as o } from "./esm-
|
|
5
|
+
import { t as r } from "./copy-icon-CLdENY__.js";
|
|
6
|
+
import { t as i } from "./jsx-runtime-DgDPJV9S.js";
|
|
7
|
+
import { n as a } from "./error-banner-B94dcDmP.js";
|
|
8
|
+
import { t as o } from "./esm-h8f7-1CJ.js";
|
|
9
9
|
import { n as s, t as c } from "./esm-BElI3qKH.js";
|
|
10
10
|
//#region src/plugins/impl/code/any-language-editor.tsx
|
|
11
11
|
var l = n();
|
|
12
12
|
t();
|
|
13
|
-
var u =
|
|
13
|
+
var u = i(), d = {
|
|
14
14
|
python: "py",
|
|
15
15
|
python3: "py",
|
|
16
16
|
javascript: "js",
|
|
@@ -24,31 +24,31 @@ function p(e) {
|
|
|
24
24
|
return e ? e in c : !1;
|
|
25
25
|
}
|
|
26
26
|
var m = (t) => {
|
|
27
|
-
let n = (0, l.c)(29),
|
|
27
|
+
let n = (0, l.c)(29), i, m, h, g, _, v;
|
|
28
28
|
if (n[0] !== t) {
|
|
29
|
-
let { language: e, hideUnsupportedLanguageErrors:
|
|
30
|
-
m =
|
|
31
|
-
} else
|
|
29
|
+
let { language: e, hideUnsupportedLanguageErrors: r, showCopyButton: a, extensions: o, ...s } = t;
|
|
30
|
+
m = r, _ = a, g = s, h = e, i = o === void 0 ? f : o, h = d[h || ""] || h, v = p(h), n[0] = t, n[1] = i, n[2] = m, n[3] = h, n[4] = g, n[5] = _, n[6] = v;
|
|
31
|
+
} else i = n[1], m = n[2], h = n[3], g = n[4], _ = n[5], v = n[6];
|
|
32
32
|
let y = v;
|
|
33
33
|
y || e.warn(`Language ${h} not found in CodeMirror.`);
|
|
34
34
|
let b;
|
|
35
35
|
bb0: {
|
|
36
36
|
if (!p(h)) {
|
|
37
|
-
b =
|
|
37
|
+
b = i;
|
|
38
38
|
break bb0;
|
|
39
39
|
}
|
|
40
40
|
let e;
|
|
41
41
|
n[7] === h ? e = n[8] : (e = s(h), n[7] = h, n[8] = e);
|
|
42
42
|
let t;
|
|
43
|
-
n[9] !==
|
|
43
|
+
n[9] !== i || n[10] !== e ? (t = [e, ...i].filter(Boolean), n[9] = i, n[10] = e, n[11] = t) : t = n[11], b = t;
|
|
44
44
|
}
|
|
45
45
|
let x = b, S;
|
|
46
|
-
n[12] !== m || n[13] !== y || n[14] !== h ? (S = !y && !m && /* @__PURE__ */ (0, u.jsx)(
|
|
46
|
+
n[12] !== m || n[13] !== y || n[14] !== h ? (S = !y && !m && /* @__PURE__ */ (0, u.jsx)(a, {
|
|
47
47
|
className: "mb-1 rounded-sm",
|
|
48
48
|
error: `Language ${h} not supported. Supported languages are: ${Object.keys(c).join(", ")}`
|
|
49
49
|
}), n[12] = m, n[13] = y, n[14] = h, n[15] = S) : S = n[15];
|
|
50
50
|
let C;
|
|
51
|
-
n[16] !== y || n[17] !== g || n[18] !== _ ? (C = _ && y && /* @__PURE__ */ (0, u.jsx)(
|
|
51
|
+
n[16] !== y || n[17] !== g || n[18] !== _ ? (C = _ && y && /* @__PURE__ */ (0, u.jsx)(r, {
|
|
52
52
|
tooltip: !1,
|
|
53
53
|
buttonClassName: "absolute top-2 right-2 z-10 hover-action",
|
|
54
54
|
className: "h-4 w-4 text-muted-foreground",
|
package/dist/{architectureDiagram-5GKGNRK7-C9oCEyV-.js → architectureDiagram-5GKGNRK7-DDyj5SRB.js}
RENAMED
|
@@ -5,7 +5,7 @@ import { n as o } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
|
|
|
5
5
|
import { H as s, J as c, K as l, U as u, a as d, b as f, f as p, v as m, w as h, x as g, y as _, z as v } from "./chunk-DU6HZSFF-BUgAHvnM.js";
|
|
6
6
|
import { i as y, r as b, t as x } from "./chunk-PWAF6VOD-CTFCL0jI.js";
|
|
7
7
|
import { n as S } from "./chunk-GMAD6QVW-Czynz8aA.js";
|
|
8
|
-
import { p as C } from "./mermaid-
|
|
8
|
+
import { p as C } from "./mermaid-DPNuhemn.js";
|
|
9
9
|
import { n as w } from "./mermaid-parser.core-DxuSfYwJ.js";
|
|
10
10
|
import { t as T } from "./chunk-JWPE2WC7-DJvv1t8U.js";
|
|
11
11
|
import { t as E } from "./cytoscape.esm-jJhXJpLB.js";
|