@marimo-team/islands 0.25.3-dev125 → 0.25.3-dev127
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/{ErrorBoundary-BccEkd6j.js → ErrorBoundary-CPEgy6hY.js} +1 -1
- package/dist/{chat-ui-DA8zEZ1I.js → chat-ui-k6_K3FK7.js} +4 -4
- package/dist/{code-visibility-DF85Rrl4.js → code-visibility-DA9jRfM0.js} +3 -3
- package/dist/{common-_eQpkBcI.js → common-uGnMtkcz.js} +5 -5
- package/dist/{data-grid-overlay-editor-B3ajKmHB.js → data-grid-overlay-editor-C2qbg6YG.js} +1 -1
- package/dist/{error-entries-g9iQiVIT.js → error-entries-BvD_zQ4j.js} +1 -1
- package/dist/{feedback-button-C6tIDIdd.js → feedback-button-CIiADQ2k.js} +3 -3
- package/dist/{formats-V8ifA0Bk.js → formats-B3UNwK0S.js} +1 -1
- package/dist/{glide-data-editor-YSVdw8s8.js → glide-data-editor-yXRV-D0b.js} +3 -3
- package/dist/{globals-BFqOJRmn.js → globals-DbERpwvN.js} +1 -1
- package/dist/{html-to-image-Bg5ZoSO-.js → html-to-image-DJ2kGp48.js} +2 -2
- package/dist/main.js +13 -13
- package/dist/{number-overlay-editor-b_1S9raa.js → number-overlay-editor-z12o1WAt.js} +1 -1
- package/dist/{process-output-BtVPCGeI.js → process-output-BcFHHtnm.js} +2 -2
- package/dist/{reveal-component-CRsrHrmb.js → reveal-component-VBjBT6SL.js} +4 -4
- package/dist/{toDate-DKH0_kMo.js → toDate-DfkyXuPi.js} +4 -0
- package/dist/{vega-component-DgytCKrL.js → vega-component-0hWVSBRc.js} +2 -2
- package/package.json +1 -1
- package/src/core/host/__tests__/notebook-client.test.ts +18 -6
- package/src/core/host/__tests__/static.test.ts +4 -2
- package/src/core/host/__tests__/wasm.test.ts +12 -10
- package/src/core/host/backend.ts +8 -3
- package/src/core/host/notebook-client.ts +15 -15
- package/src/core/host/static.ts +2 -2
- package/src/core/host/wasm.ts +4 -3
- package/src/core/runtime/__tests__/runtime.test.ts +17 -0
- package/src/core/runtime/runtime.ts +13 -0
- package/src/core/websocket/__tests__/backend.test.ts +111 -0
- package/src/core/websocket/__tests__/useNotebookClient.hook.test.tsx +32 -27
- package/src/core/websocket/__tests__/useNotebookSession.hook.test.tsx +7 -4
- package/src/core/websocket/backend.ts +68 -0
- package/src/core/websocket/transports/__tests__/notebook.test.ts +9 -56
- package/src/core/websocket/transports/notebook.ts +15 -38
- package/src/core/websocket/useNotebookClient.ts +6 -6
- package/src/core/websocket/useNotebookSession.tsx +3 -2
|
@@ -75,7 +75,6 @@ import {
|
|
|
75
75
|
import { useStorageActions } from "../storage/state";
|
|
76
76
|
import { useVariablesActions } from "../variables/state";
|
|
77
77
|
import type { VariableName } from "../variables/types";
|
|
78
|
-
import { isWasm } from "../wasm/utils";
|
|
79
78
|
import { WebSocketClosedReason, ConnectionState } from "./types";
|
|
80
79
|
|
|
81
80
|
const SUPPORTS_LAZY_KERNELS = true;
|
|
@@ -418,8 +417,10 @@ export function useNotebookSession(opts: {
|
|
|
418
417
|
: runtimeManager.getWsURL(sessionId).toString(),
|
|
419
418
|
// SSE uses headers for auth. WebSockets carry the token in the URL.
|
|
420
419
|
headers: () => runtimeManager.headers(),
|
|
420
|
+
notebookUrl: (notebookId) => runtimeManager.getNotebookURL(notebookId),
|
|
421
|
+
// Only the host's transports read the URL, so static and WASM never wait.
|
|
421
422
|
waitUntilReady: async () => {
|
|
422
|
-
if (!
|
|
423
|
+
if (!runtimeManager.isSameOrigin) {
|
|
423
424
|
await runtimeManager.waitForHealthy();
|
|
424
425
|
}
|
|
425
426
|
},
|