@jsonpages/core 1.0.20 → 1.0.22
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/index.d.ts +5 -0
- package/dist/jsonpages-core.js +156 -155
- package/dist/jsonpages-core.umd.cjs +3 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -293,6 +293,11 @@ export declare interface PersistenceConfig {
|
|
|
293
293
|
* src/data/config/*.json and src/data/pages/<slug>.json. No git push.
|
|
294
294
|
*/
|
|
295
295
|
saveToFile?: (state: ProjectState, slug: string) => Promise<void>;
|
|
296
|
+
/**
|
|
297
|
+
* Optional. If true (default when saveToFile exists), the engine reloads the page after a successful save.
|
|
298
|
+
* Set to false when save is to cloud (e.g. JsonPages Platform) so the user can see post-save feedback (e.g. deploy pipeline) instead of a reload.
|
|
299
|
+
*/
|
|
300
|
+
reloadAfterSave?: boolean;
|
|
296
301
|
/**
|
|
297
302
|
* Optional. If provided, flushes in-memory /uploaded-assets/ blobs to disk and returns oldUrl -> newUrl map.
|
|
298
303
|
* Omit when uploads write directly to disk (e.g. public/assets/images) and section data already stores final URLs.
|