@commercetools-frontend-extensions/import-resources-modal 1.6.1 → 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-81383abf.cjs.prod.js → active-drag-drop-area-373d643b.cjs.prod.js} +1 -1
- package/dist/{active-drag-drop-area-d7f9205f.esm.js → active-drag-drop-area-4dc1357c.esm.js} +1 -1
- package/dist/{active-drag-drop-area-33d25be1.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-2004cb35.cjs.prod.js → enabled-drop-area-86d22a1c.cjs.prod.js} +1 -1
- package/dist/{enabled-drop-area-d535c30f.cjs.dev.js → enabled-drop-area-a65a870a.cjs.dev.js} +1 -1
- package/dist/{enabled-drop-area-6a3efcc3.esm.js → enabled-drop-area-dd70e62e.esm.js} +1 -1
- package/dist/{file-dropped-area-c8d4da40.cjs.dev.js → file-dropped-area-741b7c1f.cjs.dev.js} +1 -1
- package/dist/{file-dropped-area-8ebacffb.esm.js → file-dropped-area-967a82f7.esm.js} +1 -1
- package/dist/{file-dropped-area-f4c105e1.cjs.prod.js → file-dropped-area-a5e8e576.cjs.prod.js} +1 -1
- package/dist/{index-24058519.cjs.prod.js → index-8cca2fab.cjs.prod.js} +123 -174
- package/dist/{index-e6077cb6.cjs.dev.js → index-ca3e541b.cjs.dev.js} +125 -176
- package/dist/{index-a9f2ddb0.esm.js → index-e6460364.esm.js} +125 -176
- package/package.json +11 -11
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-
|
|
3
|
+
var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-8cca2fab.cjs.prod.js');
|
|
4
4
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
5
5
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
6
6
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
package/dist/{active-drag-drop-area-d7f9205f.esm.js → active-drag-drop-area-4dc1357c.esm.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FileDropped, E as EnabledDropArea } from './index-
|
|
1
|
+
import { F as FileDropped, E as EnabledDropArea } from './index-e6460364.esm.js';
|
|
2
2
|
import { jsx } from '@emotion/react/jsx-runtime';
|
|
3
3
|
import '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
4
4
|
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
package/dist/{active-drag-drop-area-33d25be1.cjs.dev.js → active-drag-drop-area-89acd82d.cjs.dev.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-
|
|
3
|
+
var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-ca3e541b.cjs.dev.js');
|
|
4
4
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
5
5
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
6
6
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-
|
|
5
|
+
var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-ca3e541b.cjs.dev.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
8
8
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-
|
|
5
|
+
var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-8cca2fab.cjs.prod.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
8
8
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as default, a as useImportPermission } from './index-
|
|
1
|
+
export { I as default, a as useImportPermission } from './index-e6460364.esm.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
4
4
|
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
package/dist/{enabled-drop-area-2004cb35.cjs.prod.js → enabled-drop-area-86d22a1c.cjs.prod.js}
RENAMED
|
@@ -11,7 +11,7 @@ var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/obje
|
|
|
11
11
|
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
12
12
|
require('react');
|
|
13
13
|
var uiKit = require('@commercetools-frontend/ui-kit');
|
|
14
|
-
var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-
|
|
14
|
+
var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-8cca2fab.cjs.prod.js');
|
|
15
15
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
16
16
|
require('@babel/runtime-corejs3/core-js-stable/instance/every');
|
|
17
17
|
require('react-intl');
|
package/dist/{enabled-drop-area-d535c30f.cjs.dev.js → enabled-drop-area-a65a870a.cjs.dev.js}
RENAMED
|
@@ -11,7 +11,7 @@ var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/obje
|
|
|
11
11
|
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
12
12
|
require('react');
|
|
13
13
|
var uiKit = require('@commercetools-frontend/ui-kit');
|
|
14
|
-
var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-
|
|
14
|
+
var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-ca3e541b.cjs.dev.js');
|
|
15
15
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
16
16
|
require('@babel/runtime-corejs3/core-js-stable/instance/every');
|
|
17
17
|
require('react-intl');
|
|
@@ -9,7 +9,7 @@ import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object
|
|
|
9
9
|
import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
10
10
|
import 'react';
|
|
11
11
|
import { Spacings, Text, Link } from '@commercetools-frontend/ui-kit';
|
|
12
|
-
import { m as messages } from './index-
|
|
12
|
+
import { m as messages } from './index-e6460364.esm.js';
|
|
13
13
|
import { jsxs, jsx } from '@emotion/react/jsx-runtime';
|
|
14
14
|
import '@babel/runtime-corejs3/core-js-stable/instance/every';
|
|
15
15
|
import 'react-intl';
|
package/dist/{file-dropped-area-c8d4da40.cjs.dev.js → file-dropped-area-741b7c1f.cjs.dev.js}
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var reactIntl = require('react-intl');
|
|
4
4
|
var uiKit = require('@commercetools-frontend/ui-kit');
|
|
5
|
-
var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-
|
|
5
|
+
var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-ca3e541b.cjs.dev.js');
|
|
6
6
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
7
7
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
8
8
|
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useIntl } from 'react-intl';
|
|
2
2
|
import { Spacings, PaperclipIcon, Constraints, Text, SecondaryButton } from '@commercetools-frontend/ui-kit';
|
|
3
|
-
import { u as useImportResourcesContext, m as messages } from './index-
|
|
3
|
+
import { u as useImportResourcesContext, m as messages } from './index-e6460364.esm.js';
|
|
4
4
|
import '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
5
5
|
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
6
6
|
import '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
package/dist/{file-dropped-area-f4c105e1.cjs.prod.js → file-dropped-area-a5e8e576.cjs.prod.js}
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var reactIntl = require('react-intl');
|
|
4
4
|
var uiKit = require('@commercetools-frontend/ui-kit');
|
|
5
|
-
var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-
|
|
5
|
+
var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-8cca2fab.cjs.prod.js');
|
|
6
6
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
7
7
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
8
8
|
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
@@ -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-373d643b.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-86d22a1c.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-a5e8e576.cjs.prod.js' /* webpackChunkName: "filed-dropped-area" */); }));
|
|
764
764
|
|
|
765
765
|
function getDropArea(_ref) {
|
|
766
766
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -800,58 +800,48 @@ function getDropAreaState(flags) {
|
|
|
800
800
|
|
|
801
801
|
var messages$7 = reactIntl.defineMessages({
|
|
802
802
|
dragAndDropCSV: {
|
|
803
|
-
id:
|
|
804
|
-
|
|
805
|
-
defaultMessage: 'Drag and drop CSV'
|
|
803
|
+
id: "ImportResourcesModal.dragAndDropCSV",
|
|
804
|
+
defaultMessage: "Drag and drop CSV"
|
|
806
805
|
},
|
|
807
806
|
or: {
|
|
808
|
-
id:
|
|
809
|
-
|
|
810
|
-
defaultMessage: 'or'
|
|
807
|
+
id: "ImportResourcesModal.or",
|
|
808
|
+
defaultMessage: "or"
|
|
811
809
|
},
|
|
812
810
|
browseButton: {
|
|
813
|
-
id:
|
|
814
|
-
defaultMessage:
|
|
811
|
+
id: "ImportResourcesModal.browseFile",
|
|
812
|
+
defaultMessage: "Browse file"
|
|
815
813
|
},
|
|
816
814
|
uploadFile: {
|
|
817
|
-
id:
|
|
818
|
-
|
|
819
|
-
defaultMessage: 'Upload file'
|
|
815
|
+
id: "ImportResourcesModal.uploadFile",
|
|
816
|
+
defaultMessage: "Upload file"
|
|
820
817
|
},
|
|
821
818
|
chooseFile: {
|
|
822
|
-
id:
|
|
823
|
-
|
|
824
|
-
defaultMessage: 'Choose file'
|
|
819
|
+
id: "ImportResourcesModal.chooseFile",
|
|
820
|
+
defaultMessage: "Choose file"
|
|
825
821
|
},
|
|
826
822
|
fileUploadFailed: {
|
|
827
|
-
id:
|
|
828
|
-
|
|
829
|
-
defaultMessage: 'File upload failed'
|
|
823
|
+
id: "ImportResourcesModal.fileUploadFailed",
|
|
824
|
+
defaultMessage: "File upload failed"
|
|
830
825
|
},
|
|
831
826
|
fileFormatNotSupported: {
|
|
832
|
-
id:
|
|
833
|
-
|
|
834
|
-
defaultMessage: 'Invalid file format: The file is not in CSV format and cannot be processed.'
|
|
827
|
+
id: "ImportResourcesModal.fileFormatNotSupported",
|
|
828
|
+
defaultMessage: "Invalid file format: The file is not in CSV format and cannot be processed."
|
|
835
829
|
},
|
|
836
830
|
tooManyFilesError: {
|
|
837
|
-
id:
|
|
838
|
-
|
|
839
|
-
defaultMessage: 'Multiple files detected: You can only drag and drop one file at a time.'
|
|
831
|
+
id: "ImportResourcesModal.tooManyFilesError",
|
|
832
|
+
defaultMessage: "Multiple files detected: You can only drag and drop one file at a time."
|
|
840
833
|
},
|
|
841
834
|
genericError: {
|
|
842
|
-
id:
|
|
843
|
-
|
|
844
|
-
defaultMessage: 'Error occurred: Please try uploading the file again or contact our support team for assistance.'
|
|
835
|
+
id: "ImportResourcesModal.genericError",
|
|
836
|
+
defaultMessage: "Error occurred: Please try uploading the file again or contact our support team for assistance."
|
|
845
837
|
},
|
|
846
838
|
dataType: {
|
|
847
|
-
id:
|
|
848
|
-
|
|
849
|
-
defaultMessage: 'Data type'
|
|
839
|
+
id: "ImportResourcesModal.dataType",
|
|
840
|
+
defaultMessage: "Data type"
|
|
850
841
|
},
|
|
851
842
|
instructions: {
|
|
852
|
-
id:
|
|
853
|
-
|
|
854
|
-
defaultMessage: 'Instructions'
|
|
843
|
+
id: "ImportResourcesModal.instructions",
|
|
844
|
+
defaultMessage: "Instructions"
|
|
855
845
|
}
|
|
856
846
|
});
|
|
857
847
|
|
|
@@ -865,61 +855,52 @@ function useImportResourcesContext() {
|
|
|
865
855
|
|
|
866
856
|
var messages$6 = reactIntl.defineMessages({
|
|
867
857
|
fileSizeExceededTitle: {
|
|
868
|
-
id:
|
|
869
|
-
defaultMessage:
|
|
858
|
+
id: "ImportResourcesModal.sizeExceededTitle",
|
|
859
|
+
defaultMessage: "File size exceeded"
|
|
870
860
|
},
|
|
871
861
|
fileSizeExceededDescription: {
|
|
872
|
-
id:
|
|
873
|
-
|
|
874
|
-
defaultMessage: 'The file exceeds the maximum allowed size of {fileSizeLimit} MB'
|
|
862
|
+
id: "ImportResourcesModal.sizeExceededDescription",
|
|
863
|
+
defaultMessage: "The file exceeds the maximum allowed size of {fileSizeLimit} MB"
|
|
875
864
|
},
|
|
876
865
|
rowLimitExceededTitle: {
|
|
877
|
-
id:
|
|
878
|
-
defaultMessage:
|
|
866
|
+
id: "ImportResourcesModal.rowLimitExceededTitle",
|
|
867
|
+
defaultMessage: "Row limit exceeded"
|
|
879
868
|
},
|
|
880
869
|
rowLimitExceededDescription: {
|
|
881
|
-
id:
|
|
882
|
-
|
|
883
|
-
defaultMessage: 'The file contains more than the allowable maximum of {rowLimit} rows'
|
|
870
|
+
id: "ImportResourcesModal.rowLimitExceededDescription",
|
|
871
|
+
defaultMessage: "The file contains more than the allowable maximum of {rowLimit} rows"
|
|
884
872
|
},
|
|
885
873
|
dropAreaWrongDelimiterTitle: {
|
|
886
|
-
id:
|
|
887
|
-
defaultMessage:
|
|
874
|
+
id: "ImportResourcesModal.wrongDelimiterTitle",
|
|
875
|
+
defaultMessage: "Wrong delimiter"
|
|
888
876
|
},
|
|
889
877
|
dropAreaWrongDelimiterDescription: {
|
|
890
|
-
id:
|
|
891
|
-
|
|
892
|
-
defaultMessage: 'The file is using an incorrect delimiter. Please use comma (,) instead.'
|
|
878
|
+
id: "ImportResourcesModal.wrongDelimiterDescription",
|
|
879
|
+
defaultMessage: "The file is using an incorrect delimiter. Please use comma (,) instead."
|
|
893
880
|
},
|
|
894
881
|
dropAreaNotEnoughRowsTitle: {
|
|
895
|
-
id:
|
|
896
|
-
|
|
897
|
-
defaultMessage: 'Invalid CSV file'
|
|
882
|
+
id: "ImportResourcesModal.dropAreaNotEnoughRowsTitle",
|
|
883
|
+
defaultMessage: "Invalid CSV file"
|
|
898
884
|
},
|
|
899
885
|
dropAreaNotEnoughRowsDescription: {
|
|
900
|
-
id:
|
|
901
|
-
|
|
902
|
-
defaultMessage: 'Make sure the file contains a header and at least one row of data'
|
|
886
|
+
id: "ImportResourcesModal.dropAreaNotEnoughRowsDescription",
|
|
887
|
+
defaultMessage: "Make sure the file contains a header and at least one row of data"
|
|
903
888
|
},
|
|
904
889
|
unexpectedError: {
|
|
905
|
-
id:
|
|
906
|
-
|
|
907
|
-
defaultMessage: 'An unexpected error occurred during the file upload. Please try again, or contact support if this error occurs again.'
|
|
890
|
+
id: "ImportResourcesModal.unexpectedError",
|
|
891
|
+
defaultMessage: "An unexpected error occurred during the file upload. Please try again, or contact support if this error occurs again."
|
|
908
892
|
},
|
|
909
893
|
missingRequiredField: {
|
|
910
|
-
id:
|
|
911
|
-
|
|
912
|
-
defaultMessage: 'Missing required field'
|
|
894
|
+
id: "ImportResourcesModal.missingRequiredField",
|
|
895
|
+
defaultMessage: "Missing required field"
|
|
913
896
|
},
|
|
914
897
|
missingKeyError: {
|
|
915
|
-
id:
|
|
916
|
-
description: 'Error message displayed when the uploaded file is missing the key field',
|
|
898
|
+
id: "ImportResourcesModal.missingKeyError",
|
|
917
899
|
defaultMessage: "The 'key' field is missing or incomplete in some rows. Please ensure every row has a 'key' value."
|
|
918
900
|
},
|
|
919
901
|
missingRequiredKeys: {
|
|
920
|
-
id:
|
|
921
|
-
|
|
922
|
-
defaultMessage: 'Make sure the file contains required keys for the elements including {fieldNames}'
|
|
902
|
+
id: "ImportResourcesModal.missingRequiredKeys",
|
|
903
|
+
defaultMessage: "Make sure the file contains required keys for the elements including {fieldNames}"
|
|
923
904
|
}
|
|
924
905
|
});
|
|
925
906
|
|
|
@@ -1180,9 +1161,8 @@ const FileDropArea = () => {
|
|
|
1180
1161
|
|
|
1181
1162
|
var messages$5 = reactIntl.defineMessages({
|
|
1182
1163
|
publishProducts: {
|
|
1183
|
-
id:
|
|
1184
|
-
|
|
1185
|
-
defaultMessage: 'Publish all products in the file'
|
|
1164
|
+
id: "ImportResourcesModal.settings.publishProducts",
|
|
1165
|
+
defaultMessage: "Publish all products in the file"
|
|
1186
1166
|
}
|
|
1187
1167
|
});
|
|
1188
1168
|
|
|
@@ -1216,54 +1196,44 @@ const UploadSettings = () => {
|
|
|
1216
1196
|
|
|
1217
1197
|
var sharedMessages = reactIntl.defineMessages({
|
|
1218
1198
|
[`modalTitle.${IMPORTABLE_RESOURCES.CATEGORY}`]: {
|
|
1219
|
-
id:
|
|
1220
|
-
|
|
1221
|
-
defaultMessage: 'Import categories by CSV'
|
|
1199
|
+
id: "ImportResourcesModal.modalTitle.category",
|
|
1200
|
+
defaultMessage: "Import categories by CSV"
|
|
1222
1201
|
},
|
|
1223
1202
|
[`modalTitle.${IMPORTABLE_RESOURCES.PRODUCT}`]: {
|
|
1224
|
-
id:
|
|
1225
|
-
|
|
1226
|
-
defaultMessage: 'Import products by CSV'
|
|
1203
|
+
id: "ImportResourcesModal.modalTitle.product",
|
|
1204
|
+
defaultMessage: "Import products by CSV"
|
|
1227
1205
|
},
|
|
1228
1206
|
[`modalTitle.${IMPORTABLE_RESOURCES.INVENTORY}`]: {
|
|
1229
|
-
id:
|
|
1230
|
-
|
|
1231
|
-
defaultMessage: 'Import inventories by CSV'
|
|
1207
|
+
id: "ImportResourcesModal.modalTitle.inventoryEntry",
|
|
1208
|
+
defaultMessage: "Import inventories by CSV"
|
|
1232
1209
|
},
|
|
1233
1210
|
[`modalTitle.${IMPORTABLE_RESOURCES.DISCOUNT_CODE}`]: {
|
|
1234
|
-
id:
|
|
1235
|
-
|
|
1236
|
-
defaultMessage: 'Import discount codes by CSV'
|
|
1211
|
+
id: "ImportResourcesModal.modalTitle.discountCode",
|
|
1212
|
+
defaultMessage: "Import discount codes by CSV"
|
|
1237
1213
|
},
|
|
1238
1214
|
[`modalTitle.${IMPORTABLE_RESOURCES.CUSTOMER}`]: {
|
|
1239
|
-
id:
|
|
1240
|
-
|
|
1241
|
-
defaultMessage: 'Import customers by CSV'
|
|
1215
|
+
id: "ImportResourcesModal.modalTitle.customer",
|
|
1216
|
+
defaultMessage: "Import customers by CSV"
|
|
1242
1217
|
},
|
|
1243
1218
|
[`modalTitle.${IMPORTABLE_RESOURCES.ORDER}`]: {
|
|
1244
|
-
id:
|
|
1245
|
-
|
|
1246
|
-
defaultMessage: 'Import orders by CSV'
|
|
1219
|
+
id: "ImportResourcesModal.modalTitle.order",
|
|
1220
|
+
defaultMessage: "Import orders by CSV"
|
|
1247
1221
|
},
|
|
1248
1222
|
[`modalTitle.${IMPORTABLE_RESOURCES.PRODUCT_TYPE}`]: {
|
|
1249
|
-
id:
|
|
1250
|
-
|
|
1251
|
-
defaultMessage: 'Import product types by CSV'
|
|
1223
|
+
id: "ImportResourcesModal.modalTitle.productType",
|
|
1224
|
+
defaultMessage: "Import product types by CSV"
|
|
1252
1225
|
},
|
|
1253
1226
|
uploadButton: {
|
|
1254
|
-
id:
|
|
1255
|
-
|
|
1256
|
-
defaultMessage: 'Upload and preview'
|
|
1227
|
+
id: "ImportResourcesModal.uploadButton",
|
|
1228
|
+
defaultMessage: "Upload and preview"
|
|
1257
1229
|
},
|
|
1258
1230
|
cancel: {
|
|
1259
|
-
id:
|
|
1260
|
-
|
|
1261
|
-
defaultMessage: 'Cancel'
|
|
1231
|
+
id: "ImportResourcesModal.cancel",
|
|
1232
|
+
defaultMessage: "Cancel"
|
|
1262
1233
|
},
|
|
1263
1234
|
close: {
|
|
1264
|
-
id:
|
|
1265
|
-
|
|
1266
|
-
defaultMessage: 'Close'
|
|
1235
|
+
id: "ImportResourcesModal.close",
|
|
1236
|
+
defaultMessage: "Close"
|
|
1267
1237
|
}
|
|
1268
1238
|
});
|
|
1269
1239
|
|
|
@@ -1289,6 +1259,9 @@ const Upload = () => {
|
|
|
1289
1259
|
onClose: () => onClose({
|
|
1290
1260
|
shouldDeleteImportContainer: true
|
|
1291
1261
|
}),
|
|
1262
|
+
dataAttributesPrimaryButton: {
|
|
1263
|
+
'data-tracking-target': `${state.resourceType}_import-upload_and_preview_button`
|
|
1264
|
+
},
|
|
1292
1265
|
children: jsxRuntime.jsx(fullstory.Masking.Unmask, {
|
|
1293
1266
|
children: jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
1294
1267
|
scale: "m",
|
|
@@ -1322,34 +1295,28 @@ const Upload = () => {
|
|
|
1322
1295
|
|
|
1323
1296
|
var messages$4 = reactIntl.defineMessages({
|
|
1324
1297
|
row: {
|
|
1325
|
-
id:
|
|
1326
|
-
|
|
1327
|
-
defaultMessage: 'Row'
|
|
1298
|
+
id: "ImportResourcesModal.row",
|
|
1299
|
+
defaultMessage: "Row"
|
|
1328
1300
|
},
|
|
1329
1301
|
errorType: {
|
|
1330
|
-
id:
|
|
1331
|
-
|
|
1332
|
-
defaultMessage: 'Error type'
|
|
1302
|
+
id: "ImportResourcesModal.errorType",
|
|
1303
|
+
defaultMessage: "Error type"
|
|
1333
1304
|
},
|
|
1334
1305
|
details: {
|
|
1335
|
-
id:
|
|
1336
|
-
|
|
1337
|
-
defaultMessage: 'Details'
|
|
1306
|
+
id: "ImportResourcesModal.details",
|
|
1307
|
+
defaultMessage: "Details"
|
|
1338
1308
|
},
|
|
1339
1309
|
uploadErrorDescription: {
|
|
1340
|
-
id:
|
|
1341
|
-
|
|
1342
|
-
defaultMessage: 'There {errorsCount, plural, one {is <b>{errorsCount}</b> error} other {are <b>{errorsCount}</b> errors}} detected while uploading the file <b>{fileName}</b>.'
|
|
1310
|
+
id: "ImportResourcesModal.uploadErrorDescription",
|
|
1311
|
+
defaultMessage: "There {errorsCount, plural, one {is <b>{errorsCount}</b> error} other {are <b>{errorsCount}</b> errors}} detected while uploading the file <b>{fileName}</b>."
|
|
1343
1312
|
},
|
|
1344
1313
|
supportedValuesDocumentation: {
|
|
1345
|
-
id:
|
|
1346
|
-
|
|
1347
|
-
defaultMessage: '<documentationLink>View the documentation</documentationLink> for supported values.'
|
|
1314
|
+
id: "ImportResourcesModal.supportedValuesDocumentation",
|
|
1315
|
+
defaultMessage: "<documentationLink>View the documentation</documentationLink> for supported values."
|
|
1348
1316
|
},
|
|
1349
1317
|
uploadNewFile: {
|
|
1350
|
-
id:
|
|
1351
|
-
|
|
1352
|
-
defaultMessage: 'Upload new file'
|
|
1318
|
+
id: "ImportResourcesModal.uploadNewFile",
|
|
1319
|
+
defaultMessage: "Upload new file"
|
|
1353
1320
|
}
|
|
1354
1321
|
});
|
|
1355
1322
|
|
|
@@ -1590,69 +1557,56 @@ function getBold$2(msg) {
|
|
|
1590
1557
|
|
|
1591
1558
|
var messages$3 = reactIntl.defineMessages({
|
|
1592
1559
|
startImportButton: {
|
|
1593
|
-
id:
|
|
1594
|
-
|
|
1595
|
-
defaultMessage: 'Start import'
|
|
1560
|
+
id: "ImportResourcesModal.startImportButton",
|
|
1561
|
+
defaultMessage: "Start import"
|
|
1596
1562
|
},
|
|
1597
1563
|
importNotificationSuccessMessage: {
|
|
1598
|
-
id:
|
|
1599
|
-
|
|
1600
|
-
defaultMessage: '<b>Your import has started.</b><newline></newline> <logsLink>Go to Import logs</logsLink> to view the progress.'
|
|
1564
|
+
id: "ImportResourcesModal.successMessage",
|
|
1565
|
+
defaultMessage: "<b>Your import has started.</b><newline></newline> <logsLink>Go to Import logs</logsLink> to view the progress."
|
|
1601
1566
|
},
|
|
1602
1567
|
importNotificationPrepareMessage: {
|
|
1603
|
-
id:
|
|
1604
|
-
|
|
1605
|
-
defaultMessage: '<b>Prepare import</b><newline></newline>Once preparation is complete, you can track the import progress <logsLink>in the Import logs</logsLink>.'
|
|
1568
|
+
id: "ImportResourcesModal.prepareMessage",
|
|
1569
|
+
defaultMessage: "<b>Prepare import</b><newline></newline>Once preparation is complete, you can track the import progress <logsLink>in the Import logs</logsLink>."
|
|
1606
1570
|
},
|
|
1607
1571
|
previewOfYourImport: {
|
|
1608
|
-
id:
|
|
1609
|
-
description: 'Label for modal path',
|
|
1572
|
+
id: "ImportResourcesModal.previewOfYourImport",
|
|
1610
1573
|
defaultMessage: "Here's a preview of your import"
|
|
1611
1574
|
},
|
|
1612
1575
|
rowsToBeImported: {
|
|
1613
|
-
id:
|
|
1614
|
-
|
|
1615
|
-
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 {}}'
|
|
1576
|
+
id: "ImportResourcesModal.rowsToBeImported",
|
|
1577
|
+
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 {}}"
|
|
1616
1578
|
},
|
|
1617
1579
|
columnsToBeImported: {
|
|
1618
|
-
id:
|
|
1619
|
-
|
|
1620
|
-
defaultMessage: '<b>{columnCount}</b> columns to be imported'
|
|
1580
|
+
id: "ImportResourcesModal.columnsToBeImported",
|
|
1581
|
+
defaultMessage: "<b>{columnCount}</b> columns to be imported"
|
|
1621
1582
|
},
|
|
1622
1583
|
columnsToBeIgnored: {
|
|
1623
|
-
id:
|
|
1624
|
-
description: "This message indicates the number of columns that will be deliberately skipped during the import because they can't be imported",
|
|
1584
|
+
id: "ImportResourcesModal.columnsToBeIgnored",
|
|
1625
1585
|
defaultMessage: "We will intentionally ignore <b>{columnCount}</b> columns as they can't be imported"
|
|
1626
1586
|
},
|
|
1627
1587
|
showMore: {
|
|
1628
|
-
id:
|
|
1629
|
-
|
|
1630
|
-
defaultMessage: 'Show more'
|
|
1588
|
+
id: "ImportResourcesModal.showMore",
|
|
1589
|
+
defaultMessage: "Show more"
|
|
1631
1590
|
},
|
|
1632
1591
|
showLess: {
|
|
1633
|
-
id:
|
|
1634
|
-
|
|
1635
|
-
defaultMessage: 'Show less'
|
|
1592
|
+
id: "ImportResourcesModal.showLess",
|
|
1593
|
+
defaultMessage: "Show less"
|
|
1636
1594
|
},
|
|
1637
1595
|
continue: {
|
|
1638
|
-
id:
|
|
1639
|
-
|
|
1640
|
-
defaultMessage: 'Continue'
|
|
1596
|
+
id: "ImportResourcesModal.continue",
|
|
1597
|
+
defaultMessage: "Continue"
|
|
1641
1598
|
},
|
|
1642
1599
|
confirmationBodyText: {
|
|
1643
|
-
id:
|
|
1644
|
-
|
|
1645
|
-
defaultMessage: 'You are about to import {count, plural, one {<bold>1</bold> row} other {<bold>{count}</bold> rows}} in the project: <bold>{projectName}</bold>.'
|
|
1600
|
+
id: "ImportResourcesModal.confirmationBodyText",
|
|
1601
|
+
defaultMessage: "You are about to import {count, plural, one {<bold>1</bold> row} other {<bold>{count}</bold> rows}} in the project: <bold>{projectName}</bold>."
|
|
1646
1602
|
},
|
|
1647
1603
|
confirmationBodyNote: {
|
|
1648
|
-
id:
|
|
1649
|
-
|
|
1650
|
-
defaultMessage: 'Please be aware that existing values with the same keys will be overwritten by the data included in the CSV.'
|
|
1604
|
+
id: "ImportResourcesModal.confirmationBodyNote",
|
|
1605
|
+
defaultMessage: "Please be aware that existing values with the same keys will be overwritten by the data included in the CSV."
|
|
1651
1606
|
},
|
|
1652
1607
|
confirmationBodyQuestion: {
|
|
1653
|
-
id:
|
|
1654
|
-
|
|
1655
|
-
defaultMessage: 'Proceed with the import?'
|
|
1608
|
+
id: "ImportResourcesModal.confirmationBodyQuestion",
|
|
1609
|
+
defaultMessage: "Proceed with the import?"
|
|
1656
1610
|
}
|
|
1657
1611
|
});
|
|
1658
1612
|
|
|
@@ -1871,7 +1825,8 @@ const ImportConfirmationModal = () => {
|
|
|
1871
1825
|
'data-test-id': 'confirmation-dialog-confirm'
|
|
1872
1826
|
},
|
|
1873
1827
|
dataAttributesSecondaryButton: {
|
|
1874
|
-
'data-test-id': 'confirmation-dialog-cancel'
|
|
1828
|
+
'data-test-id': 'confirmation-dialog-cancel',
|
|
1829
|
+
'data-tracking-target': `${state.resourceType}_import-start_import_button`
|
|
1875
1830
|
},
|
|
1876
1831
|
onConfirm: async () => {
|
|
1877
1832
|
try {
|
|
@@ -2054,19 +2009,16 @@ const CurrentStep = () => {
|
|
|
2054
2009
|
|
|
2055
2010
|
var messages$2 = reactIntl.defineMessages({
|
|
2056
2011
|
products: {
|
|
2057
|
-
id:
|
|
2058
|
-
|
|
2059
|
-
defaultMessage: 'Products (including variants, assets, prices and images)'
|
|
2012
|
+
id: "ImportResourcesModal.radio.products",
|
|
2013
|
+
defaultMessage: "Products (including variants, assets, prices and images)"
|
|
2060
2014
|
},
|
|
2061
2015
|
inventories: {
|
|
2062
|
-
id:
|
|
2063
|
-
|
|
2064
|
-
defaultMessage: 'Inventories'
|
|
2016
|
+
id: "ImportResourcesModal.radio.inventories",
|
|
2017
|
+
defaultMessage: "Inventories"
|
|
2065
2018
|
},
|
|
2066
2019
|
categories: {
|
|
2067
|
-
id:
|
|
2068
|
-
|
|
2069
|
-
defaultMessage: 'Categories'
|
|
2020
|
+
id: "ImportResourcesModal.radio.categories",
|
|
2021
|
+
defaultMessage: "Categories"
|
|
2070
2022
|
}
|
|
2071
2023
|
});
|
|
2072
2024
|
|
|
@@ -2107,9 +2059,8 @@ const ResourceTypeSelection = () => {
|
|
|
2107
2059
|
|
|
2108
2060
|
var messages$1 = reactIntl.defineMessages({
|
|
2109
2061
|
fileUploadInstructions: {
|
|
2110
|
-
id:
|
|
2111
|
-
|
|
2112
|
-
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>.'
|
|
2062
|
+
id: "ImportResourcesModal.fileUploadInstructions",
|
|
2063
|
+
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>."
|
|
2113
2064
|
}
|
|
2114
2065
|
});
|
|
2115
2066
|
|
|
@@ -2145,14 +2096,12 @@ const Instructions = () => {
|
|
|
2145
2096
|
|
|
2146
2097
|
var messages = reactIntl.defineMessages({
|
|
2147
2098
|
prerequisitesOfImportingData: {
|
|
2148
|
-
id:
|
|
2149
|
-
|
|
2150
|
-
defaultMessage: 'Prerequisites of importing data'
|
|
2099
|
+
id: "ImportResourcesModal.infoBox.prerequisitesOfImportingData",
|
|
2100
|
+
defaultMessage: "Prerequisites of importing data"
|
|
2151
2101
|
},
|
|
2152
2102
|
keysForEveryResource: {
|
|
2153
|
-
id:
|
|
2154
|
-
|
|
2155
|
-
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>.'
|
|
2103
|
+
id: "ImportResourcesModal.infoBox.keysForEveryResource",
|
|
2104
|
+
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>."
|
|
2156
2105
|
}
|
|
2157
2106
|
});
|
|
2158
2107
|
|