@firecms/collection_editor 3.0.0-canary.147 → 3.0.0-canary.148
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.148",
|
|
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.148",
|
|
11
|
+
"@firecms/data_import": "^3.0.0-canary.148",
|
|
12
|
+
"@firecms/data_import_export": "^3.0.0-canary.148",
|
|
13
|
+
"@firecms/formex": "^3.0.0-canary.148",
|
|
14
|
+
"@firecms/schema_inference": "^3.0.0-canary.148",
|
|
15
|
+
"@firecms/ui": "^3.0.0-canary.148",
|
|
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": "69ccd5bec8161008d5219388a34b49ccdccda040"
|
|
71
71
|
}
|
|
@@ -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
|
}
|