@marimo-team/islands 0.25.3-dev169 → 0.25.3-dev170
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-BbDrlHvG.js → ConnectedDataExplorerComponent-BbSXV-Xa.js} +8 -8
- package/dist/{ErrorBoundary-RaIwGWT3.js → ErrorBoundary-NE86qEWZ.js} +4 -4
- package/dist/{abnfDiagram-VCTEODGH-Dr-fo8_z.js → abnfDiagram-VCTEODGH-D7n07nXf.js} +2 -2
- package/dist/{architectureDiagram-5GKGNRK7-ByKIl9GG.js → architectureDiagram-5GKGNRK7-D6CjRib5.js} +1 -1
- package/dist/{chat-ui-BsV2WH-4.js → chat-ui-CC7GekpG.js} +34 -34
- package/dist/{chunk-IMKFNOWR-IKDP18MQ.js → chunk-IMKFNOWR-6dtPz7uS.js} +1 -1
- package/dist/{chunk-SHT3W25Y-LkIgegwh.js → chunk-SHT3W25Y-BwnFNKDA.js} +1 -1
- package/dist/{chunk-SVP7TREG-DReBYtnB.js → chunk-SVP7TREG-D2eV4vBJ.js} +1 -1
- package/dist/{chunk-TICWLB2K-DQ0A0-1D.js → chunk-TICWLB2K-BDs4-_-r.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-CwvXdCNE.js → classDiagram-ZZMXUADV-DCJnf_8v.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-D0XAxDsc.js → classDiagram-v2-VYDZK3BY-BOmSzPBD.js} +2 -2
- package/dist/{code-visibility-BMi0KLAQ.js → code-visibility-Bzvc6ajl.js} +23 -23
- package/dist/{common-BMkJrZsD.js → common-Ciw4zkh2.js} +3412 -3412
- package/dist/{cynefinDiagram-5FMLGOSQ-BFN68nHr.js → cynefinDiagram-5FMLGOSQ-Bln_Soky.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-CZt4rtLq.js → dagre-GXQ25YYZ-D-nf7WzW.js} +1 -1
- package/dist/{data-grid-overlay-editor-CCc1P42P.js → data-grid-overlay-editor-AQREmxI7.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-D5cOz47_.js → diagram-S7CK7UJ4-PsgSMkY2.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-Qgdppb4a.js → diagram-UQ7AKVKN-DfwfUuSw.js} +1 -1
- package/dist/{diagram-VX7I27RA-BsDCvily.js → diagram-VX7I27RA-C9_e-oMc.js} +1 -1
- package/dist/{diagram-Z3DM3KII-igTkGjKI.js → diagram-Z3DM3KII-CWLa5tuY.js} +1 -1
- package/dist/{dropdown-menu-BWnnAstC.js → dropdown-menu-B6ftyzOg.js} +1 -1
- package/dist/{ebnfDiagram-PWID7BFC-BHuZGjIr.js → ebnfDiagram-PWID7BFC-B1QRM58v.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-DKObXTVE.js → erDiagram-RLTQ6QDP-DJK_FqvW.js} +1 -1
- package/dist/{error-entries-BpUJSLUZ.js → error-entries-DgK3wUJR.js} +5640 -5591
- package/dist/{feedback-button-CMVkEos_.js → feedback-button-8a6SETmT.js} +24 -24
- package/dist/{flowDiagram-HODETNUW-DZI_kit0.js → flowDiagram-HODETNUW-Uxc25XSJ.js} +2 -2
- package/dist/{formats-CwJHWasD.js → formats-DQCyPd5Z.js} +1 -1
- package/dist/{glide-data-editor-BA2pcHSV.js → glide-data-editor-B70oke_v.js} +5 -5
- package/dist/{globals-B5jjJ0ms.js → globals-Cxd5hNlI.js} +2 -2
- package/dist/{html-to-image-CQr2-IDA.js → html-to-image-D4yG5Ru0.js} +25 -25
- package/dist/{infoDiagram-27XIBGKW-DdPl-7-n.js → infoDiagram-27XIBGKW-DmjxqwL0.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-DbyW6l59.js → ishikawaDiagram-5VMMS53U-NgCLHqQi.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-BMX9SyBS.js → kanban-definition-UXKFOSKX-CZaG-iam.js} +1 -1
- package/dist/main.js +187 -188
- package/dist/{mermaid-C8W8mTbA.js → mermaid-CSvw7c71.js} +34 -34
- package/dist/{mindmap-definition-YA3MSWOX-Zd_tAxWL.js → mindmap-definition-YA3MSWOX-DJYQBDH_.js} +1 -1
- package/dist/{number-overlay-editor-BIWiV-TU.js → number-overlay-editor-ChK-SKUk.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-DjYydPdo.js → pegDiagram-XKGWAZYB-CHKO_dAe.js} +2 -2
- package/dist/{pieDiagram-E7YTZNPT-R5LKjO2n.js → pieDiagram-E7YTZNPT-DVevbMAo.js} +1 -1
- package/dist/{process-output-Uw-VJE5V.js → process-output-DxvBAeL3.js} +3 -3
- package/dist/{railroadDiagram-O6MQD6OU-C7uNKtfm.js → railroadDiagram-O6MQD6OU-Detj1kcB.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-CxAIzQfl.js → requirementDiagram-BXWQKSXE-BLFD0T_Z.js} +1 -1
- package/dist/{reveal-component-XiecZ3Ua.js → reveal-component-CXMXeDZD.js} +6 -6
- package/dist/{sequenceDiagram-WJ2MYXX4-B5tmlPd5.js → sequenceDiagram-WJ2MYXX4-BZBgatQV.js} +1 -1
- package/dist/{spec-45FnujvG.js → spec-Mnkn3XEr.js} +1 -1
- package/dist/{stateDiagram-D77RDMKH-C1hc5H7Y.js → stateDiagram-D77RDMKH-4BZW9-6_.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-DRWeqQTn.js → stateDiagram-v2-MP3YSRHH-C4sKC8Iq.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{swimlanes-42K2YHIH-NTLas--s.js → swimlanes-42K2YHIH-SL5yeGe2.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-ChPggljD.js → swimlanesDiagram-VR7AAH4N-DqPmAYUv.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-B4CZ9srJ.js → timeline-definition-24CTP7MA-BfXUMWkq.js} +1 -1
- package/dist/{toDate-rySyYxqk.js → toDate-TMubKIVL.js} +22 -22
- package/dist/{useAsyncData-B7MiltyV.js → useAsyncData-DjMGFzFy.js} +1 -1
- package/dist/{useDeepCompareMemoize-DZmHBD_1.js → useDeepCompareMemoize-BQR5TJot.js} +1 -1
- package/dist/{useLifecycle-DRbRhzxg.js → useLifecycle-C_GvKWbQ.js} +26 -23
- package/dist/{useTheme-TLkqJsvo.js → useTheme-Bns2gJZ6.js} +179 -178
- package/dist/{vega-component-DC6P127L.js → vega-component-BsVptuhz.js} +5 -5
- package/dist/{vennDiagram-4TSXK5OY-DJIvMt44.js → vennDiagram-4TSXK5OY-CH65znGa.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-45H0zg0u.js → wardleyDiagram-VM6X3IG4-z9pWKb2_.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-ZT-XzcPN.js → xychartDiagram-S5SC5T6Z-MxyaWjjq.js} +1 -1
- package/package.json +1 -1
- package/src/__mocks__/requests.ts +0 -1
- package/src/components/editor/cell/StagedAICell.tsx +10 -2
- package/src/components/editor/cell/code/cell-editor.tsx +7 -14
- package/src/components/editor/chrome/wrapper/__tests__/document-sync-status.test.tsx +92 -0
- package/src/components/editor/chrome/wrapper/footer-items/document-sync-status.tsx +54 -0
- package/src/components/editor/chrome/wrapper/footer.tsx +2 -0
- package/src/core/ai/__tests__/staged-cells.test.ts +8 -5
- package/src/core/ai/staged-cells.ts +7 -2
- package/src/core/ai/tools/__tests__/edit-notebook-tool.test.ts +3 -15
- package/src/core/ai/tools/edit-notebook-tool.ts +14 -3
- package/src/core/cells/__tests__/cells.test.ts +0 -297
- package/src/core/cells/__tests__/document.test.ts +410 -0
- package/src/core/cells/__tests__/flush-document.test.ts +40 -0
- package/src/core/cells/__tests__/notebook-outline.test.ts +1 -6
- package/src/core/cells/__tests__/with-document-save.test.ts +67 -0
- package/src/core/cells/cells.ts +27 -158
- package/src/core/cells/columns.ts +38 -0
- package/src/core/cells/document.ts +360 -0
- package/src/core/cells/types.ts +12 -0
- package/src/core/codemirror/cells/__tests__/extensions.test.ts +27 -1
- package/src/core/codemirror/cells/extensions.ts +14 -0
- package/src/core/codemirror/format.ts +6 -5
- package/src/core/codemirror/language/__tests__/utils.test.ts +187 -15
- package/src/core/codemirror/language/cell-code.ts +114 -0
- package/src/core/codemirror/language/extension.ts +47 -30
- package/src/core/codemirror/language/languages/sql/sql.ts +7 -17
- package/src/core/codemirror/language/utils.ts +9 -39
- package/src/core/codemirror/lsp/notebook-lsp.ts +6 -5
- package/src/core/codemirror/rtc/extension.ts +0 -1
- package/src/core/edit-app.tsx +4 -3
- package/src/core/export/layout.ts +2 -2
- package/src/core/islands/bridge.ts +0 -1
- package/src/core/network/requests-lazy.ts +0 -1
- package/src/core/network/requests-network.ts +0 -9
- package/src/core/network/requests-static.ts +0 -1
- package/src/core/network/requests-toasting.tsx +0 -1
- package/src/core/network/types.ts +0 -5
- package/src/core/notebook/document/__tests__/codemirror.test.ts +76 -14
- package/src/core/notebook/document/__tests__/hold.test.ts +88 -0
- package/src/core/notebook/document/__tests__/hooks.test.tsx +3 -3
- package/src/core/notebook/document/__tests__/lifecycle-scenarios.test.ts +3 -3
- package/src/core/notebook/document/__tests__/model.test.ts +71 -15
- package/src/core/notebook/document/__tests__/scenario-fixture.ts +1 -1
- package/src/core/notebook/document/codemirror.ts +27 -122
- package/src/core/notebook/document/hooks.tsx +2 -2
- package/src/core/notebook/document/index.ts +9 -1
- package/src/core/notebook/document/model.ts +74 -24
- package/src/core/notebook/document/sync.ts +53 -4
- package/src/core/run-app.tsx +44 -41
- package/src/core/saving/save-component.tsx +2 -5
- package/src/core/session/__tests__/useNotebookSession.hook.test.tsx +63 -3
- package/src/core/session/active-notebook.ts +4 -0
- package/src/core/session/useNotebookSession.tsx +39 -19
- package/src/core/wasm/__tests__/bridge.test.ts +3 -3
- package/src/core/wasm/bridge.ts +5 -12
- package/src/core/wasm/worker/worker.ts +0 -9
- package/src/utils/__tests__/{createReducer.test.ts → createReducer.test.tsx} +28 -0
- package/src/utils/createReducer.ts +42 -21
- package/src/core/cells/__tests__/apply-transaction.test.ts +0 -991
- package/src/core/cells/__tests__/document-changes.test.ts +0 -1140
- package/src/core/cells/__tests__/document-roundtrip.test.ts +0 -392
- package/src/core/cells/document-changes.ts +0 -944
|
@@ -9,7 +9,7 @@ import "./chunk-4HAMMTFA-D4eFPyFh.js";
|
|
|
9
9
|
import "./chunk-GVQU2GXP-Cwbt-lF0.js";
|
|
10
10
|
import "./chunk-L3NEJ4N5-n-zgIVSy.js";
|
|
11
11
|
import { o as n } from "./chunk-OSK3NFVY-DXa-Cxbn.js";
|
|
12
|
-
import { c as r } from "./mermaid-
|
|
12
|
+
import { c as r } from "./mermaid-CSvw7c71.js";
|
|
13
13
|
//#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/swimlanes-42K2YHIH.mjs
|
|
14
14
|
var i = 5, a = 1e-5, o = 1e-6;
|
|
15
15
|
function s(e) {
|
package/dist/{swimlanesDiagram-VR7AAH4N-ChPggljD.js → swimlanesDiagram-VR7AAH4N-DqPmAYUv.js}
RENAMED
|
@@ -9,11 +9,11 @@ import "./chunk-4HAMMTFA-D4eFPyFh.js";
|
|
|
9
9
|
import "./chunk-GVQU2GXP-Cwbt-lF0.js";
|
|
10
10
|
import "./chunk-L3NEJ4N5-n-zgIVSy.js";
|
|
11
11
|
import "./chunk-OSK3NFVY-DXa-Cxbn.js";
|
|
12
|
-
import "./mermaid-
|
|
12
|
+
import "./mermaid-CSvw7c71.js";
|
|
13
13
|
import "./chunk-F27PBJKO-ufseIn5y.js";
|
|
14
14
|
import "./chunk-XXDRQBXY-Dnl5VBqG.js";
|
|
15
15
|
import "./chunk-POPQ4Y6H-hYOXbYH_.js";
|
|
16
|
-
import { r as t, t as n } from "./chunk-SHT3W25Y-
|
|
16
|
+
import { r as t, t as n } from "./chunk-SHT3W25Y-BwnFNKDA.js";
|
|
17
17
|
//#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-VR7AAH4N.mjs
|
|
18
18
|
var r = n({
|
|
19
19
|
defaultLayout: "swimlane",
|
package/dist/{timeline-definition-24CTP7MA-B4CZ9srJ.js → timeline-definition-24CTP7MA-BfXUMWkq.js}
RENAMED
|
@@ -3,7 +3,7 @@ import { p as t } from "./chunk-75Z2AOVW-D7gxIs2Q.js";
|
|
|
3
3
|
import { n, t as r } from "./src-CA_m4ONl.js";
|
|
4
4
|
import { n as i, t as a } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
|
|
5
5
|
import { $ as o, J as s, a as c, b as l, et as u, nt as d, o as f, x as p } from "./chunk-DU6HZSFF-BwiyaNpg.js";
|
|
6
|
-
import { p as m } from "./mermaid-
|
|
6
|
+
import { p as m } from "./mermaid-CSvw7c71.js";
|
|
7
7
|
//#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-24CTP7MA.mjs
|
|
8
8
|
var h = (function() {
|
|
9
9
|
var e = /* @__PURE__ */ i(function(e, t, n, r) {
|
|
@@ -2,7 +2,7 @@ import { t as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
|
2
2
|
import { g as t } from "./button-BQRdqQi1.js";
|
|
3
3
|
import { t as n } from "./compiler-runtime-CldRdSsv.js";
|
|
4
4
|
import { m as r } from "./tooltip-CJ4Rqasp.js";
|
|
5
|
-
import {
|
|
5
|
+
import { D as i, _ as a, a as o, w as s, x as c } from "./useTheme-Bns2gJZ6.js";
|
|
6
6
|
import { t as l } from "./invariant-DLmrl-hA.js";
|
|
7
7
|
var u = r("circle-question-mark", [
|
|
8
8
|
["circle", {
|
|
@@ -52,21 +52,21 @@ function h(e) {
|
|
|
52
52
|
//#endregion
|
|
53
53
|
//#region src/core/mode.ts
|
|
54
54
|
function g() {
|
|
55
|
-
let e =
|
|
55
|
+
let e = a.get(v);
|
|
56
56
|
return f(e, "internal-error: initial mode not found"), l(e !== "present", "internal-error: initial mode cannot be 'present'"), e;
|
|
57
57
|
}
|
|
58
|
-
var _ =
|
|
58
|
+
var _ = i({
|
|
59
59
|
mode: c() ? "read" : "not-set",
|
|
60
60
|
cellAnchor: null
|
|
61
|
-
}), v =
|
|
61
|
+
}), v = i(void 0);
|
|
62
62
|
function y() {
|
|
63
|
-
let e =
|
|
63
|
+
let e = a.get(v);
|
|
64
64
|
return e !== "home" && e !== "gallery";
|
|
65
65
|
}
|
|
66
|
-
var b =
|
|
66
|
+
var b = i(!1);
|
|
67
67
|
function x() {
|
|
68
|
-
let e = (0, d.c)(1), { mode: t } =
|
|
69
|
-
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = new URLSearchParams(window.location.search).get(
|
|
68
|
+
let e = (0, d.c)(1), { mode: t } = s(_), n = s(b), r;
|
|
69
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = new URLSearchParams(window.location.search).get(o.kiosk), e[0] = r) : r = e[0], t !== "read" && !n && r !== "true";
|
|
70
70
|
}
|
|
71
71
|
//#endregion
|
|
72
72
|
//#region ../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/_u64.js
|
|
@@ -467,7 +467,7 @@ function M({ href: e, queryParams: t, keys: n }) {
|
|
|
467
467
|
}
|
|
468
468
|
//#endregion
|
|
469
469
|
//#region src/core/kernel/session.ts
|
|
470
|
-
var N =
|
|
470
|
+
var N = i(null), P = (0, O.init)({ length: 6 });
|
|
471
471
|
function F() {
|
|
472
472
|
return `s_${P()}`;
|
|
473
473
|
}
|
|
@@ -476,13 +476,13 @@ function I(e) {
|
|
|
476
476
|
}
|
|
477
477
|
var L = null;
|
|
478
478
|
function R() {
|
|
479
|
-
let e =
|
|
479
|
+
let e = a.get(v) === "edit", n = new URL(window.location.href).searchParams.get(o.sessionId), r = I(n) ? n : null;
|
|
480
480
|
return k((t) => {
|
|
481
481
|
if (!e) {
|
|
482
|
-
t.delete(
|
|
482
|
+
t.delete(o.sessionId), t.delete(o.kiosk);
|
|
483
483
|
return;
|
|
484
484
|
}
|
|
485
|
-
t.has(
|
|
485
|
+
t.has(o.kiosk) || t.delete(o.sessionId);
|
|
486
486
|
}), r === null ? (t.debug("Starting a new session", { sessionId: n }), F()) : e ? (t.debug("Connecting to existing session", { sessionId: r }), r) : (t.debug("Ignoring session_id from URL outside the editor", { sessionId: r }), F());
|
|
487
487
|
}
|
|
488
488
|
function z() {
|
|
@@ -513,7 +513,7 @@ function W() {
|
|
|
513
513
|
}
|
|
514
514
|
//#endregion
|
|
515
515
|
//#region src/core/runtime/runtime.ts
|
|
516
|
-
var G = new Set(Object.values(
|
|
516
|
+
var G = new Set(Object.values(o)), K = class {
|
|
517
517
|
initialHealthyCheck = new m();
|
|
518
518
|
config;
|
|
519
519
|
lazy;
|
|
@@ -545,14 +545,14 @@ var G = new Set(Object.values(s)), K = class {
|
|
|
545
545
|
return r.pathname = `${r.pathname.replace(/\/$/, "")}/${e.replace(/^\//, "")}`, r.hash = "", r;
|
|
546
546
|
}
|
|
547
547
|
appendCrossOriginAuth(e) {
|
|
548
|
-
return !this.isSameOrigin && this.config.authToken && e.searchParams.set(
|
|
548
|
+
return !this.isSameOrigin && this.config.authToken && e.searchParams.set(o.accessToken, this.config.authToken), e;
|
|
549
549
|
}
|
|
550
550
|
formatNavigableHttpURL(e, t) {
|
|
551
551
|
let n = this.formatHttpURL({
|
|
552
552
|
path: e,
|
|
553
553
|
searchParams: t
|
|
554
554
|
});
|
|
555
|
-
return n.searchParams.delete(
|
|
555
|
+
return n.searchParams.delete(o.accessToken), this.appendCrossOriginAuth(n);
|
|
556
556
|
}
|
|
557
557
|
formatWsURL(e, t) {
|
|
558
558
|
let n = this.formatHttpURL({
|
|
@@ -566,7 +566,7 @@ var G = new Set(Object.values(s)), K = class {
|
|
|
566
566
|
let n = this.formatHttpURL({ path: e }), r = new URLSearchParams(this.httpURL.search), i = new URLSearchParams(window.location.search);
|
|
567
567
|
for (let e of i.keys()) r.delete(e);
|
|
568
568
|
for (let [e, t] of i) r.append(e, t);
|
|
569
|
-
return r.delete(
|
|
569
|
+
return r.delete(o.accessToken), r.delete("refresh_token"), r.delete(o.sessionId), n.searchParams.set("query_params", r.toString()), n.searchParams.set(o.sessionId, t), n;
|
|
570
570
|
}
|
|
571
571
|
getWsURL(e) {
|
|
572
572
|
let t = this.getSessionURL("/ws", e);
|
|
@@ -574,11 +574,11 @@ var G = new Set(Object.values(s)), K = class {
|
|
|
574
574
|
}
|
|
575
575
|
getSseURL(e) {
|
|
576
576
|
let t = this.getSessionURL("/sse", e);
|
|
577
|
-
return t.searchParams.delete(
|
|
577
|
+
return t.searchParams.delete(o.accessToken), t;
|
|
578
578
|
}
|
|
579
579
|
getNotebookURL(e) {
|
|
580
580
|
let t = this.formatHttpURL({ path: `/api/marimo/v1/notebooks/${encodeURIComponent(e)}` });
|
|
581
|
-
return t.searchParams.delete(
|
|
581
|
+
return t.searchParams.delete(o.accessToken), t;
|
|
582
582
|
}
|
|
583
583
|
getWsSyncURL(e) {
|
|
584
584
|
let t = this.getSessionURL("/ws_sync", e);
|
|
@@ -590,8 +590,8 @@ var G = new Set(Object.values(s)), K = class {
|
|
|
590
590
|
}
|
|
591
591
|
getLSPURL(e) {
|
|
592
592
|
if (e === "copilot") {
|
|
593
|
-
let t = this.formatWsURL(`/lsp/${e}`), n = t.searchParams.get(
|
|
594
|
-
return t.search = "", n && t.searchParams.set(
|
|
593
|
+
let t = this.formatWsURL(`/lsp/${e}`), n = t.searchParams.get(o.accessToken);
|
|
594
|
+
return t.search = "", n && t.searchParams.set(o.accessToken, n), t;
|
|
595
595
|
}
|
|
596
596
|
return this.formatWsURL(`/lsp/${e}`);
|
|
597
597
|
}
|
|
@@ -675,12 +675,12 @@ function J() {
|
|
|
675
675
|
var Y = {
|
|
676
676
|
lazy: !0,
|
|
677
677
|
url: J()
|
|
678
|
-
}, ee =
|
|
678
|
+
}, ee = i(Y), te = i((e) => {
|
|
679
679
|
let t = e(ee);
|
|
680
680
|
return new K(t, t.lazy);
|
|
681
681
|
});
|
|
682
682
|
function X() {
|
|
683
|
-
return
|
|
683
|
+
return a.get(te);
|
|
684
684
|
}
|
|
685
685
|
function ne(e) {
|
|
686
686
|
if (e.startsWith("http")) return new URL(e);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
2
|
import { t } from "./react-sHtZdjeP.js";
|
|
3
3
|
import { t as n } from "./compiler-runtime-CldRdSsv.js";
|
|
4
|
-
import { A as r } from "./useTheme-
|
|
4
|
+
import { A as r } from "./useTheme-Bns2gJZ6.js";
|
|
5
5
|
import { t as i } from "./invariant-DLmrl-hA.js";
|
|
6
6
|
//#region src/hooks/useAsyncData.ts
|
|
7
7
|
var a = n(), o = /* @__PURE__ */ e(t(), 1), s = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
2
|
import { t } from "./react-sHtZdjeP.js";
|
|
3
|
-
import {
|
|
3
|
+
import { b as n } from "./useTheme-Bns2gJZ6.js";
|
|
4
4
|
//#region src/hooks/useDeepCompareMemoize.ts
|
|
5
5
|
var r = /* @__PURE__ */ e(t(), 1);
|
|
6
6
|
function i(e) {
|
|
@@ -4,7 +4,7 @@ import { t as i } from "./react-sHtZdjeP.js";
|
|
|
4
4
|
import { t as a } from "./compiler-runtime-CldRdSsv.js";
|
|
5
5
|
import { m as o } from "./tooltip-CJ4Rqasp.js";
|
|
6
6
|
import { t as s } from "./jsx-runtime-3BD1kT0s.js";
|
|
7
|
-
import {
|
|
7
|
+
import { D as c, T as l } from "./useTheme-Bns2gJZ6.js";
|
|
8
8
|
var u = o("calendar", [
|
|
9
9
|
["path", {
|
|
10
10
|
d: "M8 2v4",
|
|
@@ -101,37 +101,40 @@ function g(e, n, r) {
|
|
|
101
101
|
i.push(e);
|
|
102
102
|
}, { reducer: o, createActions: s } = h(e, n), u = (e, n) => {
|
|
103
103
|
try {
|
|
104
|
-
|
|
105
|
-
for (let a of i) try {
|
|
106
|
-
a(e, r, n);
|
|
107
|
-
} catch (e) {
|
|
108
|
-
t.error(`Error in middleware for action ${n.type}:`, e);
|
|
109
|
-
}
|
|
110
|
-
return r;
|
|
104
|
+
return o(e, n);
|
|
111
105
|
} catch (r) {
|
|
112
106
|
return t.error(`Error in reducer for action ${n.type}:`, r), e;
|
|
113
107
|
}
|
|
114
|
-
}, d =
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
108
|
+
}, d = (e, n, r) => {
|
|
109
|
+
for (let a of i) try {
|
|
110
|
+
a(e, n, r);
|
|
111
|
+
} catch (e) {
|
|
112
|
+
t.error(`Error in middleware for action ${r.type}:`, e);
|
|
113
|
+
}
|
|
114
|
+
}, f = (e, t) => {
|
|
115
|
+
let n = u(e, t);
|
|
116
|
+
return d(e, n, t), n;
|
|
117
|
+
}, p = c(e()), g = /* @__PURE__ */ new WeakMap(), _ = /* @__PURE__ */ new WeakMap();
|
|
118
|
+
function v(e) {
|
|
119
|
+
let t = (0, m.c)(8), n;
|
|
120
|
+
t[0] === e ? n = t[1] : (n = e === void 0 ? {} : e, t[0] = e, t[1] = n);
|
|
121
|
+
let r = n, i = l(p), a = r.skipMiddleware === !0, o = a ? _ : g;
|
|
122
|
+
if (!o.has(i)) {
|
|
118
123
|
let e;
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
124
|
+
t[2] !== i || t[3] !== a ? (e = (e) => {
|
|
125
|
+
let t, n;
|
|
126
|
+
i((r) => (t = r, n = u(r, e), n)), !a && t !== void 0 && n !== void 0 && d(t, n, e);
|
|
127
|
+
}, t[2] = i, t[3] = a, t[4] = e) : e = t[4], o.set(i, s(e));
|
|
122
128
|
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}));
|
|
126
|
-
let i;
|
|
127
|
-
return t[2] === r ? i = t[3] : (i = f.get(r), t[2] = r, t[3] = i), i;
|
|
129
|
+
let c;
|
|
130
|
+
return t[5] !== o || t[6] !== i ? (c = o.get(i), t[5] = o, t[6] = i, t[7] = c) : c = t[7], c;
|
|
128
131
|
}
|
|
129
132
|
return {
|
|
130
|
-
reducer:
|
|
133
|
+
reducer: f,
|
|
131
134
|
addMiddleware: a,
|
|
132
135
|
createActions: s,
|
|
133
|
-
valueAtom:
|
|
134
|
-
useActions:
|
|
136
|
+
valueAtom: p,
|
|
137
|
+
useActions: v
|
|
135
138
|
};
|
|
136
139
|
}
|
|
137
140
|
//#endregion
|