@commercetools-frontend-extensions/export-resources-modal 4.6.4 → 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.
Files changed (33) hide show
  1. package/README.md +5 -8
  2. package/dist/commercetools-frontend-extensions-export-resources-modal.cjs.dev.js +269 -149
  3. package/dist/commercetools-frontend-extensions-export-resources-modal.cjs.prod.js +263 -143
  4. package/dist/commercetools-frontend-extensions-export-resources-modal.esm.js +266 -147
  5. package/dist/{de-695399d9.cjs.prod.js → de-16b6e603.cjs.prod.js} +4 -0
  6. package/dist/{de-99b348fe.esm.js → de-d065df9f.esm.js} +4 -0
  7. package/dist/{de-87c7cf7f.cjs.dev.js → de-d4a85a4f.cjs.dev.js} +4 -0
  8. package/dist/declarations/src/@hooks/index.d.ts +4 -0
  9. package/dist/declarations/src/@hooks/use-convert-field-definitions-for-export.d.ts +8 -0
  10. package/dist/declarations/src/@hooks/use-export-resources-modal-context.d.ts +2 -0
  11. package/dist/declarations/src/@hooks/use-initial-values.d.ts +2 -0
  12. package/dist/declarations/src/@hooks/use-start-export-operation.d.ts +4 -0
  13. package/dist/declarations/src/@types/export-resources-modal-types.d.ts +2 -3
  14. package/dist/declarations/src/@types/field-definition.d.ts +6 -0
  15. package/dist/declarations/src/@types/form.d.ts +0 -5
  16. package/dist/declarations/src/@types/index.d.ts +1 -0
  17. package/dist/declarations/src/index.d.ts +1 -0
  18. package/dist/{en-105944c8.esm.js → en-489b5062.esm.js} +4 -0
  19. package/dist/{en-d02c912e.cjs.dev.js → en-6be5d801.cjs.prod.js} +4 -0
  20. package/dist/{en-985e1cb3.cjs.prod.js → en-f3054f24.cjs.dev.js} +4 -0
  21. package/dist/{es-a50b0543.esm.js → es-3072d392.esm.js} +4 -0
  22. package/dist/{es-51b65e08.cjs.prod.js → es-b1808cc2.cjs.dev.js} +4 -0
  23. package/dist/{es-76fb86f4.cjs.dev.js → es-f37701ea.cjs.prod.js} +4 -0
  24. package/dist/{fr-FR-9067e0c6.cjs.dev.js → fr-FR-66c381ea.cjs.prod.js} +4 -0
  25. package/dist/{fr-FR-45e4cba6.esm.js → fr-FR-9be90155.esm.js} +4 -0
  26. package/dist/{fr-FR-edf47120.cjs.prod.js → fr-FR-bf242ea4.cjs.dev.js} +4 -0
  27. package/dist/{pt-BR-ee02597a.esm.js → pt-BR-5cf442aa.esm.js} +4 -0
  28. package/dist/{pt-BR-4b462e67.cjs.dev.js → pt-BR-6754aa85.cjs.dev.js} +4 -0
  29. package/dist/{pt-BR-4ccc10dd.cjs.prod.js → pt-BR-ebc555b4.cjs.prod.js} +4 -0
  30. package/dist/{zh-CN-4fc3d4db.cjs.prod.js → zh-CN-03a85de5.cjs.dev.js} +4 -0
  31. package/dist/{zh-CN-1b0b93bc.esm.js → zh-CN-1da404c0.esm.js} +4 -0
  32. package/dist/{zh-CN-1b65bfd5.cjs.dev.js → zh-CN-e22002dc.cjs.prod.js} +4 -0
  33. package/package.json +12 -10
@@ -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,4 @@
1
+ export * from "./use-export-resources-modal-context.js";
2
+ export * from "./use-initial-values.js";
3
+ export * from "./use-start-export-operation.js";
4
+ export * from "./use-convert-field-definitions-for-export.js";
@@ -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
+ };
@@ -0,0 +1,2 @@
1
+ import type { ExportResourcesModalContext } from "../@types/index.js";
2
+ export declare function useExportResourcesModalContext(): ExportResourcesModalContext;
@@ -0,0 +1,2 @@
1
+ import { ExportResourcesModalProps } from "../@types/index.js";
2
+ export declare const useInitialValues: (props: ExportResourcesModalProps) => any;
@@ -0,0 +1,4 @@
1
+ import type { ExportResourcesModalProps, ExportType, FormValues } from "../@types/index.js";
2
+ export declare const useStartExportOperation: (props: ExportResourcesModalProps) => {
3
+ startExportOperation: (values: FormValues, exportType: ExportType) => Promise<void>;
4
+ };
@@ -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
- additionalFieldExtensions?: string[];
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 {
@@ -0,0 +1,6 @@
1
+ import type { LocalizedField } from '@commercetools-frontend/l10n/dist/declarations/src/types';
2
+ export type FieldDefinition = {
3
+ name: string;
4
+ label: LocalizedField[] | string;
5
+ fields?: FieldDefinition[];
6
+ };
@@ -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 {
@@ -4,3 +4,4 @@ export * from "./form.js";
4
4
  export * from "./resource-type.js";
5
5
  export * from "./output-format.js";
6
6
  export * from "./export-api.js";
7
+ export * from "./field-definition.js";
@@ -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",
4
+ "version": "4.6.5",
5
5
  "license": "BSD-3-Clause",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -31,15 +31,16 @@
31
31
  "react": "17.0.2"
32
32
  },
33
33
  "devDependencies": {
34
- "@commercetools-frontend/actions-global": "22.31.0",
35
- "@commercetools-frontend/application-components": "22.31.0",
36
- "@commercetools-frontend/application-shell": "22.31.0",
37
- "@commercetools-frontend/application-shell-connectors": "22.31.0",
38
- "@commercetools-frontend/constants": "22.31.0",
39
- "@commercetools-frontend/i18n": "22.31.0",
40
- "@commercetools-frontend/jest-preset-mc-app": "22.31.0",
41
- "@commercetools-frontend/sdk": "22.31.0",
42
- "@commercetools-frontend/sentry": "22.31.0",
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",
43
44
  "@commercetools-frontend/ui-kit": "19.11.0",
44
45
  "@commercetools-uikit/design-system": "19.11.0",
45
46
  "@preconstruct/cli": "2.8.7",
@@ -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",