@commercetools-frontend-extensions/delete-resources-modal 1.3.2 → 1.4.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.
|
@@ -984,23 +984,20 @@ const Upload = () => {
|
|
|
984
984
|
var messages$2 = reactIntl.defineMessages({
|
|
985
985
|
validatingResources: {
|
|
986
986
|
id: 'DeleteResourcesModal.Uploading.validatingResources',
|
|
987
|
-
defaultMessage: '
|
|
987
|
+
defaultMessage: '{processed} validated resources'
|
|
988
988
|
}
|
|
989
989
|
});
|
|
990
990
|
|
|
991
991
|
const Uploading = () => {
|
|
992
992
|
const intl = reactIntl.useIntl();
|
|
993
993
|
const _useDeleteResourcesCo = useDeleteResourcesContext(),
|
|
994
|
-
resourceType = _useDeleteResourcesCo.resourceType,
|
|
995
994
|
state = _useDeleteResourcesCo.state,
|
|
996
995
|
actions = _useDeleteResourcesCo.actions,
|
|
997
996
|
onClose = _useDeleteResourcesCo.onClose;
|
|
998
997
|
if (!state.droppedFile?.name) return null;
|
|
999
998
|
const showValidationProgress = state.isValidating && state.totalResourceCount && (state.validationProcessed ?? 0) > 0;
|
|
1000
999
|
const statusMessage = showValidationProgress ? intl.formatMessage(messages$2.validatingResources, {
|
|
1001
|
-
processed: intl.formatNumber(state.validationProcessed ?? 0)
|
|
1002
|
-
total: intl.formatNumber(state.totalResourceCount ?? 0),
|
|
1003
|
-
resourceType: intl.formatMessage(resourceTypeToPluralMessage(resourceType))
|
|
1000
|
+
processed: intl.formatNumber(state.validationProcessed ?? 0)
|
|
1004
1001
|
}) : undefined;
|
|
1005
1002
|
return jsxRuntime.jsx(operations.UploadingModal, {
|
|
1006
1003
|
isOpen: true,
|
|
@@ -984,23 +984,20 @@ const Upload = () => {
|
|
|
984
984
|
var messages$2 = reactIntl.defineMessages({
|
|
985
985
|
validatingResources: {
|
|
986
986
|
id: 'DeleteResourcesModal.Uploading.validatingResources',
|
|
987
|
-
defaultMessage: '
|
|
987
|
+
defaultMessage: '{processed} validated resources'
|
|
988
988
|
}
|
|
989
989
|
});
|
|
990
990
|
|
|
991
991
|
const Uploading = () => {
|
|
992
992
|
const intl = reactIntl.useIntl();
|
|
993
993
|
const _useDeleteResourcesCo = useDeleteResourcesContext(),
|
|
994
|
-
resourceType = _useDeleteResourcesCo.resourceType,
|
|
995
994
|
state = _useDeleteResourcesCo.state,
|
|
996
995
|
actions = _useDeleteResourcesCo.actions,
|
|
997
996
|
onClose = _useDeleteResourcesCo.onClose;
|
|
998
997
|
if (!state.droppedFile?.name) return null;
|
|
999
998
|
const showValidationProgress = state.isValidating && state.totalResourceCount && (state.validationProcessed ?? 0) > 0;
|
|
1000
999
|
const statusMessage = showValidationProgress ? intl.formatMessage(messages$2.validatingResources, {
|
|
1001
|
-
processed: intl.formatNumber(state.validationProcessed ?? 0)
|
|
1002
|
-
total: intl.formatNumber(state.totalResourceCount ?? 0),
|
|
1003
|
-
resourceType: intl.formatMessage(resourceTypeToPluralMessage(resourceType))
|
|
1000
|
+
processed: intl.formatNumber(state.validationProcessed ?? 0)
|
|
1004
1001
|
}) : undefined;
|
|
1005
1002
|
return jsxRuntime.jsx(operations.UploadingModal, {
|
|
1006
1003
|
isOpen: true,
|
|
@@ -966,23 +966,20 @@ const Upload = () => {
|
|
|
966
966
|
var messages$2 = defineMessages({
|
|
967
967
|
validatingResources: {
|
|
968
968
|
id: 'DeleteResourcesModal.Uploading.validatingResources',
|
|
969
|
-
defaultMessage: '
|
|
969
|
+
defaultMessage: '{processed} validated resources'
|
|
970
970
|
}
|
|
971
971
|
});
|
|
972
972
|
|
|
973
973
|
const Uploading = () => {
|
|
974
974
|
const intl = useIntl();
|
|
975
975
|
const _useDeleteResourcesCo = useDeleteResourcesContext(),
|
|
976
|
-
resourceType = _useDeleteResourcesCo.resourceType,
|
|
977
976
|
state = _useDeleteResourcesCo.state,
|
|
978
977
|
actions = _useDeleteResourcesCo.actions,
|
|
979
978
|
onClose = _useDeleteResourcesCo.onClose;
|
|
980
979
|
if (!state.droppedFile?.name) return null;
|
|
981
980
|
const showValidationProgress = state.isValidating && state.totalResourceCount && (state.validationProcessed ?? 0) > 0;
|
|
982
981
|
const statusMessage = showValidationProgress ? intl.formatMessage(messages$2.validatingResources, {
|
|
983
|
-
processed: intl.formatNumber(state.validationProcessed ?? 0)
|
|
984
|
-
total: intl.formatNumber(state.totalResourceCount ?? 0),
|
|
985
|
-
resourceType: intl.formatMessage(resourceTypeToPluralMessage(resourceType))
|
|
982
|
+
processed: intl.formatNumber(state.validationProcessed ?? 0)
|
|
986
983
|
}) : undefined;
|
|
987
984
|
return jsx(UploadingModal, {
|
|
988
985
|
isOpen: true,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend-extensions/delete-resources-modal",
|
|
3
3
|
"description": "Shared import modal for deleting resources",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.4.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",
|