@firecms/collection_editor 3.0.0-canary.264 → 3.0.0-canary.266
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 +58 -45
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +66 -53
- package/dist/index.umd.js.map +1 -1
- package/dist/ui/collection_editor/import/CollectionEditorImportDataPreview.d.ts +1 -1
- package/dist/ui/collection_editor/import/CollectionEditorImportMapping.d.ts +1 -1
- package/dist/ui/collection_editor/import/clean_import_data.d.ts +1 -1
- package/package.json +19 -19
- package/src/ui/collection_editor/CollectionEditorDialog.tsx +2 -2
- package/src/ui/collection_editor/CollectionEditorWelcomeView.tsx +1 -1
- package/src/ui/collection_editor/import/CollectionEditorImportDataPreview.tsx +1 -1
- package/src/ui/collection_editor/import/CollectionEditorImportMapping.tsx +1 -1
- package/src/ui/collection_editor/import/clean_import_data.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ImportConfig } from "@firecms/
|
|
1
|
+
import { ImportConfig } from "@firecms/data_import";
|
|
2
2
|
import { Properties } from "@firecms/core";
|
|
3
3
|
export declare function CollectionEditorImportDataPreview({ importConfig, properties, propertiesOrder }: {
|
|
4
4
|
importConfig: ImportConfig;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ImportConfig } from "@firecms/
|
|
1
|
+
import { ImportConfig } from "@firecms/data_import";
|
|
2
2
|
import { PropertyConfig } from "@firecms/core";
|
|
3
3
|
export declare function CollectionEditorImportMapping({ importConfig, propertyConfigs, collectionEditable }: {
|
|
4
4
|
importConfig: ImportConfig;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Properties } from "@firecms/core";
|
|
2
|
-
import { ImportConfig } from "@firecms/
|
|
2
|
+
import { ImportConfig } from "@firecms/data_import";
|
|
3
3
|
export declare function cleanPropertiesFromImport(properties: Properties, parentSlug?: string): {
|
|
4
4
|
headersMapping: ImportConfig["headersMapping"];
|
|
5
5
|
properties: Properties;
|
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.266",
|
|
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.266",
|
|
11
|
+
"@firecms/data_import": "^3.0.0-canary.266",
|
|
12
|
+
"@firecms/data_import_export": "^3.0.0-canary.266",
|
|
13
|
+
"@firecms/formex": "^3.0.0-canary.266",
|
|
14
|
+
"@firecms/schema_inference": "^3.0.0-canary.266",
|
|
15
|
+
"@firecms/ui": "^3.0.0-canary.266",
|
|
16
16
|
"json5": "^2.2.3",
|
|
17
17
|
"prism-react-renderer": "^2.4.1"
|
|
18
18
|
},
|
|
@@ -49,18 +49,18 @@
|
|
|
49
49
|
]
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@jest/globals": "^
|
|
53
|
-
"@types/react": "^18.3.
|
|
54
|
-
"@types/react-dom": "^18.3.
|
|
55
|
-
"@vitejs/plugin-react": "^4.
|
|
56
|
-
"babel-plugin-react-compiler": "beta",
|
|
57
|
-
"eslint-plugin-react-compiler": "beta",
|
|
52
|
+
"@jest/globals": "^30.1.2",
|
|
53
|
+
"@types/react": "^18.3.24",
|
|
54
|
+
"@types/react-dom": "^18.3.7",
|
|
55
|
+
"@vitejs/plugin-react": "^4.7.0",
|
|
56
|
+
"babel-plugin-react-compiler": "^19.0.0-beta-af1b7da-20250417",
|
|
57
|
+
"eslint-plugin-react-compiler": "^19.0.0-beta-af1b7da-20250417",
|
|
58
58
|
"jest": "^29.7.0",
|
|
59
|
-
"react-router": "^6.
|
|
60
|
-
"react-router-dom": "^6.
|
|
61
|
-
"ts-jest": "^29.
|
|
62
|
-
"typescript": "^5.
|
|
63
|
-
"vite": "^
|
|
59
|
+
"react-router": "^6.30.1",
|
|
60
|
+
"react-router-dom": "^6.30.1",
|
|
61
|
+
"ts-jest": "^29.4.3",
|
|
62
|
+
"typescript": "^5.9.2",
|
|
63
|
+
"vite": "^7.1.6"
|
|
64
64
|
},
|
|
65
65
|
"files": [
|
|
66
66
|
"dist",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"publishConfig": {
|
|
70
70
|
"access": "public"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "4cd0728094c9998010292e86d06e751590d97017"
|
|
73
73
|
}
|
|
@@ -49,7 +49,7 @@ import { SubcollectionsEditTab } from "./SubcollectionsEditTab";
|
|
|
49
49
|
import { CollectionsConfigController } from "../../types/config_controller";
|
|
50
50
|
import { CollectionEditorWelcomeView } from "./CollectionEditorWelcomeView";
|
|
51
51
|
import { CollectionInference } from "../../types/collection_inference";
|
|
52
|
-
import { getInferenceType, ImportSaveInProgress, useImportConfig } from "@firecms/
|
|
52
|
+
import { getInferenceType, ImportSaveInProgress, useImportConfig } from "@firecms/data_import";
|
|
53
53
|
import { buildEntityPropertiesFromData } from "@firecms/schema_inference";
|
|
54
54
|
import { CollectionEditorImportMapping } from "./import/CollectionEditorImportMapping";
|
|
55
55
|
import { CollectionEditorImportDataPreview } from "./import/CollectionEditorImportDataPreview";
|
|
@@ -508,7 +508,7 @@ function CollectionEditorInternal<M extends Record<string, any>>({
|
|
|
508
508
|
function onImportDataSet(data: object[], propertiesOrder?: string[]) {
|
|
509
509
|
importConfig.setInUse(true);
|
|
510
510
|
buildEntityPropertiesFromData(data, getInferenceType)
|
|
511
|
-
.then((properties) => {
|
|
511
|
+
.then((properties: Properties) => {
|
|
512
512
|
const res = cleanPropertiesFromImport(properties);
|
|
513
513
|
|
|
514
514
|
importConfig.setIdColumn(res.idColumn);
|
|
@@ -5,7 +5,7 @@ import { Button, Card, Chip, CircularProgress, cls, Container, Icon, Tooltip, Ty
|
|
|
5
5
|
import { productsCollectionTemplate } from "./templates/products_template";
|
|
6
6
|
import { blogCollectionTemplate } from "./templates/blog_template";
|
|
7
7
|
import { usersCollectionTemplate } from "./templates/users_template";
|
|
8
|
-
import { ImportFileUpload } from "@firecms/
|
|
8
|
+
import { ImportFileUpload } from "@firecms/data_import";
|
|
9
9
|
import { pagesCollectionTemplate } from "./templates/pages_template";
|
|
10
10
|
import { useFormex } from "@firecms/formex";
|
|
11
11
|
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
getInferenceType,
|
|
4
4
|
ImportConfig,
|
|
5
5
|
ImportNewPropertyFieldPreview
|
|
6
|
-
} from "@firecms/
|
|
6
|
+
} from "@firecms/data_import";
|
|
7
7
|
import { getIn, useFormex } from "@firecms/formex";
|
|
8
8
|
|
|
9
9
|
import { getFieldConfig, getFieldId, Properties, Property, PropertyConfig, PropertyConfigBadge, } from "@firecms/core";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Properties, slugify } from "@firecms/core";
|
|
2
|
-
import { ImportConfig } from "@firecms/
|
|
2
|
+
import { ImportConfig } from "@firecms/data_import";
|
|
3
3
|
|
|
4
4
|
export function cleanPropertiesFromImport(properties: Properties, parentSlug = ""): {
|
|
5
5
|
headersMapping: ImportConfig["headersMapping"],
|