@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.
@@ -255,116 +255,144 @@ let UnexpectedResourceTypeError = /*#__PURE__*/function (_Error) {
255
255
 
256
256
  var sharedMessages = reactIntl.defineMessages({
257
257
  deleteModalTitle: {
258
- id: "DeleteResourcesModal.deleteModalTitle",
259
- defaultMessage: "Bulk delete via CSV"
258
+ id: 'DeleteResourcesModal.deleteModalTitle',
259
+ description: 'The title of the modal',
260
+ defaultMessage: 'Bulk delete via CSV'
260
261
  },
261
262
  startBulkDelete: {
262
- id: "DeleteResourcesModal.startBulkDelete",
263
- defaultMessage: "Start bulk delete"
263
+ id: 'DeleteResourcesModal.startBulkDelete',
264
+ description: 'Start bulk delete button',
265
+ defaultMessage: 'Start bulk delete'
264
266
  },
265
267
  cancel: {
266
- id: "DeleteResourcesModal.cancel",
267
- defaultMessage: "Cancel"
268
+ id: 'DeleteResourcesModal.cancel',
269
+ description: 'The label for the cancel button',
270
+ defaultMessage: 'Cancel'
268
271
  },
269
272
  product: {
270
- id: "DeleteResourcesModal.product",
271
- defaultMessage: "product"
273
+ id: 'DeleteResourcesModal.product',
274
+ description: 'Label for the product resource type',
275
+ defaultMessage: 'product'
272
276
  },
273
277
  products: {
274
- id: "DeleteResourcesModal.products",
275
- defaultMessage: "products"
278
+ id: 'DeleteResourcesModal.products',
279
+ description: 'Plural form of product',
280
+ defaultMessage: 'products'
276
281
  },
277
282
  inventory: {
278
- id: "DeleteResourcesModal.inventory",
279
- defaultMessage: "inventory entry"
283
+ id: 'DeleteResourcesModal.inventory',
284
+ description: 'Label for the inventory entry resource type',
285
+ defaultMessage: 'inventory entry'
280
286
  },
281
287
  inventories: {
282
- id: "DeleteResourcesModal.inventories",
283
- defaultMessage: "inventory entries"
288
+ id: 'DeleteResourcesModal.inventories',
289
+ description: 'Plural form of inventory entry',
290
+ defaultMessage: 'inventory entries'
284
291
  },
285
292
  category: {
286
- id: "DeleteResourcesModal.category",
287
- defaultMessage: "category"
293
+ id: 'DeleteResourcesModal.category',
294
+ description: 'Label for the category resource type',
295
+ defaultMessage: 'category'
288
296
  },
289
297
  categories: {
290
- id: "DeleteResourcesModal.categories",
291
- defaultMessage: "categories"
298
+ id: 'DeleteResourcesModal.categories',
299
+ description: 'Plural form of category',
300
+ defaultMessage: 'categories'
292
301
  },
293
302
  customer: {
294
- id: "DeleteResourcesModal.customer",
295
- defaultMessage: "customer"
303
+ id: 'DeleteResourcesModal.customer',
304
+ description: 'Label for the customer resource type',
305
+ defaultMessage: 'customer'
296
306
  },
297
307
  customers: {
298
- id: "DeleteResourcesModal.customers",
299
- defaultMessage: "customers"
308
+ id: 'DeleteResourcesModal.customers',
309
+ description: 'Plural form of customer',
310
+ defaultMessage: 'customers'
300
311
  },
301
312
  order: {
302
- id: "DeleteResourcesModal.order",
303
- defaultMessage: "order"
313
+ id: 'DeleteResourcesModal.order',
314
+ description: 'Label for the order resource type',
315
+ defaultMessage: 'order'
304
316
  },
305
317
  orders: {
306
- id: "DeleteResourcesModal.orders",
307
- defaultMessage: "orders"
318
+ id: 'DeleteResourcesModal.orders',
319
+ description: 'Plural form of order',
320
+ defaultMessage: 'orders'
308
321
  },
309
322
  price: {
310
- id: "DeleteResourcesModal.price",
311
- defaultMessage: "price"
323
+ id: 'DeleteResourcesModal.price',
324
+ description: 'Label for the price resource type',
325
+ defaultMessage: 'price'
312
326
  },
313
327
  prices: {
314
- id: "DeleteResourcesModal.prices",
315
- defaultMessage: "prices"
328
+ id: 'DeleteResourcesModal.prices',
329
+ description: 'Plural form of price',
330
+ defaultMessage: 'prices'
316
331
  },
317
332
  'product-draft': {
318
- id: "DeleteResourcesModal.product-draft",
319
- defaultMessage: "product draft"
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: "DeleteResourcesModal.product-drafts",
323
- defaultMessage: "product drafts"
338
+ id: 'DeleteResourcesModal.product-drafts',
339
+ description: 'Plural form of product draft',
340
+ defaultMessage: 'product drafts'
324
341
  },
325
342
  'product-type': {
326
- id: "DeleteResourcesModal.product-type",
327
- defaultMessage: "product type"
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: "DeleteResourcesModal.product-types",
331
- defaultMessage: "product types"
348
+ id: 'DeleteResourcesModal.product-types',
349
+ description: 'Plural form of product type',
350
+ defaultMessage: 'product types'
332
351
  },
333
352
  'product-variant': {
334
- id: "DeleteResourcesModal.product-variant",
335
- defaultMessage: "product variant"
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: "DeleteResourcesModal.product-variants",
339
- defaultMessage: "product variants"
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: "DeleteResourcesModal.product-variant-patch",
343
- defaultMessage: "product variant patch"
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: "DeleteResourcesModal.product-variant-patches",
347
- defaultMessage: "product variant patches"
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: "DeleteResourcesModal.standalone-price",
351
- defaultMessage: "standalone price"
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: "DeleteResourcesModal.standalone-prices",
355
- defaultMessage: "standalone prices"
378
+ id: 'DeleteResourcesModal.standalone-prices',
379
+ description: 'Plural form of standalone price',
380
+ defaultMessage: 'standalone prices'
356
381
  },
357
382
  'discount-code': {
358
- id: "DeleteResourcesModal.discount-code",
359
- defaultMessage: "discount code"
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: "DeleteResourcesModal.discount-codes",
363
- defaultMessage: "discount codes"
388
+ id: 'DeleteResourcesModal.discount-codes',
389
+ description: 'Plural form of discount code',
390
+ defaultMessage: 'discount codes'
364
391
  },
365
392
  unknownResourceType: {
366
- id: "DeleteResourcesModal.unknown-resource-type",
367
- defaultMessage: "unknown resource type"
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
 
@@ -653,11 +681,11 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
653
681
  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== */");
654
682
  }
655
683
 
656
- var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-5f79b986.cjs.dev.js' /* webpackChunkName: "active-drag-drop-area" */); }));
684
+ var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-8826d28b.cjs.dev.js' /* webpackChunkName: "active-drag-drop-area" */); }));
657
685
 
658
- var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-8521a9f7.cjs.dev.js' /* webpackChunkName: "enabled-drop-area" */); }));
686
+ var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-32a579f8.cjs.dev.js' /* webpackChunkName: "enabled-drop-area" */); }));
659
687
 
660
- var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-8cd4e78b.cjs.dev.js' /* webpackChunkName: "filed-dropped-area" */); }));
688
+ var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-e45c3ecc.cjs.dev.js' /* webpackChunkName: "filed-dropped-area" */); }));
661
689
 
662
690
  function getDropArea(_ref) {
663
691
  let dropAreaState = _ref.dropAreaState,
@@ -690,48 +718,58 @@ function getDropAreaState(flags) {
690
718
 
691
719
  var messages$4 = reactIntl.defineMessages({
692
720
  dragAndDropCSV: {
693
- id: "DeleteResourcesModal.dragAndDropCSV",
694
- defaultMessage: "Drag and drop CSV"
721
+ id: 'DeleteResourcesModal.dragAndDropCSV',
722
+ description: 'The message telling the user to drag and drop CSV file in the file drop area',
723
+ defaultMessage: 'Drag and drop CSV'
695
724
  },
696
725
  or: {
697
- id: "DeleteResourcesModal.or",
698
- defaultMessage: "or"
726
+ id: 'DeleteResourcesModal.or',
727
+ description: 'The word "or" in the drag and drop message',
728
+ defaultMessage: 'or'
699
729
  },
700
730
  browseButton: {
701
- id: "DeleteResourcesModal.browseFile",
702
- defaultMessage: "Browse file"
731
+ id: 'DeleteResourcesModal.browseFile',
732
+ defaultMessage: 'Browse file'
703
733
  },
704
734
  uploadAndPreview: {
705
- id: "DeleteResourcesModal.uploadAndPreview",
706
- defaultMessage: "Upload and preview"
735
+ id: 'DeleteResourcesModal.uploadAndPreview',
736
+ description: 'Label for the button that uploads the file and shows the preview',
737
+ defaultMessage: 'Upload and preview'
707
738
  },
708
739
  chooseFile: {
709
- id: "DeleteResourcesModal.chooseFile",
710
- defaultMessage: "Choose file"
740
+ id: 'DeleteResourcesModal.chooseFile',
741
+ description: 'Label for a button on the file upload page, shown on ready to upload state',
742
+ defaultMessage: 'Choose file'
711
743
  },
712
744
  fileUploadFailed: {
713
- id: "DeleteResourcesModal.fileUploadFailed",
714
- defaultMessage: "File upload failed"
745
+ id: 'DeleteResourcesModal.fileUploadFailed',
746
+ description: 'A title on the file upload page, shown on file upload error state',
747
+ defaultMessage: 'File upload failed'
715
748
  },
716
749
  fileFormatNotSupported: {
717
- id: "DeleteResourcesModal.fileFormatNotSupported",
718
- defaultMessage: "Invalid file format: The file is not in CSV format and cannot be processed."
750
+ id: 'DeleteResourcesModal.fileFormatNotSupported',
751
+ description: 'Error message displayed when a user drags and drops a non-CSV file',
752
+ defaultMessage: 'Invalid file format: The file is not in CSV format and cannot be processed.'
719
753
  },
720
754
  tooManyFilesError: {
721
- id: "DeleteResourcesModal.tooManyFilesError",
722
- defaultMessage: "Multiple files detected: You can only drag and drop one file at a time."
755
+ id: 'DeleteResourcesModal.tooManyFilesError',
756
+ description: 'Error message displayed when a user drags and drops multiple files at once',
757
+ defaultMessage: 'Multiple files detected: You can only drag and drop one file at a time.'
723
758
  },
724
759
  genericError: {
725
- id: "DeleteResourcesModal.genericError",
726
- defaultMessage: "Error occurred: Please try uploading the file again or contact our support team for assistance."
760
+ id: 'DeleteResourcesModal.genericError',
761
+ description: 'Default error message for unexpected file upload issues (for unhandled cases)',
762
+ defaultMessage: 'Error occurred: Please try uploading the file again or contact our support team for assistance.'
727
763
  },
728
764
  dataType: {
729
- id: "DeleteResourcesModal.dataType",
730
- defaultMessage: "Data type"
765
+ id: 'DeleteResourcesModal.dataType',
766
+ description: 'Label for the data type selection dropdown',
767
+ defaultMessage: 'Data type'
731
768
  },
732
769
  instructions: {
733
- id: "DeleteResourcesModal.instructions",
734
- defaultMessage: "Instructions"
770
+ id: 'DeleteResourcesModal.instructions',
771
+ description: 'Label for the instructions section',
772
+ defaultMessage: 'Instructions'
735
773
  }
736
774
  });
737
775
 
@@ -745,47 +783,56 @@ const useDeleteResourcesContext = () => {
745
783
 
746
784
  var messages$3 = reactIntl.defineMessages({
747
785
  fileSizeExceededTitle: {
748
- id: "DeleteResourcesModal.sizeExceededTitle",
749
- defaultMessage: "File size exceeded"
786
+ id: 'DeleteResourcesModal.sizeExceededTitle',
787
+ defaultMessage: 'File size exceeded'
750
788
  },
751
789
  fileSizeExceededDescription: {
752
- id: "DeleteResourcesModal.sizeExceededDescription",
753
- defaultMessage: "The file exceeds the maximum allowed size of {fileSizeLimit} MB"
790
+ id: 'DeleteResourcesModal.sizeExceededDescription',
791
+ description: 'Error description when the file size exceeds the allowable limit',
792
+ defaultMessage: 'The file exceeds the maximum allowed size of {fileSizeLimit} MB'
754
793
  },
755
794
  rowLimitExceededTitle: {
756
- id: "DeleteResourcesModal.rowLimitExceededTitle",
757
- defaultMessage: "Row limit exceeded"
795
+ id: 'DeleteResourcesModal.rowLimitExceededTitle',
796
+ defaultMessage: 'Row limit exceeded'
758
797
  },
759
798
  rowLimitExceededDescription: {
760
- id: "DeleteResourcesModal.rowLimitExceededDescription",
761
- defaultMessage: "The file contains more than the allowable maximum of {rowLimit} rows"
799
+ id: 'DeleteResourcesModal.rowLimitExceededDescription',
800
+ description: 'Error description when the file contains more rows than the allowable maximum',
801
+ defaultMessage: 'The file contains more than the allowable maximum of {rowLimit} rows'
762
802
  },
763
803
  dropAreaNotEnoughRowsTitle: {
764
- id: "DeleteResourcesModal.dropAreaNotEnoughRowsTitle",
765
- defaultMessage: "Invalid CSV file"
804
+ id: 'DeleteResourcesModal.dropAreaNotEnoughRowsTitle',
805
+ description: 'Error title shown when the uploaded CSV file does not contain a header and at least one row of data',
806
+ defaultMessage: 'Invalid CSV file'
766
807
  },
767
808
  dropAreaNotEnoughRowsDescription: {
768
- id: "DeleteResourcesModal.dropAreaNotEnoughRowsDescription",
769
- defaultMessage: "Make sure the file contains a header and at least one row of data"
809
+ id: 'DeleteResourcesModal.dropAreaNotEnoughRowsDescription',
810
+ description: 'Error description shown when the uploaded CSV file does not contain a header and at least one row of data',
811
+ defaultMessage: 'Make sure the file contains a header and at least one row of data'
770
812
  },
771
813
  unexpectedError: {
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."
814
+ id: 'DeleteResourcesModal.unexpectedError',
815
+ description: 'Generic notification message when file upload fails',
816
+ defaultMessage: 'An unexpected error occurred during the file upload. Please try again, or contact support if this error occurs again.'
774
817
  },
775
818
  missingRequiredField: {
776
- id: "DeleteResourcesModal.missingRequiredField",
777
- defaultMessage: "Missing required field"
819
+ id: 'DeleteResourcesModal.missingRequiredField',
820
+ description: 'Error message displayed when a required field is missing',
821
+ defaultMessage: 'Missing required field'
778
822
  },
779
823
  missingKeyError: {
780
- id: "DeleteResourcesModal.missingKeyError",
824
+ id: 'DeleteResourcesModal.missingKeyError',
825
+ description: 'Error message displayed when the uploaded file is missing the key field',
781
826
  defaultMessage: "The 'key' field is missing or incomplete in some rows. Please ensure every row has a 'key' value."
782
827
  },
783
828
  csvFormatErrorTitle: {
784
- id: "DeleteResourcesModal.csvFormatErrorTitle",
785
- defaultMessage: "Invalid CSV file"
829
+ id: 'DeleteResourcesModal.csvFormatErrorTitle',
830
+ description: 'Error title shown when the uploaded CSV file is not formatted correctly',
831
+ defaultMessage: 'Invalid CSV file'
786
832
  },
787
833
  csvFormatErrorDescription: {
788
- id: "UnpublishProductsModal.csvFormatErrorDescription",
834
+ id: 'UnpublishProductsModal.csvFormatErrorDescription',
835
+ description: 'Error message displayed when the CSV file is not formatted correctly',
789
836
  defaultMessage: "Your CSV file is not formatted correctly. Make sure the file contains only one column named 'key', which includes the product keys"
790
837
  }
791
838
  });
@@ -1092,16 +1139,19 @@ const FileDropArea = () => {
1092
1139
 
1093
1140
  var messages$2 = reactIntl.defineMessages({
1094
1141
  fileUploadInstruction: {
1095
- id: "DeleteResourcesModal.fileUploadInstruction",
1142
+ id: 'DeleteResourcesModal.fileUploadInstruction',
1143
+ description: 'Instructions for uploading a CSV file with resource keys to delete',
1096
1144
  defaultMessage: "The CSV file must contain the {resourceType} keys to be deleted under the header 'key'."
1097
1145
  },
1098
1146
  fileUploadInstructionForMaxFileSize: {
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>."
1147
+ id: 'DeleteResourcesModal.fileUploadInstructionForMaxFileSize',
1148
+ description: 'Instructions for uploading a CSV file with a max file size',
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>.'
1101
1150
  },
1102
1151
  unpublishNote: {
1103
- id: "DeleteResourcesModal.unpublishNote",
1104
- defaultMessage: "Please note that published products <b>must be unpublished</b> before they can be deleted."
1152
+ id: 'DeleteResourcesModal.unpublishNote',
1153
+ description: 'Note to unpublish products before deleting them',
1154
+ defaultMessage: 'Please note that published products <b>must be unpublished</b> before they can be deleted.'
1105
1155
  }
1106
1156
  });
1107
1157
 
@@ -1262,20 +1312,23 @@ const Uploading = () => {
1262
1312
 
1263
1313
  var messages$1 = reactIntl.defineMessages({
1264
1314
  uploadNewFile: {
1265
- id: "DeleteResourcesModal.uploadNewFile",
1266
- defaultMessage: "Upload new file"
1315
+ id: 'DeleteResourcesModal.uploadNewFile',
1316
+ defaultMessage: 'Upload new file'
1267
1317
  },
1268
1318
  uploadErrorDescription: {
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}\"."
1319
+ id: 'DeleteResourcesModal.uploadError',
1320
+ description: 'Title when errors detected while uploading file',
1321
+ defaultMessage: 'There {errorsCount, plural, one {is <b>1</b> error} other {are <b>{errorsCount}</b> errors}} detected while uploading the file "{fileName}".'
1271
1322
  },
1272
1323
  errorType: {
1273
- id: "DeleteResourcesModal.errorType",
1274
- defaultMessage: "Error type"
1324
+ id: 'DeleteResourcesModal.errorType',
1325
+ description: 'Error type" column',
1326
+ defaultMessage: 'Error type'
1275
1327
  },
1276
1328
  details: {
1277
- id: "DeleteResourcesModal.details",
1278
- defaultMessage: "Details"
1329
+ id: 'DeleteResourcesModal.details',
1330
+ description: '"Details" column',
1331
+ defaultMessage: 'Details'
1279
1332
  }
1280
1333
  });
1281
1334
 
@@ -1385,36 +1438,44 @@ function getBold$2(msg) {
1385
1438
 
1386
1439
  var messages = reactIntl.defineMessages({
1387
1440
  continue: {
1388
- id: "DeleteResourcesModal.continue",
1389
- defaultMessage: "Continue"
1441
+ id: 'DeleteResourcesModal.continue',
1442
+ description: 'Continue button',
1443
+ defaultMessage: 'Continue'
1390
1444
  },
1391
1445
  heresAPreview: {
1392
- id: "DeleteResourcesModal.heresAPreview",
1446
+ id: 'DeleteResourcesModal.heresAPreview',
1447
+ description: 'Here is a preview',
1393
1448
  defaultMessage: "Here's a preview:"
1394
1449
  },
1395
1450
  resourcesToBeDeleted: {
1396
- id: "DeleteResourcesModal.resourcesToBeDeleted",
1397
- defaultMessage: "{count, plural, one {<b>{count}</b> {resourceType} to be deleted} other {<b>{count}</b> {resourceTypePlural} to be deleted}}"
1451
+ id: 'DeleteResourcesModal.resourcesToBeDeleted',
1452
+ description: 'Resources to be deleted',
1453
+ defaultMessage: '{count, plural, one {<b>{count}</b> {resourceType} to be deleted} other {<b>{count}</b> {resourceTypePlural} to be deleted}}'
1398
1454
  },
1399
1455
  confirmationQuestion: {
1400
- id: "DeleteResourcesModal.confirmationQuestion",
1401
- defaultMessage: "Are you sure you want to delete the {resourceTypePlural}?"
1456
+ id: 'DeleteResourcesModal.confirmationQuestion',
1457
+ description: 'Confirmation question',
1458
+ defaultMessage: 'Are you sure you want to delete the {resourceTypePlural}? '
1402
1459
  },
1403
1460
  confirmationText: {
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>.}}"
1461
+ id: 'DeleteResourcesModal.confirmationText',
1462
+ description: 'Confirmation text',
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>.}}'
1406
1464
  },
1407
1465
  cannotBeUndoneNote: {
1408
- id: "DeleteResourcesModal.cannotBeUndoneNote",
1409
- defaultMessage: "This action cannot be undone."
1466
+ id: 'DeleteResourcesModal.cannotBeUndoneNote',
1467
+ description: 'Cannot be undone note in the confirmation dialog',
1468
+ defaultMessage: 'This action cannot be undone.'
1410
1469
  },
1411
1470
  importStarted: {
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."
1471
+ id: 'DeleteResourcesModal.importStarted',
1472
+ description: 'Import started',
1473
+ defaultMessage: '<b>Your import for bulk delete has started.</b><newline></newline>Go to <logsLink>Import logs</logsLink> to view the progress.'
1414
1474
  },
1415
1475
  preparingImport: {
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."
1476
+ id: 'DeleteResourcesModal.preparingImport',
1477
+ description: 'Preparing import',
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.'
1418
1479
  }
1419
1480
  });
1420
1481
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-frontend-extensions/delete-resources-modal",
3
3
  "description": "Shared import modal for deleting resources",
4
- "version": "1.0.5",
4
+ "version": "1.0.6",
5
5
  "license": "BSD-3-Clause",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -18,7 +18,7 @@
18
18
  "@babel/runtime": "7.26.0",
19
19
  "@babel/runtime-corejs3": "7.26.0",
20
20
  "@commercetools-frontend/fullstory": "2.5.1",
21
- "@commercetools-frontend/permissions": "22.38.1",
21
+ "@commercetools-frontend/permissions": "22.39.1",
22
22
  "@commercetools/importapi-sdk": "5.20.0",
23
23
  "@emotion/react": "11.14.0",
24
24
  "@emotion/styled": "11.14.0",
@@ -38,20 +38,20 @@
38
38
  "react-dropzone": "14.3.5"
39
39
  },
40
40
  "devDependencies": {
41
- "@commercetools-frontend/actions-global": "22.38.1",
42
- "@commercetools-frontend/application-components": "22.38.1",
43
- "@commercetools-frontend/application-shell": "22.38.1",
44
- "@commercetools-frontend/application-shell-connectors": "22.38.1",
45
- "@commercetools-frontend/constants": "22.38.1",
46
- "@commercetools-frontend/i18n": "22.38.1",
47
- "@commercetools-frontend/jest-preset-mc-app": "22.38.1",
48
- "@commercetools-frontend/sdk": "22.38.1",
49
- "@commercetools-frontend/sentry": "22.38.1",
50
- "@commercetools-frontend/ui-kit": "19.22.0",
51
- "@commercetools-uikit/data-table": "19.22.0",
52
- "@commercetools-uikit/design-system": "19.22.0",
53
- "@commercetools-uikit/icons": "19.22.0",
54
- "@commercetools-uikit/select-field": "19.22.0",
41
+ "@commercetools-frontend/actions-global": "22.39.1",
42
+ "@commercetools-frontend/application-components": "22.39.1",
43
+ "@commercetools-frontend/application-shell": "22.39.1",
44
+ "@commercetools-frontend/application-shell-connectors": "22.39.1",
45
+ "@commercetools-frontend/constants": "22.39.1",
46
+ "@commercetools-frontend/i18n": "22.39.1",
47
+ "@commercetools-frontend/jest-preset-mc-app": "22.39.1",
48
+ "@commercetools-frontend/sdk": "22.39.1",
49
+ "@commercetools-frontend/sentry": "22.39.1",
50
+ "@commercetools-frontend/ui-kit": "19.22.1",
51
+ "@commercetools-uikit/data-table": "19.22.1",
52
+ "@commercetools-uikit/design-system": "19.22.1",
53
+ "@commercetools-uikit/icons": "19.22.1",
54
+ "@commercetools-uikit/select-field": "19.22.1",
55
55
  "@preconstruct/cli": "2.8.10",
56
56
  "@types/jest": "29.5.14",
57
57
  "@types/lodash.truncate": "^4.4.7",