@commercetools-frontend-extensions/unpublish-products-modal 1.1.0 → 1.1.2

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.
Files changed (17) hide show
  1. package/dist/{active-drag-drop-area-3813ec56.cjs.prod.js → active-drag-drop-area-71bb1ebd.cjs.prod.js} +1 -1
  2. package/dist/{active-drag-drop-area-159b7b45.cjs.dev.js → active-drag-drop-area-e5db7d7f.cjs.dev.js} +1 -1
  3. package/dist/{active-drag-drop-area-ecb8196a.esm.js → active-drag-drop-area-f8d1ca87.esm.js} +1 -1
  4. package/dist/commercetools-frontend-extensions-unpublish-products-modal.cjs.dev.js +1 -1
  5. package/dist/commercetools-frontend-extensions-unpublish-products-modal.cjs.prod.js +1 -1
  6. package/dist/commercetools-frontend-extensions-unpublish-products-modal.esm.js +1 -1
  7. package/dist/declarations/src/unpublish-products-modal.d.ts +1 -1
  8. package/dist/{enabled-drop-area-e5384caa.esm.js → enabled-drop-area-03557e12.esm.js} +1 -1
  9. package/dist/{enabled-drop-area-426ce6fe.cjs.prod.js → enabled-drop-area-17b3adfa.cjs.prod.js} +1 -1
  10. package/dist/{enabled-drop-area-282605e6.cjs.dev.js → enabled-drop-area-cd1a6c0b.cjs.dev.js} +1 -1
  11. package/dist/{file-dropped-area-baab573d.cjs.dev.js → file-dropped-area-6229d16a.cjs.dev.js} +1 -1
  12. package/dist/{file-dropped-area-c9113fe3.esm.js → file-dropped-area-d6aaa344.esm.js} +1 -1
  13. package/dist/{file-dropped-area-a96c742b.cjs.prod.js → file-dropped-area-e9ada24a.cjs.prod.js} +1 -1
  14. package/dist/{index-341c3ecb.cjs.dev.js → index-13b4e27e.cjs.dev.js} +73 -106
  15. package/dist/{index-3d4403b0.esm.js → index-30e79f67.esm.js} +73 -106
  16. package/dist/{index-5bc57587.cjs.prod.js → index-7252bad9.cjs.prod.js} +73 -106
  17. package/package.json +21 -21
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-5bc57587.cjs.prod.js');
3
+ var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-7252bad9.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,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-341c3ecb.cjs.dev.js');
3
+ var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-13b4e27e.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');
@@ -1,4 +1,4 @@
1
- import { F as FileDropped, E as EnabledDropArea } from './index-3d4403b0.esm.js';
1
+ import { F as FileDropped, E as EnabledDropArea } from './index-30e79f67.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';
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-341c3ecb.cjs.dev.js');
5
+ var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-13b4e27e.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-5bc57587.cjs.prod.js');
5
+ var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-7252bad9.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-3d4403b0.esm.js';
1
+ export { U as default } from './index-30e79f67.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';
@@ -1,6 +1,6 @@
1
1
  import type { UnpublishProductsModalProps } from "./@types/index.js";
2
2
  declare const UnpublishProductsModal: {
3
- (props: UnpublishProductsModalProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element | null;
3
+ (props: UnpublishProductsModalProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
4
4
  displayName: string;
5
5
  };
6
6
  export default UnpublishProductsModal;
@@ -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-3d4403b0.esm.js';
12
+ import { m as messages } from './index-30e79f67.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-5bc57587.cjs.prod.js');
14
+ var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-7252bad9.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');
@@ -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-341c3ecb.cjs.dev.js');
14
+ var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-13b4e27e.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');
@@ -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-341c3ecb.cjs.dev.js');
5
+ var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-13b4e27e.cjs.dev.js');
6
6
  require('react');
7
7
  require('@commercetools-frontend/actions-global');
8
8
  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-3d4403b0.esm.js';
3
+ import { u as useUnpublishProductsContext, m as messages } from './index-30e79f67.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-5bc57587.cjs.prod.js');
5
+ var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-7252bad9.cjs.prod.js');
6
6
  require('react');
7
7
  require('@commercetools-frontend/actions-global');
8
8
  require('@commercetools-frontend/application-shell-connectors');
@@ -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-159b7b45.cjs.dev.js' /* webpackChunkName: "active-drag-drop-area" */); }));
422
+ var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-e5db7d7f.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-282605e6.cjs.dev.js' /* webpackChunkName: "enabled-drop-area" */); }));
424
+ var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-cd1a6c0b.cjs.dev.js' /* webpackChunkName: "enabled-drop-area" */); }));
425
425
 
426
- var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-baab573d.cjs.dev.js' /* webpackChunkName: "filed-dropped-area" */); }));
426
+ var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-6229d16a.cjs.dev.js' /* webpackChunkName: "filed-dropped-area" */); }));
427
427
 
428
428
  function getDropArea(_ref) {
429
429
  let dropAreaState = _ref.dropAreaState,
@@ -456,58 +456,48 @@ function getDropAreaState(flags) {
456
456
 
457
457
  var messages$4 = reactIntl.defineMessages({
458
458
  dragAndDropCSV: {
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'
459
+ id: "UnpublishProductsModal.dragAndDropCSV",
460
+ defaultMessage: "Drag and drop CSV"
462
461
  },
463
462
  or: {
464
- id: 'UnpublishProductsModal.or',
465
- description: 'The word "or" in the drag and drop message',
466
- defaultMessage: 'or'
463
+ id: "UnpublishProductsModal.or",
464
+ defaultMessage: "or"
467
465
  },
468
466
  browseButton: {
469
- id: 'UnpublishProductsModal.browseFile',
470
- defaultMessage: 'Browse file'
467
+ id: "UnpublishProductsModal.browseFile",
468
+ defaultMessage: "Browse file"
471
469
  },
472
470
  uploadAndPreview: {
473
- id: 'UnpublishProductsModal.uploadAndPreview',
474
- description: 'Label for the button that uploads the file and shows the preview',
475
- defaultMessage: 'Upload and preview'
471
+ id: "UnpublishProductsModal.uploadAndPreview",
472
+ defaultMessage: "Upload and preview"
476
473
  },
477
474
  chooseFile: {
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'
475
+ id: "UnpublishProductsModal.chooseFile",
476
+ defaultMessage: "Choose file"
481
477
  },
482
478
  fileUploadFailed: {
483
- id: 'UnpublishProductsModal.fileUploadFailed',
484
- description: 'A title on the file upload page, shown on file upload error state',
485
- defaultMessage: 'File upload failed'
479
+ id: "UnpublishProductsModal.fileUploadFailed",
480
+ defaultMessage: "File upload failed"
486
481
  },
487
482
  fileFormatNotSupported: {
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.'
483
+ id: "UnpublishProductsModal.fileFormatNotSupported",
484
+ defaultMessage: "Invalid file format: The file is not in CSV format and cannot be processed."
491
485
  },
492
486
  tooManyFilesError: {
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.'
487
+ id: "UnpublishProductsModal.tooManyFilesError",
488
+ defaultMessage: "Multiple files detected: You can only drag and drop one file at a time."
496
489
  },
497
490
  genericError: {
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.'
491
+ id: "UnpublishProductsModal.genericError",
492
+ defaultMessage: "Error occurred: Please try uploading the file again or contact our support team for assistance."
501
493
  },
502
494
  dataType: {
503
- id: 'UnpublishProductsModal.dataType',
504
- description: 'Label for the data type selection dropdown',
505
- defaultMessage: 'Data type'
495
+ id: "UnpublishProductsModal.dataType",
496
+ defaultMessage: "Data type"
506
497
  },
507
498
  instructions: {
508
- id: 'UnpublishProductsModal.instructions',
509
- description: 'Label for the instructions section',
510
- defaultMessage: 'Instructions'
499
+ id: "UnpublishProductsModal.instructions",
500
+ defaultMessage: "Instructions"
511
501
  }
512
502
  });
513
503
 
@@ -553,56 +543,47 @@ const useUnpublishProductsContext = () => {
553
543
 
554
544
  var messages$3 = reactIntl.defineMessages({
555
545
  fileSizeExceededTitle: {
556
- id: 'UnpublishProductsModal.sizeExceededTitle',
557
- defaultMessage: 'File size exceeded'
546
+ id: "UnpublishProductsModal.sizeExceededTitle",
547
+ defaultMessage: "File size exceeded"
558
548
  },
559
549
  fileSizeExceededDescription: {
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'
550
+ id: "UnpublishProductsModal.sizeExceededDescription",
551
+ defaultMessage: "The file exceeds the maximum allowed size of {fileSizeLimit} MB"
563
552
  },
564
553
  rowLimitExceededTitle: {
565
- id: 'UnpublishProductsModal.rowLimitExceededTitle',
566
- defaultMessage: 'Row limit exceeded'
554
+ id: "UnpublishProductsModal.rowLimitExceededTitle",
555
+ defaultMessage: "Row limit exceeded"
567
556
  },
568
557
  rowLimitExceededDescription: {
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'
558
+ id: "UnpublishProductsModal.rowLimitExceededDescription",
559
+ defaultMessage: "The file contains more than the allowable maximum of {rowLimit} rows"
572
560
  },
573
561
  dropAreaNotEnoughRowsTitle: {
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'
562
+ id: "UnpublishProductsModal.dropAreaNotEnoughRowsTitle",
563
+ defaultMessage: "Invalid CSV file"
577
564
  },
578
565
  dropAreaNotEnoughRowsDescription: {
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'
566
+ id: "UnpublishProductsModal.dropAreaNotEnoughRowsDescription",
567
+ defaultMessage: "Make sure the file contains a header and at least one row of data"
582
568
  },
583
569
  unexpectedError: {
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.'
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."
587
572
  },
588
573
  missingRequiredField: {
589
- id: 'UnpublishProductsModal.missingRequiredField',
590
- description: 'Error message displayed when a required field is missing',
591
- defaultMessage: 'Missing required field'
574
+ id: "UnpublishProductsModal.missingRequiredField",
575
+ defaultMessage: "Missing required field"
592
576
  },
593
577
  missingKeyError: {
594
- id: 'UnpublishProductsModal.missingKeyError',
595
- description: 'Error message displayed when the uploaded file is missing the key field',
578
+ id: "UnpublishProductsModal.missingKeyError",
596
579
  defaultMessage: "The 'key' field is missing or incomplete in some rows. Please ensure every row has a 'key' value."
597
580
  },
598
581
  csvFormatErrorTitle: {
599
- id: 'UnpublishProductsModal.csvFormatErrorTitle',
600
- description: 'Error title shown when the uploaded CSV file is not formatted correctly',
601
- defaultMessage: 'Invalid CSV file'
582
+ id: "UnpublishProductsModal.csvFormatErrorTitle",
583
+ defaultMessage: "Invalid CSV file"
602
584
  },
603
585
  csvFormatErrorDescription: {
604
- id: 'FileUpload.csvFormatErrorDescription',
605
- description: 'Error message displayed when the CSV file is not formatted correctly',
586
+ id: "FileUpload.csvFormatErrorDescription",
606
587
  defaultMessage: "Your CSV file is not formatted correctly. Make sure the file contains only one column named 'key', which includes the product keys"
607
588
  }
608
589
  });
@@ -905,26 +886,22 @@ const FileDropArea = () => {
905
886
 
906
887
  var sharedMessages = reactIntl.defineMessages({
907
888
  unpublishModalTitle: {
908
- id: 'UnpublishProductsModal.unpublishModalTitle',
909
- description: 'The title of the modal',
910
- defaultMessage: 'Bulk unpublish via CSV'
889
+ id: "UnpublishProductsModal.unpublishModalTitle",
890
+ defaultMessage: "Bulk unpublish via CSV"
911
891
  },
912
892
  startBulkUnpublish: {
913
- id: 'UnpublishProductsModal.startBulkUnpublish',
914
- description: 'Start bulk unpublish button',
915
- defaultMessage: 'Start bulk unpublish'
893
+ id: "UnpublishProductsModal.startBulkUnpublish",
894
+ defaultMessage: "Start bulk unpublish"
916
895
  },
917
896
  cancel: {
918
- id: 'UnpublishProductsModal.cancel',
919
- description: 'The label for the cancel button',
920
- defaultMessage: 'Cancel'
897
+ id: "UnpublishProductsModal.cancel",
898
+ defaultMessage: "Cancel"
921
899
  }
922
900
  });
923
901
 
924
902
  var messages$2 = reactIntl.defineMessages({
925
903
  fileUploadInstructions: {
926
- id: 'UnpublishProductsModal.fileUploadInstructions',
927
- description: 'Instructions for uploading a CSV file with product keys to unpublish',
904
+ id: "UnpublishProductsModal.fileUploadInstructions",
928
905
  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>."
929
906
  }
930
907
  });
@@ -1071,23 +1048,20 @@ const Uploading = () => {
1071
1048
 
1072
1049
  var messages$1 = reactIntl.defineMessages({
1073
1050
  uploadNewFile: {
1074
- id: 'UnpublishProductsModal.uploadNewFile',
1075
- defaultMessage: 'Upload new file'
1051
+ id: "UnpublishProductsModal.uploadNewFile",
1052
+ defaultMessage: "Upload new file"
1076
1053
  },
1077
1054
  uploadErrorDescription: {
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}".'
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}\"."
1081
1057
  },
1082
1058
  errorType: {
1083
- id: 'UnpublishProductsModal.errorType',
1084
- description: 'Error type" column',
1085
- defaultMessage: 'Error type'
1059
+ id: "UnpublishProductsModal.errorType",
1060
+ defaultMessage: "Error type"
1086
1061
  },
1087
1062
  details: {
1088
- id: 'UnpublishProductsModal.details',
1089
- description: '"Details" column',
1090
- defaultMessage: 'Details'
1063
+ id: "UnpublishProductsModal.details",
1064
+ defaultMessage: "Details"
1091
1065
  }
1092
1066
  });
1093
1067
 
@@ -1197,39 +1171,32 @@ function getBold$2(msg) {
1197
1171
 
1198
1172
  var messages = reactIntl.defineMessages({
1199
1173
  continue: {
1200
- id: 'UnpublishProductsModal.continue',
1201
- description: 'Continue button',
1202
- defaultMessage: 'Continue'
1174
+ id: "UnpublishProductsModal.continue",
1175
+ defaultMessage: "Continue"
1203
1176
  },
1204
1177
  heresAPreview: {
1205
- id: 'UnpublishProductsModal.heresAPreview',
1206
- description: 'Here is a preview',
1178
+ id: "UnpublishProductsModal.heresAPreview",
1207
1179
  defaultMessage: "Here's a preview:"
1208
1180
  },
1209
1181
  productsToBeUnpublished: {
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}}'
1182
+ id: "UnpublishProductsModal.productsToBeUnpublished",
1183
+ defaultMessage: "{count, plural, one {<b>{count}</b> product to be unpublished} other {<b>{count}</b> products to be unpublished}}"
1213
1184
  },
1214
1185
  confirmationQuestion: {
1215
- id: 'UnpublishProductsModal.confirmationQuestion',
1216
- description: 'Confirmation question',
1217
- defaultMessage: 'Are you sure you want to unpublish the products? '
1186
+ id: "UnpublishProductsModal.confirmationQuestion",
1187
+ defaultMessage: "Are you sure you want to unpublish the products?"
1218
1188
  },
1219
1189
  confirmationText: {
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>.}}'
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>.}}"
1223
1192
  },
1224
1193
  importStarted: {
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.'
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."
1228
1196
  },
1229
1197
  preparingImport: {
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.'
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."
1233
1200
  }
1234
1201
  });
1235
1202
 
@@ -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-ecb8196a.esm.js' /* webpackChunkName: "active-drag-drop-area" */));
396
+ var ActiveDragDropArea = /*#__PURE__*/lazy(() => import('./active-drag-drop-area-f8d1ca87.esm.js' /* webpackChunkName: "active-drag-drop-area" */));
397
397
 
398
- var EnabledDropArea = /*#__PURE__*/lazy(() => import('./enabled-drop-area-e5384caa.esm.js' /* webpackChunkName: "enabled-drop-area" */));
398
+ var EnabledDropArea = /*#__PURE__*/lazy(() => import('./enabled-drop-area-03557e12.esm.js' /* webpackChunkName: "enabled-drop-area" */));
399
399
 
400
- var FileDropped = /*#__PURE__*/lazy(() => import('./file-dropped-area-c9113fe3.esm.js' /* webpackChunkName: "filed-dropped-area" */));
400
+ var FileDropped = /*#__PURE__*/lazy(() => import('./file-dropped-area-d6aaa344.esm.js' /* webpackChunkName: "filed-dropped-area" */));
401
401
 
402
402
  function getDropArea(_ref) {
403
403
  let dropAreaState = _ref.dropAreaState,
@@ -430,58 +430,48 @@ function getDropAreaState(flags) {
430
430
 
431
431
  var messages$4 = defineMessages({
432
432
  dragAndDropCSV: {
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'
433
+ id: "UnpublishProductsModal.dragAndDropCSV",
434
+ defaultMessage: "Drag and drop CSV"
436
435
  },
437
436
  or: {
438
- id: 'UnpublishProductsModal.or',
439
- description: 'The word "or" in the drag and drop message',
440
- defaultMessage: 'or'
437
+ id: "UnpublishProductsModal.or",
438
+ defaultMessage: "or"
441
439
  },
442
440
  browseButton: {
443
- id: 'UnpublishProductsModal.browseFile',
444
- defaultMessage: 'Browse file'
441
+ id: "UnpublishProductsModal.browseFile",
442
+ defaultMessage: "Browse file"
445
443
  },
446
444
  uploadAndPreview: {
447
- id: 'UnpublishProductsModal.uploadAndPreview',
448
- description: 'Label for the button that uploads the file and shows the preview',
449
- defaultMessage: 'Upload and preview'
445
+ id: "UnpublishProductsModal.uploadAndPreview",
446
+ defaultMessage: "Upload and preview"
450
447
  },
451
448
  chooseFile: {
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'
449
+ id: "UnpublishProductsModal.chooseFile",
450
+ defaultMessage: "Choose file"
455
451
  },
456
452
  fileUploadFailed: {
457
- id: 'UnpublishProductsModal.fileUploadFailed',
458
- description: 'A title on the file upload page, shown on file upload error state',
459
- defaultMessage: 'File upload failed'
453
+ id: "UnpublishProductsModal.fileUploadFailed",
454
+ defaultMessage: "File upload failed"
460
455
  },
461
456
  fileFormatNotSupported: {
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.'
457
+ id: "UnpublishProductsModal.fileFormatNotSupported",
458
+ defaultMessage: "Invalid file format: The file is not in CSV format and cannot be processed."
465
459
  },
466
460
  tooManyFilesError: {
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.'
461
+ id: "UnpublishProductsModal.tooManyFilesError",
462
+ defaultMessage: "Multiple files detected: You can only drag and drop one file at a time."
470
463
  },
471
464
  genericError: {
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.'
465
+ id: "UnpublishProductsModal.genericError",
466
+ defaultMessage: "Error occurred: Please try uploading the file again or contact our support team for assistance."
475
467
  },
476
468
  dataType: {
477
- id: 'UnpublishProductsModal.dataType',
478
- description: 'Label for the data type selection dropdown',
479
- defaultMessage: 'Data type'
469
+ id: "UnpublishProductsModal.dataType",
470
+ defaultMessage: "Data type"
480
471
  },
481
472
  instructions: {
482
- id: 'UnpublishProductsModal.instructions',
483
- description: 'Label for the instructions section',
484
- defaultMessage: 'Instructions'
473
+ id: "UnpublishProductsModal.instructions",
474
+ defaultMessage: "Instructions"
485
475
  }
486
476
  });
487
477
 
@@ -527,56 +517,47 @@ const useUnpublishProductsContext = () => {
527
517
 
528
518
  var messages$3 = defineMessages({
529
519
  fileSizeExceededTitle: {
530
- id: 'UnpublishProductsModal.sizeExceededTitle',
531
- defaultMessage: 'File size exceeded'
520
+ id: "UnpublishProductsModal.sizeExceededTitle",
521
+ defaultMessage: "File size exceeded"
532
522
  },
533
523
  fileSizeExceededDescription: {
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'
524
+ id: "UnpublishProductsModal.sizeExceededDescription",
525
+ defaultMessage: "The file exceeds the maximum allowed size of {fileSizeLimit} MB"
537
526
  },
538
527
  rowLimitExceededTitle: {
539
- id: 'UnpublishProductsModal.rowLimitExceededTitle',
540
- defaultMessage: 'Row limit exceeded'
528
+ id: "UnpublishProductsModal.rowLimitExceededTitle",
529
+ defaultMessage: "Row limit exceeded"
541
530
  },
542
531
  rowLimitExceededDescription: {
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'
532
+ id: "UnpublishProductsModal.rowLimitExceededDescription",
533
+ defaultMessage: "The file contains more than the allowable maximum of {rowLimit} rows"
546
534
  },
547
535
  dropAreaNotEnoughRowsTitle: {
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'
536
+ id: "UnpublishProductsModal.dropAreaNotEnoughRowsTitle",
537
+ defaultMessage: "Invalid CSV file"
551
538
  },
552
539
  dropAreaNotEnoughRowsDescription: {
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'
540
+ id: "UnpublishProductsModal.dropAreaNotEnoughRowsDescription",
541
+ defaultMessage: "Make sure the file contains a header and at least one row of data"
556
542
  },
557
543
  unexpectedError: {
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.'
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."
561
546
  },
562
547
  missingRequiredField: {
563
- id: 'UnpublishProductsModal.missingRequiredField',
564
- description: 'Error message displayed when a required field is missing',
565
- defaultMessage: 'Missing required field'
548
+ id: "UnpublishProductsModal.missingRequiredField",
549
+ defaultMessage: "Missing required field"
566
550
  },
567
551
  missingKeyError: {
568
- id: 'UnpublishProductsModal.missingKeyError',
569
- description: 'Error message displayed when the uploaded file is missing the key field',
552
+ id: "UnpublishProductsModal.missingKeyError",
570
553
  defaultMessage: "The 'key' field is missing or incomplete in some rows. Please ensure every row has a 'key' value."
571
554
  },
572
555
  csvFormatErrorTitle: {
573
- id: 'UnpublishProductsModal.csvFormatErrorTitle',
574
- description: 'Error title shown when the uploaded CSV file is not formatted correctly',
575
- defaultMessage: 'Invalid CSV file'
556
+ id: "UnpublishProductsModal.csvFormatErrorTitle",
557
+ defaultMessage: "Invalid CSV file"
576
558
  },
577
559
  csvFormatErrorDescription: {
578
- id: 'FileUpload.csvFormatErrorDescription',
579
- description: 'Error message displayed when the CSV file is not formatted correctly',
560
+ id: "FileUpload.csvFormatErrorDescription",
580
561
  defaultMessage: "Your CSV file is not formatted correctly. Make sure the file contains only one column named 'key', which includes the product keys"
581
562
  }
582
563
  });
@@ -879,26 +860,22 @@ const FileDropArea = () => {
879
860
 
880
861
  var sharedMessages = defineMessages({
881
862
  unpublishModalTitle: {
882
- id: 'UnpublishProductsModal.unpublishModalTitle',
883
- description: 'The title of the modal',
884
- defaultMessage: 'Bulk unpublish via CSV'
863
+ id: "UnpublishProductsModal.unpublishModalTitle",
864
+ defaultMessage: "Bulk unpublish via CSV"
885
865
  },
886
866
  startBulkUnpublish: {
887
- id: 'UnpublishProductsModal.startBulkUnpublish',
888
- description: 'Start bulk unpublish button',
889
- defaultMessage: 'Start bulk unpublish'
867
+ id: "UnpublishProductsModal.startBulkUnpublish",
868
+ defaultMessage: "Start bulk unpublish"
890
869
  },
891
870
  cancel: {
892
- id: 'UnpublishProductsModal.cancel',
893
- description: 'The label for the cancel button',
894
- defaultMessage: 'Cancel'
871
+ id: "UnpublishProductsModal.cancel",
872
+ defaultMessage: "Cancel"
895
873
  }
896
874
  });
897
875
 
898
876
  var messages$2 = defineMessages({
899
877
  fileUploadInstructions: {
900
- id: 'UnpublishProductsModal.fileUploadInstructions',
901
- description: 'Instructions for uploading a CSV file with product keys to unpublish',
878
+ id: "UnpublishProductsModal.fileUploadInstructions",
902
879
  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
880
  }
904
881
  });
@@ -1045,23 +1022,20 @@ const Uploading = () => {
1045
1022
 
1046
1023
  var messages$1 = defineMessages({
1047
1024
  uploadNewFile: {
1048
- id: 'UnpublishProductsModal.uploadNewFile',
1049
- defaultMessage: 'Upload new file'
1025
+ id: "UnpublishProductsModal.uploadNewFile",
1026
+ defaultMessage: "Upload new file"
1050
1027
  },
1051
1028
  uploadErrorDescription: {
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}".'
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}\"."
1055
1031
  },
1056
1032
  errorType: {
1057
- id: 'UnpublishProductsModal.errorType',
1058
- description: 'Error type" column',
1059
- defaultMessage: 'Error type'
1033
+ id: "UnpublishProductsModal.errorType",
1034
+ defaultMessage: "Error type"
1060
1035
  },
1061
1036
  details: {
1062
- id: 'UnpublishProductsModal.details',
1063
- description: '"Details" column',
1064
- defaultMessage: 'Details'
1037
+ id: "UnpublishProductsModal.details",
1038
+ defaultMessage: "Details"
1065
1039
  }
1066
1040
  });
1067
1041
 
@@ -1171,39 +1145,32 @@ function getBold$2(msg) {
1171
1145
 
1172
1146
  var messages = defineMessages({
1173
1147
  continue: {
1174
- id: 'UnpublishProductsModal.continue',
1175
- description: 'Continue button',
1176
- defaultMessage: 'Continue'
1148
+ id: "UnpublishProductsModal.continue",
1149
+ defaultMessage: "Continue"
1177
1150
  },
1178
1151
  heresAPreview: {
1179
- id: 'UnpublishProductsModal.heresAPreview',
1180
- description: 'Here is a preview',
1152
+ id: "UnpublishProductsModal.heresAPreview",
1181
1153
  defaultMessage: "Here's a preview:"
1182
1154
  },
1183
1155
  productsToBeUnpublished: {
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}}'
1156
+ id: "UnpublishProductsModal.productsToBeUnpublished",
1157
+ defaultMessage: "{count, plural, one {<b>{count}</b> product to be unpublished} other {<b>{count}</b> products to be unpublished}}"
1187
1158
  },
1188
1159
  confirmationQuestion: {
1189
- id: 'UnpublishProductsModal.confirmationQuestion',
1190
- description: 'Confirmation question',
1191
- defaultMessage: 'Are you sure you want to unpublish the products? '
1160
+ id: "UnpublishProductsModal.confirmationQuestion",
1161
+ defaultMessage: "Are you sure you want to unpublish the products?"
1192
1162
  },
1193
1163
  confirmationText: {
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>.}}'
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>.}}"
1197
1166
  },
1198
1167
  importStarted: {
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.'
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."
1202
1170
  },
1203
1171
  preparingImport: {
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.'
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."
1207
1174
  }
1208
1175
  });
1209
1176
 
@@ -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-3813ec56.cjs.prod.js' /* webpackChunkName: "active-drag-drop-area" */); }));
419
+ var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-71bb1ebd.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-426ce6fe.cjs.prod.js' /* webpackChunkName: "enabled-drop-area" */); }));
421
+ var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-17b3adfa.cjs.prod.js' /* webpackChunkName: "enabled-drop-area" */); }));
422
422
 
423
- var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-a96c742b.cjs.prod.js' /* webpackChunkName: "filed-dropped-area" */); }));
423
+ var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-e9ada24a.cjs.prod.js' /* webpackChunkName: "filed-dropped-area" */); }));
424
424
 
425
425
  function getDropArea(_ref) {
426
426
  let dropAreaState = _ref.dropAreaState,
@@ -453,58 +453,48 @@ function getDropAreaState(flags) {
453
453
 
454
454
  var messages$4 = reactIntl.defineMessages({
455
455
  dragAndDropCSV: {
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'
456
+ id: "UnpublishProductsModal.dragAndDropCSV",
457
+ defaultMessage: "Drag and drop CSV"
459
458
  },
460
459
  or: {
461
- id: 'UnpublishProductsModal.or',
462
- description: 'The word "or" in the drag and drop message',
463
- defaultMessage: 'or'
460
+ id: "UnpublishProductsModal.or",
461
+ defaultMessage: "or"
464
462
  },
465
463
  browseButton: {
466
- id: 'UnpublishProductsModal.browseFile',
467
- defaultMessage: 'Browse file'
464
+ id: "UnpublishProductsModal.browseFile",
465
+ defaultMessage: "Browse file"
468
466
  },
469
467
  uploadAndPreview: {
470
- id: 'UnpublishProductsModal.uploadAndPreview',
471
- description: 'Label for the button that uploads the file and shows the preview',
472
- defaultMessage: 'Upload and preview'
468
+ id: "UnpublishProductsModal.uploadAndPreview",
469
+ defaultMessage: "Upload and preview"
473
470
  },
474
471
  chooseFile: {
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'
472
+ id: "UnpublishProductsModal.chooseFile",
473
+ defaultMessage: "Choose file"
478
474
  },
479
475
  fileUploadFailed: {
480
- id: 'UnpublishProductsModal.fileUploadFailed',
481
- description: 'A title on the file upload page, shown on file upload error state',
482
- defaultMessage: 'File upload failed'
476
+ id: "UnpublishProductsModal.fileUploadFailed",
477
+ defaultMessage: "File upload failed"
483
478
  },
484
479
  fileFormatNotSupported: {
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.'
480
+ id: "UnpublishProductsModal.fileFormatNotSupported",
481
+ defaultMessage: "Invalid file format: The file is not in CSV format and cannot be processed."
488
482
  },
489
483
  tooManyFilesError: {
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.'
484
+ id: "UnpublishProductsModal.tooManyFilesError",
485
+ defaultMessage: "Multiple files detected: You can only drag and drop one file at a time."
493
486
  },
494
487
  genericError: {
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.'
488
+ id: "UnpublishProductsModal.genericError",
489
+ defaultMessage: "Error occurred: Please try uploading the file again or contact our support team for assistance."
498
490
  },
499
491
  dataType: {
500
- id: 'UnpublishProductsModal.dataType',
501
- description: 'Label for the data type selection dropdown',
502
- defaultMessage: 'Data type'
492
+ id: "UnpublishProductsModal.dataType",
493
+ defaultMessage: "Data type"
503
494
  },
504
495
  instructions: {
505
- id: 'UnpublishProductsModal.instructions',
506
- description: 'Label for the instructions section',
507
- defaultMessage: 'Instructions'
496
+ id: "UnpublishProductsModal.instructions",
497
+ defaultMessage: "Instructions"
508
498
  }
509
499
  });
510
500
 
@@ -550,56 +540,47 @@ const useUnpublishProductsContext = () => {
550
540
 
551
541
  var messages$3 = reactIntl.defineMessages({
552
542
  fileSizeExceededTitle: {
553
- id: 'UnpublishProductsModal.sizeExceededTitle',
554
- defaultMessage: 'File size exceeded'
543
+ id: "UnpublishProductsModal.sizeExceededTitle",
544
+ defaultMessage: "File size exceeded"
555
545
  },
556
546
  fileSizeExceededDescription: {
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'
547
+ id: "UnpublishProductsModal.sizeExceededDescription",
548
+ defaultMessage: "The file exceeds the maximum allowed size of {fileSizeLimit} MB"
560
549
  },
561
550
  rowLimitExceededTitle: {
562
- id: 'UnpublishProductsModal.rowLimitExceededTitle',
563
- defaultMessage: 'Row limit exceeded'
551
+ id: "UnpublishProductsModal.rowLimitExceededTitle",
552
+ defaultMessage: "Row limit exceeded"
564
553
  },
565
554
  rowLimitExceededDescription: {
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'
555
+ id: "UnpublishProductsModal.rowLimitExceededDescription",
556
+ defaultMessage: "The file contains more than the allowable maximum of {rowLimit} rows"
569
557
  },
570
558
  dropAreaNotEnoughRowsTitle: {
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'
559
+ id: "UnpublishProductsModal.dropAreaNotEnoughRowsTitle",
560
+ defaultMessage: "Invalid CSV file"
574
561
  },
575
562
  dropAreaNotEnoughRowsDescription: {
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'
563
+ id: "UnpublishProductsModal.dropAreaNotEnoughRowsDescription",
564
+ defaultMessage: "Make sure the file contains a header and at least one row of data"
579
565
  },
580
566
  unexpectedError: {
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.'
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."
584
569
  },
585
570
  missingRequiredField: {
586
- id: 'UnpublishProductsModal.missingRequiredField',
587
- description: 'Error message displayed when a required field is missing',
588
- defaultMessage: 'Missing required field'
571
+ id: "UnpublishProductsModal.missingRequiredField",
572
+ defaultMessage: "Missing required field"
589
573
  },
590
574
  missingKeyError: {
591
- id: 'UnpublishProductsModal.missingKeyError',
592
- description: 'Error message displayed when the uploaded file is missing the key field',
575
+ id: "UnpublishProductsModal.missingKeyError",
593
576
  defaultMessage: "The 'key' field is missing or incomplete in some rows. Please ensure every row has a 'key' value."
594
577
  },
595
578
  csvFormatErrorTitle: {
596
- id: 'UnpublishProductsModal.csvFormatErrorTitle',
597
- description: 'Error title shown when the uploaded CSV file is not formatted correctly',
598
- defaultMessage: 'Invalid CSV file'
579
+ id: "UnpublishProductsModal.csvFormatErrorTitle",
580
+ defaultMessage: "Invalid CSV file"
599
581
  },
600
582
  csvFormatErrorDescription: {
601
- id: 'FileUpload.csvFormatErrorDescription',
602
- description: 'Error message displayed when the CSV file is not formatted correctly',
583
+ id: "FileUpload.csvFormatErrorDescription",
603
584
  defaultMessage: "Your CSV file is not formatted correctly. Make sure the file contains only one column named 'key', which includes the product keys"
604
585
  }
605
586
  });
@@ -902,26 +883,22 @@ const FileDropArea = () => {
902
883
 
903
884
  var sharedMessages = reactIntl.defineMessages({
904
885
  unpublishModalTitle: {
905
- id: 'UnpublishProductsModal.unpublishModalTitle',
906
- description: 'The title of the modal',
907
- defaultMessage: 'Bulk unpublish via CSV'
886
+ id: "UnpublishProductsModal.unpublishModalTitle",
887
+ defaultMessage: "Bulk unpublish via CSV"
908
888
  },
909
889
  startBulkUnpublish: {
910
- id: 'UnpublishProductsModal.startBulkUnpublish',
911
- description: 'Start bulk unpublish button',
912
- defaultMessage: 'Start bulk unpublish'
890
+ id: "UnpublishProductsModal.startBulkUnpublish",
891
+ defaultMessage: "Start bulk unpublish"
913
892
  },
914
893
  cancel: {
915
- id: 'UnpublishProductsModal.cancel',
916
- description: 'The label for the cancel button',
917
- defaultMessage: 'Cancel'
894
+ id: "UnpublishProductsModal.cancel",
895
+ defaultMessage: "Cancel"
918
896
  }
919
897
  });
920
898
 
921
899
  var messages$2 = reactIntl.defineMessages({
922
900
  fileUploadInstructions: {
923
- id: 'UnpublishProductsModal.fileUploadInstructions',
924
- description: 'Instructions for uploading a CSV file with product keys to unpublish',
901
+ id: "UnpublishProductsModal.fileUploadInstructions",
925
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>."
926
903
  }
927
904
  });
@@ -1068,23 +1045,20 @@ const Uploading = () => {
1068
1045
 
1069
1046
  var messages$1 = reactIntl.defineMessages({
1070
1047
  uploadNewFile: {
1071
- id: 'UnpublishProductsModal.uploadNewFile',
1072
- defaultMessage: 'Upload new file'
1048
+ id: "UnpublishProductsModal.uploadNewFile",
1049
+ defaultMessage: "Upload new file"
1073
1050
  },
1074
1051
  uploadErrorDescription: {
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}".'
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}\"."
1078
1054
  },
1079
1055
  errorType: {
1080
- id: 'UnpublishProductsModal.errorType',
1081
- description: 'Error type" column',
1082
- defaultMessage: 'Error type'
1056
+ id: "UnpublishProductsModal.errorType",
1057
+ defaultMessage: "Error type"
1083
1058
  },
1084
1059
  details: {
1085
- id: 'UnpublishProductsModal.details',
1086
- description: '"Details" column',
1087
- defaultMessage: 'Details'
1060
+ id: "UnpublishProductsModal.details",
1061
+ defaultMessage: "Details"
1088
1062
  }
1089
1063
  });
1090
1064
 
@@ -1194,39 +1168,32 @@ function getBold$2(msg) {
1194
1168
 
1195
1169
  var messages = reactIntl.defineMessages({
1196
1170
  continue: {
1197
- id: 'UnpublishProductsModal.continue',
1198
- description: 'Continue button',
1199
- defaultMessage: 'Continue'
1171
+ id: "UnpublishProductsModal.continue",
1172
+ defaultMessage: "Continue"
1200
1173
  },
1201
1174
  heresAPreview: {
1202
- id: 'UnpublishProductsModal.heresAPreview',
1203
- description: 'Here is a preview',
1175
+ id: "UnpublishProductsModal.heresAPreview",
1204
1176
  defaultMessage: "Here's a preview:"
1205
1177
  },
1206
1178
  productsToBeUnpublished: {
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}}'
1179
+ id: "UnpublishProductsModal.productsToBeUnpublished",
1180
+ defaultMessage: "{count, plural, one {<b>{count}</b> product to be unpublished} other {<b>{count}</b> products to be unpublished}}"
1210
1181
  },
1211
1182
  confirmationQuestion: {
1212
- id: 'UnpublishProductsModal.confirmationQuestion',
1213
- description: 'Confirmation question',
1214
- defaultMessage: 'Are you sure you want to unpublish the products? '
1183
+ id: "UnpublishProductsModal.confirmationQuestion",
1184
+ defaultMessage: "Are you sure you want to unpublish the products?"
1215
1185
  },
1216
1186
  confirmationText: {
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>.}}'
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>.}}"
1220
1189
  },
1221
1190
  importStarted: {
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.'
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."
1225
1193
  },
1226
1194
  preparingImport: {
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.'
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."
1230
1197
  }
1231
1198
  });
1232
1199
 
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.0",
4
+ "version": "1.1.2",
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.36.0",
22
- "@commercetools/importapi-sdk": "5.13.0",
23
- "@emotion/react": "11.13.3",
24
- "@emotion/styled": "11.13.0",
25
- "@formatjs/cli": "6.3.7",
21
+ "@commercetools-frontend/permissions": "22.38.0",
22
+ "@commercetools/importapi-sdk": "5.18.0",
23
+ "@emotion/react": "11.14.0",
24
+ "@emotion/styled": "11.14.0",
25
+ "@formatjs/cli": "6.3.15",
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",
@@ -35,23 +35,23 @@
35
35
  "prop-types": "15.8.1",
36
36
  "ramda": "^0.30.0",
37
37
  "react": "17.0.2",
38
- "react-dropzone": "14.3.4"
38
+ "react-dropzone": "14.3.5"
39
39
  },
40
40
  "devDependencies": {
41
- "@commercetools-frontend/actions-global": "22.36.0",
42
- "@commercetools-frontend/application-components": "22.36.0",
43
- "@commercetools-frontend/application-shell": "22.36.0",
44
- "@commercetools-frontend/application-shell-connectors": "22.36.0",
45
- "@commercetools-frontend/constants": "22.36.0",
46
- "@commercetools-frontend/i18n": "22.36.0",
47
- "@commercetools-frontend/jest-preset-mc-app": "22.36.0",
48
- "@commercetools-frontend/sdk": "22.36.0",
49
- "@commercetools-frontend/sentry": "22.36.0",
50
- "@commercetools-frontend/ui-kit": "19.18.0",
51
- "@commercetools-uikit/data-table": "19.18.0",
52
- "@commercetools-uikit/design-system": "19.18.0",
53
- "@commercetools-uikit/icons": "19.18.0",
54
- "@commercetools-uikit/select-field": "19.18.0",
41
+ "@commercetools-frontend/actions-global": "22.38.0",
42
+ "@commercetools-frontend/application-components": "22.38.0",
43
+ "@commercetools-frontend/application-shell": "22.38.0",
44
+ "@commercetools-frontend/application-shell-connectors": "22.38.0",
45
+ "@commercetools-frontend/constants": "22.38.0",
46
+ "@commercetools-frontend/i18n": "22.38.0",
47
+ "@commercetools-frontend/jest-preset-mc-app": "22.38.0",
48
+ "@commercetools-frontend/sdk": "22.38.0",
49
+ "@commercetools-frontend/sentry": "22.38.0",
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
55
  "@preconstruct/cli": "2.8.9",
56
56
  "@types/jest": "29.5.14",
57
57
  "@types/lodash.truncate": "^4.4.7",