@marimo-team/frontend 0.22.6-dev3 → 0.22.6-dev4
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/assets/{edit-page-pNynHCRL.js → edit-page-Bjud_xH4.js} +6 -6
- package/dist/assets/index-Dbq6ugUC.css +2 -0
- package/dist/assets/{index-CYqSowoL.js → index-Dtvlb-3A.js} +2 -2
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/src/components/editor/package-alert.tsx +17 -0
- package/src/core/alerts/state.ts +1 -0
- package/dist/assets/index-DBs2il8a.css +0 -2
package/dist/index.html
CHANGED
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
<marimo-server-token data-token="{{ server_token }}" hidden></marimo-server-token>
|
|
67
67
|
<!-- /TODO -->
|
|
68
68
|
<title>{{ title }}</title>
|
|
69
|
-
<script type="module" crossorigin src="./assets/index-
|
|
69
|
+
<script type="module" crossorigin src="./assets/index-Dtvlb-3A.js"></script>
|
|
70
70
|
<link rel="modulepreload" crossorigin href="./assets/preload-helper-D2MJg03u.js">
|
|
71
71
|
<link rel="modulepreload" crossorigin href="./assets/chunk-LvLJmgfZ.js">
|
|
72
72
|
<link rel="modulepreload" crossorigin href="./assets/react-Bj1aDYRI.js">
|
|
@@ -246,7 +246,7 @@
|
|
|
246
246
|
<link rel="stylesheet" crossorigin href="./assets/cells-jmgGt1lS.css">
|
|
247
247
|
<link rel="stylesheet" crossorigin href="./assets/markdown-renderer-DdDKmWlR.css">
|
|
248
248
|
<link rel="stylesheet" crossorigin href="./assets/JsonOutput-B7vuddcd.css">
|
|
249
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
249
|
+
<link rel="stylesheet" crossorigin href="./assets/index-Dbq6ugUC.css">
|
|
250
250
|
</head>
|
|
251
251
|
<body>
|
|
252
252
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -76,6 +76,21 @@ function buildPackageSpecifier(name: string, extras: string[]): string {
|
|
|
76
76
|
return `${name}[${extras.join(",")}]`;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
+
const SourceBadge: React.FC<{ source?: "kernel" | "server" }> = ({
|
|
80
|
+
source,
|
|
81
|
+
}) => {
|
|
82
|
+
if (source !== "server") {
|
|
83
|
+
return null;
|
|
84
|
+
}
|
|
85
|
+
return (
|
|
86
|
+
<Tooltip content="Installing into the server environment, not the notebook kernel">
|
|
87
|
+
<span className="ml-2 text-xs font-normal border border-current rounded px-1 py-0.5 opacity-60">
|
|
88
|
+
server
|
|
89
|
+
</span>
|
|
90
|
+
</Tooltip>
|
|
91
|
+
);
|
|
92
|
+
};
|
|
93
|
+
|
|
79
94
|
export const PackageAlert: React.FC = () => {
|
|
80
95
|
const { packageAlert, packageLogs } = useAlerts();
|
|
81
96
|
const { clearPackageAlert } = useAlertActions();
|
|
@@ -105,6 +120,7 @@ export const PackageAlert: React.FC = () => {
|
|
|
105
120
|
<span className="font-bold text-lg flex items-center mb-2">
|
|
106
121
|
<PackageXIcon className="w-5 h-5 inline-block mr-2" />
|
|
107
122
|
Missing packages
|
|
123
|
+
<SourceBadge source={packageAlert.source} />
|
|
108
124
|
</span>
|
|
109
125
|
<Button
|
|
110
126
|
variant="text"
|
|
@@ -217,6 +233,7 @@ export const PackageAlert: React.FC = () => {
|
|
|
217
233
|
<span className="font-bold text-lg flex items-center mb-2">
|
|
218
234
|
{titleIcon}
|
|
219
235
|
{title}
|
|
236
|
+
<SourceBadge source={packageAlert.source} />
|
|
220
237
|
</span>
|
|
221
238
|
<Button
|
|
222
239
|
variant="text"
|
package/src/core/alerts/state.ts
CHANGED