@commercetools-frontend-extensions/export-resources-modal 4.4.5 → 4.5.0
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/commercetools-frontend-extensions-export-resources-modal.cjs.dev.js +299 -260
- package/dist/commercetools-frontend-extensions-export-resources-modal.cjs.prod.js +283 -244
- package/dist/commercetools-frontend-extensions-export-resources-modal.esm.js +297 -257
- package/dist/declarations/src/@constants/exportable-resources.d.ts +3 -0
- package/dist/declarations/src/@types/export-resources-modal-types.d.ts +2 -2
- package/dist/declarations/src/@types/resource-type.d.ts +2 -2
- package/package.json +14 -14
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export declare const EXPORTABLE_RESOURCES: {
|
|
2
2
|
readonly CATEGORY: "category";
|
|
3
3
|
readonly PRODUCT: "product";
|
|
4
|
+
readonly PRODUCT_TYPE: "product-type";
|
|
4
5
|
readonly DISCOUNT_CODE: "discount-code";
|
|
5
6
|
readonly INVENTORY_ENTRY: "inventory-entry";
|
|
7
|
+
readonly ORDER: "order";
|
|
8
|
+
readonly CUSTOMER: "customer";
|
|
6
9
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { ResourceType } from "./resource-type.js";
|
|
1
2
|
import { EXPORT_TYPES } from "../@constants/index.js";
|
|
2
|
-
import type { ExportableResources } from "./resource-type.js";
|
|
3
3
|
export interface Field {
|
|
4
4
|
name: string;
|
|
5
5
|
label: string;
|
|
@@ -21,7 +21,7 @@ export interface FieldGroup {
|
|
|
21
21
|
}
|
|
22
22
|
export interface ExportResourcesModalShape {
|
|
23
23
|
isOpen?: boolean;
|
|
24
|
-
resourceType:
|
|
24
|
+
resourceType: ResourceType;
|
|
25
25
|
outputFormat?: string;
|
|
26
26
|
filters?: Filters;
|
|
27
27
|
totalResourcesCount: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EXPORTABLE_RESOURCES } from "../@constants/exportable-resources.js";
|
|
2
|
-
export type
|
|
2
|
+
export type ResourceType = (typeof EXPORTABLE_RESOURCES)[keyof typeof EXPORTABLE_RESOURCES];
|
|
3
3
|
export type ResourceTypeMap = {
|
|
4
|
-
[K in
|
|
4
|
+
[K in ResourceType]: unknown;
|
|
5
5
|
};
|
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.
|
|
4
|
+
"version": "4.5.0",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@babel/runtime": "7.25.0",
|
|
19
19
|
"@babel/runtime-corejs3": "7.25.0",
|
|
20
|
-
"@commercetools-frontend/experimental-components": "6.1.
|
|
21
|
-
"@commercetools-frontend/fullstory": "2.4.
|
|
20
|
+
"@commercetools-frontend/experimental-components": "6.1.4",
|
|
21
|
+
"@commercetools-frontend/fullstory": "2.4.5",
|
|
22
22
|
"@emotion/react": "11.13.0",
|
|
23
23
|
"@emotion/styled": "11.13.0",
|
|
24
24
|
"@formatjs/cli": "6.2.12",
|
|
@@ -52,17 +52,17 @@
|
|
|
52
52
|
"rimraf": "5.0.10"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@commercetools-frontend/actions-global": "22.
|
|
56
|
-
"@commercetools-frontend/application-components": "22.
|
|
57
|
-
"@commercetools-frontend/application-shell": "22.
|
|
58
|
-
"@commercetools-frontend/application-shell-connectors": "22.
|
|
59
|
-
"@commercetools-frontend/constants": "22.
|
|
60
|
-
"@commercetools-frontend/i18n": "22.
|
|
61
|
-
"@commercetools-frontend/jest-preset-mc-app": "22.
|
|
62
|
-
"@commercetools-frontend/sdk": "22.
|
|
63
|
-
"@commercetools-frontend/sentry": "22.
|
|
64
|
-
"@commercetools-frontend/ui-kit": "19.
|
|
65
|
-
"@commercetools-uikit/design-system": "19.
|
|
55
|
+
"@commercetools-frontend/actions-global": "22.x",
|
|
56
|
+
"@commercetools-frontend/application-components": "22.x",
|
|
57
|
+
"@commercetools-frontend/application-shell": "22.x",
|
|
58
|
+
"@commercetools-frontend/application-shell-connectors": "22.x",
|
|
59
|
+
"@commercetools-frontend/constants": "22.x",
|
|
60
|
+
"@commercetools-frontend/i18n": "22.x",
|
|
61
|
+
"@commercetools-frontend/jest-preset-mc-app": "22.x",
|
|
62
|
+
"@commercetools-frontend/sdk": "22.x",
|
|
63
|
+
"@commercetools-frontend/sentry": "22.x",
|
|
64
|
+
"@commercetools-frontend/ui-kit": "19.x",
|
|
65
|
+
"@commercetools-uikit/design-system": "19.x",
|
|
66
66
|
"react-intl": "6.x",
|
|
67
67
|
"react-redux": "7.x",
|
|
68
68
|
"redux": "4.x"
|