@marimo-team/islands 0.25.3-dev170 → 0.25.3-dev175
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-BbSXV-Xa.js → ConnectedDataExplorerComponent-Le_OBfmt.js} +9 -9
- package/dist/{ErrorBoundary-NE86qEWZ.js → ErrorBoundary-DNvcAIsP.js} +8 -8
- package/dist/{abnfDiagram-VCTEODGH-D7n07nXf.js → abnfDiagram-VCTEODGH-Tf1ghyQQ.js} +2 -2
- package/dist/{any-language-editor-3E24SnCV.js → any-language-editor-BVFHDDQ3.js} +4 -4
- package/dist/{architectureDiagram-5GKGNRK7-D6CjRib5.js → architectureDiagram-5GKGNRK7-xlnbTG0T.js} +1 -1
- package/dist/{chat-ui-CC7GekpG.js → chat-ui-X-cWrL9u.js} +1218 -1218
- package/dist/{check-SpOMoCLP.js → check-C9Mp9eCK.js} +1 -1
- package/dist/{chunk-IMKFNOWR-6dtPz7uS.js → chunk-IMKFNOWR-Cmd4a5jy.js} +1 -1
- package/dist/{chunk-SHT3W25Y-BwnFNKDA.js → chunk-SHT3W25Y-mSNp-WpO.js} +1 -1
- package/dist/{chunk-SVP7TREG-D2eV4vBJ.js → chunk-SVP7TREG-CWC49D8X.js} +1 -1
- package/dist/{chunk-TICWLB2K-BDs4-_-r.js → chunk-TICWLB2K-De9FINtG.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-DCJnf_8v.js → classDiagram-ZZMXUADV-DweTkYdp.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-BOmSzPBD.js → classDiagram-v2-VYDZK3BY-A6MR2TiE.js} +2 -2
- package/dist/{code-visibility-Bzvc6ajl.js → code-visibility-CH1lmM1h.js} +5 -5
- package/dist/{common-Ciw4zkh2.js → common-DIrS1UR9.js} +1081 -1085
- package/dist/{copy-icon-C1trdvVt.js → copy-icon-De584pZ4.js} +2 -2
- package/dist/{cynefinDiagram-5FMLGOSQ-Bln_Soky.js → cynefinDiagram-5FMLGOSQ-BSvo5le-.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-D-nf7WzW.js → dagre-GXQ25YYZ-tXRQslO6.js} +1 -1
- package/dist/{data-grid-overlay-editor-AQREmxI7.js → data-grid-overlay-editor-DFLZvFK0.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-PsgSMkY2.js → diagram-S7CK7UJ4-r3t5VtwI.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-DfwfUuSw.js → diagram-UQ7AKVKN-qgbC8YnT.js} +1 -1
- package/dist/{diagram-VX7I27RA-C9_e-oMc.js → diagram-VX7I27RA-CiHxEwtp.js} +1 -1
- package/dist/{diagram-Z3DM3KII-CWLa5tuY.js → diagram-Z3DM3KII-D95u15Ev.js} +1 -1
- package/dist/{dialog-DgeqyrEZ.js → dialog-DVRfQuhD.js} +24 -24
- package/dist/{dist-F8Ep36rk.js → dist-B1M0bGO3.js} +1 -1
- package/dist/{dist-D6d86eNJ.js → dist-BA13RJj5.js} +1 -1
- package/dist/{dist-Bvs24R_E.js → dist-BJtmSgcE.js} +48 -48
- package/dist/{dist-CN_BeG2I.js → dist-Ba2VIn1K.js} +53 -53
- package/dist/{dist-PXYI_yuP.js → dist-Bj4bmwUm.js} +12 -12
- package/dist/{dist-DoE4XJBC.js → dist-BmS-ZGjl.js} +8626 -8626
- package/dist/{dist-BorMD-uX.js → dist-Bzogh7CW.js} +87 -87
- package/dist/{dist-CN8zI-XC.js → dist-CThPVKaP.js} +1385 -1382
- package/dist/{dist-DiDibOYr.js → dist-CTi5FTiV.js} +87 -87
- package/dist/{dist-diIx5qJW.js → dist-Ck_C32ye.js} +2 -2
- package/dist/{dist-BLfKmR-l.js → dist-D1fnFp1J.js} +1 -1
- package/dist/{dist-OR1OnN-y.js → dist-D3x9__Fu.js} +46 -46
- package/dist/{dist-BMQf5zIS.js → dist-D7mrh5sO.js} +36 -36
- package/dist/{dist-CSJ0MDRw.js → dist-D9Q3xjiP.js} +1 -1
- package/dist/{dist-BuaRHxOc.js → dist-DP60Ubh8.js} +2 -2
- package/dist/{dist-CSbh1PNP.js → dist-DTv9KkpW.js} +12 -12
- package/dist/{dist-D-wwqlzJ.js → dist-DVVwOfrD.js} +109 -109
- package/dist/{dist-C8fAKSH1.js → dist-DYXM73-k.js} +36 -36
- package/dist/{dist-DBtSl3sf.js → dist-DjeybPOb.js} +1 -1
- package/dist/{dist-CrSP_H1M.js → dist-DtGn9N4h.js} +197 -197
- package/dist/{dist-CLdpGQVr.js → dist-KN80qWCP.js} +2 -2
- package/dist/{dist-Cg7gzw-a.js → dist-O0qFpEJh.js} +56 -56
- package/dist/{dist-CkTTIdBe.js → dist-OUle2RT7.js} +207 -207
- package/dist/{dist-BK4Oj99o.js → dist-T5rh6JvL.js} +1 -1
- package/dist/{dropdown-menu-B6ftyzOg.js → dropdown-menu-DCMbbQ35.js} +691 -691
- package/dist/{ebnfDiagram-PWID7BFC-B1QRM58v.js → ebnfDiagram-PWID7BFC-P7e4bryK.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-DJK_FqvW.js → erDiagram-RLTQ6QDP-CUHZcmRj.js} +1 -1
- package/dist/{error-banner-D40pmfQQ.js → error-banner-DxJ3s8YO.js} +57 -57
- package/dist/{error-entries-DgK3wUJR.js → error-entries-mpoD5t79.js} +4985 -5006
- package/dist/{esm-D2gTsXEV.js → esm-Bbw_Njjx.js} +575 -575
- package/dist/{esm-AMFssoNp.js → esm-mDQNEFe_.js} +354 -354
- package/dist/{feedback-button-8a6SETmT.js → feedback-button-DL0DJ-LB.js} +30 -30
- package/dist/{flowDiagram-HODETNUW-Uxc25XSJ.js → flowDiagram-HODETNUW-BGZ95AzI.js} +2 -2
- package/dist/{formats-DQCyPd5Z.js → formats-DI7HEVv7.js} +1 -1
- package/dist/{glide-data-editor-B70oke_v.js → glide-data-editor-n4wnx19S.js} +10 -10
- package/dist/{glide-utils-Dz_F4pAY.js → glide-utils-D98laidb.js} +2 -2
- package/dist/{globals-Cxd5hNlI.js → globals-NCsYyjpB.js} +3 -3
- package/dist/{html-to-image-D4yG5Ru0.js → html-to-image-BoZthB4P.js} +467 -458
- package/dist/{infoDiagram-27XIBGKW-DmjxqwL0.js → infoDiagram-27XIBGKW-BF0YX70D.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-NgCLHqQi.js → ishikawaDiagram-5VMMS53U-_itsAAn-.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-CZaG-iam.js → kanban-definition-UXKFOSKX-VNW2Beqh.js} +1 -1
- package/dist/{label-D9_-zSg-.js → label-Qvw1E97W.js} +1 -1
- package/dist/main.js +8257 -6606
- package/dist/{mermaid-CSvw7c71.js → mermaid-CZ6FrClS.js} +35 -35
- package/dist/{mindmap-definition-YA3MSWOX-DJYQBDH_.js → mindmap-definition-YA3MSWOX-DR4ripvd.js} +1 -1
- package/dist/{number-overlay-editor-ChK-SKUk.js → number-overlay-editor-rlvo4mo3.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-CHKO_dAe.js → pegDiagram-XKGWAZYB-CFr3XlGl.js} +2 -2
- package/dist/{pieDiagram-E7YTZNPT-DVevbMAo.js → pieDiagram-E7YTZNPT-j91XYSLY.js} +1 -1
- package/dist/{process-output-DxvBAeL3.js → process-output-DLS4Mqg_.js} +4 -4
- package/dist/{railroadDiagram-O6MQD6OU-Detj1kcB.js → railroadDiagram-O6MQD6OU-Cd47ZV9E.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-BLFD0T_Z.js → requirementDiagram-BXWQKSXE-eJH6gLtX.js} +1 -1
- package/dist/{reveal-component-CXMXeDZD.js → reveal-component-BJfmRUzb.js} +9 -9
- package/dist/{select-CkF_GBxO.js → select-2KOiReNY.js} +324 -324
- package/dist/{sequenceDiagram-WJ2MYXX4-BZBgatQV.js → sequenceDiagram-WJ2MYXX4-DdfFEIrm.js} +1 -1
- package/dist/{spec-Mnkn3XEr.js → spec-h69nC3SI.js} +4 -4
- package/dist/{stateDiagram-D77RDMKH-4BZW9-6_.js → stateDiagram-D77RDMKH-DkjDvip8.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-C4sKC8Iq.js → stateDiagram-v2-MP3YSRHH-DBHACnOo.js} +2 -2
- package/dist/{swimlanes-42K2YHIH-SL5yeGe2.js → swimlanes-42K2YHIH-ogImlOmp.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-DqPmAYUv.js → swimlanesDiagram-VR7AAH4N-D6x-zsci.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-BfXUMWkq.js → timeline-definition-24CTP7MA-DQpLtsHD.js} +1 -1
- package/dist/{toDate-TMubKIVL.js → toDate-CDzoofJo.js} +2 -2
- package/dist/{toast-Btbve3Lm.js → toast-B5t9o6s_.js} +47 -47
- package/dist/{tooltip-CJ4Rqasp.js → tooltip-s4zZxwKe.js} +67 -67
- package/dist/{use-restore-focus-CmGwRNId.js → use-restore-focus-BgDTd2tc.js} +1 -1
- package/dist/{useAsyncData-DjMGFzFy.js → useAsyncData-Bn8SxUqM.js} +1 -1
- package/dist/{useDateFormatter-eCL_SdeG.js → useDateFormatter-D3Tkfzej.js} +2 -2
- package/dist/{useDeepCompareMemoize-BQR5TJot.js → useDeepCompareMemoize-CC2tnPCk.js} +1 -1
- package/dist/{useLifecycle-C_GvKWbQ.js → useLifecycle-BJlxHqWa.js} +2 -2
- package/dist/{useTheme-Bns2gJZ6.js → useTheme-DMfQYmlG.js} +85 -85
- package/dist/{vega-component-BsVptuhz.js → vega-component-CovWHi60.js} +7 -7
- package/dist/{vennDiagram-4TSXK5OY-CH65znGa.js → vennDiagram-4TSXK5OY-BD-SL_vq.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-z9pWKb2_.js → wardleyDiagram-VM6X3IG4-BDgJV4ah.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-MxyaWjjq.js → xychartDiagram-S5SC5T6Z-1hIHN6Rl.js} +1 -1
- package/package.json +1 -1
- package/src/__mocks__/document.tsx +54 -0
- package/src/__mocks__/notebook.ts +2 -1
- package/src/__mocks__/requests.ts +0 -2
- package/src/components/chat/chat-panel.tsx +3 -3
- package/src/components/datasources/__tests__/column-preview.test.tsx +6 -8
- package/src/components/datasources/column-preview.tsx +4 -8
- package/src/components/datasources/datasources.tsx +4 -3
- package/src/components/dependency-graph/minimap-content.tsx +2 -6
- package/src/components/dependency-graph/panels.tsx +2 -1
- package/src/components/editor/__tests__/Output.test.tsx +50 -32
- package/src/components/editor/__tests__/data-attributes.test.tsx +22 -11
- package/src/components/editor/__tests__/output-persistence.test.tsx +6 -1
- package/src/components/editor/actions/__tests__/name-cell-input.test.tsx +69 -0
- package/src/components/editor/actions/name-cell-input.tsx +4 -3
- package/src/components/editor/actions/useCellActionButton.tsx +20 -26
- package/src/components/editor/actions/useNotebookActions.tsx +13 -18
- package/src/components/editor/actions/useSetCodeVisibility.ts +10 -11
- package/src/components/editor/actions/useSetOutputsExpanded.ts +13 -18
- package/src/components/editor/cell/CreateCellButton.tsx +5 -9
- package/src/components/editor/cell/__tests__/StagedAICell.test.tsx +3 -1
- package/src/components/editor/cell/code/cell-editor.tsx +13 -20
- package/src/components/editor/cell/useAddCell.ts +4 -8
- package/src/components/editor/cell/useDeleteCell.tsx +10 -36
- package/src/components/editor/cell/useRunCells.ts +2 -5
- package/src/components/editor/cell/useSplitCell.tsx +2 -1
- package/src/components/editor/chrome/panels/logs-panel.tsx +2 -1
- package/src/components/editor/chrome/panels/snippets-panel.tsx +5 -11
- package/src/components/editor/chrome/wrapper/__tests__/pending-ai-cells.test.tsx +3 -1
- package/src/components/editor/columns/sortable-column.tsx +1 -1
- package/src/components/editor/connections/components.tsx +4 -9
- package/src/components/editor/controls/Controls.tsx +1 -1
- package/src/components/editor/controls/__tests__/notebook-menu-dropdown.test.tsx +9 -3
- package/src/components/editor/documentation.css +34 -11
- package/src/components/editor/errors/auto-fix.tsx +4 -8
- package/src/components/editor/file-tree/file-explorer.tsx +3 -7
- package/src/components/editor/links/__tests__/cell-link.test.tsx +3 -1
- package/src/components/editor/links/cell-link.tsx +2 -1
- package/src/components/editor/navigation/__tests__/clipboard.test.ts +60 -38
- package/src/components/editor/navigation/__tests__/navigation.test.ts +73 -64
- package/src/components/editor/navigation/clipboard.ts +12 -11
- package/src/components/editor/navigation/multi-cell-action-toolbar.tsx +11 -20
- package/src/components/editor/navigation/navigation.ts +20 -28
- package/src/components/editor/notebook-cell.tsx +7 -10
- package/src/components/editor/output/console/__tests__/ConsoleOutput.test.tsx +125 -69
- package/src/components/editor/renderers/cell-array.tsx +10 -17
- package/src/components/markdown/markdown-renderer.tsx +4 -8
- package/src/components/pages/edit-page.tsx +32 -17
- package/src/components/scratchpad/scratchpad.test.tsx +3 -1
- package/src/components/scratchpad/scratchpad.tsx +4 -7
- package/src/components/slides/__tests__/minimap-actions.test.tsx +9 -25
- package/src/components/slides/minimap.tsx +7 -3
- package/src/components/slides/slide-cell-view.tsx +3 -3
- package/src/components/sort/SortableCellsProvider.tsx +2 -1
- package/src/core/ai/__tests__/staged-cells.test.ts +18 -20
- package/src/core/ai/staged-cells.ts +8 -16
- package/src/core/ai/tools/__tests__/edit-notebook-tool.test.ts +2 -2
- package/src/core/ai/tools/__tests__/run-cells-tool.test.ts +2 -2
- package/src/core/ai/tools/base.ts +2 -2
- package/src/core/ai/tools/edit-notebook-tool.ts +13 -21
- package/src/core/cells/__tests__/actions.test.ts +474 -34
- package/src/core/cells/__tests__/add-missing-import.test.ts +7 -8
- package/src/core/cells/__tests__/cells.test.ts +251 -861
- package/src/core/cells/__tests__/document.test.ts +42 -38
- package/src/core/cells/__tests__/notebook-outline.test.ts +7 -1
- package/src/core/cells/__tests__/outputs.test.tsx +71 -53
- package/src/core/cells/actions.ts +391 -3
- package/src/core/cells/add-missing-import.ts +46 -42
- package/src/core/cells/cells.ts +73 -444
- package/src/core/cells/document.ts +38 -6
- package/src/core/cells/outputs.ts +12 -28
- package/src/core/codemirror/cells/extensions.ts +6 -6
- package/src/core/codemirror/cells/state.ts +1 -1
- package/src/core/codemirror/keymaps/vim.ts +2 -2
- package/src/core/edit-app.tsx +20 -25
- package/src/core/islands/__tests__/bootstrap.test.ts +56 -0
- package/src/core/islands/__tests__/bridge.test.ts +42 -0
- package/src/core/islands/bootstrap.ts +24 -1
- package/src/core/islands/bridge.ts +46 -5
- package/src/core/kernel/__tests__/handlers.test.ts +7 -153
- package/src/core/kernel/handlers.ts +18 -59
- package/src/core/network/__tests__/requests-lazy.test.ts +1 -3
- package/src/core/network/requests-lazy.ts +0 -2
- package/src/core/network/requests-network.ts +0 -16
- package/src/core/network/requests-static.ts +0 -2
- package/src/core/network/requests-toasting.tsx +0 -2
- package/src/core/network/types.ts +0 -7
- package/src/core/notebook/document/__tests__/codemirror.test.ts +5 -0
- package/src/core/notebook/document/__tests__/draft.test.ts +41 -0
- package/src/core/notebook/document/__tests__/state.test.ts +21 -0
- package/src/core/notebook/document/draft.ts +35 -5
- package/src/core/notebook/document/index.ts +1 -0
- package/src/core/notebook/document/state.ts +6 -2
- package/src/core/run-app.tsx +1 -7
- package/src/core/session/__tests__/useNotebookSession.hook.test.tsx +0 -6
- package/src/core/session/useNotebookSession.tsx +28 -35
- package/src/core/wasm/bridge.ts +0 -16
- package/src/css/globals.css +56 -22
- package/src/stories/runtime-story.tsx +22 -15
|
@@ -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-BwiyaNpg.js";
|
|
4
|
-
import "./mermaid-
|
|
4
|
+
import "./mermaid-CZ6FrClS.js";
|
|
5
5
|
import { f 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-CWC49D8X.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/ebnfDiagram-PWID7BFC.mjs
|
|
9
9
|
var c = n().RailroadEbnf.parser.LangiumParser, l = /* @__PURE__ */ t((e) => {
|
|
@@ -10,7 +10,7 @@ import "./chunk-4HAMMTFA-D4eFPyFh.js";
|
|
|
10
10
|
import "./chunk-GVQU2GXP-Cwbt-lF0.js";
|
|
11
11
|
import "./chunk-L3NEJ4N5-n-zgIVSy.js";
|
|
12
12
|
import "./chunk-OSK3NFVY-DXa-Cxbn.js";
|
|
13
|
-
import { n as _, r as v } from "./mermaid-
|
|
13
|
+
import { n as _, r as v } from "./mermaid-CZ6FrClS.js";
|
|
14
14
|
import { t as y } from "./chunk-XXDRQBXY-Dnl5VBqG.js";
|
|
15
15
|
import { t as b } from "./chunk-POPQ4Y6H-hYOXbYH_.js";
|
|
16
16
|
//#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-RLTQ6QDP.mjs
|
|
@@ -3,95 +3,95 @@ import { g as t, h as n, n as r, p as i, r as a } from "./button-BQRdqQi1.js";
|
|
|
3
3
|
import { t as o } from "./react-sHtZdjeP.js";
|
|
4
4
|
import { t as s } from "./compiler-runtime-CldRdSsv.js";
|
|
5
5
|
import { t as c } from "./jsx-runtime-3BD1kT0s.js";
|
|
6
|
-
import {
|
|
6
|
+
import { Et as l, L as u, Ot as d, P as f, Q as p, at as m, ct as h, it as g, lt as _, nt as v, ot as y, rt as b, st as ee, t as x, tt as S, ut as C } from "./use-restore-focus-BgDTd2tc.js";
|
|
7
7
|
//#region ../node_modules/.pnpm/@radix-ui+react-alert-dialog@1.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+_8084eebff7dc7a4ca98e25e7846e6396/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs
|
|
8
|
-
var
|
|
8
|
+
var w = /* @__PURE__ */ e(o(), 1), T = c(), te = Object.defineProperty, E = (e, t) => te(e, "name", {
|
|
9
9
|
value: t,
|
|
10
10
|
configurable: !0
|
|
11
|
-
}), [
|
|
11
|
+
}), [ne, re] = d("AlertDialog", [C]), D = C(), O = /* @__PURE__ */ E((e) => {
|
|
12
12
|
let { __scopeAlertDialog: t, ...n } = e, r = D(t);
|
|
13
|
-
return /* @__PURE__ */ (0,
|
|
13
|
+
return /* @__PURE__ */ (0, T.jsx)(v, {
|
|
14
14
|
...r,
|
|
15
15
|
...n,
|
|
16
16
|
modal: !0
|
|
17
17
|
});
|
|
18
18
|
}, "AlertDialog");
|
|
19
|
-
|
|
19
|
+
w.forwardRef(/* @__PURE__ */ E(function(e, t) {
|
|
20
20
|
let { __scopeAlertDialog: n, ...r } = e, i = D(n);
|
|
21
|
-
return /* @__PURE__ */ (0,
|
|
21
|
+
return /* @__PURE__ */ (0, T.jsx)(_, {
|
|
22
22
|
...i,
|
|
23
23
|
...r,
|
|
24
24
|
ref: t
|
|
25
25
|
});
|
|
26
26
|
}, "AlertDialogTrigger"));
|
|
27
|
-
var k = /* @__PURE__ */
|
|
27
|
+
var k = /* @__PURE__ */ E((e) => {
|
|
28
28
|
let { __scopeAlertDialog: t, ...n } = e, r = D(t);
|
|
29
|
-
return /* @__PURE__ */ (0,
|
|
29
|
+
return /* @__PURE__ */ (0, T.jsx)(ee, {
|
|
30
30
|
...r,
|
|
31
31
|
...n
|
|
32
32
|
});
|
|
33
|
-
}, "AlertDialogPortal"), A =
|
|
33
|
+
}, "AlertDialogPortal"), A = w.forwardRef(/* @__PURE__ */ E(function(e, t) {
|
|
34
34
|
let { __scopeAlertDialog: n, ...r } = e, i = D(n);
|
|
35
|
-
return /* @__PURE__ */ (0,
|
|
35
|
+
return /* @__PURE__ */ (0, T.jsx)(y, {
|
|
36
36
|
...i,
|
|
37
37
|
...r,
|
|
38
38
|
ref: t
|
|
39
39
|
});
|
|
40
|
-
}, "AlertDialogOverlay")), [ie, ae] =
|
|
41
|
-
let { __scopeAlertDialog: n, children: r, ...a } = e, o = D(n), s =
|
|
42
|
-
return /* @__PURE__ */ (0,
|
|
40
|
+
}, "AlertDialogOverlay")), [ie, ae] = ne("AlertDialogContent"), j = w.forwardRef(/* @__PURE__ */ E(function(e, t) {
|
|
41
|
+
let { __scopeAlertDialog: n, children: r, ...a } = e, o = D(n), s = w.useRef(null), c = i(t, s), u = w.useRef(null);
|
|
42
|
+
return /* @__PURE__ */ (0, T.jsx)(ie, {
|
|
43
43
|
scope: n,
|
|
44
|
-
cancelRef:
|
|
45
|
-
children: /* @__PURE__ */ (0,
|
|
44
|
+
cancelRef: u,
|
|
45
|
+
children: /* @__PURE__ */ (0, T.jsx)(g, {
|
|
46
46
|
role: "alertdialog",
|
|
47
47
|
...o,
|
|
48
48
|
...a,
|
|
49
49
|
ref: c,
|
|
50
|
-
onOpenAutoFocus:
|
|
51
|
-
e.preventDefault(),
|
|
50
|
+
onOpenAutoFocus: l(a.onOpenAutoFocus, (e) => {
|
|
51
|
+
e.preventDefault(), u.current?.focus({ preventScroll: !0 });
|
|
52
52
|
}),
|
|
53
53
|
onPointerDownOutside: (e) => e.preventDefault(),
|
|
54
54
|
onInteractOutside: (e) => e.preventDefault(),
|
|
55
55
|
children: r
|
|
56
56
|
})
|
|
57
57
|
});
|
|
58
|
-
}, "AlertDialogContent")), M =
|
|
58
|
+
}, "AlertDialogContent")), M = w.forwardRef(/* @__PURE__ */ E(function(e, t) {
|
|
59
59
|
let { __scopeAlertDialog: n, ...r } = e, i = D(n);
|
|
60
|
-
return /* @__PURE__ */ (0,
|
|
60
|
+
return /* @__PURE__ */ (0, T.jsx)(h, {
|
|
61
61
|
...i,
|
|
62
62
|
...r,
|
|
63
63
|
ref: t
|
|
64
64
|
});
|
|
65
|
-
}, "AlertDialogTitle")), N =
|
|
65
|
+
}, "AlertDialogTitle")), N = w.forwardRef(/* @__PURE__ */ E(function(e, t) {
|
|
66
66
|
let { __scopeAlertDialog: n, ...r } = e, i = D(n);
|
|
67
|
-
return /* @__PURE__ */ (0,
|
|
67
|
+
return /* @__PURE__ */ (0, T.jsx)(m, {
|
|
68
68
|
...i,
|
|
69
69
|
...r,
|
|
70
70
|
ref: t
|
|
71
71
|
});
|
|
72
|
-
}, "AlertDialogDescription")), P =
|
|
72
|
+
}, "AlertDialogDescription")), P = w.forwardRef(/* @__PURE__ */ E(function(e, t) {
|
|
73
73
|
let { __scopeAlertDialog: n, ...r } = e, i = D(n);
|
|
74
|
-
return /* @__PURE__ */ (0,
|
|
74
|
+
return /* @__PURE__ */ (0, T.jsx)(b, {
|
|
75
75
|
...i,
|
|
76
76
|
...r,
|
|
77
77
|
ref: t
|
|
78
78
|
});
|
|
79
|
-
}, "AlertDialogAction")), F = "AlertDialogCancel", I =
|
|
79
|
+
}, "AlertDialogAction")), F = "AlertDialogCancel", I = w.forwardRef(/* @__PURE__ */ E(function(e, t) {
|
|
80
80
|
let { __scopeAlertDialog: n, ...r } = e, { cancelRef: a } = ae(F, n), o = D(n), s = i(t, a);
|
|
81
|
-
return /* @__PURE__ */ (0,
|
|
81
|
+
return /* @__PURE__ */ (0, T.jsx)(b, {
|
|
82
82
|
...o,
|
|
83
83
|
...r,
|
|
84
84
|
ref: s
|
|
85
85
|
});
|
|
86
|
-
}, "AlertDialogCancel")), L = s(), R = O, z =
|
|
86
|
+
}, "AlertDialogCancel")), L = s(), R = O, z = p(({ children: e, ...t }) => /* @__PURE__ */ (0, T.jsx)(k, {
|
|
87
87
|
...t,
|
|
88
|
-
children: /* @__PURE__ */ (0,
|
|
88
|
+
children: /* @__PURE__ */ (0, T.jsx)(S, { children: /* @__PURE__ */ (0, T.jsx)("div", {
|
|
89
89
|
className: "fixed inset-0 z-50 flex items-end justify-center sm:items-start sm:top-[15%]",
|
|
90
90
|
children: e
|
|
91
91
|
}) })
|
|
92
92
|
}));
|
|
93
93
|
z.displayName = k.displayName;
|
|
94
|
-
var B =
|
|
94
|
+
var B = w.forwardRef((e, t) => {
|
|
95
95
|
let r = (0, L.c)(9), i, a;
|
|
96
96
|
if (r[0] !== e) {
|
|
97
97
|
let { className: t, children: n, ...o } = e;
|
|
@@ -100,22 +100,22 @@ var B = C.forwardRef((e, t) => {
|
|
|
100
100
|
let o;
|
|
101
101
|
r[3] === i ? o = r[4] : (o = n("fixed inset-0 z-50 bg-background/80 backdrop-blur-xs transition-opacity animate-in fade-in", i), r[3] = i, r[4] = o);
|
|
102
102
|
let s;
|
|
103
|
-
return r[5] !== a || r[6] !== t || r[7] !== o ? (s = /* @__PURE__ */ (0,
|
|
103
|
+
return r[5] !== a || r[6] !== t || r[7] !== o ? (s = /* @__PURE__ */ (0, T.jsx)(A, {
|
|
104
104
|
className: o,
|
|
105
105
|
...a,
|
|
106
106
|
ref: t
|
|
107
107
|
}), r[5] = a, r[6] = t, r[7] = o, r[8] = s) : s = r[8], s;
|
|
108
108
|
});
|
|
109
109
|
B.displayName = A.displayName;
|
|
110
|
-
var V =
|
|
110
|
+
var V = w.forwardRef((e, t) => {
|
|
111
111
|
let r = (0, L.c)(11), i, a;
|
|
112
112
|
r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
|
|
113
113
|
let o = x(), s;
|
|
114
|
-
r[3] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0,
|
|
114
|
+
r[3] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, T.jsx)(B, {}), r[3] = s) : s = r[3];
|
|
115
115
|
let c;
|
|
116
116
|
r[4] === i ? c = r[5] : (c = n("fixed z-50 grid w-full max-w-2xl scale-100 gap-4 border bg-background p-6 opacity-100 shadow-sm animate-in fade-in-90 slide-in-from-bottom-10 sm:rounded-lg sm:zoom-in-90 sm:slide-in-from-bottom-0 md:w-full", i), r[4] = i, r[5] = c);
|
|
117
117
|
let l;
|
|
118
|
-
return r[6] !== a || r[7] !== t || r[8] !== o || r[9] !== c ? (l = /* @__PURE__ */ (0,
|
|
118
|
+
return r[6] !== a || r[7] !== t || r[8] !== o || r[9] !== c ? (l = /* @__PURE__ */ (0, T.jsxs)(z, { children: [s, /* @__PURE__ */ (0, T.jsx)(j, {
|
|
119
119
|
ref: t,
|
|
120
120
|
className: c,
|
|
121
121
|
...o,
|
|
@@ -129,7 +129,7 @@ var H = (e) => {
|
|
|
129
129
|
let a;
|
|
130
130
|
t[3] === r ? a = t[4] : (a = n("flex flex-col space-y-2 text-center sm:text-left", r), t[3] = r, t[4] = a);
|
|
131
131
|
let o;
|
|
132
|
-
return t[5] !== i || t[6] !== a ? (o = /* @__PURE__ */ (0,
|
|
132
|
+
return t[5] !== i || t[6] !== a ? (o = /* @__PURE__ */ (0, T.jsx)("div", {
|
|
133
133
|
className: a,
|
|
134
134
|
...i
|
|
135
135
|
}), t[5] = i, t[6] = a, t[7] = o) : o = t[7], o;
|
|
@@ -141,71 +141,71 @@ var U = (e) => {
|
|
|
141
141
|
let a;
|
|
142
142
|
t[3] === r ? a = t[4] : (a = n("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", r), t[3] = r, t[4] = a);
|
|
143
143
|
let o;
|
|
144
|
-
return t[5] !== i || t[6] !== a ? (o = /* @__PURE__ */ (0,
|
|
144
|
+
return t[5] !== i || t[6] !== a ? (o = /* @__PURE__ */ (0, T.jsx)("div", {
|
|
145
145
|
className: a,
|
|
146
146
|
...i
|
|
147
147
|
}), t[5] = i, t[6] = a, t[7] = o) : o = t[7], o;
|
|
148
148
|
};
|
|
149
149
|
U.displayName = "AlertDialogFooter";
|
|
150
|
-
var W =
|
|
150
|
+
var W = w.forwardRef((e, t) => {
|
|
151
151
|
let r = (0, L.c)(9), i, a;
|
|
152
152
|
r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
|
|
153
153
|
let o;
|
|
154
154
|
r[3] === i ? o = r[4] : (o = n("text-lg font-semibold", i), r[3] = i, r[4] = o);
|
|
155
155
|
let s;
|
|
156
|
-
return r[5] !== a || r[6] !== t || r[7] !== o ? (s = /* @__PURE__ */ (0,
|
|
156
|
+
return r[5] !== a || r[6] !== t || r[7] !== o ? (s = /* @__PURE__ */ (0, T.jsx)(M, {
|
|
157
157
|
ref: t,
|
|
158
158
|
className: o,
|
|
159
159
|
...a
|
|
160
160
|
}), r[5] = a, r[6] = t, r[7] = o, r[8] = s) : s = r[8], s;
|
|
161
161
|
});
|
|
162
162
|
W.displayName = M.displayName;
|
|
163
|
-
var G =
|
|
163
|
+
var G = w.forwardRef((e, t) => {
|
|
164
164
|
let r = (0, L.c)(9), i, a;
|
|
165
165
|
r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
|
|
166
166
|
let o;
|
|
167
167
|
r[3] === i ? o = r[4] : (o = n("text-muted-foreground", i), r[3] = i, r[4] = o);
|
|
168
168
|
let s;
|
|
169
|
-
return r[5] !== a || r[6] !== t || r[7] !== o ? (s = /* @__PURE__ */ (0,
|
|
169
|
+
return r[5] !== a || r[6] !== t || r[7] !== o ? (s = /* @__PURE__ */ (0, T.jsx)(N, {
|
|
170
170
|
ref: t,
|
|
171
171
|
className: o,
|
|
172
172
|
...a
|
|
173
173
|
}), r[5] = a, r[6] = t, r[7] = o, r[8] = s) : s = r[8], s;
|
|
174
174
|
});
|
|
175
175
|
G.displayName = N.displayName;
|
|
176
|
-
var K =
|
|
176
|
+
var K = w.forwardRef((e, t) => {
|
|
177
177
|
let i = (0, L.c)(9), a, o;
|
|
178
178
|
i[0] === e ? (a = i[1], o = i[2]) : ({className: a, ...o} = e, i[0] = e, i[1] = a, i[2] = o);
|
|
179
179
|
let s;
|
|
180
180
|
i[3] === a ? s = i[4] : (s = n(r(), a), i[3] = a, i[4] = s);
|
|
181
181
|
let c;
|
|
182
|
-
return i[5] !== o || i[6] !== t || i[7] !== s ? (c = /* @__PURE__ */ (0,
|
|
182
|
+
return i[5] !== o || i[6] !== t || i[7] !== s ? (c = /* @__PURE__ */ (0, T.jsx)(P, {
|
|
183
183
|
ref: t,
|
|
184
184
|
className: s,
|
|
185
185
|
...o
|
|
186
186
|
}), i[5] = o, i[6] = t, i[7] = s, i[8] = c) : c = i[8], c;
|
|
187
187
|
});
|
|
188
188
|
K.displayName = P.displayName;
|
|
189
|
-
var q =
|
|
189
|
+
var q = w.forwardRef((e, t) => {
|
|
190
190
|
let i = (0, L.c)(9), a, o;
|
|
191
191
|
i[0] === e ? (a = i[1], o = i[2]) : ({className: a, ...o} = e, i[0] = e, i[1] = a, i[2] = o);
|
|
192
192
|
let s;
|
|
193
193
|
i[3] === a ? s = i[4] : (s = n(r({ variant: "destructive" }), a), i[3] = a, i[4] = s);
|
|
194
194
|
let c;
|
|
195
|
-
return i[5] !== o || i[6] !== t || i[7] !== s ? (c = /* @__PURE__ */ (0,
|
|
195
|
+
return i[5] !== o || i[6] !== t || i[7] !== s ? (c = /* @__PURE__ */ (0, T.jsx)(P, {
|
|
196
196
|
ref: t,
|
|
197
197
|
className: s,
|
|
198
198
|
...o
|
|
199
199
|
}), i[5] = o, i[6] = t, i[7] = s, i[8] = c) : c = i[8], c;
|
|
200
200
|
});
|
|
201
201
|
q.displayName = "AlertDialogDestructiveAction";
|
|
202
|
-
var J =
|
|
202
|
+
var J = w.forwardRef((e, t) => {
|
|
203
203
|
let i = (0, L.c)(9), a, o;
|
|
204
204
|
i[0] === e ? (a = i[1], o = i[2]) : ({className: a, ...o} = e, i[0] = e, i[1] = a, i[2] = o);
|
|
205
205
|
let s;
|
|
206
206
|
i[3] === a ? s = i[4] : (s = n(r({ variant: "secondary" }), "mt-2 sm:mt-0", a), i[3] = a, i[4] = s);
|
|
207
207
|
let c;
|
|
208
|
-
return i[5] !== o || i[6] !== t || i[7] !== s ? (c = /* @__PURE__ */ (0,
|
|
208
|
+
return i[5] !== o || i[6] !== t || i[7] !== s ? (c = /* @__PURE__ */ (0, T.jsx)(I, {
|
|
209
209
|
ref: t,
|
|
210
210
|
className: s,
|
|
211
211
|
...o
|
|
@@ -214,7 +214,7 @@ var J = C.forwardRef((e, t) => {
|
|
|
214
214
|
J.displayName = I.displayName;
|
|
215
215
|
//#endregion
|
|
216
216
|
//#region src/utils/errors.ts
|
|
217
|
-
var Y = f({ detail:
|
|
217
|
+
var Y = f({ detail: u() }), X = f({ error: u() });
|
|
218
218
|
function Z(e) {
|
|
219
219
|
if (!e) return "Unknown error";
|
|
220
220
|
if (e instanceof Error) {
|
|
@@ -262,7 +262,7 @@ var ce = class extends Error {
|
|
|
262
262
|
super(e), this.name = "FunctionNotFoundError";
|
|
263
263
|
}
|
|
264
264
|
}, Q = (e) => {
|
|
265
|
-
let n = (0, L.c)(23), { error: r, className: i, action: a } = e, [o, s] = (0,
|
|
265
|
+
let n = (0, L.c)(23), { error: r, className: i, action: a } = e, [o, s] = (0, w.useState)(!1);
|
|
266
266
|
if (!r) return null;
|
|
267
267
|
t.error(r);
|
|
268
268
|
let c;
|
|
@@ -270,17 +270,17 @@ var ce = class extends Error {
|
|
|
270
270
|
let l = c, u;
|
|
271
271
|
n[2] === Symbol.for("react.memo_cache_sentinel") ? (u = () => s(!0), n[2] = u) : u = n[2];
|
|
272
272
|
let d;
|
|
273
|
-
n[3] === l ? d = n[4] : (d = /* @__PURE__ */ (0,
|
|
273
|
+
n[3] === l ? d = n[4] : (d = /* @__PURE__ */ (0, T.jsx)("span", {
|
|
274
274
|
className: "line-clamp-4",
|
|
275
275
|
children: l
|
|
276
276
|
}), n[3] = l, n[4] = d);
|
|
277
277
|
let f;
|
|
278
|
-
n[5] === a ? f = n[6] : (f = a && /* @__PURE__ */ (0,
|
|
278
|
+
n[5] === a ? f = n[6] : (f = a && /* @__PURE__ */ (0, T.jsx)("div", {
|
|
279
279
|
className: "flex justify-end",
|
|
280
280
|
children: a
|
|
281
281
|
}), n[5] = a, n[6] = f);
|
|
282
282
|
let p;
|
|
283
|
-
n[7] !== i || n[8] !== d || n[9] !== f ? (p = /* @__PURE__ */ (0,
|
|
283
|
+
n[7] !== i || n[8] !== d || n[9] !== f ? (p = /* @__PURE__ */ (0, T.jsxs)($, {
|
|
284
284
|
kind: "danger",
|
|
285
285
|
className: i,
|
|
286
286
|
clickable: !0,
|
|
@@ -288,24 +288,24 @@ var ce = class extends Error {
|
|
|
288
288
|
children: [d, f]
|
|
289
289
|
}), n[7] = i, n[8] = d, n[9] = f, n[10] = p) : p = n[10];
|
|
290
290
|
let m;
|
|
291
|
-
n[11] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ (0,
|
|
291
|
+
n[11] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ (0, T.jsx)(H, { children: /* @__PURE__ */ (0, T.jsx)(W, {
|
|
292
292
|
className: "text-error",
|
|
293
293
|
children: "Error"
|
|
294
294
|
}) }), n[11] = m) : m = n[11];
|
|
295
295
|
let h;
|
|
296
|
-
n[12] === l ? h = n[13] : (h = /* @__PURE__ */ (0,
|
|
296
|
+
n[12] === l ? h = n[13] : (h = /* @__PURE__ */ (0, T.jsx)(G, {
|
|
297
297
|
asChild: !0,
|
|
298
298
|
className: "text-error text-sm p-2 font-mono overflow-auto whitespace-pre-wrap",
|
|
299
|
-
children: /* @__PURE__ */ (0,
|
|
299
|
+
children: /* @__PURE__ */ (0, T.jsx)("pre", { children: l })
|
|
300
300
|
}), n[12] = l, n[13] = h);
|
|
301
301
|
let g;
|
|
302
|
-
n[14] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ (0,
|
|
302
|
+
n[14] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ (0, T.jsx)(U, { children: /* @__PURE__ */ (0, T.jsx)(K, {
|
|
303
303
|
autoFocus: !0,
|
|
304
304
|
onClick: () => s(!1),
|
|
305
305
|
children: "Ok"
|
|
306
306
|
}) }), n[14] = g) : g = n[14];
|
|
307
307
|
let _;
|
|
308
|
-
n[15] === h ? _ = n[16] : (_ = /* @__PURE__ */ (0,
|
|
308
|
+
n[15] === h ? _ = n[16] : (_ = /* @__PURE__ */ (0, T.jsxs)(V, {
|
|
309
309
|
className: "max-w-[80%] max-h-[80%] overflow-hidden flex flex-col",
|
|
310
310
|
children: [
|
|
311
311
|
m,
|
|
@@ -314,13 +314,13 @@ var ce = class extends Error {
|
|
|
314
314
|
]
|
|
315
315
|
}), n[15] = h, n[16] = _);
|
|
316
316
|
let v;
|
|
317
|
-
n[17] !== o || n[18] !== _ ? (v = /* @__PURE__ */ (0,
|
|
317
|
+
n[17] !== o || n[18] !== _ ? (v = /* @__PURE__ */ (0, T.jsx)(R, {
|
|
318
318
|
open: o,
|
|
319
319
|
onOpenChange: s,
|
|
320
320
|
children: _
|
|
321
321
|
}), n[17] = o, n[18] = _, n[19] = v) : v = n[19];
|
|
322
322
|
let y;
|
|
323
|
-
return n[20] !== v || n[21] !== p ? (y = /* @__PURE__ */ (0,
|
|
323
|
+
return n[20] !== v || n[21] !== p ? (y = /* @__PURE__ */ (0, T.jsxs)(T.Fragment, { children: [p, v] }), n[20] = v, n[21] = p, n[22] = y) : y = n[22], y;
|
|
324
324
|
}, de = a("text-sm p-2 border whitespace-pre-wrap overflow-hidden", {
|
|
325
325
|
variants: {
|
|
326
326
|
kind: {
|
|
@@ -357,7 +357,7 @@ var ce = class extends Error {
|
|
|
357
357
|
clickable: a
|
|
358
358
|
}), i), t[6] = i, t[7] = a, t[8] = o, t[9] = c) : c = t[9];
|
|
359
359
|
let l;
|
|
360
|
-
return t[10] !== r || t[11] !== s || t[12] !== c ? (l = /* @__PURE__ */ (0,
|
|
360
|
+
return t[10] !== r || t[11] !== s || t[12] !== c ? (l = /* @__PURE__ */ (0, T.jsx)("div", {
|
|
361
361
|
className: c,
|
|
362
362
|
...s,
|
|
363
363
|
children: r
|