@marimo-team/islands 0.23.2-dev52 → 0.23.2-dev53

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marimo-team/islands",
3
- "version": "0.23.2-dev52",
3
+ "version": "0.23.2-dev53",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -22,6 +22,7 @@ import {
22
22
  DialogTrigger,
23
23
  } from "../ui/dialog";
24
24
  import { toast } from "../ui/use-toast";
25
+ import { MarimoPlusIcon } from "../icons/marimo-icons";
25
26
 
26
27
  export const StaticBanner: React.FC = () => {
27
28
  const code = useAtomValue(codeAtom);
@@ -66,7 +67,10 @@ const StaticBannerDialog = ({ code }: { code: string }) => {
66
67
  }
67
68
 
68
69
  const href = window.location.href;
69
- const wasmLink = createShareableLink({ code });
70
+ const molabLink = createShareableLink({
71
+ code,
72
+ baseUrl: `${Constants.molab}/new`,
73
+ });
70
74
 
71
75
  return (
72
76
  <Dialog>
@@ -114,21 +118,26 @@ const StaticBannerDialog = ({ code }: { code: string }) => {
114
118
  </div>
115
119
  )}
116
120
 
117
- <div className="pt-3 border-t border-(--sky-7)">
118
- <p className="text-sm text-(--sky-12) mb-2">
119
- <strong>Try in browser with WebAssembly:</strong>{" "}
120
- <a
121
- href={wasmLink}
122
- target="_blank"
123
- className="text-(--sky-11) hover:underline break-all"
124
- rel="noreferrer"
125
- >
126
- {wasmLink.slice(0, 50)}...
121
+ <div className="pt-3 border-t flex gap-2 items-center">
122
+ <Button
123
+ asChild={true}
124
+ variant="outline"
125
+ size="xs"
126
+ className="shrink-0"
127
+ >
128
+ <a href={molabLink} target="_blank" rel="noopener noreferrer">
129
+ <MarimoPlusIcon
130
+ size={12}
131
+ strokeWidth={1.5}
132
+ className="mr-1.5 mt-px text-(--grass-11)"
133
+ />
134
+ Open in molab
127
135
  </a>
128
- </p>
136
+ </Button>
129
137
  <p className="text-sm text-(--sky-12)">
130
- Note: WebAssembly may not work for all notebooks. Additionally,
131
- some dependencies may not be available in the browser.
138
+ Run this notebook in{" "}
139
+ <span className="font-semibold">molab</span>, marimo's
140
+ cloud-hosted notebook platform.
132
141
  </p>
133
142
  </div>
134
143
  </DialogDescription>