@marimo-team/islands 0.19.3-dev48 → 0.19.3-dev50

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 CHANGED
@@ -101061,7 +101061,7 @@ Defaulting to \`null\`.`;
101061
101061
  return Logger.warn("Failed to get version from mount config"), null;
101062
101062
  }
101063
101063
  }
101064
- const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.19.3-dev48"), showCodeInRunModeAtom = atom(true);
101064
+ const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.19.3-dev50"), showCodeInRunModeAtom = atom(true);
101065
101065
  atom(null);
101066
101066
  var VIRTUAL_FILE_REGEX = /\/@file\/([^\s"&'/]+)\.([\dA-Za-z]+)/g, VirtualFileTracker = class e {
101067
101067
  constructor() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marimo-team/islands",
3
- "version": "0.19.3-dev48",
3
+ "version": "0.19.3-dev50",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -1399,7 +1399,9 @@ export const AiModelDisplayConfig: React.FC<AiConfigProps> = ({
1399
1399
  ? currentDisplayedModels.filter((id) => id !== modelId)
1400
1400
  : [...currentDisplayedModels, modelId];
1401
1401
 
1402
- form.setValue("ai.models.displayed_models", newModels);
1402
+ form.setValue("ai.models.displayed_models", newModels, {
1403
+ shouldDirty: true,
1404
+ });
1403
1405
  onSubmit(form.getValues());
1404
1406
  });
1405
1407
 
@@ -1416,14 +1418,18 @@ export const AiModelDisplayConfig: React.FC<AiConfigProps> = ({
1416
1418
  ? [...new Set([...currentDisplayedModels, ...qualifiedModelIds])]
1417
1419
  : currentDisplayedModels.filter((id) => !qualifiedModelIds.has(id));
1418
1420
 
1419
- form.setValue("ai.models.displayed_models", newModels);
1421
+ form.setValue("ai.models.displayed_models", newModels, {
1422
+ shouldDirty: true,
1423
+ });
1420
1424
  onSubmit(form.getValues());
1421
1425
  },
1422
1426
  );
1423
1427
 
1424
1428
  const deleteModel = useEvent((modelId: QualifiedModelId) => {
1425
1429
  const newModels = customModels.filter((id) => id !== modelId);
1426
- form.setValue("ai.models.custom_models", newModels);
1430
+ form.setValue("ai.models.custom_models", newModels, {
1431
+ shouldDirty: true,
1432
+ });
1427
1433
  onSubmit(form.getValues());
1428
1434
  });
1429
1435
 
@@ -1500,7 +1506,9 @@ export const AddModelForm: React.FC<{
1500
1506
  modelName as ShortModelId,
1501
1507
  );
1502
1508
 
1503
- form.setValue("ai.models.custom_models", [newModel.id, ...customModels]);
1509
+ form.setValue("ai.models.custom_models", [newModel.id, ...customModels], {
1510
+ shouldDirty: true,
1511
+ });
1504
1512
  onSubmit(form.getValues());
1505
1513
  resetForm();
1506
1514
 
@@ -65,7 +65,7 @@ export const KernelStartupErrorModal: React.FC = () => {
65
65
  manager can't install your notebook's dependencies.
66
66
  </AlertDialogDescription>
67
67
  </AlertDialogHeader>
68
- <div className="my-4">
68
+ <div className="my-4 overflow-hidden">
69
69
  <div className="flex items-center justify-between mb-2">
70
70
  <span className="text-sm font-medium text-muted-foreground">
71
71
  Error Details
@@ -80,7 +80,7 @@ export const KernelStartupErrorModal: React.FC = () => {
80
80
  Copy
81
81
  </Button>
82
82
  </div>
83
- <pre className="bg-muted p-4 rounded-md text-sm font-mono overflow-auto max-h-80 whitespace-pre-wrap break-words">
83
+ <pre className="bg-muted p-4 rounded-md text-sm font-mono overflow-auto max-h-80">
84
84
  {error}
85
85
  </pre>
86
86
  </div>