@commercetools-frontend-extensions/import-resources-modal 1.6.2 → 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.
@@ -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-e6a52b5c.esm.js' /* webpackChunkName: "active-drag-drop-area" */));
731
+ var ActiveDragDropArea = /*#__PURE__*/lazy(() => import('./active-drag-drop-area-4dc1357c.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-b4df5667.esm.js' /* webpackChunkName: "enabled-drop-area" */));
735
+ var EnabledDropArea = /*#__PURE__*/lazy(() => import('./enabled-drop-area-dd70e62e.esm.js' /* webpackChunkName: "enabled-drop-area" */));
736
736
 
737
- var FileDropped = /*#__PURE__*/lazy(() => import('./file-dropped-area-a49369d9.esm.js' /* webpackChunkName: "filed-dropped-area" */));
737
+ var FileDropped = /*#__PURE__*/lazy(() => import('./file-dropped-area-967a82f7.esm.js' /* webpackChunkName: "filed-dropped-area" */));
738
738
 
739
739
  function getDropArea(_ref) {
740
740
  let dropAreaState = _ref.dropAreaState,
@@ -774,58 +774,48 @@ function getDropAreaState(flags) {
774
774
 
775
775
  var messages$7 = defineMessages({
776
776
  dragAndDropCSV: {
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'
777
+ id: "ImportResourcesModal.dragAndDropCSV",
778
+ defaultMessage: "Drag and drop CSV"
780
779
  },
781
780
  or: {
782
- id: 'ImportResourcesModal.or',
783
- description: 'The word "or" in the drag and drop message',
784
- defaultMessage: 'or'
781
+ id: "ImportResourcesModal.or",
782
+ defaultMessage: "or"
785
783
  },
786
784
  browseButton: {
787
- id: 'ImportResourcesModal.browseFile',
788
- defaultMessage: 'Browse file'
785
+ id: "ImportResourcesModal.browseFile",
786
+ defaultMessage: "Browse file"
789
787
  },
790
788
  uploadFile: {
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'
789
+ id: "ImportResourcesModal.uploadFile",
790
+ defaultMessage: "Upload file"
794
791
  },
795
792
  chooseFile: {
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'
793
+ id: "ImportResourcesModal.chooseFile",
794
+ defaultMessage: "Choose file"
799
795
  },
800
796
  fileUploadFailed: {
801
- id: 'ImportResourcesModal.fileUploadFailed',
802
- description: 'A title on the file upload page, shown on file upload error state',
803
- defaultMessage: 'File upload failed'
797
+ id: "ImportResourcesModal.fileUploadFailed",
798
+ defaultMessage: "File upload failed"
804
799
  },
805
800
  fileFormatNotSupported: {
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.'
801
+ id: "ImportResourcesModal.fileFormatNotSupported",
802
+ defaultMessage: "Invalid file format: The file is not in CSV format and cannot be processed."
809
803
  },
810
804
  tooManyFilesError: {
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.'
805
+ id: "ImportResourcesModal.tooManyFilesError",
806
+ defaultMessage: "Multiple files detected: You can only drag and drop one file at a time."
814
807
  },
815
808
  genericError: {
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.'
809
+ id: "ImportResourcesModal.genericError",
810
+ defaultMessage: "Error occurred: Please try uploading the file again or contact our support team for assistance."
819
811
  },
820
812
  dataType: {
821
- id: 'ImportResourcesModal.dataType',
822
- description: 'Label for the data type selection dropdown',
823
- defaultMessage: 'Data type'
813
+ id: "ImportResourcesModal.dataType",
814
+ defaultMessage: "Data type"
824
815
  },
825
816
  instructions: {
826
- id: 'ImportResourcesModal.instructions',
827
- description: 'Label for the instructions section',
828
- defaultMessage: 'Instructions'
817
+ id: "ImportResourcesModal.instructions",
818
+ defaultMessage: "Instructions"
829
819
  }
830
820
  });
831
821
 
@@ -839,61 +829,52 @@ function useImportResourcesContext() {
839
829
 
840
830
  var messages$6 = defineMessages({
841
831
  fileSizeExceededTitle: {
842
- id: 'ImportResourcesModal.sizeExceededTitle',
843
- defaultMessage: 'File size exceeded'
832
+ id: "ImportResourcesModal.sizeExceededTitle",
833
+ defaultMessage: "File size exceeded"
844
834
  },
845
835
  fileSizeExceededDescription: {
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'
836
+ id: "ImportResourcesModal.sizeExceededDescription",
837
+ defaultMessage: "The file exceeds the maximum allowed size of {fileSizeLimit} MB"
849
838
  },
850
839
  rowLimitExceededTitle: {
851
- id: 'ImportResourcesModal.rowLimitExceededTitle',
852
- defaultMessage: 'Row limit exceeded'
840
+ id: "ImportResourcesModal.rowLimitExceededTitle",
841
+ defaultMessage: "Row limit exceeded"
853
842
  },
854
843
  rowLimitExceededDescription: {
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'
844
+ id: "ImportResourcesModal.rowLimitExceededDescription",
845
+ defaultMessage: "The file contains more than the allowable maximum of {rowLimit} rows"
858
846
  },
859
847
  dropAreaWrongDelimiterTitle: {
860
- id: 'ImportResourcesModal.wrongDelimiterTitle',
861
- defaultMessage: 'Wrong delimiter'
848
+ id: "ImportResourcesModal.wrongDelimiterTitle",
849
+ defaultMessage: "Wrong delimiter"
862
850
  },
863
851
  dropAreaWrongDelimiterDescription: {
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.'
852
+ id: "ImportResourcesModal.wrongDelimiterDescription",
853
+ defaultMessage: "The file is using an incorrect delimiter. Please use comma (,) instead."
867
854
  },
868
855
  dropAreaNotEnoughRowsTitle: {
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'
856
+ id: "ImportResourcesModal.dropAreaNotEnoughRowsTitle",
857
+ defaultMessage: "Invalid CSV file"
872
858
  },
873
859
  dropAreaNotEnoughRowsDescription: {
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'
860
+ id: "ImportResourcesModal.dropAreaNotEnoughRowsDescription",
861
+ defaultMessage: "Make sure the file contains a header and at least one row of data"
877
862
  },
878
863
  unexpectedError: {
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.'
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."
882
866
  },
883
867
  missingRequiredField: {
884
- id: 'ImportResourcesModal.missingRequiredField',
885
- description: 'Error message displayed when a required field is missing',
886
- defaultMessage: 'Missing required field'
868
+ id: "ImportResourcesModal.missingRequiredField",
869
+ defaultMessage: "Missing required field"
887
870
  },
888
871
  missingKeyError: {
889
- id: 'ImportResourcesModal.missingKeyError',
890
- description: 'Error message displayed when the uploaded file is missing the key field',
872
+ id: "ImportResourcesModal.missingKeyError",
891
873
  defaultMessage: "The 'key' field is missing or incomplete in some rows. Please ensure every row has a 'key' value."
892
874
  },
893
875
  missingRequiredKeys: {
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}'
876
+ id: "ImportResourcesModal.missingRequiredKeys",
877
+ defaultMessage: "Make sure the file contains required keys for the elements including {fieldNames}"
897
878
  }
898
879
  });
899
880
 
@@ -1154,9 +1135,8 @@ const FileDropArea = () => {
1154
1135
 
1155
1136
  var messages$5 = defineMessages({
1156
1137
  publishProducts: {
1157
- id: 'ImportResourcesModal.settings.publishProducts',
1158
- description: 'Label for the publish products checkbox',
1159
- defaultMessage: 'Publish all products in the file'
1138
+ id: "ImportResourcesModal.settings.publishProducts",
1139
+ defaultMessage: "Publish all products in the file"
1160
1140
  }
1161
1141
  });
1162
1142
 
@@ -1190,54 +1170,44 @@ const UploadSettings = () => {
1190
1170
 
1191
1171
  var sharedMessages = defineMessages({
1192
1172
  [`modalTitle.${IMPORTABLE_RESOURCES.CATEGORY}`]: {
1193
- id: 'ImportResourcesModal.modalTitle.category',
1194
- description: 'Label for the categories modal title',
1195
- defaultMessage: 'Import categories by CSV'
1173
+ id: "ImportResourcesModal.modalTitle.category",
1174
+ defaultMessage: "Import categories by CSV"
1196
1175
  },
1197
1176
  [`modalTitle.${IMPORTABLE_RESOURCES.PRODUCT}`]: {
1198
- id: 'ImportResourcesModal.modalTitle.product',
1199
- description: 'Label for the products modal title',
1200
- defaultMessage: 'Import products by CSV'
1177
+ id: "ImportResourcesModal.modalTitle.product",
1178
+ defaultMessage: "Import products by CSV"
1201
1179
  },
1202
1180
  [`modalTitle.${IMPORTABLE_RESOURCES.INVENTORY}`]: {
1203
- id: 'ImportResourcesModal.modalTitle.inventoryEntry',
1204
- description: 'Label for the inventories modal title',
1205
- defaultMessage: 'Import inventories by CSV'
1181
+ id: "ImportResourcesModal.modalTitle.inventoryEntry",
1182
+ defaultMessage: "Import inventories by CSV"
1206
1183
  },
1207
1184
  [`modalTitle.${IMPORTABLE_RESOURCES.DISCOUNT_CODE}`]: {
1208
- id: 'ImportResourcesModal.modalTitle.discountCode',
1209
- description: 'Label for the inventories modal title',
1210
- defaultMessage: 'Import discount codes by CSV'
1185
+ id: "ImportResourcesModal.modalTitle.discountCode",
1186
+ defaultMessage: "Import discount codes by CSV"
1211
1187
  },
1212
1188
  [`modalTitle.${IMPORTABLE_RESOURCES.CUSTOMER}`]: {
1213
- id: 'ImportResourcesModal.modalTitle.customer',
1214
- description: 'Label for the customers modal title',
1215
- defaultMessage: 'Import customers by CSV'
1189
+ id: "ImportResourcesModal.modalTitle.customer",
1190
+ defaultMessage: "Import customers by CSV"
1216
1191
  },
1217
1192
  [`modalTitle.${IMPORTABLE_RESOURCES.ORDER}`]: {
1218
- id: 'ImportResourcesModal.modalTitle.order',
1219
- description: 'Label for the order modal title',
1220
- defaultMessage: 'Import orders by CSV'
1193
+ id: "ImportResourcesModal.modalTitle.order",
1194
+ defaultMessage: "Import orders by CSV"
1221
1195
  },
1222
1196
  [`modalTitle.${IMPORTABLE_RESOURCES.PRODUCT_TYPE}`]: {
1223
- id: 'ImportResourcesModal.modalTitle.productType',
1224
- description: 'Label for the product type modal title',
1225
- defaultMessage: 'Import product types by CSV'
1197
+ id: "ImportResourcesModal.modalTitle.productType",
1198
+ defaultMessage: "Import product types by CSV"
1226
1199
  },
1227
1200
  uploadButton: {
1228
- id: 'ImportResourcesModal.uploadButton',
1229
- description: 'Label for the upload button',
1230
- defaultMessage: 'Upload and preview'
1201
+ id: "ImportResourcesModal.uploadButton",
1202
+ defaultMessage: "Upload and preview"
1231
1203
  },
1232
1204
  cancel: {
1233
- id: 'ImportResourcesModal.cancel',
1234
- description: 'Label for the cancel button',
1235
- defaultMessage: 'Cancel'
1205
+ id: "ImportResourcesModal.cancel",
1206
+ defaultMessage: "Cancel"
1236
1207
  },
1237
1208
  close: {
1238
- id: 'ImportResourcesModal.close',
1239
- description: 'Label for the close button',
1240
- defaultMessage: 'Close'
1209
+ id: "ImportResourcesModal.close",
1210
+ defaultMessage: "Close"
1241
1211
  }
1242
1212
  });
1243
1213
 
@@ -1299,34 +1269,28 @@ const Upload = () => {
1299
1269
 
1300
1270
  var messages$4 = defineMessages({
1301
1271
  row: {
1302
- id: 'ImportResourcesModal.row',
1303
- description: 'In Upload file error modal - "Row" column',
1304
- defaultMessage: 'Row'
1272
+ id: "ImportResourcesModal.row",
1273
+ defaultMessage: "Row"
1305
1274
  },
1306
1275
  errorType: {
1307
- id: 'ImportResourcesModal.errorType',
1308
- description: 'In Upload file error modal - "Error type" column',
1309
- defaultMessage: 'Error type'
1276
+ id: "ImportResourcesModal.errorType",
1277
+ defaultMessage: "Error type"
1310
1278
  },
1311
1279
  details: {
1312
- id: 'ImportResourcesModal.details',
1313
- description: 'In Upload file error modal - "Details" column',
1314
- defaultMessage: 'Details'
1280
+ id: "ImportResourcesModal.details",
1281
+ defaultMessage: "Details"
1315
1282
  },
1316
1283
  uploadErrorDescription: {
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>.'
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>."
1320
1286
  },
1321
1287
  supportedValuesDocumentation: {
1322
- id: 'ImportResourcesModal.supportedValuesDocumentation',
1323
- description: 'Link to the documentation for supported values',
1324
- defaultMessage: '<documentationLink>View the documentation</documentationLink> for supported values.'
1288
+ id: "ImportResourcesModal.supportedValuesDocumentation",
1289
+ defaultMessage: "<documentationLink>View the documentation</documentationLink> for supported values."
1325
1290
  },
1326
1291
  uploadNewFile: {
1327
- id: 'ImportResourcesModal.uploadNewFile',
1328
- description: 'Upload new file button',
1329
- defaultMessage: 'Upload new file'
1292
+ id: "ImportResourcesModal.uploadNewFile",
1293
+ defaultMessage: "Upload new file"
1330
1294
  }
1331
1295
  });
1332
1296
 
@@ -1567,69 +1531,56 @@ function getBold$2(msg) {
1567
1531
 
1568
1532
  var messages$3 = defineMessages({
1569
1533
  startImportButton: {
1570
- id: 'ImportResourcesModal.startImportButton',
1571
- description: 'Label for the modal Start import button',
1572
- defaultMessage: 'Start import'
1534
+ id: "ImportResourcesModal.startImportButton",
1535
+ defaultMessage: "Start import"
1573
1536
  },
1574
1537
  importNotificationSuccessMessage: {
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.'
1538
+ id: "ImportResourcesModal.successMessage",
1539
+ defaultMessage: "<b>Your import has started.</b><newline></newline> <logsLink>Go to Import logs</logsLink> to view the progress."
1578
1540
  },
1579
1541
  importNotificationPrepareMessage: {
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>.'
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>."
1583
1544
  },
1584
1545
  previewOfYourImport: {
1585
- id: 'ImportResourcesModal.previewOfYourImport',
1586
- description: 'Label for modal path',
1546
+ id: "ImportResourcesModal.previewOfYourImport",
1587
1547
  defaultMessage: "Here's a preview of your import"
1588
1548
  },
1589
1549
  rowsToBeImported: {
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 {}}'
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 {}}"
1593
1552
  },
1594
1553
  columnsToBeImported: {
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'
1554
+ id: "ImportResourcesModal.columnsToBeImported",
1555
+ defaultMessage: "<b>{columnCount}</b> columns to be imported"
1598
1556
  },
1599
1557
  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",
1558
+ id: "ImportResourcesModal.columnsToBeIgnored",
1602
1559
  defaultMessage: "We will intentionally ignore <b>{columnCount}</b> columns as they can't be imported"
1603
1560
  },
1604
1561
  showMore: {
1605
- id: 'ImportResourcesModal.showMore',
1606
- description: 'A button label for expanding the import preview to show more details.',
1607
- defaultMessage: 'Show more'
1562
+ id: "ImportResourcesModal.showMore",
1563
+ defaultMessage: "Show more"
1608
1564
  },
1609
1565
  showLess: {
1610
- id: 'ImportResourcesModal.showLess',
1611
- description: 'A button label for collapsing the import preview to show fewer details.',
1612
- defaultMessage: 'Show less'
1566
+ id: "ImportResourcesModal.showLess",
1567
+ defaultMessage: "Show less"
1613
1568
  },
1614
1569
  continue: {
1615
- id: 'ImportResourcesModal.continue',
1616
- description: 'Confirmation dialog continue button',
1617
- defaultMessage: 'Continue'
1570
+ id: "ImportResourcesModal.continue",
1571
+ defaultMessage: "Continue"
1618
1572
  },
1619
1573
  confirmationBodyText: {
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>.'
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>."
1623
1576
  },
1624
1577
  confirmationBodyNote: {
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.'
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."
1628
1580
  },
1629
1581
  confirmationBodyQuestion: {
1630
- id: 'ImportResourcesModal.confirmationBodyQuestion',
1631
- description: 'Confirmation question',
1632
- defaultMessage: 'Proceed with the import?'
1582
+ id: "ImportResourcesModal.confirmationBodyQuestion",
1583
+ defaultMessage: "Proceed with the import?"
1633
1584
  }
1634
1585
  });
1635
1586
 
@@ -2056,19 +2007,16 @@ const CurrentStep = () => {
2056
2007
 
2057
2008
  var messages$2 = defineMessages({
2058
2009
  products: {
2059
- id: 'ImportResourcesModal.radio.products',
2060
- description: 'Label for the products radio button',
2061
- defaultMessage: 'Products (including variants, assets, prices and images)'
2010
+ id: "ImportResourcesModal.radio.products",
2011
+ defaultMessage: "Products (including variants, assets, prices and images)"
2062
2012
  },
2063
2013
  inventories: {
2064
- id: 'ImportResourcesModal.radio.inventories',
2065
- description: 'Label for the inventories radio button',
2066
- defaultMessage: 'Inventories'
2014
+ id: "ImportResourcesModal.radio.inventories",
2015
+ defaultMessage: "Inventories"
2067
2016
  },
2068
2017
  categories: {
2069
- id: 'ImportResourcesModal.radio.categories',
2070
- description: 'Label for the categories radio button',
2071
- defaultMessage: 'Categories'
2018
+ id: "ImportResourcesModal.radio.categories",
2019
+ defaultMessage: "Categories"
2072
2020
  }
2073
2021
  });
2074
2022
 
@@ -2109,9 +2057,8 @@ const ResourceTypeSelection = () => {
2109
2057
 
2110
2058
  var messages$1 = defineMessages({
2111
2059
  fileUploadInstructions: {
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>.'
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>."
2115
2062
  }
2116
2063
  });
2117
2064
 
@@ -2147,14 +2094,12 @@ const Instructions = () => {
2147
2094
 
2148
2095
  var messages = defineMessages({
2149
2096
  prerequisitesOfImportingData: {
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'
2097
+ id: "ImportResourcesModal.infoBox.prerequisitesOfImportingData",
2098
+ defaultMessage: "Prerequisites of importing data"
2153
2099
  },
2154
2100
  keysForEveryResource: {
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>.'
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>."
2158
2103
  }
2159
2104
  });
2160
2105
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-frontend-extensions/import-resources-modal",
3
3
  "description": "Shared import modal for importing resources",
4
- "version": "1.6.2",
4
+ "version": "1.6.3",
5
5
  "license": "BSD-3-Clause",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -37,16 +37,16 @@
37
37
  "react-dropzone": "14.3.5"
38
38
  },
39
39
  "devDependencies": {
40
- "@commercetools-frontend/actions-global": "22.36.0",
41
- "@commercetools-frontend/application-components": "22.36.0",
42
- "@commercetools-frontend/application-shell": "22.36.0",
43
- "@commercetools-frontend/application-shell-connectors": "22.36.0",
44
- "@commercetools-frontend/constants": "22.36.0",
45
- "@commercetools-frontend/i18n": "22.36.0",
46
- "@commercetools-frontend/jest-preset-mc-app": "22.36.0",
47
- "@commercetools-frontend/permissions": "22.36.0",
48
- "@commercetools-frontend/sdk": "22.36.0",
49
- "@commercetools-frontend/sentry": "22.36.0",
40
+ "@commercetools-frontend/actions-global": "22.38.0",
41
+ "@commercetools-frontend/application-components": "22.38.0",
42
+ "@commercetools-frontend/application-shell": "22.38.0",
43
+ "@commercetools-frontend/application-shell-connectors": "22.38.0",
44
+ "@commercetools-frontend/constants": "22.38.0",
45
+ "@commercetools-frontend/i18n": "22.38.0",
46
+ "@commercetools-frontend/jest-preset-mc-app": "22.38.0",
47
+ "@commercetools-frontend/permissions": "22.38.0",
48
+ "@commercetools-frontend/sdk": "22.38.0",
49
+ "@commercetools-frontend/sentry": "22.38.0",
50
50
  "@commercetools-frontend/ui-kit": "19.20.1",
51
51
  "@commercetools-uikit/data-table": "19.20.1",
52
52
  "@commercetools-uikit/design-system": "19.20.1",