@commercetools-frontend-extensions/unpublish-products-modal 1.4.1 → 1.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.
|
@@ -770,7 +770,7 @@ const Upload = () => {
|
|
|
770
770
|
var messages$2 = reactIntl.defineMessages({
|
|
771
771
|
validatingResources: {
|
|
772
772
|
id: 'UnpublishProductsModal.Uploading.validatingResources',
|
|
773
|
-
defaultMessage: '
|
|
773
|
+
defaultMessage: '{processed} validated resources'
|
|
774
774
|
}
|
|
775
775
|
});
|
|
776
776
|
|
|
@@ -783,9 +783,7 @@ const Uploading = () => {
|
|
|
783
783
|
if (!state.droppedFile?.name) return null;
|
|
784
784
|
const showValidationProgress = state.isValidating && state.totalResourceCount && (state.validationProcessed ?? 0) > 0;
|
|
785
785
|
const statusMessage = showValidationProgress ? intl.formatMessage(messages$2.validatingResources, {
|
|
786
|
-
processed: intl.formatNumber(state.validationProcessed ?? 0)
|
|
787
|
-
total: intl.formatNumber(state.totalResourceCount ?? 0),
|
|
788
|
-
resourceType: intl.formatMessage(sharedMessages.products)
|
|
786
|
+
processed: intl.formatNumber(state.validationProcessed ?? 0)
|
|
789
787
|
}) : undefined;
|
|
790
788
|
return jsxRuntime.jsx(operations.UploadingModal, {
|
|
791
789
|
isOpen: true,
|
|
@@ -770,7 +770,7 @@ const Upload = () => {
|
|
|
770
770
|
var messages$2 = reactIntl.defineMessages({
|
|
771
771
|
validatingResources: {
|
|
772
772
|
id: 'UnpublishProductsModal.Uploading.validatingResources',
|
|
773
|
-
defaultMessage: '
|
|
773
|
+
defaultMessage: '{processed} validated resources'
|
|
774
774
|
}
|
|
775
775
|
});
|
|
776
776
|
|
|
@@ -783,9 +783,7 @@ const Uploading = () => {
|
|
|
783
783
|
if (!state.droppedFile?.name) return null;
|
|
784
784
|
const showValidationProgress = state.isValidating && state.totalResourceCount && (state.validationProcessed ?? 0) > 0;
|
|
785
785
|
const statusMessage = showValidationProgress ? intl.formatMessage(messages$2.validatingResources, {
|
|
786
|
-
processed: intl.formatNumber(state.validationProcessed ?? 0)
|
|
787
|
-
total: intl.formatNumber(state.totalResourceCount ?? 0),
|
|
788
|
-
resourceType: intl.formatMessage(sharedMessages.products)
|
|
786
|
+
processed: intl.formatNumber(state.validationProcessed ?? 0)
|
|
789
787
|
}) : undefined;
|
|
790
788
|
return jsxRuntime.jsx(operations.UploadingModal, {
|
|
791
789
|
isOpen: true,
|
|
@@ -752,7 +752,7 @@ const Upload = () => {
|
|
|
752
752
|
var messages$2 = defineMessages({
|
|
753
753
|
validatingResources: {
|
|
754
754
|
id: 'UnpublishProductsModal.Uploading.validatingResources',
|
|
755
|
-
defaultMessage: '
|
|
755
|
+
defaultMessage: '{processed} validated resources'
|
|
756
756
|
}
|
|
757
757
|
});
|
|
758
758
|
|
|
@@ -765,9 +765,7 @@ const Uploading = () => {
|
|
|
765
765
|
if (!state.droppedFile?.name) return null;
|
|
766
766
|
const showValidationProgress = state.isValidating && state.totalResourceCount && (state.validationProcessed ?? 0) > 0;
|
|
767
767
|
const statusMessage = showValidationProgress ? intl.formatMessage(messages$2.validatingResources, {
|
|
768
|
-
processed: intl.formatNumber(state.validationProcessed ?? 0)
|
|
769
|
-
total: intl.formatNumber(state.totalResourceCount ?? 0),
|
|
770
|
-
resourceType: intl.formatMessage(sharedMessages.products)
|
|
768
|
+
processed: intl.formatNumber(state.validationProcessed ?? 0)
|
|
771
769
|
}) : undefined;
|
|
772
770
|
return jsx(UploadingModal, {
|
|
773
771
|
isOpen: true,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend-extensions/unpublish-products-modal",
|
|
3
3
|
"description": "Shared import modal for unpublishing products",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.5.0",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -31,20 +31,20 @@
|
|
|
31
31
|
"pluralize": "8.0.0",
|
|
32
32
|
"prop-types": "15.8.1",
|
|
33
33
|
"ramda": "^0.32.0",
|
|
34
|
-
"@commercetools-frontend-extensions/operations": "3.
|
|
34
|
+
"@commercetools-frontend-extensions/operations": "3.2.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@commercetools-frontend/actions-global": "24.
|
|
38
|
-
"@commercetools-frontend/application-components": "24.
|
|
39
|
-
"@commercetools-frontend/application-shell": "24.
|
|
40
|
-
"@commercetools-frontend/application-shell-connectors": "24.
|
|
41
|
-
"@commercetools-frontend/constants": "24.
|
|
37
|
+
"@commercetools-frontend/actions-global": "24.13.0",
|
|
38
|
+
"@commercetools-frontend/application-components": "24.13.0",
|
|
39
|
+
"@commercetools-frontend/application-shell": "24.13.0",
|
|
40
|
+
"@commercetools-frontend/application-shell-connectors": "24.13.0",
|
|
41
|
+
"@commercetools-frontend/constants": "24.13.0",
|
|
42
42
|
"@commercetools-frontend/fullstory": "4.0.3",
|
|
43
|
-
"@commercetools-frontend/i18n": "24.
|
|
44
|
-
"@commercetools-frontend/jest-preset-mc-app": "24.
|
|
45
|
-
"@commercetools-frontend/permissions": "24.
|
|
46
|
-
"@commercetools-frontend/sdk": "24.
|
|
47
|
-
"@commercetools-frontend/sentry": "24.
|
|
43
|
+
"@commercetools-frontend/i18n": "24.13.0",
|
|
44
|
+
"@commercetools-frontend/jest-preset-mc-app": "24.13.0",
|
|
45
|
+
"@commercetools-frontend/permissions": "24.13.0",
|
|
46
|
+
"@commercetools-frontend/sdk": "24.13.0",
|
|
47
|
+
"@commercetools-frontend/sentry": "24.13.0",
|
|
48
48
|
"@commercetools-frontend/ui-kit": "20.3.0",
|
|
49
49
|
"@commercetools-uikit/data-table": "20.3.0",
|
|
50
50
|
"@commercetools-uikit/design-system": "20.3.0",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@preconstruct/cli": "2.8.12",
|
|
54
54
|
"@types/jest": "29.5.14",
|
|
55
55
|
"@types/lodash.truncate": "^4.4.7",
|
|
56
|
-
"@types/papaparse": "5.5.
|
|
56
|
+
"@types/papaparse": "5.5.2",
|
|
57
57
|
"@types/pluralize": "0.0.33",
|
|
58
58
|
"@types/testing-library__jest-dom": "^5.14.5",
|
|
59
59
|
"msw": "1.3.5",
|