@marimo-team/marimo-export 0.0.3 → 0.0.5
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.
|
@@ -480,9 +480,7 @@ function parseSnapshotValue(value) {
|
|
|
480
480
|
if (isBooleanValue(value) || isNumberValue(value) || isStringValue(value)) return value;
|
|
481
481
|
if (Array.isArray(value)) return value.map(parseSnapshotValue);
|
|
482
482
|
if (!isRecordValue(value)) throw new TypeError("AnyWidget payload must contain JSON values.");
|
|
483
|
-
|
|
484
|
-
for (const [key, child] of Object.entries(value)) parsed[key] = parseSnapshotValue(child);
|
|
485
|
-
return parsed;
|
|
483
|
+
return Object.fromEntries(Object.entries(value).map(([key, child]) => [key, parseSnapshotValue(child)]));
|
|
486
484
|
}
|
|
487
485
|
//#endregion
|
|
488
486
|
//#region ../loader-anywidget/src/runtime/abort.ts
|
package/dist/prepared/index.mjs
CHANGED
|
@@ -686,9 +686,10 @@ var PreparedPublicationRefresh = class {
|
|
|
686
686
|
...this.#openOptions,
|
|
687
687
|
signal
|
|
688
688
|
});
|
|
689
|
-
|
|
689
|
+
const latest = this.#state.snapshot().current;
|
|
690
|
+
publication = preservePreparedSelection(latest, publication);
|
|
690
691
|
throwIfPreparedAborted(signal);
|
|
691
|
-
if (kind === "start" &&
|
|
692
|
+
if (kind === "start" && latest === void 0) await this.#state.start(publication, signal);
|
|
692
693
|
else await this.#state.replacePublication(publication, signal);
|
|
693
694
|
throwIfPreparedAborted(signal);
|
|
694
695
|
this.syncPolling();
|
package/package.json
CHANGED