@commercetools-frontend-extensions/export-resources-modal 4.6.3 → 4.6.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/README.md +5 -8
- package/dist/commercetools-frontend-extensions-export-resources-modal.cjs.dev.js +285 -151
- package/dist/commercetools-frontend-extensions-export-resources-modal.cjs.prod.js +279 -145
- package/dist/commercetools-frontend-extensions-export-resources-modal.esm.js +282 -149
- package/dist/{de-695399d9.cjs.prod.js → de-16b6e603.cjs.prod.js} +4 -0
- package/dist/{de-99b348fe.esm.js → de-d065df9f.esm.js} +4 -0
- package/dist/{de-87c7cf7f.cjs.dev.js → de-d4a85a4f.cjs.dev.js} +4 -0
- package/dist/declarations/src/@hooks/index.d.ts +4 -0
- package/dist/declarations/src/@hooks/use-convert-field-definitions-for-export.d.ts +8 -0
- package/dist/declarations/src/@hooks/use-export-resources-modal-context.d.ts +2 -0
- package/dist/declarations/src/@hooks/use-initial-values.d.ts +2 -0
- package/dist/declarations/src/@hooks/use-start-export-operation.d.ts +4 -0
- package/dist/declarations/src/@types/export-api.d.ts +3 -1
- package/dist/declarations/src/@types/export-resources-modal-types.d.ts +2 -3
- package/dist/declarations/src/@types/field-definition.d.ts +6 -0
- package/dist/declarations/src/@types/form.d.ts +0 -5
- package/dist/declarations/src/@types/index.d.ts +1 -0
- package/dist/declarations/src/index.d.ts +1 -0
- package/dist/{en-105944c8.esm.js → en-489b5062.esm.js} +4 -0
- package/dist/{en-d02c912e.cjs.dev.js → en-6be5d801.cjs.prod.js} +4 -0
- package/dist/{en-985e1cb3.cjs.prod.js → en-f3054f24.cjs.dev.js} +4 -0
- package/dist/{es-a50b0543.esm.js → es-3072d392.esm.js} +4 -0
- package/dist/{es-51b65e08.cjs.prod.js → es-b1808cc2.cjs.dev.js} +4 -0
- package/dist/{es-76fb86f4.cjs.dev.js → es-f37701ea.cjs.prod.js} +4 -0
- package/dist/{fr-FR-9067e0c6.cjs.dev.js → fr-FR-66c381ea.cjs.prod.js} +4 -0
- package/dist/{fr-FR-45e4cba6.esm.js → fr-FR-9be90155.esm.js} +4 -0
- package/dist/{fr-FR-edf47120.cjs.prod.js → fr-FR-bf242ea4.cjs.dev.js} +4 -0
- package/dist/{pt-BR-ee02597a.esm.js → pt-BR-5cf442aa.esm.js} +4 -0
- package/dist/{pt-BR-4b462e67.cjs.dev.js → pt-BR-6754aa85.cjs.dev.js} +4 -0
- package/dist/{pt-BR-4ccc10dd.cjs.prod.js → pt-BR-ebc555b4.cjs.prod.js} +4 -0
- package/dist/{zh-CN-4fc3d4db.cjs.prod.js → zh-CN-03a85de5.cjs.dev.js} +4 -0
- package/dist/{zh-CN-1b0b93bc.esm.js → zh-CN-1da404c0.esm.js} +4 -0
- package/dist/{zh-CN-1b65bfd5.cjs.dev.js → zh-CN-e22002dc.cjs.prod.js} +4 -0
- package/package.json +14 -12
|
@@ -149,6 +149,10 @@ var de = {
|
|
|
149
149
|
developer_comment: "Label for the categories modal title",
|
|
150
150
|
string: "Export categories"
|
|
151
151
|
},
|
|
152
|
+
"ExportResourcesModal.modalTitle.customer": {
|
|
153
|
+
developer_comment: "Label for the customers modal title",
|
|
154
|
+
string: "Export customers"
|
|
155
|
+
},
|
|
152
156
|
"ExportResourcesModal.modalTitle.discountCode": {
|
|
153
157
|
developer_comment: "Label for the discount codes modal title",
|
|
154
158
|
string: "Rabattcodes exportieren"
|
|
@@ -147,6 +147,10 @@ var de = {
|
|
|
147
147
|
developer_comment: "Label for the categories modal title",
|
|
148
148
|
string: "Export categories"
|
|
149
149
|
},
|
|
150
|
+
"ExportResourcesModal.modalTitle.customer": {
|
|
151
|
+
developer_comment: "Label for the customers modal title",
|
|
152
|
+
string: "Export customers"
|
|
153
|
+
},
|
|
150
154
|
"ExportResourcesModal.modalTitle.discountCode": {
|
|
151
155
|
developer_comment: "Label for the discount codes modal title",
|
|
152
156
|
string: "Rabattcodes exportieren"
|
|
@@ -149,6 +149,10 @@ var de = {
|
|
|
149
149
|
developer_comment: "Label for the categories modal title",
|
|
150
150
|
string: "Export categories"
|
|
151
151
|
},
|
|
152
|
+
"ExportResourcesModal.modalTitle.customer": {
|
|
153
|
+
developer_comment: "Label for the customers modal title",
|
|
154
|
+
string: "Export customers"
|
|
155
|
+
},
|
|
152
156
|
"ExportResourcesModal.modalTitle.discountCode": {
|
|
153
157
|
developer_comment: "Label for the discount codes modal title",
|
|
154
158
|
string: "Rabattcodes exportieren"
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Field, FieldDefinition } from "../@types/index.js";
|
|
2
|
+
export declare const useConvertFieldDefinitionsForExport: () => {
|
|
3
|
+
convertFieldDefinitionsForExport: ({ fieldDefinitions, fieldPrefix, expandAll, }: {
|
|
4
|
+
fieldDefinitions?: FieldDefinition[] | undefined;
|
|
5
|
+
fieldPrefix?: string | undefined;
|
|
6
|
+
expandAll?: boolean | undefined;
|
|
7
|
+
}) => Field[];
|
|
8
|
+
};
|
|
@@ -5,10 +5,10 @@ export interface Field {
|
|
|
5
5
|
label: string;
|
|
6
6
|
isSelectedByDefault?: boolean;
|
|
7
7
|
isRequired?: boolean;
|
|
8
|
-
isReadOnly?: boolean;
|
|
9
8
|
fields?: Field[];
|
|
10
|
-
|
|
9
|
+
extendedFieldNames?: string[];
|
|
11
10
|
dependentGroupNames?: string[];
|
|
11
|
+
dependentFieldNames?: string[];
|
|
12
12
|
isExpanded?: boolean;
|
|
13
13
|
isExpandable?: boolean;
|
|
14
14
|
}
|
|
@@ -16,7 +16,6 @@ export interface FieldGroup {
|
|
|
16
16
|
groupLabel: string;
|
|
17
17
|
groupName: string;
|
|
18
18
|
isExpanded?: boolean;
|
|
19
|
-
additionalFieldExtensions?: string[];
|
|
20
19
|
fields: Field[];
|
|
21
20
|
}
|
|
22
21
|
export interface ExportResourcesModalProps {
|
|
@@ -3,21 +3,16 @@ import type { OutputFormat } from "./output-format.js";
|
|
|
3
3
|
export interface FormField extends Field {
|
|
4
4
|
isChecked?: boolean;
|
|
5
5
|
fields?: FormField[];
|
|
6
|
-
additionalFieldExtensions?: string[];
|
|
7
6
|
}
|
|
8
7
|
export interface FormGroup extends FieldGroup {
|
|
9
8
|
isChecked?: boolean;
|
|
10
|
-
isExpanded?: boolean;
|
|
11
9
|
fields: FormField[];
|
|
12
|
-
additionalFieldExtensions?: string[];
|
|
13
|
-
dependentGroupNames?: string[];
|
|
14
10
|
}
|
|
15
11
|
export interface FilteredField extends FormField {
|
|
16
12
|
isHidden?: boolean;
|
|
17
13
|
}
|
|
18
14
|
export interface FilteredGroup extends FieldGroup {
|
|
19
15
|
isHidden?: boolean;
|
|
20
|
-
dependentGroupNames?: string[];
|
|
21
16
|
fields: FilteredField[];
|
|
22
17
|
}
|
|
23
18
|
export interface FormValues {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import ExportResourcesModal from "./export-resources-modal.js";
|
|
2
2
|
export { EXPORT_TYPES, EXPORTABLE_RESOURCES } from "./@constants/index.js";
|
|
3
3
|
export * from "./@types/index.js";
|
|
4
|
+
export { useConvertFieldDefinitionsForExport } from "./@hooks/index.js";
|
|
4
5
|
export default ExportResourcesModal;
|
|
@@ -147,6 +147,10 @@ var en = {
|
|
|
147
147
|
developer_comment: "Label for the categories modal title",
|
|
148
148
|
string: "Export categories"
|
|
149
149
|
},
|
|
150
|
+
"ExportResourcesModal.modalTitle.customer": {
|
|
151
|
+
developer_comment: "Label for the customers modal title",
|
|
152
|
+
string: "Export customers"
|
|
153
|
+
},
|
|
150
154
|
"ExportResourcesModal.modalTitle.discountCode": {
|
|
151
155
|
developer_comment: "Label for the discount codes modal title",
|
|
152
156
|
string: "Export discount codes"
|
|
@@ -149,6 +149,10 @@ var en = {
|
|
|
149
149
|
developer_comment: "Label for the categories modal title",
|
|
150
150
|
string: "Export categories"
|
|
151
151
|
},
|
|
152
|
+
"ExportResourcesModal.modalTitle.customer": {
|
|
153
|
+
developer_comment: "Label for the customers modal title",
|
|
154
|
+
string: "Export customers"
|
|
155
|
+
},
|
|
152
156
|
"ExportResourcesModal.modalTitle.discountCode": {
|
|
153
157
|
developer_comment: "Label for the discount codes modal title",
|
|
154
158
|
string: "Export discount codes"
|
|
@@ -149,6 +149,10 @@ var en = {
|
|
|
149
149
|
developer_comment: "Label for the categories modal title",
|
|
150
150
|
string: "Export categories"
|
|
151
151
|
},
|
|
152
|
+
"ExportResourcesModal.modalTitle.customer": {
|
|
153
|
+
developer_comment: "Label for the customers modal title",
|
|
154
|
+
string: "Export customers"
|
|
155
|
+
},
|
|
152
156
|
"ExportResourcesModal.modalTitle.discountCode": {
|
|
153
157
|
developer_comment: "Label for the discount codes modal title",
|
|
154
158
|
string: "Export discount codes"
|
|
@@ -147,6 +147,10 @@ var es = {
|
|
|
147
147
|
developer_comment: "Label for the categories modal title",
|
|
148
148
|
string: "Exportar categorías"
|
|
149
149
|
},
|
|
150
|
+
"ExportResourcesModal.modalTitle.customer": {
|
|
151
|
+
developer_comment: "Label for the customers modal title",
|
|
152
|
+
string: "Export customers"
|
|
153
|
+
},
|
|
150
154
|
"ExportResourcesModal.modalTitle.discountCode": {
|
|
151
155
|
developer_comment: "Label for the discount codes modal title",
|
|
152
156
|
string: "Exportar código/s de descuento"
|
|
@@ -149,6 +149,10 @@ var es = {
|
|
|
149
149
|
developer_comment: "Label for the categories modal title",
|
|
150
150
|
string: "Exportar categorías"
|
|
151
151
|
},
|
|
152
|
+
"ExportResourcesModal.modalTitle.customer": {
|
|
153
|
+
developer_comment: "Label for the customers modal title",
|
|
154
|
+
string: "Export customers"
|
|
155
|
+
},
|
|
152
156
|
"ExportResourcesModal.modalTitle.discountCode": {
|
|
153
157
|
developer_comment: "Label for the discount codes modal title",
|
|
154
158
|
string: "Exportar código/s de descuento"
|
|
@@ -149,6 +149,10 @@ var es = {
|
|
|
149
149
|
developer_comment: "Label for the categories modal title",
|
|
150
150
|
string: "Exportar categorías"
|
|
151
151
|
},
|
|
152
|
+
"ExportResourcesModal.modalTitle.customer": {
|
|
153
|
+
developer_comment: "Label for the customers modal title",
|
|
154
|
+
string: "Export customers"
|
|
155
|
+
},
|
|
152
156
|
"ExportResourcesModal.modalTitle.discountCode": {
|
|
153
157
|
developer_comment: "Label for the discount codes modal title",
|
|
154
158
|
string: "Exportar código/s de descuento"
|
|
@@ -149,6 +149,10 @@ var frFR = {
|
|
|
149
149
|
developer_comment: "Label for the categories modal title",
|
|
150
150
|
string: "Export categories"
|
|
151
151
|
},
|
|
152
|
+
"ExportResourcesModal.modalTitle.customer": {
|
|
153
|
+
developer_comment: "Label for the customers modal title",
|
|
154
|
+
string: "Export customers"
|
|
155
|
+
},
|
|
152
156
|
"ExportResourcesModal.modalTitle.discountCode": {
|
|
153
157
|
developer_comment: "Label for the discount codes modal title",
|
|
154
158
|
string: "Exporter les codes de remise"
|
|
@@ -147,6 +147,10 @@ var frFR = {
|
|
|
147
147
|
developer_comment: "Label for the categories modal title",
|
|
148
148
|
string: "Export categories"
|
|
149
149
|
},
|
|
150
|
+
"ExportResourcesModal.modalTitle.customer": {
|
|
151
|
+
developer_comment: "Label for the customers modal title",
|
|
152
|
+
string: "Export customers"
|
|
153
|
+
},
|
|
150
154
|
"ExportResourcesModal.modalTitle.discountCode": {
|
|
151
155
|
developer_comment: "Label for the discount codes modal title",
|
|
152
156
|
string: "Exporter les codes de remise"
|
|
@@ -149,6 +149,10 @@ var frFR = {
|
|
|
149
149
|
developer_comment: "Label for the categories modal title",
|
|
150
150
|
string: "Export categories"
|
|
151
151
|
},
|
|
152
|
+
"ExportResourcesModal.modalTitle.customer": {
|
|
153
|
+
developer_comment: "Label for the customers modal title",
|
|
154
|
+
string: "Export customers"
|
|
155
|
+
},
|
|
152
156
|
"ExportResourcesModal.modalTitle.discountCode": {
|
|
153
157
|
developer_comment: "Label for the discount codes modal title",
|
|
154
158
|
string: "Exporter les codes de remise"
|
|
@@ -147,6 +147,10 @@ var ptBR = {
|
|
|
147
147
|
developer_comment: "Label for the categories modal title",
|
|
148
148
|
string: "Export categories"
|
|
149
149
|
},
|
|
150
|
+
"ExportResourcesModal.modalTitle.customer": {
|
|
151
|
+
developer_comment: "Label for the customers modal title",
|
|
152
|
+
string: "Export customers"
|
|
153
|
+
},
|
|
150
154
|
"ExportResourcesModal.modalTitle.discountCode": {
|
|
151
155
|
developer_comment: "Label for the discount codes modal title",
|
|
152
156
|
string: "Exportar códigos de desconto"
|
|
@@ -149,6 +149,10 @@ var ptBR = {
|
|
|
149
149
|
developer_comment: "Label for the categories modal title",
|
|
150
150
|
string: "Export categories"
|
|
151
151
|
},
|
|
152
|
+
"ExportResourcesModal.modalTitle.customer": {
|
|
153
|
+
developer_comment: "Label for the customers modal title",
|
|
154
|
+
string: "Export customers"
|
|
155
|
+
},
|
|
152
156
|
"ExportResourcesModal.modalTitle.discountCode": {
|
|
153
157
|
developer_comment: "Label for the discount codes modal title",
|
|
154
158
|
string: "Exportar códigos de desconto"
|
|
@@ -149,6 +149,10 @@ var ptBR = {
|
|
|
149
149
|
developer_comment: "Label for the categories modal title",
|
|
150
150
|
string: "Export categories"
|
|
151
151
|
},
|
|
152
|
+
"ExportResourcesModal.modalTitle.customer": {
|
|
153
|
+
developer_comment: "Label for the customers modal title",
|
|
154
|
+
string: "Export customers"
|
|
155
|
+
},
|
|
152
156
|
"ExportResourcesModal.modalTitle.discountCode": {
|
|
153
157
|
developer_comment: "Label for the discount codes modal title",
|
|
154
158
|
string: "Exportar códigos de desconto"
|
|
@@ -149,6 +149,10 @@ var zhCN = {
|
|
|
149
149
|
developer_comment: "Label for the categories modal title",
|
|
150
150
|
string: "Export categories"
|
|
151
151
|
},
|
|
152
|
+
"ExportResourcesModal.modalTitle.customer": {
|
|
153
|
+
developer_comment: "Label for the customers modal title",
|
|
154
|
+
string: "Export customers"
|
|
155
|
+
},
|
|
152
156
|
"ExportResourcesModal.modalTitle.discountCode": {
|
|
153
157
|
developer_comment: "Label for the discount codes modal title",
|
|
154
158
|
string: "导出折扣代码"
|
|
@@ -147,6 +147,10 @@ var zhCN = {
|
|
|
147
147
|
developer_comment: "Label for the categories modal title",
|
|
148
148
|
string: "Export categories"
|
|
149
149
|
},
|
|
150
|
+
"ExportResourcesModal.modalTitle.customer": {
|
|
151
|
+
developer_comment: "Label for the customers modal title",
|
|
152
|
+
string: "Export customers"
|
|
153
|
+
},
|
|
150
154
|
"ExportResourcesModal.modalTitle.discountCode": {
|
|
151
155
|
developer_comment: "Label for the discount codes modal title",
|
|
152
156
|
string: "导出折扣代码"
|
|
@@ -149,6 +149,10 @@ var zhCN = {
|
|
|
149
149
|
developer_comment: "Label for the categories modal title",
|
|
150
150
|
string: "Export categories"
|
|
151
151
|
},
|
|
152
|
+
"ExportResourcesModal.modalTitle.customer": {
|
|
153
|
+
developer_comment: "Label for the customers modal title",
|
|
154
|
+
string: "Export customers"
|
|
155
|
+
},
|
|
152
156
|
"ExportResourcesModal.modalTitle.discountCode": {
|
|
153
157
|
developer_comment: "Label for the discount codes modal title",
|
|
154
158
|
string: "导出折扣代码"
|
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.6.
|
|
4
|
+
"version": "4.6.5",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -31,17 +31,18 @@
|
|
|
31
31
|
"react": "17.0.2"
|
|
32
32
|
},
|
|
33
33
|
"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/i18n": "22.
|
|
40
|
-
"@commercetools-frontend/jest-preset-mc-app": "22.
|
|
41
|
-
"@commercetools-frontend/
|
|
42
|
-
"@commercetools-frontend/
|
|
43
|
-
"@commercetools-frontend/
|
|
44
|
-
"@commercetools-
|
|
34
|
+
"@commercetools-frontend/actions-global": "22.32.0",
|
|
35
|
+
"@commercetools-frontend/application-components": "22.32.0",
|
|
36
|
+
"@commercetools-frontend/application-shell": "22.32.0",
|
|
37
|
+
"@commercetools-frontend/application-shell-connectors": "22.32.0",
|
|
38
|
+
"@commercetools-frontend/constants": "22.32.0",
|
|
39
|
+
"@commercetools-frontend/i18n": "22.32.0",
|
|
40
|
+
"@commercetools-frontend/jest-preset-mc-app": "22.32.0",
|
|
41
|
+
"@commercetools-frontend/l10n": "22.x",
|
|
42
|
+
"@commercetools-frontend/sdk": "22.32.0",
|
|
43
|
+
"@commercetools-frontend/sentry": "22.32.0",
|
|
44
|
+
"@commercetools-frontend/ui-kit": "19.11.0",
|
|
45
|
+
"@commercetools-uikit/design-system": "19.11.0",
|
|
45
46
|
"@preconstruct/cli": "2.8.7",
|
|
46
47
|
"@types/jest": "29.5.12",
|
|
47
48
|
"@types/testing-library__jest-dom": "^5.14.5",
|
|
@@ -59,6 +60,7 @@
|
|
|
59
60
|
"@commercetools-frontend/constants": "22.x",
|
|
60
61
|
"@commercetools-frontend/i18n": "22.x",
|
|
61
62
|
"@commercetools-frontend/jest-preset-mc-app": "22.x",
|
|
63
|
+
"@commercetools-frontend/l10n": "22.x",
|
|
62
64
|
"@commercetools-frontend/sdk": "22.x",
|
|
63
65
|
"@commercetools-frontend/sentry": "22.x",
|
|
64
66
|
"@commercetools-frontend/ui-kit": "19.x",
|