@marimo-team/islands 0.19.3-dev49 → 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-
|
|
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
|
@@ -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
|
|