@commercetools-frontend-extensions/import-resources-modal 1.6.2 → 1.6.4
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-28fc79a9.cjs.prod.js → active-drag-drop-area-373d643b.cjs.prod.js} +1 -1
- package/dist/{active-drag-drop-area-e6a52b5c.esm.js → active-drag-drop-area-4dc1357c.esm.js} +1 -1
- package/dist/{active-drag-drop-area-ee125188.cjs.dev.js → active-drag-drop-area-89acd82d.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-abfd8c83.cjs.prod.js → enabled-drop-area-86d22a1c.cjs.prod.js} +1 -1
- package/dist/{enabled-drop-area-2bcad823.cjs.dev.js → enabled-drop-area-a65a870a.cjs.dev.js} +1 -1
- package/dist/{enabled-drop-area-b4df5667.esm.js → enabled-drop-area-dd70e62e.esm.js} +1 -1
- package/dist/{file-dropped-area-445f81cc.cjs.dev.js → file-dropped-area-741b7c1f.cjs.dev.js} +1 -1
- package/dist/{file-dropped-area-a49369d9.esm.js → file-dropped-area-967a82f7.esm.js} +1 -1
- package/dist/{file-dropped-area-a734e8ef.cjs.prod.js → file-dropped-area-a5e8e576.cjs.prod.js} +1 -1
- package/dist/{index-38dc483c.cjs.prod.js → index-8cca2fab.cjs.prod.js} +118 -173
- package/dist/{index-71f84008.cjs.dev.js → index-ca3e541b.cjs.dev.js} +118 -173
- package/dist/{index-10b21cef.esm.js → index-e6460364.esm.js} +118 -173
- package/package.json +11 -11
|
@@ -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-89acd82d.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-a65a870a.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-741b7c1f.cjs.dev.js' /* webpackChunkName: "filed-dropped-area" */); }));
|
|
767
767
|
|
|
768
768
|
function getDropArea(_ref) {
|
|
769
769
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -803,58 +803,48 @@ function getDropAreaState(flags) {
|
|
|
803
803
|
|
|
804
804
|
var messages$7 = reactIntl.defineMessages({
|
|
805
805
|
dragAndDropCSV: {
|
|
806
|
-
id:
|
|
807
|
-
|
|
808
|
-
defaultMessage: 'Drag and drop CSV'
|
|
806
|
+
id: "ImportResourcesModal.dragAndDropCSV",
|
|
807
|
+
defaultMessage: "Drag and drop CSV"
|
|
809
808
|
},
|
|
810
809
|
or: {
|
|
811
|
-
id:
|
|
812
|
-
|
|
813
|
-
defaultMessage: 'or'
|
|
810
|
+
id: "ImportResourcesModal.or",
|
|
811
|
+
defaultMessage: "or"
|
|
814
812
|
},
|
|
815
813
|
browseButton: {
|
|
816
|
-
id:
|
|
817
|
-
defaultMessage:
|
|
814
|
+
id: "ImportResourcesModal.browseFile",
|
|
815
|
+
defaultMessage: "Browse file"
|
|
818
816
|
},
|
|
819
817
|
uploadFile: {
|
|
820
|
-
id:
|
|
821
|
-
|
|
822
|
-
defaultMessage: 'Upload file'
|
|
818
|
+
id: "ImportResourcesModal.uploadFile",
|
|
819
|
+
defaultMessage: "Upload file"
|
|
823
820
|
},
|
|
824
821
|
chooseFile: {
|
|
825
|
-
id:
|
|
826
|
-
|
|
827
|
-
defaultMessage: 'Choose file'
|
|
822
|
+
id: "ImportResourcesModal.chooseFile",
|
|
823
|
+
defaultMessage: "Choose file"
|
|
828
824
|
},
|
|
829
825
|
fileUploadFailed: {
|
|
830
|
-
id:
|
|
831
|
-
|
|
832
|
-
defaultMessage: 'File upload failed'
|
|
826
|
+
id: "ImportResourcesModal.fileUploadFailed",
|
|
827
|
+
defaultMessage: "File upload failed"
|
|
833
828
|
},
|
|
834
829
|
fileFormatNotSupported: {
|
|
835
|
-
id:
|
|
836
|
-
|
|
837
|
-
defaultMessage: 'Invalid file format: The file is not in CSV format and cannot be processed.'
|
|
830
|
+
id: "ImportResourcesModal.fileFormatNotSupported",
|
|
831
|
+
defaultMessage: "Invalid file format: The file is not in CSV format and cannot be processed."
|
|
838
832
|
},
|
|
839
833
|
tooManyFilesError: {
|
|
840
|
-
id:
|
|
841
|
-
|
|
842
|
-
defaultMessage: 'Multiple files detected: You can only drag and drop one file at a time.'
|
|
834
|
+
id: "ImportResourcesModal.tooManyFilesError",
|
|
835
|
+
defaultMessage: "Multiple files detected: You can only drag and drop one file at a time."
|
|
843
836
|
},
|
|
844
837
|
genericError: {
|
|
845
|
-
id:
|
|
846
|
-
|
|
847
|
-
defaultMessage: 'Error occurred: Please try uploading the file again or contact our support team for assistance.'
|
|
838
|
+
id: "ImportResourcesModal.genericError",
|
|
839
|
+
defaultMessage: "Error occurred: Please try uploading the file again or contact our support team for assistance."
|
|
848
840
|
},
|
|
849
841
|
dataType: {
|
|
850
|
-
id:
|
|
851
|
-
|
|
852
|
-
defaultMessage: 'Data type'
|
|
842
|
+
id: "ImportResourcesModal.dataType",
|
|
843
|
+
defaultMessage: "Data type"
|
|
853
844
|
},
|
|
854
845
|
instructions: {
|
|
855
|
-
id:
|
|
856
|
-
|
|
857
|
-
defaultMessage: 'Instructions'
|
|
846
|
+
id: "ImportResourcesModal.instructions",
|
|
847
|
+
defaultMessage: "Instructions"
|
|
858
848
|
}
|
|
859
849
|
});
|
|
860
850
|
|
|
@@ -868,61 +858,52 @@ function useImportResourcesContext() {
|
|
|
868
858
|
|
|
869
859
|
var messages$6 = reactIntl.defineMessages({
|
|
870
860
|
fileSizeExceededTitle: {
|
|
871
|
-
id:
|
|
872
|
-
defaultMessage:
|
|
861
|
+
id: "ImportResourcesModal.sizeExceededTitle",
|
|
862
|
+
defaultMessage: "File size exceeded"
|
|
873
863
|
},
|
|
874
864
|
fileSizeExceededDescription: {
|
|
875
|
-
id:
|
|
876
|
-
|
|
877
|
-
defaultMessage: 'The file exceeds the maximum allowed size of {fileSizeLimit} MB'
|
|
865
|
+
id: "ImportResourcesModal.sizeExceededDescription",
|
|
866
|
+
defaultMessage: "The file exceeds the maximum allowed size of {fileSizeLimit} MB"
|
|
878
867
|
},
|
|
879
868
|
rowLimitExceededTitle: {
|
|
880
|
-
id:
|
|
881
|
-
defaultMessage:
|
|
869
|
+
id: "ImportResourcesModal.rowLimitExceededTitle",
|
|
870
|
+
defaultMessage: "Row limit exceeded"
|
|
882
871
|
},
|
|
883
872
|
rowLimitExceededDescription: {
|
|
884
|
-
id:
|
|
885
|
-
|
|
886
|
-
defaultMessage: 'The file contains more than the allowable maximum of {rowLimit} rows'
|
|
873
|
+
id: "ImportResourcesModal.rowLimitExceededDescription",
|
|
874
|
+
defaultMessage: "The file contains more than the allowable maximum of {rowLimit} rows"
|
|
887
875
|
},
|
|
888
876
|
dropAreaWrongDelimiterTitle: {
|
|
889
|
-
id:
|
|
890
|
-
defaultMessage:
|
|
877
|
+
id: "ImportResourcesModal.wrongDelimiterTitle",
|
|
878
|
+
defaultMessage: "Wrong delimiter"
|
|
891
879
|
},
|
|
892
880
|
dropAreaWrongDelimiterDescription: {
|
|
893
|
-
id:
|
|
894
|
-
|
|
895
|
-
defaultMessage: 'The file is using an incorrect delimiter. Please use comma (,) instead.'
|
|
881
|
+
id: "ImportResourcesModal.wrongDelimiterDescription",
|
|
882
|
+
defaultMessage: "The file is using an incorrect delimiter. Please use comma (,) instead."
|
|
896
883
|
},
|
|
897
884
|
dropAreaNotEnoughRowsTitle: {
|
|
898
|
-
id:
|
|
899
|
-
|
|
900
|
-
defaultMessage: 'Invalid CSV file'
|
|
885
|
+
id: "ImportResourcesModal.dropAreaNotEnoughRowsTitle",
|
|
886
|
+
defaultMessage: "Invalid CSV file"
|
|
901
887
|
},
|
|
902
888
|
dropAreaNotEnoughRowsDescription: {
|
|
903
|
-
id:
|
|
904
|
-
|
|
905
|
-
defaultMessage: 'Make sure the file contains a header and at least one row of data'
|
|
889
|
+
id: "ImportResourcesModal.dropAreaNotEnoughRowsDescription",
|
|
890
|
+
defaultMessage: "Make sure the file contains a header and at least one row of data"
|
|
906
891
|
},
|
|
907
892
|
unexpectedError: {
|
|
908
|
-
id:
|
|
909
|
-
|
|
910
|
-
defaultMessage: 'An unexpected error occurred during the file upload. Please try again, or contact support if this error occurs again.'
|
|
893
|
+
id: "ImportResourcesModal.unexpectedError",
|
|
894
|
+
defaultMessage: "An unexpected error occurred during the file upload. Please try again, or contact support if this error occurs again."
|
|
911
895
|
},
|
|
912
896
|
missingRequiredField: {
|
|
913
|
-
id:
|
|
914
|
-
|
|
915
|
-
defaultMessage: 'Missing required field'
|
|
897
|
+
id: "ImportResourcesModal.missingRequiredField",
|
|
898
|
+
defaultMessage: "Missing required field"
|
|
916
899
|
},
|
|
917
900
|
missingKeyError: {
|
|
918
|
-
id:
|
|
919
|
-
description: 'Error message displayed when the uploaded file is missing the key field',
|
|
901
|
+
id: "ImportResourcesModal.missingKeyError",
|
|
920
902
|
defaultMessage: "The 'key' field is missing or incomplete in some rows. Please ensure every row has a 'key' value."
|
|
921
903
|
},
|
|
922
904
|
missingRequiredKeys: {
|
|
923
|
-
id:
|
|
924
|
-
|
|
925
|
-
defaultMessage: 'Make sure the file contains required keys for the elements including {fieldNames}'
|
|
905
|
+
id: "ImportResourcesModal.missingRequiredKeys",
|
|
906
|
+
defaultMessage: "Make sure the file contains required keys for the elements including {fieldNames}"
|
|
926
907
|
}
|
|
927
908
|
});
|
|
928
909
|
|
|
@@ -1183,9 +1164,8 @@ const FileDropArea = () => {
|
|
|
1183
1164
|
|
|
1184
1165
|
var messages$5 = reactIntl.defineMessages({
|
|
1185
1166
|
publishProducts: {
|
|
1186
|
-
id:
|
|
1187
|
-
|
|
1188
|
-
defaultMessage: 'Publish all products in the file'
|
|
1167
|
+
id: "ImportResourcesModal.settings.publishProducts",
|
|
1168
|
+
defaultMessage: "Publish all products in the file"
|
|
1189
1169
|
}
|
|
1190
1170
|
});
|
|
1191
1171
|
|
|
@@ -1219,54 +1199,44 @@ const UploadSettings = () => {
|
|
|
1219
1199
|
|
|
1220
1200
|
var sharedMessages = reactIntl.defineMessages({
|
|
1221
1201
|
[`modalTitle.${IMPORTABLE_RESOURCES.CATEGORY}`]: {
|
|
1222
|
-
id:
|
|
1223
|
-
|
|
1224
|
-
defaultMessage: 'Import categories by CSV'
|
|
1202
|
+
id: "ImportResourcesModal.modalTitle.category",
|
|
1203
|
+
defaultMessage: "Import categories by CSV"
|
|
1225
1204
|
},
|
|
1226
1205
|
[`modalTitle.${IMPORTABLE_RESOURCES.PRODUCT}`]: {
|
|
1227
|
-
id:
|
|
1228
|
-
|
|
1229
|
-
defaultMessage: 'Import products by CSV'
|
|
1206
|
+
id: "ImportResourcesModal.modalTitle.product",
|
|
1207
|
+
defaultMessage: "Import products by CSV"
|
|
1230
1208
|
},
|
|
1231
1209
|
[`modalTitle.${IMPORTABLE_RESOURCES.INVENTORY}`]: {
|
|
1232
|
-
id:
|
|
1233
|
-
|
|
1234
|
-
defaultMessage: 'Import inventories by CSV'
|
|
1210
|
+
id: "ImportResourcesModal.modalTitle.inventoryEntry",
|
|
1211
|
+
defaultMessage: "Import inventories by CSV"
|
|
1235
1212
|
},
|
|
1236
1213
|
[`modalTitle.${IMPORTABLE_RESOURCES.DISCOUNT_CODE}`]: {
|
|
1237
|
-
id:
|
|
1238
|
-
|
|
1239
|
-
defaultMessage: 'Import discount codes by CSV'
|
|
1214
|
+
id: "ImportResourcesModal.modalTitle.discountCode",
|
|
1215
|
+
defaultMessage: "Import discount codes by CSV"
|
|
1240
1216
|
},
|
|
1241
1217
|
[`modalTitle.${IMPORTABLE_RESOURCES.CUSTOMER}`]: {
|
|
1242
|
-
id:
|
|
1243
|
-
|
|
1244
|
-
defaultMessage: 'Import customers by CSV'
|
|
1218
|
+
id: "ImportResourcesModal.modalTitle.customer",
|
|
1219
|
+
defaultMessage: "Import customers by CSV"
|
|
1245
1220
|
},
|
|
1246
1221
|
[`modalTitle.${IMPORTABLE_RESOURCES.ORDER}`]: {
|
|
1247
|
-
id:
|
|
1248
|
-
|
|
1249
|
-
defaultMessage: 'Import orders by CSV'
|
|
1222
|
+
id: "ImportResourcesModal.modalTitle.order",
|
|
1223
|
+
defaultMessage: "Import orders by CSV"
|
|
1250
1224
|
},
|
|
1251
1225
|
[`modalTitle.${IMPORTABLE_RESOURCES.PRODUCT_TYPE}`]: {
|
|
1252
|
-
id:
|
|
1253
|
-
|
|
1254
|
-
defaultMessage: 'Import product types by CSV'
|
|
1226
|
+
id: "ImportResourcesModal.modalTitle.productType",
|
|
1227
|
+
defaultMessage: "Import product types by CSV"
|
|
1255
1228
|
},
|
|
1256
1229
|
uploadButton: {
|
|
1257
|
-
id:
|
|
1258
|
-
|
|
1259
|
-
defaultMessage: 'Upload and preview'
|
|
1230
|
+
id: "ImportResourcesModal.uploadButton",
|
|
1231
|
+
defaultMessage: "Upload and preview"
|
|
1260
1232
|
},
|
|
1261
1233
|
cancel: {
|
|
1262
|
-
id:
|
|
1263
|
-
|
|
1264
|
-
defaultMessage: 'Cancel'
|
|
1234
|
+
id: "ImportResourcesModal.cancel",
|
|
1235
|
+
defaultMessage: "Cancel"
|
|
1265
1236
|
},
|
|
1266
1237
|
close: {
|
|
1267
|
-
id:
|
|
1268
|
-
|
|
1269
|
-
defaultMessage: 'Close'
|
|
1238
|
+
id: "ImportResourcesModal.close",
|
|
1239
|
+
defaultMessage: "Close"
|
|
1270
1240
|
}
|
|
1271
1241
|
});
|
|
1272
1242
|
|
|
@@ -1328,34 +1298,28 @@ const Upload = () => {
|
|
|
1328
1298
|
|
|
1329
1299
|
var messages$4 = reactIntl.defineMessages({
|
|
1330
1300
|
row: {
|
|
1331
|
-
id:
|
|
1332
|
-
|
|
1333
|
-
defaultMessage: 'Row'
|
|
1301
|
+
id: "ImportResourcesModal.row",
|
|
1302
|
+
defaultMessage: "Row"
|
|
1334
1303
|
},
|
|
1335
1304
|
errorType: {
|
|
1336
|
-
id:
|
|
1337
|
-
|
|
1338
|
-
defaultMessage: 'Error type'
|
|
1305
|
+
id: "ImportResourcesModal.errorType",
|
|
1306
|
+
defaultMessage: "Error type"
|
|
1339
1307
|
},
|
|
1340
1308
|
details: {
|
|
1341
|
-
id:
|
|
1342
|
-
|
|
1343
|
-
defaultMessage: 'Details'
|
|
1309
|
+
id: "ImportResourcesModal.details",
|
|
1310
|
+
defaultMessage: "Details"
|
|
1344
1311
|
},
|
|
1345
1312
|
uploadErrorDescription: {
|
|
1346
|
-
id:
|
|
1347
|
-
|
|
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>.'
|
|
1313
|
+
id: "ImportResourcesModal.uploadErrorDescription",
|
|
1314
|
+
defaultMessage: "There {errorsCount, plural, one {is <b>{errorsCount}</b> error} other {are <b>{errorsCount}</b> errors}} detected while uploading the file <b>{fileName}</b>."
|
|
1349
1315
|
},
|
|
1350
1316
|
supportedValuesDocumentation: {
|
|
1351
|
-
id:
|
|
1352
|
-
|
|
1353
|
-
defaultMessage: '<documentationLink>View the documentation</documentationLink> for supported values.'
|
|
1317
|
+
id: "ImportResourcesModal.supportedValuesDocumentation",
|
|
1318
|
+
defaultMessage: "<documentationLink>View the documentation</documentationLink> for supported values."
|
|
1354
1319
|
},
|
|
1355
1320
|
uploadNewFile: {
|
|
1356
|
-
id:
|
|
1357
|
-
|
|
1358
|
-
defaultMessage: 'Upload new file'
|
|
1321
|
+
id: "ImportResourcesModal.uploadNewFile",
|
|
1322
|
+
defaultMessage: "Upload new file"
|
|
1359
1323
|
}
|
|
1360
1324
|
});
|
|
1361
1325
|
|
|
@@ -1596,69 +1560,56 @@ function getBold$2(msg) {
|
|
|
1596
1560
|
|
|
1597
1561
|
var messages$3 = reactIntl.defineMessages({
|
|
1598
1562
|
startImportButton: {
|
|
1599
|
-
id:
|
|
1600
|
-
|
|
1601
|
-
defaultMessage: 'Start import'
|
|
1563
|
+
id: "ImportResourcesModal.startImportButton",
|
|
1564
|
+
defaultMessage: "Start import"
|
|
1602
1565
|
},
|
|
1603
1566
|
importNotificationSuccessMessage: {
|
|
1604
|
-
id:
|
|
1605
|
-
|
|
1606
|
-
defaultMessage: '<b>Your import has started.</b><newline></newline> <logsLink>Go to Import logs</logsLink> to view the progress.'
|
|
1567
|
+
id: "ImportResourcesModal.successMessage",
|
|
1568
|
+
defaultMessage: "<b>Your import has started.</b><newline></newline> <logsLink>Go to Import logs</logsLink> to view the progress."
|
|
1607
1569
|
},
|
|
1608
1570
|
importNotificationPrepareMessage: {
|
|
1609
|
-
id:
|
|
1610
|
-
|
|
1611
|
-
defaultMessage: '<b>Prepare import</b><newline></newline>Once preparation is complete, you can track the import progress <logsLink>in the Import logs</logsLink>.'
|
|
1571
|
+
id: "ImportResourcesModal.prepareMessage",
|
|
1572
|
+
defaultMessage: "<b>Prepare import</b><newline></newline>Once preparation is complete, you can track the import progress <logsLink>in the Import logs</logsLink>."
|
|
1612
1573
|
},
|
|
1613
1574
|
previewOfYourImport: {
|
|
1614
|
-
id:
|
|
1615
|
-
description: 'Label for modal path',
|
|
1575
|
+
id: "ImportResourcesModal.previewOfYourImport",
|
|
1616
1576
|
defaultMessage: "Here's a preview of your import"
|
|
1617
1577
|
},
|
|
1618
1578
|
rowsToBeImported: {
|
|
1619
|
-
id:
|
|
1620
|
-
|
|
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 {}}'
|
|
1579
|
+
id: "ImportResourcesModal.rowsToBeImported",
|
|
1580
|
+
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 {}}"
|
|
1622
1581
|
},
|
|
1623
1582
|
columnsToBeImported: {
|
|
1624
|
-
id:
|
|
1625
|
-
|
|
1626
|
-
defaultMessage: '<b>{columnCount}</b> columns to be imported'
|
|
1583
|
+
id: "ImportResourcesModal.columnsToBeImported",
|
|
1584
|
+
defaultMessage: "<b>{columnCount}</b> columns to be imported"
|
|
1627
1585
|
},
|
|
1628
1586
|
columnsToBeIgnored: {
|
|
1629
|
-
id:
|
|
1630
|
-
description: "This message indicates the number of columns that will be deliberately skipped during the import because they can't be imported",
|
|
1587
|
+
id: "ImportResourcesModal.columnsToBeIgnored",
|
|
1631
1588
|
defaultMessage: "We will intentionally ignore <b>{columnCount}</b> columns as they can't be imported"
|
|
1632
1589
|
},
|
|
1633
1590
|
showMore: {
|
|
1634
|
-
id:
|
|
1635
|
-
|
|
1636
|
-
defaultMessage: 'Show more'
|
|
1591
|
+
id: "ImportResourcesModal.showMore",
|
|
1592
|
+
defaultMessage: "Show more"
|
|
1637
1593
|
},
|
|
1638
1594
|
showLess: {
|
|
1639
|
-
id:
|
|
1640
|
-
|
|
1641
|
-
defaultMessage: 'Show less'
|
|
1595
|
+
id: "ImportResourcesModal.showLess",
|
|
1596
|
+
defaultMessage: "Show less"
|
|
1642
1597
|
},
|
|
1643
1598
|
continue: {
|
|
1644
|
-
id:
|
|
1645
|
-
|
|
1646
|
-
defaultMessage: 'Continue'
|
|
1599
|
+
id: "ImportResourcesModal.continue",
|
|
1600
|
+
defaultMessage: "Continue"
|
|
1647
1601
|
},
|
|
1648
1602
|
confirmationBodyText: {
|
|
1649
|
-
id:
|
|
1650
|
-
|
|
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>.'
|
|
1603
|
+
id: "ImportResourcesModal.confirmationBodyText",
|
|
1604
|
+
defaultMessage: "You are about to import {count, plural, one {<bold>1</bold> row} other {<bold>{count}</bold> rows}} in the project: <bold>{projectName}</bold>."
|
|
1652
1605
|
},
|
|
1653
1606
|
confirmationBodyNote: {
|
|
1654
|
-
id:
|
|
1655
|
-
|
|
1656
|
-
defaultMessage: 'Please be aware that existing values with the same keys will be overwritten by the data included in the CSV.'
|
|
1607
|
+
id: "ImportResourcesModal.confirmationBodyNote",
|
|
1608
|
+
defaultMessage: "Please be aware that existing values with the same keys will be overwritten by the data included in the CSV."
|
|
1657
1609
|
},
|
|
1658
1610
|
confirmationBodyQuestion: {
|
|
1659
|
-
id:
|
|
1660
|
-
|
|
1661
|
-
defaultMessage: 'Proceed with the import?'
|
|
1611
|
+
id: "ImportResourcesModal.confirmationBodyQuestion",
|
|
1612
|
+
defaultMessage: "Proceed with the import?"
|
|
1662
1613
|
}
|
|
1663
1614
|
});
|
|
1664
1615
|
|
|
@@ -2085,19 +2036,16 @@ const CurrentStep = () => {
|
|
|
2085
2036
|
|
|
2086
2037
|
var messages$2 = reactIntl.defineMessages({
|
|
2087
2038
|
products: {
|
|
2088
|
-
id:
|
|
2089
|
-
|
|
2090
|
-
defaultMessage: 'Products (including variants, assets, prices and images)'
|
|
2039
|
+
id: "ImportResourcesModal.radio.products",
|
|
2040
|
+
defaultMessage: "Products (including variants, assets, prices and images)"
|
|
2091
2041
|
},
|
|
2092
2042
|
inventories: {
|
|
2093
|
-
id:
|
|
2094
|
-
|
|
2095
|
-
defaultMessage: 'Inventories'
|
|
2043
|
+
id: "ImportResourcesModal.radio.inventories",
|
|
2044
|
+
defaultMessage: "Inventories"
|
|
2096
2045
|
},
|
|
2097
2046
|
categories: {
|
|
2098
|
-
id:
|
|
2099
|
-
|
|
2100
|
-
defaultMessage: 'Categories'
|
|
2047
|
+
id: "ImportResourcesModal.radio.categories",
|
|
2048
|
+
defaultMessage: "Categories"
|
|
2101
2049
|
}
|
|
2102
2050
|
});
|
|
2103
2051
|
|
|
@@ -2138,9 +2086,8 @@ const ResourceTypeSelection = () => {
|
|
|
2138
2086
|
|
|
2139
2087
|
var messages$1 = reactIntl.defineMessages({
|
|
2140
2088
|
fileUploadInstructions: {
|
|
2141
|
-
id:
|
|
2142
|
-
|
|
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>.'
|
|
2089
|
+
id: "ImportResourcesModal.fileUploadInstructions",
|
|
2090
|
+
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>."
|
|
2144
2091
|
}
|
|
2145
2092
|
});
|
|
2146
2093
|
|
|
@@ -2176,14 +2123,12 @@ const Instructions = () => {
|
|
|
2176
2123
|
|
|
2177
2124
|
var messages = reactIntl.defineMessages({
|
|
2178
2125
|
prerequisitesOfImportingData: {
|
|
2179
|
-
id:
|
|
2180
|
-
|
|
2181
|
-
defaultMessage: 'Prerequisites of importing data'
|
|
2126
|
+
id: "ImportResourcesModal.infoBox.prerequisitesOfImportingData",
|
|
2127
|
+
defaultMessage: "Prerequisites of importing data"
|
|
2182
2128
|
},
|
|
2183
2129
|
keysForEveryResource: {
|
|
2184
|
-
id:
|
|
2185
|
-
|
|
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>.'
|
|
2130
|
+
id: "ImportResourcesModal.infoBox.keysForEveryResource",
|
|
2131
|
+
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>."
|
|
2187
2132
|
}
|
|
2188
2133
|
});
|
|
2189
2134
|
|