@firecms/collection_editor 3.0.0-alpha.52 → 3.0.0-alpha.54
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 +495 -509
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +4 -4
- package/src/ConfigControllerProvider.tsx +0 -1
- package/src/ui/collection_editor/CollectionEditorDialog.tsx +0 -4
- package/src/ui/collection_editor/CollectionPropertiesEditorForm.tsx +0 -9
- package/src/ui/collection_editor/PropertyEditView.tsx +0 -1
- package/src/ui/collection_editor/SubcollectionsEditTab.tsx +0 -1
- package/src/ui/collection_editor/import/CollectionEditorImportDataPreview.tsx +0 -1
- package/src/ui/collection_editor/import/CollectionEditorImportMapping.tsx +0 -5
- package/src/ui/collection_editor/properties/ReferencePropertyField.tsx +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firecms/collection_editor",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.54",
|
|
4
4
|
"main": "./dist/index.umd.js",
|
|
5
5
|
"module": "./dist/index.es.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"./package.json": "./package.json"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@firecms/data_import_export": "^3.0.0-alpha.
|
|
18
|
-
"@firecms/schema_inference": "^3.0.0-alpha.
|
|
17
|
+
"@firecms/data_import_export": "^3.0.0-alpha.54",
|
|
18
|
+
"@firecms/schema_inference": "^3.0.0-alpha.54",
|
|
19
19
|
"json5": "^2.2.3",
|
|
20
20
|
"prism-react-renderer": "^2.3.0"
|
|
21
21
|
},
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"publishConfig": {
|
|
79
79
|
"access": "public"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "9955c4f6403138fb68a54d6cbaf2c22d92fe85ce"
|
|
82
82
|
}
|
|
@@ -164,7 +164,6 @@ export const ConfigControllerProvider = React.memo(
|
|
|
164
164
|
const propertyKeyWithoutNamespace = propertyKey && propertyKey.includes(".")
|
|
165
165
|
? propertyKey.substring(propertyKey.lastIndexOf(".") + 1)
|
|
166
166
|
: propertyKey;
|
|
167
|
-
console.log("edit property", propertyKeyWithoutNamespace, collection)
|
|
168
167
|
setCurrentPropertyDialog({
|
|
169
168
|
propertyKey: propertyKeyWithoutNamespace,
|
|
170
169
|
property,
|
|
@@ -464,10 +464,6 @@ export function CollectionEditorDialogInternal<M extends {
|
|
|
464
464
|
setFieldValue("properties", updatedProperties);
|
|
465
465
|
// setFieldValue("propertiesOrder", Object.values(importConfig.headersMapping));
|
|
466
466
|
setNextMode();
|
|
467
|
-
console.log("onImportMappingComplete", {
|
|
468
|
-
importConfig,
|
|
469
|
-
properties: updatedProperties
|
|
470
|
-
})
|
|
471
467
|
};
|
|
472
468
|
|
|
473
469
|
const collectionEditable = collection?.editable || isNewCollection;
|
|
@@ -196,10 +196,6 @@ export function CollectionPropertiesEditorForm({
|
|
|
196
196
|
id?: string,
|
|
197
197
|
property: Property
|
|
198
198
|
}) => {
|
|
199
|
-
console.log("onPropertyCreated", {
|
|
200
|
-
id,
|
|
201
|
-
property
|
|
202
|
-
})
|
|
203
199
|
if (!id) {
|
|
204
200
|
throw Error("Need to include an ID when creating a new property")
|
|
205
201
|
}
|
|
@@ -209,11 +205,6 @@ export function CollectionPropertiesEditorForm({
|
|
|
209
205
|
}, false);
|
|
210
206
|
const newPropertiesOrder = [...(values.propertiesOrder ?? Object.keys(values.properties)), id];
|
|
211
207
|
|
|
212
|
-
console.log("onPropertyCreated", {
|
|
213
|
-
id,
|
|
214
|
-
property,
|
|
215
|
-
newPropertiesOrder
|
|
216
|
-
})
|
|
217
208
|
updatePropertiesOrder(newPropertiesOrder);
|
|
218
209
|
|
|
219
210
|
setNewPropertyDialogOpen(false);
|
|
@@ -136,7 +136,6 @@ export const PropertyForm = React.memo(
|
|
|
136
136
|
? { id: propertyKey, ...property } as PropertyWithId
|
|
137
137
|
: initialValue}
|
|
138
138
|
onSubmit={(newPropertyWithId: PropertyWithId, helpers) => {
|
|
139
|
-
console.log("Submitting property", newPropertyWithId)
|
|
140
139
|
const {
|
|
141
140
|
id,
|
|
142
141
|
...property
|
|
@@ -242,7 +242,6 @@ export function SubcollectionsEditTab({
|
|
|
242
242
|
open={addEntityViewDialogOpen}
|
|
243
243
|
onClose={(selectedViewKey) => {
|
|
244
244
|
if (selectedViewKey) {
|
|
245
|
-
console.log("selectedViewKey", selectedViewKey);
|
|
246
245
|
setFieldValue("entityViews", [...(values.entityViews ?? []), selectedViewKey]);
|
|
247
246
|
}
|
|
248
247
|
setAddEntityViewDialogOpen(false);
|
|
@@ -12,7 +12,6 @@ export function CollectionEditorImportDataPreview({ importConfig, properties, pr
|
|
|
12
12
|
const propertiesMapping = getPropertiesMapping(importConfig.originProperties, properties);
|
|
13
13
|
const mappedData = importConfig.importData.map(d => convertDataToEntity(d, importConfig.idColumn, importConfig.headersMapping, properties, propertiesMapping, "TEMP_PATH"));
|
|
14
14
|
importConfig.setEntities(mappedData);
|
|
15
|
-
console.log("res", { propertiesMapping, mappedData })
|
|
16
15
|
}, []);
|
|
17
16
|
|
|
18
17
|
const selectionController = useSelectionController();
|
|
@@ -132,10 +132,6 @@ export function CollectionEditorImportMapping({
|
|
|
132
132
|
|
|
133
133
|
if (propertyPath) {
|
|
134
134
|
if (inferredNewProperty) {
|
|
135
|
-
console.log("updating inferredNewProperty", {
|
|
136
|
-
property,
|
|
137
|
-
inferredNewProperty
|
|
138
|
-
})
|
|
139
135
|
setFieldValue(propertyPath, inferredNewProperty, false);
|
|
140
136
|
} else {
|
|
141
137
|
setFieldValue(propertyPath, property, false);
|
|
@@ -259,7 +255,6 @@ function PropertySelect({
|
|
|
259
255
|
previousId: propertyKey,
|
|
260
256
|
namespace: undefined
|
|
261
257
|
});
|
|
262
|
-
console.log("newSelectedWidgetId", newSelectedWidgetId);
|
|
263
258
|
}}>
|
|
264
259
|
{Object.entries(supportedFields).map(([key, widget]) => {
|
|
265
260
|
return <PropertySelectItem
|
|
@@ -40,8 +40,6 @@ export function ReferencePropertyField({
|
|
|
40
40
|
const pathValue: string | undefined = getIn(values, pathPath);
|
|
41
41
|
const pathError: string | undefined = showErrors && getIn(errors, pathPath);
|
|
42
42
|
|
|
43
|
-
console.log("pathError", errors, pathError)
|
|
44
|
-
|
|
45
43
|
return (
|
|
46
44
|
<>
|
|
47
45
|
<div className={"col-span-12"}>
|