mechanica 1.0.2-a → 1.0.2-b
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/editor.js +6 -1
- package/dist/editor.js.map +1 -1
- package/package.json +1 -1
package/dist/editor.js
CHANGED
|
@@ -2552,7 +2552,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2552
2552
|
if (((_a = newState == null ? void 0 : newState.dev) == null ? void 0 : _a.currentPage) !== ((_b = oldState == null ? void 0 : oldState.dev) == null ? void 0 : _b.currentPage)) {
|
|
2553
2553
|
return;
|
|
2554
2554
|
}
|
|
2555
|
-
saveState(newState);
|
|
2555
|
+
const state = saveState(newState);
|
|
2556
|
+
fetch("/@mechanica/save", {
|
|
2557
|
+
method: "POST",
|
|
2558
|
+
body: JSON.stringify(state),
|
|
2559
|
+
headers: { "content-type": "application-json" }
|
|
2560
|
+
});
|
|
2556
2561
|
}, { debounce: 500 });
|
|
2557
2562
|
provide("fileUploader", async (file) => {
|
|
2558
2563
|
const resp = await fetch("/@mechanica/upload", {
|