@firecms/collection_editor 3.0.0-canary.127 → 3.0.0-canary.129

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.127",
4
+ "version": "3.0.0-canary.129",
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.127",
11
- "@firecms/data_import": "^3.0.0-canary.127",
12
- "@firecms/data_import_export": "^3.0.0-canary.127",
13
- "@firecms/formex": "^3.0.0-canary.127",
14
- "@firecms/schema_inference": "^3.0.0-canary.127",
15
- "@firecms/ui": "^3.0.0-canary.127",
10
+ "@firecms/data_export": "^3.0.0-canary.129",
11
+ "@firecms/data_import": "^3.0.0-canary.129",
12
+ "@firecms/data_import_export": "^3.0.0-canary.129",
13
+ "@firecms/formex": "^3.0.0-canary.129",
14
+ "@firecms/schema_inference": "^3.0.0-canary.129",
15
+ "@firecms/ui": "^3.0.0-canary.129",
16
16
  "json5": "^2.2.3",
17
17
  "prism-react-renderer": "^2.3.1"
18
18
  },
@@ -67,5 +67,5 @@
67
67
  "publishConfig": {
68
68
  "access": "public"
69
69
  },
70
- "gitHead": "0c46cee41d666c60817c9f4f0447f78fcfa07ddf"
70
+ "gitHead": "576f01afd4b2e604c7505e3317ab178b33916068"
71
71
  }
@@ -1,5 +1,5 @@
1
1
  import {
2
- DeleteConfirmationDialog,
2
+ ConfirmationDialog,
3
3
  PluginHomePageActionsProps,
4
4
  useAuthController,
5
5
  useSnackbarController
@@ -76,7 +76,7 @@ export function HomePageEditorCollectionAction({
76
76
  </IconButton>}
77
77
  </div>
78
78
 
79
- <DeleteConfirmationDialog
79
+ <ConfirmationDialog
80
80
  open={deleteRequested}
81
81
  onAccept={deleteCollection}
82
82
  onCancel={() => setDeleteRequested(false)}
@@ -4,7 +4,7 @@ import equal from "react-fast-compare"
4
4
  import { Formex, FormexController, getIn, useCreateFormex } from "@firecms/formex";
5
5
  import {
6
6
  DEFAULT_FIELD_CONFIGS,
7
- DeleteConfirmationDialog,
7
+ ConfirmationDialog,
8
8
  getFieldConfig,
9
9
  getFieldId,
10
10
  isPropertyBuilder,
@@ -583,11 +583,11 @@ function PropertyEditFormFields({
583
583
  </div>
584
584
 
585
585
  {onDelete &&
586
- <DeleteConfirmationDialog open={deleteDialogOpen}
587
- onAccept={() => onDelete(values?.id, propertyNamespace)}
588
- onCancel={() => setDeleteDialogOpen(false)}
589
- title={<div>Delete this property?</div>}
590
- body={
586
+ <ConfirmationDialog open={deleteDialogOpen}
587
+ onAccept={() => onDelete(values?.id, propertyNamespace)}
588
+ onCancel={() => setDeleteDialogOpen(false)}
589
+ title={<div>Delete this property?</div>}
590
+ body={
591
591
  <div> This will <b>not delete any
592
592
  data</b>, only modify the
593
593
  collection.</div>
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import {
3
- DeleteConfirmationDialog,
3
+ ConfirmationDialog,
4
4
  EntityCollection,
5
5
  EntityCustomView,
6
6
  resolveEntityView,
@@ -211,8 +211,8 @@ export function SubcollectionsEditTab({
211
211
  <div style={{ height: "52px" }}/>
212
212
 
213
213
  {subcollectionToDelete &&
214
- <DeleteConfirmationDialog open={Boolean(subcollectionToDelete)}
215
- onAccept={() => {
214
+ <ConfirmationDialog open={Boolean(subcollectionToDelete)}
215
+ onAccept={() => {
216
216
  const props = {
217
217
  id: subcollectionToDelete,
218
218
  parentCollectionIds: [...(parentCollectionIds ?? []), collection.id]
@@ -223,20 +223,20 @@ export function SubcollectionsEditTab({
223
223
  setSubcollections(subcollections?.filter(e => e.id !== subcollectionToDelete))
224
224
  });
225
225
  }}
226
- onCancel={() => setSubcollectionToDelete(undefined)}
227
- title={<>Delete this subcollection?</>}
228
- body={<> This will <b>not
226
+ onCancel={() => setSubcollectionToDelete(undefined)}
227
+ title={<>Delete this subcollection?</>}
228
+ body={<> This will <b>not
229
229
  delete any data</b>, only
230
230
  the collection in the CMS</>}/>}
231
231
  {viewToDelete &&
232
- <DeleteConfirmationDialog open={Boolean(viewToDelete)}
233
- onAccept={() => {
232
+ <ConfirmationDialog open={Boolean(viewToDelete)}
233
+ onAccept={() => {
234
234
  setFieldValue("entityViews", values.entityViews?.filter(e => e !== viewToDelete));
235
235
  setViewToDelete(undefined);
236
236
  }}
237
- onCancel={() => setViewToDelete(undefined)}
238
- title={<>Remove this view?</>}
239
- body={<>This will <b>not
237
+ onCancel={() => setViewToDelete(undefined)}
238
+ title={<>Remove this view?</>}
239
+ body={<>This will <b>not
240
240
  delete any data</b>, only
241
241
  the view in the CMS</>}/>}
242
242