@commercetools-frontend-extensions/export-resources-modal 3.7.0 → 4.0.1
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/README.md +166 -138
- package/dist/commercetools-frontend-extensions-export-resources-modal.cjs.d.ts +3 -0
- package/dist/commercetools-frontend-extensions-export-resources-modal.cjs.dev.js +417 -412
- package/dist/commercetools-frontend-extensions-export-resources-modal.cjs.prod.js +410 -402
- package/dist/commercetools-frontend-extensions-export-resources-modal.esm.js +410 -405
- package/dist/de-a34c5dd4.cjs.dev.js +6 -0
- package/dist/de-cd6c45d3.esm.js +4 -0
- package/dist/de-d954fe3d.cjs.prod.js +6 -0
- package/dist/declarations/src/@constants/delimiters.d.ts +4 -0
- package/dist/declarations/src/@constants/export-operation-states.d.ts +5 -0
- package/dist/declarations/src/@constants/export-types.d.ts +5 -0
- package/dist/declarations/src/@constants/exportable-resources.d.ts +5 -0
- package/dist/declarations/src/@constants/index.d.ts +7 -0
- package/dist/declarations/src/@constants/misc.d.ts +1 -0
- package/dist/declarations/src/@constants/output-formats.d.ts +8 -0
- package/dist/declarations/src/@constants/urls.d.ts +3 -0
- package/dist/declarations/src/@types/export-resources-modal-shape.d.ts +27 -0
- package/dist/declarations/src/@types/formik.d.ts +11 -0
- package/dist/declarations/src/@types/index.d.ts +2 -0
- package/dist/declarations/src/export-resources-modal.d.ts +13 -0
- package/dist/declarations/src/index.d.ts +3 -0
- package/dist/en-3a9aa2d4.esm.js +4 -0
- package/dist/en-6b3694f6.cjs.dev.js +6 -0
- package/dist/en-c7757448.cjs.prod.js +6 -0
- package/dist/es-042343bd.cjs.prod.js +6 -0
- package/dist/es-8b3ecab1.cjs.dev.js +6 -0
- package/dist/es-e544023d.esm.js +4 -0
- package/dist/fr-FR-9d9081ee.esm.js +4 -0
- package/dist/fr-FR-e7126fcc.cjs.dev.js +6 -0
- package/dist/fr-FR-fce1ca96.cjs.prod.js +6 -0
- package/dist/ja-37632763.cjs.prod.js +6 -0
- package/dist/ja-73c088a7.esm.js +4 -0
- package/dist/ja-9bd5f452.cjs.dev.js +6 -0
- package/dist/pt-BR-b37d730b.esm.js +4 -0
- package/dist/pt-BR-ea6b3251.cjs.dev.js +6 -0
- package/dist/pt-BR-ec2a1a11.cjs.prod.js +6 -0
- package/dist/zh-CN-4780d88e.esm.js +4 -0
- package/dist/zh-CN-52baa549.cjs.prod.js +6 -0
- package/dist/zh-CN-d4bc6d26.cjs.dev.js +6 -0
- package/package.json +30 -19
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Z_INDEX_DROPDOWN = 30000;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface Field {
|
|
2
|
+
name: string;
|
|
3
|
+
label: string;
|
|
4
|
+
isSelectedByDefault?: boolean;
|
|
5
|
+
isRequired?: boolean;
|
|
6
|
+
isReadOnly?: boolean;
|
|
7
|
+
fields?: Field[];
|
|
8
|
+
additionalFieldExtensions?: string[];
|
|
9
|
+
}
|
|
10
|
+
export interface FieldGroup {
|
|
11
|
+
groupLabel: string;
|
|
12
|
+
additionalFieldExtensions?: string[];
|
|
13
|
+
fields: Field[];
|
|
14
|
+
}
|
|
15
|
+
export interface ExportResourcesModalShape {
|
|
16
|
+
isOpen: boolean;
|
|
17
|
+
resourceType: string;
|
|
18
|
+
outputFormat: string;
|
|
19
|
+
onClose: () => void;
|
|
20
|
+
onExportSuccess: () => void;
|
|
21
|
+
totalResourcesCount: number;
|
|
22
|
+
selectedResourceIds: string[];
|
|
23
|
+
fieldGroups: FieldGroup[];
|
|
24
|
+
exportType: string;
|
|
25
|
+
renderProperties: () => void;
|
|
26
|
+
fieldOrder?: string[];
|
|
27
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Field, FieldGroup } from "./export-resources-modal-shape.js";
|
|
2
|
+
export interface FormikField extends Field {
|
|
3
|
+
isChecked?: boolean;
|
|
4
|
+
fields?: FormikField[];
|
|
5
|
+
additionalFieldExtensions: string[];
|
|
6
|
+
}
|
|
7
|
+
export interface FormikGroup extends FieldGroup {
|
|
8
|
+
isChecked?: boolean;
|
|
9
|
+
fields: FormikField[];
|
|
10
|
+
additionalFieldExtensions?: string[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ExportResourcesModalShape } from "./@types/index.js";
|
|
2
|
+
declare const ExportResourcesModal: {
|
|
3
|
+
(props: ExportResourcesModalShape): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element | null;
|
|
4
|
+
displayName: string;
|
|
5
|
+
defaultProps: {
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
selectedResourceIds: never[];
|
|
8
|
+
exportType: string;
|
|
9
|
+
outputFormat: string;
|
|
10
|
+
fieldGroups: never[];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default ExportResourcesModal;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend-extensions/export-resources-modal",
|
|
3
3
|
"description": "Shared export modal for exporting resources",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "4.0.1",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"README.md"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@babel/runtime": "7.24.
|
|
19
|
-
"@babel/runtime-corejs3": "7.24.
|
|
18
|
+
"@babel/runtime": "7.24.5",
|
|
19
|
+
"@babel/runtime-corejs3": "7.24.5",
|
|
20
20
|
"@emotion/react": "11.11.4",
|
|
21
21
|
"@emotion/styled": "11.11.5",
|
|
22
|
-
"@formatjs/cli": "6.2.
|
|
22
|
+
"@formatjs/cli": "6.2.10",
|
|
23
23
|
"formik": "^2.2.9",
|
|
24
24
|
"gql-query-builder": "^3.8.0",
|
|
25
25
|
"jest": "29.7.0",
|
|
@@ -27,21 +27,27 @@
|
|
|
27
27
|
"moment": "2.30.1",
|
|
28
28
|
"omit-empty-es": "^1.1.3",
|
|
29
29
|
"prop-types": "15.8.1",
|
|
30
|
-
"react": "17.0.2"
|
|
31
|
-
"react-intl": "6.6.5"
|
|
30
|
+
"react": "17.0.2"
|
|
32
31
|
},
|
|
33
32
|
"devDependencies": {
|
|
34
|
-
"@commercetools-frontend/actions-global": "22.
|
|
35
|
-
"@commercetools-frontend/application-components": "22.
|
|
36
|
-
"@commercetools-frontend/application-shell": "22.
|
|
37
|
-
"@commercetools-frontend/application-shell-connectors": "22.
|
|
38
|
-
"@commercetools-frontend/constants": "22.
|
|
39
|
-
"@commercetools-frontend/
|
|
40
|
-
"@commercetools-frontend/
|
|
41
|
-
"@commercetools-frontend/
|
|
42
|
-
"@commercetools-frontend/
|
|
43
|
-
"@commercetools-
|
|
44
|
-
"@
|
|
33
|
+
"@commercetools-frontend/actions-global": "22.25.1",
|
|
34
|
+
"@commercetools-frontend/application-components": "22.25.1",
|
|
35
|
+
"@commercetools-frontend/application-shell": "22.25.1",
|
|
36
|
+
"@commercetools-frontend/application-shell-connectors": "22.25.1",
|
|
37
|
+
"@commercetools-frontend/constants": "22.25.1",
|
|
38
|
+
"@commercetools-frontend/i18n": "22.25.1",
|
|
39
|
+
"@commercetools-frontend/jest-preset-mc-app": "22.25.1",
|
|
40
|
+
"@commercetools-frontend/sdk": "22.25.1",
|
|
41
|
+
"@commercetools-frontend/sentry": "22.25.1",
|
|
42
|
+
"@commercetools-frontend/ui-kit": "19.3.0",
|
|
43
|
+
"@commercetools-uikit/design-system": "19.3.0",
|
|
44
|
+
"@preconstruct/cli": "2.8.4",
|
|
45
|
+
"@types/jest": "29.5.12",
|
|
46
|
+
"@types/testing-library__jest-dom": "^5.14.5",
|
|
47
|
+
"msw": "1.3.3",
|
|
48
|
+
"react-intl": "6.6.6",
|
|
49
|
+
"react-redux": "7.2.9",
|
|
50
|
+
"redux": "4.2.1",
|
|
45
51
|
"rimraf": "5.0.5"
|
|
46
52
|
},
|
|
47
53
|
"peerDependencies": {
|
|
@@ -50,11 +56,15 @@
|
|
|
50
56
|
"@commercetools-frontend/application-shell": "22.x",
|
|
51
57
|
"@commercetools-frontend/application-shell-connectors": "22.x",
|
|
52
58
|
"@commercetools-frontend/constants": "22.x",
|
|
59
|
+
"@commercetools-frontend/i18n": "22.x",
|
|
53
60
|
"@commercetools-frontend/jest-preset-mc-app": "22.x",
|
|
54
61
|
"@commercetools-frontend/sdk": "22.x",
|
|
55
62
|
"@commercetools-frontend/sentry": "22.x",
|
|
56
63
|
"@commercetools-frontend/ui-kit": "17.x || 18.x || 19.x",
|
|
57
|
-
"@commercetools-uikit/design-system": "17.x || 18.x || 19.x"
|
|
64
|
+
"@commercetools-uikit/design-system": "17.x || 18.x || 19.x",
|
|
65
|
+
"react-intl": "6.x",
|
|
66
|
+
"react-redux": "7.x",
|
|
67
|
+
"redux": "4.x"
|
|
58
68
|
},
|
|
59
69
|
"scripts": {
|
|
60
70
|
"build": "rimraf dist && preconstruct build",
|
|
@@ -62,6 +72,7 @@
|
|
|
62
72
|
"test:watch": "jest --config jest.test.config.js --watch",
|
|
63
73
|
"build:bundles": "pnpm build",
|
|
64
74
|
"build:watch": "preconstruct watch",
|
|
65
|
-
"extract-intl": "formatjs extract --format transifex --out-file $(pwd)/src/i18n/data/core.json 'src
|
|
75
|
+
"extract-intl": "formatjs extract --format transifex --out-file $(pwd)/src/i18n/data/core.json 'src/**/(*.)?messages.(js|ts)'",
|
|
76
|
+
"typecheck": "tsc --noEmit"
|
|
66
77
|
}
|
|
67
78
|
}
|