@firecms/core 3.0.0-canary.283 → 3.0.0-canary.284
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/core/EntityEditView.d.ts +2 -2
- package/dist/form/EntityForm.d.ts +3 -1
- package/dist/form/index.d.ts +2 -1
- package/dist/index.es.js +121 -97
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +119 -95
- package/dist/index.umd.js.map +1 -1
- package/dist/types/collections.d.ts +7 -0
- package/package.json +5 -5
- package/src/core/EntityEditView.tsx +13 -10
- package/src/core/EntityEditViewFormActions.tsx +33 -18
- package/src/form/EntityForm.tsx +49 -25
- package/src/form/EntityFormActions.tsx +30 -15
- package/src/form/components/ErrorFocus.tsx +22 -29
- package/src/form/index.tsx +5 -1
- package/src/types/collections.ts +8 -0
- package/src/util/entity_cache.ts +0 -1
package/src/types/collections.ts
CHANGED
|
@@ -352,6 +352,14 @@ export interface EntityCollection<M extends Record<string, any> = any, USER exte
|
|
|
352
352
|
* This prop has no effect if the history plugin is not enabled
|
|
353
353
|
*/
|
|
354
354
|
history?: boolean;
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* If set to true, local changes to entities in this collection will be backed up
|
|
358
|
+
* in the browser's local storage. This allows users to recover unsaved changes
|
|
359
|
+
* in case of accidental navigation or browser crashes.
|
|
360
|
+
* Defaults to `true`.
|
|
361
|
+
*/
|
|
362
|
+
enableLocalChangesBackup?: boolean;
|
|
355
363
|
}
|
|
356
364
|
|
|
357
365
|
/**
|
package/src/util/entity_cache.ts
CHANGED