@commercetools-frontend-extensions/unpublish-products-modal 1.1.5 → 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.
- package/dist/{active-drag-drop-area-cb410640.cjs.prod.js → active-drag-drop-area-0967d70c.cjs.prod.js} +1 -1
- package/dist/{active-drag-drop-area-588ee003.esm.js → active-drag-drop-area-16144107.esm.js} +1 -1
- package/dist/{active-drag-drop-area-97012391.cjs.dev.js → active-drag-drop-area-7d26eb59.cjs.dev.js} +1 -1
- package/dist/commercetools-frontend-extensions-unpublish-products-modal.cjs.dev.js +1 -1
- package/dist/commercetools-frontend-extensions-unpublish-products-modal.cjs.prod.js +1 -1
- package/dist/commercetools-frontend-extensions-unpublish-products-modal.esm.js +1 -1
- package/dist/{enabled-drop-area-316a1580.cjs.dev.js → enabled-drop-area-34dd8d10.cjs.dev.js} +1 -1
- package/dist/{enabled-drop-area-cfeadf2b.esm.js → enabled-drop-area-97e95b8d.esm.js} +1 -1
- package/dist/{enabled-drop-area-6625704b.cjs.prod.js → enabled-drop-area-fcac374b.cjs.prod.js} +1 -1
- package/dist/{file-dropped-area-98c3a590.esm.js → file-dropped-area-2a49c051.esm.js} +1 -1
- package/dist/{file-dropped-area-81a018c7.cjs.prod.js → file-dropped-area-59513bcc.cjs.prod.js} +1 -1
- package/dist/{file-dropped-area-f56570a5.cjs.dev.js → file-dropped-area-7304cc8b.cjs.dev.js} +1 -1
- package/dist/{index-7753d112.cjs.prod.js → index-37972e5b.cjs.prod.js} +106 -73
- package/dist/{index-5eba85d2.esm.js → index-545d775d.esm.js} +106 -73
- package/dist/{index-ab633de3.cjs.dev.js → index-a251a401.cjs.dev.js} +106 -73
- package/package.json +16 -16
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-
|
|
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');
|
package/dist/{active-drag-drop-area-588ee003.esm.js → active-drag-drop-area-16144107.esm.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FileDropped, E as EnabledDropArea } from './index-
|
|
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';
|
package/dist/{active-drag-drop-area-97012391.cjs.dev.js → active-drag-drop-area-7d26eb59.cjs.dev.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-
|
|
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-
|
|
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-
|
|
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-
|
|
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';
|
package/dist/{enabled-drop-area-316a1580.cjs.dev.js → enabled-drop-area-34dd8d10.cjs.dev.js}
RENAMED
|
@@ -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-
|
|
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-
|
|
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';
|
package/dist/{enabled-drop-area-6625704b.cjs.prod.js → enabled-drop-area-fcac374b.cjs.prod.js}
RENAMED
|
@@ -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-
|
|
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-
|
|
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';
|
package/dist/{file-dropped-area-81a018c7.cjs.prod.js → file-dropped-area-59513bcc.cjs.prod.js}
RENAMED
|
@@ -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-
|
|
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');
|
package/dist/{file-dropped-area-f56570a5.cjs.dev.js → file-dropped-area-7304cc8b.cjs.dev.js}
RENAMED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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:
|
|
457
|
-
|
|
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:
|
|
461
|
-
|
|
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:
|
|
465
|
-
defaultMessage:
|
|
466
|
+
id: 'UnpublishProductsModal.browseFile',
|
|
467
|
+
defaultMessage: 'Browse file'
|
|
466
468
|
},
|
|
467
469
|
uploadAndPreview: {
|
|
468
|
-
id:
|
|
469
|
-
|
|
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:
|
|
473
|
-
|
|
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:
|
|
477
|
-
|
|
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:
|
|
481
|
-
|
|
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:
|
|
485
|
-
|
|
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:
|
|
489
|
-
|
|
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:
|
|
493
|
-
|
|
500
|
+
id: 'UnpublishProductsModal.dataType',
|
|
501
|
+
description: 'Label for the data type selection dropdown',
|
|
502
|
+
defaultMessage: 'Data type'
|
|
494
503
|
},
|
|
495
504
|
instructions: {
|
|
496
|
-
id:
|
|
497
|
-
|
|
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:
|
|
544
|
-
defaultMessage:
|
|
553
|
+
id: 'UnpublishProductsModal.sizeExceededTitle',
|
|
554
|
+
defaultMessage: 'File size exceeded'
|
|
545
555
|
},
|
|
546
556
|
fileSizeExceededDescription: {
|
|
547
|
-
id:
|
|
548
|
-
|
|
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:
|
|
552
|
-
defaultMessage:
|
|
562
|
+
id: 'UnpublishProductsModal.rowLimitExceededTitle',
|
|
563
|
+
defaultMessage: 'Row limit exceeded'
|
|
553
564
|
},
|
|
554
565
|
rowLimitExceededDescription: {
|
|
555
|
-
id:
|
|
556
|
-
|
|
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:
|
|
560
|
-
|
|
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:
|
|
564
|
-
|
|
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:
|
|
568
|
-
|
|
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:
|
|
572
|
-
|
|
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:
|
|
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:
|
|
580
|
-
|
|
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:
|
|
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:
|
|
887
|
-
|
|
905
|
+
id: 'UnpublishProductsModal.unpublishModalTitle',
|
|
906
|
+
description: 'The title of the modal',
|
|
907
|
+
defaultMessage: 'Bulk unpublish via CSV'
|
|
888
908
|
},
|
|
889
909
|
startBulkUnpublish: {
|
|
890
|
-
id:
|
|
891
|
-
|
|
910
|
+
id: 'UnpublishProductsModal.startBulkUnpublish',
|
|
911
|
+
description: 'Start bulk unpublish button',
|
|
912
|
+
defaultMessage: 'Start bulk unpublish'
|
|
892
913
|
},
|
|
893
914
|
cancel: {
|
|
894
|
-
id:
|
|
895
|
-
|
|
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:
|
|
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:
|
|
1049
|
-
defaultMessage:
|
|
1071
|
+
id: 'UnpublishProductsModal.uploadNewFile',
|
|
1072
|
+
defaultMessage: 'Upload new file'
|
|
1050
1073
|
},
|
|
1051
1074
|
uploadErrorDescription: {
|
|
1052
|
-
id:
|
|
1053
|
-
|
|
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:
|
|
1057
|
-
|
|
1080
|
+
id: 'UnpublishProductsModal.errorType',
|
|
1081
|
+
description: 'Error type" column',
|
|
1082
|
+
defaultMessage: 'Error type'
|
|
1058
1083
|
},
|
|
1059
1084
|
details: {
|
|
1060
|
-
id:
|
|
1061
|
-
|
|
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:
|
|
1172
|
-
|
|
1197
|
+
id: 'UnpublishProductsModal.continue',
|
|
1198
|
+
description: 'Continue button',
|
|
1199
|
+
defaultMessage: 'Continue'
|
|
1173
1200
|
},
|
|
1174
1201
|
heresAPreview: {
|
|
1175
|
-
id:
|
|
1202
|
+
id: 'UnpublishProductsModal.heresAPreview',
|
|
1203
|
+
description: 'Here is a preview',
|
|
1176
1204
|
defaultMessage: "Here's a preview:"
|
|
1177
1205
|
},
|
|
1178
1206
|
productsToBeUnpublished: {
|
|
1179
|
-
id:
|
|
1180
|
-
|
|
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:
|
|
1184
|
-
|
|
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:
|
|
1188
|
-
|
|
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:
|
|
1192
|
-
|
|
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:
|
|
1196
|
-
|
|
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-
|
|
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-
|
|
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-
|
|
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:
|
|
434
|
-
|
|
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:
|
|
438
|
-
|
|
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:
|
|
442
|
-
defaultMessage:
|
|
443
|
+
id: 'UnpublishProductsModal.browseFile',
|
|
444
|
+
defaultMessage: 'Browse file'
|
|
443
445
|
},
|
|
444
446
|
uploadAndPreview: {
|
|
445
|
-
id:
|
|
446
|
-
|
|
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:
|
|
450
|
-
|
|
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:
|
|
454
|
-
|
|
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:
|
|
458
|
-
|
|
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:
|
|
462
|
-
|
|
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:
|
|
466
|
-
|
|
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:
|
|
470
|
-
|
|
477
|
+
id: 'UnpublishProductsModal.dataType',
|
|
478
|
+
description: 'Label for the data type selection dropdown',
|
|
479
|
+
defaultMessage: 'Data type'
|
|
471
480
|
},
|
|
472
481
|
instructions: {
|
|
473
|
-
id:
|
|
474
|
-
|
|
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:
|
|
521
|
-
defaultMessage:
|
|
530
|
+
id: 'UnpublishProductsModal.sizeExceededTitle',
|
|
531
|
+
defaultMessage: 'File size exceeded'
|
|
522
532
|
},
|
|
523
533
|
fileSizeExceededDescription: {
|
|
524
|
-
id:
|
|
525
|
-
|
|
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:
|
|
529
|
-
defaultMessage:
|
|
539
|
+
id: 'UnpublishProductsModal.rowLimitExceededTitle',
|
|
540
|
+
defaultMessage: 'Row limit exceeded'
|
|
530
541
|
},
|
|
531
542
|
rowLimitExceededDescription: {
|
|
532
|
-
id:
|
|
533
|
-
|
|
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:
|
|
537
|
-
|
|
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:
|
|
541
|
-
|
|
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:
|
|
545
|
-
|
|
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:
|
|
549
|
-
|
|
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:
|
|
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:
|
|
557
|
-
|
|
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:
|
|
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:
|
|
864
|
-
|
|
882
|
+
id: 'UnpublishProductsModal.unpublishModalTitle',
|
|
883
|
+
description: 'The title of the modal',
|
|
884
|
+
defaultMessage: 'Bulk unpublish via CSV'
|
|
865
885
|
},
|
|
866
886
|
startBulkUnpublish: {
|
|
867
|
-
id:
|
|
868
|
-
|
|
887
|
+
id: 'UnpublishProductsModal.startBulkUnpublish',
|
|
888
|
+
description: 'Start bulk unpublish button',
|
|
889
|
+
defaultMessage: 'Start bulk unpublish'
|
|
869
890
|
},
|
|
870
891
|
cancel: {
|
|
871
|
-
id:
|
|
872
|
-
|
|
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:
|
|
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:
|
|
1026
|
-
defaultMessage:
|
|
1048
|
+
id: 'UnpublishProductsModal.uploadNewFile',
|
|
1049
|
+
defaultMessage: 'Upload new file'
|
|
1027
1050
|
},
|
|
1028
1051
|
uploadErrorDescription: {
|
|
1029
|
-
id:
|
|
1030
|
-
|
|
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:
|
|
1034
|
-
|
|
1057
|
+
id: 'UnpublishProductsModal.errorType',
|
|
1058
|
+
description: 'Error type" column',
|
|
1059
|
+
defaultMessage: 'Error type'
|
|
1035
1060
|
},
|
|
1036
1061
|
details: {
|
|
1037
|
-
id:
|
|
1038
|
-
|
|
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:
|
|
1149
|
-
|
|
1174
|
+
id: 'UnpublishProductsModal.continue',
|
|
1175
|
+
description: 'Continue button',
|
|
1176
|
+
defaultMessage: 'Continue'
|
|
1150
1177
|
},
|
|
1151
1178
|
heresAPreview: {
|
|
1152
|
-
id:
|
|
1179
|
+
id: 'UnpublishProductsModal.heresAPreview',
|
|
1180
|
+
description: 'Here is a preview',
|
|
1153
1181
|
defaultMessage: "Here's a preview:"
|
|
1154
1182
|
},
|
|
1155
1183
|
productsToBeUnpublished: {
|
|
1156
|
-
id:
|
|
1157
|
-
|
|
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:
|
|
1161
|
-
|
|
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:
|
|
1165
|
-
|
|
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:
|
|
1169
|
-
|
|
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:
|
|
1173
|
-
|
|
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-
|
|
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-
|
|
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-
|
|
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:
|
|
460
|
-
|
|
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:
|
|
464
|
-
|
|
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:
|
|
468
|
-
defaultMessage:
|
|
469
|
+
id: 'UnpublishProductsModal.browseFile',
|
|
470
|
+
defaultMessage: 'Browse file'
|
|
469
471
|
},
|
|
470
472
|
uploadAndPreview: {
|
|
471
|
-
id:
|
|
472
|
-
|
|
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:
|
|
476
|
-
|
|
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:
|
|
480
|
-
|
|
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:
|
|
484
|
-
|
|
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:
|
|
488
|
-
|
|
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:
|
|
492
|
-
|
|
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:
|
|
496
|
-
|
|
503
|
+
id: 'UnpublishProductsModal.dataType',
|
|
504
|
+
description: 'Label for the data type selection dropdown',
|
|
505
|
+
defaultMessage: 'Data type'
|
|
497
506
|
},
|
|
498
507
|
instructions: {
|
|
499
|
-
id:
|
|
500
|
-
|
|
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:
|
|
547
|
-
defaultMessage:
|
|
556
|
+
id: 'UnpublishProductsModal.sizeExceededTitle',
|
|
557
|
+
defaultMessage: 'File size exceeded'
|
|
548
558
|
},
|
|
549
559
|
fileSizeExceededDescription: {
|
|
550
|
-
id:
|
|
551
|
-
|
|
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:
|
|
555
|
-
defaultMessage:
|
|
565
|
+
id: 'UnpublishProductsModal.rowLimitExceededTitle',
|
|
566
|
+
defaultMessage: 'Row limit exceeded'
|
|
556
567
|
},
|
|
557
568
|
rowLimitExceededDescription: {
|
|
558
|
-
id:
|
|
559
|
-
|
|
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:
|
|
563
|
-
|
|
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:
|
|
567
|
-
|
|
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:
|
|
571
|
-
|
|
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:
|
|
575
|
-
|
|
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:
|
|
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:
|
|
583
|
-
|
|
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:
|
|
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:
|
|
890
|
-
|
|
908
|
+
id: 'UnpublishProductsModal.unpublishModalTitle',
|
|
909
|
+
description: 'The title of the modal',
|
|
910
|
+
defaultMessage: 'Bulk unpublish via CSV'
|
|
891
911
|
},
|
|
892
912
|
startBulkUnpublish: {
|
|
893
|
-
id:
|
|
894
|
-
|
|
913
|
+
id: 'UnpublishProductsModal.startBulkUnpublish',
|
|
914
|
+
description: 'Start bulk unpublish button',
|
|
915
|
+
defaultMessage: 'Start bulk unpublish'
|
|
895
916
|
},
|
|
896
917
|
cancel: {
|
|
897
|
-
id:
|
|
898
|
-
|
|
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:
|
|
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:
|
|
1052
|
-
defaultMessage:
|
|
1074
|
+
id: 'UnpublishProductsModal.uploadNewFile',
|
|
1075
|
+
defaultMessage: 'Upload new file'
|
|
1053
1076
|
},
|
|
1054
1077
|
uploadErrorDescription: {
|
|
1055
|
-
id:
|
|
1056
|
-
|
|
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:
|
|
1060
|
-
|
|
1083
|
+
id: 'UnpublishProductsModal.errorType',
|
|
1084
|
+
description: 'Error type" column',
|
|
1085
|
+
defaultMessage: 'Error type'
|
|
1061
1086
|
},
|
|
1062
1087
|
details: {
|
|
1063
|
-
id:
|
|
1064
|
-
|
|
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:
|
|
1175
|
-
|
|
1200
|
+
id: 'UnpublishProductsModal.continue',
|
|
1201
|
+
description: 'Continue button',
|
|
1202
|
+
defaultMessage: 'Continue'
|
|
1176
1203
|
},
|
|
1177
1204
|
heresAPreview: {
|
|
1178
|
-
id:
|
|
1205
|
+
id: 'UnpublishProductsModal.heresAPreview',
|
|
1206
|
+
description: 'Here is a preview',
|
|
1179
1207
|
defaultMessage: "Here's a preview:"
|
|
1180
1208
|
},
|
|
1181
1209
|
productsToBeUnpublished: {
|
|
1182
|
-
id:
|
|
1183
|
-
|
|
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:
|
|
1187
|
-
|
|
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:
|
|
1191
|
-
|
|
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:
|
|
1195
|
-
|
|
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:
|
|
1199
|
-
|
|
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
|
+
"version": "1.1.6",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@babel/runtime": "7.26.0",
|
|
19
19
|
"@babel/runtime-corejs3": "7.26.0",
|
|
20
20
|
"@commercetools-frontend/fullstory": "2.5.1",
|
|
21
|
-
"@commercetools-frontend/permissions": "22.
|
|
21
|
+
"@commercetools-frontend/permissions": "22.39.1",
|
|
22
22
|
"@commercetools/importapi-sdk": "5.20.0",
|
|
23
23
|
"@emotion/react": "11.14.0",
|
|
24
24
|
"@emotion/styled": "11.14.0",
|
|
@@ -38,20 +38,20 @@
|
|
|
38
38
|
"react-dropzone": "14.3.5"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@commercetools-frontend/actions-global": "22.
|
|
42
|
-
"@commercetools-frontend/application-components": "22.
|
|
43
|
-
"@commercetools-frontend/application-shell": "22.
|
|
44
|
-
"@commercetools-frontend/application-shell-connectors": "22.
|
|
45
|
-
"@commercetools-frontend/constants": "22.
|
|
46
|
-
"@commercetools-frontend/i18n": "22.
|
|
47
|
-
"@commercetools-frontend/jest-preset-mc-app": "22.
|
|
48
|
-
"@commercetools-frontend/sdk": "22.
|
|
49
|
-
"@commercetools-frontend/sentry": "22.
|
|
50
|
-
"@commercetools-frontend/ui-kit": "19.22.
|
|
51
|
-
"@commercetools-uikit/data-table": "19.22.
|
|
52
|
-
"@commercetools-uikit/design-system": "19.22.
|
|
53
|
-
"@commercetools-uikit/icons": "19.22.
|
|
54
|
-
"@commercetools-uikit/select-field": "19.22.
|
|
41
|
+
"@commercetools-frontend/actions-global": "22.39.1",
|
|
42
|
+
"@commercetools-frontend/application-components": "22.39.1",
|
|
43
|
+
"@commercetools-frontend/application-shell": "22.39.1",
|
|
44
|
+
"@commercetools-frontend/application-shell-connectors": "22.39.1",
|
|
45
|
+
"@commercetools-frontend/constants": "22.39.1",
|
|
46
|
+
"@commercetools-frontend/i18n": "22.39.1",
|
|
47
|
+
"@commercetools-frontend/jest-preset-mc-app": "22.39.1",
|
|
48
|
+
"@commercetools-frontend/sdk": "22.39.1",
|
|
49
|
+
"@commercetools-frontend/sentry": "22.39.1",
|
|
50
|
+
"@commercetools-frontend/ui-kit": "19.22.1",
|
|
51
|
+
"@commercetools-uikit/data-table": "19.22.1",
|
|
52
|
+
"@commercetools-uikit/design-system": "19.22.1",
|
|
53
|
+
"@commercetools-uikit/icons": "19.22.1",
|
|
54
|
+
"@commercetools-uikit/select-field": "19.22.1",
|
|
55
55
|
"@preconstruct/cli": "2.8.10",
|
|
56
56
|
"@types/jest": "29.5.14",
|
|
57
57
|
"@types/lodash.truncate": "^4.4.7",
|