@commercetools-frontend-extensions/unpublish-products-modal 1.5.0 → 1.5.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-unpublish-products-modal.cjs.dev.js +6 -25
- package/dist/commercetools-frontend-extensions-unpublish-products-modal.cjs.prod.js +6 -25
- package/dist/commercetools-frontend-extensions-unpublish-products-modal.esm.js +7 -26
- package/dist/{de-985804ff.esm.js → de-6ea29ca8.esm.js} +7 -0
- package/dist/{de-003f2859.cjs.prod.js → de-c365cb4e.cjs.prod.js} +7 -0
- package/dist/{de-d3d76e3c.cjs.dev.js → de-ebe20d56.cjs.dev.js} +7 -0
- package/dist/{en-da1bb187.cjs.prod.js → en-52d091c0.cjs.prod.js} +7 -0
- package/dist/{en-5727e1f9.esm.js → en-b237584f.esm.js} +7 -0
- package/dist/{en-b170969b.cjs.dev.js → en-bf4b7d42.cjs.dev.js} +7 -0
- package/dist/{es-040a89ab.cjs.prod.js → es-1779b95d.cjs.prod.js} +7 -0
- package/dist/{es-ddb13dad.esm.js → es-e53cb624.esm.js} +7 -0
- package/dist/{es-4955e68e.cjs.dev.js → es-f513ea84.cjs.dev.js} +7 -0
- package/dist/{fr-FR-ef84bd8b.esm.js → fr-FR-45a11ea9.esm.js} +7 -0
- package/dist/{fr-FR-01187000.cjs.dev.js → fr-FR-88dfebd6.cjs.dev.js} +7 -0
- package/dist/{fr-FR-9ed02ab8.cjs.prod.js → fr-FR-b4edf27f.cjs.prod.js} +7 -0
- package/dist/{pt-BR-872a8cea.cjs.dev.js → pt-BR-0eb9b3b7.cjs.prod.js} +7 -0
- package/dist/{pt-BR-f693f646.esm.js → pt-BR-1d6b10ab.esm.js} +7 -0
- package/dist/{pt-BR-46c4eaae.cjs.prod.js → pt-BR-86a1b17e.cjs.dev.js} +7 -0
- package/package.json +6 -6
|
@@ -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
|
}
|
|
@@ -231,10 +221,6 @@ const UnpublishProductsProvider = props => {
|
|
|
231
221
|
type: 'setJobId',
|
|
232
222
|
jobId
|
|
233
223
|
});
|
|
234
|
-
const setTotalResourceCount = totalResourceCount => dispatch({
|
|
235
|
-
type: 'setTotalResourceCount',
|
|
236
|
-
totalResourceCount
|
|
237
|
-
});
|
|
238
224
|
const setValidationProgress = _ref => {
|
|
239
225
|
let processed = _ref.processed,
|
|
240
226
|
isValidating = _ref.isValidating;
|
|
@@ -255,7 +241,6 @@ const UnpublishProductsProvider = props => {
|
|
|
255
241
|
setAbortController,
|
|
256
242
|
setProgress,
|
|
257
243
|
setJobId,
|
|
258
|
-
setTotalResourceCount,
|
|
259
244
|
setValidationProgress
|
|
260
245
|
};
|
|
261
246
|
const handleClose = function () {
|
|
@@ -519,10 +504,6 @@ const useUpload = () => {
|
|
|
519
504
|
actions.setCurrentStep('upload-error');
|
|
520
505
|
return false;
|
|
521
506
|
}
|
|
522
|
-
if (isFileImportJobFlowEnabled) {
|
|
523
|
-
const resourceCount = await operations.countUniqueResourcesInCsv(file);
|
|
524
|
-
actions.setTotalResourceCount(resourceCount);
|
|
525
|
-
}
|
|
526
507
|
return true;
|
|
527
508
|
};
|
|
528
509
|
const handleUploadError = error => {
|
|
@@ -781,7 +762,7 @@ const Uploading = () => {
|
|
|
781
762
|
actions = _useUnpublishProducts.actions,
|
|
782
763
|
onClose = _useUnpublishProducts.onClose;
|
|
783
764
|
if (!state.droppedFile?.name) return null;
|
|
784
|
-
const showValidationProgress = state.isValidating &&
|
|
765
|
+
const showValidationProgress = state.isValidating && (state.validationProcessed ?? 0) > 0;
|
|
785
766
|
const statusMessage = showValidationProgress ? intl.formatMessage(messages$2.validatingResources, {
|
|
786
767
|
processed: intl.formatNumber(state.validationProcessed ?? 0)
|
|
787
768
|
}) : undefined;
|
|
@@ -1193,17 +1174,17 @@ const getChunkImport = locale => {
|
|
|
1193
1174
|
const intlLocale = i18n.mapLocaleToIntlLocale(locale);
|
|
1194
1175
|
switch (intlLocale) {
|
|
1195
1176
|
case 'de':
|
|
1196
|
-
return Promise.resolve().then(function () { return require('./de-
|
|
1177
|
+
return Promise.resolve().then(function () { return require('./de-ebe20d56.cjs.dev.js'); });
|
|
1197
1178
|
case 'es':
|
|
1198
|
-
return Promise.resolve().then(function () { return require('./es-
|
|
1179
|
+
return Promise.resolve().then(function () { return require('./es-f513ea84.cjs.dev.js'); });
|
|
1199
1180
|
case 'fr-FR':
|
|
1200
|
-
return Promise.resolve().then(function () { return require('./fr-FR-
|
|
1181
|
+
return Promise.resolve().then(function () { return require('./fr-FR-88dfebd6.cjs.dev.js'); });
|
|
1201
1182
|
case 'ja':
|
|
1202
1183
|
return Promise.resolve().then(function () { return require('./ja-9bd5f452.cjs.dev.js'); });
|
|
1203
1184
|
case 'pt-BR':
|
|
1204
|
-
return Promise.resolve().then(function () { return require('./pt-BR-
|
|
1185
|
+
return Promise.resolve().then(function () { return require('./pt-BR-86a1b17e.cjs.dev.js'); });
|
|
1205
1186
|
default:
|
|
1206
|
-
return Promise.resolve().then(function () { return require('./en-
|
|
1187
|
+
return Promise.resolve().then(function () { return require('./en-bf4b7d42.cjs.dev.js'); });
|
|
1207
1188
|
}
|
|
1208
1189
|
};
|
|
1209
1190
|
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
|
}
|
|
@@ -231,10 +221,6 @@ const UnpublishProductsProvider = props => {
|
|
|
231
221
|
type: 'setJobId',
|
|
232
222
|
jobId
|
|
233
223
|
});
|
|
234
|
-
const setTotalResourceCount = totalResourceCount => dispatch({
|
|
235
|
-
type: 'setTotalResourceCount',
|
|
236
|
-
totalResourceCount
|
|
237
|
-
});
|
|
238
224
|
const setValidationProgress = _ref => {
|
|
239
225
|
let processed = _ref.processed,
|
|
240
226
|
isValidating = _ref.isValidating;
|
|
@@ -255,7 +241,6 @@ const UnpublishProductsProvider = props => {
|
|
|
255
241
|
setAbortController,
|
|
256
242
|
setProgress,
|
|
257
243
|
setJobId,
|
|
258
|
-
setTotalResourceCount,
|
|
259
244
|
setValidationProgress
|
|
260
245
|
};
|
|
261
246
|
const handleClose = function () {
|
|
@@ -519,10 +504,6 @@ const useUpload = () => {
|
|
|
519
504
|
actions.setCurrentStep('upload-error');
|
|
520
505
|
return false;
|
|
521
506
|
}
|
|
522
|
-
if (isFileImportJobFlowEnabled) {
|
|
523
|
-
const resourceCount = await operations.countUniqueResourcesInCsv(file);
|
|
524
|
-
actions.setTotalResourceCount(resourceCount);
|
|
525
|
-
}
|
|
526
507
|
return true;
|
|
527
508
|
};
|
|
528
509
|
const handleUploadError = error => {
|
|
@@ -781,7 +762,7 @@ const Uploading = () => {
|
|
|
781
762
|
actions = _useUnpublishProducts.actions,
|
|
782
763
|
onClose = _useUnpublishProducts.onClose;
|
|
783
764
|
if (!state.droppedFile?.name) return null;
|
|
784
|
-
const showValidationProgress = state.isValidating &&
|
|
765
|
+
const showValidationProgress = state.isValidating && (state.validationProcessed ?? 0) > 0;
|
|
785
766
|
const statusMessage = showValidationProgress ? intl.formatMessage(messages$2.validatingResources, {
|
|
786
767
|
processed: intl.formatNumber(state.validationProcessed ?? 0)
|
|
787
768
|
}) : undefined;
|
|
@@ -1184,17 +1165,17 @@ const getChunkImport = locale => {
|
|
|
1184
1165
|
const intlLocale = i18n.mapLocaleToIntlLocale(locale);
|
|
1185
1166
|
switch (intlLocale) {
|
|
1186
1167
|
case 'de':
|
|
1187
|
-
return Promise.resolve().then(function () { return require('./de-
|
|
1168
|
+
return Promise.resolve().then(function () { return require('./de-c365cb4e.cjs.prod.js'); });
|
|
1188
1169
|
case 'es':
|
|
1189
|
-
return Promise.resolve().then(function () { return require('./es-
|
|
1170
|
+
return Promise.resolve().then(function () { return require('./es-1779b95d.cjs.prod.js'); });
|
|
1190
1171
|
case 'fr-FR':
|
|
1191
|
-
return Promise.resolve().then(function () { return require('./fr-FR-
|
|
1172
|
+
return Promise.resolve().then(function () { return require('./fr-FR-b4edf27f.cjs.prod.js'); });
|
|
1192
1173
|
case 'ja':
|
|
1193
1174
|
return Promise.resolve().then(function () { return require('./ja-37632763.cjs.prod.js'); });
|
|
1194
1175
|
case 'pt-BR':
|
|
1195
|
-
return Promise.resolve().then(function () { return require('./pt-BR-
|
|
1176
|
+
return Promise.resolve().then(function () { return require('./pt-BR-0eb9b3b7.cjs.prod.js'); });
|
|
1196
1177
|
default:
|
|
1197
|
-
return Promise.resolve().then(function () { return require('./en-
|
|
1178
|
+
return Promise.resolve().then(function () { return require('./en-52d091c0.cjs.prod.js'); });
|
|
1198
1179
|
}
|
|
1199
1180
|
};
|
|
1200
1181
|
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, ConfirmationDialog } 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
|
}
|
|
@@ -213,10 +203,6 @@ const UnpublishProductsProvider = props => {
|
|
|
213
203
|
type: 'setJobId',
|
|
214
204
|
jobId
|
|
215
205
|
});
|
|
216
|
-
const setTotalResourceCount = totalResourceCount => dispatch({
|
|
217
|
-
type: 'setTotalResourceCount',
|
|
218
|
-
totalResourceCount
|
|
219
|
-
});
|
|
220
206
|
const setValidationProgress = _ref => {
|
|
221
207
|
let processed = _ref.processed,
|
|
222
208
|
isValidating = _ref.isValidating;
|
|
@@ -237,7 +223,6 @@ const UnpublishProductsProvider = props => {
|
|
|
237
223
|
setAbortController,
|
|
238
224
|
setProgress,
|
|
239
225
|
setJobId,
|
|
240
|
-
setTotalResourceCount,
|
|
241
226
|
setValidationProgress
|
|
242
227
|
};
|
|
243
228
|
const handleClose = function () {
|
|
@@ -501,10 +486,6 @@ const useUpload = () => {
|
|
|
501
486
|
actions.setCurrentStep('upload-error');
|
|
502
487
|
return false;
|
|
503
488
|
}
|
|
504
|
-
if (isFileImportJobFlowEnabled) {
|
|
505
|
-
const resourceCount = await countUniqueResourcesInCsv(file);
|
|
506
|
-
actions.setTotalResourceCount(resourceCount);
|
|
507
|
-
}
|
|
508
489
|
return true;
|
|
509
490
|
};
|
|
510
491
|
const handleUploadError = error => {
|
|
@@ -763,7 +744,7 @@ const Uploading = () => {
|
|
|
763
744
|
actions = _useUnpublishProducts.actions,
|
|
764
745
|
onClose = _useUnpublishProducts.onClose;
|
|
765
746
|
if (!state.droppedFile?.name) return null;
|
|
766
|
-
const showValidationProgress = state.isValidating &&
|
|
747
|
+
const showValidationProgress = state.isValidating && (state.validationProcessed ?? 0) > 0;
|
|
767
748
|
const statusMessage = showValidationProgress ? intl.formatMessage(messages$2.validatingResources, {
|
|
768
749
|
processed: intl.formatNumber(state.validationProcessed ?? 0)
|
|
769
750
|
}) : undefined;
|
|
@@ -1175,17 +1156,17 @@ const getChunkImport = locale => {
|
|
|
1175
1156
|
const intlLocale = mapLocaleToIntlLocale(locale);
|
|
1176
1157
|
switch (intlLocale) {
|
|
1177
1158
|
case 'de':
|
|
1178
|
-
return import('./de-
|
|
1159
|
+
return import('./de-6ea29ca8.esm.js');
|
|
1179
1160
|
case 'es':
|
|
1180
|
-
return import('./es-
|
|
1161
|
+
return import('./es-e53cb624.esm.js');
|
|
1181
1162
|
case 'fr-FR':
|
|
1182
|
-
return import('./fr-FR-
|
|
1163
|
+
return import('./fr-FR-45a11ea9.esm.js');
|
|
1183
1164
|
case 'ja':
|
|
1184
1165
|
return import('./ja-73c088a7.esm.js');
|
|
1185
1166
|
case 'pt-BR':
|
|
1186
|
-
return import('./pt-BR-
|
|
1167
|
+
return import('./pt-BR-1d6b10ab.esm.js');
|
|
1187
1168
|
default:
|
|
1188
|
-
return import('./en-
|
|
1169
|
+
return import('./en-b237584f.esm.js');
|
|
1189
1170
|
}
|
|
1190
1171
|
};
|
|
1191
1172
|
const loadMessages = async locale => {
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
var de = {
|
|
2
|
+
"UnpublishProductsModal.Uploading.validatingResources": {
|
|
3
|
+
string: "{processed} validated resources"
|
|
4
|
+
},
|
|
2
5
|
"UnpublishProductsModal.browseFile": {
|
|
3
6
|
string: "Datei durchsuchen"
|
|
4
7
|
},
|
|
@@ -98,6 +101,10 @@ var de = {
|
|
|
98
101
|
developer_comment: "Preparing import",
|
|
99
102
|
string: "<b>Bereiten Sie die Massenaufhebung der Veröffentlichung vor. </b><newline></newline>Sobald die Vorbereitung abgeschlossen ist, können Sie den Fortschritt <logsLink>in den Importprotokollen verfolgen</logsLink>. Die Veröffentlichung der Daten wird nach Abschluss des Imports aufgehoben."
|
|
100
103
|
},
|
|
104
|
+
"UnpublishProductsModal.products": {
|
|
105
|
+
developer_comment: "Products resource type label",
|
|
106
|
+
string: "Products"
|
|
107
|
+
},
|
|
101
108
|
"UnpublishProductsModal.productsToBeUnpublished": {
|
|
102
109
|
developer_comment: "Products to be unpublished",
|
|
103
110
|
string: "{count, plural, one {Die Veröffentlichung von <b>{count}</b> Produkt wird aufgehoben} other {Die Veröffentlichung von <b>{count}</b> Produkten wird aufgehoben}}"
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var de = {
|
|
4
|
+
"UnpublishProductsModal.Uploading.validatingResources": {
|
|
5
|
+
string: "{processed} validated resources"
|
|
6
|
+
},
|
|
4
7
|
"UnpublishProductsModal.browseFile": {
|
|
5
8
|
string: "Datei durchsuchen"
|
|
6
9
|
},
|
|
@@ -100,6 +103,10 @@ var de = {
|
|
|
100
103
|
developer_comment: "Preparing import",
|
|
101
104
|
string: "<b>Bereiten Sie die Massenaufhebung der Veröffentlichung vor. </b><newline></newline>Sobald die Vorbereitung abgeschlossen ist, können Sie den Fortschritt <logsLink>in den Importprotokollen verfolgen</logsLink>. Die Veröffentlichung der Daten wird nach Abschluss des Imports aufgehoben."
|
|
102
105
|
},
|
|
106
|
+
"UnpublishProductsModal.products": {
|
|
107
|
+
developer_comment: "Products resource type label",
|
|
108
|
+
string: "Products"
|
|
109
|
+
},
|
|
103
110
|
"UnpublishProductsModal.productsToBeUnpublished": {
|
|
104
111
|
developer_comment: "Products to be unpublished",
|
|
105
112
|
string: "{count, plural, one {Die Veröffentlichung von <b>{count}</b> Produkt wird aufgehoben} other {Die Veröffentlichung von <b>{count}</b> Produkten wird aufgehoben}}"
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var de = {
|
|
4
|
+
"UnpublishProductsModal.Uploading.validatingResources": {
|
|
5
|
+
string: "{processed} validated resources"
|
|
6
|
+
},
|
|
4
7
|
"UnpublishProductsModal.browseFile": {
|
|
5
8
|
string: "Datei durchsuchen"
|
|
6
9
|
},
|
|
@@ -100,6 +103,10 @@ var de = {
|
|
|
100
103
|
developer_comment: "Preparing import",
|
|
101
104
|
string: "<b>Bereiten Sie die Massenaufhebung der Veröffentlichung vor. </b><newline></newline>Sobald die Vorbereitung abgeschlossen ist, können Sie den Fortschritt <logsLink>in den Importprotokollen verfolgen</logsLink>. Die Veröffentlichung der Daten wird nach Abschluss des Imports aufgehoben."
|
|
102
105
|
},
|
|
106
|
+
"UnpublishProductsModal.products": {
|
|
107
|
+
developer_comment: "Products resource type label",
|
|
108
|
+
string: "Products"
|
|
109
|
+
},
|
|
103
110
|
"UnpublishProductsModal.productsToBeUnpublished": {
|
|
104
111
|
developer_comment: "Products to be unpublished",
|
|
105
112
|
string: "{count, plural, one {Die Veröffentlichung von <b>{count}</b> Produkt wird aufgehoben} other {Die Veröffentlichung von <b>{count}</b> Produkten wird aufgehoben}}"
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var en = {
|
|
4
|
+
"UnpublishProductsModal.Uploading.validatingResources": {
|
|
5
|
+
string: "{processed} validated resources"
|
|
6
|
+
},
|
|
4
7
|
"UnpublishProductsModal.browseFile": {
|
|
5
8
|
string: "Browse file"
|
|
6
9
|
},
|
|
@@ -100,6 +103,10 @@ var en = {
|
|
|
100
103
|
developer_comment: "Preparing import",
|
|
101
104
|
string: "<b>Prepare bulk unpublish.</b><newline></newline>Once preparation is complete, you can track the progress <logsLink>in the Import logs</logsLink>. The data will be unpublished after the import is finalized."
|
|
102
105
|
},
|
|
106
|
+
"UnpublishProductsModal.products": {
|
|
107
|
+
developer_comment: "Products resource type label",
|
|
108
|
+
string: "Products"
|
|
109
|
+
},
|
|
103
110
|
"UnpublishProductsModal.productsToBeUnpublished": {
|
|
104
111
|
developer_comment: "Products to be unpublished",
|
|
105
112
|
string: "{count, plural, one {<b>{count}</b> product to be unpublished} other {<b>{count}</b> products to be unpublished}}"
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
var en = {
|
|
2
|
+
"UnpublishProductsModal.Uploading.validatingResources": {
|
|
3
|
+
string: "{processed} validated resources"
|
|
4
|
+
},
|
|
2
5
|
"UnpublishProductsModal.browseFile": {
|
|
3
6
|
string: "Browse file"
|
|
4
7
|
},
|
|
@@ -98,6 +101,10 @@ var en = {
|
|
|
98
101
|
developer_comment: "Preparing import",
|
|
99
102
|
string: "<b>Prepare bulk unpublish.</b><newline></newline>Once preparation is complete, you can track the progress <logsLink>in the Import logs</logsLink>. The data will be unpublished after the import is finalized."
|
|
100
103
|
},
|
|
104
|
+
"UnpublishProductsModal.products": {
|
|
105
|
+
developer_comment: "Products resource type label",
|
|
106
|
+
string: "Products"
|
|
107
|
+
},
|
|
101
108
|
"UnpublishProductsModal.productsToBeUnpublished": {
|
|
102
109
|
developer_comment: "Products to be unpublished",
|
|
103
110
|
string: "{count, plural, one {<b>{count}</b> product to be unpublished} other {<b>{count}</b> products to be unpublished}}"
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var en = {
|
|
4
|
+
"UnpublishProductsModal.Uploading.validatingResources": {
|
|
5
|
+
string: "{processed} validated resources"
|
|
6
|
+
},
|
|
4
7
|
"UnpublishProductsModal.browseFile": {
|
|
5
8
|
string: "Browse file"
|
|
6
9
|
},
|
|
@@ -100,6 +103,10 @@ var en = {
|
|
|
100
103
|
developer_comment: "Preparing import",
|
|
101
104
|
string: "<b>Prepare bulk unpublish.</b><newline></newline>Once preparation is complete, you can track the progress <logsLink>in the Import logs</logsLink>. The data will be unpublished after the import is finalized."
|
|
102
105
|
},
|
|
106
|
+
"UnpublishProductsModal.products": {
|
|
107
|
+
developer_comment: "Products resource type label",
|
|
108
|
+
string: "Products"
|
|
109
|
+
},
|
|
103
110
|
"UnpublishProductsModal.productsToBeUnpublished": {
|
|
104
111
|
developer_comment: "Products to be unpublished",
|
|
105
112
|
string: "{count, plural, one {<b>{count}</b> product to be unpublished} other {<b>{count}</b> products to be unpublished}}"
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var es = {
|
|
4
|
+
"UnpublishProductsModal.Uploading.validatingResources": {
|
|
5
|
+
string: "{processed} validated resources"
|
|
6
|
+
},
|
|
4
7
|
"UnpublishProductsModal.browseFile": {
|
|
5
8
|
string: "Explorar archivo"
|
|
6
9
|
},
|
|
@@ -100,6 +103,10 @@ var es = {
|
|
|
100
103
|
developer_comment: "Preparing import",
|
|
101
104
|
string: "<b>Preparar retirada masiva.</b><newline></newline>Una vez que haya terminado la preparación podrás hacer seguimiento del progreso <logsLink>en los registros de importe</logsLink>. Los datos se retirarán cuando concluya la importación."
|
|
102
105
|
},
|
|
106
|
+
"UnpublishProductsModal.products": {
|
|
107
|
+
developer_comment: "Products resource type label",
|
|
108
|
+
string: "Products"
|
|
109
|
+
},
|
|
103
110
|
"UnpublishProductsModal.productsToBeUnpublished": {
|
|
104
111
|
developer_comment: "Products to be unpublished",
|
|
105
112
|
string: "{count, plural, one {<b> {count} </b> producto a retirar} many {<b> {count} </b> productos a retirar} other {<b> {count} </b> productos a retirar}}"
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
var es = {
|
|
2
|
+
"UnpublishProductsModal.Uploading.validatingResources": {
|
|
3
|
+
string: "{processed} validated resources"
|
|
4
|
+
},
|
|
2
5
|
"UnpublishProductsModal.browseFile": {
|
|
3
6
|
string: "Explorar archivo"
|
|
4
7
|
},
|
|
@@ -98,6 +101,10 @@ var es = {
|
|
|
98
101
|
developer_comment: "Preparing import",
|
|
99
102
|
string: "<b>Preparar retirada masiva.</b><newline></newline>Una vez que haya terminado la preparación podrás hacer seguimiento del progreso <logsLink>en los registros de importe</logsLink>. Los datos se retirarán cuando concluya la importación."
|
|
100
103
|
},
|
|
104
|
+
"UnpublishProductsModal.products": {
|
|
105
|
+
developer_comment: "Products resource type label",
|
|
106
|
+
string: "Products"
|
|
107
|
+
},
|
|
101
108
|
"UnpublishProductsModal.productsToBeUnpublished": {
|
|
102
109
|
developer_comment: "Products to be unpublished",
|
|
103
110
|
string: "{count, plural, one {<b> {count} </b> producto a retirar} many {<b> {count} </b> productos a retirar} other {<b> {count} </b> productos a retirar}}"
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var es = {
|
|
4
|
+
"UnpublishProductsModal.Uploading.validatingResources": {
|
|
5
|
+
string: "{processed} validated resources"
|
|
6
|
+
},
|
|
4
7
|
"UnpublishProductsModal.browseFile": {
|
|
5
8
|
string: "Explorar archivo"
|
|
6
9
|
},
|
|
@@ -100,6 +103,10 @@ var es = {
|
|
|
100
103
|
developer_comment: "Preparing import",
|
|
101
104
|
string: "<b>Preparar retirada masiva.</b><newline></newline>Una vez que haya terminado la preparación podrás hacer seguimiento del progreso <logsLink>en los registros de importe</logsLink>. Los datos se retirarán cuando concluya la importación."
|
|
102
105
|
},
|
|
106
|
+
"UnpublishProductsModal.products": {
|
|
107
|
+
developer_comment: "Products resource type label",
|
|
108
|
+
string: "Products"
|
|
109
|
+
},
|
|
103
110
|
"UnpublishProductsModal.productsToBeUnpublished": {
|
|
104
111
|
developer_comment: "Products to be unpublished",
|
|
105
112
|
string: "{count, plural, one {<b> {count} </b> producto a retirar} many {<b> {count} </b> productos a retirar} other {<b> {count} </b> productos a retirar}}"
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
var frFR = {
|
|
2
|
+
"UnpublishProductsModal.Uploading.validatingResources": {
|
|
3
|
+
string: "{processed} validated resources"
|
|
4
|
+
},
|
|
2
5
|
"UnpublishProductsModal.browseFile": {
|
|
3
6
|
string: "Parcourir le fichier"
|
|
4
7
|
},
|
|
@@ -98,6 +101,10 @@ var frFR = {
|
|
|
98
101
|
developer_comment: "Preparing import",
|
|
99
102
|
string: "<b>Préparez la dépublication en bloc.</b><newline></newline>Une fois la préparation terminée, vous pouvez suivre la progression <logsLink>dans les Journaux d'importation</logsLink>. Les données seront dépubliées une fois l'importation finalisée."
|
|
100
103
|
},
|
|
104
|
+
"UnpublishProductsModal.products": {
|
|
105
|
+
developer_comment: "Products resource type label",
|
|
106
|
+
string: "Products"
|
|
107
|
+
},
|
|
101
108
|
"UnpublishProductsModal.productsToBeUnpublished": {
|
|
102
109
|
developer_comment: "Products to be unpublished",
|
|
103
110
|
string: "{count, plural, one {<b>{count}</b> produit à dépublier} many {<b>{count}</b> produits à dépublier} other {<b>{count}</b> produit(s) à dépublier}}"
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var frFR = {
|
|
4
|
+
"UnpublishProductsModal.Uploading.validatingResources": {
|
|
5
|
+
string: "{processed} validated resources"
|
|
6
|
+
},
|
|
4
7
|
"UnpublishProductsModal.browseFile": {
|
|
5
8
|
string: "Parcourir le fichier"
|
|
6
9
|
},
|
|
@@ -100,6 +103,10 @@ var frFR = {
|
|
|
100
103
|
developer_comment: "Preparing import",
|
|
101
104
|
string: "<b>Préparez la dépublication en bloc.</b><newline></newline>Une fois la préparation terminée, vous pouvez suivre la progression <logsLink>dans les Journaux d'importation</logsLink>. Les données seront dépubliées une fois l'importation finalisée."
|
|
102
105
|
},
|
|
106
|
+
"UnpublishProductsModal.products": {
|
|
107
|
+
developer_comment: "Products resource type label",
|
|
108
|
+
string: "Products"
|
|
109
|
+
},
|
|
103
110
|
"UnpublishProductsModal.productsToBeUnpublished": {
|
|
104
111
|
developer_comment: "Products to be unpublished",
|
|
105
112
|
string: "{count, plural, one {<b>{count}</b> produit à dépublier} many {<b>{count}</b> produits à dépublier} other {<b>{count}</b> produit(s) à dépublier}}"
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var frFR = {
|
|
4
|
+
"UnpublishProductsModal.Uploading.validatingResources": {
|
|
5
|
+
string: "{processed} validated resources"
|
|
6
|
+
},
|
|
4
7
|
"UnpublishProductsModal.browseFile": {
|
|
5
8
|
string: "Parcourir le fichier"
|
|
6
9
|
},
|
|
@@ -100,6 +103,10 @@ var frFR = {
|
|
|
100
103
|
developer_comment: "Preparing import",
|
|
101
104
|
string: "<b>Préparez la dépublication en bloc.</b><newline></newline>Une fois la préparation terminée, vous pouvez suivre la progression <logsLink>dans les Journaux d'importation</logsLink>. Les données seront dépubliées une fois l'importation finalisée."
|
|
102
105
|
},
|
|
106
|
+
"UnpublishProductsModal.products": {
|
|
107
|
+
developer_comment: "Products resource type label",
|
|
108
|
+
string: "Products"
|
|
109
|
+
},
|
|
103
110
|
"UnpublishProductsModal.productsToBeUnpublished": {
|
|
104
111
|
developer_comment: "Products to be unpublished",
|
|
105
112
|
string: "{count, plural, one {<b>{count}</b> produit à dépublier} many {<b>{count}</b> produits à dépublier} other {<b>{count}</b> produit(s) à dépublier}}"
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var ptBR = {
|
|
4
|
+
"UnpublishProductsModal.Uploading.validatingResources": {
|
|
5
|
+
string: "{processed} validated resources"
|
|
6
|
+
},
|
|
4
7
|
"UnpublishProductsModal.browseFile": {
|
|
5
8
|
string: "Procurar arquivo"
|
|
6
9
|
},
|
|
@@ -100,6 +103,10 @@ var ptBR = {
|
|
|
100
103
|
developer_comment: "Preparing import",
|
|
101
104
|
string: "<b>Preparar o cancelamento de publicação em massa.</b><newline></newline>Após a conclusão da preparação, você pode acompanhar o progresso <logsLink>nos Logs de importação</logsLink>. Os dados serão cancelados após a importação ser finalizada."
|
|
102
105
|
},
|
|
106
|
+
"UnpublishProductsModal.products": {
|
|
107
|
+
developer_comment: "Products resource type label",
|
|
108
|
+
string: "Products"
|
|
109
|
+
},
|
|
103
110
|
"UnpublishProductsModal.productsToBeUnpublished": {
|
|
104
111
|
developer_comment: "Products to be unpublished",
|
|
105
112
|
string: "{count, plural, one {<b>{count}</b> produto terá a publicação cancelada} many {<b>{count}</b> produtos terão a publicação cancelada} other {<b>{count}</b> produtos terão a publicação cancelada}}"
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
var ptBR = {
|
|
2
|
+
"UnpublishProductsModal.Uploading.validatingResources": {
|
|
3
|
+
string: "{processed} validated resources"
|
|
4
|
+
},
|
|
2
5
|
"UnpublishProductsModal.browseFile": {
|
|
3
6
|
string: "Procurar arquivo"
|
|
4
7
|
},
|
|
@@ -98,6 +101,10 @@ var ptBR = {
|
|
|
98
101
|
developer_comment: "Preparing import",
|
|
99
102
|
string: "<b>Preparar o cancelamento de publicação em massa.</b><newline></newline>Após a conclusão da preparação, você pode acompanhar o progresso <logsLink>nos Logs de importação</logsLink>. Os dados serão cancelados após a importação ser finalizada."
|
|
100
103
|
},
|
|
104
|
+
"UnpublishProductsModal.products": {
|
|
105
|
+
developer_comment: "Products resource type label",
|
|
106
|
+
string: "Products"
|
|
107
|
+
},
|
|
101
108
|
"UnpublishProductsModal.productsToBeUnpublished": {
|
|
102
109
|
developer_comment: "Products to be unpublished",
|
|
103
110
|
string: "{count, plural, one {<b>{count}</b> produto terá a publicação cancelada} many {<b>{count}</b> produtos terão a publicação cancelada} other {<b>{count}</b> produtos terão a publicação cancelada}}"
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var ptBR = {
|
|
4
|
+
"UnpublishProductsModal.Uploading.validatingResources": {
|
|
5
|
+
string: "{processed} validated resources"
|
|
6
|
+
},
|
|
4
7
|
"UnpublishProductsModal.browseFile": {
|
|
5
8
|
string: "Procurar arquivo"
|
|
6
9
|
},
|
|
@@ -100,6 +103,10 @@ var ptBR = {
|
|
|
100
103
|
developer_comment: "Preparing import",
|
|
101
104
|
string: "<b>Preparar o cancelamento de publicação em massa.</b><newline></newline>Após a conclusão da preparação, você pode acompanhar o progresso <logsLink>nos Logs de importação</logsLink>. Os dados serão cancelados após a importação ser finalizada."
|
|
102
105
|
},
|
|
106
|
+
"UnpublishProductsModal.products": {
|
|
107
|
+
developer_comment: "Products resource type label",
|
|
108
|
+
string: "Products"
|
|
109
|
+
},
|
|
103
110
|
"UnpublishProductsModal.productsToBeUnpublished": {
|
|
104
111
|
developer_comment: "Products to be unpublished",
|
|
105
112
|
string: "{count, plural, one {<b>{count}</b> produto terá a publicação cancelada} many {<b>{count}</b> produtos terão a publicação cancelada} other {<b>{count}</b> produtos terão a publicação cancelada}}"
|
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.5.
|
|
4
|
+
"version": "1.5.1",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -31,7 +31,7 @@
|
|
|
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.2.
|
|
34
|
+
"@commercetools-frontend-extensions/operations": "3.2.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@commercetools-frontend/actions-global": "24.13.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",
|