@firecms/collection_editor 3.0.0-alpha.52 → 3.0.0-alpha.53

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@firecms/collection_editor",
3
- "version": "3.0.0-alpha.52",
3
+ "version": "3.0.0-alpha.53",
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.52",
18
- "@firecms/schema_inference": "^3.0.0-alpha.52",
17
+ "@firecms/data_import_export": "^3.0.0-alpha.53",
18
+ "@firecms/schema_inference": "^3.0.0-alpha.53",
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": "347fb05aab3d2c4399ba9370f10c6d142c4721f6"
81
+ "gitHead": "2a6df3b8ddeeea1c82007538837e273150c54d0a"
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"}>