@marimo-team/islands 0.25.3-dev266 → 0.25.3-dev268
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-C_hj7Poi.js → ConnectedDataExplorerComponent-eLHPh6uu.js} +9 -9
- package/dist/{ErrorBoundary-CvxlC3F1.js → ErrorBoundary-CQYAoD7X.js} +64 -69
- package/dist/{abnfDiagram-VCTEODGH-DzrZZXRD.js → abnfDiagram-VCTEODGH-hqd0IBtX.js} +2 -2
- package/dist/{any-language-editor-CFeWfC3o.js → any-language-editor-DnG26QXh.js} +1 -1
- package/dist/{architectureDiagram-5GKGNRK7-iF_snyFL.js → architectureDiagram-5GKGNRK7-BzLAFcc0.js} +1 -1
- package/dist/{strings-BCKpLFNU.js → assertNever-DIU3JJbt.js} +14 -14
- package/dist/{chat-ui-DFxNgzXF.js → chat-ui-BAnLgpTe.js} +1964 -1740
- package/dist/{chunk-IMKFNOWR-B7xytD4B.js → chunk-IMKFNOWR-DOeVvuyE.js} +1 -1
- package/dist/{chunk-SHT3W25Y-I8ZFP5L1.js → chunk-SHT3W25Y-DZoFI8wR.js} +1 -1
- package/dist/{chunk-SVP7TREG-Di-uAPdT.js → chunk-SVP7TREG-CWu86PSW.js} +1 -1
- package/dist/{chunk-TICWLB2K-BFpUy0ud.js → chunk-TICWLB2K-BrM0GoP3.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-Cqm4JGpx.js → classDiagram-ZZMXUADV-DYi4V2bB.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-DFHRJpN3.js → classDiagram-v2-VYDZK3BY-tN7FIk-m.js} +2 -2
- package/dist/{code-visibility-SRM1JiD_.js → code-visibility-DcZ_RwaH.js} +44 -47
- package/dist/{common-yiRhZ6ZZ.js → common-BGeQilvh.js} +5846 -5519
- package/dist/{config-CmeG_Pb6.js → config-BsPruWMR.js} +2 -2
- package/dist/{createReducer-C_syF8Td.js → createReducer-DdtT_7ji.js} +1 -1
- package/dist/{cynefinDiagram-5FMLGOSQ-cuGOeTBC.js → cynefinDiagram-5FMLGOSQ-D5nCnDc-.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-DJ76aC4k.js → dagre-GXQ25YYZ-BHkd7f_i.js} +1 -1
- package/dist/{data-grid-overlay-editor-DLTzcQ4O.js → data-grid-overlay-editor-Dc4lW4A3.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-DLLc0sw7.js → diagram-S7CK7UJ4-D1ALppT2.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-Tz_d6qmk.js → diagram-UQ7AKVKN-DLv0b83L.js} +1 -1
- package/dist/{diagram-VX7I27RA-D7SzPrDN.js → diagram-VX7I27RA-7XJ7J6qg.js} +1 -1
- package/dist/{diagram-Z3DM3KII-qr37XV58.js → diagram-Z3DM3KII-7M7zbHp_.js} +1 -1
- package/dist/{dialog-BtprQCUw.js → dialog-DzCj1qQv.js} +1 -1
- package/dist/{dropdown-menu-CkJ7ErY6.js → dropdown-menu-CdXE15an.js} +1214 -1208
- package/dist/{ebnfDiagram-PWID7BFC-BKOQb4J0.js → ebnfDiagram-PWID7BFC-DHH1qlmV.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-CM15Vq68.js → erDiagram-RLTQ6QDP-fI_0dGef.js} +1 -1
- package/dist/{error-banner-DbRFOd2O.js → error-banner-DPc9eIw5.js} +3 -3
- package/dist/{error-entries-CMoaUX9V.js → error-entries-CxN-Nq3V.js} +524 -456
- package/dist/{feedback-button-DBUrE4OL.js → feedback-button-BqaeQcvX.js} +77 -77
- package/dist/{flowDiagram-HODETNUW-Dt3N5yFT.js → flowDiagram-HODETNUW-Brg9MA6i.js} +2 -2
- package/dist/{formats-gGospKWJ.js → formats-DbSvAPY-.js} +1 -1
- package/dist/{glide-data-editor-Cfv4HeOh.js → glide-data-editor-CiijPXA7.js} +2042 -2041
- package/dist/{glide-utils-Ba9WD2IN.js → glide-utils-BSw3SSHF.js} +29 -35
- package/dist/{globals-dIbBIR5-.js → globals-CpmSWKI_.js} +2 -2
- package/dist/{html-to-image-D_5CMreP.js → html-to-image-8sywF4my.js} +5452 -5751
- package/dist/{infoDiagram-27XIBGKW-C7axJMCl.js → infoDiagram-27XIBGKW-E9e403YT.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-CdC9Eur7.js → ishikawaDiagram-5VMMS53U-C-RlYDRo.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-BHnMIgD7.js → kanban-definition-UXKFOSKX-CLFl_uqK.js} +1 -1
- package/dist/main.js +6294 -6324
- package/dist/{mermaid-DFYN_PXd.js → mermaid-rd09e1JL.js} +35 -35
- package/dist/{mindmap-definition-YA3MSWOX-BagHoCGU.js → mindmap-definition-YA3MSWOX-BQ8TWtyB.js} +1 -1
- package/dist/{number-overlay-editor-CTiJp5Mj.js → number-overlay-editor-Ft4NiAEN.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-8IIZczip.js → pegDiagram-XKGWAZYB-CN8UHFPi.js} +2 -2
- package/dist/pencil-DcT8AE0h.js +10 -0
- package/dist/{pieDiagram-E7YTZNPT-CE6dKBIr.js → pieDiagram-E7YTZNPT-DGuJ0EBd.js} +1 -1
- package/dist/{process-output-CGFNVC60.js → process-output-Dku5POvm.js} +3 -3
- package/dist/{railroadDiagram-O6MQD6OU-CkexPq3b.js → railroadDiagram-O6MQD6OU-BPDA8wy8.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-B0-OkuAe.js → requirementDiagram-BXWQKSXE-ChzLGbGW.js} +1 -1
- package/dist/{reveal-component-DH09ygHo.js → reveal-component-D0cfwbbl.js} +1094 -1094
- package/dist/{select-C33FVPPN.js → select-OxgozOC8.js} +1 -1
- package/dist/{sequenceDiagram-WJ2MYXX4-Dxysg8DX.js → sequenceDiagram-WJ2MYXX4-DFX-bE6O.js} +1 -1
- package/dist/{spec-DH1lmF7Q.js → spec-oJn0RhpQ.js} +2 -2
- package/dist/{stateDiagram-D77RDMKH-DTEN3-OJ.js → stateDiagram-D77RDMKH-BR7cI3wK.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-vktk3Xc5.js → stateDiagram-v2-MP3YSRHH-oGqB5UDI.js} +2 -2
- package/dist/{static-state-BldGd99T.js → static-state-CuV6Pc3a.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{swimlanes-42K2YHIH-Cjveh9OM.js → swimlanes-42K2YHIH-DwSZl1yC.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-Bdr7Ev_2.js → swimlanesDiagram-VR7AAH4N-BHlcd-Ri.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-KIuDcefn.js → timeline-definition-24CTP7MA-DMmP-G2O.js} +1 -1
- package/dist/{toast-CY1_Qv41.js → toast-DbBHmxmB.js} +2 -2
- package/dist/{useAsyncData-DsZMvNXn.js → useAsyncData-BYIAoMqn.js} +1 -1
- package/dist/{useDateFormatter-Dk_xFci4.js → useDateFormatter-ButWkdcK.js} +1 -1
- package/dist/{useDeepCompareMemoize-KMBBux8C.js → useDeepCompareMemoize-Bz0c5GN6.js} +1 -1
- package/dist/{useTheme-BZ2GGLgm.js → useTheme-DPLobSFs.js} +7 -7
- package/dist/{utils-DXkj82sK.js → utils-EBklsC5R.js} +31 -31
- package/dist/{vega-component-C-lqjV0q.js → vega-component-rxIxAAh9.js} +7 -7
- package/dist/{vennDiagram-4TSXK5OY-DrIOUHfb.js → vennDiagram-4TSXK5OY-Db8GtH1G.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-CJNjf4OH.js → wardleyDiagram-VM6X3IG4-DmIiC3FU.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-DEshFho-.js → xychartDiagram-S5SC5T6Z-DS9OPrNq.js} +1 -1
- package/package.json +1 -1
- package/src/__mocks__/executions.ts +195 -0
- package/src/__mocks__/notebook.ts +0 -1
- package/src/__tests__/CellStatus.test.tsx +19 -20
- package/src/components/chat/__tests__/chat-display.test.tsx +157 -86
- package/src/components/chat/__tests__/chat-utils.test.ts +42 -0
- package/src/components/chat/__tests__/turn-timing.test.ts +84 -0
- package/src/components/chat/__tests__/use-assistant-turn.test.ts +95 -0
- package/src/components/chat/__tests__/user-message.test.tsx +27 -0
- package/src/components/chat/acp/agent-panel.tsx +2 -0
- package/src/components/chat/agent-activity.tsx +132 -0
- package/src/components/chat/chat-display.tsx +125 -96
- package/src/components/chat/chat-panel.tsx +123 -106
- package/src/components/chat/chat-utils.ts +12 -24
- package/src/components/chat/tool-call/__tests__/tool-labels.test.ts +76 -0
- package/src/components/chat/tool-call/__tests__/tool-step.test.tsx +57 -0
- package/src/components/chat/tool-call/shared.ts +6 -0
- package/src/components/chat/tool-call/tool-call-view.tsx +22 -76
- package/src/components/chat/tool-call/tool-labels.ts +172 -0
- package/src/components/chat/tool-call/tool-step.tsx +145 -0
- package/src/components/chat/turn-timing.ts +73 -0
- package/src/components/chat/use-assistant-turn.ts +65 -0
- package/src/components/chat/use-chat-generation.ts +5 -4
- package/src/components/chat/user-message.tsx +145 -0
- package/src/components/dependency-graph/minimap-content.tsx +3 -2
- package/src/components/editor/__tests__/data-attributes.test.tsx +0 -7
- package/src/components/editor/__tests__/output-persistence.test.tsx +2 -2
- package/src/components/editor/actions/__tests__/useCellActionButton.test.tsx +19 -1
- package/src/components/editor/actions/useCellActionButton.tsx +10 -3
- package/src/components/editor/ai/completion-handlers.tsx +0 -37
- package/src/components/editor/alerts/stdin-blocking-alert.tsx +3 -1
- package/src/components/editor/cell/CellStatus.tsx +23 -19
- package/src/components/editor/cell/RunButton.tsx +16 -6
- package/src/components/editor/cell/StagedAICell.tsx +51 -144
- package/src/components/editor/cell/__tests__/useRunCells.test.ts +45 -0
- package/src/components/editor/cell/cell-context-menu.tsx +4 -1
- package/src/components/editor/cell/code/cell-editor.tsx +7 -5
- package/src/components/editor/cell/collapse.tsx +4 -0
- package/src/components/editor/cell/useRunCells.ts +18 -3
- package/src/components/editor/chrome/wrapper/__tests__/pending-ai-cells.test.tsx +193 -32
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +2 -2
- package/src/components/editor/chrome/wrapper/pending-ai-cells.tsx +145 -81
- package/src/components/editor/chrome/wrapper/pending-ai-changes-badge.tsx +25 -0
- package/src/components/editor/chrome/wrapper/sidebar.tsx +8 -4
- package/src/components/editor/header/status.tsx +4 -2
- package/src/components/editor/links/cell-link.tsx +4 -4
- package/src/components/editor/navigation/navigation.ts +3 -2
- package/src/components/editor/notebook-cell.tsx +85 -94
- package/src/components/editor/renderers/grid-layout/__tests__/grid-layout.test.tsx +75 -0
- package/src/components/editor/renderers/grid-layout/grid-layout.tsx +22 -16
- package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +0 -1
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +12 -33
- package/src/components/editor/stdin-blocking-alert.tsx +3 -1
- package/src/components/scratchpad/scratchpad.tsx +4 -1
- package/src/components/slides/minimap.tsx +4 -2
- package/src/components/slides/reveal-component.tsx +14 -10
- package/src/components/slides/slide-cell-view.tsx +28 -24
- package/src/components/slides/slide.tsx +3 -4
- package/src/components/ui/toast.tsx +1 -1
- package/src/core/ai/__tests__/staged-cells.test.ts +74 -126
- package/src/core/ai/staged-cells.ts +48 -38
- package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +0 -389
- package/src/core/cells/__tests__/cell.test.ts +49 -154
- package/src/core/cells/__tests__/cells.test.ts +18 -127
- package/src/core/cells/__tests__/pending-delete-service.test.tsx +11 -20
- package/src/core/cells/__tests__/utils.test.ts +75 -247
- package/src/core/cells/actions.ts +5 -2
- package/src/core/cells/cell.ts +31 -133
- package/src/core/cells/cells.ts +14 -29
- package/src/core/cells/document.ts +3 -3
- package/src/core/cells/focus.ts +27 -6
- package/src/core/cells/layout.ts +1 -1
- package/src/core/cells/pending-delete-service.ts +5 -7
- package/src/core/cells/scrollCellIntoView.ts +6 -0
- package/src/core/cells/types.ts +13 -36
- package/src/core/cells/utils.ts +37 -68
- package/src/core/codemirror/placeholder/__tests__/extensions.test.ts +59 -0
- package/src/core/codemirror/placeholder/extensions.ts +23 -0
- package/src/core/edit-app.tsx +2 -1
- package/src/core/executions/__tests__/atoms.test.ts +99 -0
- package/src/core/executions/__tests__/select.test.ts +268 -0
- package/src/core/executions/atoms.ts +206 -0
- package/src/core/executions/hooks.ts +31 -0
- package/src/core/executions/index.ts +31 -0
- package/src/core/executions/select.ts +175 -0
- package/src/core/export/__tests__/hooks.test.ts +0 -5
- package/src/core/islands/bootstrap.ts +4 -1
- package/src/core/islands/components/output-wrapper.tsx +5 -5
- package/src/core/kernel/handlers.ts +2 -11
- package/src/core/kernel/state.ts +0 -15
- package/src/core/lifecycle/render-policy.ts +12 -26
- package/src/core/network/__tests__/requests-lazy.test.ts +5 -5
- package/src/core/network/requests-lazy.ts +3 -3
- package/src/core/notebook/operations.ts +1 -1
- package/src/core/run-app.tsx +2 -1
- package/src/core/runtime/__tests__/adapter.test.ts +3 -3
- package/src/core/runtime/adapter.ts +4 -4
- package/src/core/session/__tests__/useNotebookSession.hook.test.tsx +34 -0
- package/src/core/session/useNotebookSession.tsx +10 -5
- package/src/core/wasm/bridge.ts +1 -1
- package/src/css/app/Cell.css +7 -36
- package/src/plugins/core/registerReactComponent.tsx +4 -13
- package/src/plugins/impl/chat/chat-ui.tsx +2 -3
- package/src/plugins/impl/common/error-banner.tsx +5 -3
- package/src/stories/cell-status.stories.tsx +17 -10
- package/src/stories/cell.stories.tsx +0 -31
- package/src/stories/layout/vertical/one-column.stories.tsx +0 -9
- package/src/utils/time.ts +10 -0
- package/src/components/chat/reasoning-accordion.tsx +0 -61
- package/src/components/chat/tool-call/tool-activity-group.tsx +0 -49
- package/src/components/chat/tool-call/tool-error-card.tsx +0 -81
- package/src/components/chat/tool-call/tool-history-row.tsx +0 -147
- package/src/components/icons/loading-ellipsis.tsx +0 -46
|
@@ -3,19 +3,19 @@ import { g as a, h as o, t as s } from "./button-0-RqY1DW.js";
|
|
|
3
3
|
import { t as c } from "./react-sHtZdjeP.js";
|
|
4
4
|
import { t as l } from "./compiler-runtime-CldRdSsv.js";
|
|
5
5
|
import { h as u, t as d } from "./tooltip-BfcDQd2j.js";
|
|
6
|
-
import { D as f, t as p } from "./spec-
|
|
6
|
+
import { D as f, t as p } from "./spec-oJn0RhpQ.js";
|
|
7
7
|
import { a as m, i as h, o as g, r as _, s as v, t as y } from "./useLifecycle-JjxCC7Vu.js";
|
|
8
|
-
import { a as b, t as x } from "./useDateFormatter-
|
|
9
|
-
import { a as S, c as C, d as w, i as T, n as ee, o as E, r as te, s as ne, t as re, x as D } from "./select-
|
|
10
|
-
import {
|
|
8
|
+
import { a as b, t as x } from "./useDateFormatter-ButWkdcK.js";
|
|
9
|
+
import { a as S, c as C, d as w, i as T, n as ee, o as E, r as te, s as ne, t as re, x as D } from "./select-OxgozOC8.js";
|
|
10
|
+
import { r as O } from "./assertNever-DIU3JJbt.js";
|
|
11
11
|
import { t as k } from "./jsx-runtime-3BD1kT0s.js";
|
|
12
|
-
import { n as ie } from "./error-banner-
|
|
13
|
-
import { n as ae } from "./useTheme-
|
|
14
|
-
import { T as oe, w as se, x as ce, y as le } from "./utils-
|
|
12
|
+
import { n as ie } from "./error-banner-DPc9eIw5.js";
|
|
13
|
+
import { n as ae } from "./useTheme-DPLobSFs.js";
|
|
14
|
+
import { T as oe, w as se, x as ce, y as le } from "./utils-EBklsC5R.js";
|
|
15
15
|
import { t as ue } from "./invariant-DLmrl-hA.js";
|
|
16
16
|
import { t as de } from "./objects-DCmMvZtn.js";
|
|
17
|
-
import { t as fe } from "./createReducer-
|
|
18
|
-
import { t as pe } from "./useAsyncData-
|
|
17
|
+
import { t as fe } from "./createReducer-DdtT_7ji.js";
|
|
18
|
+
import { t as pe } from "./useAsyncData-BYIAoMqn.js";
|
|
19
19
|
import { D as me } from "./vega-loader.browser-B9Pz0EGP.js";
|
|
20
20
|
import { n as he, r as ge } from "./react-vega-C4T9Rb_w.js";
|
|
21
21
|
import { a as _e, n as ve } from "./loader-BVEtQ4F3.js";
|
|
@@ -3,25 +3,20 @@ import { h as t, t as n } from "./button-0-RqY1DW.js";
|
|
|
3
3
|
import { t as r } from "./react-sHtZdjeP.js";
|
|
4
4
|
import { t as i } from "./compiler-runtime-CldRdSsv.js";
|
|
5
5
|
import { a, t as o } from "./copy-icon-C2I8sw4h.js";
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { a as
|
|
10
|
-
import { a as
|
|
11
|
-
import {
|
|
12
|
-
import { o as
|
|
13
|
-
|
|
14
|
-
|
|
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 = {
|
|
6
|
+
import { i as s } from "./tooltip-BfcDQd2j.js";
|
|
7
|
+
import { t as c } from "./react-dom-DUmH0GXv.js";
|
|
8
|
+
import { t as l } from "./jsx-runtime-3BD1kT0s.js";
|
|
9
|
+
import { a as u, c as d } from "./use-restore-focus-CmflVLWJ.js";
|
|
10
|
+
import { a as f, i as p, o as m, r as h, s as g, t as _ } from "./toast-DbBHmxmB.js";
|
|
11
|
+
import { o as v, y } from "./utils-EBklsC5R.js";
|
|
12
|
+
import { o as b, t as x } from "./dialog-DzCj1qQv.js";
|
|
13
|
+
//#region ../node_modules/.pnpm/react-error-boundary@5.0.0_react@19.3.0/node_modules/react-error-boundary/dist/react-error-boundary.esm.js
|
|
14
|
+
var S = i(), C = /* @__PURE__ */ e(r()), w = (0, C.createContext)(null), T = {
|
|
20
15
|
didCatch: !1,
|
|
21
16
|
error: null
|
|
22
|
-
},
|
|
17
|
+
}, E = class extends C.Component {
|
|
23
18
|
constructor(e) {
|
|
24
|
-
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state =
|
|
19
|
+
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = T;
|
|
25
20
|
}
|
|
26
21
|
static getDerivedStateFromError(e) {
|
|
27
22
|
return {
|
|
@@ -36,7 +31,7 @@ var C = s("plus", [["path", {
|
|
|
36
31
|
(t = (n = this.props).onReset) == null || t.call(n, {
|
|
37
32
|
args: r,
|
|
38
33
|
reason: "imperative-api"
|
|
39
|
-
}), this.setState(
|
|
34
|
+
}), this.setState(T);
|
|
40
35
|
}
|
|
41
36
|
}
|
|
42
37
|
componentDidCatch(e, t) {
|
|
@@ -45,13 +40,13 @@ var C = s("plus", [["path", {
|
|
|
45
40
|
}
|
|
46
41
|
componentDidUpdate(e, t) {
|
|
47
42
|
let { didCatch: n } = this.state, { resetKeys: r } = this.props;
|
|
48
|
-
if (n && t.error !== null &&
|
|
43
|
+
if (n && t.error !== null && D(e.resetKeys, r)) {
|
|
49
44
|
var i, a;
|
|
50
45
|
(i = (a = this.props).onReset) == null || i.call(a, {
|
|
51
46
|
next: r,
|
|
52
47
|
prev: e.resetKeys,
|
|
53
48
|
reason: "keys"
|
|
54
|
-
}), this.setState(
|
|
49
|
+
}), this.setState(T);
|
|
55
50
|
}
|
|
56
51
|
}
|
|
57
52
|
render() {
|
|
@@ -62,70 +57,70 @@ var C = s("plus", [["path", {
|
|
|
62
57
|
resetErrorBoundary: this.resetErrorBoundary
|
|
63
58
|
};
|
|
64
59
|
if (typeof t == "function") o = t(e);
|
|
65
|
-
else if (n) o = (0,
|
|
60
|
+
else if (n) o = (0, C.createElement)(n, e);
|
|
66
61
|
else if (r !== void 0) o = r;
|
|
67
62
|
else throw a;
|
|
68
63
|
}
|
|
69
|
-
return (0,
|
|
64
|
+
return (0, C.createElement)(w.Provider, { value: {
|
|
70
65
|
didCatch: i,
|
|
71
66
|
error: a,
|
|
72
67
|
resetErrorBoundary: this.resetErrorBoundary
|
|
73
68
|
} }, o);
|
|
74
69
|
}
|
|
75
70
|
};
|
|
76
|
-
function
|
|
71
|
+
function D() {
|
|
77
72
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
78
73
|
return e.length !== t.length || e.some((e, n) => !Object.is(e, t[n]));
|
|
79
74
|
}
|
|
80
75
|
//#endregion
|
|
81
76
|
//#region src/components/ui/toaster.tsx
|
|
82
|
-
var
|
|
83
|
-
let e = (0,
|
|
84
|
-
e[0] === t ? n = e[1] : (n = t.map(
|
|
77
|
+
var O = /* @__PURE__ */ e(c(), 1), k = l(), A = () => {
|
|
78
|
+
let e = (0, S.c)(5), { toasts: t } = a(), n;
|
|
79
|
+
e[0] === t ? n = e[1] : (n = t.map(N), e[0] = t, e[1] = n);
|
|
85
80
|
let r;
|
|
86
|
-
e[2] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ (0,
|
|
81
|
+
e[2] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ (0, k.jsx)(j, {}), e[2] = r) : r = e[2];
|
|
87
82
|
let i;
|
|
88
|
-
return e[3] === n ? i = e[4] : (i = /* @__PURE__ */ (0,
|
|
89
|
-
},
|
|
90
|
-
let n = (0,
|
|
83
|
+
return e[3] === n ? i = e[4] : (i = /* @__PURE__ */ (0, k.jsxs)(f, { children: [n, r] }), e[3] = n, e[4] = i), i;
|
|
84
|
+
}, j = u(({ container: e }) => (0, O.createPortal)(/* @__PURE__ */ (0, k.jsx)(d, { children: /* @__PURE__ */ (0, k.jsx)(g, {}) }), e ?? document.body)), M = (e) => {
|
|
85
|
+
let n = (0, S.c)(23), r, i, a, s, c;
|
|
91
86
|
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,
|
|
93
|
-
n[6] === s ? d = n[7] : (d = s && /* @__PURE__ */ (0,
|
|
87
|
+
let l = (0, C.useRef)(null), u = !!a && !r && c === "danger", d;
|
|
88
|
+
n[6] === s ? d = n[7] : (d = s && /* @__PURE__ */ (0, k.jsx)(m, { children: s }), n[6] = s, n[7] = d);
|
|
94
89
|
let f;
|
|
95
|
-
n[8] === a ? f = n[9] : (f = a && /* @__PURE__ */ (0,
|
|
90
|
+
n[8] === a ? f = n[9] : (f = a && /* @__PURE__ */ (0, k.jsx)(p, {
|
|
96
91
|
ref: l,
|
|
97
92
|
children: a
|
|
98
93
|
}), n[8] = a, n[9] = f);
|
|
99
|
-
let
|
|
100
|
-
n[10] !== d || n[11] !== f ? (
|
|
94
|
+
let g;
|
|
95
|
+
n[10] !== d || n[11] !== f ? (g = /* @__PURE__ */ (0, k.jsxs)("div", {
|
|
101
96
|
className: "grid min-w-0 flex-1 gap-1",
|
|
102
97
|
children: [d, f]
|
|
103
|
-
}), n[10] = d, n[11] = f, n[12] =
|
|
104
|
-
let
|
|
105
|
-
n[13] !== u || n[14] !== a ? (
|
|
98
|
+
}), n[10] = d, n[11] = f, n[12] = g) : g = n[12];
|
|
99
|
+
let v;
|
|
100
|
+
n[13] !== u || n[14] !== a ? (v = u && /* @__PURE__ */ (0, k.jsx)(o, {
|
|
106
101
|
tooltip: "Copy error",
|
|
107
102
|
ariaLabel: "Copy error",
|
|
108
103
|
className: "h-4 w-4",
|
|
109
104
|
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
105
|
value: () => l.current?.innerText ?? (typeof a == "string" ? a : "")
|
|
111
|
-
}), n[13] = u, n[14] = a, n[15] =
|
|
106
|
+
}), n[13] = u, n[14] = a, n[15] = v) : v = n[15];
|
|
112
107
|
let y;
|
|
113
|
-
n[16] === Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ (0,
|
|
108
|
+
n[16] === Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ (0, k.jsx)(h, {}), n[16] = y) : y = n[16];
|
|
114
109
|
let b;
|
|
115
|
-
return n[17] !== r || n[18] !== i || n[19] !==
|
|
110
|
+
return n[17] !== r || n[18] !== i || n[19] !== g || n[20] !== v || n[21] !== c ? (b = /* @__PURE__ */ (0, k.jsxs)(_, {
|
|
116
111
|
variant: c,
|
|
117
112
|
...i,
|
|
118
113
|
children: [
|
|
119
|
-
|
|
114
|
+
g,
|
|
120
115
|
r,
|
|
121
|
-
|
|
116
|
+
v,
|
|
122
117
|
y
|
|
123
118
|
]
|
|
124
|
-
}), n[17] = r, n[18] = i, n[19] =
|
|
119
|
+
}), n[17] = r, n[18] = i, n[19] = g, n[20] = v, n[21] = c, n[22] = b) : b = n[22], b;
|
|
125
120
|
};
|
|
126
|
-
function
|
|
121
|
+
function N(e) {
|
|
127
122
|
let { id: t, title: n, description: r, action: i, variant: a, ...o } = e;
|
|
128
|
-
return /* @__PURE__ */ (0,
|
|
123
|
+
return /* @__PURE__ */ (0, k.jsx)(M, {
|
|
129
124
|
toastTitle: n,
|
|
130
125
|
toastDescription: r,
|
|
131
126
|
action: i,
|
|
@@ -135,66 +130,66 @@ function F(e) {
|
|
|
135
130
|
}
|
|
136
131
|
//#endregion
|
|
137
132
|
//#region src/components/editor/boundary/ErrorBoundary.tsx
|
|
138
|
-
var
|
|
139
|
-
let t = (0,
|
|
140
|
-
return t[0] === e.children ? n = t[1] : (n = /* @__PURE__ */ (0,
|
|
141
|
-
FallbackComponent:
|
|
133
|
+
var P = (0, C.lazy)(() => import("./feedback-button-BqaeQcvX.js").then((e) => ({ default: e.FeedbackModal }))), F = (e) => {
|
|
134
|
+
let t = (0, S.c)(2), n;
|
|
135
|
+
return t[0] === e.children ? n = t[1] : (n = /* @__PURE__ */ (0, k.jsx)(E, {
|
|
136
|
+
FallbackComponent: I,
|
|
142
137
|
children: e.children
|
|
143
138
|
}), t[0] = e.children, t[1] = n), n;
|
|
144
|
-
},
|
|
145
|
-
let t = (0,
|
|
146
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ (0,
|
|
139
|
+
}, I = (e) => {
|
|
140
|
+
let t = (0, S.c)(17), [r, i] = (0, C.useState)(!1), a;
|
|
141
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ (0, k.jsx)("h1", {
|
|
147
142
|
className: "text-2xl font-bold",
|
|
148
143
|
children: "Something went wrong"
|
|
149
144
|
}), t[0] = a) : a = t[0];
|
|
150
|
-
let o = e.error?.message,
|
|
151
|
-
t[1] === o ?
|
|
145
|
+
let o = e.error?.message, c;
|
|
146
|
+
t[1] === o ? c = t[2] : (c = /* @__PURE__ */ (0, k.jsx)("pre", {
|
|
152
147
|
className: "text-xs bg-muted/40 border rounded-md p-4 max-w-[80%] whitespace-normal",
|
|
153
148
|
children: o
|
|
154
|
-
}), t[1] = o, t[2] =
|
|
149
|
+
}), t[1] = o, t[2] = c);
|
|
155
150
|
let l;
|
|
156
|
-
t[3] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ (0,
|
|
151
|
+
t[3] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ (0, k.jsx)(b, {
|
|
157
152
|
asChild: !0,
|
|
158
|
-
children: /* @__PURE__ */ (0,
|
|
153
|
+
children: /* @__PURE__ */ (0, k.jsx)(n, {
|
|
159
154
|
variant: "outline",
|
|
160
155
|
children: "Report an issue"
|
|
161
156
|
})
|
|
162
157
|
}), t[3] = l) : l = t[3];
|
|
163
158
|
let u;
|
|
164
|
-
t[4] === r ? u = t[5] : (u = r && /* @__PURE__ */ (0,
|
|
165
|
-
store:
|
|
166
|
-
children: /* @__PURE__ */ (0,
|
|
159
|
+
t[4] === r ? u = t[5] : (u = r && /* @__PURE__ */ (0, k.jsx)(y, {
|
|
160
|
+
store: v,
|
|
161
|
+
children: /* @__PURE__ */ (0, k.jsxs)(s, { children: [/* @__PURE__ */ (0, k.jsx)(C.Suspense, {
|
|
167
162
|
fallback: null,
|
|
168
|
-
children: /* @__PURE__ */ (0,
|
|
169
|
-
}), /* @__PURE__ */ (0,
|
|
163
|
+
children: /* @__PURE__ */ (0, k.jsx)(P, {})
|
|
164
|
+
}), /* @__PURE__ */ (0, k.jsx)(A, {})] })
|
|
170
165
|
}), t[4] = r, t[5] = u);
|
|
171
166
|
let d;
|
|
172
|
-
t[6] !== r || t[7] !== u ? (d = /* @__PURE__ */ (0,
|
|
167
|
+
t[6] !== r || t[7] !== u ? (d = /* @__PURE__ */ (0, k.jsxs)(x, {
|
|
173
168
|
open: r,
|
|
174
169
|
onOpenChange: i,
|
|
175
170
|
children: [l, u]
|
|
176
171
|
}), t[6] = r, t[7] = u, t[8] = d) : d = t[8];
|
|
177
172
|
let f;
|
|
178
|
-
t[9] === e.resetErrorBoundary ? f = t[10] : (f = /* @__PURE__ */ (0,
|
|
173
|
+
t[9] === e.resetErrorBoundary ? f = t[10] : (f = /* @__PURE__ */ (0, k.jsx)(n, {
|
|
179
174
|
"data-testid": "reset-error-boundary-button",
|
|
180
175
|
onClick: e.resetErrorBoundary,
|
|
181
176
|
variant: "outline",
|
|
182
177
|
children: "Try again"
|
|
183
178
|
}), t[9] = e.resetErrorBoundary, t[10] = f);
|
|
184
179
|
let p;
|
|
185
|
-
t[11] !== d || t[12] !== f ? (p = /* @__PURE__ */ (0,
|
|
180
|
+
t[11] !== d || t[12] !== f ? (p = /* @__PURE__ */ (0, k.jsxs)("div", {
|
|
186
181
|
className: "flex flex-wrap items-center justify-center gap-2",
|
|
187
182
|
children: [d, f]
|
|
188
183
|
}), t[11] = d, t[12] = f, t[13] = p) : p = t[13];
|
|
189
184
|
let m;
|
|
190
|
-
return t[14] !==
|
|
185
|
+
return t[14] !== c || t[15] !== p ? (m = /* @__PURE__ */ (0, k.jsxs)("div", {
|
|
191
186
|
className: "flex-1 flex items-center justify-center flex-col space-y-4 max-w-2xl mx-auto px-6 pb-6",
|
|
192
187
|
children: [
|
|
193
188
|
a,
|
|
194
|
-
|
|
189
|
+
c,
|
|
195
190
|
p
|
|
196
191
|
]
|
|
197
|
-
}), t[14] =
|
|
192
|
+
}), t[14] = c, t[15] = p, t[16] = m) : m = t[16], m;
|
|
198
193
|
};
|
|
199
194
|
//#endregion
|
|
200
|
-
export {
|
|
195
|
+
export { F 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-BwiyaNpg.js";
|
|
4
|
-
import "./mermaid-
|
|
4
|
+
import "./mermaid-rd09e1JL.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-CWu86PSW.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) => {
|
|
@@ -4,7 +4,7 @@ import { t } from "./react-sHtZdjeP.js";
|
|
|
4
4
|
import { t as n } from "./compiler-runtime-CldRdSsv.js";
|
|
5
5
|
import { t as r } from "./copy-icon-C2I8sw4h.js";
|
|
6
6
|
import { t as i } from "./jsx-runtime-3BD1kT0s.js";
|
|
7
|
-
import { n as a } from "./error-banner-
|
|
7
|
+
import { n as a } from "./error-banner-DPc9eIw5.js";
|
|
8
8
|
import { t as o } from "./esm-BDqqT86j.js";
|
|
9
9
|
import { n as s, t as c } from "./esm-BgKjMvWw.js";
|
|
10
10
|
//#region src/plugins/impl/code/any-language-editor.tsx
|
package/dist/{architectureDiagram-5GKGNRK7-iF_snyFL.js → architectureDiagram-5GKGNRK7-BzLAFcc0.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-BwiyaNpg.js";
|
|
6
6
|
import { i as y, r as b, t as x } from "./chunk-PWAF6VOD-CQw5qATZ.js";
|
|
7
7
|
import { n as S } from "./chunk-GMAD6QVW-BhaJx0X3.js";
|
|
8
|
-
import { p as C } from "./mermaid-
|
|
8
|
+
import { p as C } from "./mermaid-rd09e1JL.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";
|
|
@@ -465,25 +465,17 @@ function E(e) {
|
|
|
465
465
|
}
|
|
466
466
|
m(E, "getChildListObserver");
|
|
467
467
|
//#endregion
|
|
468
|
-
//#region src/utils/assertNever.ts
|
|
469
|
-
function D(e) {
|
|
470
|
-
l(!1, `Unexpected object: ${e}`);
|
|
471
|
-
}
|
|
472
|
-
function O(e) {
|
|
473
|
-
return t.warn(`Unexpected object: ${JSON.stringify(e)}`), e;
|
|
474
|
-
}
|
|
475
|
-
//#endregion
|
|
476
468
|
//#region src/utils/strings.ts
|
|
477
|
-
function
|
|
469
|
+
function D(e) {
|
|
478
470
|
return e ? e.charAt(0).toUpperCase() + e.slice(1) : "";
|
|
479
471
|
}
|
|
480
|
-
function
|
|
472
|
+
function O(e) {
|
|
481
473
|
if (!e) return "";
|
|
482
474
|
if (typeof e != "string") throw t.error(e), TypeError(`Expected string, got ${typeof e}`);
|
|
483
|
-
return /[A-Za-z]/.test(e) ? e.replaceAll(/([\da-z])([A-Z])/g, "$1 $2").replaceAll(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").replaceAll(/[\s_-]+/g, " ").trim().split(" ").map(
|
|
475
|
+
return /[A-Za-z]/.test(e) ? e.replaceAll(/([\da-z])([A-Z])/g, "$1 $2").replaceAll(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").replaceAll(/[\s_-]+/g, " ").trim().split(" ").map(D).join(" ") : e;
|
|
484
476
|
}
|
|
485
|
-
var
|
|
486
|
-
startCase:
|
|
477
|
+
var k = {
|
|
478
|
+
startCase: O,
|
|
487
479
|
htmlEscape: (e) => e && e.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll("\"", """).replaceAll("'", "'").replaceAll("\n", " "),
|
|
488
480
|
withTrailingSlash(e) {
|
|
489
481
|
return e.endsWith("/") ? e : `${e}/`;
|
|
@@ -504,4 +496,12 @@ var j = {
|
|
|
504
496
|
}
|
|
505
497
|
};
|
|
506
498
|
//#endregion
|
|
507
|
-
|
|
499
|
+
//#region src/utils/assertNever.ts
|
|
500
|
+
function A(e) {
|
|
501
|
+
l(!1, `Unexpected object: ${e}`);
|
|
502
|
+
}
|
|
503
|
+
function j(e) {
|
|
504
|
+
return t.warn(`Unexpected object: ${JSON.stringify(e)}`), e;
|
|
505
|
+
}
|
|
506
|
+
//#endregion
|
|
507
|
+
export { h as a, D as i, j as n, x as o, k as r, u as s, A as t };
|