@commercetools-frontend-extensions/change-history 8.20.2 → 8.20.4
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
CHANGED
|
@@ -49,4 +49,12 @@ Once the PR gets merged to `main` transifex will receive a notification with new
|
|
|
49
49
|
|
|
50
50
|
Whenever the translators finish translations and mark them as done, the repo will receive a PR (per language) for adding translated messages.
|
|
51
51
|
|
|
52
|
-
Once we review that translated keys are correct and add a `changeset` we can merge the PR. (Don't forget to deploy the custom app)
|
|
52
|
+
Once we review that translated keys are correct and add a `changeset` we can merge the PR. (Don't forget to deploy the custom app)
|
|
53
|
+
|
|
54
|
+
## Canary releases
|
|
55
|
+
|
|
56
|
+
On `main` branch, we automatically publish **canary** releases from CI to the `canary` distribution channel, _after_ the build runs successfully.
|
|
57
|
+
|
|
58
|
+
Canary releases are useful to test early changes that should not be released yet to `next` or `latest`. They are automatically triggered and released after a Pull Request merged into `main`, unless the commit message contains `[skip publish]`.
|
|
59
|
+
|
|
60
|
+
Note that canary releases **will not create git tags and version bump commits**.
|
|
@@ -154,7 +154,7 @@ var kebabCase__default = /*#__PURE__*/_interopDefault(kebabCase);
|
|
|
154
154
|
var LeadingIcon__default = /*#__PURE__*/_interopDefault(LeadingIcon);
|
|
155
155
|
|
|
156
156
|
// NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
|
|
157
|
-
var version = "8.20.
|
|
157
|
+
var version = "8.20.4";
|
|
158
158
|
|
|
159
159
|
var fetchFeatureStatusQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchFeatureStatusQuery" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "allFeatures" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "reason" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 84, source: { body: "query FetchFeatureStatusQuery {\n allFeatures {\n name\n value\n reason\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
160
160
|
/**
|
|
@@ -1762,6 +1762,7 @@ function getFractionedAmount(moneyValue) {
|
|
|
1762
1762
|
return amount / 10 ** fractionDigits;
|
|
1763
1763
|
}
|
|
1764
1764
|
function formatMoney(moneyValue, intl, options) {
|
|
1765
|
+
if (moneyValue === null) return;
|
|
1765
1766
|
return intl.formatNumber(getFractionedAmount(moneyValue), _objectSpread$1l({
|
|
1766
1767
|
style: 'currency',
|
|
1767
1768
|
currency: moneyValue.currencyCode,
|
|
@@ -16175,11 +16176,13 @@ function ChangeHistoryListConnector(props) {
|
|
|
16175
16176
|
offset: (props.searchQuery.page - 1) * props.searchQuery.perPage,
|
|
16176
16177
|
// By default, the FE wants expanded changes
|
|
16177
16178
|
expand: true
|
|
16178
|
-
}, changeHistoryFilters)
|
|
16179
|
+
}, changeHistoryFilters),
|
|
16180
|
+
errorPolicy: 'all'
|
|
16179
16181
|
}),
|
|
16180
16182
|
isChangeHistoryLoading = _useMcQuery2.loading,
|
|
16181
|
-
changeHistoryData = _useMcQuery2.data
|
|
16182
|
-
|
|
16183
|
+
changeHistoryData = _useMcQuery2.data;
|
|
16184
|
+
_useMcQuery2.error;
|
|
16185
|
+
const refetchChangeHistory = _useMcQuery2.refetch;
|
|
16183
16186
|
const storeKeysWhere = !isChangeHistoryLoading && changeHistoryData ? getStoresWhereFromChangeHistoryData(changeHistoryData) : null;
|
|
16184
16187
|
const _useMcQuery3 = applicationShell.useMcQuery(FetchStoresQuery, {
|
|
16185
16188
|
context: {
|
|
@@ -154,7 +154,7 @@ var kebabCase__default = /*#__PURE__*/_interopDefault(kebabCase);
|
|
|
154
154
|
var LeadingIcon__default = /*#__PURE__*/_interopDefault(LeadingIcon);
|
|
155
155
|
|
|
156
156
|
// NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
|
|
157
|
-
var version = "8.20.
|
|
157
|
+
var version = "8.20.4";
|
|
158
158
|
|
|
159
159
|
var fetchFeatureStatusQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchFeatureStatusQuery" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "allFeatures" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "reason" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 84, source: { body: "query FetchFeatureStatusQuery {\n allFeatures {\n name\n value\n reason\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
160
160
|
/**
|
|
@@ -1734,6 +1734,7 @@ function getFractionedAmount(moneyValue) {
|
|
|
1734
1734
|
return amount / 10 ** fractionDigits;
|
|
1735
1735
|
}
|
|
1736
1736
|
function formatMoney(moneyValue, intl, options) {
|
|
1737
|
+
if (moneyValue === null) return;
|
|
1737
1738
|
return intl.formatNumber(getFractionedAmount(moneyValue), _objectSpread$1l({
|
|
1738
1739
|
style: 'currency',
|
|
1739
1740
|
currency: moneyValue.currencyCode,
|
|
@@ -15332,11 +15333,13 @@ function ChangeHistoryListConnector(props) {
|
|
|
15332
15333
|
offset: (props.searchQuery.page - 1) * props.searchQuery.perPage,
|
|
15333
15334
|
// By default, the FE wants expanded changes
|
|
15334
15335
|
expand: true
|
|
15335
|
-
}, changeHistoryFilters)
|
|
15336
|
+
}, changeHistoryFilters),
|
|
15337
|
+
errorPolicy: 'all'
|
|
15336
15338
|
}),
|
|
15337
15339
|
isChangeHistoryLoading = _useMcQuery2.loading,
|
|
15338
|
-
changeHistoryData = _useMcQuery2.data
|
|
15339
|
-
|
|
15340
|
+
changeHistoryData = _useMcQuery2.data;
|
|
15341
|
+
_useMcQuery2.error;
|
|
15342
|
+
const refetchChangeHistory = _useMcQuery2.refetch;
|
|
15340
15343
|
const storeKeysWhere = !isChangeHistoryLoading && changeHistoryData ? getStoresWhereFromChangeHistoryData(changeHistoryData) : null;
|
|
15341
15344
|
const _useMcQuery3 = applicationShell.useMcQuery(FetchStoresQuery, {
|
|
15342
15345
|
context: {
|
|
@@ -92,7 +92,7 @@ import LeadingIcon from '@commercetools-uikit/icons/leading-icon';
|
|
|
92
92
|
import { parseChunkImport, mapLocaleToIntlLocale } from '@commercetools-frontend/i18n';
|
|
93
93
|
|
|
94
94
|
// NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
|
|
95
|
-
var version = "8.20.
|
|
95
|
+
var version = "8.20.4";
|
|
96
96
|
|
|
97
97
|
var fetchFeatureStatusQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchFeatureStatusQuery" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "allFeatures" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "reason" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 84, source: { body: "query FetchFeatureStatusQuery {\n allFeatures {\n name\n value\n reason\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
98
98
|
/**
|
|
@@ -1700,6 +1700,7 @@ function getFractionedAmount(moneyValue) {
|
|
|
1700
1700
|
return amount / 10 ** fractionDigits;
|
|
1701
1701
|
}
|
|
1702
1702
|
function formatMoney(moneyValue, intl, options) {
|
|
1703
|
+
if (moneyValue === null) return;
|
|
1703
1704
|
return intl.formatNumber(getFractionedAmount(moneyValue), _objectSpread$1l({
|
|
1704
1705
|
style: 'currency',
|
|
1705
1706
|
currency: moneyValue.currencyCode,
|
|
@@ -16113,11 +16114,13 @@ function ChangeHistoryListConnector(props) {
|
|
|
16113
16114
|
offset: (props.searchQuery.page - 1) * props.searchQuery.perPage,
|
|
16114
16115
|
// By default, the FE wants expanded changes
|
|
16115
16116
|
expand: true
|
|
16116
|
-
}, changeHistoryFilters)
|
|
16117
|
+
}, changeHistoryFilters),
|
|
16118
|
+
errorPolicy: 'all'
|
|
16117
16119
|
}),
|
|
16118
16120
|
isChangeHistoryLoading = _useMcQuery2.loading,
|
|
16119
|
-
changeHistoryData = _useMcQuery2.data
|
|
16120
|
-
|
|
16121
|
+
changeHistoryData = _useMcQuery2.data;
|
|
16122
|
+
_useMcQuery2.error;
|
|
16123
|
+
const refetchChangeHistory = _useMcQuery2.refetch;
|
|
16121
16124
|
const storeKeysWhere = !isChangeHistoryLoading && changeHistoryData ? getStoresWhereFromChangeHistoryData(changeHistoryData) : null;
|
|
16122
16125
|
const _useMcQuery3 = useMcQuery(FetchStoresQuery, {
|
|
16123
16126
|
context: {
|
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.20.
|
|
4
|
+
"version": "8.20.4",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"msw": "1.3.3",
|
|
70
70
|
"react": "17.0.2",
|
|
71
71
|
"react-dom": "17.0.2",
|
|
72
|
-
"react-intl": "6.6.
|
|
72
|
+
"react-intl": "6.6.4",
|
|
73
73
|
"react-redux": "7.2.9",
|
|
74
74
|
"react-router-dom": "5.3.4",
|
|
75
75
|
"react-test-renderer": "17.0.2",
|