@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/dist/index.es.js +384 -340
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +383 -339
- package/dist/index.umd.js.map +1 -1
- package/package.json +8 -8
- package/src/ui/collection_editor/CollectionDetailsForm.tsx +19 -0
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.
|
|
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.
|
|
11
|
-
"@firecms/data_import": "^3.0.0-canary.
|
|
12
|
-
"@firecms/data_import_export": "^3.0.0-canary.
|
|
13
|
-
"@firecms/formex": "^3.0.0-canary.
|
|
14
|
-
"@firecms/schema_inference": "^3.0.0-canary.
|
|
15
|
-
"@firecms/ui": "^3.0.0-canary.
|
|
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": "
|
|
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}
|