@marimo-team/frontend 0.20.5-dev0 → 0.20.5-dev3
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/{JsonOutput-BSyDxU0G.js → JsonOutput-GlMQ3aLA.js} +10 -10
- package/dist/assets/{add-connection-dialog-D4U9I7ze.js → add-connection-dialog-9CzjZlY9.js} +43 -38
- package/dist/assets/{agent-panel-ZBBeZzCj.js → agent-panel-BX_iKZeN.js} +1 -1
- package/dist/assets/{cell-editor-E00pyx5t.js → cell-editor-B1x4zkBp.js} +1 -1
- package/dist/assets/{column-preview-BQP0K_pZ.js → column-preview-BhU5Ow0e.js} +1 -1
- package/dist/assets/{command-palette-CqTN1VKY.js → command-palette-BSS73m03.js} +1 -1
- package/dist/assets/{context-aware-panel-D7ygyp92.js → context-aware-panel-HnyO4-L2.js} +1 -1
- package/dist/assets/{edit-page-lJN42JGx.js → edit-page-26-lDVMB.js} +3 -3
- package/dist/assets/{file-explorer-panel-BU69ZByp.js → file-explorer-panel-Bv8lRdKl.js} +1 -1
- package/dist/assets/{hooks-FnmFpagQ.js → hooks-BY6oGAlX.js} +1 -1
- package/dist/assets/{index-DyRdaW9o.js → index-B8ImLAg8.js} +3 -3
- package/dist/assets/index-Dzwe9vKA.css +2 -0
- package/dist/assets/{layout-DnAy5Tn0.js → layout-DVAA7kHH.js} +1 -1
- package/dist/assets/{panels-h8gAGYxu.js → panels-Do1_ry1k.js} +1 -1
- package/dist/assets/{run-page-hoKz5ZHk.js → run-page-BGijCqbR.js} +1 -1
- package/dist/assets/{scratchpad-panel-BJOVrgA9.js → scratchpad-panel-ByOWj9u_.js} +1 -1
- package/dist/assets/{session-panel-Bpv4DUGh.js → session-panel-B_8ny7jh.js} +1 -1
- package/dist/assets/{useNotebookActions-B17g4RO8.js → useNotebookActions-XGX8NzaB.js} +1 -1
- package/dist/index.html +5 -5
- package/package.json +1 -1
- package/src/components/data-table/range-focus/__tests__/cell-selection-stats.test.tsx +14 -9
- package/src/components/data-table/range-focus/cell-selection-stats.tsx +44 -13
- package/src/components/editor/connections/storage/__tests__/__snapshots__/as-code.test.ts.snap +37 -0
- package/src/components/editor/connections/storage/__tests__/as-code.test.ts +60 -0
- package/src/components/editor/connections/storage/add-storage-form.tsx +20 -13
- package/src/components/editor/connections/storage/as-code.ts +37 -0
- package/src/components/editor/connections/storage/schemas.ts +45 -1
- package/src/components/storage/components.tsx +6 -2
- package/dist/assets/index-DrPzoH7F.css +0 -2
|
@@ -21,7 +21,6 @@ export const S3StorageSchema = z
|
|
|
21
21
|
FieldOptions.of({
|
|
22
22
|
label: "Region",
|
|
23
23
|
placeholder: "us-east-1",
|
|
24
|
-
optionRegex: ".*region.*",
|
|
25
24
|
}),
|
|
26
25
|
),
|
|
27
26
|
access_key_id: z
|
|
@@ -115,6 +114,50 @@ export const AzureStorageSchema = z
|
|
|
115
114
|
})
|
|
116
115
|
.describe(FieldOptions.of({ direction: "two-columns" }));
|
|
117
116
|
|
|
117
|
+
export const CoreWeaveStorageSchema = z
|
|
118
|
+
.object({
|
|
119
|
+
type: z.literal("coreweave"),
|
|
120
|
+
bucket: z
|
|
121
|
+
.string()
|
|
122
|
+
.nonempty()
|
|
123
|
+
.describe(
|
|
124
|
+
FieldOptions.of({
|
|
125
|
+
label: "Bucket",
|
|
126
|
+
placeholder: "bucket-name",
|
|
127
|
+
}),
|
|
128
|
+
),
|
|
129
|
+
region: z
|
|
130
|
+
.string()
|
|
131
|
+
.nonempty()
|
|
132
|
+
.describe(
|
|
133
|
+
FieldOptions.of({
|
|
134
|
+
label: "Region",
|
|
135
|
+
placeholder: "US-EAST-04A",
|
|
136
|
+
}),
|
|
137
|
+
),
|
|
138
|
+
access_key_id: z
|
|
139
|
+
.string()
|
|
140
|
+
.optional()
|
|
141
|
+
.describe(
|
|
142
|
+
FieldOptions.of({
|
|
143
|
+
label: "Access Key ID",
|
|
144
|
+
inputType: "password",
|
|
145
|
+
optionRegex: ".*object_storage_key.*",
|
|
146
|
+
}),
|
|
147
|
+
),
|
|
148
|
+
secret_access_key: z
|
|
149
|
+
.string()
|
|
150
|
+
.optional()
|
|
151
|
+
.describe(
|
|
152
|
+
FieldOptions.of({
|
|
153
|
+
label: "Secret Access Key",
|
|
154
|
+
inputType: "password",
|
|
155
|
+
optionRegex: ".*object_storage_secret.*",
|
|
156
|
+
}),
|
|
157
|
+
),
|
|
158
|
+
})
|
|
159
|
+
.describe(FieldOptions.of({ direction: "two-columns" }));
|
|
160
|
+
|
|
118
161
|
export const GoogleDriveStorageSchema = z
|
|
119
162
|
.object({
|
|
120
163
|
type: z.literal("gdrive"),
|
|
@@ -135,6 +178,7 @@ export const StorageConnectionSchema = z.discriminatedUnion("type", [
|
|
|
135
178
|
S3StorageSchema,
|
|
136
179
|
GCSStorageSchema,
|
|
137
180
|
AzureStorageSchema,
|
|
181
|
+
CoreWeaveStorageSchema,
|
|
138
182
|
GoogleDriveStorageSchema,
|
|
139
183
|
]);
|
|
140
184
|
|
|
@@ -75,15 +75,19 @@ const PROTOCOL_ICONS: Record<KnownStorageProtocol, IconEntry> = {
|
|
|
75
75
|
|
|
76
76
|
export const ProtocolIcon: React.FC<{
|
|
77
77
|
protocol: KnownStorageProtocol | (string & {});
|
|
78
|
+
forceDark?: boolean;
|
|
78
79
|
className?: string;
|
|
79
|
-
}> = ({ protocol, className }) => {
|
|
80
|
+
}> = ({ protocol, forceDark, className }) => {
|
|
80
81
|
const { theme } = useTheme();
|
|
81
82
|
const entry =
|
|
82
83
|
PROTOCOL_ICONS[protocol.toLowerCase() as KnownStorageProtocol] ??
|
|
83
84
|
HardDriveIcon;
|
|
84
85
|
|
|
85
86
|
if ("src" in entry) {
|
|
86
|
-
|
|
87
|
+
let src = entry.src;
|
|
88
|
+
if (entry.dark && (forceDark || theme === "dark")) {
|
|
89
|
+
src = entry.dark;
|
|
90
|
+
}
|
|
87
91
|
return (
|
|
88
92
|
<img src={src} alt={protocol} className={cn("h-3.5 w-3.5", className)} />
|
|
89
93
|
);
|