@commercetools-frontend-extensions/import-resources-modal 1.6.4 → 1.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{active-drag-drop-area-373d643b.cjs.prod.js → active-drag-drop-area-28fc79a9.cjs.prod.js} +1 -1
- package/dist/{active-drag-drop-area-4dc1357c.esm.js → active-drag-drop-area-e6a52b5c.esm.js} +1 -1
- package/dist/{active-drag-drop-area-89acd82d.cjs.dev.js → active-drag-drop-area-ee125188.cjs.dev.js} +1 -1
- package/dist/commercetools-frontend-extensions-import-resources-modal.cjs.dev.js +1 -1
- package/dist/commercetools-frontend-extensions-import-resources-modal.cjs.prod.js +1 -1
- package/dist/commercetools-frontend-extensions-import-resources-modal.esm.js +1 -1
- package/dist/{enabled-drop-area-a65a870a.cjs.dev.js → enabled-drop-area-2bcad823.cjs.dev.js} +1 -1
- package/dist/{enabled-drop-area-86d22a1c.cjs.prod.js → enabled-drop-area-abfd8c83.cjs.prod.js} +1 -1
- package/dist/{enabled-drop-area-dd70e62e.esm.js → enabled-drop-area-b4df5667.esm.js} +1 -1
- package/dist/{file-dropped-area-741b7c1f.cjs.dev.js → file-dropped-area-445f81cc.cjs.dev.js} +1 -1
- package/dist/{file-dropped-area-967a82f7.esm.js → file-dropped-area-a49369d9.esm.js} +1 -1
- package/dist/{file-dropped-area-a5e8e576.cjs.prod.js → file-dropped-area-a734e8ef.cjs.prod.js} +1 -1
- package/dist/{index-e6460364.esm.js → index-10b21cef.esm.js} +173 -118
- package/dist/{index-8cca2fab.cjs.prod.js → index-38dc483c.cjs.prod.js} +173 -118
- package/dist/{index-ca3e541b.cjs.dev.js → index-71f84008.cjs.dev.js} +173 -118
- package/package.json +20 -20
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-
|
|
3
|
+
var dist_commercetoolsFrontendExtensionsImportResourcesModal = require('./index-38dc483c.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-4dc1357c.esm.js → active-drag-drop-area-e6a52b5c.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-10b21cef.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-89acd82d.cjs.dev.js → active-drag-drop-area-ee125188.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-71f84008.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-71f84008.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-38dc483c.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-10b21cef.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-a65a870a.cjs.dev.js → enabled-drop-area-2bcad823.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-71f84008.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');
|
package/dist/{enabled-drop-area-86d22a1c.cjs.prod.js → enabled-drop-area-abfd8c83.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-38dc483c.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');
|
|
@@ -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-10b21cef.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-741b7c1f.cjs.dev.js → file-dropped-area-445f81cc.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-71f84008.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-10b21cef.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-a5e8e576.cjs.prod.js → file-dropped-area-a734e8ef.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-38dc483c.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');
|
|
@@ -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-e6a52b5c.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-b4df5667.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-a49369d9.esm.js' /* webpackChunkName: "filed-dropped-area" */));
|
|
738
738
|
|
|
739
739
|
function getDropArea(_ref) {
|
|
740
740
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -774,48 +774,58 @@ function getDropAreaState(flags) {
|
|
|
774
774
|
|
|
775
775
|
var messages$7 = defineMessages({
|
|
776
776
|
dragAndDropCSV: {
|
|
777
|
-
id:
|
|
778
|
-
|
|
777
|
+
id: 'ImportResourcesModal.dragAndDropCSV',
|
|
778
|
+
description: 'The message telling the user to drag and drop CSV file in the file drop area',
|
|
779
|
+
defaultMessage: 'Drag and drop CSV'
|
|
779
780
|
},
|
|
780
781
|
or: {
|
|
781
|
-
id:
|
|
782
|
-
|
|
782
|
+
id: 'ImportResourcesModal.or',
|
|
783
|
+
description: 'The word "or" in the drag and drop message',
|
|
784
|
+
defaultMessage: 'or'
|
|
783
785
|
},
|
|
784
786
|
browseButton: {
|
|
785
|
-
id:
|
|
786
|
-
defaultMessage:
|
|
787
|
+
id: 'ImportResourcesModal.browseFile',
|
|
788
|
+
defaultMessage: 'Browse file'
|
|
787
789
|
},
|
|
788
790
|
uploadFile: {
|
|
789
|
-
id:
|
|
790
|
-
|
|
791
|
+
id: 'ImportResourcesModal.uploadFile',
|
|
792
|
+
description: 'Label for a button on the file upload page, shown on active drop area state',
|
|
793
|
+
defaultMessage: 'Upload file'
|
|
791
794
|
},
|
|
792
795
|
chooseFile: {
|
|
793
|
-
id:
|
|
794
|
-
|
|
796
|
+
id: 'ImportResourcesModal.chooseFile',
|
|
797
|
+
description: 'Label for a button on the file upload page, shown on ready to upload state',
|
|
798
|
+
defaultMessage: 'Choose file'
|
|
795
799
|
},
|
|
796
800
|
fileUploadFailed: {
|
|
797
|
-
id:
|
|
798
|
-
|
|
801
|
+
id: 'ImportResourcesModal.fileUploadFailed',
|
|
802
|
+
description: 'A title on the file upload page, shown on file upload error state',
|
|
803
|
+
defaultMessage: 'File upload failed'
|
|
799
804
|
},
|
|
800
805
|
fileFormatNotSupported: {
|
|
801
|
-
id:
|
|
802
|
-
|
|
806
|
+
id: 'ImportResourcesModal.fileFormatNotSupported',
|
|
807
|
+
description: 'Error message displayed when a user drags and drops a non-CSV file',
|
|
808
|
+
defaultMessage: 'Invalid file format: The file is not in CSV format and cannot be processed.'
|
|
803
809
|
},
|
|
804
810
|
tooManyFilesError: {
|
|
805
|
-
id:
|
|
806
|
-
|
|
811
|
+
id: 'ImportResourcesModal.tooManyFilesError',
|
|
812
|
+
description: 'Error message displayed when a user drags and drops multiple files at once',
|
|
813
|
+
defaultMessage: 'Multiple files detected: You can only drag and drop one file at a time.'
|
|
807
814
|
},
|
|
808
815
|
genericError: {
|
|
809
|
-
id:
|
|
810
|
-
|
|
816
|
+
id: 'ImportResourcesModal.genericError',
|
|
817
|
+
description: 'Default error message for unexpected file upload issues (for unhandled cases)',
|
|
818
|
+
defaultMessage: 'Error occurred: Please try uploading the file again or contact our support team for assistance.'
|
|
811
819
|
},
|
|
812
820
|
dataType: {
|
|
813
|
-
id:
|
|
814
|
-
|
|
821
|
+
id: 'ImportResourcesModal.dataType',
|
|
822
|
+
description: 'Label for the data type selection dropdown',
|
|
823
|
+
defaultMessage: 'Data type'
|
|
815
824
|
},
|
|
816
825
|
instructions: {
|
|
817
|
-
id:
|
|
818
|
-
|
|
826
|
+
id: 'ImportResourcesModal.instructions',
|
|
827
|
+
description: 'Label for the instructions section',
|
|
828
|
+
defaultMessage: 'Instructions'
|
|
819
829
|
}
|
|
820
830
|
});
|
|
821
831
|
|
|
@@ -829,52 +839,61 @@ function useImportResourcesContext() {
|
|
|
829
839
|
|
|
830
840
|
var messages$6 = defineMessages({
|
|
831
841
|
fileSizeExceededTitle: {
|
|
832
|
-
id:
|
|
833
|
-
defaultMessage:
|
|
842
|
+
id: 'ImportResourcesModal.sizeExceededTitle',
|
|
843
|
+
defaultMessage: 'File size exceeded'
|
|
834
844
|
},
|
|
835
845
|
fileSizeExceededDescription: {
|
|
836
|
-
id:
|
|
837
|
-
|
|
846
|
+
id: 'ImportResourcesModal.sizeExceededDescription',
|
|
847
|
+
description: 'Error description when the file size exceeds the allowable limit',
|
|
848
|
+
defaultMessage: 'The file exceeds the maximum allowed size of {fileSizeLimit} MB'
|
|
838
849
|
},
|
|
839
850
|
rowLimitExceededTitle: {
|
|
840
|
-
id:
|
|
841
|
-
defaultMessage:
|
|
851
|
+
id: 'ImportResourcesModal.rowLimitExceededTitle',
|
|
852
|
+
defaultMessage: 'Row limit exceeded'
|
|
842
853
|
},
|
|
843
854
|
rowLimitExceededDescription: {
|
|
844
|
-
id:
|
|
845
|
-
|
|
855
|
+
id: 'ImportResourcesModal.rowLimitExceededDescription',
|
|
856
|
+
description: 'Error description when the file contains more rows than the allowable maximum',
|
|
857
|
+
defaultMessage: 'The file contains more than the allowable maximum of {rowLimit} rows'
|
|
846
858
|
},
|
|
847
859
|
dropAreaWrongDelimiterTitle: {
|
|
848
|
-
id:
|
|
849
|
-
defaultMessage:
|
|
860
|
+
id: 'ImportResourcesModal.wrongDelimiterTitle',
|
|
861
|
+
defaultMessage: 'Wrong delimiter'
|
|
850
862
|
},
|
|
851
863
|
dropAreaWrongDelimiterDescription: {
|
|
852
|
-
id:
|
|
853
|
-
|
|
864
|
+
id: 'ImportResourcesModal.wrongDelimiterDescription',
|
|
865
|
+
description: 'Message within the drop area when a CSV file uses an unexpected delimiter',
|
|
866
|
+
defaultMessage: 'The file is using an incorrect delimiter. Please use comma (,) instead.'
|
|
854
867
|
},
|
|
855
868
|
dropAreaNotEnoughRowsTitle: {
|
|
856
|
-
id:
|
|
857
|
-
|
|
869
|
+
id: 'ImportResourcesModal.dropAreaNotEnoughRowsTitle',
|
|
870
|
+
description: 'Error title shown when the uploaded CSV file does not contain a header and at least one row of data',
|
|
871
|
+
defaultMessage: 'Invalid CSV file'
|
|
858
872
|
},
|
|
859
873
|
dropAreaNotEnoughRowsDescription: {
|
|
860
|
-
id:
|
|
861
|
-
|
|
874
|
+
id: 'ImportResourcesModal.dropAreaNotEnoughRowsDescription',
|
|
875
|
+
description: 'Error description shown when the uploaded CSV file does not contain a header and at least one row of data',
|
|
876
|
+
defaultMessage: 'Make sure the file contains a header and at least one row of data'
|
|
862
877
|
},
|
|
863
878
|
unexpectedError: {
|
|
864
|
-
id:
|
|
865
|
-
|
|
879
|
+
id: 'ImportResourcesModal.unexpectedError',
|
|
880
|
+
description: 'Generic notification message when file upload fails',
|
|
881
|
+
defaultMessage: 'An unexpected error occurred during the file upload. Please try again, or contact support if this error occurs again.'
|
|
866
882
|
},
|
|
867
883
|
missingRequiredField: {
|
|
868
|
-
id:
|
|
869
|
-
|
|
884
|
+
id: 'ImportResourcesModal.missingRequiredField',
|
|
885
|
+
description: 'Error message displayed when a required field is missing',
|
|
886
|
+
defaultMessage: 'Missing required field'
|
|
870
887
|
},
|
|
871
888
|
missingKeyError: {
|
|
872
|
-
id:
|
|
889
|
+
id: 'ImportResourcesModal.missingKeyError',
|
|
890
|
+
description: 'Error message displayed when the uploaded file is missing the key field',
|
|
873
891
|
defaultMessage: "The 'key' field is missing or incomplete in some rows. Please ensure every row has a 'key' value."
|
|
874
892
|
},
|
|
875
893
|
missingRequiredKeys: {
|
|
876
|
-
id:
|
|
877
|
-
|
|
894
|
+
id: 'ImportResourcesModal.missingRequiredKeys',
|
|
895
|
+
description: 'Error message displayed when the uploaded file is missing required keys',
|
|
896
|
+
defaultMessage: 'Make sure the file contains required keys for the elements including {fieldNames}'
|
|
878
897
|
}
|
|
879
898
|
});
|
|
880
899
|
|
|
@@ -1135,8 +1154,9 @@ const FileDropArea = () => {
|
|
|
1135
1154
|
|
|
1136
1155
|
var messages$5 = defineMessages({
|
|
1137
1156
|
publishProducts: {
|
|
1138
|
-
id:
|
|
1139
|
-
|
|
1157
|
+
id: 'ImportResourcesModal.settings.publishProducts',
|
|
1158
|
+
description: 'Label for the publish products checkbox',
|
|
1159
|
+
defaultMessage: 'Publish all products in the file'
|
|
1140
1160
|
}
|
|
1141
1161
|
});
|
|
1142
1162
|
|
|
@@ -1170,44 +1190,54 @@ const UploadSettings = () => {
|
|
|
1170
1190
|
|
|
1171
1191
|
var sharedMessages = defineMessages({
|
|
1172
1192
|
[`modalTitle.${IMPORTABLE_RESOURCES.CATEGORY}`]: {
|
|
1173
|
-
id:
|
|
1174
|
-
|
|
1193
|
+
id: 'ImportResourcesModal.modalTitle.category',
|
|
1194
|
+
description: 'Label for the categories modal title',
|
|
1195
|
+
defaultMessage: 'Import categories by CSV'
|
|
1175
1196
|
},
|
|
1176
1197
|
[`modalTitle.${IMPORTABLE_RESOURCES.PRODUCT}`]: {
|
|
1177
|
-
id:
|
|
1178
|
-
|
|
1198
|
+
id: 'ImportResourcesModal.modalTitle.product',
|
|
1199
|
+
description: 'Label for the products modal title',
|
|
1200
|
+
defaultMessage: 'Import products by CSV'
|
|
1179
1201
|
},
|
|
1180
1202
|
[`modalTitle.${IMPORTABLE_RESOURCES.INVENTORY}`]: {
|
|
1181
|
-
id:
|
|
1182
|
-
|
|
1203
|
+
id: 'ImportResourcesModal.modalTitle.inventoryEntry',
|
|
1204
|
+
description: 'Label for the inventories modal title',
|
|
1205
|
+
defaultMessage: 'Import inventories by CSV'
|
|
1183
1206
|
},
|
|
1184
1207
|
[`modalTitle.${IMPORTABLE_RESOURCES.DISCOUNT_CODE}`]: {
|
|
1185
|
-
id:
|
|
1186
|
-
|
|
1208
|
+
id: 'ImportResourcesModal.modalTitle.discountCode',
|
|
1209
|
+
description: 'Label for the inventories modal title',
|
|
1210
|
+
defaultMessage: 'Import discount codes by CSV'
|
|
1187
1211
|
},
|
|
1188
1212
|
[`modalTitle.${IMPORTABLE_RESOURCES.CUSTOMER}`]: {
|
|
1189
|
-
id:
|
|
1190
|
-
|
|
1213
|
+
id: 'ImportResourcesModal.modalTitle.customer',
|
|
1214
|
+
description: 'Label for the customers modal title',
|
|
1215
|
+
defaultMessage: 'Import customers by CSV'
|
|
1191
1216
|
},
|
|
1192
1217
|
[`modalTitle.${IMPORTABLE_RESOURCES.ORDER}`]: {
|
|
1193
|
-
id:
|
|
1194
|
-
|
|
1218
|
+
id: 'ImportResourcesModal.modalTitle.order',
|
|
1219
|
+
description: 'Label for the order modal title',
|
|
1220
|
+
defaultMessage: 'Import orders by CSV'
|
|
1195
1221
|
},
|
|
1196
1222
|
[`modalTitle.${IMPORTABLE_RESOURCES.PRODUCT_TYPE}`]: {
|
|
1197
|
-
id:
|
|
1198
|
-
|
|
1223
|
+
id: 'ImportResourcesModal.modalTitle.productType',
|
|
1224
|
+
description: 'Label for the product type modal title',
|
|
1225
|
+
defaultMessage: 'Import product types by CSV'
|
|
1199
1226
|
},
|
|
1200
1227
|
uploadButton: {
|
|
1201
|
-
id:
|
|
1202
|
-
|
|
1228
|
+
id: 'ImportResourcesModal.uploadButton',
|
|
1229
|
+
description: 'Label for the upload button',
|
|
1230
|
+
defaultMessage: 'Upload and preview'
|
|
1203
1231
|
},
|
|
1204
1232
|
cancel: {
|
|
1205
|
-
id:
|
|
1206
|
-
|
|
1233
|
+
id: 'ImportResourcesModal.cancel',
|
|
1234
|
+
description: 'Label for the cancel button',
|
|
1235
|
+
defaultMessage: 'Cancel'
|
|
1207
1236
|
},
|
|
1208
1237
|
close: {
|
|
1209
|
-
id:
|
|
1210
|
-
|
|
1238
|
+
id: 'ImportResourcesModal.close',
|
|
1239
|
+
description: 'Label for the close button',
|
|
1240
|
+
defaultMessage: 'Close'
|
|
1211
1241
|
}
|
|
1212
1242
|
});
|
|
1213
1243
|
|
|
@@ -1269,28 +1299,34 @@ const Upload = () => {
|
|
|
1269
1299
|
|
|
1270
1300
|
var messages$4 = defineMessages({
|
|
1271
1301
|
row: {
|
|
1272
|
-
id:
|
|
1273
|
-
|
|
1302
|
+
id: 'ImportResourcesModal.row',
|
|
1303
|
+
description: 'In Upload file error modal - "Row" column',
|
|
1304
|
+
defaultMessage: 'Row'
|
|
1274
1305
|
},
|
|
1275
1306
|
errorType: {
|
|
1276
|
-
id:
|
|
1277
|
-
|
|
1307
|
+
id: 'ImportResourcesModal.errorType',
|
|
1308
|
+
description: 'In Upload file error modal - "Error type" column',
|
|
1309
|
+
defaultMessage: 'Error type'
|
|
1278
1310
|
},
|
|
1279
1311
|
details: {
|
|
1280
|
-
id:
|
|
1281
|
-
|
|
1312
|
+
id: 'ImportResourcesModal.details',
|
|
1313
|
+
description: 'In Upload file error modal - "Details" column',
|
|
1314
|
+
defaultMessage: 'Details'
|
|
1282
1315
|
},
|
|
1283
1316
|
uploadErrorDescription: {
|
|
1284
|
-
id:
|
|
1285
|
-
|
|
1317
|
+
id: 'ImportResourcesModal.uploadErrorDescription',
|
|
1318
|
+
description: 'Title when errors detected while uploading file',
|
|
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>.'
|
|
1286
1320
|
},
|
|
1287
1321
|
supportedValuesDocumentation: {
|
|
1288
|
-
id:
|
|
1289
|
-
|
|
1322
|
+
id: 'ImportResourcesModal.supportedValuesDocumentation',
|
|
1323
|
+
description: 'Link to the documentation for supported values',
|
|
1324
|
+
defaultMessage: '<documentationLink>View the documentation</documentationLink> for supported values.'
|
|
1290
1325
|
},
|
|
1291
1326
|
uploadNewFile: {
|
|
1292
|
-
id:
|
|
1293
|
-
|
|
1327
|
+
id: 'ImportResourcesModal.uploadNewFile',
|
|
1328
|
+
description: 'Upload new file button',
|
|
1329
|
+
defaultMessage: 'Upload new file'
|
|
1294
1330
|
}
|
|
1295
1331
|
});
|
|
1296
1332
|
|
|
@@ -1531,56 +1567,69 @@ function getBold$2(msg) {
|
|
|
1531
1567
|
|
|
1532
1568
|
var messages$3 = defineMessages({
|
|
1533
1569
|
startImportButton: {
|
|
1534
|
-
id:
|
|
1535
|
-
|
|
1570
|
+
id: 'ImportResourcesModal.startImportButton',
|
|
1571
|
+
description: 'Label for the modal Start import button',
|
|
1572
|
+
defaultMessage: 'Start import'
|
|
1536
1573
|
},
|
|
1537
1574
|
importNotificationSuccessMessage: {
|
|
1538
|
-
id:
|
|
1539
|
-
|
|
1575
|
+
id: 'ImportResourcesModal.successMessage',
|
|
1576
|
+
description: 'Notification success message',
|
|
1577
|
+
defaultMessage: '<b>Your import has started.</b><newline></newline> <logsLink>Go to Import logs</logsLink> to view the progress.'
|
|
1540
1578
|
},
|
|
1541
1579
|
importNotificationPrepareMessage: {
|
|
1542
|
-
id:
|
|
1543
|
-
|
|
1580
|
+
id: 'ImportResourcesModal.prepareMessage',
|
|
1581
|
+
description: 'Notification for preparing import',
|
|
1582
|
+
defaultMessage: '<b>Prepare import</b><newline></newline>Once preparation is complete, you can track the import progress <logsLink>in the Import logs</logsLink>.'
|
|
1544
1583
|
},
|
|
1545
1584
|
previewOfYourImport: {
|
|
1546
|
-
id:
|
|
1585
|
+
id: 'ImportResourcesModal.previewOfYourImport',
|
|
1586
|
+
description: 'Label for modal path',
|
|
1547
1587
|
defaultMessage: "Here's a preview of your import"
|
|
1548
1588
|
},
|
|
1549
1589
|
rowsToBeImported: {
|
|
1550
|
-
id:
|
|
1551
|
-
|
|
1590
|
+
id: 'ImportResourcesModal.rowsToBeImported',
|
|
1591
|
+
description: 'This message indicates the number of rows that are ready to be imported into the system.',
|
|
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 {}}'
|
|
1552
1593
|
},
|
|
1553
1594
|
columnsToBeImported: {
|
|
1554
|
-
id:
|
|
1555
|
-
|
|
1595
|
+
id: 'ImportResourcesModal.columnsToBeImported',
|
|
1596
|
+
description: 'This message indicates the number of columns that are ready to be imported into the system.',
|
|
1597
|
+
defaultMessage: '<b>{columnCount}</b> columns to be imported'
|
|
1556
1598
|
},
|
|
1557
1599
|
columnsToBeIgnored: {
|
|
1558
|
-
id:
|
|
1600
|
+
id: 'ImportResourcesModal.columnsToBeIgnored',
|
|
1601
|
+
description: "This message indicates the number of columns that will be deliberately skipped during the import because they can't be imported",
|
|
1559
1602
|
defaultMessage: "We will intentionally ignore <b>{columnCount}</b> columns as they can't be imported"
|
|
1560
1603
|
},
|
|
1561
1604
|
showMore: {
|
|
1562
|
-
id:
|
|
1563
|
-
|
|
1605
|
+
id: 'ImportResourcesModal.showMore',
|
|
1606
|
+
description: 'A button label for expanding the import preview to show more details.',
|
|
1607
|
+
defaultMessage: 'Show more'
|
|
1564
1608
|
},
|
|
1565
1609
|
showLess: {
|
|
1566
|
-
id:
|
|
1567
|
-
|
|
1610
|
+
id: 'ImportResourcesModal.showLess',
|
|
1611
|
+
description: 'A button label for collapsing the import preview to show fewer details.',
|
|
1612
|
+
defaultMessage: 'Show less'
|
|
1568
1613
|
},
|
|
1569
1614
|
continue: {
|
|
1570
|
-
id:
|
|
1571
|
-
|
|
1615
|
+
id: 'ImportResourcesModal.continue',
|
|
1616
|
+
description: 'Confirmation dialog continue button',
|
|
1617
|
+
defaultMessage: 'Continue'
|
|
1572
1618
|
},
|
|
1573
1619
|
confirmationBodyText: {
|
|
1574
|
-
id:
|
|
1575
|
-
|
|
1620
|
+
id: 'ImportResourcesModal.confirmationBodyText',
|
|
1621
|
+
description: 'Confirmation dialog text',
|
|
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>.'
|
|
1576
1623
|
},
|
|
1577
1624
|
confirmationBodyNote: {
|
|
1578
|
-
id:
|
|
1579
|
-
|
|
1625
|
+
id: 'ImportResourcesModal.confirmationBodyNote',
|
|
1626
|
+
description: 'Confirmation dialog text',
|
|
1627
|
+
defaultMessage: 'Please be aware that existing values with the same keys will be overwritten by the data included in the CSV.'
|
|
1580
1628
|
},
|
|
1581
1629
|
confirmationBodyQuestion: {
|
|
1582
|
-
id:
|
|
1583
|
-
|
|
1630
|
+
id: 'ImportResourcesModal.confirmationBodyQuestion',
|
|
1631
|
+
description: 'Confirmation question',
|
|
1632
|
+
defaultMessage: 'Proceed with the import?'
|
|
1584
1633
|
}
|
|
1585
1634
|
});
|
|
1586
1635
|
|
|
@@ -2007,16 +2056,19 @@ const CurrentStep = () => {
|
|
|
2007
2056
|
|
|
2008
2057
|
var messages$2 = defineMessages({
|
|
2009
2058
|
products: {
|
|
2010
|
-
id:
|
|
2011
|
-
|
|
2059
|
+
id: 'ImportResourcesModal.radio.products',
|
|
2060
|
+
description: 'Label for the products radio button',
|
|
2061
|
+
defaultMessage: 'Products (including variants, assets, prices and images)'
|
|
2012
2062
|
},
|
|
2013
2063
|
inventories: {
|
|
2014
|
-
id:
|
|
2015
|
-
|
|
2064
|
+
id: 'ImportResourcesModal.radio.inventories',
|
|
2065
|
+
description: 'Label for the inventories radio button',
|
|
2066
|
+
defaultMessage: 'Inventories'
|
|
2016
2067
|
},
|
|
2017
2068
|
categories: {
|
|
2018
|
-
id:
|
|
2019
|
-
|
|
2069
|
+
id: 'ImportResourcesModal.radio.categories',
|
|
2070
|
+
description: 'Label for the categories radio button',
|
|
2071
|
+
defaultMessage: 'Categories'
|
|
2020
2072
|
}
|
|
2021
2073
|
});
|
|
2022
2074
|
|
|
@@ -2057,8 +2109,9 @@ const ResourceTypeSelection = () => {
|
|
|
2057
2109
|
|
|
2058
2110
|
var messages$1 = defineMessages({
|
|
2059
2111
|
fileUploadInstructions: {
|
|
2060
|
-
id:
|
|
2061
|
-
|
|
2112
|
+
id: 'ImportResourcesModal.fileUploadInstructions',
|
|
2113
|
+
description: 'Label for the modal category description',
|
|
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>.'
|
|
2062
2115
|
}
|
|
2063
2116
|
});
|
|
2064
2117
|
|
|
@@ -2094,12 +2147,14 @@ const Instructions = () => {
|
|
|
2094
2147
|
|
|
2095
2148
|
var messages = defineMessages({
|
|
2096
2149
|
prerequisitesOfImportingData: {
|
|
2097
|
-
id:
|
|
2098
|
-
|
|
2150
|
+
id: 'ImportResourcesModal.infoBox.prerequisitesOfImportingData',
|
|
2151
|
+
description: 'A message to guide users to check the prerequisites of importing data',
|
|
2152
|
+
defaultMessage: 'Prerequisites of importing data'
|
|
2099
2153
|
},
|
|
2100
2154
|
keysForEveryResource: {
|
|
2101
|
-
id:
|
|
2102
|
-
|
|
2155
|
+
id: 'ImportResourcesModal.infoBox.keysForEveryResource',
|
|
2156
|
+
description: 'A message to guide users to provide keys for every resource they import',
|
|
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>.'
|
|
2103
2158
|
}
|
|
2104
2159
|
});
|
|
2105
2160
|
|