@firecms/collection_editor 3.0.0-canary.3 → 3.0.0-canary.5

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.3",
4
+ "version": "3.0.0-canary.5",
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.3",
11
- "@firecms/formex": "^3.0.0-canary.3",
12
- "@firecms/schema_inference": "^3.0.0-canary.3",
13
- "@firecms/ui": "^3.0.0-canary.3",
10
+ "@firecms/data_import_export": "^3.0.0-canary.5",
11
+ "@firecms/formex": "^3.0.0-canary.5",
12
+ "@firecms/schema_inference": "^3.0.0-canary.5",
13
+ "@firecms/ui": "^3.0.0-canary.5",
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": "9d587b683991dfcefd28e1c13b693364b5de72b2"
84
+ "gitHead": "e3850e04c28ef87d561bdf651950c7fbac87a9ec"
85
85
  }
@@ -473,7 +473,8 @@ function CollectionEditorInternal<M extends Record<string, any>>({
473
473
  submitCount
474
474
  } = formController;
475
475
 
476
- const path = values.path ?? editedCollectionId;
476
+ // TODO: getting data is only working in root collections with this code
477
+ const path = values.path;
477
478
  const updatedFullPath = fullPath?.includes("/") ? fullPath?.split("/").slice(0, -1).join("/") + "/" + path : path; // TODO: this path is wrong
478
479
  const pathError = validatePath(path, isNewCollection, existingPaths, values.id);
479
480
 
@@ -575,6 +576,7 @@ function CollectionEditorInternal<M extends Record<string, any>>({
575
576
  {currentView === "import_data_saving" && importConfig &&
576
577
  <ImportSaveInProgress importConfig={importConfig}
577
578
  collection={values}
579
+ path={path}
578
580
  onImportSuccess={async (importedCollection) => {
579
581
  snackbarController.open({
580
582
  type: "info",