@commercetools-frontend-extensions/delete-resources-modal 1.0.5 → 1.0.7
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-87974335.cjs.prod.js → active-drag-drop-area-53e0b16b.cjs.prod.js} +1 -1
- package/dist/{active-drag-drop-area-5f79b986.cjs.dev.js → active-drag-drop-area-93231c44.cjs.dev.js} +1 -1
- package/dist/{active-drag-drop-area-d02e950a.esm.js → active-drag-drop-area-e031e18d.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-7516c43a.esm.js → enabled-drop-area-70d68f55.esm.js} +1 -1
- package/dist/{enabled-drop-area-8521a9f7.cjs.dev.js → enabled-drop-area-7af41203.cjs.dev.js} +1 -1
- package/dist/{enabled-drop-area-d9d086a3.cjs.prod.js → enabled-drop-area-87c9471e.cjs.prod.js} +1 -1
- package/dist/{file-dropped-area-3ff29449.esm.js → file-dropped-area-4295135a.esm.js} +1 -1
- package/dist/{file-dropped-area-a4cafec7.cjs.prod.js → file-dropped-area-75383fe9.cjs.prod.js} +1 -1
- package/dist/{file-dropped-area-8cd4e78b.cjs.dev.js → file-dropped-area-ac7008c0.cjs.dev.js} +1 -1
- package/dist/{index-ffadc0d7.esm.js → index-32d54c11.esm.js} +200 -139
- package/dist/{index-fe48ced5.cjs.prod.js → index-5d6e25ff.cjs.prod.js} +198 -137
- package/dist/{index-8626f1fa.cjs.dev.js → index-f3e701f3.cjs.dev.js} +200 -139
- package/package.json +16 -16
|
@@ -255,116 +255,144 @@ let UnexpectedResourceTypeError = /*#__PURE__*/function (_Error) {
|
|
|
255
255
|
|
|
256
256
|
var sharedMessages = reactIntl.defineMessages({
|
|
257
257
|
deleteModalTitle: {
|
|
258
|
-
id:
|
|
259
|
-
|
|
258
|
+
id: 'DeleteResourcesModal.deleteModalTitle',
|
|
259
|
+
description: 'The title of the modal',
|
|
260
|
+
defaultMessage: 'Bulk delete via CSV'
|
|
260
261
|
},
|
|
261
262
|
startBulkDelete: {
|
|
262
|
-
id:
|
|
263
|
-
|
|
263
|
+
id: 'DeleteResourcesModal.startBulkDelete',
|
|
264
|
+
description: 'Start bulk delete button',
|
|
265
|
+
defaultMessage: 'Start bulk delete'
|
|
264
266
|
},
|
|
265
267
|
cancel: {
|
|
266
|
-
id:
|
|
267
|
-
|
|
268
|
+
id: 'DeleteResourcesModal.cancel',
|
|
269
|
+
description: 'The label for the cancel button',
|
|
270
|
+
defaultMessage: 'Cancel'
|
|
268
271
|
},
|
|
269
272
|
product: {
|
|
270
|
-
id:
|
|
271
|
-
|
|
273
|
+
id: 'DeleteResourcesModal.product',
|
|
274
|
+
description: 'Label for the product resource type',
|
|
275
|
+
defaultMessage: 'product'
|
|
272
276
|
},
|
|
273
277
|
products: {
|
|
274
|
-
id:
|
|
275
|
-
|
|
278
|
+
id: 'DeleteResourcesModal.products',
|
|
279
|
+
description: 'Plural form of product',
|
|
280
|
+
defaultMessage: 'products'
|
|
276
281
|
},
|
|
277
282
|
inventory: {
|
|
278
|
-
id:
|
|
279
|
-
|
|
283
|
+
id: 'DeleteResourcesModal.inventory',
|
|
284
|
+
description: 'Label for the inventory entry resource type',
|
|
285
|
+
defaultMessage: 'inventory entry'
|
|
280
286
|
},
|
|
281
287
|
inventories: {
|
|
282
|
-
id:
|
|
283
|
-
|
|
288
|
+
id: 'DeleteResourcesModal.inventories',
|
|
289
|
+
description: 'Plural form of inventory entry',
|
|
290
|
+
defaultMessage: 'inventory entries'
|
|
284
291
|
},
|
|
285
292
|
category: {
|
|
286
|
-
id:
|
|
287
|
-
|
|
293
|
+
id: 'DeleteResourcesModal.category',
|
|
294
|
+
description: 'Label for the category resource type',
|
|
295
|
+
defaultMessage: 'category'
|
|
288
296
|
},
|
|
289
297
|
categories: {
|
|
290
|
-
id:
|
|
291
|
-
|
|
298
|
+
id: 'DeleteResourcesModal.categories',
|
|
299
|
+
description: 'Plural form of category',
|
|
300
|
+
defaultMessage: 'categories'
|
|
292
301
|
},
|
|
293
302
|
customer: {
|
|
294
|
-
id:
|
|
295
|
-
|
|
303
|
+
id: 'DeleteResourcesModal.customer',
|
|
304
|
+
description: 'Label for the customer resource type',
|
|
305
|
+
defaultMessage: 'customer'
|
|
296
306
|
},
|
|
297
307
|
customers: {
|
|
298
|
-
id:
|
|
299
|
-
|
|
308
|
+
id: 'DeleteResourcesModal.customers',
|
|
309
|
+
description: 'Plural form of customer',
|
|
310
|
+
defaultMessage: 'customers'
|
|
300
311
|
},
|
|
301
312
|
order: {
|
|
302
|
-
id:
|
|
303
|
-
|
|
313
|
+
id: 'DeleteResourcesModal.order',
|
|
314
|
+
description: 'Label for the order resource type',
|
|
315
|
+
defaultMessage: 'order'
|
|
304
316
|
},
|
|
305
317
|
orders: {
|
|
306
|
-
id:
|
|
307
|
-
|
|
318
|
+
id: 'DeleteResourcesModal.orders',
|
|
319
|
+
description: 'Plural form of order',
|
|
320
|
+
defaultMessage: 'orders'
|
|
308
321
|
},
|
|
309
322
|
price: {
|
|
310
|
-
id:
|
|
311
|
-
|
|
323
|
+
id: 'DeleteResourcesModal.price',
|
|
324
|
+
description: 'Label for the price resource type',
|
|
325
|
+
defaultMessage: 'price'
|
|
312
326
|
},
|
|
313
327
|
prices: {
|
|
314
|
-
id:
|
|
315
|
-
|
|
328
|
+
id: 'DeleteResourcesModal.prices',
|
|
329
|
+
description: 'Plural form of price',
|
|
330
|
+
defaultMessage: 'prices'
|
|
316
331
|
},
|
|
317
332
|
'product-draft': {
|
|
318
|
-
id:
|
|
319
|
-
|
|
333
|
+
id: 'DeleteResourcesModal.product-draft',
|
|
334
|
+
description: 'Label for the product-draft resource type',
|
|
335
|
+
defaultMessage: 'product draft'
|
|
320
336
|
},
|
|
321
337
|
'product-drafts': {
|
|
322
|
-
id:
|
|
323
|
-
|
|
338
|
+
id: 'DeleteResourcesModal.product-drafts',
|
|
339
|
+
description: 'Plural form of product draft',
|
|
340
|
+
defaultMessage: 'product drafts'
|
|
324
341
|
},
|
|
325
342
|
'product-type': {
|
|
326
|
-
id:
|
|
327
|
-
|
|
343
|
+
id: 'DeleteResourcesModal.product-type',
|
|
344
|
+
description: 'Label for the product-type resource type',
|
|
345
|
+
defaultMessage: 'product type'
|
|
328
346
|
},
|
|
329
347
|
'product-types': {
|
|
330
|
-
id:
|
|
331
|
-
|
|
348
|
+
id: 'DeleteResourcesModal.product-types',
|
|
349
|
+
description: 'Plural form of product type',
|
|
350
|
+
defaultMessage: 'product types'
|
|
332
351
|
},
|
|
333
352
|
'product-variant': {
|
|
334
|
-
id:
|
|
335
|
-
|
|
353
|
+
id: 'DeleteResourcesModal.product-variant',
|
|
354
|
+
description: 'Label for the product-variant resource type',
|
|
355
|
+
defaultMessage: 'product variant'
|
|
336
356
|
},
|
|
337
357
|
'product-variants': {
|
|
338
|
-
id:
|
|
339
|
-
|
|
358
|
+
id: 'DeleteResourcesModal.product-variants',
|
|
359
|
+
description: 'Plural form of product variant',
|
|
360
|
+
defaultMessage: 'product variants'
|
|
340
361
|
},
|
|
341
362
|
'product-variant-patch': {
|
|
342
|
-
id:
|
|
343
|
-
|
|
363
|
+
id: 'DeleteResourcesModal.product-variant-patch',
|
|
364
|
+
description: 'Label for the product-variant-patch resource type',
|
|
365
|
+
defaultMessage: 'product variant patch'
|
|
344
366
|
},
|
|
345
367
|
'product-variant-patches': {
|
|
346
|
-
id:
|
|
347
|
-
|
|
368
|
+
id: 'DeleteResourcesModal.product-variant-patches',
|
|
369
|
+
description: 'Plural form of product variant patch',
|
|
370
|
+
defaultMessage: 'product variant patches'
|
|
348
371
|
},
|
|
349
372
|
'standalone-price': {
|
|
350
|
-
id:
|
|
351
|
-
|
|
373
|
+
id: 'DeleteResourcesModal.standalone-price',
|
|
374
|
+
description: 'Label for the standalone-price resource type',
|
|
375
|
+
defaultMessage: 'standalone price'
|
|
352
376
|
},
|
|
353
377
|
'standalone-prices': {
|
|
354
|
-
id:
|
|
355
|
-
|
|
378
|
+
id: 'DeleteResourcesModal.standalone-prices',
|
|
379
|
+
description: 'Plural form of standalone price',
|
|
380
|
+
defaultMessage: 'standalone prices'
|
|
356
381
|
},
|
|
357
382
|
'discount-code': {
|
|
358
|
-
id:
|
|
359
|
-
|
|
383
|
+
id: 'DeleteResourcesModal.discount-code',
|
|
384
|
+
description: 'Label for the discount-code resource type',
|
|
385
|
+
defaultMessage: 'discount code'
|
|
360
386
|
},
|
|
361
387
|
'discount-codes': {
|
|
362
|
-
id:
|
|
363
|
-
|
|
388
|
+
id: 'DeleteResourcesModal.discount-codes',
|
|
389
|
+
description: 'Plural form of discount code',
|
|
390
|
+
defaultMessage: 'discount codes'
|
|
364
391
|
},
|
|
365
392
|
unknownResourceType: {
|
|
366
|
-
id:
|
|
367
|
-
|
|
393
|
+
id: 'DeleteResourcesModal.unknown-resource-type',
|
|
394
|
+
description: 'Label for the unknown resource type',
|
|
395
|
+
defaultMessage: 'unknown resource type'
|
|
368
396
|
}
|
|
369
397
|
});
|
|
370
398
|
|
|
@@ -650,11 +678,11 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
|
|
|
650
678
|
return /*#__PURE__*/react.css("" , "" );
|
|
651
679
|
}
|
|
652
680
|
|
|
653
|
-
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-
|
|
681
|
+
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-53e0b16b.cjs.prod.js' /* webpackChunkName: "active-drag-drop-area" */); }));
|
|
654
682
|
|
|
655
|
-
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-
|
|
683
|
+
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-87c9471e.cjs.prod.js' /* webpackChunkName: "enabled-drop-area" */); }));
|
|
656
684
|
|
|
657
|
-
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-
|
|
685
|
+
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-75383fe9.cjs.prod.js' /* webpackChunkName: "filed-dropped-area" */); }));
|
|
658
686
|
|
|
659
687
|
function getDropArea(_ref) {
|
|
660
688
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -687,48 +715,58 @@ function getDropAreaState(flags) {
|
|
|
687
715
|
|
|
688
716
|
var messages$4 = reactIntl.defineMessages({
|
|
689
717
|
dragAndDropCSV: {
|
|
690
|
-
id:
|
|
691
|
-
|
|
718
|
+
id: 'DeleteResourcesModal.dragAndDropCSV',
|
|
719
|
+
description: 'The message telling the user to drag and drop CSV file in the file drop area',
|
|
720
|
+
defaultMessage: 'Drag and drop CSV'
|
|
692
721
|
},
|
|
693
722
|
or: {
|
|
694
|
-
id:
|
|
695
|
-
|
|
723
|
+
id: 'DeleteResourcesModal.or',
|
|
724
|
+
description: 'The word "or" in the drag and drop message',
|
|
725
|
+
defaultMessage: 'or'
|
|
696
726
|
},
|
|
697
727
|
browseButton: {
|
|
698
|
-
id:
|
|
699
|
-
defaultMessage:
|
|
728
|
+
id: 'DeleteResourcesModal.browseFile',
|
|
729
|
+
defaultMessage: 'Browse file'
|
|
700
730
|
},
|
|
701
731
|
uploadAndPreview: {
|
|
702
|
-
id:
|
|
703
|
-
|
|
732
|
+
id: 'DeleteResourcesModal.uploadAndPreview',
|
|
733
|
+
description: 'Label for the button that uploads the file and shows the preview',
|
|
734
|
+
defaultMessage: 'Upload and preview'
|
|
704
735
|
},
|
|
705
736
|
chooseFile: {
|
|
706
|
-
id:
|
|
707
|
-
|
|
737
|
+
id: 'DeleteResourcesModal.chooseFile',
|
|
738
|
+
description: 'Label for a button on the file upload page, shown on ready to upload state',
|
|
739
|
+
defaultMessage: 'Choose file'
|
|
708
740
|
},
|
|
709
741
|
fileUploadFailed: {
|
|
710
|
-
id:
|
|
711
|
-
|
|
742
|
+
id: 'DeleteResourcesModal.fileUploadFailed',
|
|
743
|
+
description: 'A title on the file upload page, shown on file upload error state',
|
|
744
|
+
defaultMessage: 'File upload failed'
|
|
712
745
|
},
|
|
713
746
|
fileFormatNotSupported: {
|
|
714
|
-
id:
|
|
715
|
-
|
|
747
|
+
id: 'DeleteResourcesModal.fileFormatNotSupported',
|
|
748
|
+
description: 'Error message displayed when a user drags and drops a non-CSV file',
|
|
749
|
+
defaultMessage: 'Invalid file format: The file is not in CSV format and cannot be processed.'
|
|
716
750
|
},
|
|
717
751
|
tooManyFilesError: {
|
|
718
|
-
id:
|
|
719
|
-
|
|
752
|
+
id: 'DeleteResourcesModal.tooManyFilesError',
|
|
753
|
+
description: 'Error message displayed when a user drags and drops multiple files at once',
|
|
754
|
+
defaultMessage: 'Multiple files detected: You can only drag and drop one file at a time.'
|
|
720
755
|
},
|
|
721
756
|
genericError: {
|
|
722
|
-
id:
|
|
723
|
-
|
|
757
|
+
id: 'DeleteResourcesModal.genericError',
|
|
758
|
+
description: 'Default error message for unexpected file upload issues (for unhandled cases)',
|
|
759
|
+
defaultMessage: 'Error occurred: Please try uploading the file again or contact our support team for assistance.'
|
|
724
760
|
},
|
|
725
761
|
dataType: {
|
|
726
|
-
id:
|
|
727
|
-
|
|
762
|
+
id: 'DeleteResourcesModal.dataType',
|
|
763
|
+
description: 'Label for the data type selection dropdown',
|
|
764
|
+
defaultMessage: 'Data type'
|
|
728
765
|
},
|
|
729
766
|
instructions: {
|
|
730
|
-
id:
|
|
731
|
-
|
|
767
|
+
id: 'DeleteResourcesModal.instructions',
|
|
768
|
+
description: 'Label for the instructions section',
|
|
769
|
+
defaultMessage: 'Instructions'
|
|
732
770
|
}
|
|
733
771
|
});
|
|
734
772
|
|
|
@@ -742,47 +780,56 @@ const useDeleteResourcesContext = () => {
|
|
|
742
780
|
|
|
743
781
|
var messages$3 = reactIntl.defineMessages({
|
|
744
782
|
fileSizeExceededTitle: {
|
|
745
|
-
id:
|
|
746
|
-
defaultMessage:
|
|
783
|
+
id: 'DeleteResourcesModal.sizeExceededTitle',
|
|
784
|
+
defaultMessage: 'File size exceeded'
|
|
747
785
|
},
|
|
748
786
|
fileSizeExceededDescription: {
|
|
749
|
-
id:
|
|
750
|
-
|
|
787
|
+
id: 'DeleteResourcesModal.sizeExceededDescription',
|
|
788
|
+
description: 'Error description when the file size exceeds the allowable limit',
|
|
789
|
+
defaultMessage: 'The file exceeds the maximum allowed size of {fileSizeLimit} MB'
|
|
751
790
|
},
|
|
752
791
|
rowLimitExceededTitle: {
|
|
753
|
-
id:
|
|
754
|
-
defaultMessage:
|
|
792
|
+
id: 'DeleteResourcesModal.rowLimitExceededTitle',
|
|
793
|
+
defaultMessage: 'Row limit exceeded'
|
|
755
794
|
},
|
|
756
795
|
rowLimitExceededDescription: {
|
|
757
|
-
id:
|
|
758
|
-
|
|
796
|
+
id: 'DeleteResourcesModal.rowLimitExceededDescription',
|
|
797
|
+
description: 'Error description when the file contains more rows than the allowable maximum',
|
|
798
|
+
defaultMessage: 'The file contains more than the allowable maximum of {rowLimit} rows'
|
|
759
799
|
},
|
|
760
800
|
dropAreaNotEnoughRowsTitle: {
|
|
761
|
-
id:
|
|
762
|
-
|
|
801
|
+
id: 'DeleteResourcesModal.dropAreaNotEnoughRowsTitle',
|
|
802
|
+
description: 'Error title shown when the uploaded CSV file does not contain a header and at least one row of data',
|
|
803
|
+
defaultMessage: 'Invalid CSV file'
|
|
763
804
|
},
|
|
764
805
|
dropAreaNotEnoughRowsDescription: {
|
|
765
|
-
id:
|
|
766
|
-
|
|
806
|
+
id: 'DeleteResourcesModal.dropAreaNotEnoughRowsDescription',
|
|
807
|
+
description: 'Error description shown when the uploaded CSV file does not contain a header and at least one row of data',
|
|
808
|
+
defaultMessage: 'Make sure the file contains a header and at least one row of data'
|
|
767
809
|
},
|
|
768
810
|
unexpectedError: {
|
|
769
|
-
id:
|
|
770
|
-
|
|
811
|
+
id: 'DeleteResourcesModal.unexpectedError',
|
|
812
|
+
description: 'Generic notification message when file upload fails',
|
|
813
|
+
defaultMessage: 'An unexpected error occurred during the file upload. Please try again, or contact support if this error occurs again.'
|
|
771
814
|
},
|
|
772
815
|
missingRequiredField: {
|
|
773
|
-
id:
|
|
774
|
-
|
|
816
|
+
id: 'DeleteResourcesModal.missingRequiredField',
|
|
817
|
+
description: 'Error message displayed when a required field is missing',
|
|
818
|
+
defaultMessage: 'Missing required field'
|
|
775
819
|
},
|
|
776
820
|
missingKeyError: {
|
|
777
|
-
id:
|
|
821
|
+
id: 'DeleteResourcesModal.missingKeyError',
|
|
822
|
+
description: 'Error message displayed when the uploaded file is missing the key field',
|
|
778
823
|
defaultMessage: "The 'key' field is missing or incomplete in some rows. Please ensure every row has a 'key' value."
|
|
779
824
|
},
|
|
780
825
|
csvFormatErrorTitle: {
|
|
781
|
-
id:
|
|
782
|
-
|
|
826
|
+
id: 'DeleteResourcesModal.csvFormatErrorTitle',
|
|
827
|
+
description: 'Error title shown when the uploaded CSV file is not formatted correctly',
|
|
828
|
+
defaultMessage: 'Invalid CSV file'
|
|
783
829
|
},
|
|
784
830
|
csvFormatErrorDescription: {
|
|
785
|
-
id:
|
|
831
|
+
id: 'UnpublishProductsModal.csvFormatErrorDescription',
|
|
832
|
+
description: 'Error message displayed when the CSV file is not formatted correctly',
|
|
786
833
|
defaultMessage: "Your CSV file is not formatted correctly. Make sure the file contains only one column named 'key', which includes the product keys"
|
|
787
834
|
}
|
|
788
835
|
});
|
|
@@ -1089,16 +1136,19 @@ const FileDropArea = () => {
|
|
|
1089
1136
|
|
|
1090
1137
|
var messages$2 = reactIntl.defineMessages({
|
|
1091
1138
|
fileUploadInstruction: {
|
|
1092
|
-
id:
|
|
1139
|
+
id: 'DeleteResourcesModal.fileUploadInstruction',
|
|
1140
|
+
description: 'Instructions for uploading a CSV file with resource keys to delete',
|
|
1093
1141
|
defaultMessage: "The CSV file must contain the {resourceType} keys to be deleted under the header 'key'."
|
|
1094
1142
|
},
|
|
1095
1143
|
fileUploadInstructionForMaxFileSize: {
|
|
1096
|
-
id:
|
|
1097
|
-
|
|
1144
|
+
id: 'DeleteResourcesModal.fileUploadInstructionForMaxFileSize',
|
|
1145
|
+
description: 'Instructions for uploading a CSV file with a max file size',
|
|
1146
|
+
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>.'
|
|
1098
1147
|
},
|
|
1099
1148
|
unpublishNote: {
|
|
1100
|
-
id:
|
|
1101
|
-
|
|
1149
|
+
id: 'DeleteResourcesModal.unpublishNote',
|
|
1150
|
+
description: 'Note to unpublish products before deleting them',
|
|
1151
|
+
defaultMessage: 'Please note that published products <b>must be unpublished</b> before they can be deleted.'
|
|
1102
1152
|
}
|
|
1103
1153
|
});
|
|
1104
1154
|
|
|
@@ -1118,7 +1168,7 @@ const Instructions = () => {
|
|
|
1118
1168
|
}), ' ', intl.formatMessage(messages$2.unpublishNote, {
|
|
1119
1169
|
b: msg => jsxRuntime.jsx("b", {
|
|
1120
1170
|
children: msg
|
|
1121
|
-
})
|
|
1171
|
+
}, "bold")
|
|
1122
1172
|
})]
|
|
1123
1173
|
}), jsxRuntime.jsx(uiKit.Text.Body, {
|
|
1124
1174
|
intlMessage: _objectSpread$6(_objectSpread$6({}, messages$2.fileUploadInstructionForMaxFileSize), {}, {
|
|
@@ -1130,13 +1180,13 @@ const Instructions = () => {
|
|
|
1130
1180
|
isExternal: true,
|
|
1131
1181
|
to: documentTemplateLink,
|
|
1132
1182
|
children: msg
|
|
1133
|
-
}),
|
|
1183
|
+
}, "csvTemplateLink"),
|
|
1134
1184
|
documentationLink: msg => jsxRuntime.jsx(uiKit.Link, {
|
|
1135
1185
|
tone: "secondary",
|
|
1136
1186
|
isExternal: true,
|
|
1137
1187
|
to: documentationLink,
|
|
1138
1188
|
children: msg
|
|
1139
|
-
})
|
|
1189
|
+
}, "documentationLink")
|
|
1140
1190
|
}
|
|
1141
1191
|
})
|
|
1142
1192
|
})]
|
|
@@ -1259,20 +1309,23 @@ const Uploading = () => {
|
|
|
1259
1309
|
|
|
1260
1310
|
var messages$1 = reactIntl.defineMessages({
|
|
1261
1311
|
uploadNewFile: {
|
|
1262
|
-
id:
|
|
1263
|
-
defaultMessage:
|
|
1312
|
+
id: 'DeleteResourcesModal.uploadNewFile',
|
|
1313
|
+
defaultMessage: 'Upload new file'
|
|
1264
1314
|
},
|
|
1265
1315
|
uploadErrorDescription: {
|
|
1266
|
-
id:
|
|
1267
|
-
|
|
1316
|
+
id: 'DeleteResourcesModal.uploadError',
|
|
1317
|
+
description: 'Title when errors detected while uploading file',
|
|
1318
|
+
defaultMessage: 'There {errorsCount, plural, one {is <b>1</b> error} other {are <b>{errorsCount}</b> errors}} detected while uploading the file "{fileName}".'
|
|
1268
1319
|
},
|
|
1269
1320
|
errorType: {
|
|
1270
|
-
id:
|
|
1271
|
-
|
|
1321
|
+
id: 'DeleteResourcesModal.errorType',
|
|
1322
|
+
description: 'Error type" column',
|
|
1323
|
+
defaultMessage: 'Error type'
|
|
1272
1324
|
},
|
|
1273
1325
|
details: {
|
|
1274
|
-
id:
|
|
1275
|
-
|
|
1326
|
+
id: 'DeleteResourcesModal.details',
|
|
1327
|
+
description: '"Details" column',
|
|
1328
|
+
defaultMessage: 'Details'
|
|
1276
1329
|
}
|
|
1277
1330
|
});
|
|
1278
1331
|
|
|
@@ -1377,51 +1430,59 @@ function getBold$2(msg) {
|
|
|
1377
1430
|
as: "span",
|
|
1378
1431
|
isBold: true,
|
|
1379
1432
|
children: msg
|
|
1380
|
-
});
|
|
1433
|
+
}, crypto.randomUUID());
|
|
1381
1434
|
}
|
|
1382
1435
|
|
|
1383
1436
|
var messages = reactIntl.defineMessages({
|
|
1384
1437
|
continue: {
|
|
1385
|
-
id:
|
|
1386
|
-
|
|
1438
|
+
id: 'DeleteResourcesModal.continue',
|
|
1439
|
+
description: 'Continue button',
|
|
1440
|
+
defaultMessage: 'Continue'
|
|
1387
1441
|
},
|
|
1388
1442
|
heresAPreview: {
|
|
1389
|
-
id:
|
|
1443
|
+
id: 'DeleteResourcesModal.heresAPreview',
|
|
1444
|
+
description: 'Here is a preview',
|
|
1390
1445
|
defaultMessage: "Here's a preview:"
|
|
1391
1446
|
},
|
|
1392
1447
|
resourcesToBeDeleted: {
|
|
1393
|
-
id:
|
|
1394
|
-
|
|
1448
|
+
id: 'DeleteResourcesModal.resourcesToBeDeleted',
|
|
1449
|
+
description: 'Resources to be deleted',
|
|
1450
|
+
defaultMessage: '{count, plural, one {<b>{count}</b> {resourceType} to be deleted} other {<b>{count}</b> {resourceTypePlural} to be deleted}}'
|
|
1395
1451
|
},
|
|
1396
1452
|
confirmationQuestion: {
|
|
1397
|
-
id:
|
|
1398
|
-
|
|
1453
|
+
id: 'DeleteResourcesModal.confirmationQuestion',
|
|
1454
|
+
description: 'Confirmation question',
|
|
1455
|
+
defaultMessage: 'Are you sure you want to delete the {resourceTypePlural}? '
|
|
1399
1456
|
},
|
|
1400
1457
|
confirmationText: {
|
|
1401
|
-
id:
|
|
1402
|
-
|
|
1458
|
+
id: 'DeleteResourcesModal.confirmationText',
|
|
1459
|
+
description: 'Confirmation text',
|
|
1460
|
+
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>.}}'
|
|
1403
1461
|
},
|
|
1404
1462
|
cannotBeUndoneNote: {
|
|
1405
|
-
id:
|
|
1406
|
-
|
|
1463
|
+
id: 'DeleteResourcesModal.cannotBeUndoneNote',
|
|
1464
|
+
description: 'Cannot be undone note in the confirmation dialog',
|
|
1465
|
+
defaultMessage: 'This action cannot be undone.'
|
|
1407
1466
|
},
|
|
1408
1467
|
importStarted: {
|
|
1409
|
-
id:
|
|
1410
|
-
|
|
1468
|
+
id: 'DeleteResourcesModal.importStarted',
|
|
1469
|
+
description: 'Import started',
|
|
1470
|
+
defaultMessage: '<b>Your import for bulk delete has started.</b><newline></newline>Go to <logsLink>Import logs</logsLink> to view the progress.'
|
|
1411
1471
|
},
|
|
1412
1472
|
preparingImport: {
|
|
1413
|
-
id:
|
|
1414
|
-
|
|
1473
|
+
id: 'DeleteResourcesModal.preparingImport',
|
|
1474
|
+
description: 'Preparing import',
|
|
1475
|
+
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.'
|
|
1415
1476
|
}
|
|
1416
1477
|
});
|
|
1417
1478
|
|
|
1418
1479
|
function ownKeys$2(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1419
1480
|
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$2(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$2(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1420
|
-
const getNewLine = () => jsxRuntime.jsx("br", {});
|
|
1481
|
+
const getNewLine = () => jsxRuntime.jsx("br", {}, "break");
|
|
1421
1482
|
const getImportLogsLink = (msg, projectKey) => jsxRuntime.jsx(uiKit.Link, {
|
|
1422
1483
|
to: `/${projectKey}/operations/import/logs`,
|
|
1423
1484
|
children: msg
|
|
1424
|
-
});
|
|
1485
|
+
}, "link");
|
|
1425
1486
|
var _ref2 = {
|
|
1426
1487
|
name: "1vs9i7r",
|
|
1427
1488
|
styles: "width:360px"
|
|
@@ -1575,7 +1636,7 @@ function getBold$1(msg) {
|
|
|
1575
1636
|
as: "span",
|
|
1576
1637
|
isBold: true,
|
|
1577
1638
|
children: msg
|
|
1578
|
-
});
|
|
1639
|
+
}, crypto.randomUUID());
|
|
1579
1640
|
}
|
|
1580
1641
|
|
|
1581
1642
|
function ownKeys$1(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -1633,7 +1694,7 @@ function getBold(msg) {
|
|
|
1633
1694
|
as: "span",
|
|
1634
1695
|
isBold: true,
|
|
1635
1696
|
children: msg
|
|
1636
|
-
});
|
|
1697
|
+
}, `bold-${msg}`);
|
|
1637
1698
|
}
|
|
1638
1699
|
|
|
1639
1700
|
const steps = {
|