@marimo-team/islands 0.23.7-dev6 → 0.23.7-dev8
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/{chat-ui-B-gbqk_F.js → chat-ui-D8SqlFay.js} +2 -2
- package/dist/{code-visibility-jLjZTWEO.js → code-visibility-i-wZHH96.js} +592 -581
- package/dist/{html-to-image-hMMPiNe_.js → html-to-image-_jxGvsrc.js} +8 -8
- package/dist/main.js +903 -894
- package/dist/{process-output-Bza_GK7Q.js → process-output-ClDgSR3m.js} +1 -1
- package/dist/{reveal-component-BMOBPyvh.js → reveal-component-DisX89FD.js} +2 -2
- package/package.json +1 -1
- package/src/components/data-table/TableTopBar.tsx +5 -1
- package/src/components/data-table/data-table.tsx +5 -0
- package/src/components/data-table/download-policy/atoms.ts +10 -0
- package/src/components/data-table/export-actions.tsx +31 -4
- package/src/components/editor/file-tree/upload.tsx +1 -8
- package/src/core/codemirror/markdown/__tests__/commands.test.ts +3 -3
- package/src/core/codemirror/markdown/commands.ts +1 -2
- package/src/core/network/requests-network.ts +21 -3
- package/src/core/network/types.ts +12 -1
- package/src/core/wasm/bridge.ts +14 -1
- package/src/plugins/impl/DataTablePlugin.tsx +12 -0
- package/src/plugins/impl/data-frames/DataFramePlugin.tsx +6 -0
|
@@ -20664,8 +20664,8 @@ ${n.sqlString}
|
|
|
20664
20664
|
}), i;
|
|
20665
20665
|
try {
|
|
20666
20666
|
if (r.startsWith("data:")) {
|
|
20667
|
-
let e2 =
|
|
20668
|
-
if (
|
|
20667
|
+
let e2 = prompt("We can save your image as a file. Enter a filename.", t.name), n2 = t.type.split("/")[1];
|
|
20668
|
+
if (e2 === null) {
|
|
20669
20669
|
let e3 = Math.round(r.length / 1024);
|
|
20670
20670
|
if (e3 > MAX_BASE64_SIZE_KB) {
|
|
20671
20671
|
toast({
|
|
@@ -20675,14 +20675,14 @@ ${n.sqlString}
|
|
|
20675
20675
|
return;
|
|
20676
20676
|
}
|
|
20677
20677
|
} else {
|
|
20678
|
-
|
|
20679
|
-
let r2 = store.get(filenameAtom),
|
|
20680
|
-
path:
|
|
20678
|
+
e2.trim() === "" ? e2 = t.name : e2.endsWith(`.${n2}`) || (e2 = `${e2}.${n2}`);
|
|
20679
|
+
let r2 = store.get(filenameAtom), a2 = r2 ? Paths.dirname(r2) : null, o2 = a2 ? `${a2}/public` : "public", s = await getRequestClient().sendCreateFileOrFolder({
|
|
20680
|
+
path: o2,
|
|
20681
20681
|
type: "file",
|
|
20682
|
-
name:
|
|
20683
|
-
|
|
20682
|
+
name: e2,
|
|
20683
|
+
file: t
|
|
20684
20684
|
});
|
|
20685
|
-
|
|
20685
|
+
s.success ? (i = (_a2 = s.info) == null ? void 0 : _a2.path, i && a2 && i.startsWith(a2) && (i = Paths.rest(i, a2).replaceAll("\\", "/")), toast({
|
|
20686
20686
|
title: "Image uploaded successfully",
|
|
20687
20687
|
description: `We've uploaded your image at ${i}`
|
|
20688
20688
|
})) : toast({
|