@commercetools-frontend-extensions/import-resources-modal 1.6.4 → 1.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-8cca2fab.cjs.prod.js');
3
+ var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-38dc483c.cjs.prod.js');
4
4
  var jsxRuntime = require('@emotion/react/jsx-runtime');
5
5
  require('@babel/runtime-corejs3/core-js-stable/object/keys');
6
6
  require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
@@ -1,4 +1,4 @@
1
- import { F as FileDropped, E as EnabledDropArea } from './index-e6460364.esm.js';
1
+ import { F as FileDropped, E as EnabledDropArea } from './index-10b21cef.esm.js';
2
2
  import { jsx } from '@emotion/react/jsx-runtime';
3
3
  import '@babel/runtime-corejs3/core-js-stable/object/keys';
4
4
  import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-ca3e541b.cjs.dev.js');
3
+ var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-71f84008.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_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-ca3e541b.cjs.dev.js');
5
+ var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-71f84008.cjs.dev.js');
6
6
  require('react');
7
7
  require('@babel/runtime-corejs3/core-js-stable/object/keys');
8
8
  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_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-8cca2fab.cjs.prod.js');
5
+ var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-38dc483c.cjs.prod.js');
6
6
  require('react');
7
7
  require('@babel/runtime-corejs3/core-js-stable/object/keys');
8
8
  require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
@@ -1,4 +1,4 @@
1
- export { I as default, a as useImportPermission } from './index-e6460364.esm.js';
1
+ export { I as default, a as useImportPermission } from './index-10b21cef.esm.js';
2
2
  import 'react';
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';
@@ -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_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-ca3e541b.cjs.dev.js');
14
+ var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-71f84008.cjs.dev.js');
15
15
  var jsxRuntime = require('@emotion/react/jsx-runtime');
16
16
  require('@babel/runtime-corejs3/core-js-stable/instance/every');
17
17
  require('react-intl');
@@ -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_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-8cca2fab.cjs.prod.js');
14
+ var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-38dc483c.cjs.prod.js');
15
15
  var jsxRuntime = require('@emotion/react/jsx-runtime');
16
16
  require('@babel/runtime-corejs3/core-js-stable/instance/every');
17
17
  require('react-intl');
@@ -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-e6460364.esm.js';
12
+ import { m as messages } from './index-10b21cef.esm.js';
13
13
  import { jsxs, jsx } from '@emotion/react/jsx-runtime';
14
14
  import '@babel/runtime-corejs3/core-js-stable/instance/every';
15
15
  import 'react-intl';
@@ -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_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-ca3e541b.cjs.dev.js');
5
+ var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-71f84008.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');
@@ -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 useImportResourcesContext, m as messages } from './index-e6460364.esm.js';
3
+ import { u as useImportResourcesContext, m as messages } from './index-10b21cef.esm.js';
4
4
  import '@babel/runtime-corejs3/core-js-stable/object/keys';
5
5
  import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
6
6
  import '@babel/runtime-corejs3/core-js-stable/instance/filter';
@@ -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_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-8cca2fab.cjs.prod.js');
5
+ var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-38dc483c.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');
@@ -728,13 +728,13 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
728
728
  return /*#__PURE__*/css(process.env.NODE_ENV === "production" ? "" : ";label:getDefaultDropWrapperStyles;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRyb3AtYXJlYS13cmFwcGVyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE0QlkiLCJmaWxlIjoiZHJvcC1hcmVhLXdyYXBwZXIudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgdHlwZSBEcm9wem9uZVJvb3RQcm9wcyB9IGZyb20gJ3JlYWN0LWRyb3B6b25lJ1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB7IHN0eWxlcyB9IGZyb20gJy4vc3R5bGVzJ1xuaW1wb3J0IHsgdHlwZSBEcm9wQXJlYVN0YXRlIH0gZnJvbSAnLi4vLi4vLi4vQHR5cGVzJ1xuXG5pbnRlcmZhY2UgRHJvcFdyYXBwZXJQcm9wcyBleHRlbmRzIERyb3B6b25lUm9vdFByb3BzIHtcbiAgZHJvcEFyZWFTdGF0ZTogRHJvcEFyZWFTdGF0ZVxufVxuZXhwb3J0IGNvbnN0IERyb3BXcmFwcGVyID0gc3R5bGVkLmRpdjxEcm9wV3JhcHBlclByb3BzPmBcbiAgJHtzdHlsZXMuYmFzZX1cbiAgJHsocHJvcHMpID0+IHtcbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ2Rpc2FibGVkJykge1xuICAgICAgcmV0dXJuIHN0eWxlcy5kaXNhYmxlZFxuICAgIH1cbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ3JlYWR5LWZvci1kcm9wJykge1xuICAgICAgcmV0dXJuIHN0eWxlcy5yZWFkeUZvckRyb3BcbiAgICB9XG4gICAgaWYgKHByb3BzLmRyb3BBcmVhU3RhdGUgPT09ICdhY3RpdmUtZHJhZycpIHtcbiAgICAgIHJldHVybiBzdHlsZXMuYWN0aXZlRHJhZ1xuICAgIH1cbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ2ZpbGUtZHJvcHBlZCcpIHtcbiAgICAgIHJldHVybiBzdHlsZXMuZmlsZURyb3BwZWRcbiAgICB9XG4gICAgcmV0dXJuIGdldERlZmF1bHREcm9wV3JhcHBlclN0eWxlcyhwcm9wcy5kcm9wQXJlYVN0YXRlKVxuICB9fVxuYFxuZnVuY3Rpb24gZ2V0RGVmYXVsdERyb3BXcmFwcGVyU3R5bGVzKF9kcm9wQXJlYVN0YXRlOiBuZXZlcikge1xuICByZXR1cm4gY3NzYGBcbn1cbiJdfQ== */");
729
729
  }
730
730
 
731
- var ActiveDragDropArea = /*#__PURE__*/lazy(() => import('./active-drag-drop-area-4dc1357c.esm.js' /* webpackChunkName: "active-drag-drop-area" */));
731
+ var ActiveDragDropArea = /*#__PURE__*/lazy(() => import('./active-drag-drop-area-e6a52b5c.esm.js' /* webpackChunkName: "active-drag-drop-area" */));
732
732
 
733
733
  var DisabledDropArea = /*#__PURE__*/lazy(() => import('./disabled-drop-area-2c088477.esm.js' /* webpackChunkName: "disabled-drop-area" */));
734
734
 
735
- var EnabledDropArea = /*#__PURE__*/lazy(() => import('./enabled-drop-area-dd70e62e.esm.js' /* webpackChunkName: "enabled-drop-area" */));
735
+ var EnabledDropArea = /*#__PURE__*/lazy(() => import('./enabled-drop-area-b4df5667.esm.js' /* webpackChunkName: "enabled-drop-area" */));
736
736
 
737
- var FileDropped = /*#__PURE__*/lazy(() => import('./file-dropped-area-967a82f7.esm.js' /* webpackChunkName: "filed-dropped-area" */));
737
+ var FileDropped = /*#__PURE__*/lazy(() => import('./file-dropped-area-a49369d9.esm.js' /* webpackChunkName: "filed-dropped-area" */));
738
738
 
739
739
  function getDropArea(_ref) {
740
740
  let dropAreaState = _ref.dropAreaState,
@@ -774,48 +774,58 @@ function getDropAreaState(flags) {
774
774
 
775
775
  var messages$7 = defineMessages({
776
776
  dragAndDropCSV: {
777
- id: "ImportResourcesModal.dragAndDropCSV",
778
- defaultMessage: "Drag and drop CSV"
777
+ id: 'ImportResourcesModal.dragAndDropCSV',
778
+ description: 'The message telling the user to drag and drop CSV file in the file drop area',
779
+ defaultMessage: 'Drag and drop CSV'
779
780
  },
780
781
  or: {
781
- id: "ImportResourcesModal.or",
782
- defaultMessage: "or"
782
+ id: 'ImportResourcesModal.or',
783
+ description: 'The word "or" in the drag and drop message',
784
+ defaultMessage: 'or'
783
785
  },
784
786
  browseButton: {
785
- id: "ImportResourcesModal.browseFile",
786
- defaultMessage: "Browse file"
787
+ id: 'ImportResourcesModal.browseFile',
788
+ defaultMessage: 'Browse file'
787
789
  },
788
790
  uploadFile: {
789
- id: "ImportResourcesModal.uploadFile",
790
- defaultMessage: "Upload file"
791
+ id: 'ImportResourcesModal.uploadFile',
792
+ description: 'Label for a button on the file upload page, shown on active drop area state',
793
+ defaultMessage: 'Upload file'
791
794
  },
792
795
  chooseFile: {
793
- id: "ImportResourcesModal.chooseFile",
794
- defaultMessage: "Choose file"
796
+ id: 'ImportResourcesModal.chooseFile',
797
+ description: 'Label for a button on the file upload page, shown on ready to upload state',
798
+ defaultMessage: 'Choose file'
795
799
  },
796
800
  fileUploadFailed: {
797
- id: "ImportResourcesModal.fileUploadFailed",
798
- defaultMessage: "File upload failed"
801
+ id: 'ImportResourcesModal.fileUploadFailed',
802
+ description: 'A title on the file upload page, shown on file upload error state',
803
+ defaultMessage: 'File upload failed'
799
804
  },
800
805
  fileFormatNotSupported: {
801
- id: "ImportResourcesModal.fileFormatNotSupported",
802
- defaultMessage: "Invalid file format: The file is not in CSV format and cannot be processed."
806
+ id: 'ImportResourcesModal.fileFormatNotSupported',
807
+ description: 'Error message displayed when a user drags and drops a non-CSV file',
808
+ defaultMessage: 'Invalid file format: The file is not in CSV format and cannot be processed.'
803
809
  },
804
810
  tooManyFilesError: {
805
- id: "ImportResourcesModal.tooManyFilesError",
806
- defaultMessage: "Multiple files detected: You can only drag and drop one file at a time."
811
+ id: 'ImportResourcesModal.tooManyFilesError',
812
+ description: 'Error message displayed when a user drags and drops multiple files at once',
813
+ defaultMessage: 'Multiple files detected: You can only drag and drop one file at a time.'
807
814
  },
808
815
  genericError: {
809
- id: "ImportResourcesModal.genericError",
810
- defaultMessage: "Error occurred: Please try uploading the file again or contact our support team for assistance."
816
+ id: 'ImportResourcesModal.genericError',
817
+ description: 'Default error message for unexpected file upload issues (for unhandled cases)',
818
+ defaultMessage: 'Error occurred: Please try uploading the file again or contact our support team for assistance.'
811
819
  },
812
820
  dataType: {
813
- id: "ImportResourcesModal.dataType",
814
- defaultMessage: "Data type"
821
+ id: 'ImportResourcesModal.dataType',
822
+ description: 'Label for the data type selection dropdown',
823
+ defaultMessage: 'Data type'
815
824
  },
816
825
  instructions: {
817
- id: "ImportResourcesModal.instructions",
818
- defaultMessage: "Instructions"
826
+ id: 'ImportResourcesModal.instructions',
827
+ description: 'Label for the instructions section',
828
+ defaultMessage: 'Instructions'
819
829
  }
820
830
  });
821
831
 
@@ -829,52 +839,61 @@ function useImportResourcesContext() {
829
839
 
830
840
  var messages$6 = defineMessages({
831
841
  fileSizeExceededTitle: {
832
- id: "ImportResourcesModal.sizeExceededTitle",
833
- defaultMessage: "File size exceeded"
842
+ id: 'ImportResourcesModal.sizeExceededTitle',
843
+ defaultMessage: 'File size exceeded'
834
844
  },
835
845
  fileSizeExceededDescription: {
836
- id: "ImportResourcesModal.sizeExceededDescription",
837
- defaultMessage: "The file exceeds the maximum allowed size of {fileSizeLimit} MB"
846
+ id: 'ImportResourcesModal.sizeExceededDescription',
847
+ description: 'Error description when the file size exceeds the allowable limit',
848
+ defaultMessage: 'The file exceeds the maximum allowed size of {fileSizeLimit} MB'
838
849
  },
839
850
  rowLimitExceededTitle: {
840
- id: "ImportResourcesModal.rowLimitExceededTitle",
841
- defaultMessage: "Row limit exceeded"
851
+ id: 'ImportResourcesModal.rowLimitExceededTitle',
852
+ defaultMessage: 'Row limit exceeded'
842
853
  },
843
854
  rowLimitExceededDescription: {
844
- id: "ImportResourcesModal.rowLimitExceededDescription",
845
- defaultMessage: "The file contains more than the allowable maximum of {rowLimit} rows"
855
+ id: 'ImportResourcesModal.rowLimitExceededDescription',
856
+ description: 'Error description when the file contains more rows than the allowable maximum',
857
+ defaultMessage: 'The file contains more than the allowable maximum of {rowLimit} rows'
846
858
  },
847
859
  dropAreaWrongDelimiterTitle: {
848
- id: "ImportResourcesModal.wrongDelimiterTitle",
849
- defaultMessage: "Wrong delimiter"
860
+ id: 'ImportResourcesModal.wrongDelimiterTitle',
861
+ defaultMessage: 'Wrong delimiter'
850
862
  },
851
863
  dropAreaWrongDelimiterDescription: {
852
- id: "ImportResourcesModal.wrongDelimiterDescription",
853
- defaultMessage: "The file is using an incorrect delimiter. Please use comma (,) instead."
864
+ id: 'ImportResourcesModal.wrongDelimiterDescription',
865
+ description: 'Message within the drop area when a CSV file uses an unexpected delimiter',
866
+ defaultMessage: 'The file is using an incorrect delimiter. Please use comma (,) instead.'
854
867
  },
855
868
  dropAreaNotEnoughRowsTitle: {
856
- id: "ImportResourcesModal.dropAreaNotEnoughRowsTitle",
857
- defaultMessage: "Invalid CSV file"
869
+ id: 'ImportResourcesModal.dropAreaNotEnoughRowsTitle',
870
+ description: 'Error title shown when the uploaded CSV file does not contain a header and at least one row of data',
871
+ defaultMessage: 'Invalid CSV file'
858
872
  },
859
873
  dropAreaNotEnoughRowsDescription: {
860
- id: "ImportResourcesModal.dropAreaNotEnoughRowsDescription",
861
- defaultMessage: "Make sure the file contains a header and at least one row of data"
874
+ id: 'ImportResourcesModal.dropAreaNotEnoughRowsDescription',
875
+ description: 'Error description shown when the uploaded CSV file does not contain a header and at least one row of data',
876
+ defaultMessage: 'Make sure the file contains a header and at least one row of data'
862
877
  },
863
878
  unexpectedError: {
864
- id: "ImportResourcesModal.unexpectedError",
865
- defaultMessage: "An unexpected error occurred during the file upload. Please try again, or contact support if this error occurs again."
879
+ id: 'ImportResourcesModal.unexpectedError',
880
+ description: 'Generic notification message when file upload fails',
881
+ defaultMessage: 'An unexpected error occurred during the file upload. Please try again, or contact support if this error occurs again.'
866
882
  },
867
883
  missingRequiredField: {
868
- id: "ImportResourcesModal.missingRequiredField",
869
- defaultMessage: "Missing required field"
884
+ id: 'ImportResourcesModal.missingRequiredField',
885
+ description: 'Error message displayed when a required field is missing',
886
+ defaultMessage: 'Missing required field'
870
887
  },
871
888
  missingKeyError: {
872
- id: "ImportResourcesModal.missingKeyError",
889
+ id: 'ImportResourcesModal.missingKeyError',
890
+ description: 'Error message displayed when the uploaded file is missing the key field',
873
891
  defaultMessage: "The 'key' field is missing or incomplete in some rows. Please ensure every row has a 'key' value."
874
892
  },
875
893
  missingRequiredKeys: {
876
- id: "ImportResourcesModal.missingRequiredKeys",
877
- defaultMessage: "Make sure the file contains required keys for the elements including {fieldNames}"
894
+ id: 'ImportResourcesModal.missingRequiredKeys',
895
+ description: 'Error message displayed when the uploaded file is missing required keys',
896
+ defaultMessage: 'Make sure the file contains required keys for the elements including {fieldNames}'
878
897
  }
879
898
  });
880
899
 
@@ -1135,8 +1154,9 @@ const FileDropArea = () => {
1135
1154
 
1136
1155
  var messages$5 = defineMessages({
1137
1156
  publishProducts: {
1138
- id: "ImportResourcesModal.settings.publishProducts",
1139
- defaultMessage: "Publish all products in the file"
1157
+ id: 'ImportResourcesModal.settings.publishProducts',
1158
+ description: 'Label for the publish products checkbox',
1159
+ defaultMessage: 'Publish all products in the file'
1140
1160
  }
1141
1161
  });
1142
1162
 
@@ -1170,44 +1190,54 @@ const UploadSettings = () => {
1170
1190
 
1171
1191
  var sharedMessages = defineMessages({
1172
1192
  [`modalTitle.${IMPORTABLE_RESOURCES.CATEGORY}`]: {
1173
- id: "ImportResourcesModal.modalTitle.category",
1174
- defaultMessage: "Import categories by CSV"
1193
+ id: 'ImportResourcesModal.modalTitle.category',
1194
+ description: 'Label for the categories modal title',
1195
+ defaultMessage: 'Import categories by CSV'
1175
1196
  },
1176
1197
  [`modalTitle.${IMPORTABLE_RESOURCES.PRODUCT}`]: {
1177
- id: "ImportResourcesModal.modalTitle.product",
1178
- defaultMessage: "Import products by CSV"
1198
+ id: 'ImportResourcesModal.modalTitle.product',
1199
+ description: 'Label for the products modal title',
1200
+ defaultMessage: 'Import products by CSV'
1179
1201
  },
1180
1202
  [`modalTitle.${IMPORTABLE_RESOURCES.INVENTORY}`]: {
1181
- id: "ImportResourcesModal.modalTitle.inventoryEntry",
1182
- defaultMessage: "Import inventories by CSV"
1203
+ id: 'ImportResourcesModal.modalTitle.inventoryEntry',
1204
+ description: 'Label for the inventories modal title',
1205
+ defaultMessage: 'Import inventories by CSV'
1183
1206
  },
1184
1207
  [`modalTitle.${IMPORTABLE_RESOURCES.DISCOUNT_CODE}`]: {
1185
- id: "ImportResourcesModal.modalTitle.discountCode",
1186
- defaultMessage: "Import discount codes by CSV"
1208
+ id: 'ImportResourcesModal.modalTitle.discountCode',
1209
+ description: 'Label for the inventories modal title',
1210
+ defaultMessage: 'Import discount codes by CSV'
1187
1211
  },
1188
1212
  [`modalTitle.${IMPORTABLE_RESOURCES.CUSTOMER}`]: {
1189
- id: "ImportResourcesModal.modalTitle.customer",
1190
- defaultMessage: "Import customers by CSV"
1213
+ id: 'ImportResourcesModal.modalTitle.customer',
1214
+ description: 'Label for the customers modal title',
1215
+ defaultMessage: 'Import customers by CSV'
1191
1216
  },
1192
1217
  [`modalTitle.${IMPORTABLE_RESOURCES.ORDER}`]: {
1193
- id: "ImportResourcesModal.modalTitle.order",
1194
- defaultMessage: "Import orders by CSV"
1218
+ id: 'ImportResourcesModal.modalTitle.order',
1219
+ description: 'Label for the order modal title',
1220
+ defaultMessage: 'Import orders by CSV'
1195
1221
  },
1196
1222
  [`modalTitle.${IMPORTABLE_RESOURCES.PRODUCT_TYPE}`]: {
1197
- id: "ImportResourcesModal.modalTitle.productType",
1198
- defaultMessage: "Import product types by CSV"
1223
+ id: 'ImportResourcesModal.modalTitle.productType',
1224
+ description: 'Label for the product type modal title',
1225
+ defaultMessage: 'Import product types by CSV'
1199
1226
  },
1200
1227
  uploadButton: {
1201
- id: "ImportResourcesModal.uploadButton",
1202
- defaultMessage: "Upload and preview"
1228
+ id: 'ImportResourcesModal.uploadButton',
1229
+ description: 'Label for the upload button',
1230
+ defaultMessage: 'Upload and preview'
1203
1231
  },
1204
1232
  cancel: {
1205
- id: "ImportResourcesModal.cancel",
1206
- defaultMessage: "Cancel"
1233
+ id: 'ImportResourcesModal.cancel',
1234
+ description: 'Label for the cancel button',
1235
+ defaultMessage: 'Cancel'
1207
1236
  },
1208
1237
  close: {
1209
- id: "ImportResourcesModal.close",
1210
- defaultMessage: "Close"
1238
+ id: 'ImportResourcesModal.close',
1239
+ description: 'Label for the close button',
1240
+ defaultMessage: 'Close'
1211
1241
  }
1212
1242
  });
1213
1243
 
@@ -1269,28 +1299,34 @@ const Upload = () => {
1269
1299
 
1270
1300
  var messages$4 = defineMessages({
1271
1301
  row: {
1272
- id: "ImportResourcesModal.row",
1273
- defaultMessage: "Row"
1302
+ id: 'ImportResourcesModal.row',
1303
+ description: 'In Upload file error modal - "Row" column',
1304
+ defaultMessage: 'Row'
1274
1305
  },
1275
1306
  errorType: {
1276
- id: "ImportResourcesModal.errorType",
1277
- defaultMessage: "Error type"
1307
+ id: 'ImportResourcesModal.errorType',
1308
+ description: 'In Upload file error modal - "Error type" column',
1309
+ defaultMessage: 'Error type'
1278
1310
  },
1279
1311
  details: {
1280
- id: "ImportResourcesModal.details",
1281
- defaultMessage: "Details"
1312
+ id: 'ImportResourcesModal.details',
1313
+ description: 'In Upload file error modal - "Details" column',
1314
+ defaultMessage: 'Details'
1282
1315
  },
1283
1316
  uploadErrorDescription: {
1284
- id: "ImportResourcesModal.uploadErrorDescription",
1285
- defaultMessage: "There {errorsCount, plural, one {is <b>{errorsCount}</b> error} other {are <b>{errorsCount}</b> errors}} detected while uploading the file <b>{fileName}</b>."
1317
+ id: 'ImportResourcesModal.uploadErrorDescription',
1318
+ description: 'Title when errors detected while uploading file',
1319
+ defaultMessage: 'There {errorsCount, plural, one {is <b>{errorsCount}</b> error} other {are <b>{errorsCount}</b> errors}} detected while uploading the file <b>{fileName}</b>.'
1286
1320
  },
1287
1321
  supportedValuesDocumentation: {
1288
- id: "ImportResourcesModal.supportedValuesDocumentation",
1289
- defaultMessage: "<documentationLink>View the documentation</documentationLink> for supported values."
1322
+ id: 'ImportResourcesModal.supportedValuesDocumentation',
1323
+ description: 'Link to the documentation for supported values',
1324
+ defaultMessage: '<documentationLink>View the documentation</documentationLink> for supported values.'
1290
1325
  },
1291
1326
  uploadNewFile: {
1292
- id: "ImportResourcesModal.uploadNewFile",
1293
- defaultMessage: "Upload new file"
1327
+ id: 'ImportResourcesModal.uploadNewFile',
1328
+ description: 'Upload new file button',
1329
+ defaultMessage: 'Upload new file'
1294
1330
  }
1295
1331
  });
1296
1332
 
@@ -1531,56 +1567,69 @@ function getBold$2(msg) {
1531
1567
 
1532
1568
  var messages$3 = defineMessages({
1533
1569
  startImportButton: {
1534
- id: "ImportResourcesModal.startImportButton",
1535
- defaultMessage: "Start import"
1570
+ id: 'ImportResourcesModal.startImportButton',
1571
+ description: 'Label for the modal Start import button',
1572
+ defaultMessage: 'Start import'
1536
1573
  },
1537
1574
  importNotificationSuccessMessage: {
1538
- id: "ImportResourcesModal.successMessage",
1539
- defaultMessage: "<b>Your import has started.</b><newline></newline> <logsLink>Go to Import logs</logsLink> to view the progress."
1575
+ id: 'ImportResourcesModal.successMessage',
1576
+ description: 'Notification success message',
1577
+ defaultMessage: '<b>Your import has started.</b><newline></newline> <logsLink>Go to Import logs</logsLink> to view the progress.'
1540
1578
  },
1541
1579
  importNotificationPrepareMessage: {
1542
- id: "ImportResourcesModal.prepareMessage",
1543
- defaultMessage: "<b>Prepare import</b><newline></newline>Once preparation is complete, you can track the import progress <logsLink>in the Import logs</logsLink>."
1580
+ id: 'ImportResourcesModal.prepareMessage',
1581
+ description: 'Notification for preparing import',
1582
+ defaultMessage: '<b>Prepare import</b><newline></newline>Once preparation is complete, you can track the import progress <logsLink>in the Import logs</logsLink>.'
1544
1583
  },
1545
1584
  previewOfYourImport: {
1546
- id: "ImportResourcesModal.previewOfYourImport",
1585
+ id: 'ImportResourcesModal.previewOfYourImport',
1586
+ description: 'Label for modal path',
1547
1587
  defaultMessage: "Here's a preview of your import"
1548
1588
  },
1549
1589
  rowsToBeImported: {
1550
- id: "ImportResourcesModal.rowsToBeImported",
1551
- defaultMessage: "{rowCount, plural, one {<b>1</b> row to be imported} other {<b>{rowCount}</b> rows to be imported}}{publish, select, true { and published} other {}}"
1590
+ id: 'ImportResourcesModal.rowsToBeImported',
1591
+ description: 'This message indicates the number of rows that are ready to be imported into the system.',
1592
+ defaultMessage: '{rowCount, plural, one {<b>1</b> row to be imported} other {<b>{rowCount}</b> rows to be imported}}{publish, select, true { and published} other {}}'
1552
1593
  },
1553
1594
  columnsToBeImported: {
1554
- id: "ImportResourcesModal.columnsToBeImported",
1555
- defaultMessage: "<b>{columnCount}</b> columns to be imported"
1595
+ id: 'ImportResourcesModal.columnsToBeImported',
1596
+ description: 'This message indicates the number of columns that are ready to be imported into the system.',
1597
+ defaultMessage: '<b>{columnCount}</b> columns to be imported'
1556
1598
  },
1557
1599
  columnsToBeIgnored: {
1558
- id: "ImportResourcesModal.columnsToBeIgnored",
1600
+ id: 'ImportResourcesModal.columnsToBeIgnored',
1601
+ description: "This message indicates the number of columns that will be deliberately skipped during the import because they can't be imported",
1559
1602
  defaultMessage: "We will intentionally ignore <b>{columnCount}</b> columns as they can't be imported"
1560
1603
  },
1561
1604
  showMore: {
1562
- id: "ImportResourcesModal.showMore",
1563
- defaultMessage: "Show more"
1605
+ id: 'ImportResourcesModal.showMore',
1606
+ description: 'A button label for expanding the import preview to show more details.',
1607
+ defaultMessage: 'Show more'
1564
1608
  },
1565
1609
  showLess: {
1566
- id: "ImportResourcesModal.showLess",
1567
- defaultMessage: "Show less"
1610
+ id: 'ImportResourcesModal.showLess',
1611
+ description: 'A button label for collapsing the import preview to show fewer details.',
1612
+ defaultMessage: 'Show less'
1568
1613
  },
1569
1614
  continue: {
1570
- id: "ImportResourcesModal.continue",
1571
- defaultMessage: "Continue"
1615
+ id: 'ImportResourcesModal.continue',
1616
+ description: 'Confirmation dialog continue button',
1617
+ defaultMessage: 'Continue'
1572
1618
  },
1573
1619
  confirmationBodyText: {
1574
- id: "ImportResourcesModal.confirmationBodyText",
1575
- defaultMessage: "You are about to import {count, plural, one {<bold>1</bold> row} other {<bold>{count}</bold> rows}} in the project: <bold>{projectName}</bold>."
1620
+ id: 'ImportResourcesModal.confirmationBodyText',
1621
+ description: 'Confirmation dialog text',
1622
+ defaultMessage: 'You are about to import {count, plural, one {<bold>1</bold> row} other {<bold>{count}</bold> rows}} in the project: <bold>{projectName}</bold>.'
1576
1623
  },
1577
1624
  confirmationBodyNote: {
1578
- id: "ImportResourcesModal.confirmationBodyNote",
1579
- defaultMessage: "Please be aware that existing values with the same keys will be overwritten by the data included in the CSV."
1625
+ id: 'ImportResourcesModal.confirmationBodyNote',
1626
+ description: 'Confirmation dialog text',
1627
+ defaultMessage: 'Please be aware that existing values with the same keys will be overwritten by the data included in the CSV.'
1580
1628
  },
1581
1629
  confirmationBodyQuestion: {
1582
- id: "ImportResourcesModal.confirmationBodyQuestion",
1583
- defaultMessage: "Proceed with the import?"
1630
+ id: 'ImportResourcesModal.confirmationBodyQuestion',
1631
+ description: 'Confirmation question',
1632
+ defaultMessage: 'Proceed with the import?'
1584
1633
  }
1585
1634
  });
1586
1635
 
@@ -2007,16 +2056,19 @@ const CurrentStep = () => {
2007
2056
 
2008
2057
  var messages$2 = defineMessages({
2009
2058
  products: {
2010
- id: "ImportResourcesModal.radio.products",
2011
- defaultMessage: "Products (including variants, assets, prices and images)"
2059
+ id: 'ImportResourcesModal.radio.products',
2060
+ description: 'Label for the products radio button',
2061
+ defaultMessage: 'Products (including variants, assets, prices and images)'
2012
2062
  },
2013
2063
  inventories: {
2014
- id: "ImportResourcesModal.radio.inventories",
2015
- defaultMessage: "Inventories"
2064
+ id: 'ImportResourcesModal.radio.inventories',
2065
+ description: 'Label for the inventories radio button',
2066
+ defaultMessage: 'Inventories'
2016
2067
  },
2017
2068
  categories: {
2018
- id: "ImportResourcesModal.radio.categories",
2019
- defaultMessage: "Categories"
2069
+ id: 'ImportResourcesModal.radio.categories',
2070
+ description: 'Label for the categories radio button',
2071
+ defaultMessage: 'Categories'
2020
2072
  }
2021
2073
  });
2022
2074
 
@@ -2057,8 +2109,9 @@ const ResourceTypeSelection = () => {
2057
2109
 
2058
2110
  var messages$1 = defineMessages({
2059
2111
  fileUploadInstructions: {
2060
- id: "ImportResourcesModal.fileUploadInstructions",
2061
- defaultMessage: "Maximum file size is {fileSize} MB with a limit of {rowLimit} rows. Download <csvTemplateLink>the CSV template</csvTemplateLink> or refer to <documentationLink>the documentation</documentationLink>."
2112
+ id: 'ImportResourcesModal.fileUploadInstructions',
2113
+ description: 'Label for the modal category description',
2114
+ defaultMessage: 'Maximum file size is {fileSize} MB with a limit of {rowLimit} rows. Download <csvTemplateLink>the CSV template</csvTemplateLink> or refer to <documentationLink>the documentation</documentationLink>.'
2062
2115
  }
2063
2116
  });
2064
2117
 
@@ -2094,12 +2147,14 @@ const Instructions = () => {
2094
2147
 
2095
2148
  var messages = defineMessages({
2096
2149
  prerequisitesOfImportingData: {
2097
- id: "ImportResourcesModal.infoBox.prerequisitesOfImportingData",
2098
- defaultMessage: "Prerequisites of importing data"
2150
+ id: 'ImportResourcesModal.infoBox.prerequisitesOfImportingData',
2151
+ description: 'A message to guide users to check the prerequisites of importing data',
2152
+ defaultMessage: 'Prerequisites of importing data'
2099
2153
  },
2100
2154
  keysForEveryResource: {
2101
- id: "ImportResourcesModal.infoBox.keysForEveryResource",
2102
- defaultMessage: "You must provide keys for every resource you import, including embedded resources such as Prices and Assets. Please consult with your admins to assign keys through <link>the HTTP API</link>."
2155
+ id: 'ImportResourcesModal.infoBox.keysForEveryResource',
2156
+ description: 'A message to guide users to provide keys for every resource they import',
2157
+ defaultMessage: 'You must provide keys for every resource you import, including embedded resources such as Prices and Assets. Please consult with your admins to assign keys through <link>the HTTP API</link>.'
2103
2158
  }
2104
2159
  });
2105
2160