@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.
- package/dist/{active-drag-drop-area-373d643b.cjs.prod.js → active-drag-drop-area-28fc79a9.cjs.prod.js} +1 -1
- package/dist/{active-drag-drop-area-4dc1357c.esm.js → active-drag-drop-area-e6a52b5c.esm.js} +1 -1
- package/dist/{active-drag-drop-area-89acd82d.cjs.dev.js → active-drag-drop-area-ee125188.cjs.dev.js} +1 -1
- package/dist/commercetools-frontend-extensions-import-resources-modal.cjs.dev.js +1 -1
- package/dist/commercetools-frontend-extensions-import-resources-modal.cjs.prod.js +1 -1
- package/dist/commercetools-frontend-extensions-import-resources-modal.esm.js +1 -1
- package/dist/{enabled-drop-area-a65a870a.cjs.dev.js → enabled-drop-area-2bcad823.cjs.dev.js} +1 -1
- package/dist/{enabled-drop-area-86d22a1c.cjs.prod.js → enabled-drop-area-abfd8c83.cjs.prod.js} +1 -1
- package/dist/{enabled-drop-area-dd70e62e.esm.js → enabled-drop-area-b4df5667.esm.js} +1 -1
- package/dist/{file-dropped-area-741b7c1f.cjs.dev.js → file-dropped-area-445f81cc.cjs.dev.js} +1 -1
- package/dist/{file-dropped-area-967a82f7.esm.js → file-dropped-area-a49369d9.esm.js} +1 -1
- package/dist/{file-dropped-area-a5e8e576.cjs.prod.js → file-dropped-area-a734e8ef.cjs.prod.js} +1 -1
- package/dist/{index-e6460364.esm.js → index-10b21cef.esm.js} +173 -118
- package/dist/{index-8cca2fab.cjs.prod.js → index-38dc483c.cjs.prod.js} +173 -118
- package/dist/{index-ca3e541b.cjs.dev.js → index-71f84008.cjs.dev.js} +173 -118
- package/package.json +20 -20
|
@@ -757,13 +757,13 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
|
|
|
757
757
|
return /*#__PURE__*/react.css(process.env.NODE_ENV === "production" ? "" : ";label:getDefaultDropWrapperStyles;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRyb3AtYXJlYS13cmFwcGVyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE0QlkiLCJmaWxlIjoiZHJvcC1hcmVhLXdyYXBwZXIudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgdHlwZSBEcm9wem9uZVJvb3RQcm9wcyB9IGZyb20gJ3JlYWN0LWRyb3B6b25lJ1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB7IHN0eWxlcyB9IGZyb20gJy4vc3R5bGVzJ1xuaW1wb3J0IHsgdHlwZSBEcm9wQXJlYVN0YXRlIH0gZnJvbSAnLi4vLi4vLi4vQHR5cGVzJ1xuXG5pbnRlcmZhY2UgRHJvcFdyYXBwZXJQcm9wcyBleHRlbmRzIERyb3B6b25lUm9vdFByb3BzIHtcbiAgZHJvcEFyZWFTdGF0ZTogRHJvcEFyZWFTdGF0ZVxufVxuZXhwb3J0IGNvbnN0IERyb3BXcmFwcGVyID0gc3R5bGVkLmRpdjxEcm9wV3JhcHBlclByb3BzPmBcbiAgJHtzdHlsZXMuYmFzZX1cbiAgJHsocHJvcHMpID0+IHtcbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ2Rpc2FibGVkJykge1xuICAgICAgcmV0dXJuIHN0eWxlcy5kaXNhYmxlZFxuICAgIH1cbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ3JlYWR5LWZvci1kcm9wJykge1xuICAgICAgcmV0dXJuIHN0eWxlcy5yZWFkeUZvckRyb3BcbiAgICB9XG4gICAgaWYgKHByb3BzLmRyb3BBcmVhU3RhdGUgPT09ICdhY3RpdmUtZHJhZycpIHtcbiAgICAgIHJldHVybiBzdHlsZXMuYWN0aXZlRHJhZ1xuICAgIH1cbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ2ZpbGUtZHJvcHBlZCcpIHtcbiAgICAgIHJldHVybiBzdHlsZXMuZmlsZURyb3BwZWRcbiAgICB9XG4gICAgcmV0dXJuIGdldERlZmF1bHREcm9wV3JhcHBlclN0eWxlcyhwcm9wcy5kcm9wQXJlYVN0YXRlKVxuICB9fVxuYFxuZnVuY3Rpb24gZ2V0RGVmYXVsdERyb3BXcmFwcGVyU3R5bGVzKF9kcm9wQXJlYVN0YXRlOiBuZXZlcikge1xuICByZXR1cm4gY3NzYGBcbn1cbiJdfQ== */");
|
|
758
758
|
}
|
|
759
759
|
|
|
760
|
-
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-
|
|
760
|
+
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-ee125188.cjs.dev.js' /* webpackChunkName: "active-drag-drop-area" */); }));
|
|
761
761
|
|
|
762
762
|
var DisabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./disabled-drop-area-aa78075b.cjs.dev.js' /* webpackChunkName: "disabled-drop-area" */); }));
|
|
763
763
|
|
|
764
|
-
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-
|
|
764
|
+
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-2bcad823.cjs.dev.js' /* webpackChunkName: "enabled-drop-area" */); }));
|
|
765
765
|
|
|
766
|
-
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-
|
|
766
|
+
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-445f81cc.cjs.dev.js' /* webpackChunkName: "filed-dropped-area" */); }));
|
|
767
767
|
|
|
768
768
|
function getDropArea(_ref) {
|
|
769
769
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -803,48 +803,58 @@ function getDropAreaState(flags) {
|
|
|
803
803
|
|
|
804
804
|
var messages$7 = reactIntl.defineMessages({
|
|
805
805
|
dragAndDropCSV: {
|
|
806
|
-
id:
|
|
807
|
-
|
|
806
|
+
id: 'ImportResourcesModal.dragAndDropCSV',
|
|
807
|
+
description: 'The message telling the user to drag and drop CSV file in the file drop area',
|
|
808
|
+
defaultMessage: 'Drag and drop CSV'
|
|
808
809
|
},
|
|
809
810
|
or: {
|
|
810
|
-
id:
|
|
811
|
-
|
|
811
|
+
id: 'ImportResourcesModal.or',
|
|
812
|
+
description: 'The word "or" in the drag and drop message',
|
|
813
|
+
defaultMessage: 'or'
|
|
812
814
|
},
|
|
813
815
|
browseButton: {
|
|
814
|
-
id:
|
|
815
|
-
defaultMessage:
|
|
816
|
+
id: 'ImportResourcesModal.browseFile',
|
|
817
|
+
defaultMessage: 'Browse file'
|
|
816
818
|
},
|
|
817
819
|
uploadFile: {
|
|
818
|
-
id:
|
|
819
|
-
|
|
820
|
+
id: 'ImportResourcesModal.uploadFile',
|
|
821
|
+
description: 'Label for a button on the file upload page, shown on active drop area state',
|
|
822
|
+
defaultMessage: 'Upload file'
|
|
820
823
|
},
|
|
821
824
|
chooseFile: {
|
|
822
|
-
id:
|
|
823
|
-
|
|
825
|
+
id: 'ImportResourcesModal.chooseFile',
|
|
826
|
+
description: 'Label for a button on the file upload page, shown on ready to upload state',
|
|
827
|
+
defaultMessage: 'Choose file'
|
|
824
828
|
},
|
|
825
829
|
fileUploadFailed: {
|
|
826
|
-
id:
|
|
827
|
-
|
|
830
|
+
id: 'ImportResourcesModal.fileUploadFailed',
|
|
831
|
+
description: 'A title on the file upload page, shown on file upload error state',
|
|
832
|
+
defaultMessage: 'File upload failed'
|
|
828
833
|
},
|
|
829
834
|
fileFormatNotSupported: {
|
|
830
|
-
id:
|
|
831
|
-
|
|
835
|
+
id: 'ImportResourcesModal.fileFormatNotSupported',
|
|
836
|
+
description: 'Error message displayed when a user drags and drops a non-CSV file',
|
|
837
|
+
defaultMessage: 'Invalid file format: The file is not in CSV format and cannot be processed.'
|
|
832
838
|
},
|
|
833
839
|
tooManyFilesError: {
|
|
834
|
-
id:
|
|
835
|
-
|
|
840
|
+
id: 'ImportResourcesModal.tooManyFilesError',
|
|
841
|
+
description: 'Error message displayed when a user drags and drops multiple files at once',
|
|
842
|
+
defaultMessage: 'Multiple files detected: You can only drag and drop one file at a time.'
|
|
836
843
|
},
|
|
837
844
|
genericError: {
|
|
838
|
-
id:
|
|
839
|
-
|
|
845
|
+
id: 'ImportResourcesModal.genericError',
|
|
846
|
+
description: 'Default error message for unexpected file upload issues (for unhandled cases)',
|
|
847
|
+
defaultMessage: 'Error occurred: Please try uploading the file again or contact our support team for assistance.'
|
|
840
848
|
},
|
|
841
849
|
dataType: {
|
|
842
|
-
id:
|
|
843
|
-
|
|
850
|
+
id: 'ImportResourcesModal.dataType',
|
|
851
|
+
description: 'Label for the data type selection dropdown',
|
|
852
|
+
defaultMessage: 'Data type'
|
|
844
853
|
},
|
|
845
854
|
instructions: {
|
|
846
|
-
id:
|
|
847
|
-
|
|
855
|
+
id: 'ImportResourcesModal.instructions',
|
|
856
|
+
description: 'Label for the instructions section',
|
|
857
|
+
defaultMessage: 'Instructions'
|
|
848
858
|
}
|
|
849
859
|
});
|
|
850
860
|
|
|
@@ -858,52 +868,61 @@ function useImportResourcesContext() {
|
|
|
858
868
|
|
|
859
869
|
var messages$6 = reactIntl.defineMessages({
|
|
860
870
|
fileSizeExceededTitle: {
|
|
861
|
-
id:
|
|
862
|
-
defaultMessage:
|
|
871
|
+
id: 'ImportResourcesModal.sizeExceededTitle',
|
|
872
|
+
defaultMessage: 'File size exceeded'
|
|
863
873
|
},
|
|
864
874
|
fileSizeExceededDescription: {
|
|
865
|
-
id:
|
|
866
|
-
|
|
875
|
+
id: 'ImportResourcesModal.sizeExceededDescription',
|
|
876
|
+
description: 'Error description when the file size exceeds the allowable limit',
|
|
877
|
+
defaultMessage: 'The file exceeds the maximum allowed size of {fileSizeLimit} MB'
|
|
867
878
|
},
|
|
868
879
|
rowLimitExceededTitle: {
|
|
869
|
-
id:
|
|
870
|
-
defaultMessage:
|
|
880
|
+
id: 'ImportResourcesModal.rowLimitExceededTitle',
|
|
881
|
+
defaultMessage: 'Row limit exceeded'
|
|
871
882
|
},
|
|
872
883
|
rowLimitExceededDescription: {
|
|
873
|
-
id:
|
|
874
|
-
|
|
884
|
+
id: 'ImportResourcesModal.rowLimitExceededDescription',
|
|
885
|
+
description: 'Error description when the file contains more rows than the allowable maximum',
|
|
886
|
+
defaultMessage: 'The file contains more than the allowable maximum of {rowLimit} rows'
|
|
875
887
|
},
|
|
876
888
|
dropAreaWrongDelimiterTitle: {
|
|
877
|
-
id:
|
|
878
|
-
defaultMessage:
|
|
889
|
+
id: 'ImportResourcesModal.wrongDelimiterTitle',
|
|
890
|
+
defaultMessage: 'Wrong delimiter'
|
|
879
891
|
},
|
|
880
892
|
dropAreaWrongDelimiterDescription: {
|
|
881
|
-
id:
|
|
882
|
-
|
|
893
|
+
id: 'ImportResourcesModal.wrongDelimiterDescription',
|
|
894
|
+
description: 'Message within the drop area when a CSV file uses an unexpected delimiter',
|
|
895
|
+
defaultMessage: 'The file is using an incorrect delimiter. Please use comma (,) instead.'
|
|
883
896
|
},
|
|
884
897
|
dropAreaNotEnoughRowsTitle: {
|
|
885
|
-
id:
|
|
886
|
-
|
|
898
|
+
id: 'ImportResourcesModal.dropAreaNotEnoughRowsTitle',
|
|
899
|
+
description: 'Error title shown when the uploaded CSV file does not contain a header and at least one row of data',
|
|
900
|
+
defaultMessage: 'Invalid CSV file'
|
|
887
901
|
},
|
|
888
902
|
dropAreaNotEnoughRowsDescription: {
|
|
889
|
-
id:
|
|
890
|
-
|
|
903
|
+
id: 'ImportResourcesModal.dropAreaNotEnoughRowsDescription',
|
|
904
|
+
description: 'Error description shown when the uploaded CSV file does not contain a header and at least one row of data',
|
|
905
|
+
defaultMessage: 'Make sure the file contains a header and at least one row of data'
|
|
891
906
|
},
|
|
892
907
|
unexpectedError: {
|
|
893
|
-
id:
|
|
894
|
-
|
|
908
|
+
id: 'ImportResourcesModal.unexpectedError',
|
|
909
|
+
description: 'Generic notification message when file upload fails',
|
|
910
|
+
defaultMessage: 'An unexpected error occurred during the file upload. Please try again, or contact support if this error occurs again.'
|
|
895
911
|
},
|
|
896
912
|
missingRequiredField: {
|
|
897
|
-
id:
|
|
898
|
-
|
|
913
|
+
id: 'ImportResourcesModal.missingRequiredField',
|
|
914
|
+
description: 'Error message displayed when a required field is missing',
|
|
915
|
+
defaultMessage: 'Missing required field'
|
|
899
916
|
},
|
|
900
917
|
missingKeyError: {
|
|
901
|
-
id:
|
|
918
|
+
id: 'ImportResourcesModal.missingKeyError',
|
|
919
|
+
description: 'Error message displayed when the uploaded file is missing the key field',
|
|
902
920
|
defaultMessage: "The 'key' field is missing or incomplete in some rows. Please ensure every row has a 'key' value."
|
|
903
921
|
},
|
|
904
922
|
missingRequiredKeys: {
|
|
905
|
-
id:
|
|
906
|
-
|
|
923
|
+
id: 'ImportResourcesModal.missingRequiredKeys',
|
|
924
|
+
description: 'Error message displayed when the uploaded file is missing required keys',
|
|
925
|
+
defaultMessage: 'Make sure the file contains required keys for the elements including {fieldNames}'
|
|
907
926
|
}
|
|
908
927
|
});
|
|
909
928
|
|
|
@@ -1164,8 +1183,9 @@ const FileDropArea = () => {
|
|
|
1164
1183
|
|
|
1165
1184
|
var messages$5 = reactIntl.defineMessages({
|
|
1166
1185
|
publishProducts: {
|
|
1167
|
-
id:
|
|
1168
|
-
|
|
1186
|
+
id: 'ImportResourcesModal.settings.publishProducts',
|
|
1187
|
+
description: 'Label for the publish products checkbox',
|
|
1188
|
+
defaultMessage: 'Publish all products in the file'
|
|
1169
1189
|
}
|
|
1170
1190
|
});
|
|
1171
1191
|
|
|
@@ -1199,44 +1219,54 @@ const UploadSettings = () => {
|
|
|
1199
1219
|
|
|
1200
1220
|
var sharedMessages = reactIntl.defineMessages({
|
|
1201
1221
|
[`modalTitle.${IMPORTABLE_RESOURCES.CATEGORY}`]: {
|
|
1202
|
-
id:
|
|
1203
|
-
|
|
1222
|
+
id: 'ImportResourcesModal.modalTitle.category',
|
|
1223
|
+
description: 'Label for the categories modal title',
|
|
1224
|
+
defaultMessage: 'Import categories by CSV'
|
|
1204
1225
|
},
|
|
1205
1226
|
[`modalTitle.${IMPORTABLE_RESOURCES.PRODUCT}`]: {
|
|
1206
|
-
id:
|
|
1207
|
-
|
|
1227
|
+
id: 'ImportResourcesModal.modalTitle.product',
|
|
1228
|
+
description: 'Label for the products modal title',
|
|
1229
|
+
defaultMessage: 'Import products by CSV'
|
|
1208
1230
|
},
|
|
1209
1231
|
[`modalTitle.${IMPORTABLE_RESOURCES.INVENTORY}`]: {
|
|
1210
|
-
id:
|
|
1211
|
-
|
|
1232
|
+
id: 'ImportResourcesModal.modalTitle.inventoryEntry',
|
|
1233
|
+
description: 'Label for the inventories modal title',
|
|
1234
|
+
defaultMessage: 'Import inventories by CSV'
|
|
1212
1235
|
},
|
|
1213
1236
|
[`modalTitle.${IMPORTABLE_RESOURCES.DISCOUNT_CODE}`]: {
|
|
1214
|
-
id:
|
|
1215
|
-
|
|
1237
|
+
id: 'ImportResourcesModal.modalTitle.discountCode',
|
|
1238
|
+
description: 'Label for the inventories modal title',
|
|
1239
|
+
defaultMessage: 'Import discount codes by CSV'
|
|
1216
1240
|
},
|
|
1217
1241
|
[`modalTitle.${IMPORTABLE_RESOURCES.CUSTOMER}`]: {
|
|
1218
|
-
id:
|
|
1219
|
-
|
|
1242
|
+
id: 'ImportResourcesModal.modalTitle.customer',
|
|
1243
|
+
description: 'Label for the customers modal title',
|
|
1244
|
+
defaultMessage: 'Import customers by CSV'
|
|
1220
1245
|
},
|
|
1221
1246
|
[`modalTitle.${IMPORTABLE_RESOURCES.ORDER}`]: {
|
|
1222
|
-
id:
|
|
1223
|
-
|
|
1247
|
+
id: 'ImportResourcesModal.modalTitle.order',
|
|
1248
|
+
description: 'Label for the order modal title',
|
|
1249
|
+
defaultMessage: 'Import orders by CSV'
|
|
1224
1250
|
},
|
|
1225
1251
|
[`modalTitle.${IMPORTABLE_RESOURCES.PRODUCT_TYPE}`]: {
|
|
1226
|
-
id:
|
|
1227
|
-
|
|
1252
|
+
id: 'ImportResourcesModal.modalTitle.productType',
|
|
1253
|
+
description: 'Label for the product type modal title',
|
|
1254
|
+
defaultMessage: 'Import product types by CSV'
|
|
1228
1255
|
},
|
|
1229
1256
|
uploadButton: {
|
|
1230
|
-
id:
|
|
1231
|
-
|
|
1257
|
+
id: 'ImportResourcesModal.uploadButton',
|
|
1258
|
+
description: 'Label for the upload button',
|
|
1259
|
+
defaultMessage: 'Upload and preview'
|
|
1232
1260
|
},
|
|
1233
1261
|
cancel: {
|
|
1234
|
-
id:
|
|
1235
|
-
|
|
1262
|
+
id: 'ImportResourcesModal.cancel',
|
|
1263
|
+
description: 'Label for the cancel button',
|
|
1264
|
+
defaultMessage: 'Cancel'
|
|
1236
1265
|
},
|
|
1237
1266
|
close: {
|
|
1238
|
-
id:
|
|
1239
|
-
|
|
1267
|
+
id: 'ImportResourcesModal.close',
|
|
1268
|
+
description: 'Label for the close button',
|
|
1269
|
+
defaultMessage: 'Close'
|
|
1240
1270
|
}
|
|
1241
1271
|
});
|
|
1242
1272
|
|
|
@@ -1298,28 +1328,34 @@ const Upload = () => {
|
|
|
1298
1328
|
|
|
1299
1329
|
var messages$4 = reactIntl.defineMessages({
|
|
1300
1330
|
row: {
|
|
1301
|
-
id:
|
|
1302
|
-
|
|
1331
|
+
id: 'ImportResourcesModal.row',
|
|
1332
|
+
description: 'In Upload file error modal - "Row" column',
|
|
1333
|
+
defaultMessage: 'Row'
|
|
1303
1334
|
},
|
|
1304
1335
|
errorType: {
|
|
1305
|
-
id:
|
|
1306
|
-
|
|
1336
|
+
id: 'ImportResourcesModal.errorType',
|
|
1337
|
+
description: 'In Upload file error modal - "Error type" column',
|
|
1338
|
+
defaultMessage: 'Error type'
|
|
1307
1339
|
},
|
|
1308
1340
|
details: {
|
|
1309
|
-
id:
|
|
1310
|
-
|
|
1341
|
+
id: 'ImportResourcesModal.details',
|
|
1342
|
+
description: 'In Upload file error modal - "Details" column',
|
|
1343
|
+
defaultMessage: 'Details'
|
|
1311
1344
|
},
|
|
1312
1345
|
uploadErrorDescription: {
|
|
1313
|
-
id:
|
|
1314
|
-
|
|
1346
|
+
id: 'ImportResourcesModal.uploadErrorDescription',
|
|
1347
|
+
description: 'Title when errors detected while uploading file',
|
|
1348
|
+
defaultMessage: 'There {errorsCount, plural, one {is <b>{errorsCount}</b> error} other {are <b>{errorsCount}</b> errors}} detected while uploading the file <b>{fileName}</b>.'
|
|
1315
1349
|
},
|
|
1316
1350
|
supportedValuesDocumentation: {
|
|
1317
|
-
id:
|
|
1318
|
-
|
|
1351
|
+
id: 'ImportResourcesModal.supportedValuesDocumentation',
|
|
1352
|
+
description: 'Link to the documentation for supported values',
|
|
1353
|
+
defaultMessage: '<documentationLink>View the documentation</documentationLink> for supported values.'
|
|
1319
1354
|
},
|
|
1320
1355
|
uploadNewFile: {
|
|
1321
|
-
id:
|
|
1322
|
-
|
|
1356
|
+
id: 'ImportResourcesModal.uploadNewFile',
|
|
1357
|
+
description: 'Upload new file button',
|
|
1358
|
+
defaultMessage: 'Upload new file'
|
|
1323
1359
|
}
|
|
1324
1360
|
});
|
|
1325
1361
|
|
|
@@ -1560,56 +1596,69 @@ function getBold$2(msg) {
|
|
|
1560
1596
|
|
|
1561
1597
|
var messages$3 = reactIntl.defineMessages({
|
|
1562
1598
|
startImportButton: {
|
|
1563
|
-
id:
|
|
1564
|
-
|
|
1599
|
+
id: 'ImportResourcesModal.startImportButton',
|
|
1600
|
+
description: 'Label for the modal Start import button',
|
|
1601
|
+
defaultMessage: 'Start import'
|
|
1565
1602
|
},
|
|
1566
1603
|
importNotificationSuccessMessage: {
|
|
1567
|
-
id:
|
|
1568
|
-
|
|
1604
|
+
id: 'ImportResourcesModal.successMessage',
|
|
1605
|
+
description: 'Notification success message',
|
|
1606
|
+
defaultMessage: '<b>Your import has started.</b><newline></newline> <logsLink>Go to Import logs</logsLink> to view the progress.'
|
|
1569
1607
|
},
|
|
1570
1608
|
importNotificationPrepareMessage: {
|
|
1571
|
-
id:
|
|
1572
|
-
|
|
1609
|
+
id: 'ImportResourcesModal.prepareMessage',
|
|
1610
|
+
description: 'Notification for preparing import',
|
|
1611
|
+
defaultMessage: '<b>Prepare import</b><newline></newline>Once preparation is complete, you can track the import progress <logsLink>in the Import logs</logsLink>.'
|
|
1573
1612
|
},
|
|
1574
1613
|
previewOfYourImport: {
|
|
1575
|
-
id:
|
|
1614
|
+
id: 'ImportResourcesModal.previewOfYourImport',
|
|
1615
|
+
description: 'Label for modal path',
|
|
1576
1616
|
defaultMessage: "Here's a preview of your import"
|
|
1577
1617
|
},
|
|
1578
1618
|
rowsToBeImported: {
|
|
1579
|
-
id:
|
|
1580
|
-
|
|
1619
|
+
id: 'ImportResourcesModal.rowsToBeImported',
|
|
1620
|
+
description: 'This message indicates the number of rows that are ready to be imported into the system.',
|
|
1621
|
+
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 {}}'
|
|
1581
1622
|
},
|
|
1582
1623
|
columnsToBeImported: {
|
|
1583
|
-
id:
|
|
1584
|
-
|
|
1624
|
+
id: 'ImportResourcesModal.columnsToBeImported',
|
|
1625
|
+
description: 'This message indicates the number of columns that are ready to be imported into the system.',
|
|
1626
|
+
defaultMessage: '<b>{columnCount}</b> columns to be imported'
|
|
1585
1627
|
},
|
|
1586
1628
|
columnsToBeIgnored: {
|
|
1587
|
-
id:
|
|
1629
|
+
id: 'ImportResourcesModal.columnsToBeIgnored',
|
|
1630
|
+
description: "This message indicates the number of columns that will be deliberately skipped during the import because they can't be imported",
|
|
1588
1631
|
defaultMessage: "We will intentionally ignore <b>{columnCount}</b> columns as they can't be imported"
|
|
1589
1632
|
},
|
|
1590
1633
|
showMore: {
|
|
1591
|
-
id:
|
|
1592
|
-
|
|
1634
|
+
id: 'ImportResourcesModal.showMore',
|
|
1635
|
+
description: 'A button label for expanding the import preview to show more details.',
|
|
1636
|
+
defaultMessage: 'Show more'
|
|
1593
1637
|
},
|
|
1594
1638
|
showLess: {
|
|
1595
|
-
id:
|
|
1596
|
-
|
|
1639
|
+
id: 'ImportResourcesModal.showLess',
|
|
1640
|
+
description: 'A button label for collapsing the import preview to show fewer details.',
|
|
1641
|
+
defaultMessage: 'Show less'
|
|
1597
1642
|
},
|
|
1598
1643
|
continue: {
|
|
1599
|
-
id:
|
|
1600
|
-
|
|
1644
|
+
id: 'ImportResourcesModal.continue',
|
|
1645
|
+
description: 'Confirmation dialog continue button',
|
|
1646
|
+
defaultMessage: 'Continue'
|
|
1601
1647
|
},
|
|
1602
1648
|
confirmationBodyText: {
|
|
1603
|
-
id:
|
|
1604
|
-
|
|
1649
|
+
id: 'ImportResourcesModal.confirmationBodyText',
|
|
1650
|
+
description: 'Confirmation dialog text',
|
|
1651
|
+
defaultMessage: 'You are about to import {count, plural, one {<bold>1</bold> row} other {<bold>{count}</bold> rows}} in the project: <bold>{projectName}</bold>.'
|
|
1605
1652
|
},
|
|
1606
1653
|
confirmationBodyNote: {
|
|
1607
|
-
id:
|
|
1608
|
-
|
|
1654
|
+
id: 'ImportResourcesModal.confirmationBodyNote',
|
|
1655
|
+
description: 'Confirmation dialog text',
|
|
1656
|
+
defaultMessage: 'Please be aware that existing values with the same keys will be overwritten by the data included in the CSV.'
|
|
1609
1657
|
},
|
|
1610
1658
|
confirmationBodyQuestion: {
|
|
1611
|
-
id:
|
|
1612
|
-
|
|
1659
|
+
id: 'ImportResourcesModal.confirmationBodyQuestion',
|
|
1660
|
+
description: 'Confirmation question',
|
|
1661
|
+
defaultMessage: 'Proceed with the import?'
|
|
1613
1662
|
}
|
|
1614
1663
|
});
|
|
1615
1664
|
|
|
@@ -2036,16 +2085,19 @@ const CurrentStep = () => {
|
|
|
2036
2085
|
|
|
2037
2086
|
var messages$2 = reactIntl.defineMessages({
|
|
2038
2087
|
products: {
|
|
2039
|
-
id:
|
|
2040
|
-
|
|
2088
|
+
id: 'ImportResourcesModal.radio.products',
|
|
2089
|
+
description: 'Label for the products radio button',
|
|
2090
|
+
defaultMessage: 'Products (including variants, assets, prices and images)'
|
|
2041
2091
|
},
|
|
2042
2092
|
inventories: {
|
|
2043
|
-
id:
|
|
2044
|
-
|
|
2093
|
+
id: 'ImportResourcesModal.radio.inventories',
|
|
2094
|
+
description: 'Label for the inventories radio button',
|
|
2095
|
+
defaultMessage: 'Inventories'
|
|
2045
2096
|
},
|
|
2046
2097
|
categories: {
|
|
2047
|
-
id:
|
|
2048
|
-
|
|
2098
|
+
id: 'ImportResourcesModal.radio.categories',
|
|
2099
|
+
description: 'Label for the categories radio button',
|
|
2100
|
+
defaultMessage: 'Categories'
|
|
2049
2101
|
}
|
|
2050
2102
|
});
|
|
2051
2103
|
|
|
@@ -2086,8 +2138,9 @@ const ResourceTypeSelection = () => {
|
|
|
2086
2138
|
|
|
2087
2139
|
var messages$1 = reactIntl.defineMessages({
|
|
2088
2140
|
fileUploadInstructions: {
|
|
2089
|
-
id:
|
|
2090
|
-
|
|
2141
|
+
id: 'ImportResourcesModal.fileUploadInstructions',
|
|
2142
|
+
description: 'Label for the modal category description',
|
|
2143
|
+
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>.'
|
|
2091
2144
|
}
|
|
2092
2145
|
});
|
|
2093
2146
|
|
|
@@ -2123,12 +2176,14 @@ const Instructions = () => {
|
|
|
2123
2176
|
|
|
2124
2177
|
var messages = reactIntl.defineMessages({
|
|
2125
2178
|
prerequisitesOfImportingData: {
|
|
2126
|
-
id:
|
|
2127
|
-
|
|
2179
|
+
id: 'ImportResourcesModal.infoBox.prerequisitesOfImportingData',
|
|
2180
|
+
description: 'A message to guide users to check the prerequisites of importing data',
|
|
2181
|
+
defaultMessage: 'Prerequisites of importing data'
|
|
2128
2182
|
},
|
|
2129
2183
|
keysForEveryResource: {
|
|
2130
|
-
id:
|
|
2131
|
-
|
|
2184
|
+
id: 'ImportResourcesModal.infoBox.keysForEveryResource',
|
|
2185
|
+
description: 'A message to guide users to provide keys for every resource they import',
|
|
2186
|
+
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>.'
|
|
2132
2187
|
}
|
|
2133
2188
|
});
|
|
2134
2189
|
|
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.
|
|
4
|
+
"version": "1.6.6",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"@babel/runtime": "7.26.0",
|
|
19
19
|
"@babel/runtime-corejs3": "7.26.0",
|
|
20
20
|
"@commercetools-frontend/fullstory": "2.5.1",
|
|
21
|
-
"@commercetools/importapi-sdk": "5.
|
|
21
|
+
"@commercetools/importapi-sdk": "5.20.0",
|
|
22
22
|
"@emotion/react": "11.14.0",
|
|
23
23
|
"@emotion/styled": "11.14.0",
|
|
24
|
-
"@formatjs/cli": "6.3
|
|
24
|
+
"@formatjs/cli": "6.4.3",
|
|
25
25
|
"babel-plugin-inline-react-svg": "^2.0.2",
|
|
26
26
|
"babel-plugin-module-resolver": "^5.0.2",
|
|
27
27
|
"jest": "29.7.0",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"lodash.truncate": "4.4.2",
|
|
30
30
|
"moment": "2.30.1",
|
|
31
31
|
"omit-empty-es": "^1.1.3",
|
|
32
|
-
"papaparse": "5.
|
|
32
|
+
"papaparse": "5.5.1",
|
|
33
33
|
"pluralize": "8.0.0",
|
|
34
34
|
"prop-types": "15.8.1",
|
|
35
35
|
"ramda": "^0.30.0",
|
|
@@ -37,22 +37,22 @@
|
|
|
37
37
|
"react-dropzone": "14.3.5"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@commercetools-frontend/actions-global": "22.
|
|
41
|
-
"@commercetools-frontend/application-components": "22.
|
|
42
|
-
"@commercetools-frontend/application-shell": "22.
|
|
43
|
-
"@commercetools-frontend/application-shell-connectors": "22.
|
|
44
|
-
"@commercetools-frontend/constants": "22.
|
|
45
|
-
"@commercetools-frontend/i18n": "22.
|
|
46
|
-
"@commercetools-frontend/jest-preset-mc-app": "22.
|
|
47
|
-
"@commercetools-frontend/permissions": "22.
|
|
48
|
-
"@commercetools-frontend/sdk": "22.
|
|
49
|
-
"@commercetools-frontend/sentry": "22.
|
|
50
|
-
"@commercetools-frontend/ui-kit": "19.
|
|
51
|
-
"@commercetools-uikit/data-table": "19.
|
|
52
|
-
"@commercetools-uikit/design-system": "19.
|
|
53
|
-
"@commercetools-uikit/icons": "19.
|
|
54
|
-
"@commercetools-uikit/select-field": "19.
|
|
55
|
-
"@preconstruct/cli": "2.8.
|
|
40
|
+
"@commercetools-frontend/actions-global": "22.39.1",
|
|
41
|
+
"@commercetools-frontend/application-components": "22.39.1",
|
|
42
|
+
"@commercetools-frontend/application-shell": "22.39.1",
|
|
43
|
+
"@commercetools-frontend/application-shell-connectors": "22.39.1",
|
|
44
|
+
"@commercetools-frontend/constants": "22.39.1",
|
|
45
|
+
"@commercetools-frontend/i18n": "22.39.1",
|
|
46
|
+
"@commercetools-frontend/jest-preset-mc-app": "22.39.1",
|
|
47
|
+
"@commercetools-frontend/permissions": "22.39.1",
|
|
48
|
+
"@commercetools-frontend/sdk": "22.39.1",
|
|
49
|
+
"@commercetools-frontend/sentry": "22.39.1",
|
|
50
|
+
"@commercetools-frontend/ui-kit": "19.22.1",
|
|
51
|
+
"@commercetools-uikit/data-table": "19.22.1",
|
|
52
|
+
"@commercetools-uikit/design-system": "19.22.1",
|
|
53
|
+
"@commercetools-uikit/icons": "19.22.1",
|
|
54
|
+
"@commercetools-uikit/select-field": "19.22.1",
|
|
55
|
+
"@preconstruct/cli": "2.8.10",
|
|
56
56
|
"@types/jest": "29.5.14",
|
|
57
57
|
"@types/lodash.truncate": "^4.4.7",
|
|
58
58
|
"@types/testing-library__jest-dom": "^5.14.5",
|