@commercetools-frontend-extensions/delete-resources-modal 1.3.2 → 1.4.1
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/dist/commercetools-frontend-extensions-delete-resources-modal.cjs.dev.js +8 -30
- package/dist/commercetools-frontend-extensions-delete-resources-modal.cjs.prod.js +8 -30
- package/dist/commercetools-frontend-extensions-delete-resources-modal.esm.js +9 -31
- package/dist/{de-9dc6c41a.cjs.prod.js → de-ba5e320c.cjs.dev.js} +3 -0
- package/dist/{de-daab94cc.cjs.dev.js → de-c050367a.cjs.prod.js} +3 -0
- package/dist/{de-e0280d32.esm.js → de-c6188287.esm.js} +3 -0
- package/dist/{en-c8721699.esm.js → en-01c39bc4.esm.js} +3 -0
- package/dist/{en-a983f180.cjs.prod.js → en-6ae3473e.cjs.prod.js} +3 -0
- package/dist/{en-4441d5e8.cjs.dev.js → en-ce72b543.cjs.dev.js} +3 -0
- package/dist/{es-2e0af6bc.cjs.dev.js → es-2adfdf5e.cjs.dev.js} +3 -0
- package/dist/{es-332b4647.esm.js → es-b1b93b7d.esm.js} +3 -0
- package/dist/{es-64fd0c08.cjs.prod.js → es-cafa5187.cjs.prod.js} +3 -0
- package/dist/{fr-FR-c9dc1e0d.cjs.dev.js → fr-FR-0604e720.cjs.prod.js} +3 -0
- package/dist/{fr-FR-f2953298.esm.js → fr-FR-b010f318.esm.js} +3 -0
- package/dist/{fr-FR-90c7194f.cjs.prod.js → fr-FR-d65ebbb8.cjs.dev.js} +3 -0
- package/dist/{pt-BR-5faf9bfa.cjs.dev.js → pt-BR-8dfe0fde.cjs.dev.js} +3 -0
- package/dist/{pt-BR-2da91387.cjs.prod.js → pt-BR-df2ac7c4.cjs.prod.js} +3 -0
- package/dist/{pt-BR-46eadd76.esm.js → pt-BR-fb30a5fc.esm.js} +3 -0
- package/package.json +16 -16
|
@@ -66,7 +66,6 @@ function reducer(state, action) {
|
|
|
66
66
|
dropAreaState: 'ready-for-drop',
|
|
67
67
|
progress: 0,
|
|
68
68
|
jobId: undefined,
|
|
69
|
-
totalResourceCount: undefined,
|
|
70
69
|
validationProcessed: undefined,
|
|
71
70
|
isValidating: false
|
|
72
71
|
});
|
|
@@ -77,7 +76,6 @@ function reducer(state, action) {
|
|
|
77
76
|
dropAreaState: 'ready-for-drop',
|
|
78
77
|
progress: 0,
|
|
79
78
|
jobId: undefined,
|
|
80
|
-
totalResourceCount: undefined,
|
|
81
79
|
validationProcessed: undefined,
|
|
82
80
|
isValidating: false
|
|
83
81
|
});
|
|
@@ -111,11 +109,6 @@ function reducer(state, action) {
|
|
|
111
109
|
jobId: action.jobId
|
|
112
110
|
});
|
|
113
111
|
}
|
|
114
|
-
if (action.type === 'setTotalResourceCount') {
|
|
115
|
-
return _objectSpread$7(_objectSpread$7({}, state), {}, {
|
|
116
|
-
totalResourceCount: action.totalResourceCount
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
112
|
if (action.type === 'setValidationProgress') {
|
|
120
113
|
return _objectSpread$7(_objectSpread$7({}, state), {}, {
|
|
121
114
|
validationProcessed: action.processed,
|
|
@@ -167,9 +160,6 @@ const initialActions = {
|
|
|
167
160
|
setJobId(_jobId) {
|
|
168
161
|
/**/
|
|
169
162
|
},
|
|
170
|
-
setTotalResourceCount(_totalResourceCount) {
|
|
171
|
-
/**/
|
|
172
|
-
},
|
|
173
163
|
setValidationProgress(_params) {
|
|
174
164
|
/**/
|
|
175
165
|
}
|
|
@@ -232,10 +222,6 @@ const DeleteResourcesProvider = props => {
|
|
|
232
222
|
type: 'setJobId',
|
|
233
223
|
jobId
|
|
234
224
|
});
|
|
235
|
-
const setTotalResourceCount = totalResourceCount => dispatch({
|
|
236
|
-
type: 'setTotalResourceCount',
|
|
237
|
-
totalResourceCount
|
|
238
|
-
});
|
|
239
225
|
const setValidationProgress = _ref => {
|
|
240
226
|
let processed = _ref.processed,
|
|
241
227
|
isValidating = _ref.isValidating;
|
|
@@ -256,7 +242,6 @@ const DeleteResourcesProvider = props => {
|
|
|
256
242
|
setAbortController,
|
|
257
243
|
setProgress,
|
|
258
244
|
setJobId,
|
|
259
|
-
setTotalResourceCount,
|
|
260
245
|
setValidationProgress
|
|
261
246
|
};
|
|
262
247
|
const handleClose = function () {
|
|
@@ -540,10 +525,6 @@ const useUpload = () => {
|
|
|
540
525
|
actions.setCurrentStep('upload-error');
|
|
541
526
|
return false;
|
|
542
527
|
}
|
|
543
|
-
if (isFileImportJobFlowEnabled) {
|
|
544
|
-
const resourceCount = await operations.countUniqueResourcesInCsv(file);
|
|
545
|
-
actions.setTotalResourceCount(resourceCount);
|
|
546
|
-
}
|
|
547
528
|
return true;
|
|
548
529
|
};
|
|
549
530
|
const handleUploadError = error => {
|
|
@@ -984,23 +965,20 @@ const Upload = () => {
|
|
|
984
965
|
var messages$2 = reactIntl.defineMessages({
|
|
985
966
|
validatingResources: {
|
|
986
967
|
id: 'DeleteResourcesModal.Uploading.validatingResources',
|
|
987
|
-
defaultMessage: '
|
|
968
|
+
defaultMessage: '{processed} validated resources'
|
|
988
969
|
}
|
|
989
970
|
});
|
|
990
971
|
|
|
991
972
|
const Uploading = () => {
|
|
992
973
|
const intl = reactIntl.useIntl();
|
|
993
974
|
const _useDeleteResourcesCo = useDeleteResourcesContext(),
|
|
994
|
-
resourceType = _useDeleteResourcesCo.resourceType,
|
|
995
975
|
state = _useDeleteResourcesCo.state,
|
|
996
976
|
actions = _useDeleteResourcesCo.actions,
|
|
997
977
|
onClose = _useDeleteResourcesCo.onClose;
|
|
998
978
|
if (!state.droppedFile?.name) return null;
|
|
999
|
-
const showValidationProgress = state.isValidating &&
|
|
979
|
+
const showValidationProgress = state.isValidating && (state.validationProcessed ?? 0) > 0;
|
|
1000
980
|
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))
|
|
981
|
+
processed: intl.formatNumber(state.validationProcessed ?? 0)
|
|
1004
982
|
}) : undefined;
|
|
1005
983
|
return jsxRuntime.jsx(operations.UploadingModal, {
|
|
1006
984
|
isOpen: true,
|
|
@@ -1445,17 +1423,17 @@ const getChunkImport = locale => {
|
|
|
1445
1423
|
const intlLocale = i18n.mapLocaleToIntlLocale(locale);
|
|
1446
1424
|
switch (intlLocale) {
|
|
1447
1425
|
case 'de':
|
|
1448
|
-
return Promise.resolve().then(function () { return require('./de-
|
|
1426
|
+
return Promise.resolve().then(function () { return require('./de-ba5e320c.cjs.dev.js'); });
|
|
1449
1427
|
case 'es':
|
|
1450
|
-
return Promise.resolve().then(function () { return require('./es-
|
|
1428
|
+
return Promise.resolve().then(function () { return require('./es-2adfdf5e.cjs.dev.js'); });
|
|
1451
1429
|
case 'fr-FR':
|
|
1452
|
-
return Promise.resolve().then(function () { return require('./fr-FR-
|
|
1430
|
+
return Promise.resolve().then(function () { return require('./fr-FR-d65ebbb8.cjs.dev.js'); });
|
|
1453
1431
|
case 'ja':
|
|
1454
1432
|
return Promise.resolve().then(function () { return require('./ja-9bd5f452.cjs.dev.js'); });
|
|
1455
1433
|
case 'pt-BR':
|
|
1456
|
-
return Promise.resolve().then(function () { return require('./pt-BR-
|
|
1434
|
+
return Promise.resolve().then(function () { return require('./pt-BR-8dfe0fde.cjs.dev.js'); });
|
|
1457
1435
|
default:
|
|
1458
|
-
return Promise.resolve().then(function () { return require('./en-
|
|
1436
|
+
return Promise.resolve().then(function () { return require('./en-ce72b543.cjs.dev.js'); });
|
|
1459
1437
|
}
|
|
1460
1438
|
};
|
|
1461
1439
|
const loadMessages = async locale => {
|
|
@@ -66,7 +66,6 @@ function reducer(state, action) {
|
|
|
66
66
|
dropAreaState: 'ready-for-drop',
|
|
67
67
|
progress: 0,
|
|
68
68
|
jobId: undefined,
|
|
69
|
-
totalResourceCount: undefined,
|
|
70
69
|
validationProcessed: undefined,
|
|
71
70
|
isValidating: false
|
|
72
71
|
});
|
|
@@ -77,7 +76,6 @@ function reducer(state, action) {
|
|
|
77
76
|
dropAreaState: 'ready-for-drop',
|
|
78
77
|
progress: 0,
|
|
79
78
|
jobId: undefined,
|
|
80
|
-
totalResourceCount: undefined,
|
|
81
79
|
validationProcessed: undefined,
|
|
82
80
|
isValidating: false
|
|
83
81
|
});
|
|
@@ -111,11 +109,6 @@ function reducer(state, action) {
|
|
|
111
109
|
jobId: action.jobId
|
|
112
110
|
});
|
|
113
111
|
}
|
|
114
|
-
if (action.type === 'setTotalResourceCount') {
|
|
115
|
-
return _objectSpread$7(_objectSpread$7({}, state), {}, {
|
|
116
|
-
totalResourceCount: action.totalResourceCount
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
112
|
if (action.type === 'setValidationProgress') {
|
|
120
113
|
return _objectSpread$7(_objectSpread$7({}, state), {}, {
|
|
121
114
|
validationProcessed: action.processed,
|
|
@@ -167,9 +160,6 @@ const initialActions = {
|
|
|
167
160
|
setJobId(_jobId) {
|
|
168
161
|
/**/
|
|
169
162
|
},
|
|
170
|
-
setTotalResourceCount(_totalResourceCount) {
|
|
171
|
-
/**/
|
|
172
|
-
},
|
|
173
163
|
setValidationProgress(_params) {
|
|
174
164
|
/**/
|
|
175
165
|
}
|
|
@@ -232,10 +222,6 @@ const DeleteResourcesProvider = props => {
|
|
|
232
222
|
type: 'setJobId',
|
|
233
223
|
jobId
|
|
234
224
|
});
|
|
235
|
-
const setTotalResourceCount = totalResourceCount => dispatch({
|
|
236
|
-
type: 'setTotalResourceCount',
|
|
237
|
-
totalResourceCount
|
|
238
|
-
});
|
|
239
225
|
const setValidationProgress = _ref => {
|
|
240
226
|
let processed = _ref.processed,
|
|
241
227
|
isValidating = _ref.isValidating;
|
|
@@ -256,7 +242,6 @@ const DeleteResourcesProvider = props => {
|
|
|
256
242
|
setAbortController,
|
|
257
243
|
setProgress,
|
|
258
244
|
setJobId,
|
|
259
|
-
setTotalResourceCount,
|
|
260
245
|
setValidationProgress
|
|
261
246
|
};
|
|
262
247
|
const handleClose = function () {
|
|
@@ -540,10 +525,6 @@ const useUpload = () => {
|
|
|
540
525
|
actions.setCurrentStep('upload-error');
|
|
541
526
|
return false;
|
|
542
527
|
}
|
|
543
|
-
if (isFileImportJobFlowEnabled) {
|
|
544
|
-
const resourceCount = await operations.countUniqueResourcesInCsv(file);
|
|
545
|
-
actions.setTotalResourceCount(resourceCount);
|
|
546
|
-
}
|
|
547
528
|
return true;
|
|
548
529
|
};
|
|
549
530
|
const handleUploadError = error => {
|
|
@@ -984,23 +965,20 @@ const Upload = () => {
|
|
|
984
965
|
var messages$2 = reactIntl.defineMessages({
|
|
985
966
|
validatingResources: {
|
|
986
967
|
id: 'DeleteResourcesModal.Uploading.validatingResources',
|
|
987
|
-
defaultMessage: '
|
|
968
|
+
defaultMessage: '{processed} validated resources'
|
|
988
969
|
}
|
|
989
970
|
});
|
|
990
971
|
|
|
991
972
|
const Uploading = () => {
|
|
992
973
|
const intl = reactIntl.useIntl();
|
|
993
974
|
const _useDeleteResourcesCo = useDeleteResourcesContext(),
|
|
994
|
-
resourceType = _useDeleteResourcesCo.resourceType,
|
|
995
975
|
state = _useDeleteResourcesCo.state,
|
|
996
976
|
actions = _useDeleteResourcesCo.actions,
|
|
997
977
|
onClose = _useDeleteResourcesCo.onClose;
|
|
998
978
|
if (!state.droppedFile?.name) return null;
|
|
999
|
-
const showValidationProgress = state.isValidating &&
|
|
979
|
+
const showValidationProgress = state.isValidating && (state.validationProcessed ?? 0) > 0;
|
|
1000
980
|
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))
|
|
981
|
+
processed: intl.formatNumber(state.validationProcessed ?? 0)
|
|
1004
982
|
}) : undefined;
|
|
1005
983
|
return jsxRuntime.jsx(operations.UploadingModal, {
|
|
1006
984
|
isOpen: true,
|
|
@@ -1436,17 +1414,17 @@ const getChunkImport = locale => {
|
|
|
1436
1414
|
const intlLocale = i18n.mapLocaleToIntlLocale(locale);
|
|
1437
1415
|
switch (intlLocale) {
|
|
1438
1416
|
case 'de':
|
|
1439
|
-
return Promise.resolve().then(function () { return require('./de-
|
|
1417
|
+
return Promise.resolve().then(function () { return require('./de-c050367a.cjs.prod.js'); });
|
|
1440
1418
|
case 'es':
|
|
1441
|
-
return Promise.resolve().then(function () { return require('./es-
|
|
1419
|
+
return Promise.resolve().then(function () { return require('./es-cafa5187.cjs.prod.js'); });
|
|
1442
1420
|
case 'fr-FR':
|
|
1443
|
-
return Promise.resolve().then(function () { return require('./fr-FR-
|
|
1421
|
+
return Promise.resolve().then(function () { return require('./fr-FR-0604e720.cjs.prod.js'); });
|
|
1444
1422
|
case 'ja':
|
|
1445
1423
|
return Promise.resolve().then(function () { return require('./ja-37632763.cjs.prod.js'); });
|
|
1446
1424
|
case 'pt-BR':
|
|
1447
|
-
return Promise.resolve().then(function () { return require('./pt-BR-
|
|
1425
|
+
return Promise.resolve().then(function () { return require('./pt-BR-df2ac7c4.cjs.prod.js'); });
|
|
1448
1426
|
default:
|
|
1449
|
-
return Promise.resolve().then(function () { return require('./en-
|
|
1427
|
+
return Promise.resolve().then(function () { return require('./en-6ae3473e.cjs.prod.js'); });
|
|
1450
1428
|
}
|
|
1451
1429
|
};
|
|
1452
1430
|
const loadMessages = async locale => {
|
|
@@ -11,7 +11,7 @@ import { defineMessages, useIntl, FormattedMessage, IntlProvider } from 'react-i
|
|
|
11
11
|
import { useApplicationContext } from '@commercetools-frontend/application-shell-connectors';
|
|
12
12
|
import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
|
|
13
13
|
import React, { useContext, useState, useEffect } from 'react';
|
|
14
|
-
import { deleteImportContainer, EnabledDropArea, FileDroppedArea, ActiveDragDropArea, useFileUpload, getRowCount, toBytes, hasSingleKeyColumn,
|
|
14
|
+
import { deleteImportContainer, EnabledDropArea, FileDroppedArea, ActiveDragDropArea, useFileUpload, getRowCount, toBytes, hasSingleKeyColumn, isAbortError, HttpError, IMPORT_MAX_FILE_SIZE_MB, IMPORT_LEGACY_MAX_FILE_SIZE_MB, IMPORT_MAX_ITEM_COUNT, IMPORT_LEGACY_MAX_ROW_COUNT, FileDropArea as FileDropArea$1, UploadingModal, mapFileUploadErrorsToUploadFileErrorRows, processFileImportJob, processUploadedFile } from '@commercetools-frontend-extensions/operations';
|
|
15
15
|
import { jsx, jsxs } from '@emotion/react/jsx-runtime';
|
|
16
16
|
import { FormDialog, InfoDialog } from '@commercetools-frontend/application-components';
|
|
17
17
|
import { Masking } from '@commercetools-frontend/fullstory';
|
|
@@ -48,7 +48,6 @@ function reducer(state, action) {
|
|
|
48
48
|
dropAreaState: 'ready-for-drop',
|
|
49
49
|
progress: 0,
|
|
50
50
|
jobId: undefined,
|
|
51
|
-
totalResourceCount: undefined,
|
|
52
51
|
validationProcessed: undefined,
|
|
53
52
|
isValidating: false
|
|
54
53
|
});
|
|
@@ -59,7 +58,6 @@ function reducer(state, action) {
|
|
|
59
58
|
dropAreaState: 'ready-for-drop',
|
|
60
59
|
progress: 0,
|
|
61
60
|
jobId: undefined,
|
|
62
|
-
totalResourceCount: undefined,
|
|
63
61
|
validationProcessed: undefined,
|
|
64
62
|
isValidating: false
|
|
65
63
|
});
|
|
@@ -93,11 +91,6 @@ function reducer(state, action) {
|
|
|
93
91
|
jobId: action.jobId
|
|
94
92
|
});
|
|
95
93
|
}
|
|
96
|
-
if (action.type === 'setTotalResourceCount') {
|
|
97
|
-
return _objectSpread$7(_objectSpread$7({}, state), {}, {
|
|
98
|
-
totalResourceCount: action.totalResourceCount
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
94
|
if (action.type === 'setValidationProgress') {
|
|
102
95
|
return _objectSpread$7(_objectSpread$7({}, state), {}, {
|
|
103
96
|
validationProcessed: action.processed,
|
|
@@ -149,9 +142,6 @@ const initialActions = {
|
|
|
149
142
|
setJobId(_jobId) {
|
|
150
143
|
/**/
|
|
151
144
|
},
|
|
152
|
-
setTotalResourceCount(_totalResourceCount) {
|
|
153
|
-
/**/
|
|
154
|
-
},
|
|
155
145
|
setValidationProgress(_params) {
|
|
156
146
|
/**/
|
|
157
147
|
}
|
|
@@ -214,10 +204,6 @@ const DeleteResourcesProvider = props => {
|
|
|
214
204
|
type: 'setJobId',
|
|
215
205
|
jobId
|
|
216
206
|
});
|
|
217
|
-
const setTotalResourceCount = totalResourceCount => dispatch({
|
|
218
|
-
type: 'setTotalResourceCount',
|
|
219
|
-
totalResourceCount
|
|
220
|
-
});
|
|
221
207
|
const setValidationProgress = _ref => {
|
|
222
208
|
let processed = _ref.processed,
|
|
223
209
|
isValidating = _ref.isValidating;
|
|
@@ -238,7 +224,6 @@ const DeleteResourcesProvider = props => {
|
|
|
238
224
|
setAbortController,
|
|
239
225
|
setProgress,
|
|
240
226
|
setJobId,
|
|
241
|
-
setTotalResourceCount,
|
|
242
227
|
setValidationProgress
|
|
243
228
|
};
|
|
244
229
|
const handleClose = function () {
|
|
@@ -522,10 +507,6 @@ const useUpload = () => {
|
|
|
522
507
|
actions.setCurrentStep('upload-error');
|
|
523
508
|
return false;
|
|
524
509
|
}
|
|
525
|
-
if (isFileImportJobFlowEnabled) {
|
|
526
|
-
const resourceCount = await countUniqueResourcesInCsv(file);
|
|
527
|
-
actions.setTotalResourceCount(resourceCount);
|
|
528
|
-
}
|
|
529
510
|
return true;
|
|
530
511
|
};
|
|
531
512
|
const handleUploadError = error => {
|
|
@@ -966,23 +947,20 @@ const Upload = () => {
|
|
|
966
947
|
var messages$2 = defineMessages({
|
|
967
948
|
validatingResources: {
|
|
968
949
|
id: 'DeleteResourcesModal.Uploading.validatingResources',
|
|
969
|
-
defaultMessage: '
|
|
950
|
+
defaultMessage: '{processed} validated resources'
|
|
970
951
|
}
|
|
971
952
|
});
|
|
972
953
|
|
|
973
954
|
const Uploading = () => {
|
|
974
955
|
const intl = useIntl();
|
|
975
956
|
const _useDeleteResourcesCo = useDeleteResourcesContext(),
|
|
976
|
-
resourceType = _useDeleteResourcesCo.resourceType,
|
|
977
957
|
state = _useDeleteResourcesCo.state,
|
|
978
958
|
actions = _useDeleteResourcesCo.actions,
|
|
979
959
|
onClose = _useDeleteResourcesCo.onClose;
|
|
980
960
|
if (!state.droppedFile?.name) return null;
|
|
981
|
-
const showValidationProgress = state.isValidating &&
|
|
961
|
+
const showValidationProgress = state.isValidating && (state.validationProcessed ?? 0) > 0;
|
|
982
962
|
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))
|
|
963
|
+
processed: intl.formatNumber(state.validationProcessed ?? 0)
|
|
986
964
|
}) : undefined;
|
|
987
965
|
return jsx(UploadingModal, {
|
|
988
966
|
isOpen: true,
|
|
@@ -1427,17 +1405,17 @@ const getChunkImport = locale => {
|
|
|
1427
1405
|
const intlLocale = mapLocaleToIntlLocale(locale);
|
|
1428
1406
|
switch (intlLocale) {
|
|
1429
1407
|
case 'de':
|
|
1430
|
-
return import('./de-
|
|
1408
|
+
return import('./de-c6188287.esm.js');
|
|
1431
1409
|
case 'es':
|
|
1432
|
-
return import('./es-
|
|
1410
|
+
return import('./es-b1b93b7d.esm.js');
|
|
1433
1411
|
case 'fr-FR':
|
|
1434
|
-
return import('./fr-FR-
|
|
1412
|
+
return import('./fr-FR-b010f318.esm.js');
|
|
1435
1413
|
case 'ja':
|
|
1436
1414
|
return import('./ja-73c088a7.esm.js');
|
|
1437
1415
|
case 'pt-BR':
|
|
1438
|
-
return import('./pt-BR-
|
|
1416
|
+
return import('./pt-BR-fb30a5fc.esm.js');
|
|
1439
1417
|
default:
|
|
1440
|
-
return import('./en-
|
|
1418
|
+
return import('./en-01c39bc4.esm.js');
|
|
1441
1419
|
}
|
|
1442
1420
|
};
|
|
1443
1421
|
const loadMessages = async locale => {
|
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.1",
|
|
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.1
|
|
34
|
+
"@commercetools-frontend-extensions/operations": "3.2.1"
|
|
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",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"msw": "1.3.5",
|
|
60
60
|
"react": "19.2.0",
|
|
61
61
|
"react-intl": "7.1.4",
|
|
62
|
-
"react-redux": "
|
|
63
|
-
"redux": "
|
|
62
|
+
"react-redux": "9.2.0",
|
|
63
|
+
"redux": "5.0.1",
|
|
64
64
|
"rimraf": "6.1.2"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
@@ -80,8 +80,8 @@
|
|
|
80
80
|
"@commercetools-uikit/icons": "19.x || 20.x",
|
|
81
81
|
"react": "17.x || 19.x",
|
|
82
82
|
"react-intl": "6.x || 7.x",
|
|
83
|
-
"react-redux": "7.x",
|
|
84
|
-
"redux": "4.x"
|
|
83
|
+
"react-redux": "7.x || 9.x",
|
|
84
|
+
"redux": "4.x || 5.x"
|
|
85
85
|
},
|
|
86
86
|
"scripts": {
|
|
87
87
|
"build": "rimraf dist && preconstruct build",
|