@commercetools-frontend-extensions/delete-resources-modal 1.0.1 → 1.0.3
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-2b2d30c2.cjs.prod.js → active-drag-drop-area-398b14f8.cjs.prod.js} +1 -1
- package/dist/{active-drag-drop-area-f1fabbe1.cjs.dev.js → active-drag-drop-area-6a6bb037.cjs.dev.js} +1 -1
- package/dist/{active-drag-drop-area-ce2fab3c.esm.js → active-drag-drop-area-9c30f4d8.esm.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-c0054f46.cjs.dev.js → enabled-drop-area-78e1a160.cjs.dev.js} +1 -1
- package/dist/{enabled-drop-area-b84a3295.esm.js → enabled-drop-area-d0428659.esm.js} +1 -1
- package/dist/{enabled-drop-area-d2949787.cjs.prod.js → enabled-drop-area-f7decf27.cjs.prod.js} +1 -1
- package/dist/{file-dropped-area-4f2d4886.cjs.dev.js → file-dropped-area-2b20f89c.cjs.dev.js} +1 -1
- package/dist/{file-dropped-area-725e578c.esm.js → file-dropped-area-4a9a52a3.esm.js} +1 -1
- package/dist/{file-dropped-area-540a41da.cjs.prod.js → file-dropped-area-4bc691d7.cjs.prod.js} +1 -1
- package/dist/{index-eb45ca2b.esm.js → index-93809c35.esm.js} +129 -190
- package/dist/{index-ac43c2da.cjs.dev.js → index-c39e3139.cjs.dev.js} +129 -190
- package/dist/{index-5d0162f5.cjs.prod.js → index-c8f4c755.cjs.prod.js} +129 -190
- package/package.json +11 -11
|
@@ -255,144 +255,116 @@ let UnexpectedResourceTypeError = /*#__PURE__*/function (_Error) {
|
|
|
255
255
|
|
|
256
256
|
var sharedMessages = reactIntl.defineMessages({
|
|
257
257
|
deleteModalTitle: {
|
|
258
|
-
id:
|
|
259
|
-
|
|
260
|
-
defaultMessage: 'Bulk delete via CSV'
|
|
258
|
+
id: "DeleteResourcesModal.deleteModalTitle",
|
|
259
|
+
defaultMessage: "Bulk delete via CSV"
|
|
261
260
|
},
|
|
262
261
|
startBulkDelete: {
|
|
263
|
-
id:
|
|
264
|
-
|
|
265
|
-
defaultMessage: 'Start bulk delete'
|
|
262
|
+
id: "DeleteResourcesModal.startBulkDelete",
|
|
263
|
+
defaultMessage: "Start bulk delete"
|
|
266
264
|
},
|
|
267
265
|
cancel: {
|
|
268
|
-
id:
|
|
269
|
-
|
|
270
|
-
defaultMessage: 'Cancel'
|
|
266
|
+
id: "DeleteResourcesModal.cancel",
|
|
267
|
+
defaultMessage: "Cancel"
|
|
271
268
|
},
|
|
272
269
|
product: {
|
|
273
|
-
id:
|
|
274
|
-
|
|
275
|
-
defaultMessage: 'product'
|
|
270
|
+
id: "DeleteResourcesModal.product",
|
|
271
|
+
defaultMessage: "product"
|
|
276
272
|
},
|
|
277
273
|
products: {
|
|
278
|
-
id:
|
|
279
|
-
|
|
280
|
-
defaultMessage: 'products'
|
|
274
|
+
id: "DeleteResourcesModal.products",
|
|
275
|
+
defaultMessage: "products"
|
|
281
276
|
},
|
|
282
277
|
inventory: {
|
|
283
|
-
id:
|
|
284
|
-
|
|
285
|
-
defaultMessage: 'inventory entry'
|
|
278
|
+
id: "DeleteResourcesModal.inventory",
|
|
279
|
+
defaultMessage: "inventory entry"
|
|
286
280
|
},
|
|
287
281
|
inventories: {
|
|
288
|
-
id:
|
|
289
|
-
|
|
290
|
-
defaultMessage: 'inventory entries'
|
|
282
|
+
id: "DeleteResourcesModal.inventories",
|
|
283
|
+
defaultMessage: "inventory entries"
|
|
291
284
|
},
|
|
292
285
|
category: {
|
|
293
|
-
id:
|
|
294
|
-
|
|
295
|
-
defaultMessage: 'category'
|
|
286
|
+
id: "DeleteResourcesModal.category",
|
|
287
|
+
defaultMessage: "category"
|
|
296
288
|
},
|
|
297
289
|
categories: {
|
|
298
|
-
id:
|
|
299
|
-
|
|
300
|
-
defaultMessage: 'categories'
|
|
290
|
+
id: "DeleteResourcesModal.categories",
|
|
291
|
+
defaultMessage: "categories"
|
|
301
292
|
},
|
|
302
293
|
customer: {
|
|
303
|
-
id:
|
|
304
|
-
|
|
305
|
-
defaultMessage: 'customer'
|
|
294
|
+
id: "DeleteResourcesModal.customer",
|
|
295
|
+
defaultMessage: "customer"
|
|
306
296
|
},
|
|
307
297
|
customers: {
|
|
308
|
-
id:
|
|
309
|
-
|
|
310
|
-
defaultMessage: 'customers'
|
|
298
|
+
id: "DeleteResourcesModal.customers",
|
|
299
|
+
defaultMessage: "customers"
|
|
311
300
|
},
|
|
312
301
|
order: {
|
|
313
|
-
id:
|
|
314
|
-
|
|
315
|
-
defaultMessage: 'order'
|
|
302
|
+
id: "DeleteResourcesModal.order",
|
|
303
|
+
defaultMessage: "order"
|
|
316
304
|
},
|
|
317
305
|
orders: {
|
|
318
|
-
id:
|
|
319
|
-
|
|
320
|
-
defaultMessage: 'orders'
|
|
306
|
+
id: "DeleteResourcesModal.orders",
|
|
307
|
+
defaultMessage: "orders"
|
|
321
308
|
},
|
|
322
309
|
price: {
|
|
323
|
-
id:
|
|
324
|
-
|
|
325
|
-
defaultMessage: 'price'
|
|
310
|
+
id: "DeleteResourcesModal.price",
|
|
311
|
+
defaultMessage: "price"
|
|
326
312
|
},
|
|
327
313
|
prices: {
|
|
328
|
-
id:
|
|
329
|
-
|
|
330
|
-
defaultMessage: 'prices'
|
|
314
|
+
id: "DeleteResourcesModal.prices",
|
|
315
|
+
defaultMessage: "prices"
|
|
331
316
|
},
|
|
332
317
|
'product-draft': {
|
|
333
|
-
id:
|
|
334
|
-
|
|
335
|
-
defaultMessage: 'product draft'
|
|
318
|
+
id: "DeleteResourcesModal.product-draft",
|
|
319
|
+
defaultMessage: "product draft"
|
|
336
320
|
},
|
|
337
321
|
'product-drafts': {
|
|
338
|
-
id:
|
|
339
|
-
|
|
340
|
-
defaultMessage: 'product drafts'
|
|
322
|
+
id: "DeleteResourcesModal.product-drafts",
|
|
323
|
+
defaultMessage: "product drafts"
|
|
341
324
|
},
|
|
342
325
|
'product-type': {
|
|
343
|
-
id:
|
|
344
|
-
|
|
345
|
-
defaultMessage: 'product type'
|
|
326
|
+
id: "DeleteResourcesModal.product-type",
|
|
327
|
+
defaultMessage: "product type"
|
|
346
328
|
},
|
|
347
329
|
'product-types': {
|
|
348
|
-
id:
|
|
349
|
-
|
|
350
|
-
defaultMessage: 'product types'
|
|
330
|
+
id: "DeleteResourcesModal.product-types",
|
|
331
|
+
defaultMessage: "product types"
|
|
351
332
|
},
|
|
352
333
|
'product-variant': {
|
|
353
|
-
id:
|
|
354
|
-
|
|
355
|
-
defaultMessage: 'product variant'
|
|
334
|
+
id: "DeleteResourcesModal.product-variant",
|
|
335
|
+
defaultMessage: "product variant"
|
|
356
336
|
},
|
|
357
337
|
'product-variants': {
|
|
358
|
-
id:
|
|
359
|
-
|
|
360
|
-
defaultMessage: 'product variants'
|
|
338
|
+
id: "DeleteResourcesModal.product-variants",
|
|
339
|
+
defaultMessage: "product variants"
|
|
361
340
|
},
|
|
362
341
|
'product-variant-patch': {
|
|
363
|
-
id:
|
|
364
|
-
|
|
365
|
-
defaultMessage: 'product variant patch'
|
|
342
|
+
id: "DeleteResourcesModal.product-variant-patch",
|
|
343
|
+
defaultMessage: "product variant patch"
|
|
366
344
|
},
|
|
367
345
|
'product-variant-patches': {
|
|
368
|
-
id:
|
|
369
|
-
|
|
370
|
-
defaultMessage: 'product variant patches'
|
|
346
|
+
id: "DeleteResourcesModal.product-variant-patches",
|
|
347
|
+
defaultMessage: "product variant patches"
|
|
371
348
|
},
|
|
372
349
|
'standalone-price': {
|
|
373
|
-
id:
|
|
374
|
-
|
|
375
|
-
defaultMessage: 'standalone price'
|
|
350
|
+
id: "DeleteResourcesModal.standalone-price",
|
|
351
|
+
defaultMessage: "standalone price"
|
|
376
352
|
},
|
|
377
353
|
'standalone-prices': {
|
|
378
|
-
id:
|
|
379
|
-
|
|
380
|
-
defaultMessage: 'standalone prices'
|
|
354
|
+
id: "DeleteResourcesModal.standalone-prices",
|
|
355
|
+
defaultMessage: "standalone prices"
|
|
381
356
|
},
|
|
382
357
|
'discount-code': {
|
|
383
|
-
id:
|
|
384
|
-
|
|
385
|
-
defaultMessage: 'discount code'
|
|
358
|
+
id: "DeleteResourcesModal.discount-code",
|
|
359
|
+
defaultMessage: "discount code"
|
|
386
360
|
},
|
|
387
361
|
'discount-codes': {
|
|
388
|
-
id:
|
|
389
|
-
|
|
390
|
-
defaultMessage: 'discount codes'
|
|
362
|
+
id: "DeleteResourcesModal.discount-codes",
|
|
363
|
+
defaultMessage: "discount codes"
|
|
391
364
|
},
|
|
392
365
|
unknownResourceType: {
|
|
393
|
-
id:
|
|
394
|
-
|
|
395
|
-
defaultMessage: 'unknown resource type'
|
|
366
|
+
id: "DeleteResourcesModal.unknown-resource-type",
|
|
367
|
+
defaultMessage: "unknown resource type"
|
|
396
368
|
}
|
|
397
369
|
});
|
|
398
370
|
|
|
@@ -681,11 +653,11 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
|
|
|
681
653
|
return /*#__PURE__*/react.css(process.env.NODE_ENV === "production" ? "" : ";label:getDefaultDropWrapperStyles;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRyb3AtYXJlYS13cmFwcGVyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF5QlkiLCJmaWxlIjoiZHJvcC1hcmVhLXdyYXBwZXIudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgdHlwZSBEcm9wem9uZVJvb3RQcm9wcyB9IGZyb20gJ3JlYWN0LWRyb3B6b25lJ1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB7IHN0eWxlcyB9IGZyb20gJy4vc3R5bGVzJ1xuaW1wb3J0IHsgdHlwZSBEcm9wQXJlYVN0YXRlIH0gZnJvbSAnLi4vLi4vLi4vQHR5cGVzJ1xuXG5pbnRlcmZhY2UgRHJvcFdyYXBwZXJQcm9wcyBleHRlbmRzIERyb3B6b25lUm9vdFByb3BzIHtcbiAgZHJvcEFyZWFTdGF0ZTogRHJvcEFyZWFTdGF0ZVxufVxuZXhwb3J0IGNvbnN0IERyb3BXcmFwcGVyID0gc3R5bGVkLmRpdjxEcm9wV3JhcHBlclByb3BzPmBcbiAgJHtzdHlsZXMuYmFzZX1cbiAgJHsocHJvcHMpID0+IHtcbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ3JlYWR5LWZvci1kcm9wJykge1xuICAgICAgcmV0dXJuIHN0eWxlcy5yZWFkeUZvckRyb3BcbiAgICB9XG4gICAgaWYgKHByb3BzLmRyb3BBcmVhU3RhdGUgPT09ICdhY3RpdmUtZHJhZycpIHtcbiAgICAgIHJldHVybiBzdHlsZXMuYWN0aXZlRHJhZ1xuICAgIH1cbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ2ZpbGUtZHJvcHBlZCcpIHtcbiAgICAgIHJldHVybiBzdHlsZXMuZmlsZURyb3BwZWRcbiAgICB9XG4gICAgcmV0dXJuIGdldERlZmF1bHREcm9wV3JhcHBlclN0eWxlcyhwcm9wcy5kcm9wQXJlYVN0YXRlKVxuICB9fVxuYFxuZnVuY3Rpb24gZ2V0RGVmYXVsdERyb3BXcmFwcGVyU3R5bGVzKF9kcm9wQXJlYVN0YXRlOiBuZXZlcikge1xuICByZXR1cm4gY3NzYGBcbn1cbiJdfQ== */");
|
|
682
654
|
}
|
|
683
655
|
|
|
684
|
-
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-
|
|
656
|
+
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-6a6bb037.cjs.dev.js' /* webpackChunkName: "active-drag-drop-area" */); }));
|
|
685
657
|
|
|
686
|
-
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-
|
|
658
|
+
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-78e1a160.cjs.dev.js' /* webpackChunkName: "enabled-drop-area" */); }));
|
|
687
659
|
|
|
688
|
-
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-
|
|
660
|
+
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-2b20f89c.cjs.dev.js' /* webpackChunkName: "filed-dropped-area" */); }));
|
|
689
661
|
|
|
690
662
|
function getDropArea(_ref) {
|
|
691
663
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -718,58 +690,48 @@ function getDropAreaState(flags) {
|
|
|
718
690
|
|
|
719
691
|
var messages$4 = reactIntl.defineMessages({
|
|
720
692
|
dragAndDropCSV: {
|
|
721
|
-
id:
|
|
722
|
-
|
|
723
|
-
defaultMessage: 'Drag and drop CSV'
|
|
693
|
+
id: "DeleteResourcesModal.dragAndDropCSV",
|
|
694
|
+
defaultMessage: "Drag and drop CSV"
|
|
724
695
|
},
|
|
725
696
|
or: {
|
|
726
|
-
id:
|
|
727
|
-
|
|
728
|
-
defaultMessage: 'or'
|
|
697
|
+
id: "DeleteResourcesModal.or",
|
|
698
|
+
defaultMessage: "or"
|
|
729
699
|
},
|
|
730
700
|
browseButton: {
|
|
731
|
-
id:
|
|
732
|
-
defaultMessage:
|
|
701
|
+
id: "DeleteResourcesModal.browseFile",
|
|
702
|
+
defaultMessage: "Browse file"
|
|
733
703
|
},
|
|
734
704
|
uploadAndPreview: {
|
|
735
|
-
id:
|
|
736
|
-
|
|
737
|
-
defaultMessage: 'Upload and preview'
|
|
705
|
+
id: "DeleteResourcesModal.uploadAndPreview",
|
|
706
|
+
defaultMessage: "Upload and preview"
|
|
738
707
|
},
|
|
739
708
|
chooseFile: {
|
|
740
|
-
id:
|
|
741
|
-
|
|
742
|
-
defaultMessage: 'Choose file'
|
|
709
|
+
id: "DeleteResourcesModal.chooseFile",
|
|
710
|
+
defaultMessage: "Choose file"
|
|
743
711
|
},
|
|
744
712
|
fileUploadFailed: {
|
|
745
|
-
id:
|
|
746
|
-
|
|
747
|
-
defaultMessage: 'File upload failed'
|
|
713
|
+
id: "DeleteResourcesModal.fileUploadFailed",
|
|
714
|
+
defaultMessage: "File upload failed"
|
|
748
715
|
},
|
|
749
716
|
fileFormatNotSupported: {
|
|
750
|
-
id:
|
|
751
|
-
|
|
752
|
-
defaultMessage: 'Invalid file format: The file is not in CSV format and cannot be processed.'
|
|
717
|
+
id: "DeleteResourcesModal.fileFormatNotSupported",
|
|
718
|
+
defaultMessage: "Invalid file format: The file is not in CSV format and cannot be processed."
|
|
753
719
|
},
|
|
754
720
|
tooManyFilesError: {
|
|
755
|
-
id:
|
|
756
|
-
|
|
757
|
-
defaultMessage: 'Multiple files detected: You can only drag and drop one file at a time.'
|
|
721
|
+
id: "DeleteResourcesModal.tooManyFilesError",
|
|
722
|
+
defaultMessage: "Multiple files detected: You can only drag and drop one file at a time."
|
|
758
723
|
},
|
|
759
724
|
genericError: {
|
|
760
|
-
id:
|
|
761
|
-
|
|
762
|
-
defaultMessage: 'Error occurred: Please try uploading the file again or contact our support team for assistance.'
|
|
725
|
+
id: "DeleteResourcesModal.genericError",
|
|
726
|
+
defaultMessage: "Error occurred: Please try uploading the file again or contact our support team for assistance."
|
|
763
727
|
},
|
|
764
728
|
dataType: {
|
|
765
|
-
id:
|
|
766
|
-
|
|
767
|
-
defaultMessage: 'Data type'
|
|
729
|
+
id: "DeleteResourcesModal.dataType",
|
|
730
|
+
defaultMessage: "Data type"
|
|
768
731
|
},
|
|
769
732
|
instructions: {
|
|
770
|
-
id:
|
|
771
|
-
|
|
772
|
-
defaultMessage: 'Instructions'
|
|
733
|
+
id: "DeleteResourcesModal.instructions",
|
|
734
|
+
defaultMessage: "Instructions"
|
|
773
735
|
}
|
|
774
736
|
});
|
|
775
737
|
|
|
@@ -783,56 +745,47 @@ const useDeleteResourcesContext = () => {
|
|
|
783
745
|
|
|
784
746
|
var messages$3 = reactIntl.defineMessages({
|
|
785
747
|
fileSizeExceededTitle: {
|
|
786
|
-
id:
|
|
787
|
-
defaultMessage:
|
|
748
|
+
id: "DeleteResourcesModal.sizeExceededTitle",
|
|
749
|
+
defaultMessage: "File size exceeded"
|
|
788
750
|
},
|
|
789
751
|
fileSizeExceededDescription: {
|
|
790
|
-
id:
|
|
791
|
-
|
|
792
|
-
defaultMessage: 'The file exceeds the maximum allowed size of {fileSizeLimit} MB'
|
|
752
|
+
id: "DeleteResourcesModal.sizeExceededDescription",
|
|
753
|
+
defaultMessage: "The file exceeds the maximum allowed size of {fileSizeLimit} MB"
|
|
793
754
|
},
|
|
794
755
|
rowLimitExceededTitle: {
|
|
795
|
-
id:
|
|
796
|
-
defaultMessage:
|
|
756
|
+
id: "DeleteResourcesModal.rowLimitExceededTitle",
|
|
757
|
+
defaultMessage: "Row limit exceeded"
|
|
797
758
|
},
|
|
798
759
|
rowLimitExceededDescription: {
|
|
799
|
-
id:
|
|
800
|
-
|
|
801
|
-
defaultMessage: 'The file contains more than the allowable maximum of {rowLimit} rows'
|
|
760
|
+
id: "DeleteResourcesModal.rowLimitExceededDescription",
|
|
761
|
+
defaultMessage: "The file contains more than the allowable maximum of {rowLimit} rows"
|
|
802
762
|
},
|
|
803
763
|
dropAreaNotEnoughRowsTitle: {
|
|
804
|
-
id:
|
|
805
|
-
|
|
806
|
-
defaultMessage: 'Invalid CSV file'
|
|
764
|
+
id: "DeleteResourcesModal.dropAreaNotEnoughRowsTitle",
|
|
765
|
+
defaultMessage: "Invalid CSV file"
|
|
807
766
|
},
|
|
808
767
|
dropAreaNotEnoughRowsDescription: {
|
|
809
|
-
id:
|
|
810
|
-
|
|
811
|
-
defaultMessage: 'Make sure the file contains a header and at least one row of data'
|
|
768
|
+
id: "DeleteResourcesModal.dropAreaNotEnoughRowsDescription",
|
|
769
|
+
defaultMessage: "Make sure the file contains a header and at least one row of data"
|
|
812
770
|
},
|
|
813
771
|
unexpectedError: {
|
|
814
|
-
id:
|
|
815
|
-
|
|
816
|
-
defaultMessage: 'An unexpected error occurred during the file upload. Please try again, or contact support if this error occurs again.'
|
|
772
|
+
id: "DeleteResourcesModal.unexpectedError",
|
|
773
|
+
defaultMessage: "An unexpected error occurred during the file upload. Please try again, or contact support if this error occurs again."
|
|
817
774
|
},
|
|
818
775
|
missingRequiredField: {
|
|
819
|
-
id:
|
|
820
|
-
|
|
821
|
-
defaultMessage: 'Missing required field'
|
|
776
|
+
id: "DeleteResourcesModal.missingRequiredField",
|
|
777
|
+
defaultMessage: "Missing required field"
|
|
822
778
|
},
|
|
823
779
|
missingKeyError: {
|
|
824
|
-
id:
|
|
825
|
-
description: 'Error message displayed when the uploaded file is missing the key field',
|
|
780
|
+
id: "DeleteResourcesModal.missingKeyError",
|
|
826
781
|
defaultMessage: "The 'key' field is missing or incomplete in some rows. Please ensure every row has a 'key' value."
|
|
827
782
|
},
|
|
828
783
|
csvFormatErrorTitle: {
|
|
829
|
-
id:
|
|
830
|
-
|
|
831
|
-
defaultMessage: 'Invalid CSV file'
|
|
784
|
+
id: "DeleteResourcesModal.csvFormatErrorTitle",
|
|
785
|
+
defaultMessage: "Invalid CSV file"
|
|
832
786
|
},
|
|
833
787
|
csvFormatErrorDescription: {
|
|
834
|
-
id:
|
|
835
|
-
description: 'Error message displayed when the CSV file is not formatted correctly',
|
|
788
|
+
id: "FileUpload.csvFormatErrorDescription",
|
|
836
789
|
defaultMessage: "Your CSV file is not formatted correctly. Make sure the file contains only one column named 'key', which includes the product keys"
|
|
837
790
|
}
|
|
838
791
|
});
|
|
@@ -1139,19 +1092,16 @@ const FileDropArea = () => {
|
|
|
1139
1092
|
|
|
1140
1093
|
var messages$2 = reactIntl.defineMessages({
|
|
1141
1094
|
fileUploadInstruction: {
|
|
1142
|
-
id:
|
|
1143
|
-
description: 'Instructions for uploading a CSV file with resource keys to delete',
|
|
1095
|
+
id: "DeleteResourcesModal.fileUploadInstruction",
|
|
1144
1096
|
defaultMessage: "The CSV file must contain the {resourceType} keys to be deleted under the header 'key'."
|
|
1145
1097
|
},
|
|
1146
1098
|
fileUploadInstructionForMaxFileSize: {
|
|
1147
|
-
id:
|
|
1148
|
-
|
|
1149
|
-
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>.'
|
|
1099
|
+
id: "DeleteResourcesModal.fileUploadInstructionForMaxFileSize",
|
|
1100
|
+
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>."
|
|
1150
1101
|
},
|
|
1151
1102
|
unpublishNote: {
|
|
1152
|
-
id:
|
|
1153
|
-
|
|
1154
|
-
defaultMessage: 'Please note that published products <b>must be unpublished</b> before they can be deleted.'
|
|
1103
|
+
id: "DeleteResourcesModal.unpublishNote",
|
|
1104
|
+
defaultMessage: "Please note that published products <b>must be unpublished</b> before they can be deleted."
|
|
1155
1105
|
}
|
|
1156
1106
|
});
|
|
1157
1107
|
|
|
@@ -1312,23 +1262,20 @@ const Uploading = () => {
|
|
|
1312
1262
|
|
|
1313
1263
|
var messages$1 = reactIntl.defineMessages({
|
|
1314
1264
|
uploadNewFile: {
|
|
1315
|
-
id:
|
|
1316
|
-
defaultMessage:
|
|
1265
|
+
id: "DeleteResourcesModal.uploadNewFile",
|
|
1266
|
+
defaultMessage: "Upload new file"
|
|
1317
1267
|
},
|
|
1318
1268
|
uploadErrorDescription: {
|
|
1319
|
-
id:
|
|
1320
|
-
|
|
1321
|
-
defaultMessage: 'There {errorsCount, plural, one {is <b>1</b> error} other {are <b>{errorsCount}</b> errors}} detected while uploading the file "{fileName}".'
|
|
1269
|
+
id: "DeleteResourcesModal.uploadError",
|
|
1270
|
+
defaultMessage: "There {errorsCount, plural, one {is <b>1</b> error} other {are <b>{errorsCount}</b> errors}} detected while uploading the file \"{fileName}\"."
|
|
1322
1271
|
},
|
|
1323
1272
|
errorType: {
|
|
1324
|
-
id:
|
|
1325
|
-
|
|
1326
|
-
defaultMessage: 'Error type'
|
|
1273
|
+
id: "DeleteResourcesModal.errorType",
|
|
1274
|
+
defaultMessage: "Error type"
|
|
1327
1275
|
},
|
|
1328
1276
|
details: {
|
|
1329
|
-
id:
|
|
1330
|
-
|
|
1331
|
-
defaultMessage: 'Details'
|
|
1277
|
+
id: "DeleteResourcesModal.details",
|
|
1278
|
+
defaultMessage: "Details"
|
|
1332
1279
|
}
|
|
1333
1280
|
});
|
|
1334
1281
|
|
|
@@ -1438,44 +1385,36 @@ function getBold$2(msg) {
|
|
|
1438
1385
|
|
|
1439
1386
|
var messages = reactIntl.defineMessages({
|
|
1440
1387
|
continue: {
|
|
1441
|
-
id:
|
|
1442
|
-
|
|
1443
|
-
defaultMessage: 'Continue'
|
|
1388
|
+
id: "DeleteResourcesModal.continue",
|
|
1389
|
+
defaultMessage: "Continue"
|
|
1444
1390
|
},
|
|
1445
1391
|
heresAPreview: {
|
|
1446
|
-
id:
|
|
1447
|
-
description: 'Here is a preview',
|
|
1392
|
+
id: "DeleteResourcesModal.heresAPreview",
|
|
1448
1393
|
defaultMessage: "Here's a preview:"
|
|
1449
1394
|
},
|
|
1450
1395
|
resourcesToBeDeleted: {
|
|
1451
|
-
id:
|
|
1452
|
-
|
|
1453
|
-
defaultMessage: '{count, plural, one {<b>{count}</b> {resourceType} to be deleted} other {<b>{count}</b> {resourceTypePlural} to be deleted}}'
|
|
1396
|
+
id: "DeleteResourcesModal.resourcesToBeDeleted",
|
|
1397
|
+
defaultMessage: "{count, plural, one {<b>{count}</b> {resourceType} to be deleted} other {<b>{count}</b> {resourceTypePlural} to be deleted}}"
|
|
1454
1398
|
},
|
|
1455
1399
|
confirmationQuestion: {
|
|
1456
|
-
id:
|
|
1457
|
-
|
|
1458
|
-
defaultMessage: 'Are you sure you want to delete the {resourceTypePlural}? '
|
|
1400
|
+
id: "DeleteResourcesModal.confirmationQuestion",
|
|
1401
|
+
defaultMessage: "Are you sure you want to delete the {resourceTypePlural}?"
|
|
1459
1402
|
},
|
|
1460
1403
|
confirmationText: {
|
|
1461
|
-
id:
|
|
1462
|
-
|
|
1463
|
-
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>.}}'
|
|
1404
|
+
id: "DeleteResourcesModal.confirmationText",
|
|
1405
|
+
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>.}}"
|
|
1464
1406
|
},
|
|
1465
1407
|
cannotBeUndoneNote: {
|
|
1466
|
-
id:
|
|
1467
|
-
|
|
1468
|
-
defaultMessage: 'This action cannot be undone.'
|
|
1408
|
+
id: "DeleteResourcesModal.cannotBeUndoneNote",
|
|
1409
|
+
defaultMessage: "This action cannot be undone."
|
|
1469
1410
|
},
|
|
1470
1411
|
importStarted: {
|
|
1471
|
-
id:
|
|
1472
|
-
|
|
1473
|
-
defaultMessage: '<b>Your import for bulk delete has started.</b><newline></newline>Go to <logsLink>Import logs</logsLink> to view the progress.'
|
|
1412
|
+
id: "DeleteResourcesModal.importStarted",
|
|
1413
|
+
defaultMessage: "<b>Your import for bulk delete has started.</b><newline></newline>Go to <logsLink>Import logs</logsLink> to view the progress."
|
|
1474
1414
|
},
|
|
1475
1415
|
preparingImport: {
|
|
1476
|
-
id:
|
|
1477
|
-
|
|
1478
|
-
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.'
|
|
1416
|
+
id: "DeleteResourcesModal.preparingImport",
|
|
1417
|
+
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."
|
|
1479
1418
|
}
|
|
1480
1419
|
});
|
|
1481
1420
|
|