@commercetools-frontend-extensions/import-resources-modal 1.6.5 → 1.6.7
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-4dc1357c.esm.js → active-drag-drop-area-564e4a8e.esm.js} +1 -1
- package/dist/{active-drag-drop-area-373d643b.cjs.prod.js → active-drag-drop-area-759e9050.cjs.prod.js} +1 -1
- package/dist/{active-drag-drop-area-89acd82d.cjs.dev.js → active-drag-drop-area-81051274.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-86d22a1c.cjs.prod.js → enabled-drop-area-29959d59.cjs.prod.js} +1 -1
- package/dist/{enabled-drop-area-dd70e62e.esm.js → enabled-drop-area-2fec73c9.esm.js} +1 -1
- package/dist/{enabled-drop-area-a65a870a.cjs.dev.js → enabled-drop-area-99185e7f.cjs.dev.js} +1 -1
- package/dist/{file-dropped-area-a5e8e576.cjs.prod.js → file-dropped-area-33cac9b2.cjs.prod.js} +1 -1
- package/dist/{file-dropped-area-741b7c1f.cjs.dev.js → file-dropped-area-9dcb8774.cjs.dev.js} +1 -1
- package/dist/{file-dropped-area-967a82f7.esm.js → file-dropped-area-a9f8041e.esm.js} +1 -1
- package/dist/{index-8cca2fab.cjs.prod.js → index-87e37455.cjs.prod.js} +183 -128
- package/dist/{index-ca3e541b.cjs.dev.js → index-bcf4954a.cjs.dev.js} +185 -130
- package/dist/{index-e6460364.esm.js → index-e6255aa8.esm.js} +185 -130
- package/package.json +16 -16
|
@@ -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-
|
|
757
|
+
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-759e9050.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-
|
|
761
|
+
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-29959d59.cjs.prod.js' /* webpackChunkName: "enabled-drop-area" */); }));
|
|
762
762
|
|
|
763
|
-
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-
|
|
763
|
+
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-33cac9b2.cjs.prod.js' /* webpackChunkName: "filed-dropped-area" */); }));
|
|
764
764
|
|
|
765
765
|
function getDropArea(_ref) {
|
|
766
766
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -800,48 +800,58 @@ function getDropAreaState(flags) {
|
|
|
800
800
|
|
|
801
801
|
var messages$7 = reactIntl.defineMessages({
|
|
802
802
|
dragAndDropCSV: {
|
|
803
|
-
id:
|
|
804
|
-
|
|
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'
|
|
805
806
|
},
|
|
806
807
|
or: {
|
|
807
|
-
id:
|
|
808
|
-
|
|
808
|
+
id: 'ImportResourcesModal.or',
|
|
809
|
+
description: 'The word "or" in the drag and drop message',
|
|
810
|
+
defaultMessage: 'or'
|
|
809
811
|
},
|
|
810
812
|
browseButton: {
|
|
811
|
-
id:
|
|
812
|
-
defaultMessage:
|
|
813
|
+
id: 'ImportResourcesModal.browseFile',
|
|
814
|
+
defaultMessage: 'Browse file'
|
|
813
815
|
},
|
|
814
816
|
uploadFile: {
|
|
815
|
-
id:
|
|
816
|
-
|
|
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'
|
|
817
820
|
},
|
|
818
821
|
chooseFile: {
|
|
819
|
-
id:
|
|
820
|
-
|
|
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'
|
|
821
825
|
},
|
|
822
826
|
fileUploadFailed: {
|
|
823
|
-
id:
|
|
824
|
-
|
|
827
|
+
id: 'ImportResourcesModal.fileUploadFailed',
|
|
828
|
+
description: 'A title on the file upload page, shown on file upload error state',
|
|
829
|
+
defaultMessage: 'File upload failed'
|
|
825
830
|
},
|
|
826
831
|
fileFormatNotSupported: {
|
|
827
|
-
id:
|
|
828
|
-
|
|
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.'
|
|
829
835
|
},
|
|
830
836
|
tooManyFilesError: {
|
|
831
|
-
id:
|
|
832
|
-
|
|
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.'
|
|
833
840
|
},
|
|
834
841
|
genericError: {
|
|
835
|
-
id:
|
|
836
|
-
|
|
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.'
|
|
837
845
|
},
|
|
838
846
|
dataType: {
|
|
839
|
-
id:
|
|
840
|
-
|
|
847
|
+
id: 'ImportResourcesModal.dataType',
|
|
848
|
+
description: 'Label for the data type selection dropdown',
|
|
849
|
+
defaultMessage: 'Data type'
|
|
841
850
|
},
|
|
842
851
|
instructions: {
|
|
843
|
-
id:
|
|
844
|
-
|
|
852
|
+
id: 'ImportResourcesModal.instructions',
|
|
853
|
+
description: 'Label for the instructions section',
|
|
854
|
+
defaultMessage: 'Instructions'
|
|
845
855
|
}
|
|
846
856
|
});
|
|
847
857
|
|
|
@@ -855,52 +865,61 @@ function useImportResourcesContext() {
|
|
|
855
865
|
|
|
856
866
|
var messages$6 = reactIntl.defineMessages({
|
|
857
867
|
fileSizeExceededTitle: {
|
|
858
|
-
id:
|
|
859
|
-
defaultMessage:
|
|
868
|
+
id: 'ImportResourcesModal.sizeExceededTitle',
|
|
869
|
+
defaultMessage: 'File size exceeded'
|
|
860
870
|
},
|
|
861
871
|
fileSizeExceededDescription: {
|
|
862
|
-
id:
|
|
863
|
-
|
|
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'
|
|
864
875
|
},
|
|
865
876
|
rowLimitExceededTitle: {
|
|
866
|
-
id:
|
|
867
|
-
defaultMessage:
|
|
877
|
+
id: 'ImportResourcesModal.rowLimitExceededTitle',
|
|
878
|
+
defaultMessage: 'Row limit exceeded'
|
|
868
879
|
},
|
|
869
880
|
rowLimitExceededDescription: {
|
|
870
|
-
id:
|
|
871
|
-
|
|
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'
|
|
872
884
|
},
|
|
873
885
|
dropAreaWrongDelimiterTitle: {
|
|
874
|
-
id:
|
|
875
|
-
defaultMessage:
|
|
886
|
+
id: 'ImportResourcesModal.wrongDelimiterTitle',
|
|
887
|
+
defaultMessage: 'Wrong delimiter'
|
|
876
888
|
},
|
|
877
889
|
dropAreaWrongDelimiterDescription: {
|
|
878
|
-
id:
|
|
879
|
-
|
|
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.'
|
|
880
893
|
},
|
|
881
894
|
dropAreaNotEnoughRowsTitle: {
|
|
882
|
-
id:
|
|
883
|
-
|
|
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'
|
|
884
898
|
},
|
|
885
899
|
dropAreaNotEnoughRowsDescription: {
|
|
886
|
-
id:
|
|
887
|
-
|
|
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'
|
|
888
903
|
},
|
|
889
904
|
unexpectedError: {
|
|
890
|
-
id:
|
|
891
|
-
|
|
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.'
|
|
892
908
|
},
|
|
893
909
|
missingRequiredField: {
|
|
894
|
-
id:
|
|
895
|
-
|
|
910
|
+
id: 'ImportResourcesModal.missingRequiredField',
|
|
911
|
+
description: 'Error message displayed when a required field is missing',
|
|
912
|
+
defaultMessage: 'Missing required field'
|
|
896
913
|
},
|
|
897
914
|
missingKeyError: {
|
|
898
|
-
id:
|
|
915
|
+
id: 'ImportResourcesModal.missingKeyError',
|
|
916
|
+
description: 'Error message displayed when the uploaded file is missing the key field',
|
|
899
917
|
defaultMessage: "The 'key' field is missing or incomplete in some rows. Please ensure every row has a 'key' value."
|
|
900
918
|
},
|
|
901
919
|
missingRequiredKeys: {
|
|
902
|
-
id:
|
|
903
|
-
|
|
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}'
|
|
904
923
|
}
|
|
905
924
|
});
|
|
906
925
|
|
|
@@ -1161,8 +1180,9 @@ const FileDropArea = () => {
|
|
|
1161
1180
|
|
|
1162
1181
|
var messages$5 = reactIntl.defineMessages({
|
|
1163
1182
|
publishProducts: {
|
|
1164
|
-
id:
|
|
1165
|
-
|
|
1183
|
+
id: 'ImportResourcesModal.settings.publishProducts',
|
|
1184
|
+
description: 'Label for the publish products checkbox',
|
|
1185
|
+
defaultMessage: 'Publish all products in the file'
|
|
1166
1186
|
}
|
|
1167
1187
|
});
|
|
1168
1188
|
|
|
@@ -1196,44 +1216,54 @@ const UploadSettings = () => {
|
|
|
1196
1216
|
|
|
1197
1217
|
var sharedMessages = reactIntl.defineMessages({
|
|
1198
1218
|
[`modalTitle.${IMPORTABLE_RESOURCES.CATEGORY}`]: {
|
|
1199
|
-
id:
|
|
1200
|
-
|
|
1219
|
+
id: 'ImportResourcesModal.modalTitle.category',
|
|
1220
|
+
description: 'Label for the categories modal title',
|
|
1221
|
+
defaultMessage: 'Import categories by CSV'
|
|
1201
1222
|
},
|
|
1202
1223
|
[`modalTitle.${IMPORTABLE_RESOURCES.PRODUCT}`]: {
|
|
1203
|
-
id:
|
|
1204
|
-
|
|
1224
|
+
id: 'ImportResourcesModal.modalTitle.product',
|
|
1225
|
+
description: 'Label for the products modal title',
|
|
1226
|
+
defaultMessage: 'Import products by CSV'
|
|
1205
1227
|
},
|
|
1206
1228
|
[`modalTitle.${IMPORTABLE_RESOURCES.INVENTORY}`]: {
|
|
1207
|
-
id:
|
|
1208
|
-
|
|
1229
|
+
id: 'ImportResourcesModal.modalTitle.inventoryEntry',
|
|
1230
|
+
description: 'Label for the inventories modal title',
|
|
1231
|
+
defaultMessage: 'Import inventories by CSV'
|
|
1209
1232
|
},
|
|
1210
1233
|
[`modalTitle.${IMPORTABLE_RESOURCES.DISCOUNT_CODE}`]: {
|
|
1211
|
-
id:
|
|
1212
|
-
|
|
1234
|
+
id: 'ImportResourcesModal.modalTitle.discountCode',
|
|
1235
|
+
description: 'Label for the inventories modal title',
|
|
1236
|
+
defaultMessage: 'Import discount codes by CSV'
|
|
1213
1237
|
},
|
|
1214
1238
|
[`modalTitle.${IMPORTABLE_RESOURCES.CUSTOMER}`]: {
|
|
1215
|
-
id:
|
|
1216
|
-
|
|
1239
|
+
id: 'ImportResourcesModal.modalTitle.customer',
|
|
1240
|
+
description: 'Label for the customers modal title',
|
|
1241
|
+
defaultMessage: 'Import customers by CSV'
|
|
1217
1242
|
},
|
|
1218
1243
|
[`modalTitle.${IMPORTABLE_RESOURCES.ORDER}`]: {
|
|
1219
|
-
id:
|
|
1220
|
-
|
|
1244
|
+
id: 'ImportResourcesModal.modalTitle.order',
|
|
1245
|
+
description: 'Label for the order modal title',
|
|
1246
|
+
defaultMessage: 'Import orders by CSV'
|
|
1221
1247
|
},
|
|
1222
1248
|
[`modalTitle.${IMPORTABLE_RESOURCES.PRODUCT_TYPE}`]: {
|
|
1223
|
-
id:
|
|
1224
|
-
|
|
1249
|
+
id: 'ImportResourcesModal.modalTitle.productType',
|
|
1250
|
+
description: 'Label for the product type modal title',
|
|
1251
|
+
defaultMessage: 'Import product types by CSV'
|
|
1225
1252
|
},
|
|
1226
1253
|
uploadButton: {
|
|
1227
|
-
id:
|
|
1228
|
-
|
|
1254
|
+
id: 'ImportResourcesModal.uploadButton',
|
|
1255
|
+
description: 'Label for the upload button',
|
|
1256
|
+
defaultMessage: 'Upload and preview'
|
|
1229
1257
|
},
|
|
1230
1258
|
cancel: {
|
|
1231
|
-
id:
|
|
1232
|
-
|
|
1259
|
+
id: 'ImportResourcesModal.cancel',
|
|
1260
|
+
description: 'Label for the cancel button',
|
|
1261
|
+
defaultMessage: 'Cancel'
|
|
1233
1262
|
},
|
|
1234
1263
|
close: {
|
|
1235
|
-
id:
|
|
1236
|
-
|
|
1264
|
+
id: 'ImportResourcesModal.close',
|
|
1265
|
+
description: 'Label for the close button',
|
|
1266
|
+
defaultMessage: 'Close'
|
|
1237
1267
|
}
|
|
1238
1268
|
});
|
|
1239
1269
|
|
|
@@ -1295,28 +1325,34 @@ const Upload = () => {
|
|
|
1295
1325
|
|
|
1296
1326
|
var messages$4 = reactIntl.defineMessages({
|
|
1297
1327
|
row: {
|
|
1298
|
-
id:
|
|
1299
|
-
|
|
1328
|
+
id: 'ImportResourcesModal.row',
|
|
1329
|
+
description: 'In Upload file error modal - "Row" column',
|
|
1330
|
+
defaultMessage: 'Row'
|
|
1300
1331
|
},
|
|
1301
1332
|
errorType: {
|
|
1302
|
-
id:
|
|
1303
|
-
|
|
1333
|
+
id: 'ImportResourcesModal.errorType',
|
|
1334
|
+
description: 'In Upload file error modal - "Error type" column',
|
|
1335
|
+
defaultMessage: 'Error type'
|
|
1304
1336
|
},
|
|
1305
1337
|
details: {
|
|
1306
|
-
id:
|
|
1307
|
-
|
|
1338
|
+
id: 'ImportResourcesModal.details',
|
|
1339
|
+
description: 'In Upload file error modal - "Details" column',
|
|
1340
|
+
defaultMessage: 'Details'
|
|
1308
1341
|
},
|
|
1309
1342
|
uploadErrorDescription: {
|
|
1310
|
-
id:
|
|
1311
|
-
|
|
1343
|
+
id: 'ImportResourcesModal.uploadErrorDescription',
|
|
1344
|
+
description: 'Title when errors detected while uploading file',
|
|
1345
|
+
defaultMessage: 'There {errorsCount, plural, one {is <b>{errorsCount}</b> error} other {are <b>{errorsCount}</b> errors}} detected while uploading the file <b>{fileName}</b>.'
|
|
1312
1346
|
},
|
|
1313
1347
|
supportedValuesDocumentation: {
|
|
1314
|
-
id:
|
|
1315
|
-
|
|
1348
|
+
id: 'ImportResourcesModal.supportedValuesDocumentation',
|
|
1349
|
+
description: 'Link to the documentation for supported values',
|
|
1350
|
+
defaultMessage: '<documentationLink>View the documentation</documentationLink> for supported values.'
|
|
1316
1351
|
},
|
|
1317
1352
|
uploadNewFile: {
|
|
1318
|
-
id:
|
|
1319
|
-
|
|
1353
|
+
id: 'ImportResourcesModal.uploadNewFile',
|
|
1354
|
+
description: 'Upload new file button',
|
|
1355
|
+
defaultMessage: 'Upload new file'
|
|
1320
1356
|
}
|
|
1321
1357
|
});
|
|
1322
1358
|
|
|
@@ -1421,7 +1457,7 @@ function getBold$3(msg) {
|
|
|
1421
1457
|
as: "span",
|
|
1422
1458
|
isBold: true,
|
|
1423
1459
|
children: msg
|
|
1424
|
-
});
|
|
1460
|
+
}, crypto.randomUUID());
|
|
1425
1461
|
}
|
|
1426
1462
|
|
|
1427
1463
|
function ownKeys$8(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -1525,7 +1561,7 @@ const UploadRowErrorsModal = () => {
|
|
|
1525
1561
|
isExternal: true,
|
|
1526
1562
|
to: documentationLink,
|
|
1527
1563
|
children: msg
|
|
1528
|
-
})
|
|
1564
|
+
}, "documentationLink")
|
|
1529
1565
|
}
|
|
1530
1566
|
})
|
|
1531
1567
|
})]
|
|
@@ -1552,61 +1588,74 @@ function getBold$2(msg) {
|
|
|
1552
1588
|
as: "span",
|
|
1553
1589
|
isBold: true,
|
|
1554
1590
|
children: msg
|
|
1555
|
-
});
|
|
1591
|
+
}, crypto.randomUUID());
|
|
1556
1592
|
}
|
|
1557
1593
|
|
|
1558
1594
|
var messages$3 = reactIntl.defineMessages({
|
|
1559
1595
|
startImportButton: {
|
|
1560
|
-
id:
|
|
1561
|
-
|
|
1596
|
+
id: 'ImportResourcesModal.startImportButton',
|
|
1597
|
+
description: 'Label for the modal Start import button',
|
|
1598
|
+
defaultMessage: 'Start import'
|
|
1562
1599
|
},
|
|
1563
1600
|
importNotificationSuccessMessage: {
|
|
1564
|
-
id:
|
|
1565
|
-
|
|
1601
|
+
id: 'ImportResourcesModal.successMessage',
|
|
1602
|
+
description: 'Notification success message',
|
|
1603
|
+
defaultMessage: '<b>Your import has started.</b><newline></newline> <logsLink>Go to Import logs</logsLink> to view the progress.'
|
|
1566
1604
|
},
|
|
1567
1605
|
importNotificationPrepareMessage: {
|
|
1568
|
-
id:
|
|
1569
|
-
|
|
1606
|
+
id: 'ImportResourcesModal.prepareMessage',
|
|
1607
|
+
description: 'Notification for preparing import',
|
|
1608
|
+
defaultMessage: '<b>Prepare import</b><newline></newline>Once preparation is complete, you can track the import progress <logsLink>in the Import logs</logsLink>.'
|
|
1570
1609
|
},
|
|
1571
1610
|
previewOfYourImport: {
|
|
1572
|
-
id:
|
|
1611
|
+
id: 'ImportResourcesModal.previewOfYourImport',
|
|
1612
|
+
description: 'Label for modal path',
|
|
1573
1613
|
defaultMessage: "Here's a preview of your import"
|
|
1574
1614
|
},
|
|
1575
1615
|
rowsToBeImported: {
|
|
1576
|
-
id:
|
|
1577
|
-
|
|
1616
|
+
id: 'ImportResourcesModal.rowsToBeImported',
|
|
1617
|
+
description: 'This message indicates the number of rows that are ready to be imported into the system.',
|
|
1618
|
+
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 {}}'
|
|
1578
1619
|
},
|
|
1579
1620
|
columnsToBeImported: {
|
|
1580
|
-
id:
|
|
1581
|
-
|
|
1621
|
+
id: 'ImportResourcesModal.columnsToBeImported',
|
|
1622
|
+
description: 'This message indicates the number of columns that are ready to be imported into the system.',
|
|
1623
|
+
defaultMessage: '<b>{columnCount}</b> columns to be imported'
|
|
1582
1624
|
},
|
|
1583
1625
|
columnsToBeIgnored: {
|
|
1584
|
-
id:
|
|
1626
|
+
id: 'ImportResourcesModal.columnsToBeIgnored',
|
|
1627
|
+
description: "This message indicates the number of columns that will be deliberately skipped during the import because they can't be imported",
|
|
1585
1628
|
defaultMessage: "We will intentionally ignore <b>{columnCount}</b> columns as they can't be imported"
|
|
1586
1629
|
},
|
|
1587
1630
|
showMore: {
|
|
1588
|
-
id:
|
|
1589
|
-
|
|
1631
|
+
id: 'ImportResourcesModal.showMore',
|
|
1632
|
+
description: 'A button label for expanding the import preview to show more details.',
|
|
1633
|
+
defaultMessage: 'Show more'
|
|
1590
1634
|
},
|
|
1591
1635
|
showLess: {
|
|
1592
|
-
id:
|
|
1593
|
-
|
|
1636
|
+
id: 'ImportResourcesModal.showLess',
|
|
1637
|
+
description: 'A button label for collapsing the import preview to show fewer details.',
|
|
1638
|
+
defaultMessage: 'Show less'
|
|
1594
1639
|
},
|
|
1595
1640
|
continue: {
|
|
1596
|
-
id:
|
|
1597
|
-
|
|
1641
|
+
id: 'ImportResourcesModal.continue',
|
|
1642
|
+
description: 'Confirmation dialog continue button',
|
|
1643
|
+
defaultMessage: 'Continue'
|
|
1598
1644
|
},
|
|
1599
1645
|
confirmationBodyText: {
|
|
1600
|
-
id:
|
|
1601
|
-
|
|
1646
|
+
id: 'ImportResourcesModal.confirmationBodyText',
|
|
1647
|
+
description: 'Confirmation dialog text',
|
|
1648
|
+
defaultMessage: 'You are about to import {count, plural, one {<bold>1</bold> row} other {<bold>{count}</bold> rows}} in the project: <bold>{projectName}</bold>.'
|
|
1602
1649
|
},
|
|
1603
1650
|
confirmationBodyNote: {
|
|
1604
|
-
id:
|
|
1605
|
-
|
|
1651
|
+
id: 'ImportResourcesModal.confirmationBodyNote',
|
|
1652
|
+
description: 'Confirmation dialog text',
|
|
1653
|
+
defaultMessage: 'Please be aware that existing values with the same keys will be overwritten by the data included in the CSV.'
|
|
1606
1654
|
},
|
|
1607
1655
|
confirmationBodyQuestion: {
|
|
1608
|
-
id:
|
|
1609
|
-
|
|
1656
|
+
id: 'ImportResourcesModal.confirmationBodyQuestion',
|
|
1657
|
+
description: 'Confirmation question',
|
|
1658
|
+
defaultMessage: 'Proceed with the import?'
|
|
1610
1659
|
}
|
|
1611
1660
|
});
|
|
1612
1661
|
|
|
@@ -1755,16 +1804,16 @@ function getBold$1(msg) {
|
|
|
1755
1804
|
as: "span",
|
|
1756
1805
|
isBold: true,
|
|
1757
1806
|
children: msg
|
|
1758
|
-
});
|
|
1807
|
+
}, crypto.randomUUID());
|
|
1759
1808
|
}
|
|
1760
1809
|
|
|
1761
1810
|
function ownKeys$4(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1762
1811
|
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$4(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$4(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1763
|
-
const getNewLine = () => jsxRuntime.jsx("br", {});
|
|
1812
|
+
const getNewLine = () => jsxRuntime.jsx("br", {}, "break");
|
|
1764
1813
|
const getImportLogsLink = (msg, projectKey) => jsxRuntime.jsx(uiKit.Link, {
|
|
1765
1814
|
to: `/${projectKey}/operations/import/logs`,
|
|
1766
1815
|
children: msg
|
|
1767
|
-
});
|
|
1816
|
+
}, "link");
|
|
1768
1817
|
var _ref2 = {
|
|
1769
1818
|
name: "1vs9i7r",
|
|
1770
1819
|
styles: "width:360px"
|
|
@@ -1899,7 +1948,7 @@ function getBold(msg) {
|
|
|
1899
1948
|
as: "span",
|
|
1900
1949
|
isBold: true,
|
|
1901
1950
|
children: msg
|
|
1902
|
-
});
|
|
1951
|
+
}, crypto.randomUUID());
|
|
1903
1952
|
}
|
|
1904
1953
|
|
|
1905
1954
|
const UploadResult = () => {
|
|
@@ -2009,16 +2058,19 @@ const CurrentStep = () => {
|
|
|
2009
2058
|
|
|
2010
2059
|
var messages$2 = reactIntl.defineMessages({
|
|
2011
2060
|
products: {
|
|
2012
|
-
id:
|
|
2013
|
-
|
|
2061
|
+
id: 'ImportResourcesModal.radio.products',
|
|
2062
|
+
description: 'Label for the products radio button',
|
|
2063
|
+
defaultMessage: 'Products (including variants, assets, prices and images)'
|
|
2014
2064
|
},
|
|
2015
2065
|
inventories: {
|
|
2016
|
-
id:
|
|
2017
|
-
|
|
2066
|
+
id: 'ImportResourcesModal.radio.inventories',
|
|
2067
|
+
description: 'Label for the inventories radio button',
|
|
2068
|
+
defaultMessage: 'Inventories'
|
|
2018
2069
|
},
|
|
2019
2070
|
categories: {
|
|
2020
|
-
id:
|
|
2021
|
-
|
|
2071
|
+
id: 'ImportResourcesModal.radio.categories',
|
|
2072
|
+
description: 'Label for the categories radio button',
|
|
2073
|
+
defaultMessage: 'Categories'
|
|
2022
2074
|
}
|
|
2023
2075
|
});
|
|
2024
2076
|
|
|
@@ -2059,8 +2111,9 @@ const ResourceTypeSelection = () => {
|
|
|
2059
2111
|
|
|
2060
2112
|
var messages$1 = reactIntl.defineMessages({
|
|
2061
2113
|
fileUploadInstructions: {
|
|
2062
|
-
id:
|
|
2063
|
-
|
|
2114
|
+
id: 'ImportResourcesModal.fileUploadInstructions',
|
|
2115
|
+
description: 'Label for the modal category description',
|
|
2116
|
+
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>.'
|
|
2064
2117
|
}
|
|
2065
2118
|
});
|
|
2066
2119
|
|
|
@@ -2082,13 +2135,13 @@ const Instructions = () => {
|
|
|
2082
2135
|
isExternal: true,
|
|
2083
2136
|
to: templateLink,
|
|
2084
2137
|
children: msg
|
|
2085
|
-
}),
|
|
2138
|
+
}, "csvTemplateLink"),
|
|
2086
2139
|
documentationLink: msg => jsxRuntime.jsx(uiKit.Link, {
|
|
2087
2140
|
tone: "secondary",
|
|
2088
2141
|
isExternal: true,
|
|
2089
2142
|
to: documentationLink,
|
|
2090
2143
|
children: msg
|
|
2091
|
-
})
|
|
2144
|
+
}, "documentationLink")
|
|
2092
2145
|
}
|
|
2093
2146
|
})
|
|
2094
2147
|
});
|
|
@@ -2096,12 +2149,14 @@ const Instructions = () => {
|
|
|
2096
2149
|
|
|
2097
2150
|
var messages = reactIntl.defineMessages({
|
|
2098
2151
|
prerequisitesOfImportingData: {
|
|
2099
|
-
id:
|
|
2100
|
-
|
|
2152
|
+
id: 'ImportResourcesModal.infoBox.prerequisitesOfImportingData',
|
|
2153
|
+
description: 'A message to guide users to check the prerequisites of importing data',
|
|
2154
|
+
defaultMessage: 'Prerequisites of importing data'
|
|
2101
2155
|
},
|
|
2102
2156
|
keysForEveryResource: {
|
|
2103
|
-
id:
|
|
2104
|
-
|
|
2157
|
+
id: 'ImportResourcesModal.infoBox.keysForEveryResource',
|
|
2158
|
+
description: 'A message to guide users to provide keys for every resource they import',
|
|
2159
|
+
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>.'
|
|
2105
2160
|
}
|
|
2106
2161
|
});
|
|
2107
2162
|
|
|
@@ -2128,7 +2183,7 @@ const InfoBox = () => {
|
|
|
2128
2183
|
isExternal: true,
|
|
2129
2184
|
to: CT__API_DOCS_URL,
|
|
2130
2185
|
children: msg
|
|
2131
|
-
})
|
|
2186
|
+
}, "link")
|
|
2132
2187
|
}
|
|
2133
2188
|
})
|
|
2134
2189
|
})]
|