@commercetools-frontend-extensions/change-history 8.34.0 → 8.35.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/README.md +13 -13
- package/dist/commercetools-frontend-extensions-change-history.cjs.dev.js +3024 -2281
- package/dist/commercetools-frontend-extensions-change-history.cjs.prod.js +2967 -1361
- package/dist/commercetools-frontend-extensions-change-history.esm.js +3016 -2270
- package/dist/declarations/src/constants/filters.d.ts +22 -24
- package/dist/declarations/src/constants/index.d.ts +1 -0
- package/dist/declarations/src/constants/old-filters.d.ts +44 -0
- package/dist/declarations/src/i18n/use-async-intl-messages.d.ts +2 -2
- package/package.json +44 -54
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { ValueOf } from "../types/common-types.js";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const FILTER_KEY: {
|
|
3
3
|
readonly API_CLIENT: "apiClientId";
|
|
4
4
|
readonly BUSINESS_UNIT: "businessUnit";
|
|
5
|
-
readonly
|
|
5
|
+
readonly RESOURCE_CHANGE: "resourceChange";
|
|
6
6
|
readonly CHANGE_TYPE: "changeType";
|
|
7
7
|
readonly CUSTOMER_ID: "customerId";
|
|
8
|
-
readonly
|
|
9
|
-
readonly
|
|
10
|
-
readonly
|
|
8
|
+
readonly CREATED_AT: "createdAt";
|
|
9
|
+
readonly RESOURCE_ID: "resourceId";
|
|
10
|
+
readonly RESOURCE_TYPE: "resource.typeId";
|
|
11
11
|
readonly EXCLUDE_PLATFORM_CHANGES: "excludePlatformInitiatedChanges";
|
|
12
|
-
readonly
|
|
12
|
+
readonly IS_PLATFORM_CLIENT: "isPlatformClient";
|
|
13
13
|
readonly STORES: "stores";
|
|
14
|
-
readonly
|
|
14
|
+
readonly CREATED_BY: "createdBy.id";
|
|
15
15
|
};
|
|
16
|
-
export type
|
|
17
|
-
export declare const
|
|
16
|
+
export type TFilterKey = ValueOf<typeof FILTER_KEY>;
|
|
17
|
+
export declare const FILTER_OPERATOR: {
|
|
18
18
|
readonly lessThan: "lessThan";
|
|
19
19
|
readonly moreThan: "moreThan";
|
|
20
20
|
readonly equalTo: "equalTo";
|
|
@@ -24,21 +24,19 @@ export declare const FILTER_TYPES: {
|
|
|
24
24
|
readonly in: "in";
|
|
25
25
|
readonly resourceChange: "resourceChange";
|
|
26
26
|
};
|
|
27
|
-
export type
|
|
28
|
-
export type
|
|
29
|
-
export declare const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
readonly MERCHANT_CENTER: "MERCHANT_CENTER";
|
|
36
|
-
readonly IMPEX: "IMPEX";
|
|
37
|
-
readonly OUT_OF_PLATFORM: "API_CLIENT";
|
|
27
|
+
export type TFilterOperatorKey = keyof typeof FILTER_OPERATOR;
|
|
28
|
+
export type TFilterOperator = ValueOf<typeof FILTER_OPERATOR>;
|
|
29
|
+
export declare const QUICK_DATE_FILTER: {
|
|
30
|
+
readonly today: "today";
|
|
31
|
+
readonly yesterday: "yesterday";
|
|
32
|
+
readonly last7Days: "last7Days";
|
|
33
|
+
readonly last30Days: "last30Days";
|
|
34
|
+
readonly custom: "custom";
|
|
38
35
|
};
|
|
39
|
-
export type
|
|
40
|
-
export declare const
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
36
|
+
export type TQuickDateFilter = ValueOf<typeof QUICK_DATE_FILTER>;
|
|
37
|
+
export declare const SOURCE_OPTION: {
|
|
38
|
+
readonly MERCHANT_CENTER_USER: "MerchantCenter";
|
|
39
|
+
readonly PLATFORM_INITIATED: "ImpEx";
|
|
43
40
|
readonly API_CLIENT: "ApiClient";
|
|
44
41
|
};
|
|
42
|
+
export type TSourceOption = ValueOf<typeof SOURCE_OPTION>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ValueOf } from "../types/common-types.js";
|
|
2
|
+
export declare const FILTER_OPTION_KEYS: {
|
|
3
|
+
readonly API_CLIENT: "apiClientId";
|
|
4
|
+
readonly BUSINESS_UNIT: "businessUnit";
|
|
5
|
+
readonly CHANGE: "resourceChange";
|
|
6
|
+
readonly CHANGE_TYPE: "changeType";
|
|
7
|
+
readonly CUSTOMER_ID: "customerId";
|
|
8
|
+
readonly DATE_RANGE: "createdAt";
|
|
9
|
+
readonly ENTITY_ID: "resourceId";
|
|
10
|
+
readonly ENTITY_TYPE: "resource.typeId";
|
|
11
|
+
readonly EXCLUDE_PLATFORM_CHANGES: "excludePlatformInitiatedChanges";
|
|
12
|
+
readonly SOURCE: "isPlatformClient";
|
|
13
|
+
readonly STORES: "stores";
|
|
14
|
+
readonly MODIFIED_BY: "createdBy.id";
|
|
15
|
+
};
|
|
16
|
+
export type TFilterOptionKey = ValueOf<typeof FILTER_OPTION_KEYS>;
|
|
17
|
+
export declare const FILTER_TYPES: {
|
|
18
|
+
readonly lessThan: "lessThan";
|
|
19
|
+
readonly moreThan: "moreThan";
|
|
20
|
+
readonly equalTo: "equalTo";
|
|
21
|
+
readonly range: "range";
|
|
22
|
+
readonly missing: "missing";
|
|
23
|
+
readonly missingIn: "missingIn";
|
|
24
|
+
readonly in: "in";
|
|
25
|
+
readonly resourceChange: "resourceChange";
|
|
26
|
+
};
|
|
27
|
+
export type TFilterTypeKeys = keyof typeof FILTER_TYPES;
|
|
28
|
+
export type TFilterType = ValueOf<typeof FILTER_TYPES>;
|
|
29
|
+
export declare const quickFilterToday = "today";
|
|
30
|
+
export declare const quickFilterYesterday = "yesterday";
|
|
31
|
+
export declare const quickFilterLast7Days = "last7Days";
|
|
32
|
+
export declare const quickFilterLast30Days = "last30Days";
|
|
33
|
+
export declare const quickFilterCustom = "custom";
|
|
34
|
+
export declare const TOOL_OPTIONS: {
|
|
35
|
+
readonly MERCHANT_CENTER: "MERCHANT_CENTER";
|
|
36
|
+
readonly IMPEX: "IMPEX";
|
|
37
|
+
readonly OUT_OF_PLATFORM: "API_CLIENT";
|
|
38
|
+
};
|
|
39
|
+
export type TToolOptions = ValueOf<typeof TOOL_OPTIONS>;
|
|
40
|
+
export declare const SOURCE_OPTIONS: {
|
|
41
|
+
readonly MERCHANT_CENTER: "MerchantCenter";
|
|
42
|
+
readonly IMPEX: "ImpEx";
|
|
43
|
+
readonly API_CLIENT: "ApiClient";
|
|
44
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend-extensions/change-history",
|
|
3
3
|
"description": "Change history shared components and utilities",
|
|
4
|
-
"version": "8.
|
|
4
|
+
"version": "8.35.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -18,17 +18,7 @@
|
|
|
18
18
|
"@apollo/client": "3.8.5",
|
|
19
19
|
"@babel/runtime": "7.24.7",
|
|
20
20
|
"@babel/runtime-corejs3": "7.24.7",
|
|
21
|
-
"@
|
|
22
|
-
"@commercetools-uikit/data-table-manager": "19.20.1",
|
|
23
|
-
"@commercetools-uikit/design-system": "19.20.1",
|
|
24
|
-
"@commercetools-uikit/filters": "19.22.3",
|
|
25
|
-
"@commercetools-uikit/icons": "19.20.1",
|
|
26
|
-
"@commercetools-uikit/input-utils": "19.20.1",
|
|
27
|
-
"@commercetools-uikit/select-input": "19.20.1",
|
|
28
|
-
"@commercetools-uikit/select-utils": "19.20.1",
|
|
29
|
-
"@commercetools-uikit/text": "19.20.1",
|
|
30
|
-
"@commercetools-uikit/utils": "19.20.1",
|
|
31
|
-
"@emotion/react": "11.11.4",
|
|
21
|
+
"@emotion/react": "^11.14.0",
|
|
32
22
|
"classnames": "^2.3.2",
|
|
33
23
|
"common-tags": "1.8.2",
|
|
34
24
|
"debounce-promise": "3.1.2",
|
|
@@ -46,61 +36,60 @@
|
|
|
46
36
|
},
|
|
47
37
|
"devDependencies": {
|
|
48
38
|
"@babel/plugin-transform-runtime": "7.24.7",
|
|
49
|
-
"@commercetools-frontend/application-components": "
|
|
50
|
-
"@commercetools-frontend/application-shell": "
|
|
51
|
-
"@commercetools-frontend/application-shell-connectors": "
|
|
52
|
-
"@commercetools-frontend/assets": "
|
|
53
|
-
"@commercetools-frontend/constants": "
|
|
54
|
-
"@commercetools-frontend/i18n": "
|
|
55
|
-
"@commercetools-frontend/l10n": "
|
|
56
|
-
"@commercetools-frontend/mc-scripts": "
|
|
57
|
-
"@commercetools-frontend/permissions": "
|
|
58
|
-
"@commercetools-frontend/sdk": "
|
|
59
|
-
"@commercetools-frontend/sentry": "
|
|
60
|
-
"@commercetools-frontend/ui-kit": "19
|
|
39
|
+
"@commercetools-frontend/application-components": "fec-156-react19",
|
|
40
|
+
"@commercetools-frontend/application-shell": "fec-156-react19",
|
|
41
|
+
"@commercetools-frontend/application-shell-connectors": "fec-156-react19",
|
|
42
|
+
"@commercetools-frontend/assets": "fec-156-react19",
|
|
43
|
+
"@commercetools-frontend/constants": "fec-156-react19",
|
|
44
|
+
"@commercetools-frontend/i18n": "fec-156-react19",
|
|
45
|
+
"@commercetools-frontend/l10n": "fec-156-react19",
|
|
46
|
+
"@commercetools-frontend/mc-scripts": "fec-156-react19",
|
|
47
|
+
"@commercetools-frontend/permissions": "fec-156-react19",
|
|
48
|
+
"@commercetools-frontend/sdk": "fec-156-react19",
|
|
49
|
+
"@commercetools-frontend/sentry": "fec-156-react19",
|
|
50
|
+
"@commercetools-frontend/ui-kit": "fec-155-react-19",
|
|
51
|
+
"@commercetools-uikit/design-system": "fec-155-react-19",
|
|
52
|
+
"@commercetools-uikit/filters": "fec-155-react-19",
|
|
61
53
|
"@faker-js/faker": "8.4.1",
|
|
62
|
-
"@formatjs/cli": "6.2
|
|
54
|
+
"@formatjs/cli": "6.4.2",
|
|
63
55
|
"@preconstruct/cli": "2.8.3",
|
|
64
|
-
"@testing-library/react": "
|
|
65
|
-
"@
|
|
56
|
+
"@testing-library/react": "16.2.0",
|
|
57
|
+
"@types/cypress": "^1.1.6",
|
|
58
|
+
"@types/jest": "29.5.12",
|
|
66
59
|
"@types/lodash": "^4.14.202",
|
|
67
|
-
"@types/react": "
|
|
68
|
-
"@types/react-dom": "
|
|
60
|
+
"@types/react": "19.0.7",
|
|
61
|
+
"@types/react-dom": "19.0.3",
|
|
69
62
|
"@types/react-router-dom": "5.3.3",
|
|
70
63
|
"babel-plugin-import-graphql": "2.8.1",
|
|
71
|
-
"babel-plugin-inline-svg": "
|
|
64
|
+
"babel-plugin-inline-react-svg": "^2.0.2",
|
|
72
65
|
"cross-env": "7.0.3",
|
|
73
66
|
"jest-date-mock": "1.0.10",
|
|
74
67
|
"msw": "1.3.3",
|
|
75
|
-
"react": "
|
|
76
|
-
"react-dom": "
|
|
77
|
-
"react-intl": "
|
|
78
|
-
"react-redux": "7.2.9",
|
|
68
|
+
"react": "19.0.0",
|
|
69
|
+
"react-dom": "19.0.0",
|
|
70
|
+
"react-intl": "7.1.4",
|
|
79
71
|
"react-router-dom": "5.3.4",
|
|
80
72
|
"react-select": "5.8.0",
|
|
81
|
-
"react-test-renderer": "17.0.2",
|
|
82
|
-
"redux": "4.2.1",
|
|
83
73
|
"rimraf": "5.0.7"
|
|
84
74
|
},
|
|
85
75
|
"peerDependencies": {
|
|
86
|
-
"@commercetools-frontend/application-components": "22.x || 23.x",
|
|
87
|
-
"@commercetools-frontend/application-shell": "22.x || 23.x",
|
|
88
|
-
"@commercetools-frontend/application-shell-connectors": "22.x || 23.x",
|
|
89
|
-
"@commercetools-frontend/assets": "22.x || 23.x",
|
|
90
|
-
"@commercetools-frontend/constants": "22.x || 23.x",
|
|
91
|
-
"@commercetools-frontend/i18n": "22.x || 23.x",
|
|
92
|
-
"@commercetools-frontend/l10n": "22.x || 23.x",
|
|
93
|
-
"@commercetools-frontend/permissions": "22.x || 23.x",
|
|
94
|
-
"@commercetools-frontend/sdk": "22.x || 23.x",
|
|
95
|
-
"@commercetools-frontend/sentry": "22.x || 23.x",
|
|
96
|
-
"@commercetools-frontend/ui-kit": "
|
|
76
|
+
"@commercetools-frontend/application-components": "22.x || 23.x || fec-156-react19",
|
|
77
|
+
"@commercetools-frontend/application-shell": "22.x || 23.x || fec-156-react19",
|
|
78
|
+
"@commercetools-frontend/application-shell-connectors": "22.x || 23.x || fec-156-react19",
|
|
79
|
+
"@commercetools-frontend/assets": "22.x || 23.x || fec-156-react19",
|
|
80
|
+
"@commercetools-frontend/constants": "22.x || 23.x || fec-156-react19",
|
|
81
|
+
"@commercetools-frontend/i18n": "22.x || 23.x || fec-156-react19",
|
|
82
|
+
"@commercetools-frontend/l10n": "22.x || 23.x || fec-156-react19",
|
|
83
|
+
"@commercetools-frontend/permissions": "22.x || 23.x || fec-156-react19",
|
|
84
|
+
"@commercetools-frontend/sdk": "22.x || 23.x || fec-156-react19",
|
|
85
|
+
"@commercetools-frontend/sentry": "22.x || 23.x || fec-156-react19",
|
|
86
|
+
"@commercetools-frontend/ui-kit": "^19.22.6 || fec-155-react-19",
|
|
87
|
+
"@commercetools-uikit/design-system": "^19.22.6 || fec-155-react-19",
|
|
97
88
|
"msw": "1.3.3",
|
|
98
|
-
"react": "
|
|
99
|
-
"react-dom": "
|
|
100
|
-
"react-intl": "6.x",
|
|
101
|
-
"react-
|
|
102
|
-
"react-router-dom": "5.x",
|
|
103
|
-
"redux": "4.x"
|
|
89
|
+
"react": "17.x || 18.x || 19.x",
|
|
90
|
+
"react-dom": "17.x || 18.x || 19.x",
|
|
91
|
+
"react-intl": "6.x || 7.x",
|
|
92
|
+
"react-router-dom": "5.x"
|
|
104
93
|
},
|
|
105
94
|
"engines": {
|
|
106
95
|
"node": "^20",
|
|
@@ -110,6 +99,7 @@
|
|
|
110
99
|
"build": "rimraf dist && preconstruct build",
|
|
111
100
|
"build:bundles": "pnpm run build",
|
|
112
101
|
"build:watch": "preconstruct watch",
|
|
113
|
-
"extract-intl": "formatjs extract --format=transifex --out-file $(pwd)/src/i18n/data/core.json 'src/**/(*.)?messages.(js|ts)'"
|
|
102
|
+
"extract-intl": "formatjs extract --format=transifex --out-file $(pwd)/src/i18n/data/core.json 'src/**/(*.)?messages.(js|ts)'",
|
|
103
|
+
"typecheck": "tsc -p ../tsconfig.json"
|
|
114
104
|
}
|
|
115
105
|
}
|