@commercetools-frontend-extensions/import-resources-modal 1.6.1 → 1.6.3

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-24058519.cjs.prod.js');
3
+ var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-8cca2fab.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-a9f2ddb0.esm.js';
1
+ import { F as FileDropped, E as EnabledDropArea } from './index-e6460364.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-e6077cb6.cjs.dev.js');
3
+ var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-ca3e541b.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-e6077cb6.cjs.dev.js');
5
+ var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-ca3e541b.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-24058519.cjs.prod.js');
5
+ var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-8cca2fab.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-a9f2ddb0.esm.js';
1
+ export { I as default, a as useImportPermission } from './index-e6460364.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-24058519.cjs.prod.js');
14
+ var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-8cca2fab.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');
@@ -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-e6077cb6.cjs.dev.js');
14
+ var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-ca3e541b.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');
@@ -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-a9f2ddb0.esm.js';
12
+ import { m as messages } from './index-e6460364.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-e6077cb6.cjs.dev.js');
5
+ var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-ca3e541b.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-a9f2ddb0.esm.js';
3
+ import { u as useImportResourcesContext, m as messages } from './index-e6460364.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-24058519.cjs.prod.js');
5
+ var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-8cca2fab.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');
@@ -754,13 +754,13 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
754
754
  return /*#__PURE__*/react.css("" , "" );
755
755
  }
756
756
 
757
- var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-81383abf.cjs.prod.js' /* webpackChunkName: "active-drag-drop-area" */); }));
757
+ var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-373d643b.cjs.prod.js' /* webpackChunkName: "active-drag-drop-area" */); }));
758
758
 
759
759
  var DisabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./disabled-drop-area-99c1fa0b.cjs.prod.js' /* webpackChunkName: "disabled-drop-area" */); }));
760
760
 
761
- var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-2004cb35.cjs.prod.js' /* webpackChunkName: "enabled-drop-area" */); }));
761
+ var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-86d22a1c.cjs.prod.js' /* webpackChunkName: "enabled-drop-area" */); }));
762
762
 
763
- var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-f4c105e1.cjs.prod.js' /* webpackChunkName: "filed-dropped-area" */); }));
763
+ var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-a5e8e576.cjs.prod.js' /* webpackChunkName: "filed-dropped-area" */); }));
764
764
 
765
765
  function getDropArea(_ref) {
766
766
  let dropAreaState = _ref.dropAreaState,
@@ -800,58 +800,48 @@ function getDropAreaState(flags) {
800
800
 
801
801
  var messages$7 = reactIntl.defineMessages({
802
802
  dragAndDropCSV: {
803
- id: 'ImportResourcesModal.dragAndDropCSV',
804
- description: 'The message telling the user to drag and drop CSV file in the file drop area',
805
- defaultMessage: 'Drag and drop CSV'
803
+ id: "ImportResourcesModal.dragAndDropCSV",
804
+ defaultMessage: "Drag and drop CSV"
806
805
  },
807
806
  or: {
808
- id: 'ImportResourcesModal.or',
809
- description: 'The word "or" in the drag and drop message',
810
- defaultMessage: 'or'
807
+ id: "ImportResourcesModal.or",
808
+ defaultMessage: "or"
811
809
  },
812
810
  browseButton: {
813
- id: 'ImportResourcesModal.browseFile',
814
- defaultMessage: 'Browse file'
811
+ id: "ImportResourcesModal.browseFile",
812
+ defaultMessage: "Browse file"
815
813
  },
816
814
  uploadFile: {
817
- id: 'ImportResourcesModal.uploadFile',
818
- description: 'Label for a button on the file upload page, shown on active drop area state',
819
- defaultMessage: 'Upload file'
815
+ id: "ImportResourcesModal.uploadFile",
816
+ defaultMessage: "Upload file"
820
817
  },
821
818
  chooseFile: {
822
- id: 'ImportResourcesModal.chooseFile',
823
- description: 'Label for a button on the file upload page, shown on ready to upload state',
824
- defaultMessage: 'Choose file'
819
+ id: "ImportResourcesModal.chooseFile",
820
+ defaultMessage: "Choose file"
825
821
  },
826
822
  fileUploadFailed: {
827
- id: 'ImportResourcesModal.fileUploadFailed',
828
- description: 'A title on the file upload page, shown on file upload error state',
829
- defaultMessage: 'File upload failed'
823
+ id: "ImportResourcesModal.fileUploadFailed",
824
+ defaultMessage: "File upload failed"
830
825
  },
831
826
  fileFormatNotSupported: {
832
- id: 'ImportResourcesModal.fileFormatNotSupported',
833
- description: 'Error message displayed when a user drags and drops a non-CSV file',
834
- defaultMessage: 'Invalid file format: The file is not in CSV format and cannot be processed.'
827
+ id: "ImportResourcesModal.fileFormatNotSupported",
828
+ defaultMessage: "Invalid file format: The file is not in CSV format and cannot be processed."
835
829
  },
836
830
  tooManyFilesError: {
837
- id: 'ImportResourcesModal.tooManyFilesError',
838
- description: 'Error message displayed when a user drags and drops multiple files at once',
839
- defaultMessage: 'Multiple files detected: You can only drag and drop one file at a time.'
831
+ id: "ImportResourcesModal.tooManyFilesError",
832
+ defaultMessage: "Multiple files detected: You can only drag and drop one file at a time."
840
833
  },
841
834
  genericError: {
842
- id: 'ImportResourcesModal.genericError',
843
- description: 'Default error message for unexpected file upload issues (for unhandled cases)',
844
- defaultMessage: 'Error occurred: Please try uploading the file again or contact our support team for assistance.'
835
+ id: "ImportResourcesModal.genericError",
836
+ defaultMessage: "Error occurred: Please try uploading the file again or contact our support team for assistance."
845
837
  },
846
838
  dataType: {
847
- id: 'ImportResourcesModal.dataType',
848
- description: 'Label for the data type selection dropdown',
849
- defaultMessage: 'Data type'
839
+ id: "ImportResourcesModal.dataType",
840
+ defaultMessage: "Data type"
850
841
  },
851
842
  instructions: {
852
- id: 'ImportResourcesModal.instructions',
853
- description: 'Label for the instructions section',
854
- defaultMessage: 'Instructions'
843
+ id: "ImportResourcesModal.instructions",
844
+ defaultMessage: "Instructions"
855
845
  }
856
846
  });
857
847
 
@@ -865,61 +855,52 @@ function useImportResourcesContext() {
865
855
 
866
856
  var messages$6 = reactIntl.defineMessages({
867
857
  fileSizeExceededTitle: {
868
- id: 'ImportResourcesModal.sizeExceededTitle',
869
- defaultMessage: 'File size exceeded'
858
+ id: "ImportResourcesModal.sizeExceededTitle",
859
+ defaultMessage: "File size exceeded"
870
860
  },
871
861
  fileSizeExceededDescription: {
872
- id: 'ImportResourcesModal.sizeExceededDescription',
873
- description: 'Error description when the file size exceeds the allowable limit',
874
- defaultMessage: 'The file exceeds the maximum allowed size of {fileSizeLimit} MB'
862
+ id: "ImportResourcesModal.sizeExceededDescription",
863
+ defaultMessage: "The file exceeds the maximum allowed size of {fileSizeLimit} MB"
875
864
  },
876
865
  rowLimitExceededTitle: {
877
- id: 'ImportResourcesModal.rowLimitExceededTitle',
878
- defaultMessage: 'Row limit exceeded'
866
+ id: "ImportResourcesModal.rowLimitExceededTitle",
867
+ defaultMessage: "Row limit exceeded"
879
868
  },
880
869
  rowLimitExceededDescription: {
881
- id: 'ImportResourcesModal.rowLimitExceededDescription',
882
- description: 'Error description when the file contains more rows than the allowable maximum',
883
- defaultMessage: 'The file contains more than the allowable maximum of {rowLimit} rows'
870
+ id: "ImportResourcesModal.rowLimitExceededDescription",
871
+ defaultMessage: "The file contains more than the allowable maximum of {rowLimit} rows"
884
872
  },
885
873
  dropAreaWrongDelimiterTitle: {
886
- id: 'ImportResourcesModal.wrongDelimiterTitle',
887
- defaultMessage: 'Wrong delimiter'
874
+ id: "ImportResourcesModal.wrongDelimiterTitle",
875
+ defaultMessage: "Wrong delimiter"
888
876
  },
889
877
  dropAreaWrongDelimiterDescription: {
890
- id: 'ImportResourcesModal.wrongDelimiterDescription',
891
- description: 'Message within the drop area when a CSV file uses an unexpected delimiter',
892
- defaultMessage: 'The file is using an incorrect delimiter. Please use comma (,) instead.'
878
+ id: "ImportResourcesModal.wrongDelimiterDescription",
879
+ defaultMessage: "The file is using an incorrect delimiter. Please use comma (,) instead."
893
880
  },
894
881
  dropAreaNotEnoughRowsTitle: {
895
- id: 'ImportResourcesModal.dropAreaNotEnoughRowsTitle',
896
- description: 'Error title shown when the uploaded CSV file does not contain a header and at least one row of data',
897
- defaultMessage: 'Invalid CSV file'
882
+ id: "ImportResourcesModal.dropAreaNotEnoughRowsTitle",
883
+ defaultMessage: "Invalid CSV file"
898
884
  },
899
885
  dropAreaNotEnoughRowsDescription: {
900
- id: 'ImportResourcesModal.dropAreaNotEnoughRowsDescription',
901
- description: 'Error description shown when the uploaded CSV file does not contain a header and at least one row of data',
902
- defaultMessage: 'Make sure the file contains a header and at least one row of data'
886
+ id: "ImportResourcesModal.dropAreaNotEnoughRowsDescription",
887
+ defaultMessage: "Make sure the file contains a header and at least one row of data"
903
888
  },
904
889
  unexpectedError: {
905
- id: 'ImportResourcesModal.unexpectedError',
906
- description: 'Generic notification message when file upload fails',
907
- defaultMessage: 'An unexpected error occurred during the file upload. Please try again, or contact support if this error occurs again.'
890
+ id: "ImportResourcesModal.unexpectedError",
891
+ defaultMessage: "An unexpected error occurred during the file upload. Please try again, or contact support if this error occurs again."
908
892
  },
909
893
  missingRequiredField: {
910
- id: 'ImportResourcesModal.missingRequiredField',
911
- description: 'Error message displayed when a required field is missing',
912
- defaultMessage: 'Missing required field'
894
+ id: "ImportResourcesModal.missingRequiredField",
895
+ defaultMessage: "Missing required field"
913
896
  },
914
897
  missingKeyError: {
915
- id: 'ImportResourcesModal.missingKeyError',
916
- description: 'Error message displayed when the uploaded file is missing the key field',
898
+ id: "ImportResourcesModal.missingKeyError",
917
899
  defaultMessage: "The 'key' field is missing or incomplete in some rows. Please ensure every row has a 'key' value."
918
900
  },
919
901
  missingRequiredKeys: {
920
- id: 'ImportResourcesModal.missingRequiredKeys',
921
- description: 'Error message displayed when the uploaded file is missing required keys',
922
- defaultMessage: 'Make sure the file contains required keys for the elements including {fieldNames}'
902
+ id: "ImportResourcesModal.missingRequiredKeys",
903
+ defaultMessage: "Make sure the file contains required keys for the elements including {fieldNames}"
923
904
  }
924
905
  });
925
906
 
@@ -1180,9 +1161,8 @@ const FileDropArea = () => {
1180
1161
 
1181
1162
  var messages$5 = reactIntl.defineMessages({
1182
1163
  publishProducts: {
1183
- id: 'ImportResourcesModal.settings.publishProducts',
1184
- description: 'Label for the publish products checkbox',
1185
- defaultMessage: 'Publish all products in the file'
1164
+ id: "ImportResourcesModal.settings.publishProducts",
1165
+ defaultMessage: "Publish all products in the file"
1186
1166
  }
1187
1167
  });
1188
1168
 
@@ -1216,54 +1196,44 @@ const UploadSettings = () => {
1216
1196
 
1217
1197
  var sharedMessages = reactIntl.defineMessages({
1218
1198
  [`modalTitle.${IMPORTABLE_RESOURCES.CATEGORY}`]: {
1219
- id: 'ImportResourcesModal.modalTitle.category',
1220
- description: 'Label for the categories modal title',
1221
- defaultMessage: 'Import categories by CSV'
1199
+ id: "ImportResourcesModal.modalTitle.category",
1200
+ defaultMessage: "Import categories by CSV"
1222
1201
  },
1223
1202
  [`modalTitle.${IMPORTABLE_RESOURCES.PRODUCT}`]: {
1224
- id: 'ImportResourcesModal.modalTitle.product',
1225
- description: 'Label for the products modal title',
1226
- defaultMessage: 'Import products by CSV'
1203
+ id: "ImportResourcesModal.modalTitle.product",
1204
+ defaultMessage: "Import products by CSV"
1227
1205
  },
1228
1206
  [`modalTitle.${IMPORTABLE_RESOURCES.INVENTORY}`]: {
1229
- id: 'ImportResourcesModal.modalTitle.inventoryEntry',
1230
- description: 'Label for the inventories modal title',
1231
- defaultMessage: 'Import inventories by CSV'
1207
+ id: "ImportResourcesModal.modalTitle.inventoryEntry",
1208
+ defaultMessage: "Import inventories by CSV"
1232
1209
  },
1233
1210
  [`modalTitle.${IMPORTABLE_RESOURCES.DISCOUNT_CODE}`]: {
1234
- id: 'ImportResourcesModal.modalTitle.discountCode',
1235
- description: 'Label for the inventories modal title',
1236
- defaultMessage: 'Import discount codes by CSV'
1211
+ id: "ImportResourcesModal.modalTitle.discountCode",
1212
+ defaultMessage: "Import discount codes by CSV"
1237
1213
  },
1238
1214
  [`modalTitle.${IMPORTABLE_RESOURCES.CUSTOMER}`]: {
1239
- id: 'ImportResourcesModal.modalTitle.customer',
1240
- description: 'Label for the customers modal title',
1241
- defaultMessage: 'Import customers by CSV'
1215
+ id: "ImportResourcesModal.modalTitle.customer",
1216
+ defaultMessage: "Import customers by CSV"
1242
1217
  },
1243
1218
  [`modalTitle.${IMPORTABLE_RESOURCES.ORDER}`]: {
1244
- id: 'ImportResourcesModal.modalTitle.order',
1245
- description: 'Label for the order modal title',
1246
- defaultMessage: 'Import orders by CSV'
1219
+ id: "ImportResourcesModal.modalTitle.order",
1220
+ defaultMessage: "Import orders by CSV"
1247
1221
  },
1248
1222
  [`modalTitle.${IMPORTABLE_RESOURCES.PRODUCT_TYPE}`]: {
1249
- id: 'ImportResourcesModal.modalTitle.productType',
1250
- description: 'Label for the product type modal title',
1251
- defaultMessage: 'Import product types by CSV'
1223
+ id: "ImportResourcesModal.modalTitle.productType",
1224
+ defaultMessage: "Import product types by CSV"
1252
1225
  },
1253
1226
  uploadButton: {
1254
- id: 'ImportResourcesModal.uploadButton',
1255
- description: 'Label for the upload button',
1256
- defaultMessage: 'Upload and preview'
1227
+ id: "ImportResourcesModal.uploadButton",
1228
+ defaultMessage: "Upload and preview"
1257
1229
  },
1258
1230
  cancel: {
1259
- id: 'ImportResourcesModal.cancel',
1260
- description: 'Label for the cancel button',
1261
- defaultMessage: 'Cancel'
1231
+ id: "ImportResourcesModal.cancel",
1232
+ defaultMessage: "Cancel"
1262
1233
  },
1263
1234
  close: {
1264
- id: 'ImportResourcesModal.close',
1265
- description: 'Label for the close button',
1266
- defaultMessage: 'Close'
1235
+ id: "ImportResourcesModal.close",
1236
+ defaultMessage: "Close"
1267
1237
  }
1268
1238
  });
1269
1239
 
@@ -1289,6 +1259,9 @@ const Upload = () => {
1289
1259
  onClose: () => onClose({
1290
1260
  shouldDeleteImportContainer: true
1291
1261
  }),
1262
+ dataAttributesPrimaryButton: {
1263
+ 'data-tracking-target': `${state.resourceType}_import-upload_and_preview_button`
1264
+ },
1292
1265
  children: jsxRuntime.jsx(fullstory.Masking.Unmask, {
1293
1266
  children: jsxRuntime.jsxs(uiKit.Spacings.Stack, {
1294
1267
  scale: "m",
@@ -1322,34 +1295,28 @@ const Upload = () => {
1322
1295
 
1323
1296
  var messages$4 = reactIntl.defineMessages({
1324
1297
  row: {
1325
- id: 'ImportResourcesModal.row',
1326
- description: 'In Upload file error modal - "Row" column',
1327
- defaultMessage: 'Row'
1298
+ id: "ImportResourcesModal.row",
1299
+ defaultMessage: "Row"
1328
1300
  },
1329
1301
  errorType: {
1330
- id: 'ImportResourcesModal.errorType',
1331
- description: 'In Upload file error modal - "Error type" column',
1332
- defaultMessage: 'Error type'
1302
+ id: "ImportResourcesModal.errorType",
1303
+ defaultMessage: "Error type"
1333
1304
  },
1334
1305
  details: {
1335
- id: 'ImportResourcesModal.details',
1336
- description: 'In Upload file error modal - "Details" column',
1337
- defaultMessage: 'Details'
1306
+ id: "ImportResourcesModal.details",
1307
+ defaultMessage: "Details"
1338
1308
  },
1339
1309
  uploadErrorDescription: {
1340
- id: 'ImportResourcesModal.uploadErrorDescription',
1341
- description: 'Title when errors detected while uploading file',
1342
- defaultMessage: 'There {errorsCount, plural, one {is <b>{errorsCount}</b> error} other {are <b>{errorsCount}</b> errors}} detected while uploading the file <b>{fileName}</b>.'
1310
+ id: "ImportResourcesModal.uploadErrorDescription",
1311
+ defaultMessage: "There {errorsCount, plural, one {is <b>{errorsCount}</b> error} other {are <b>{errorsCount}</b> errors}} detected while uploading the file <b>{fileName}</b>."
1343
1312
  },
1344
1313
  supportedValuesDocumentation: {
1345
- id: 'ImportResourcesModal.supportedValuesDocumentation',
1346
- description: 'Link to the documentation for supported values',
1347
- defaultMessage: '<documentationLink>View the documentation</documentationLink> for supported values.'
1314
+ id: "ImportResourcesModal.supportedValuesDocumentation",
1315
+ defaultMessage: "<documentationLink>View the documentation</documentationLink> for supported values."
1348
1316
  },
1349
1317
  uploadNewFile: {
1350
- id: 'ImportResourcesModal.uploadNewFile',
1351
- description: 'Upload new file button',
1352
- defaultMessage: 'Upload new file'
1318
+ id: "ImportResourcesModal.uploadNewFile",
1319
+ defaultMessage: "Upload new file"
1353
1320
  }
1354
1321
  });
1355
1322
 
@@ -1590,69 +1557,56 @@ function getBold$2(msg) {
1590
1557
 
1591
1558
  var messages$3 = reactIntl.defineMessages({
1592
1559
  startImportButton: {
1593
- id: 'ImportResourcesModal.startImportButton',
1594
- description: 'Label for the modal Start import button',
1595
- defaultMessage: 'Start import'
1560
+ id: "ImportResourcesModal.startImportButton",
1561
+ defaultMessage: "Start import"
1596
1562
  },
1597
1563
  importNotificationSuccessMessage: {
1598
- id: 'ImportResourcesModal.successMessage',
1599
- description: 'Notification success message',
1600
- defaultMessage: '<b>Your import has started.</b><newline></newline> <logsLink>Go to Import logs</logsLink> to view the progress.'
1564
+ id: "ImportResourcesModal.successMessage",
1565
+ defaultMessage: "<b>Your import has started.</b><newline></newline> <logsLink>Go to Import logs</logsLink> to view the progress."
1601
1566
  },
1602
1567
  importNotificationPrepareMessage: {
1603
- id: 'ImportResourcesModal.prepareMessage',
1604
- description: 'Notification for preparing import',
1605
- defaultMessage: '<b>Prepare import</b><newline></newline>Once preparation is complete, you can track the import progress <logsLink>in the Import logs</logsLink>.'
1568
+ id: "ImportResourcesModal.prepareMessage",
1569
+ defaultMessage: "<b>Prepare import</b><newline></newline>Once preparation is complete, you can track the import progress <logsLink>in the Import logs</logsLink>."
1606
1570
  },
1607
1571
  previewOfYourImport: {
1608
- id: 'ImportResourcesModal.previewOfYourImport',
1609
- description: 'Label for modal path',
1572
+ id: "ImportResourcesModal.previewOfYourImport",
1610
1573
  defaultMessage: "Here's a preview of your import"
1611
1574
  },
1612
1575
  rowsToBeImported: {
1613
- id: 'ImportResourcesModal.rowsToBeImported',
1614
- description: 'This message indicates the number of rows that are ready to be imported into the system.',
1615
- 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 {}}'
1576
+ id: "ImportResourcesModal.rowsToBeImported",
1577
+ 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 {}}"
1616
1578
  },
1617
1579
  columnsToBeImported: {
1618
- id: 'ImportResourcesModal.columnsToBeImported',
1619
- description: 'This message indicates the number of columns that are ready to be imported into the system.',
1620
- defaultMessage: '<b>{columnCount}</b> columns to be imported'
1580
+ id: "ImportResourcesModal.columnsToBeImported",
1581
+ defaultMessage: "<b>{columnCount}</b> columns to be imported"
1621
1582
  },
1622
1583
  columnsToBeIgnored: {
1623
- id: 'ImportResourcesModal.columnsToBeIgnored',
1624
- description: "This message indicates the number of columns that will be deliberately skipped during the import because they can't be imported",
1584
+ id: "ImportResourcesModal.columnsToBeIgnored",
1625
1585
  defaultMessage: "We will intentionally ignore <b>{columnCount}</b> columns as they can't be imported"
1626
1586
  },
1627
1587
  showMore: {
1628
- id: 'ImportResourcesModal.showMore',
1629
- description: 'A button label for expanding the import preview to show more details.',
1630
- defaultMessage: 'Show more'
1588
+ id: "ImportResourcesModal.showMore",
1589
+ defaultMessage: "Show more"
1631
1590
  },
1632
1591
  showLess: {
1633
- id: 'ImportResourcesModal.showLess',
1634
- description: 'A button label for collapsing the import preview to show fewer details.',
1635
- defaultMessage: 'Show less'
1592
+ id: "ImportResourcesModal.showLess",
1593
+ defaultMessage: "Show less"
1636
1594
  },
1637
1595
  continue: {
1638
- id: 'ImportResourcesModal.continue',
1639
- description: 'Confirmation dialog continue button',
1640
- defaultMessage: 'Continue'
1596
+ id: "ImportResourcesModal.continue",
1597
+ defaultMessage: "Continue"
1641
1598
  },
1642
1599
  confirmationBodyText: {
1643
- id: 'ImportResourcesModal.confirmationBodyText',
1644
- description: 'Confirmation dialog text',
1645
- defaultMessage: 'You are about to import {count, plural, one {<bold>1</bold> row} other {<bold>{count}</bold> rows}} in the project: <bold>{projectName}</bold>.'
1600
+ id: "ImportResourcesModal.confirmationBodyText",
1601
+ defaultMessage: "You are about to import {count, plural, one {<bold>1</bold> row} other {<bold>{count}</bold> rows}} in the project: <bold>{projectName}</bold>."
1646
1602
  },
1647
1603
  confirmationBodyNote: {
1648
- id: 'ImportResourcesModal.confirmationBodyNote',
1649
- description: 'Confirmation dialog text',
1650
- defaultMessage: 'Please be aware that existing values with the same keys will be overwritten by the data included in the CSV.'
1604
+ id: "ImportResourcesModal.confirmationBodyNote",
1605
+ defaultMessage: "Please be aware that existing values with the same keys will be overwritten by the data included in the CSV."
1651
1606
  },
1652
1607
  confirmationBodyQuestion: {
1653
- id: 'ImportResourcesModal.confirmationBodyQuestion',
1654
- description: 'Confirmation question',
1655
- defaultMessage: 'Proceed with the import?'
1608
+ id: "ImportResourcesModal.confirmationBodyQuestion",
1609
+ defaultMessage: "Proceed with the import?"
1656
1610
  }
1657
1611
  });
1658
1612
 
@@ -1871,7 +1825,8 @@ const ImportConfirmationModal = () => {
1871
1825
  'data-test-id': 'confirmation-dialog-confirm'
1872
1826
  },
1873
1827
  dataAttributesSecondaryButton: {
1874
- 'data-test-id': 'confirmation-dialog-cancel'
1828
+ 'data-test-id': 'confirmation-dialog-cancel',
1829
+ 'data-tracking-target': `${state.resourceType}_import-start_import_button`
1875
1830
  },
1876
1831
  onConfirm: async () => {
1877
1832
  try {
@@ -2054,19 +2009,16 @@ const CurrentStep = () => {
2054
2009
 
2055
2010
  var messages$2 = reactIntl.defineMessages({
2056
2011
  products: {
2057
- id: 'ImportResourcesModal.radio.products',
2058
- description: 'Label for the products radio button',
2059
- defaultMessage: 'Products (including variants, assets, prices and images)'
2012
+ id: "ImportResourcesModal.radio.products",
2013
+ defaultMessage: "Products (including variants, assets, prices and images)"
2060
2014
  },
2061
2015
  inventories: {
2062
- id: 'ImportResourcesModal.radio.inventories',
2063
- description: 'Label for the inventories radio button',
2064
- defaultMessage: 'Inventories'
2016
+ id: "ImportResourcesModal.radio.inventories",
2017
+ defaultMessage: "Inventories"
2065
2018
  },
2066
2019
  categories: {
2067
- id: 'ImportResourcesModal.radio.categories',
2068
- description: 'Label for the categories radio button',
2069
- defaultMessage: 'Categories'
2020
+ id: "ImportResourcesModal.radio.categories",
2021
+ defaultMessage: "Categories"
2070
2022
  }
2071
2023
  });
2072
2024
 
@@ -2107,9 +2059,8 @@ const ResourceTypeSelection = () => {
2107
2059
 
2108
2060
  var messages$1 = reactIntl.defineMessages({
2109
2061
  fileUploadInstructions: {
2110
- id: 'ImportResourcesModal.fileUploadInstructions',
2111
- description: 'Label for the modal category description',
2112
- 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
+ id: "ImportResourcesModal.fileUploadInstructions",
2063
+ 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>."
2113
2064
  }
2114
2065
  });
2115
2066
 
@@ -2145,14 +2096,12 @@ const Instructions = () => {
2145
2096
 
2146
2097
  var messages = reactIntl.defineMessages({
2147
2098
  prerequisitesOfImportingData: {
2148
- id: 'ImportResourcesModal.infoBox.prerequisitesOfImportingData',
2149
- description: 'A message to guide users to check the prerequisites of importing data',
2150
- defaultMessage: 'Prerequisites of importing data'
2099
+ id: "ImportResourcesModal.infoBox.prerequisitesOfImportingData",
2100
+ defaultMessage: "Prerequisites of importing data"
2151
2101
  },
2152
2102
  keysForEveryResource: {
2153
- id: 'ImportResourcesModal.infoBox.keysForEveryResource',
2154
- description: 'A message to guide users to provide keys for every resource they import',
2155
- 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
+ id: "ImportResourcesModal.infoBox.keysForEveryResource",
2104
+ 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>."
2156
2105
  }
2157
2106
  });
2158
2107