@firecms/collection_editor 3.0.0-canary.147 → 3.0.0-canary.149
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.
|
|
4
|
+
"version": "3.0.0-canary.149",
|
|
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.149",
|
|
11
|
+
"@firecms/data_import": "^3.0.0-canary.149",
|
|
12
|
+
"@firecms/data_import_export": "^3.0.0-canary.149",
|
|
13
|
+
"@firecms/formex": "^3.0.0-canary.149",
|
|
14
|
+
"@firecms/schema_inference": "^3.0.0-canary.149",
|
|
15
|
+
"@firecms/ui": "^3.0.0-canary.149",
|
|
16
16
|
"json5": "^2.2.3",
|
|
17
17
|
"prism-react-renderer": "^2.4.0"
|
|
18
18
|
},
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "c359b0324515a679faf93c74791263bc27c4087d"
|
|
71
71
|
}
|
|
@@ -538,7 +538,7 @@ function CollectionEditorInternal<M extends Record<string, any>>({
|
|
|
538
538
|
|
|
539
539
|
<>
|
|
540
540
|
{!isNewCollection && <Tabs value={currentView}
|
|
541
|
-
|
|
541
|
+
innerClassName={cls(defaultBorderMixin, "justify-end bg-surface-50 dark:bg-surface-950 border-b")}
|
|
542
542
|
onValueChange={(v) => setCurrentView(v as EditorView)}>
|
|
543
543
|
<Tab value={"details"}>
|
|
544
544
|
Details
|
|
@@ -80,6 +80,9 @@ export function GetCodeDialog({
|
|
|
80
80
|
function collectionToCode(collection: EntityCollection): object {
|
|
81
81
|
|
|
82
82
|
const propertyCleanup = (value: any): any => {
|
|
83
|
+
if (value === undefined || value === null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
83
86
|
const valueCopy = clone(value);
|
|
84
87
|
if (typeof valueCopy === "function") {
|
|
85
88
|
return valueCopy;
|
|
@@ -100,14 +103,14 @@ function collectionToCode(collection: EntityCollection): object {
|
|
|
100
103
|
}
|
|
101
104
|
}
|
|
102
105
|
});
|
|
103
|
-
|
|
106
|
+
delete valueCopy.fromBuilder;
|
|
107
|
+
delete valueCopy.resolved;
|
|
108
|
+
delete valueCopy.propertiesOrder;
|
|
109
|
+
delete valueCopy.propertyConfig;
|
|
110
|
+
delete valueCopy.resolvedProperties;
|
|
111
|
+
delete valueCopy.editable;
|
|
104
112
|
|
|
105
|
-
|
|
106
|
-
delete valueCopy.resolved;
|
|
107
|
-
delete valueCopy.propertiesOrder;
|
|
108
|
-
delete valueCopy.propertyConfig;
|
|
109
|
-
delete valueCopy.resolvedProperties;
|
|
110
|
-
delete valueCopy.editable;
|
|
113
|
+
}
|
|
111
114
|
|
|
112
115
|
return valueCopy;
|
|
113
116
|
}
|