@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/dist/main.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/static-html/static-banner.tsx +23 -14
package/package.json
CHANGED
|
@@ -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
|
|
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
|
|
118
|
-
<
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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
|
-
</
|
|
136
|
+
</Button>
|
|
129
137
|
<p className="text-sm text-(--sky-12)">
|
|
130
|
-
|
|
131
|
-
|
|
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>
|