@commercetools-frontend-extensions/delete-resources-modal 1.0.5 → 1.0.6
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/{active-drag-drop-area-d02e950a.esm.js → active-drag-drop-area-59a6304f.esm.js} +1 -1
- package/dist/{active-drag-drop-area-5f79b986.cjs.dev.js → active-drag-drop-area-8826d28b.cjs.dev.js} +1 -1
- package/dist/{active-drag-drop-area-87974335.cjs.prod.js → active-drag-drop-area-8defe25e.cjs.prod.js} +1 -1
- package/dist/commercetools-frontend-extensions-delete-resources-modal.cjs.dev.js +1 -1
- package/dist/commercetools-frontend-extensions-delete-resources-modal.cjs.prod.js +1 -1
- package/dist/commercetools-frontend-extensions-delete-resources-modal.esm.js +1 -1
- package/dist/{enabled-drop-area-8521a9f7.cjs.dev.js → enabled-drop-area-32a579f8.cjs.dev.js} +1 -1
- package/dist/{enabled-drop-area-d9d086a3.cjs.prod.js → enabled-drop-area-685b979e.cjs.prod.js} +1 -1
- package/dist/{enabled-drop-area-7516c43a.esm.js → enabled-drop-area-90e4a6c0.esm.js} +1 -1
- package/dist/{file-dropped-area-a4cafec7.cjs.prod.js → file-dropped-area-52a7d62c.cjs.prod.js} +1 -1
- package/dist/{file-dropped-area-3ff29449.esm.js → file-dropped-area-67c82767.esm.js} +1 -1
- package/dist/{file-dropped-area-8cd4e78b.cjs.dev.js → file-dropped-area-e45c3ecc.cjs.dev.js} +1 -1
- package/dist/{index-fe48ced5.cjs.prod.js → index-1016388f.cjs.prod.js} +190 -129
- package/dist/{index-ffadc0d7.esm.js → index-4e3d97aa.esm.js} +190 -129
- package/dist/{index-8626f1fa.cjs.dev.js → index-f5bb7a1e.cjs.dev.js} +190 -129
- package/package.json +16 -16
|
@@ -229,116 +229,144 @@ let UnexpectedResourceTypeError = /*#__PURE__*/function (_Error) {
|
|
|
229
229
|
|
|
230
230
|
var sharedMessages = defineMessages({
|
|
231
231
|
deleteModalTitle: {
|
|
232
|
-
id:
|
|
233
|
-
|
|
232
|
+
id: 'DeleteResourcesModal.deleteModalTitle',
|
|
233
|
+
description: 'The title of the modal',
|
|
234
|
+
defaultMessage: 'Bulk delete via CSV'
|
|
234
235
|
},
|
|
235
236
|
startBulkDelete: {
|
|
236
|
-
id:
|
|
237
|
-
|
|
237
|
+
id: 'DeleteResourcesModal.startBulkDelete',
|
|
238
|
+
description: 'Start bulk delete button',
|
|
239
|
+
defaultMessage: 'Start bulk delete'
|
|
238
240
|
},
|
|
239
241
|
cancel: {
|
|
240
|
-
id:
|
|
241
|
-
|
|
242
|
+
id: 'DeleteResourcesModal.cancel',
|
|
243
|
+
description: 'The label for the cancel button',
|
|
244
|
+
defaultMessage: 'Cancel'
|
|
242
245
|
},
|
|
243
246
|
product: {
|
|
244
|
-
id:
|
|
245
|
-
|
|
247
|
+
id: 'DeleteResourcesModal.product',
|
|
248
|
+
description: 'Label for the product resource type',
|
|
249
|
+
defaultMessage: 'product'
|
|
246
250
|
},
|
|
247
251
|
products: {
|
|
248
|
-
id:
|
|
249
|
-
|
|
252
|
+
id: 'DeleteResourcesModal.products',
|
|
253
|
+
description: 'Plural form of product',
|
|
254
|
+
defaultMessage: 'products'
|
|
250
255
|
},
|
|
251
256
|
inventory: {
|
|
252
|
-
id:
|
|
253
|
-
|
|
257
|
+
id: 'DeleteResourcesModal.inventory',
|
|
258
|
+
description: 'Label for the inventory entry resource type',
|
|
259
|
+
defaultMessage: 'inventory entry'
|
|
254
260
|
},
|
|
255
261
|
inventories: {
|
|
256
|
-
id:
|
|
257
|
-
|
|
262
|
+
id: 'DeleteResourcesModal.inventories',
|
|
263
|
+
description: 'Plural form of inventory entry',
|
|
264
|
+
defaultMessage: 'inventory entries'
|
|
258
265
|
},
|
|
259
266
|
category: {
|
|
260
|
-
id:
|
|
261
|
-
|
|
267
|
+
id: 'DeleteResourcesModal.category',
|
|
268
|
+
description: 'Label for the category resource type',
|
|
269
|
+
defaultMessage: 'category'
|
|
262
270
|
},
|
|
263
271
|
categories: {
|
|
264
|
-
id:
|
|
265
|
-
|
|
272
|
+
id: 'DeleteResourcesModal.categories',
|
|
273
|
+
description: 'Plural form of category',
|
|
274
|
+
defaultMessage: 'categories'
|
|
266
275
|
},
|
|
267
276
|
customer: {
|
|
268
|
-
id:
|
|
269
|
-
|
|
277
|
+
id: 'DeleteResourcesModal.customer',
|
|
278
|
+
description: 'Label for the customer resource type',
|
|
279
|
+
defaultMessage: 'customer'
|
|
270
280
|
},
|
|
271
281
|
customers: {
|
|
272
|
-
id:
|
|
273
|
-
|
|
282
|
+
id: 'DeleteResourcesModal.customers',
|
|
283
|
+
description: 'Plural form of customer',
|
|
284
|
+
defaultMessage: 'customers'
|
|
274
285
|
},
|
|
275
286
|
order: {
|
|
276
|
-
id:
|
|
277
|
-
|
|
287
|
+
id: 'DeleteResourcesModal.order',
|
|
288
|
+
description: 'Label for the order resource type',
|
|
289
|
+
defaultMessage: 'order'
|
|
278
290
|
},
|
|
279
291
|
orders: {
|
|
280
|
-
id:
|
|
281
|
-
|
|
292
|
+
id: 'DeleteResourcesModal.orders',
|
|
293
|
+
description: 'Plural form of order',
|
|
294
|
+
defaultMessage: 'orders'
|
|
282
295
|
},
|
|
283
296
|
price: {
|
|
284
|
-
id:
|
|
285
|
-
|
|
297
|
+
id: 'DeleteResourcesModal.price',
|
|
298
|
+
description: 'Label for the price resource type',
|
|
299
|
+
defaultMessage: 'price'
|
|
286
300
|
},
|
|
287
301
|
prices: {
|
|
288
|
-
id:
|
|
289
|
-
|
|
302
|
+
id: 'DeleteResourcesModal.prices',
|
|
303
|
+
description: 'Plural form of price',
|
|
304
|
+
defaultMessage: 'prices'
|
|
290
305
|
},
|
|
291
306
|
'product-draft': {
|
|
292
|
-
id:
|
|
293
|
-
|
|
307
|
+
id: 'DeleteResourcesModal.product-draft',
|
|
308
|
+
description: 'Label for the product-draft resource type',
|
|
309
|
+
defaultMessage: 'product draft'
|
|
294
310
|
},
|
|
295
311
|
'product-drafts': {
|
|
296
|
-
id:
|
|
297
|
-
|
|
312
|
+
id: 'DeleteResourcesModal.product-drafts',
|
|
313
|
+
description: 'Plural form of product draft',
|
|
314
|
+
defaultMessage: 'product drafts'
|
|
298
315
|
},
|
|
299
316
|
'product-type': {
|
|
300
|
-
id:
|
|
301
|
-
|
|
317
|
+
id: 'DeleteResourcesModal.product-type',
|
|
318
|
+
description: 'Label for the product-type resource type',
|
|
319
|
+
defaultMessage: 'product type'
|
|
302
320
|
},
|
|
303
321
|
'product-types': {
|
|
304
|
-
id:
|
|
305
|
-
|
|
322
|
+
id: 'DeleteResourcesModal.product-types',
|
|
323
|
+
description: 'Plural form of product type',
|
|
324
|
+
defaultMessage: 'product types'
|
|
306
325
|
},
|
|
307
326
|
'product-variant': {
|
|
308
|
-
id:
|
|
309
|
-
|
|
327
|
+
id: 'DeleteResourcesModal.product-variant',
|
|
328
|
+
description: 'Label for the product-variant resource type',
|
|
329
|
+
defaultMessage: 'product variant'
|
|
310
330
|
},
|
|
311
331
|
'product-variants': {
|
|
312
|
-
id:
|
|
313
|
-
|
|
332
|
+
id: 'DeleteResourcesModal.product-variants',
|
|
333
|
+
description: 'Plural form of product variant',
|
|
334
|
+
defaultMessage: 'product variants'
|
|
314
335
|
},
|
|
315
336
|
'product-variant-patch': {
|
|
316
|
-
id:
|
|
317
|
-
|
|
337
|
+
id: 'DeleteResourcesModal.product-variant-patch',
|
|
338
|
+
description: 'Label for the product-variant-patch resource type',
|
|
339
|
+
defaultMessage: 'product variant patch'
|
|
318
340
|
},
|
|
319
341
|
'product-variant-patches': {
|
|
320
|
-
id:
|
|
321
|
-
|
|
342
|
+
id: 'DeleteResourcesModal.product-variant-patches',
|
|
343
|
+
description: 'Plural form of product variant patch',
|
|
344
|
+
defaultMessage: 'product variant patches'
|
|
322
345
|
},
|
|
323
346
|
'standalone-price': {
|
|
324
|
-
id:
|
|
325
|
-
|
|
347
|
+
id: 'DeleteResourcesModal.standalone-price',
|
|
348
|
+
description: 'Label for the standalone-price resource type',
|
|
349
|
+
defaultMessage: 'standalone price'
|
|
326
350
|
},
|
|
327
351
|
'standalone-prices': {
|
|
328
|
-
id:
|
|
329
|
-
|
|
352
|
+
id: 'DeleteResourcesModal.standalone-prices',
|
|
353
|
+
description: 'Plural form of standalone price',
|
|
354
|
+
defaultMessage: 'standalone prices'
|
|
330
355
|
},
|
|
331
356
|
'discount-code': {
|
|
332
|
-
id:
|
|
333
|
-
|
|
357
|
+
id: 'DeleteResourcesModal.discount-code',
|
|
358
|
+
description: 'Label for the discount-code resource type',
|
|
359
|
+
defaultMessage: 'discount code'
|
|
334
360
|
},
|
|
335
361
|
'discount-codes': {
|
|
336
|
-
id:
|
|
337
|
-
|
|
362
|
+
id: 'DeleteResourcesModal.discount-codes',
|
|
363
|
+
description: 'Plural form of discount code',
|
|
364
|
+
defaultMessage: 'discount codes'
|
|
338
365
|
},
|
|
339
366
|
unknownResourceType: {
|
|
340
|
-
id:
|
|
341
|
-
|
|
367
|
+
id: 'DeleteResourcesModal.unknown-resource-type',
|
|
368
|
+
description: 'Label for the unknown resource type',
|
|
369
|
+
defaultMessage: 'unknown resource type'
|
|
342
370
|
}
|
|
343
371
|
});
|
|
344
372
|
|
|
@@ -627,11 +655,11 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
|
|
|
627
655
|
return /*#__PURE__*/css(process.env.NODE_ENV === "production" ? "" : ";label:getDefaultDropWrapperStyles;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRyb3AtYXJlYS13cmFwcGVyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF5QlkiLCJmaWxlIjoiZHJvcC1hcmVhLXdyYXBwZXIudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgdHlwZSBEcm9wem9uZVJvb3RQcm9wcyB9IGZyb20gJ3JlYWN0LWRyb3B6b25lJ1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB7IHN0eWxlcyB9IGZyb20gJy4vc3R5bGVzJ1xuaW1wb3J0IHsgdHlwZSBEcm9wQXJlYVN0YXRlIH0gZnJvbSAnLi4vLi4vLi4vQHR5cGVzJ1xuXG5pbnRlcmZhY2UgRHJvcFdyYXBwZXJQcm9wcyBleHRlbmRzIERyb3B6b25lUm9vdFByb3BzIHtcbiAgZHJvcEFyZWFTdGF0ZTogRHJvcEFyZWFTdGF0ZVxufVxuZXhwb3J0IGNvbnN0IERyb3BXcmFwcGVyID0gc3R5bGVkLmRpdjxEcm9wV3JhcHBlclByb3BzPmBcbiAgJHtzdHlsZXMuYmFzZX1cbiAgJHsocHJvcHMpID0+IHtcbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ3JlYWR5LWZvci1kcm9wJykge1xuICAgICAgcmV0dXJuIHN0eWxlcy5yZWFkeUZvckRyb3BcbiAgICB9XG4gICAgaWYgKHByb3BzLmRyb3BBcmVhU3RhdGUgPT09ICdhY3RpdmUtZHJhZycpIHtcbiAgICAgIHJldHVybiBzdHlsZXMuYWN0aXZlRHJhZ1xuICAgIH1cbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ2ZpbGUtZHJvcHBlZCcpIHtcbiAgICAgIHJldHVybiBzdHlsZXMuZmlsZURyb3BwZWRcbiAgICB9XG4gICAgcmV0dXJuIGdldERlZmF1bHREcm9wV3JhcHBlclN0eWxlcyhwcm9wcy5kcm9wQXJlYVN0YXRlKVxuICB9fVxuYFxuZnVuY3Rpb24gZ2V0RGVmYXVsdERyb3BXcmFwcGVyU3R5bGVzKF9kcm9wQXJlYVN0YXRlOiBuZXZlcikge1xuICByZXR1cm4gY3NzYGBcbn1cbiJdfQ== */");
|
|
628
656
|
}
|
|
629
657
|
|
|
630
|
-
var ActiveDragDropArea = /*#__PURE__*/lazy(() => import('./active-drag-drop-area-
|
|
658
|
+
var ActiveDragDropArea = /*#__PURE__*/lazy(() => import('./active-drag-drop-area-59a6304f.esm.js' /* webpackChunkName: "active-drag-drop-area" */));
|
|
631
659
|
|
|
632
|
-
var EnabledDropArea = /*#__PURE__*/lazy(() => import('./enabled-drop-area-
|
|
660
|
+
var EnabledDropArea = /*#__PURE__*/lazy(() => import('./enabled-drop-area-90e4a6c0.esm.js' /* webpackChunkName: "enabled-drop-area" */));
|
|
633
661
|
|
|
634
|
-
var FileDropped = /*#__PURE__*/lazy(() => import('./file-dropped-area-
|
|
662
|
+
var FileDropped = /*#__PURE__*/lazy(() => import('./file-dropped-area-67c82767.esm.js' /* webpackChunkName: "filed-dropped-area" */));
|
|
635
663
|
|
|
636
664
|
function getDropArea(_ref) {
|
|
637
665
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -664,48 +692,58 @@ function getDropAreaState(flags) {
|
|
|
664
692
|
|
|
665
693
|
var messages$4 = defineMessages({
|
|
666
694
|
dragAndDropCSV: {
|
|
667
|
-
id:
|
|
668
|
-
|
|
695
|
+
id: 'DeleteResourcesModal.dragAndDropCSV',
|
|
696
|
+
description: 'The message telling the user to drag and drop CSV file in the file drop area',
|
|
697
|
+
defaultMessage: 'Drag and drop CSV'
|
|
669
698
|
},
|
|
670
699
|
or: {
|
|
671
|
-
id:
|
|
672
|
-
|
|
700
|
+
id: 'DeleteResourcesModal.or',
|
|
701
|
+
description: 'The word "or" in the drag and drop message',
|
|
702
|
+
defaultMessage: 'or'
|
|
673
703
|
},
|
|
674
704
|
browseButton: {
|
|
675
|
-
id:
|
|
676
|
-
defaultMessage:
|
|
705
|
+
id: 'DeleteResourcesModal.browseFile',
|
|
706
|
+
defaultMessage: 'Browse file'
|
|
677
707
|
},
|
|
678
708
|
uploadAndPreview: {
|
|
679
|
-
id:
|
|
680
|
-
|
|
709
|
+
id: 'DeleteResourcesModal.uploadAndPreview',
|
|
710
|
+
description: 'Label for the button that uploads the file and shows the preview',
|
|
711
|
+
defaultMessage: 'Upload and preview'
|
|
681
712
|
},
|
|
682
713
|
chooseFile: {
|
|
683
|
-
id:
|
|
684
|
-
|
|
714
|
+
id: 'DeleteResourcesModal.chooseFile',
|
|
715
|
+
description: 'Label for a button on the file upload page, shown on ready to upload state',
|
|
716
|
+
defaultMessage: 'Choose file'
|
|
685
717
|
},
|
|
686
718
|
fileUploadFailed: {
|
|
687
|
-
id:
|
|
688
|
-
|
|
719
|
+
id: 'DeleteResourcesModal.fileUploadFailed',
|
|
720
|
+
description: 'A title on the file upload page, shown on file upload error state',
|
|
721
|
+
defaultMessage: 'File upload failed'
|
|
689
722
|
},
|
|
690
723
|
fileFormatNotSupported: {
|
|
691
|
-
id:
|
|
692
|
-
|
|
724
|
+
id: 'DeleteResourcesModal.fileFormatNotSupported',
|
|
725
|
+
description: 'Error message displayed when a user drags and drops a non-CSV file',
|
|
726
|
+
defaultMessage: 'Invalid file format: The file is not in CSV format and cannot be processed.'
|
|
693
727
|
},
|
|
694
728
|
tooManyFilesError: {
|
|
695
|
-
id:
|
|
696
|
-
|
|
729
|
+
id: 'DeleteResourcesModal.tooManyFilesError',
|
|
730
|
+
description: 'Error message displayed when a user drags and drops multiple files at once',
|
|
731
|
+
defaultMessage: 'Multiple files detected: You can only drag and drop one file at a time.'
|
|
697
732
|
},
|
|
698
733
|
genericError: {
|
|
699
|
-
id:
|
|
700
|
-
|
|
734
|
+
id: 'DeleteResourcesModal.genericError',
|
|
735
|
+
description: 'Default error message for unexpected file upload issues (for unhandled cases)',
|
|
736
|
+
defaultMessage: 'Error occurred: Please try uploading the file again or contact our support team for assistance.'
|
|
701
737
|
},
|
|
702
738
|
dataType: {
|
|
703
|
-
id:
|
|
704
|
-
|
|
739
|
+
id: 'DeleteResourcesModal.dataType',
|
|
740
|
+
description: 'Label for the data type selection dropdown',
|
|
741
|
+
defaultMessage: 'Data type'
|
|
705
742
|
},
|
|
706
743
|
instructions: {
|
|
707
|
-
id:
|
|
708
|
-
|
|
744
|
+
id: 'DeleteResourcesModal.instructions',
|
|
745
|
+
description: 'Label for the instructions section',
|
|
746
|
+
defaultMessage: 'Instructions'
|
|
709
747
|
}
|
|
710
748
|
});
|
|
711
749
|
|
|
@@ -719,47 +757,56 @@ const useDeleteResourcesContext = () => {
|
|
|
719
757
|
|
|
720
758
|
var messages$3 = defineMessages({
|
|
721
759
|
fileSizeExceededTitle: {
|
|
722
|
-
id:
|
|
723
|
-
defaultMessage:
|
|
760
|
+
id: 'DeleteResourcesModal.sizeExceededTitle',
|
|
761
|
+
defaultMessage: 'File size exceeded'
|
|
724
762
|
},
|
|
725
763
|
fileSizeExceededDescription: {
|
|
726
|
-
id:
|
|
727
|
-
|
|
764
|
+
id: 'DeleteResourcesModal.sizeExceededDescription',
|
|
765
|
+
description: 'Error description when the file size exceeds the allowable limit',
|
|
766
|
+
defaultMessage: 'The file exceeds the maximum allowed size of {fileSizeLimit} MB'
|
|
728
767
|
},
|
|
729
768
|
rowLimitExceededTitle: {
|
|
730
|
-
id:
|
|
731
|
-
defaultMessage:
|
|
769
|
+
id: 'DeleteResourcesModal.rowLimitExceededTitle',
|
|
770
|
+
defaultMessage: 'Row limit exceeded'
|
|
732
771
|
},
|
|
733
772
|
rowLimitExceededDescription: {
|
|
734
|
-
id:
|
|
735
|
-
|
|
773
|
+
id: 'DeleteResourcesModal.rowLimitExceededDescription',
|
|
774
|
+
description: 'Error description when the file contains more rows than the allowable maximum',
|
|
775
|
+
defaultMessage: 'The file contains more than the allowable maximum of {rowLimit} rows'
|
|
736
776
|
},
|
|
737
777
|
dropAreaNotEnoughRowsTitle: {
|
|
738
|
-
id:
|
|
739
|
-
|
|
778
|
+
id: 'DeleteResourcesModal.dropAreaNotEnoughRowsTitle',
|
|
779
|
+
description: 'Error title shown when the uploaded CSV file does not contain a header and at least one row of data',
|
|
780
|
+
defaultMessage: 'Invalid CSV file'
|
|
740
781
|
},
|
|
741
782
|
dropAreaNotEnoughRowsDescription: {
|
|
742
|
-
id:
|
|
743
|
-
|
|
783
|
+
id: 'DeleteResourcesModal.dropAreaNotEnoughRowsDescription',
|
|
784
|
+
description: 'Error description shown when the uploaded CSV file does not contain a header and at least one row of data',
|
|
785
|
+
defaultMessage: 'Make sure the file contains a header and at least one row of data'
|
|
744
786
|
},
|
|
745
787
|
unexpectedError: {
|
|
746
|
-
id:
|
|
747
|
-
|
|
788
|
+
id: 'DeleteResourcesModal.unexpectedError',
|
|
789
|
+
description: 'Generic notification message when file upload fails',
|
|
790
|
+
defaultMessage: 'An unexpected error occurred during the file upload. Please try again, or contact support if this error occurs again.'
|
|
748
791
|
},
|
|
749
792
|
missingRequiredField: {
|
|
750
|
-
id:
|
|
751
|
-
|
|
793
|
+
id: 'DeleteResourcesModal.missingRequiredField',
|
|
794
|
+
description: 'Error message displayed when a required field is missing',
|
|
795
|
+
defaultMessage: 'Missing required field'
|
|
752
796
|
},
|
|
753
797
|
missingKeyError: {
|
|
754
|
-
id:
|
|
798
|
+
id: 'DeleteResourcesModal.missingKeyError',
|
|
799
|
+
description: 'Error message displayed when the uploaded file is missing the key field',
|
|
755
800
|
defaultMessage: "The 'key' field is missing or incomplete in some rows. Please ensure every row has a 'key' value."
|
|
756
801
|
},
|
|
757
802
|
csvFormatErrorTitle: {
|
|
758
|
-
id:
|
|
759
|
-
|
|
803
|
+
id: 'DeleteResourcesModal.csvFormatErrorTitle',
|
|
804
|
+
description: 'Error title shown when the uploaded CSV file is not formatted correctly',
|
|
805
|
+
defaultMessage: 'Invalid CSV file'
|
|
760
806
|
},
|
|
761
807
|
csvFormatErrorDescription: {
|
|
762
|
-
id:
|
|
808
|
+
id: 'UnpublishProductsModal.csvFormatErrorDescription',
|
|
809
|
+
description: 'Error message displayed when the CSV file is not formatted correctly',
|
|
763
810
|
defaultMessage: "Your CSV file is not formatted correctly. Make sure the file contains only one column named 'key', which includes the product keys"
|
|
764
811
|
}
|
|
765
812
|
});
|
|
@@ -1066,16 +1113,19 @@ const FileDropArea = () => {
|
|
|
1066
1113
|
|
|
1067
1114
|
var messages$2 = defineMessages({
|
|
1068
1115
|
fileUploadInstruction: {
|
|
1069
|
-
id:
|
|
1116
|
+
id: 'DeleteResourcesModal.fileUploadInstruction',
|
|
1117
|
+
description: 'Instructions for uploading a CSV file with resource keys to delete',
|
|
1070
1118
|
defaultMessage: "The CSV file must contain the {resourceType} keys to be deleted under the header 'key'."
|
|
1071
1119
|
},
|
|
1072
1120
|
fileUploadInstructionForMaxFileSize: {
|
|
1073
|
-
id:
|
|
1074
|
-
|
|
1121
|
+
id: 'DeleteResourcesModal.fileUploadInstructionForMaxFileSize',
|
|
1122
|
+
description: 'Instructions for uploading a CSV file with a max file size',
|
|
1123
|
+
defaultMessage: 'Maximum file size is {maxFileSize} MB with a limit of {maxRowCount} rows. Download <csvTemplateLink>the CSV template</csvTemplateLink> or refer to <documentationLink>the documentation</documentationLink>.'
|
|
1075
1124
|
},
|
|
1076
1125
|
unpublishNote: {
|
|
1077
|
-
id:
|
|
1078
|
-
|
|
1126
|
+
id: 'DeleteResourcesModal.unpublishNote',
|
|
1127
|
+
description: 'Note to unpublish products before deleting them',
|
|
1128
|
+
defaultMessage: 'Please note that published products <b>must be unpublished</b> before they can be deleted.'
|
|
1079
1129
|
}
|
|
1080
1130
|
});
|
|
1081
1131
|
|
|
@@ -1236,20 +1286,23 @@ const Uploading = () => {
|
|
|
1236
1286
|
|
|
1237
1287
|
var messages$1 = defineMessages({
|
|
1238
1288
|
uploadNewFile: {
|
|
1239
|
-
id:
|
|
1240
|
-
defaultMessage:
|
|
1289
|
+
id: 'DeleteResourcesModal.uploadNewFile',
|
|
1290
|
+
defaultMessage: 'Upload new file'
|
|
1241
1291
|
},
|
|
1242
1292
|
uploadErrorDescription: {
|
|
1243
|
-
id:
|
|
1244
|
-
|
|
1293
|
+
id: 'DeleteResourcesModal.uploadError',
|
|
1294
|
+
description: 'Title when errors detected while uploading file',
|
|
1295
|
+
defaultMessage: 'There {errorsCount, plural, one {is <b>1</b> error} other {are <b>{errorsCount}</b> errors}} detected while uploading the file "{fileName}".'
|
|
1245
1296
|
},
|
|
1246
1297
|
errorType: {
|
|
1247
|
-
id:
|
|
1248
|
-
|
|
1298
|
+
id: 'DeleteResourcesModal.errorType',
|
|
1299
|
+
description: 'Error type" column',
|
|
1300
|
+
defaultMessage: 'Error type'
|
|
1249
1301
|
},
|
|
1250
1302
|
details: {
|
|
1251
|
-
id:
|
|
1252
|
-
|
|
1303
|
+
id: 'DeleteResourcesModal.details',
|
|
1304
|
+
description: '"Details" column',
|
|
1305
|
+
defaultMessage: 'Details'
|
|
1253
1306
|
}
|
|
1254
1307
|
});
|
|
1255
1308
|
|
|
@@ -1359,36 +1412,44 @@ function getBold$2(msg) {
|
|
|
1359
1412
|
|
|
1360
1413
|
var messages = defineMessages({
|
|
1361
1414
|
continue: {
|
|
1362
|
-
id:
|
|
1363
|
-
|
|
1415
|
+
id: 'DeleteResourcesModal.continue',
|
|
1416
|
+
description: 'Continue button',
|
|
1417
|
+
defaultMessage: 'Continue'
|
|
1364
1418
|
},
|
|
1365
1419
|
heresAPreview: {
|
|
1366
|
-
id:
|
|
1420
|
+
id: 'DeleteResourcesModal.heresAPreview',
|
|
1421
|
+
description: 'Here is a preview',
|
|
1367
1422
|
defaultMessage: "Here's a preview:"
|
|
1368
1423
|
},
|
|
1369
1424
|
resourcesToBeDeleted: {
|
|
1370
|
-
id:
|
|
1371
|
-
|
|
1425
|
+
id: 'DeleteResourcesModal.resourcesToBeDeleted',
|
|
1426
|
+
description: 'Resources to be deleted',
|
|
1427
|
+
defaultMessage: '{count, plural, one {<b>{count}</b> {resourceType} to be deleted} other {<b>{count}</b> {resourceTypePlural} to be deleted}}'
|
|
1372
1428
|
},
|
|
1373
1429
|
confirmationQuestion: {
|
|
1374
|
-
id:
|
|
1375
|
-
|
|
1430
|
+
id: 'DeleteResourcesModal.confirmationQuestion',
|
|
1431
|
+
description: 'Confirmation question',
|
|
1432
|
+
defaultMessage: 'Are you sure you want to delete the {resourceTypePlural}? '
|
|
1376
1433
|
},
|
|
1377
1434
|
confirmationText: {
|
|
1378
|
-
id:
|
|
1379
|
-
|
|
1435
|
+
id: 'DeleteResourcesModal.confirmationText',
|
|
1436
|
+
description: 'Confirmation text',
|
|
1437
|
+
defaultMessage: '{count, plural, one {You are about to delete <b>{count}</b> {resourceType} in the project: <b>{projectName}</b>.} other {You are about to deleted <b>{count}</b> {resourceTypePlural} in the project: <b>{projectName}</b>.}}'
|
|
1380
1438
|
},
|
|
1381
1439
|
cannotBeUndoneNote: {
|
|
1382
|
-
id:
|
|
1383
|
-
|
|
1440
|
+
id: 'DeleteResourcesModal.cannotBeUndoneNote',
|
|
1441
|
+
description: 'Cannot be undone note in the confirmation dialog',
|
|
1442
|
+
defaultMessage: 'This action cannot be undone.'
|
|
1384
1443
|
},
|
|
1385
1444
|
importStarted: {
|
|
1386
|
-
id:
|
|
1387
|
-
|
|
1445
|
+
id: 'DeleteResourcesModal.importStarted',
|
|
1446
|
+
description: 'Import started',
|
|
1447
|
+
defaultMessage: '<b>Your import for bulk delete has started.</b><newline></newline>Go to <logsLink>Import logs</logsLink> to view the progress.'
|
|
1388
1448
|
},
|
|
1389
1449
|
preparingImport: {
|
|
1390
|
-
id:
|
|
1391
|
-
|
|
1450
|
+
id: 'DeleteResourcesModal.preparingImport',
|
|
1451
|
+
description: 'Preparing import',
|
|
1452
|
+
defaultMessage: '<b>Prepare bulk delete.</b><newline></newline>Once preparation is complete, you can track the progress <logsLink>in the Import logs</logsLink>. The data will be deleted after the import is finalized.'
|
|
1392
1453
|
}
|
|
1393
1454
|
});
|
|
1394
1455
|
|