@commercetools-frontend-extensions/change-history 8.34.0 → 8.36.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.
@@ -1,20 +1,20 @@
1
1
  import { ValueOf } from "../types/common-types.js";
2
- export declare const FILTER_OPTION_KEYS: {
2
+ export declare const FILTER_KEY: {
3
3
  readonly API_CLIENT: "apiClientId";
4
4
  readonly BUSINESS_UNIT: "businessUnit";
5
- readonly CHANGE: "resourceChange";
5
+ readonly RESOURCE_CHANGE: "resourceChange";
6
6
  readonly CHANGE_TYPE: "changeType";
7
7
  readonly CUSTOMER_ID: "customerId";
8
- readonly DATE_RANGE: "createdAt";
9
- readonly ENTITY_ID: "resourceId";
10
- readonly ENTITY_TYPE: "resource.typeId";
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 SOURCE: "isPlatformClient";
12
+ readonly IS_PLATFORM_CLIENT: "isPlatformClient";
13
13
  readonly STORES: "stores";
14
- readonly MODIFIED_BY: "createdBy.id";
14
+ readonly CREATED_BY: "createdBy.id";
15
15
  };
16
- export type TFilterOptionKey = ValueOf<typeof FILTER_OPTION_KEYS>;
17
- export declare const FILTER_TYPES: {
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 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";
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 TToolOptions = ValueOf<typeof TOOL_OPTIONS>;
40
- export declare const SOURCE_OPTIONS: {
41
- readonly MERCHANT_CENTER: "MerchantCenter";
42
- readonly IMPEX: "ImpEx";
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>;
@@ -1,5 +1,6 @@
1
1
  export * from "./resource-change-input.js";
2
2
  export * from "./constants.js";
3
3
  export * from "./filters.js";
4
+ export * from "./old-filters.js";
4
5
  export * from "./intervals.js";
5
6
  export * from "./resource-types.js";
@@ -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
+ };
@@ -1,6 +1,6 @@
1
1
  declare const useAsyncIntlMessages: (locale: any, loader: any) => {
2
2
  isLoading: boolean;
3
- messages: undefined;
4
- error: undefined;
3
+ messages?: unknown | undefined;
4
+ error?: unknown | undefined;
5
5
  };
6
6
  export default useAsyncIntlMessages;
@@ -1,24 +1,24 @@
1
1
  export { default as version } from "./version.js";
2
2
  export { default as ChangeHistory } from "./components/change-history/index.js";
3
- export { default as ChangeHistoryAssociateRolesTab } from "./resources/associate-role/associate-role-tab.js";
4
- export { default as ChangeHistoryBusinessUnitsTab } from "./resources/business-unit/business-unit-tab.js";
5
- export { default as ChangeHistoryCartDiscountsTab } from "./resources/discounts/cart-discount/cart-discount-tab.js";
6
- export { default as ChangeHistoryCategoriesTab } from "./resources/category/category-tab.js";
7
- export { default as ChangeHistoryChannelsTab } from "./resources/channel/channel-tab.js";
8
- export { default as ChangeHistoryCustomersTab } from "./resources/customer/customer-tab.js";
9
- export { default as ChangeHistoryCustomerGroupsTab } from "./resources/customer/customer-group/customer-group-tab.js";
10
- export { default as ChangeHistoryDiscountCodesTab } from "./resources/discounts/discount-code/discount-code-tab.js";
11
- export { default as ChangeHistoryOrdersTab } from "./resources/order/order-tab.js";
12
- export { default as ChangeHistoryProductsTab } from "./resources/product/product-tab.js";
13
- export { default as ChangeHistoryProductDiscountsTab } from "./resources/discounts/product-discount/product-discount-tab.js";
14
- export { default as ChangeHistoryProductSelectionsTab } from "./resources/product-selection/product-selection-tab.js";
15
- export { default as ChangeHistoryProductTypesTab } from "./resources/product-type/product-type-tab.js";
16
- export { default as ChangeHistoryQuotesTab } from "./resources/quotes/quote/quote-tab.js";
17
- export { default as ChangeHistoryQuoteRequestsTab } from "./resources/quotes/quote-request/quote-request-tab.js";
18
- export { default as ChangeHistoryStagedQuotesTab } from "./resources/quotes/staged-quote/staged-quote-tab.js";
19
- export { default as ChangeHistoryStoresTab } from "./resources/store/store-tab.js";
20
- export { default as ChangeHistoryTaxCategoriesTab } from "./resources/tax-category/tax-category-tab.js";
21
- export { default as ChangeHistoryZonesTab } from "./resources/zone/zone-tab.js";
3
+ export { default as ChangeHistoryAssociateRolesTab } from "./resources/associate-role/associate-role-tab.jsx";
4
+ export { default as ChangeHistoryBusinessUnitsTab } from "./resources/business-unit/business-unit-tab.jsx";
5
+ export { default as ChangeHistoryCartDiscountsTab } from "./resources/discounts/cart-discount/cart-discount-tab.jsx";
6
+ export { default as ChangeHistoryCategoriesTab } from "./resources/category/category-tab.jsx";
7
+ export { default as ChangeHistoryChannelsTab } from "./resources/channel/channel-tab.jsx";
8
+ export { default as ChangeHistoryCustomersTab } from "./resources/customer/customer-tab.jsx";
9
+ export { default as ChangeHistoryCustomerGroupsTab } from "./resources/customer/customer-group/customer-group-tab.jsx";
10
+ export { default as ChangeHistoryDiscountCodesTab } from "./resources/discounts/discount-code/discount-code-tab.jsx";
11
+ export { default as ChangeHistoryOrdersTab } from "./resources/order/order-tab.jsx";
12
+ export { default as ChangeHistoryProductsTab } from "./resources/product/product-tab.jsx";
13
+ export { default as ChangeHistoryProductDiscountsTab } from "./resources/discounts/product-discount/product-discount-tab.jsx";
14
+ export { default as ChangeHistoryProductSelectionsTab } from "./resources/product-selection/product-selection-tab.jsx";
15
+ export { default as ChangeHistoryProductTypesTab } from "./resources/product-type/product-type-tab.jsx";
16
+ export { default as ChangeHistoryQuotesTab } from "./resources/quotes/quote/quote-tab.jsx";
17
+ export { default as ChangeHistoryQuoteRequestsTab } from "./resources/quotes/quote-request/quote-request-tab.jsx";
18
+ export { default as ChangeHistoryStagedQuotesTab } from "./resources/quotes/staged-quote/staged-quote-tab.jsx";
19
+ export { default as ChangeHistoryStoresTab } from "./resources/store/store-tab.jsx";
20
+ export { default as ChangeHistoryTaxCategoriesTab } from "./resources/tax-category/tax-category-tab.jsx";
21
+ export { default as ChangeHistoryZonesTab } from "./resources/zone/zone-tab.jsx";
22
22
  export { default as ChangeHistoryLink } from "./components/change-history-link/index.js";
23
23
  export { RESOURCE_MODAL_TYPES as RESOURCE } from "./constants/resource-types.js";
24
24
  export { loadI18n } from "./i18n/index.js";
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.34.0",
4
+ "version": "8.36.0",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -17,18 +17,8 @@
17
17
  "dependencies": {
18
18
  "@apollo/client": "3.8.5",
19
19
  "@babel/runtime": "7.24.7",
20
- "@babel/runtime-corejs3": "7.24.7",
21
- "@commercetools-uikit/data-table": "19.20.1",
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",
20
+ "@babel/runtime-corejs3": "7.26.10",
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": "23.0.0",
50
- "@commercetools-frontend/application-shell": "23.0.0",
51
- "@commercetools-frontend/application-shell-connectors": "23.0.0",
52
- "@commercetools-frontend/assets": "23.0.0",
53
- "@commercetools-frontend/constants": "23.0.0",
54
- "@commercetools-frontend/i18n": "23.0.0",
55
- "@commercetools-frontend/l10n": "23.0.0",
56
- "@commercetools-frontend/mc-scripts": "23.0.0",
57
- "@commercetools-frontend/permissions": "23.0.0",
58
- "@commercetools-frontend/sdk": "23.0.0",
59
- "@commercetools-frontend/sentry": "23.0.0",
60
- "@commercetools-frontend/ui-kit": "19.20.1",
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.12",
54
+ "@formatjs/cli": "6.4.2",
63
55
  "@preconstruct/cli": "2.8.3",
64
- "@testing-library/react": "12.1.5",
65
- "@testing-library/react-hooks": "8.0.1",
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": "17.0.80",
68
- "@types/react-dom": "17.0.25",
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": "1.2.0",
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": "17.0.2",
76
- "react-dom": "17.0.2",
77
- "react-intl": "6.6.8",
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": "16.x || 17.x || 18.x || 19.x",
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": ">=17.0.0",
99
- "react-dom": ">=17.0.0",
100
- "react-intl": "6.x",
101
- "react-redux": "7.x",
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
  }