@marimo-team/islands 0.25.3-dev91 → 0.25.3-dev93
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-Da5OoEUL.js → ConnectedDataExplorerComponent-Dhf5EGs5.js} +4 -4
- package/dist/{ErrorBoundary-B2fk7qNp.js → ErrorBoundary-jiRCrm1p.js} +2 -2
- package/dist/{abnfDiagram-VCTEODGH-Bz3mrprX.js → abnfDiagram-VCTEODGH-Di400kYu.js} +2 -2
- package/dist/{architectureDiagram-5GKGNRK7-Cs5ujb9K.js → architectureDiagram-5GKGNRK7-BdTJcsNJ.js} +1 -1
- package/dist/assets/__vite-browser-external-35VXYmnw.js +1 -0
- package/dist/assets/{worker-HPY9fbhz.js → worker-Dq8y-WM5.js} +2 -2
- package/dist/{chat-ui-C9S_7vEJ.js → chat-ui-D0jT6WV3.js} +7 -7
- package/dist/{chunk-IMKFNOWR-CcTSaxZt.js → chunk-IMKFNOWR-mtD7aJBw.js} +1 -1
- package/dist/{chunk-SHT3W25Y-DcJcjOaO.js → chunk-SHT3W25Y-DybB1ShH.js} +1 -1
- package/dist/{chunk-SVP7TREG-BVtDTjaF.js → chunk-SVP7TREG-DNhhdCex.js} +1 -1
- package/dist/{chunk-TICWLB2K-BkDFkh8q.js → chunk-TICWLB2K-NhAQhlDf.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-CfAt7HT5.js → classDiagram-ZZMXUADV-GTL0l5xS.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-CGEjNYa2.js → classDiagram-v2-VYDZK3BY-BWrM2ruI.js} +2 -2
- package/dist/{code-visibility-Cgx6Zcjn.js → code-visibility-B_y_dByX.js} +4 -4
- package/dist/{common-bzgiULVY.js → common-CmpSkUjV.js} +12 -12
- package/dist/{cynefinDiagram-5FMLGOSQ-BW6NmfJi.js → cynefinDiagram-5FMLGOSQ-CX22wa7c.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-CWg3CTuF.js → dagre-GXQ25YYZ-Df6Pp-cl.js} +1 -1
- package/dist/{data-grid-overlay-editor-sPSVUywU.js → data-grid-overlay-editor-CJTJtfj-.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-BPxtoS-z.js → diagram-S7CK7UJ4-CctU9kVx.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-DA-vJdFL.js → diagram-UQ7AKVKN-FVHjCF9j.js} +1 -1
- package/dist/{diagram-VX7I27RA-D6bkR84S.js → diagram-VX7I27RA-BSDbwFFv.js} +1 -1
- package/dist/{diagram-Z3DM3KII-m60g4cAT.js → diagram-Z3DM3KII-BX8kW7Nc.js} +1 -1
- package/dist/{dropdown-menu-B3eUiVJB.js → dropdown-menu-B_7xD2X4.js} +1 -1
- package/dist/{ebnfDiagram-PWID7BFC-CK99sho2.js → ebnfDiagram-PWID7BFC-DtapdLet.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-Bryq0tdE.js → erDiagram-RLTQ6QDP-BAru9jHt.js} +1 -1
- package/dist/{error-entries-Cmiq1RT-.js → error-entries-BZiemZfD.js} +5 -5
- package/dist/{feedback-button-D1xPWL8j.js → feedback-button-BpHnBE3A.js} +5 -5
- package/dist/{flowDiagram-HODETNUW-D-3aRpfS.js → flowDiagram-HODETNUW-CjaeFeea.js} +2 -2
- package/dist/{formats-ZmooA-MD.js → formats-V8ifA0Bk.js} +1 -1
- package/dist/{glide-data-editor-DP-ZHFkV.js → glide-data-editor-B3xUjh0M.js} +5 -5
- package/dist/{globals-DPNV_VHW.js → globals-DI7gqOyy.js} +2 -2
- package/dist/{html-to-image-Dc3mTXAs.js → html-to-image-DBOTlHF9.js} +5 -5
- package/dist/{infoDiagram-27XIBGKW-s1C1kgfU.js → infoDiagram-27XIBGKW-B1hmUggC.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-CCsRgolY.js → ishikawaDiagram-5VMMS53U-DUeT3t-d.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-BrmxDlcc.js → kanban-definition-UXKFOSKX-DEUnNNgc.js} +1 -1
- package/dist/main.js +24 -24
- package/dist/{mermaid-DKI0869I.js → mermaid-B0fXpsNP.js} +34 -34
- package/dist/{mindmap-definition-YA3MSWOX-641xJysF.js → mindmap-definition-YA3MSWOX-CPexlhDQ.js} +1 -1
- package/dist/{number-overlay-editor-BExs_gHI.js → number-overlay-editor-DQ6KAcGy.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-keVUAUeS.js → pegDiagram-XKGWAZYB-CMpp1OOQ.js} +2 -2
- package/dist/{pieDiagram-E7YTZNPT-DHktXPO_.js → pieDiagram-E7YTZNPT-DlMWg5t1.js} +1 -1
- package/dist/{process-output-C47Xs8_M.js → process-output-BKLVbFnU.js} +2 -2
- package/dist/{railroadDiagram-O6MQD6OU-BVEF4OV_.js → railroadDiagram-O6MQD6OU-DBJfseeO.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-CWo-UAKV.js → requirementDiagram-BXWQKSXE-BC7V639r.js} +1 -1
- package/dist/{reveal-component-DSxmD7Ft.js → reveal-component-DsWQWmYM.js} +6 -6
- package/dist/{sequenceDiagram-WJ2MYXX4-CHQvLnq4.js → sequenceDiagram-WJ2MYXX4-CgesU6F-.js} +1 -1
- package/dist/{spec-C-LRKGtT.js → spec-CcT0slVc.js} +1 -1
- package/dist/{stateDiagram-D77RDMKH-BOJZgbUJ.js → stateDiagram-D77RDMKH-lH_BUhs3.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-C53XXdYH.js → stateDiagram-v2-MP3YSRHH-8LL6FrBe.js} +2 -2
- package/dist/{swimlanes-42K2YHIH-D2o1gOtw.js → swimlanes-42K2YHIH-Cuf9B9kE.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-BHFzN1Wk.js → swimlanesDiagram-VR7AAH4N-BoMMtOPh.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-rv7QUa46.js → timeline-definition-24CTP7MA-yzzw4TF4.js} +1 -1
- package/dist/{toDate-C6BRw8i5.js → toDate-DKH0_kMo.js} +1 -1
- package/dist/{useAsyncData-ChgNtdmE.js → useAsyncData-D0mLJstx.js} +1 -1
- package/dist/{useDeepCompareMemoize-Bet7kSsI.js → useDeepCompareMemoize-BpPWi3G3.js} +1 -1
- package/dist/{useLifecycle-VVmz_24o.js → useLifecycle-Dum8WSXq.js} +1 -1
- package/dist/{useTheme-DympCsQg.js → useTheme-CfeaVw5D.js} +1 -1
- package/dist/{vega-component-B8IjMdad.js → vega-component-DgytCKrL.js} +5 -5
- package/dist/{vennDiagram-4TSXK5OY-D36Zk7t-.js → vennDiagram-4TSXK5OY-eJOrTqqC.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-BLBolvyQ.js → wardleyDiagram-VM6X3IG4-TILPvee6.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-CfH57l0v.js → xychartDiagram-S5SC5T6Z-DUPvRwwJ.js} +1 -1
- package/package.json +1 -1
- package/src/components/chat/acp/__tests__/state.test.ts +2 -2
- package/src/components/data-table/cell-selection/feature.ts +2 -2
- package/src/components/data-table/cell-selection/types.ts +2 -2
- package/src/components/data-table/column-summary/column-summary.tsx +2 -4
- package/src/components/datasources/__tests__/table-list.test.tsx +118 -0
- package/src/components/datasources/datasources.tsx +35 -21
- package/src/components/editor/SortableCell.tsx +1 -3
- package/src/components/editor/chrome/wrapper/footer-items/runtime-settings.tsx +1 -7
- package/src/components/editor/chrome/wrapper/storage.ts +1 -1
- package/src/components/editor/output/MarimoTracebackOutput.tsx +1 -1
- package/src/components/icons/spinner.tsx +1 -1
- package/src/components/ui/alert-dialog.tsx +1 -1
- package/src/core/ai/context/providers/datasource.ts +6 -2
- package/src/core/cells/session.ts +1 -1
- package/src/core/codemirror/__tests__/setup.test.ts +1 -1
- package/src/core/codemirror/keymaps/vim.ts +2 -6
- package/src/core/codemirror/language/languages/markdown.ts +1 -1
- package/src/core/codemirror/language/languages/python.ts +3 -3
- package/src/core/kernel/__tests__/RuntimeState.test.ts +1 -1
- package/src/core/state/__tests__/jotai.test.tsx +108 -0
- package/src/core/state/jotai.ts +1 -1
- package/src/core/wasm/bridge.ts +2 -2
- package/src/core/wasm/store.ts +3 -3
- package/src/core/wasm/worker/bootstrap.ts +1 -1
- package/src/core/wasm/worker/getMarimoWheel.ts +1 -1
- package/src/plugins/impl/CodeEditorPlugin.tsx +1 -1
- package/src/plugins/impl/RangeSliderPlugin.tsx +0 -1
- package/src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx +1 -1
- package/src/plugins/impl/data-explorer/state/reducer.ts +1 -1
- package/src/plugins/impl/data-frames/DataFramePlugin.tsx +0 -1
- package/src/plugins/impl/panel/PanelPlugin.tsx +1 -1
- package/src/plugins/impl/vega/make-selectable.ts +1 -1
- package/src/plugins/layout/RoutesPlugin.tsx +1 -1
- package/src/stories/form-wrapper.stories.tsx +2 -2
- package/src/stories/select.stories.tsx +2 -2
- package/src/stories/switchable-multi-select.stories.tsx +1 -1
- package/src/utils/__tests__/batch-requests.test.ts +3 -3
- package/src/utils/blob.ts +1 -1
- package/src/utils/zod-utils.ts +1 -3
- package/dist/assets/__vite-browser-external-BXYkiFsk.js +0 -1
- package/src/core/state/__tests__/jotai.test.ts +0 -25
|
@@ -56,7 +56,7 @@ const RoutesComponent = ({
|
|
|
56
56
|
|
|
57
57
|
useEffect(() => {
|
|
58
58
|
// Listen for route changes
|
|
59
|
-
const listener = (
|
|
59
|
+
const listener = () => {
|
|
60
60
|
handleFindMatch(window.location);
|
|
61
61
|
};
|
|
62
62
|
window.addEventListener("hashchange", listener);
|
|
@@ -20,7 +20,7 @@ type Story = StoryObj<typeof FormWrapper>;
|
|
|
20
20
|
const props: FormWrapperProps<string> = {
|
|
21
21
|
currentValue: "currentValue",
|
|
22
22
|
newValue: "currentValue",
|
|
23
|
-
setValue: (
|
|
23
|
+
setValue: () => {
|
|
24
24
|
toast({
|
|
25
25
|
title: "Form submitted",
|
|
26
26
|
});
|
|
@@ -133,7 +133,7 @@ export const Validate: Story = {
|
|
|
133
133
|
<FormWrapper
|
|
134
134
|
{...props}
|
|
135
135
|
shouldValidate={true}
|
|
136
|
-
validate={async (
|
|
136
|
+
validate={async () => {
|
|
137
137
|
const random = Math.random();
|
|
138
138
|
if (random < 0.8) {
|
|
139
139
|
return `Failed to validate. Random number was ${random}`;
|
|
@@ -24,7 +24,7 @@ export default meta;
|
|
|
24
24
|
type Story = StoryObj;
|
|
25
25
|
|
|
26
26
|
export const Primary: Story = {
|
|
27
|
-
render: (
|
|
27
|
+
render: () => (
|
|
28
28
|
<Select>
|
|
29
29
|
<SelectTrigger className="w-64">
|
|
30
30
|
<SelectValue placeholder="Select a fruit" />
|
|
@@ -63,7 +63,7 @@ export const Primary: Story = {
|
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
export const Clearable: Story = {
|
|
66
|
-
render: (
|
|
66
|
+
render: () => {
|
|
67
67
|
const [value, setValue] = useState<string>("");
|
|
68
68
|
return (
|
|
69
69
|
<>
|
|
@@ -8,7 +8,7 @@ async function sleep(ms: number) {
|
|
|
8
8
|
|
|
9
9
|
describe("batch", () => {
|
|
10
10
|
it("should return the same promise for calls with the same key", async () => {
|
|
11
|
-
const loader = vi.fn().mockImplementation(async (
|
|
11
|
+
const loader = vi.fn().mockImplementation(async () => {
|
|
12
12
|
await sleep(10);
|
|
13
13
|
return "response";
|
|
14
14
|
});
|
|
@@ -25,7 +25,7 @@ describe("batch", () => {
|
|
|
25
25
|
});
|
|
26
26
|
|
|
27
27
|
it("should call loader again after the first promise resolves", async () => {
|
|
28
|
-
const loader = vi.fn().mockImplementation(async (
|
|
28
|
+
const loader = vi.fn().mockImplementation(async () => {
|
|
29
29
|
await sleep(10);
|
|
30
30
|
return "response";
|
|
31
31
|
});
|
|
@@ -40,7 +40,7 @@ describe("batch", () => {
|
|
|
40
40
|
});
|
|
41
41
|
|
|
42
42
|
it("should handle different keys separately", async () => {
|
|
43
|
-
const loader = vi.fn().mockImplementation(async (
|
|
43
|
+
const loader = vi.fn().mockImplementation(async () => {
|
|
44
44
|
await sleep(10);
|
|
45
45
|
return "response";
|
|
46
46
|
});
|
package/src/utils/blob.ts
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
type DataURLString,
|
|
6
6
|
} from "./json/base64";
|
|
7
7
|
|
|
8
|
-
export function serializeBlob
|
|
8
|
+
export function serializeBlob(blob: Blob): Promise<DataURLString> {
|
|
9
9
|
return new Promise<DataURLString>((resolve, reject) => {
|
|
10
10
|
const reader = new FileReader();
|
|
11
11
|
reader.onload = (event) => {
|
package/src/utils/zod-utils.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./worker-HPY9fbhz.js";var t=e(((e,t)=>{t.exports={}}));export default t();
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
|
-
|
|
3
|
-
import { atom } from "jotai";
|
|
4
|
-
import { describe, expect, it } from "vitest";
|
|
5
|
-
import { store, waitFor } from "../jotai";
|
|
6
|
-
|
|
7
|
-
describe("waitFor function", () => {
|
|
8
|
-
it("should resolve when the atom satisfies the predicate", async () => {
|
|
9
|
-
const testAtom = atom(0);
|
|
10
|
-
store.set(testAtom, 10);
|
|
11
|
-
|
|
12
|
-
const result = await waitFor(testAtom, (value) => value === 10);
|
|
13
|
-
expect(result).toBe(10);
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
it("should resolve when the atom changes to satisfy the predicate", async () => {
|
|
17
|
-
const testAtom = atom(0);
|
|
18
|
-
|
|
19
|
-
setTimeout(() => store.set(testAtom, 15), 5);
|
|
20
|
-
setTimeout(() => store.set(testAtom, 20), 10);
|
|
21
|
-
|
|
22
|
-
const result = await waitFor(testAtom, (value) => value === 20);
|
|
23
|
-
expect(result).toBe(20);
|
|
24
|
-
});
|
|
25
|
-
});
|