@firecms/collection_editor 3.0.0-canary.237 → 3.0.0-canary.239

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/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@firecms/collection_editor",
3
3
  "type": "module",
4
- "version": "3.0.0-canary.237",
4
+ "version": "3.0.0-canary.239",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "source": "src/index.ts",
9
9
  "dependencies": {
10
- "@firecms/data_export": "^3.0.0-canary.237",
11
- "@firecms/data_import": "^3.0.0-canary.237",
12
- "@firecms/data_import_export": "^3.0.0-canary.237",
13
- "@firecms/formex": "^3.0.0-canary.237",
14
- "@firecms/schema_inference": "^3.0.0-canary.237",
15
- "@firecms/ui": "^3.0.0-canary.237",
10
+ "@firecms/data_export": "^3.0.0-canary.239",
11
+ "@firecms/data_import": "^3.0.0-canary.239",
12
+ "@firecms/data_import_export": "^3.0.0-canary.239",
13
+ "@firecms/formex": "^3.0.0-canary.239",
14
+ "@firecms/schema_inference": "^3.0.0-canary.239",
15
+ "@firecms/ui": "^3.0.0-canary.239",
16
16
  "@hello-pangea/dnd": "^17.0.0",
17
17
  "json5": "^2.2.3",
18
18
  "prism-react-renderer": "^2.4.1"
@@ -70,5 +70,5 @@
70
70
  "publishConfig": {
71
71
  "access": "public"
72
72
  },
73
- "gitHead": "20e10b4e0cd4b6a2f2831b219ce43a6d09047a54"
73
+ "gitHead": "28e265bdb20ddd0d2eb813e9cbc2c082e17c2c65"
74
74
  }
@@ -218,6 +218,25 @@ export function CollectionDetailsForm({
218
218
  value={values.openEntityMode ?? "side_panel"}
219
219
  onChange={(value) => setFieldValue("openEntityMode", value)}/>
220
220
 
221
+ <div className={"col-span-12"}>
222
+ <BooleanSwitchWithLabel
223
+ position={"start"}
224
+ size={"large"}
225
+ allowIndeterminate={true}
226
+ label={values.history === null ? "Document history revisions enabled if enabled globally" : (
227
+ values.history ? "Document history revisions ENABLED" : "Document history revisions NOT enabled"
228
+ )}
229
+ onValueChange={(v) => setFieldValue("history", v)}
230
+ value={values.history ?? null}
231
+ />
232
+ <FieldCaption>
233
+ When enabled, each document in this collection will have a history of changes.
234
+ This is useful for auditing purposes. The data is stored in a subcollection of the document
235
+ in your database, called <b>__history</b>.
236
+ </FieldCaption>
237
+ </div>
238
+
239
+
221
240
  <div className={"col-span-12 mt-8"}>
222
241
  <ExpandablePanel
223
242
  expanded={advancedPanelExpanded}