@commercetools-frontend-extensions/unpublish-products-modal 1.1.4 → 1.1.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.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-7753d112.cjs.prod.js');
3
+ var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-37972e5b.cjs.prod.js');
4
4
  var jsxRuntime = require('@emotion/react/jsx-runtime');
5
5
  require('@babel/runtime-corejs3/core-js-stable/object/keys');
6
6
  require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
@@ -1,4 +1,4 @@
1
- import { F as FileDropped, E as EnabledDropArea } from './index-5eba85d2.esm.js';
1
+ import { F as FileDropped, E as EnabledDropArea } from './index-545d775d.esm.js';
2
2
  import { jsx } from '@emotion/react/jsx-runtime';
3
3
  import '@babel/runtime-corejs3/core-js-stable/object/keys';
4
4
  import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-ab633de3.cjs.dev.js');
3
+ var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-a251a401.cjs.dev.js');
4
4
  var jsxRuntime = require('@emotion/react/jsx-runtime');
5
5
  require('@babel/runtime-corejs3/core-js-stable/object/keys');
6
6
  require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-ab633de3.cjs.dev.js');
5
+ var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-a251a401.cjs.dev.js');
6
6
  require('@babel/runtime-corejs3/core-js-stable/object/keys');
7
7
  require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
8
8
  require('@babel/runtime-corejs3/core-js-stable/instance/filter');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-7753d112.cjs.prod.js');
5
+ var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-37972e5b.cjs.prod.js');
6
6
  require('@babel/runtime-corejs3/core-js-stable/object/keys');
7
7
  require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
8
8
  require('@babel/runtime-corejs3/core-js-stable/instance/filter');
@@ -1,4 +1,4 @@
1
- export { U as default } from './index-5eba85d2.esm.js';
1
+ export { U as default } from './index-545d775d.esm.js';
2
2
  import '@babel/runtime-corejs3/core-js-stable/object/keys';
3
3
  import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
4
4
  import '@babel/runtime-corejs3/core-js-stable/instance/filter';
@@ -11,7 +11,7 @@ var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/obje
11
11
  var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
12
12
  require('react');
13
13
  var uiKit = require('@commercetools-frontend/ui-kit');
14
- var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-ab633de3.cjs.dev.js');
14
+ var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-a251a401.cjs.dev.js');
15
15
  var jsxRuntime = require('@emotion/react/jsx-runtime');
16
16
  require('react-intl');
17
17
  require('@commercetools-frontend/application-shell-connectors');
@@ -9,7 +9,7 @@ import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object
9
9
  import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
10
10
  import 'react';
11
11
  import { Spacings, Text, Link } from '@commercetools-frontend/ui-kit';
12
- import { m as messages } from './index-5eba85d2.esm.js';
12
+ import { m as messages } from './index-545d775d.esm.js';
13
13
  import { jsxs, jsx } from '@emotion/react/jsx-runtime';
14
14
  import 'react-intl';
15
15
  import '@commercetools-frontend/application-shell-connectors';
@@ -11,7 +11,7 @@ var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/obje
11
11
  var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
12
12
  require('react');
13
13
  var uiKit = require('@commercetools-frontend/ui-kit');
14
- var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-7753d112.cjs.prod.js');
14
+ var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-37972e5b.cjs.prod.js');
15
15
  var jsxRuntime = require('@emotion/react/jsx-runtime');
16
16
  require('react-intl');
17
17
  require('@commercetools-frontend/application-shell-connectors');
@@ -1,6 +1,6 @@
1
1
  import { useIntl } from 'react-intl';
2
2
  import { Spacings, PaperclipIcon, Constraints, Text, SecondaryButton } from '@commercetools-frontend/ui-kit';
3
- import { u as useUnpublishProductsContext, m as messages } from './index-5eba85d2.esm.js';
3
+ import { u as useUnpublishProductsContext, m as messages } from './index-545d775d.esm.js';
4
4
  import 'react';
5
5
  import '@commercetools-frontend/actions-global';
6
6
  import '@commercetools-frontend/application-shell-connectors';
@@ -2,7 +2,7 @@
2
2
 
3
3
  var reactIntl = require('react-intl');
4
4
  var uiKit = require('@commercetools-frontend/ui-kit');
5
- var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-7753d112.cjs.prod.js');
5
+ var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-37972e5b.cjs.prod.js');
6
6
  require('react');
7
7
  require('@commercetools-frontend/actions-global');
8
8
  require('@commercetools-frontend/application-shell-connectors');
@@ -2,7 +2,7 @@
2
2
 
3
3
  var reactIntl = require('react-intl');
4
4
  var uiKit = require('@commercetools-frontend/ui-kit');
5
- var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-ab633de3.cjs.dev.js');
5
+ var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-a251a401.cjs.dev.js');
6
6
  require('react');
7
7
  require('@commercetools-frontend/actions-global');
8
8
  require('@commercetools-frontend/application-shell-connectors');
@@ -416,11 +416,11 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
416
416
  return /*#__PURE__*/react.css("" , "" );
417
417
  }
418
418
 
419
- var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-cb410640.cjs.prod.js' /* webpackChunkName: "active-drag-drop-area" */); }));
419
+ var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-0967d70c.cjs.prod.js' /* webpackChunkName: "active-drag-drop-area" */); }));
420
420
 
421
- var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-6625704b.cjs.prod.js' /* webpackChunkName: "enabled-drop-area" */); }));
421
+ var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-fcac374b.cjs.prod.js' /* webpackChunkName: "enabled-drop-area" */); }));
422
422
 
423
- var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-81a018c7.cjs.prod.js' /* webpackChunkName: "filed-dropped-area" */); }));
423
+ var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-59513bcc.cjs.prod.js' /* webpackChunkName: "filed-dropped-area" */); }));
424
424
 
425
425
  function getDropArea(_ref) {
426
426
  let dropAreaState = _ref.dropAreaState,
@@ -453,48 +453,58 @@ function getDropAreaState(flags) {
453
453
 
454
454
  var messages$4 = reactIntl.defineMessages({
455
455
  dragAndDropCSV: {
456
- id: "UnpublishProductsModal.dragAndDropCSV",
457
- defaultMessage: "Drag and drop CSV"
456
+ id: 'UnpublishProductsModal.dragAndDropCSV',
457
+ description: 'The message telling the user to drag and drop CSV file in the file drop area',
458
+ defaultMessage: 'Drag and drop CSV'
458
459
  },
459
460
  or: {
460
- id: "UnpublishProductsModal.or",
461
- defaultMessage: "or"
461
+ id: 'UnpublishProductsModal.or',
462
+ description: 'The word "or" in the drag and drop message',
463
+ defaultMessage: 'or'
462
464
  },
463
465
  browseButton: {
464
- id: "UnpublishProductsModal.browseFile",
465
- defaultMessage: "Browse file"
466
+ id: 'UnpublishProductsModal.browseFile',
467
+ defaultMessage: 'Browse file'
466
468
  },
467
469
  uploadAndPreview: {
468
- id: "UnpublishProductsModal.uploadAndPreview",
469
- defaultMessage: "Upload and preview"
470
+ id: 'UnpublishProductsModal.uploadAndPreview',
471
+ description: 'Label for the button that uploads the file and shows the preview',
472
+ defaultMessage: 'Upload and preview'
470
473
  },
471
474
  chooseFile: {
472
- id: "UnpublishProductsModal.chooseFile",
473
- defaultMessage: "Choose file"
475
+ id: 'UnpublishProductsModal.chooseFile',
476
+ description: 'Label for a button on the file upload page, shown on ready to upload state',
477
+ defaultMessage: 'Choose file'
474
478
  },
475
479
  fileUploadFailed: {
476
- id: "UnpublishProductsModal.fileUploadFailed",
477
- defaultMessage: "File upload failed"
480
+ id: 'UnpublishProductsModal.fileUploadFailed',
481
+ description: 'A title on the file upload page, shown on file upload error state',
482
+ defaultMessage: 'File upload failed'
478
483
  },
479
484
  fileFormatNotSupported: {
480
- id: "UnpublishProductsModal.fileFormatNotSupported",
481
- defaultMessage: "Invalid file format: The file is not in CSV format and cannot be processed."
485
+ id: 'UnpublishProductsModal.fileFormatNotSupported',
486
+ description: 'Error message displayed when a user drags and drops a non-CSV file',
487
+ defaultMessage: 'Invalid file format: The file is not in CSV format and cannot be processed.'
482
488
  },
483
489
  tooManyFilesError: {
484
- id: "UnpublishProductsModal.tooManyFilesError",
485
- defaultMessage: "Multiple files detected: You can only drag and drop one file at a time."
490
+ id: 'UnpublishProductsModal.tooManyFilesError',
491
+ description: 'Error message displayed when a user drags and drops multiple files at once',
492
+ defaultMessage: 'Multiple files detected: You can only drag and drop one file at a time.'
486
493
  },
487
494
  genericError: {
488
- id: "UnpublishProductsModal.genericError",
489
- defaultMessage: "Error occurred: Please try uploading the file again or contact our support team for assistance."
495
+ id: 'UnpublishProductsModal.genericError',
496
+ description: 'Default error message for unexpected file upload issues (for unhandled cases)',
497
+ defaultMessage: 'Error occurred: Please try uploading the file again or contact our support team for assistance.'
490
498
  },
491
499
  dataType: {
492
- id: "UnpublishProductsModal.dataType",
493
- defaultMessage: "Data type"
500
+ id: 'UnpublishProductsModal.dataType',
501
+ description: 'Label for the data type selection dropdown',
502
+ defaultMessage: 'Data type'
494
503
  },
495
504
  instructions: {
496
- id: "UnpublishProductsModal.instructions",
497
- defaultMessage: "Instructions"
505
+ id: 'UnpublishProductsModal.instructions',
506
+ description: 'Label for the instructions section',
507
+ defaultMessage: 'Instructions'
498
508
  }
499
509
  });
500
510
 
@@ -540,47 +550,56 @@ const useUnpublishProductsContext = () => {
540
550
 
541
551
  var messages$3 = reactIntl.defineMessages({
542
552
  fileSizeExceededTitle: {
543
- id: "UnpublishProductsModal.sizeExceededTitle",
544
- defaultMessage: "File size exceeded"
553
+ id: 'UnpublishProductsModal.sizeExceededTitle',
554
+ defaultMessage: 'File size exceeded'
545
555
  },
546
556
  fileSizeExceededDescription: {
547
- id: "UnpublishProductsModal.sizeExceededDescription",
548
- defaultMessage: "The file exceeds the maximum allowed size of {fileSizeLimit} MB"
557
+ id: 'UnpublishProductsModal.sizeExceededDescription',
558
+ description: 'Error description when the file size exceeds the allowable limit',
559
+ defaultMessage: 'The file exceeds the maximum allowed size of {fileSizeLimit} MB'
549
560
  },
550
561
  rowLimitExceededTitle: {
551
- id: "UnpublishProductsModal.rowLimitExceededTitle",
552
- defaultMessage: "Row limit exceeded"
562
+ id: 'UnpublishProductsModal.rowLimitExceededTitle',
563
+ defaultMessage: 'Row limit exceeded'
553
564
  },
554
565
  rowLimitExceededDescription: {
555
- id: "UnpublishProductsModal.rowLimitExceededDescription",
556
- defaultMessage: "The file contains more than the allowable maximum of {rowLimit} rows"
566
+ id: 'UnpublishProductsModal.rowLimitExceededDescription',
567
+ description: 'Error description when the file contains more rows than the allowable maximum',
568
+ defaultMessage: 'The file contains more than the allowable maximum of {rowLimit} rows'
557
569
  },
558
570
  dropAreaNotEnoughRowsTitle: {
559
- id: "UnpublishProductsModal.dropAreaNotEnoughRowsTitle",
560
- defaultMessage: "Invalid CSV file"
571
+ id: 'UnpublishProductsModal.dropAreaNotEnoughRowsTitle',
572
+ description: 'Error title shown when the uploaded CSV file does not contain a header and at least one row of data',
573
+ defaultMessage: 'Invalid CSV file'
561
574
  },
562
575
  dropAreaNotEnoughRowsDescription: {
563
- id: "UnpublishProductsModal.dropAreaNotEnoughRowsDescription",
564
- defaultMessage: "Make sure the file contains a header and at least one row of data"
576
+ id: 'UnpublishProductsModal.dropAreaNotEnoughRowsDescription',
577
+ description: 'Error description shown when the uploaded CSV file does not contain a header and at least one row of data',
578
+ defaultMessage: 'Make sure the file contains a header and at least one row of data'
565
579
  },
566
580
  unexpectedError: {
567
- id: "UnpublishProductsModal.unexpectedError",
568
- defaultMessage: "An unexpected error occurred during the file upload. Please try again, or contact support if this error occurs again."
581
+ id: 'UnpublishProductsModal.unexpectedError',
582
+ description: 'Generic notification message when file upload fails',
583
+ defaultMessage: 'An unexpected error occurred during the file upload. Please try again, or contact support if this error occurs again.'
569
584
  },
570
585
  missingRequiredField: {
571
- id: "UnpublishProductsModal.missingRequiredField",
572
- defaultMessage: "Missing required field"
586
+ id: 'UnpublishProductsModal.missingRequiredField',
587
+ description: 'Error message displayed when a required field is missing',
588
+ defaultMessage: 'Missing required field'
573
589
  },
574
590
  missingKeyError: {
575
- id: "UnpublishProductsModal.missingKeyError",
591
+ id: 'UnpublishProductsModal.missingKeyError',
592
+ description: 'Error message displayed when the uploaded file is missing the key field',
576
593
  defaultMessage: "The 'key' field is missing or incomplete in some rows. Please ensure every row has a 'key' value."
577
594
  },
578
595
  csvFormatErrorTitle: {
579
- id: "UnpublishProductsModal.csvFormatErrorTitle",
580
- defaultMessage: "Invalid CSV file"
596
+ id: 'UnpublishProductsModal.csvFormatErrorTitle',
597
+ description: 'Error title shown when the uploaded CSV file is not formatted correctly',
598
+ defaultMessage: 'Invalid CSV file'
581
599
  },
582
600
  csvFormatErrorDescription: {
583
- id: "UnpublishProductsModal.csvFormatErrorDescription",
601
+ id: 'UnpublishProductsModal.csvFormatErrorDescription',
602
+ description: 'Error message displayed when the CSV file is not formatted correctly',
584
603
  defaultMessage: "Your CSV file is not formatted correctly. Make sure the file contains only one column named 'key', which includes the product keys"
585
604
  }
586
605
  });
@@ -883,22 +902,26 @@ const FileDropArea = () => {
883
902
 
884
903
  var sharedMessages = reactIntl.defineMessages({
885
904
  unpublishModalTitle: {
886
- id: "UnpublishProductsModal.unpublishModalTitle",
887
- defaultMessage: "Bulk unpublish via CSV"
905
+ id: 'UnpublishProductsModal.unpublishModalTitle',
906
+ description: 'The title of the modal',
907
+ defaultMessage: 'Bulk unpublish via CSV'
888
908
  },
889
909
  startBulkUnpublish: {
890
- id: "UnpublishProductsModal.startBulkUnpublish",
891
- defaultMessage: "Start bulk unpublish"
910
+ id: 'UnpublishProductsModal.startBulkUnpublish',
911
+ description: 'Start bulk unpublish button',
912
+ defaultMessage: 'Start bulk unpublish'
892
913
  },
893
914
  cancel: {
894
- id: "UnpublishProductsModal.cancel",
895
- defaultMessage: "Cancel"
915
+ id: 'UnpublishProductsModal.cancel',
916
+ description: 'The label for the cancel button',
917
+ defaultMessage: 'Cancel'
896
918
  }
897
919
  });
898
920
 
899
921
  var messages$2 = reactIntl.defineMessages({
900
922
  fileUploadInstructions: {
901
- id: "UnpublishProductsModal.fileUploadInstructions",
923
+ id: 'UnpublishProductsModal.fileUploadInstructions',
924
+ description: 'Instructions for uploading a CSV file with product keys to unpublish',
902
925
  defaultMessage: "The CSV file must contain the product keys to be unpublished under the header 'key'. 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>."
903
926
  }
904
927
  });
@@ -1045,20 +1068,23 @@ const Uploading = () => {
1045
1068
 
1046
1069
  var messages$1 = reactIntl.defineMessages({
1047
1070
  uploadNewFile: {
1048
- id: "UnpublishProductsModal.uploadNewFile",
1049
- defaultMessage: "Upload new file"
1071
+ id: 'UnpublishProductsModal.uploadNewFile',
1072
+ defaultMessage: 'Upload new file'
1050
1073
  },
1051
1074
  uploadErrorDescription: {
1052
- id: "UnpublishProductsModal.uploadError",
1053
- defaultMessage: "There {errorsCount, plural, one {is <b>1</b> error} other {are <b>{errorsCount}</b> errors}} detected while uploading the file \"{fileName}\"."
1075
+ id: 'UnpublishProductsModal.uploadError',
1076
+ description: 'Title when errors detected while uploading file',
1077
+ defaultMessage: 'There {errorsCount, plural, one {is <b>1</b> error} other {are <b>{errorsCount}</b> errors}} detected while uploading the file "{fileName}".'
1054
1078
  },
1055
1079
  errorType: {
1056
- id: "UnpublishProductsModal.errorType",
1057
- defaultMessage: "Error type"
1080
+ id: 'UnpublishProductsModal.errorType',
1081
+ description: 'Error type" column',
1082
+ defaultMessage: 'Error type'
1058
1083
  },
1059
1084
  details: {
1060
- id: "UnpublishProductsModal.details",
1061
- defaultMessage: "Details"
1085
+ id: 'UnpublishProductsModal.details',
1086
+ description: '"Details" column',
1087
+ defaultMessage: 'Details'
1062
1088
  }
1063
1089
  });
1064
1090
 
@@ -1168,32 +1194,39 @@ function getBold$2(msg) {
1168
1194
 
1169
1195
  var messages = reactIntl.defineMessages({
1170
1196
  continue: {
1171
- id: "UnpublishProductsModal.continue",
1172
- defaultMessage: "Continue"
1197
+ id: 'UnpublishProductsModal.continue',
1198
+ description: 'Continue button',
1199
+ defaultMessage: 'Continue'
1173
1200
  },
1174
1201
  heresAPreview: {
1175
- id: "UnpublishProductsModal.heresAPreview",
1202
+ id: 'UnpublishProductsModal.heresAPreview',
1203
+ description: 'Here is a preview',
1176
1204
  defaultMessage: "Here's a preview:"
1177
1205
  },
1178
1206
  productsToBeUnpublished: {
1179
- id: "UnpublishProductsModal.productsToBeUnpublished",
1180
- defaultMessage: "{count, plural, one {<b>{count}</b> product to be unpublished} other {<b>{count}</b> products to be unpublished}}"
1207
+ id: 'UnpublishProductsModal.productsToBeUnpublished',
1208
+ description: 'Products to be unpublished',
1209
+ defaultMessage: '{count, plural, one {<b>{count}</b> product to be unpublished} other {<b>{count}</b> products to be unpublished}}'
1181
1210
  },
1182
1211
  confirmationQuestion: {
1183
- id: "UnpublishProductsModal.confirmationQuestion",
1184
- defaultMessage: "Are you sure you want to unpublish the products?"
1212
+ id: 'UnpublishProductsModal.confirmationQuestion',
1213
+ description: 'Confirmation question',
1214
+ defaultMessage: 'Are you sure you want to unpublish the products? '
1185
1215
  },
1186
1216
  confirmationText: {
1187
- id: "UnpublishProductsModal.confirmationText",
1188
- defaultMessage: "{count, plural, one {You are about to unpublish <b>{count}</b> product in the project: <b>{projectName}</b>.} other {You are about to unpublish <b>{count}</b> products in the project: <b>{projectName}</b>.}}"
1217
+ id: 'UnpublishProductsModal.confirmationText',
1218
+ description: 'Confirmation text',
1219
+ defaultMessage: '{count, plural, one {You are about to unpublish <b>{count}</b> product in the project: <b>{projectName}</b>.} other {You are about to unpublish <b>{count}</b> products in the project: <b>{projectName}</b>.}}'
1189
1220
  },
1190
1221
  importStarted: {
1191
- id: "UnpublishProductsModal.importStarted",
1192
- defaultMessage: "<b>Your import for bulk unpublish has started.</b><newline></newline>Go to <logsLink>Import logs</logsLink> to view the progress."
1222
+ id: 'UnpublishProductsModal.importStarted',
1223
+ description: 'Import started',
1224
+ defaultMessage: '<b>Your import for bulk unpublish has started.</b><newline></newline>Go to <logsLink>Import logs</logsLink> to view the progress.'
1193
1225
  },
1194
1226
  preparingImport: {
1195
- id: "UnpublishProductsModal.preparingImport",
1196
- defaultMessage: "<b>Prepare bulk unpublish.</b><newline></newline>Once preparation is complete, you can track the progress <logsLink>in the Import logs</logsLink>. The data will be unpublished after the import is finalized."
1227
+ id: 'UnpublishProductsModal.preparingImport',
1228
+ description: 'Preparing import',
1229
+ defaultMessage: '<b>Prepare bulk unpublish.</b><newline></newline>Once preparation is complete, you can track the progress <logsLink>in the Import logs</logsLink>. The data will be unpublished after the import is finalized.'
1197
1230
  }
1198
1231
  });
1199
1232
 
@@ -393,11 +393,11 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
393
393
  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== */");
394
394
  }
395
395
 
396
- var ActiveDragDropArea = /*#__PURE__*/lazy(() => import('./active-drag-drop-area-588ee003.esm.js' /* webpackChunkName: "active-drag-drop-area" */));
396
+ var ActiveDragDropArea = /*#__PURE__*/lazy(() => import('./active-drag-drop-area-16144107.esm.js' /* webpackChunkName: "active-drag-drop-area" */));
397
397
 
398
- var EnabledDropArea = /*#__PURE__*/lazy(() => import('./enabled-drop-area-cfeadf2b.esm.js' /* webpackChunkName: "enabled-drop-area" */));
398
+ var EnabledDropArea = /*#__PURE__*/lazy(() => import('./enabled-drop-area-97e95b8d.esm.js' /* webpackChunkName: "enabled-drop-area" */));
399
399
 
400
- var FileDropped = /*#__PURE__*/lazy(() => import('./file-dropped-area-98c3a590.esm.js' /* webpackChunkName: "filed-dropped-area" */));
400
+ var FileDropped = /*#__PURE__*/lazy(() => import('./file-dropped-area-2a49c051.esm.js' /* webpackChunkName: "filed-dropped-area" */));
401
401
 
402
402
  function getDropArea(_ref) {
403
403
  let dropAreaState = _ref.dropAreaState,
@@ -430,48 +430,58 @@ function getDropAreaState(flags) {
430
430
 
431
431
  var messages$4 = defineMessages({
432
432
  dragAndDropCSV: {
433
- id: "UnpublishProductsModal.dragAndDropCSV",
434
- defaultMessage: "Drag and drop CSV"
433
+ id: 'UnpublishProductsModal.dragAndDropCSV',
434
+ description: 'The message telling the user to drag and drop CSV file in the file drop area',
435
+ defaultMessage: 'Drag and drop CSV'
435
436
  },
436
437
  or: {
437
- id: "UnpublishProductsModal.or",
438
- defaultMessage: "or"
438
+ id: 'UnpublishProductsModal.or',
439
+ description: 'The word "or" in the drag and drop message',
440
+ defaultMessage: 'or'
439
441
  },
440
442
  browseButton: {
441
- id: "UnpublishProductsModal.browseFile",
442
- defaultMessage: "Browse file"
443
+ id: 'UnpublishProductsModal.browseFile',
444
+ defaultMessage: 'Browse file'
443
445
  },
444
446
  uploadAndPreview: {
445
- id: "UnpublishProductsModal.uploadAndPreview",
446
- defaultMessage: "Upload and preview"
447
+ id: 'UnpublishProductsModal.uploadAndPreview',
448
+ description: 'Label for the button that uploads the file and shows the preview',
449
+ defaultMessage: 'Upload and preview'
447
450
  },
448
451
  chooseFile: {
449
- id: "UnpublishProductsModal.chooseFile",
450
- defaultMessage: "Choose file"
452
+ id: 'UnpublishProductsModal.chooseFile',
453
+ description: 'Label for a button on the file upload page, shown on ready to upload state',
454
+ defaultMessage: 'Choose file'
451
455
  },
452
456
  fileUploadFailed: {
453
- id: "UnpublishProductsModal.fileUploadFailed",
454
- defaultMessage: "File upload failed"
457
+ id: 'UnpublishProductsModal.fileUploadFailed',
458
+ description: 'A title on the file upload page, shown on file upload error state',
459
+ defaultMessage: 'File upload failed'
455
460
  },
456
461
  fileFormatNotSupported: {
457
- id: "UnpublishProductsModal.fileFormatNotSupported",
458
- defaultMessage: "Invalid file format: The file is not in CSV format and cannot be processed."
462
+ id: 'UnpublishProductsModal.fileFormatNotSupported',
463
+ description: 'Error message displayed when a user drags and drops a non-CSV file',
464
+ defaultMessage: 'Invalid file format: The file is not in CSV format and cannot be processed.'
459
465
  },
460
466
  tooManyFilesError: {
461
- id: "UnpublishProductsModal.tooManyFilesError",
462
- defaultMessage: "Multiple files detected: You can only drag and drop one file at a time."
467
+ id: 'UnpublishProductsModal.tooManyFilesError',
468
+ description: 'Error message displayed when a user drags and drops multiple files at once',
469
+ defaultMessage: 'Multiple files detected: You can only drag and drop one file at a time.'
463
470
  },
464
471
  genericError: {
465
- id: "UnpublishProductsModal.genericError",
466
- defaultMessage: "Error occurred: Please try uploading the file again or contact our support team for assistance."
472
+ id: 'UnpublishProductsModal.genericError',
473
+ description: 'Default error message for unexpected file upload issues (for unhandled cases)',
474
+ defaultMessage: 'Error occurred: Please try uploading the file again or contact our support team for assistance.'
467
475
  },
468
476
  dataType: {
469
- id: "UnpublishProductsModal.dataType",
470
- defaultMessage: "Data type"
477
+ id: 'UnpublishProductsModal.dataType',
478
+ description: 'Label for the data type selection dropdown',
479
+ defaultMessage: 'Data type'
471
480
  },
472
481
  instructions: {
473
- id: "UnpublishProductsModal.instructions",
474
- defaultMessage: "Instructions"
482
+ id: 'UnpublishProductsModal.instructions',
483
+ description: 'Label for the instructions section',
484
+ defaultMessage: 'Instructions'
475
485
  }
476
486
  });
477
487
 
@@ -517,47 +527,56 @@ const useUnpublishProductsContext = () => {
517
527
 
518
528
  var messages$3 = defineMessages({
519
529
  fileSizeExceededTitle: {
520
- id: "UnpublishProductsModal.sizeExceededTitle",
521
- defaultMessage: "File size exceeded"
530
+ id: 'UnpublishProductsModal.sizeExceededTitle',
531
+ defaultMessage: 'File size exceeded'
522
532
  },
523
533
  fileSizeExceededDescription: {
524
- id: "UnpublishProductsModal.sizeExceededDescription",
525
- defaultMessage: "The file exceeds the maximum allowed size of {fileSizeLimit} MB"
534
+ id: 'UnpublishProductsModal.sizeExceededDescription',
535
+ description: 'Error description when the file size exceeds the allowable limit',
536
+ defaultMessage: 'The file exceeds the maximum allowed size of {fileSizeLimit} MB'
526
537
  },
527
538
  rowLimitExceededTitle: {
528
- id: "UnpublishProductsModal.rowLimitExceededTitle",
529
- defaultMessage: "Row limit exceeded"
539
+ id: 'UnpublishProductsModal.rowLimitExceededTitle',
540
+ defaultMessage: 'Row limit exceeded'
530
541
  },
531
542
  rowLimitExceededDescription: {
532
- id: "UnpublishProductsModal.rowLimitExceededDescription",
533
- defaultMessage: "The file contains more than the allowable maximum of {rowLimit} rows"
543
+ id: 'UnpublishProductsModal.rowLimitExceededDescription',
544
+ description: 'Error description when the file contains more rows than the allowable maximum',
545
+ defaultMessage: 'The file contains more than the allowable maximum of {rowLimit} rows'
534
546
  },
535
547
  dropAreaNotEnoughRowsTitle: {
536
- id: "UnpublishProductsModal.dropAreaNotEnoughRowsTitle",
537
- defaultMessage: "Invalid CSV file"
548
+ id: 'UnpublishProductsModal.dropAreaNotEnoughRowsTitle',
549
+ description: 'Error title shown when the uploaded CSV file does not contain a header and at least one row of data',
550
+ defaultMessage: 'Invalid CSV file'
538
551
  },
539
552
  dropAreaNotEnoughRowsDescription: {
540
- id: "UnpublishProductsModal.dropAreaNotEnoughRowsDescription",
541
- defaultMessage: "Make sure the file contains a header and at least one row of data"
553
+ id: 'UnpublishProductsModal.dropAreaNotEnoughRowsDescription',
554
+ description: 'Error description shown when the uploaded CSV file does not contain a header and at least one row of data',
555
+ defaultMessage: 'Make sure the file contains a header and at least one row of data'
542
556
  },
543
557
  unexpectedError: {
544
- id: "UnpublishProductsModal.unexpectedError",
545
- defaultMessage: "An unexpected error occurred during the file upload. Please try again, or contact support if this error occurs again."
558
+ id: 'UnpublishProductsModal.unexpectedError',
559
+ description: 'Generic notification message when file upload fails',
560
+ defaultMessage: 'An unexpected error occurred during the file upload. Please try again, or contact support if this error occurs again.'
546
561
  },
547
562
  missingRequiredField: {
548
- id: "UnpublishProductsModal.missingRequiredField",
549
- defaultMessage: "Missing required field"
563
+ id: 'UnpublishProductsModal.missingRequiredField',
564
+ description: 'Error message displayed when a required field is missing',
565
+ defaultMessage: 'Missing required field'
550
566
  },
551
567
  missingKeyError: {
552
- id: "UnpublishProductsModal.missingKeyError",
568
+ id: 'UnpublishProductsModal.missingKeyError',
569
+ description: 'Error message displayed when the uploaded file is missing the key field',
553
570
  defaultMessage: "The 'key' field is missing or incomplete in some rows. Please ensure every row has a 'key' value."
554
571
  },
555
572
  csvFormatErrorTitle: {
556
- id: "UnpublishProductsModal.csvFormatErrorTitle",
557
- defaultMessage: "Invalid CSV file"
573
+ id: 'UnpublishProductsModal.csvFormatErrorTitle',
574
+ description: 'Error title shown when the uploaded CSV file is not formatted correctly',
575
+ defaultMessage: 'Invalid CSV file'
558
576
  },
559
577
  csvFormatErrorDescription: {
560
- id: "UnpublishProductsModal.csvFormatErrorDescription",
578
+ id: 'UnpublishProductsModal.csvFormatErrorDescription',
579
+ description: 'Error message displayed when the CSV file is not formatted correctly',
561
580
  defaultMessage: "Your CSV file is not formatted correctly. Make sure the file contains only one column named 'key', which includes the product keys"
562
581
  }
563
582
  });
@@ -860,22 +879,26 @@ const FileDropArea = () => {
860
879
 
861
880
  var sharedMessages = defineMessages({
862
881
  unpublishModalTitle: {
863
- id: "UnpublishProductsModal.unpublishModalTitle",
864
- defaultMessage: "Bulk unpublish via CSV"
882
+ id: 'UnpublishProductsModal.unpublishModalTitle',
883
+ description: 'The title of the modal',
884
+ defaultMessage: 'Bulk unpublish via CSV'
865
885
  },
866
886
  startBulkUnpublish: {
867
- id: "UnpublishProductsModal.startBulkUnpublish",
868
- defaultMessage: "Start bulk unpublish"
887
+ id: 'UnpublishProductsModal.startBulkUnpublish',
888
+ description: 'Start bulk unpublish button',
889
+ defaultMessage: 'Start bulk unpublish'
869
890
  },
870
891
  cancel: {
871
- id: "UnpublishProductsModal.cancel",
872
- defaultMessage: "Cancel"
892
+ id: 'UnpublishProductsModal.cancel',
893
+ description: 'The label for the cancel button',
894
+ defaultMessage: 'Cancel'
873
895
  }
874
896
  });
875
897
 
876
898
  var messages$2 = defineMessages({
877
899
  fileUploadInstructions: {
878
- id: "UnpublishProductsModal.fileUploadInstructions",
900
+ id: 'UnpublishProductsModal.fileUploadInstructions',
901
+ description: 'Instructions for uploading a CSV file with product keys to unpublish',
879
902
  defaultMessage: "The CSV file must contain the product keys to be unpublished under the header 'key'. 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>."
880
903
  }
881
904
  });
@@ -1022,20 +1045,23 @@ const Uploading = () => {
1022
1045
 
1023
1046
  var messages$1 = defineMessages({
1024
1047
  uploadNewFile: {
1025
- id: "UnpublishProductsModal.uploadNewFile",
1026
- defaultMessage: "Upload new file"
1048
+ id: 'UnpublishProductsModal.uploadNewFile',
1049
+ defaultMessage: 'Upload new file'
1027
1050
  },
1028
1051
  uploadErrorDescription: {
1029
- id: "UnpublishProductsModal.uploadError",
1030
- defaultMessage: "There {errorsCount, plural, one {is <b>1</b> error} other {are <b>{errorsCount}</b> errors}} detected while uploading the file \"{fileName}\"."
1052
+ id: 'UnpublishProductsModal.uploadError',
1053
+ description: 'Title when errors detected while uploading file',
1054
+ defaultMessage: 'There {errorsCount, plural, one {is <b>1</b> error} other {are <b>{errorsCount}</b> errors}} detected while uploading the file "{fileName}".'
1031
1055
  },
1032
1056
  errorType: {
1033
- id: "UnpublishProductsModal.errorType",
1034
- defaultMessage: "Error type"
1057
+ id: 'UnpublishProductsModal.errorType',
1058
+ description: 'Error type" column',
1059
+ defaultMessage: 'Error type'
1035
1060
  },
1036
1061
  details: {
1037
- id: "UnpublishProductsModal.details",
1038
- defaultMessage: "Details"
1062
+ id: 'UnpublishProductsModal.details',
1063
+ description: '"Details" column',
1064
+ defaultMessage: 'Details'
1039
1065
  }
1040
1066
  });
1041
1067
 
@@ -1145,32 +1171,39 @@ function getBold$2(msg) {
1145
1171
 
1146
1172
  var messages = defineMessages({
1147
1173
  continue: {
1148
- id: "UnpublishProductsModal.continue",
1149
- defaultMessage: "Continue"
1174
+ id: 'UnpublishProductsModal.continue',
1175
+ description: 'Continue button',
1176
+ defaultMessage: 'Continue'
1150
1177
  },
1151
1178
  heresAPreview: {
1152
- id: "UnpublishProductsModal.heresAPreview",
1179
+ id: 'UnpublishProductsModal.heresAPreview',
1180
+ description: 'Here is a preview',
1153
1181
  defaultMessage: "Here's a preview:"
1154
1182
  },
1155
1183
  productsToBeUnpublished: {
1156
- id: "UnpublishProductsModal.productsToBeUnpublished",
1157
- defaultMessage: "{count, plural, one {<b>{count}</b> product to be unpublished} other {<b>{count}</b> products to be unpublished}}"
1184
+ id: 'UnpublishProductsModal.productsToBeUnpublished',
1185
+ description: 'Products to be unpublished',
1186
+ defaultMessage: '{count, plural, one {<b>{count}</b> product to be unpublished} other {<b>{count}</b> products to be unpublished}}'
1158
1187
  },
1159
1188
  confirmationQuestion: {
1160
- id: "UnpublishProductsModal.confirmationQuestion",
1161
- defaultMessage: "Are you sure you want to unpublish the products?"
1189
+ id: 'UnpublishProductsModal.confirmationQuestion',
1190
+ description: 'Confirmation question',
1191
+ defaultMessage: 'Are you sure you want to unpublish the products? '
1162
1192
  },
1163
1193
  confirmationText: {
1164
- id: "UnpublishProductsModal.confirmationText",
1165
- defaultMessage: "{count, plural, one {You are about to unpublish <b>{count}</b> product in the project: <b>{projectName}</b>.} other {You are about to unpublish <b>{count}</b> products in the project: <b>{projectName}</b>.}}"
1194
+ id: 'UnpublishProductsModal.confirmationText',
1195
+ description: 'Confirmation text',
1196
+ defaultMessage: '{count, plural, one {You are about to unpublish <b>{count}</b> product in the project: <b>{projectName}</b>.} other {You are about to unpublish <b>{count}</b> products in the project: <b>{projectName}</b>.}}'
1166
1197
  },
1167
1198
  importStarted: {
1168
- id: "UnpublishProductsModal.importStarted",
1169
- defaultMessage: "<b>Your import for bulk unpublish has started.</b><newline></newline>Go to <logsLink>Import logs</logsLink> to view the progress."
1199
+ id: 'UnpublishProductsModal.importStarted',
1200
+ description: 'Import started',
1201
+ defaultMessage: '<b>Your import for bulk unpublish has started.</b><newline></newline>Go to <logsLink>Import logs</logsLink> to view the progress.'
1170
1202
  },
1171
1203
  preparingImport: {
1172
- id: "UnpublishProductsModal.preparingImport",
1173
- defaultMessage: "<b>Prepare bulk unpublish.</b><newline></newline>Once preparation is complete, you can track the progress <logsLink>in the Import logs</logsLink>. The data will be unpublished after the import is finalized."
1204
+ id: 'UnpublishProductsModal.preparingImport',
1205
+ description: 'Preparing import',
1206
+ defaultMessage: '<b>Prepare bulk unpublish.</b><newline></newline>Once preparation is complete, you can track the progress <logsLink>in the Import logs</logsLink>. The data will be unpublished after the import is finalized.'
1174
1207
  }
1175
1208
  });
1176
1209
 
@@ -419,11 +419,11 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
419
419
  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== */");
420
420
  }
421
421
 
422
- var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-97012391.cjs.dev.js' /* webpackChunkName: "active-drag-drop-area" */); }));
422
+ var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-7d26eb59.cjs.dev.js' /* webpackChunkName: "active-drag-drop-area" */); }));
423
423
 
424
- var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-316a1580.cjs.dev.js' /* webpackChunkName: "enabled-drop-area" */); }));
424
+ var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-34dd8d10.cjs.dev.js' /* webpackChunkName: "enabled-drop-area" */); }));
425
425
 
426
- var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-f56570a5.cjs.dev.js' /* webpackChunkName: "filed-dropped-area" */); }));
426
+ var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-7304cc8b.cjs.dev.js' /* webpackChunkName: "filed-dropped-area" */); }));
427
427
 
428
428
  function getDropArea(_ref) {
429
429
  let dropAreaState = _ref.dropAreaState,
@@ -456,48 +456,58 @@ function getDropAreaState(flags) {
456
456
 
457
457
  var messages$4 = reactIntl.defineMessages({
458
458
  dragAndDropCSV: {
459
- id: "UnpublishProductsModal.dragAndDropCSV",
460
- defaultMessage: "Drag and drop CSV"
459
+ id: 'UnpublishProductsModal.dragAndDropCSV',
460
+ description: 'The message telling the user to drag and drop CSV file in the file drop area',
461
+ defaultMessage: 'Drag and drop CSV'
461
462
  },
462
463
  or: {
463
- id: "UnpublishProductsModal.or",
464
- defaultMessage: "or"
464
+ id: 'UnpublishProductsModal.or',
465
+ description: 'The word "or" in the drag and drop message',
466
+ defaultMessage: 'or'
465
467
  },
466
468
  browseButton: {
467
- id: "UnpublishProductsModal.browseFile",
468
- defaultMessage: "Browse file"
469
+ id: 'UnpublishProductsModal.browseFile',
470
+ defaultMessage: 'Browse file'
469
471
  },
470
472
  uploadAndPreview: {
471
- id: "UnpublishProductsModal.uploadAndPreview",
472
- defaultMessage: "Upload and preview"
473
+ id: 'UnpublishProductsModal.uploadAndPreview',
474
+ description: 'Label for the button that uploads the file and shows the preview',
475
+ defaultMessage: 'Upload and preview'
473
476
  },
474
477
  chooseFile: {
475
- id: "UnpublishProductsModal.chooseFile",
476
- defaultMessage: "Choose file"
478
+ id: 'UnpublishProductsModal.chooseFile',
479
+ description: 'Label for a button on the file upload page, shown on ready to upload state',
480
+ defaultMessage: 'Choose file'
477
481
  },
478
482
  fileUploadFailed: {
479
- id: "UnpublishProductsModal.fileUploadFailed",
480
- defaultMessage: "File upload failed"
483
+ id: 'UnpublishProductsModal.fileUploadFailed',
484
+ description: 'A title on the file upload page, shown on file upload error state',
485
+ defaultMessage: 'File upload failed'
481
486
  },
482
487
  fileFormatNotSupported: {
483
- id: "UnpublishProductsModal.fileFormatNotSupported",
484
- defaultMessage: "Invalid file format: The file is not in CSV format and cannot be processed."
488
+ id: 'UnpublishProductsModal.fileFormatNotSupported',
489
+ description: 'Error message displayed when a user drags and drops a non-CSV file',
490
+ defaultMessage: 'Invalid file format: The file is not in CSV format and cannot be processed.'
485
491
  },
486
492
  tooManyFilesError: {
487
- id: "UnpublishProductsModal.tooManyFilesError",
488
- defaultMessage: "Multiple files detected: You can only drag and drop one file at a time."
493
+ id: 'UnpublishProductsModal.tooManyFilesError',
494
+ description: 'Error message displayed when a user drags and drops multiple files at once',
495
+ defaultMessage: 'Multiple files detected: You can only drag and drop one file at a time.'
489
496
  },
490
497
  genericError: {
491
- id: "UnpublishProductsModal.genericError",
492
- defaultMessage: "Error occurred: Please try uploading the file again or contact our support team for assistance."
498
+ id: 'UnpublishProductsModal.genericError',
499
+ description: 'Default error message for unexpected file upload issues (for unhandled cases)',
500
+ defaultMessage: 'Error occurred: Please try uploading the file again or contact our support team for assistance.'
493
501
  },
494
502
  dataType: {
495
- id: "UnpublishProductsModal.dataType",
496
- defaultMessage: "Data type"
503
+ id: 'UnpublishProductsModal.dataType',
504
+ description: 'Label for the data type selection dropdown',
505
+ defaultMessage: 'Data type'
497
506
  },
498
507
  instructions: {
499
- id: "UnpublishProductsModal.instructions",
500
- defaultMessage: "Instructions"
508
+ id: 'UnpublishProductsModal.instructions',
509
+ description: 'Label for the instructions section',
510
+ defaultMessage: 'Instructions'
501
511
  }
502
512
  });
503
513
 
@@ -543,47 +553,56 @@ const useUnpublishProductsContext = () => {
543
553
 
544
554
  var messages$3 = reactIntl.defineMessages({
545
555
  fileSizeExceededTitle: {
546
- id: "UnpublishProductsModal.sizeExceededTitle",
547
- defaultMessage: "File size exceeded"
556
+ id: 'UnpublishProductsModal.sizeExceededTitle',
557
+ defaultMessage: 'File size exceeded'
548
558
  },
549
559
  fileSizeExceededDescription: {
550
- id: "UnpublishProductsModal.sizeExceededDescription",
551
- defaultMessage: "The file exceeds the maximum allowed size of {fileSizeLimit} MB"
560
+ id: 'UnpublishProductsModal.sizeExceededDescription',
561
+ description: 'Error description when the file size exceeds the allowable limit',
562
+ defaultMessage: 'The file exceeds the maximum allowed size of {fileSizeLimit} MB'
552
563
  },
553
564
  rowLimitExceededTitle: {
554
- id: "UnpublishProductsModal.rowLimitExceededTitle",
555
- defaultMessage: "Row limit exceeded"
565
+ id: 'UnpublishProductsModal.rowLimitExceededTitle',
566
+ defaultMessage: 'Row limit exceeded'
556
567
  },
557
568
  rowLimitExceededDescription: {
558
- id: "UnpublishProductsModal.rowLimitExceededDescription",
559
- defaultMessage: "The file contains more than the allowable maximum of {rowLimit} rows"
569
+ id: 'UnpublishProductsModal.rowLimitExceededDescription',
570
+ description: 'Error description when the file contains more rows than the allowable maximum',
571
+ defaultMessage: 'The file contains more than the allowable maximum of {rowLimit} rows'
560
572
  },
561
573
  dropAreaNotEnoughRowsTitle: {
562
- id: "UnpublishProductsModal.dropAreaNotEnoughRowsTitle",
563
- defaultMessage: "Invalid CSV file"
574
+ id: 'UnpublishProductsModal.dropAreaNotEnoughRowsTitle',
575
+ description: 'Error title shown when the uploaded CSV file does not contain a header and at least one row of data',
576
+ defaultMessage: 'Invalid CSV file'
564
577
  },
565
578
  dropAreaNotEnoughRowsDescription: {
566
- id: "UnpublishProductsModal.dropAreaNotEnoughRowsDescription",
567
- defaultMessage: "Make sure the file contains a header and at least one row of data"
579
+ id: 'UnpublishProductsModal.dropAreaNotEnoughRowsDescription',
580
+ description: 'Error description shown when the uploaded CSV file does not contain a header and at least one row of data',
581
+ defaultMessage: 'Make sure the file contains a header and at least one row of data'
568
582
  },
569
583
  unexpectedError: {
570
- id: "UnpublishProductsModal.unexpectedError",
571
- defaultMessage: "An unexpected error occurred during the file upload. Please try again, or contact support if this error occurs again."
584
+ id: 'UnpublishProductsModal.unexpectedError',
585
+ description: 'Generic notification message when file upload fails',
586
+ defaultMessage: 'An unexpected error occurred during the file upload. Please try again, or contact support if this error occurs again.'
572
587
  },
573
588
  missingRequiredField: {
574
- id: "UnpublishProductsModal.missingRequiredField",
575
- defaultMessage: "Missing required field"
589
+ id: 'UnpublishProductsModal.missingRequiredField',
590
+ description: 'Error message displayed when a required field is missing',
591
+ defaultMessage: 'Missing required field'
576
592
  },
577
593
  missingKeyError: {
578
- id: "UnpublishProductsModal.missingKeyError",
594
+ id: 'UnpublishProductsModal.missingKeyError',
595
+ description: 'Error message displayed when the uploaded file is missing the key field',
579
596
  defaultMessage: "The 'key' field is missing or incomplete in some rows. Please ensure every row has a 'key' value."
580
597
  },
581
598
  csvFormatErrorTitle: {
582
- id: "UnpublishProductsModal.csvFormatErrorTitle",
583
- defaultMessage: "Invalid CSV file"
599
+ id: 'UnpublishProductsModal.csvFormatErrorTitle',
600
+ description: 'Error title shown when the uploaded CSV file is not formatted correctly',
601
+ defaultMessage: 'Invalid CSV file'
584
602
  },
585
603
  csvFormatErrorDescription: {
586
- id: "UnpublishProductsModal.csvFormatErrorDescription",
604
+ id: 'UnpublishProductsModal.csvFormatErrorDescription',
605
+ description: 'Error message displayed when the CSV file is not formatted correctly',
587
606
  defaultMessage: "Your CSV file is not formatted correctly. Make sure the file contains only one column named 'key', which includes the product keys"
588
607
  }
589
608
  });
@@ -886,22 +905,26 @@ const FileDropArea = () => {
886
905
 
887
906
  var sharedMessages = reactIntl.defineMessages({
888
907
  unpublishModalTitle: {
889
- id: "UnpublishProductsModal.unpublishModalTitle",
890
- defaultMessage: "Bulk unpublish via CSV"
908
+ id: 'UnpublishProductsModal.unpublishModalTitle',
909
+ description: 'The title of the modal',
910
+ defaultMessage: 'Bulk unpublish via CSV'
891
911
  },
892
912
  startBulkUnpublish: {
893
- id: "UnpublishProductsModal.startBulkUnpublish",
894
- defaultMessage: "Start bulk unpublish"
913
+ id: 'UnpublishProductsModal.startBulkUnpublish',
914
+ description: 'Start bulk unpublish button',
915
+ defaultMessage: 'Start bulk unpublish'
895
916
  },
896
917
  cancel: {
897
- id: "UnpublishProductsModal.cancel",
898
- defaultMessage: "Cancel"
918
+ id: 'UnpublishProductsModal.cancel',
919
+ description: 'The label for the cancel button',
920
+ defaultMessage: 'Cancel'
899
921
  }
900
922
  });
901
923
 
902
924
  var messages$2 = reactIntl.defineMessages({
903
925
  fileUploadInstructions: {
904
- id: "UnpublishProductsModal.fileUploadInstructions",
926
+ id: 'UnpublishProductsModal.fileUploadInstructions',
927
+ description: 'Instructions for uploading a CSV file with product keys to unpublish',
905
928
  defaultMessage: "The CSV file must contain the product keys to be unpublished under the header 'key'. 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>."
906
929
  }
907
930
  });
@@ -1048,20 +1071,23 @@ const Uploading = () => {
1048
1071
 
1049
1072
  var messages$1 = reactIntl.defineMessages({
1050
1073
  uploadNewFile: {
1051
- id: "UnpublishProductsModal.uploadNewFile",
1052
- defaultMessage: "Upload new file"
1074
+ id: 'UnpublishProductsModal.uploadNewFile',
1075
+ defaultMessage: 'Upload new file'
1053
1076
  },
1054
1077
  uploadErrorDescription: {
1055
- id: "UnpublishProductsModal.uploadError",
1056
- defaultMessage: "There {errorsCount, plural, one {is <b>1</b> error} other {are <b>{errorsCount}</b> errors}} detected while uploading the file \"{fileName}\"."
1078
+ id: 'UnpublishProductsModal.uploadError',
1079
+ description: 'Title when errors detected while uploading file',
1080
+ defaultMessage: 'There {errorsCount, plural, one {is <b>1</b> error} other {are <b>{errorsCount}</b> errors}} detected while uploading the file "{fileName}".'
1057
1081
  },
1058
1082
  errorType: {
1059
- id: "UnpublishProductsModal.errorType",
1060
- defaultMessage: "Error type"
1083
+ id: 'UnpublishProductsModal.errorType',
1084
+ description: 'Error type" column',
1085
+ defaultMessage: 'Error type'
1061
1086
  },
1062
1087
  details: {
1063
- id: "UnpublishProductsModal.details",
1064
- defaultMessage: "Details"
1088
+ id: 'UnpublishProductsModal.details',
1089
+ description: '"Details" column',
1090
+ defaultMessage: 'Details'
1065
1091
  }
1066
1092
  });
1067
1093
 
@@ -1171,32 +1197,39 @@ function getBold$2(msg) {
1171
1197
 
1172
1198
  var messages = reactIntl.defineMessages({
1173
1199
  continue: {
1174
- id: "UnpublishProductsModal.continue",
1175
- defaultMessage: "Continue"
1200
+ id: 'UnpublishProductsModal.continue',
1201
+ description: 'Continue button',
1202
+ defaultMessage: 'Continue'
1176
1203
  },
1177
1204
  heresAPreview: {
1178
- id: "UnpublishProductsModal.heresAPreview",
1205
+ id: 'UnpublishProductsModal.heresAPreview',
1206
+ description: 'Here is a preview',
1179
1207
  defaultMessage: "Here's a preview:"
1180
1208
  },
1181
1209
  productsToBeUnpublished: {
1182
- id: "UnpublishProductsModal.productsToBeUnpublished",
1183
- defaultMessage: "{count, plural, one {<b>{count}</b> product to be unpublished} other {<b>{count}</b> products to be unpublished}}"
1210
+ id: 'UnpublishProductsModal.productsToBeUnpublished',
1211
+ description: 'Products to be unpublished',
1212
+ defaultMessage: '{count, plural, one {<b>{count}</b> product to be unpublished} other {<b>{count}</b> products to be unpublished}}'
1184
1213
  },
1185
1214
  confirmationQuestion: {
1186
- id: "UnpublishProductsModal.confirmationQuestion",
1187
- defaultMessage: "Are you sure you want to unpublish the products?"
1215
+ id: 'UnpublishProductsModal.confirmationQuestion',
1216
+ description: 'Confirmation question',
1217
+ defaultMessage: 'Are you sure you want to unpublish the products? '
1188
1218
  },
1189
1219
  confirmationText: {
1190
- id: "UnpublishProductsModal.confirmationText",
1191
- defaultMessage: "{count, plural, one {You are about to unpublish <b>{count}</b> product in the project: <b>{projectName}</b>.} other {You are about to unpublish <b>{count}</b> products in the project: <b>{projectName}</b>.}}"
1220
+ id: 'UnpublishProductsModal.confirmationText',
1221
+ description: 'Confirmation text',
1222
+ defaultMessage: '{count, plural, one {You are about to unpublish <b>{count}</b> product in the project: <b>{projectName}</b>.} other {You are about to unpublish <b>{count}</b> products in the project: <b>{projectName}</b>.}}'
1192
1223
  },
1193
1224
  importStarted: {
1194
- id: "UnpublishProductsModal.importStarted",
1195
- defaultMessage: "<b>Your import for bulk unpublish has started.</b><newline></newline>Go to <logsLink>Import logs</logsLink> to view the progress."
1225
+ id: 'UnpublishProductsModal.importStarted',
1226
+ description: 'Import started',
1227
+ defaultMessage: '<b>Your import for bulk unpublish has started.</b><newline></newline>Go to <logsLink>Import logs</logsLink> to view the progress.'
1196
1228
  },
1197
1229
  preparingImport: {
1198
- id: "UnpublishProductsModal.preparingImport",
1199
- defaultMessage: "<b>Prepare bulk unpublish.</b><newline></newline>Once preparation is complete, you can track the progress <logsLink>in the Import logs</logsLink>. The data will be unpublished after the import is finalized."
1230
+ id: 'UnpublishProductsModal.preparingImport',
1231
+ description: 'Preparing import',
1232
+ defaultMessage: '<b>Prepare bulk unpublish.</b><newline></newline>Once preparation is complete, you can track the progress <logsLink>in the Import logs</logsLink>. The data will be unpublished after the import is finalized.'
1200
1233
  }
1201
1234
  });
1202
1235
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-frontend-extensions/unpublish-products-modal",
3
3
  "description": "Shared import modal for unpublishing products",
4
- "version": "1.1.4",
4
+ "version": "1.1.6",
5
5
  "license": "BSD-3-Clause",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -18,11 +18,11 @@
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",
22
- "@commercetools/importapi-sdk": "5.18.0",
21
+ "@commercetools-frontend/permissions": "22.39.1",
22
+ "@commercetools/importapi-sdk": "5.20.0",
23
23
  "@emotion/react": "11.14.0",
24
24
  "@emotion/styled": "11.14.0",
25
- "@formatjs/cli": "6.3.15",
25
+ "@formatjs/cli": "6.4.3",
26
26
  "babel-plugin-inline-react-svg": "^2.0.2",
27
27
  "babel-plugin-module-resolver": "^5.0.2",
28
28
  "jest": "29.7.0",
@@ -30,7 +30,7 @@
30
30
  "lodash.truncate": "4.4.2",
31
31
  "moment": "2.30.1",
32
32
  "omit-empty-es": "^1.1.3",
33
- "papaparse": "5.4.1",
33
+ "papaparse": "5.5.1",
34
34
  "pluralize": "8.0.0",
35
35
  "prop-types": "15.8.1",
36
36
  "ramda": "^0.30.0",
@@ -38,21 +38,21 @@
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.20.1",
51
- "@commercetools-uikit/data-table": "19.20.1",
52
- "@commercetools-uikit/design-system": "19.20.1",
53
- "@commercetools-uikit/icons": "19.20.1",
54
- "@commercetools-uikit/select-field": "19.20.1",
55
- "@preconstruct/cli": "2.8.9",
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
+ "@preconstruct/cli": "2.8.10",
56
56
  "@types/jest": "29.5.14",
57
57
  "@types/lodash.truncate": "^4.4.7",
58
58
  "@types/testing-library__jest-dom": "^5.14.5",