@firecms/collection_editor 3.0.0-canary.32 → 3.0.0-canary.34
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,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firecms/collection_editor",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.0-canary.
|
|
4
|
+
"version": "3.0.0-canary.34",
|
|
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_import_export": "^3.0.0-canary.
|
|
11
|
-
"@firecms/formex": "^3.0.0-canary.
|
|
12
|
-
"@firecms/schema_inference": "^3.0.0-canary.
|
|
13
|
-
"@firecms/ui": "^3.0.0-canary.
|
|
10
|
+
"@firecms/data_import_export": "^3.0.0-canary.34",
|
|
11
|
+
"@firecms/formex": "^3.0.0-canary.34",
|
|
12
|
+
"@firecms/schema_inference": "^3.0.0-canary.34",
|
|
13
|
+
"@firecms/ui": "^3.0.0-canary.34",
|
|
14
14
|
"json5": "^2.2.3",
|
|
15
15
|
"prism-react-renderer": "^2.3.1"
|
|
16
16
|
},
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"publishConfig": {
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "44aa642c7493b8a0e3e330b837f6c13374d6fbc9"
|
|
85
85
|
}
|
|
@@ -496,11 +496,12 @@ export function CollectionPropertiesEditorForm({
|
|
|
496
496
|
collectionEditable={collectionEditable}
|
|
497
497
|
existingPropertyKeys={values.propertiesOrder as string[]}/>
|
|
498
498
|
|
|
499
|
-
<
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
499
|
+
<ErrorBoundary>
|
|
500
|
+
<GetCodeDialog
|
|
501
|
+
collection={values}
|
|
502
|
+
open={codeDialogOpen}
|
|
503
|
+
onOpenChange={setCodeDialogOpen}/>
|
|
504
|
+
</ErrorBoundary>
|
|
504
505
|
</>
|
|
505
506
|
);
|
|
506
507
|
}
|
|
@@ -9,7 +9,7 @@ export function GetCodeDialog({ collection, onOpenChange, open }: { onOpenChange
|
|
|
9
9
|
|
|
10
10
|
const snackbarController = useSnackbarController();
|
|
11
11
|
|
|
12
|
-
const code = "import { EntityCollection } from \"firecms\";\n\nconst " + (collection
|
|
12
|
+
const code = "import { EntityCollection } from \"firecms\";\n\nconst " + (collection?.name ? camelCase(collection.name) : "my") + "Collection:EntityCollection = " + JSON5.stringify(collectionToCode(collection), null, "\t");
|
|
13
13
|
return <Dialog open={open}
|
|
14
14
|
onOpenChange={onOpenChange}
|
|
15
15
|
maxWidth={"4xl"}>
|