@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.
- 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
|
@@ -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-
|
|
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-
|
|
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-
|
|
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:
|
|
778
|
-
|
|
779
|
-
defaultMessage: 'Drag and drop CSV'
|
|
777
|
+
id: "ImportResourcesModal.dragAndDropCSV",
|
|
778
|
+
defaultMessage: "Drag and drop CSV"
|
|
780
779
|
},
|
|
781
780
|
or: {
|
|
782
|
-
id:
|
|
783
|
-
|
|
784
|
-
defaultMessage: 'or'
|
|
781
|
+
id: "ImportResourcesModal.or",
|
|
782
|
+
defaultMessage: "or"
|
|
785
783
|
},
|
|
786
784
|
browseButton: {
|
|
787
|
-
id:
|
|
788
|
-
defaultMessage:
|
|
785
|
+
id: "ImportResourcesModal.browseFile",
|
|
786
|
+
defaultMessage: "Browse file"
|
|
789
787
|
},
|
|
790
788
|
uploadFile: {
|
|
791
|
-
id:
|
|
792
|
-
|
|
793
|
-
defaultMessage: 'Upload file'
|
|
789
|
+
id: "ImportResourcesModal.uploadFile",
|
|
790
|
+
defaultMessage: "Upload file"
|
|
794
791
|
},
|
|
795
792
|
chooseFile: {
|
|
796
|
-
id:
|
|
797
|
-
|
|
798
|
-
defaultMessage: 'Choose file'
|
|
793
|
+
id: "ImportResourcesModal.chooseFile",
|
|
794
|
+
defaultMessage: "Choose file"
|
|
799
795
|
},
|
|
800
796
|
fileUploadFailed: {
|
|
801
|
-
id:
|
|
802
|
-
|
|
803
|
-
defaultMessage: 'File upload failed'
|
|
797
|
+
id: "ImportResourcesModal.fileUploadFailed",
|
|
798
|
+
defaultMessage: "File upload failed"
|
|
804
799
|
},
|
|
805
800
|
fileFormatNotSupported: {
|
|
806
|
-
id:
|
|
807
|
-
|
|
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:
|
|
812
|
-
|
|
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:
|
|
817
|
-
|
|
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:
|
|
822
|
-
|
|
823
|
-
defaultMessage: 'Data type'
|
|
813
|
+
id: "ImportResourcesModal.dataType",
|
|
814
|
+
defaultMessage: "Data type"
|
|
824
815
|
},
|
|
825
816
|
instructions: {
|
|
826
|
-
id:
|
|
827
|
-
|
|
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:
|
|
843
|
-
defaultMessage:
|
|
832
|
+
id: "ImportResourcesModal.sizeExceededTitle",
|
|
833
|
+
defaultMessage: "File size exceeded"
|
|
844
834
|
},
|
|
845
835
|
fileSizeExceededDescription: {
|
|
846
|
-
id:
|
|
847
|
-
|
|
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:
|
|
852
|
-
defaultMessage:
|
|
840
|
+
id: "ImportResourcesModal.rowLimitExceededTitle",
|
|
841
|
+
defaultMessage: "Row limit exceeded"
|
|
853
842
|
},
|
|
854
843
|
rowLimitExceededDescription: {
|
|
855
|
-
id:
|
|
856
|
-
|
|
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:
|
|
861
|
-
defaultMessage:
|
|
848
|
+
id: "ImportResourcesModal.wrongDelimiterTitle",
|
|
849
|
+
defaultMessage: "Wrong delimiter"
|
|
862
850
|
},
|
|
863
851
|
dropAreaWrongDelimiterDescription: {
|
|
864
|
-
id:
|
|
865
|
-
|
|
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:
|
|
870
|
-
|
|
871
|
-
defaultMessage: 'Invalid CSV file'
|
|
856
|
+
id: "ImportResourcesModal.dropAreaNotEnoughRowsTitle",
|
|
857
|
+
defaultMessage: "Invalid CSV file"
|
|
872
858
|
},
|
|
873
859
|
dropAreaNotEnoughRowsDescription: {
|
|
874
|
-
id:
|
|
875
|
-
|
|
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:
|
|
880
|
-
|
|
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:
|
|
885
|
-
|
|
886
|
-
defaultMessage: 'Missing required field'
|
|
868
|
+
id: "ImportResourcesModal.missingRequiredField",
|
|
869
|
+
defaultMessage: "Missing required field"
|
|
887
870
|
},
|
|
888
871
|
missingKeyError: {
|
|
889
|
-
id:
|
|
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:
|
|
895
|
-
|
|
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:
|
|
1158
|
-
|
|
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:
|
|
1194
|
-
|
|
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:
|
|
1199
|
-
|
|
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:
|
|
1204
|
-
|
|
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:
|
|
1209
|
-
|
|
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:
|
|
1214
|
-
|
|
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:
|
|
1219
|
-
|
|
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:
|
|
1224
|
-
|
|
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:
|
|
1229
|
-
|
|
1230
|
-
defaultMessage: 'Upload and preview'
|
|
1201
|
+
id: "ImportResourcesModal.uploadButton",
|
|
1202
|
+
defaultMessage: "Upload and preview"
|
|
1231
1203
|
},
|
|
1232
1204
|
cancel: {
|
|
1233
|
-
id:
|
|
1234
|
-
|
|
1235
|
-
defaultMessage: 'Cancel'
|
|
1205
|
+
id: "ImportResourcesModal.cancel",
|
|
1206
|
+
defaultMessage: "Cancel"
|
|
1236
1207
|
},
|
|
1237
1208
|
close: {
|
|
1238
|
-
id:
|
|
1239
|
-
|
|
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:
|
|
1303
|
-
|
|
1304
|
-
defaultMessage: 'Row'
|
|
1272
|
+
id: "ImportResourcesModal.row",
|
|
1273
|
+
defaultMessage: "Row"
|
|
1305
1274
|
},
|
|
1306
1275
|
errorType: {
|
|
1307
|
-
id:
|
|
1308
|
-
|
|
1309
|
-
defaultMessage: 'Error type'
|
|
1276
|
+
id: "ImportResourcesModal.errorType",
|
|
1277
|
+
defaultMessage: "Error type"
|
|
1310
1278
|
},
|
|
1311
1279
|
details: {
|
|
1312
|
-
id:
|
|
1313
|
-
|
|
1314
|
-
defaultMessage: 'Details'
|
|
1280
|
+
id: "ImportResourcesModal.details",
|
|
1281
|
+
defaultMessage: "Details"
|
|
1315
1282
|
},
|
|
1316
1283
|
uploadErrorDescription: {
|
|
1317
|
-
id:
|
|
1318
|
-
|
|
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:
|
|
1323
|
-
|
|
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:
|
|
1328
|
-
|
|
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:
|
|
1571
|
-
|
|
1572
|
-
defaultMessage: 'Start import'
|
|
1534
|
+
id: "ImportResourcesModal.startImportButton",
|
|
1535
|
+
defaultMessage: "Start import"
|
|
1573
1536
|
},
|
|
1574
1537
|
importNotificationSuccessMessage: {
|
|
1575
|
-
id:
|
|
1576
|
-
|
|
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:
|
|
1581
|
-
|
|
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:
|
|
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:
|
|
1591
|
-
|
|
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:
|
|
1596
|
-
|
|
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:
|
|
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:
|
|
1606
|
-
|
|
1607
|
-
defaultMessage: 'Show more'
|
|
1562
|
+
id: "ImportResourcesModal.showMore",
|
|
1563
|
+
defaultMessage: "Show more"
|
|
1608
1564
|
},
|
|
1609
1565
|
showLess: {
|
|
1610
|
-
id:
|
|
1611
|
-
|
|
1612
|
-
defaultMessage: 'Show less'
|
|
1566
|
+
id: "ImportResourcesModal.showLess",
|
|
1567
|
+
defaultMessage: "Show less"
|
|
1613
1568
|
},
|
|
1614
1569
|
continue: {
|
|
1615
|
-
id:
|
|
1616
|
-
|
|
1617
|
-
defaultMessage: 'Continue'
|
|
1570
|
+
id: "ImportResourcesModal.continue",
|
|
1571
|
+
defaultMessage: "Continue"
|
|
1618
1572
|
},
|
|
1619
1573
|
confirmationBodyText: {
|
|
1620
|
-
id:
|
|
1621
|
-
|
|
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:
|
|
1626
|
-
|
|
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:
|
|
1631
|
-
|
|
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:
|
|
2060
|
-
|
|
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:
|
|
2065
|
-
|
|
2066
|
-
defaultMessage: 'Inventories'
|
|
2014
|
+
id: "ImportResourcesModal.radio.inventories",
|
|
2015
|
+
defaultMessage: "Inventories"
|
|
2067
2016
|
},
|
|
2068
2017
|
categories: {
|
|
2069
|
-
id:
|
|
2070
|
-
|
|
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:
|
|
2113
|
-
|
|
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:
|
|
2151
|
-
|
|
2152
|
-
defaultMessage: 'Prerequisites of importing data'
|
|
2097
|
+
id: "ImportResourcesModal.infoBox.prerequisitesOfImportingData",
|
|
2098
|
+
defaultMessage: "Prerequisites of importing data"
|
|
2153
2099
|
},
|
|
2154
2100
|
keysForEveryResource: {
|
|
2155
|
-
id:
|
|
2156
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
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",
|