@commercetools-frontend-extensions/import-resources-modal 1.9.1 → 1.10.0
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-73dfaf5d.cjs.prod.js → active-drag-drop-area-58179e9a.cjs.prod.js} +1 -1
- package/dist/{active-drag-drop-area-8e57dd40.esm.js → active-drag-drop-area-5983aeff.esm.js} +1 -1
- package/dist/{active-drag-drop-area-ba4a851f.cjs.dev.js → active-drag-drop-area-bb4bbe27.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/{de-94201791.cjs.prod.js → de-3e1e8435.cjs.dev.js} +1 -1
- package/dist/{de-cf302015.esm.js → de-67bd98c5.esm.js} +1 -1
- package/dist/{de-7ed25bdf.cjs.dev.js → de-a33f40b4.cjs.prod.js} +1 -1
- package/dist/declarations/src/@types/file-upload.d.ts +1 -0
- package/dist/declarations/src/@types/import-container.d.ts +4 -2
- package/dist/{disabled-drop-area-034e0448.esm.js → disabled-drop-area-67de59ef.esm.js} +1 -1
- package/dist/{disabled-drop-area-ddd04658.cjs.prod.js → disabled-drop-area-9c90609b.cjs.prod.js} +1 -1
- package/dist/{disabled-drop-area-d1e857eb.cjs.dev.js → disabled-drop-area-a3d62583.cjs.dev.js} +1 -1
- package/dist/{enabled-drop-area-89b5985e.esm.js → enabled-drop-area-5f322d0a.esm.js} +1 -1
- package/dist/{enabled-drop-area-20a79b9e.cjs.prod.js → enabled-drop-area-723eb5b8.cjs.prod.js} +1 -1
- package/dist/{enabled-drop-area-a7cc9ec4.cjs.dev.js → enabled-drop-area-7cc66fc8.cjs.dev.js} +1 -1
- package/dist/{file-dropped-area-58e15030.esm.js → file-dropped-area-724a3d30.esm.js} +1 -1
- package/dist/{file-dropped-area-72914d0f.cjs.prod.js → file-dropped-area-d451d883.cjs.prod.js} +1 -1
- package/dist/{file-dropped-area-bacca40c.cjs.dev.js → file-dropped-area-e06176a3.cjs.dev.js} +1 -1
- package/dist/{index-0a743bd2.cjs.dev.js → index-44a01cb9.cjs.dev.js} +169 -79
- package/dist/{index-943152ea.esm.js → index-7a93797c.esm.js} +170 -80
- package/dist/{index-f01fd89f.cjs.prod.js → index-e08c812b.cjs.prod.js} +164 -79
- package/package.json +18 -18
|
@@ -116,27 +116,26 @@ let CurrentStep$1 = /*#__PURE__*/function (CurrentStep) {
|
|
|
116
116
|
return CurrentStep;
|
|
117
117
|
}({});
|
|
118
118
|
|
|
119
|
-
function ownKeys$
|
|
120
|
-
function _objectSpread$
|
|
119
|
+
function ownKeys$k(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; }
|
|
120
|
+
function _objectSpread$k(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$k(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$k(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
121
121
|
|
|
122
122
|
// TODO: make this resource type specific
|
|
123
123
|
|
|
124
124
|
function reducer(state, action) {
|
|
125
|
-
if (action.type === 'setCurrentStep') return _objectSpread$
|
|
125
|
+
if (action.type === 'setCurrentStep') return _objectSpread$k(_objectSpread$k({}, state), {}, {
|
|
126
126
|
currentStep: action.currentStep,
|
|
127
127
|
progress: 0
|
|
128
128
|
});
|
|
129
|
-
if (action.type === 'setUploadFileResponse') return _objectSpread$
|
|
129
|
+
if (action.type === 'setUploadFileResponse') return _objectSpread$k(_objectSpread$k({}, state), {}, {
|
|
130
130
|
uploadFileResponse: action.uploadFileResponse
|
|
131
131
|
});
|
|
132
|
-
if (action.type === 'setResourceType') return _objectSpread$
|
|
133
|
-
settings: undefined,
|
|
132
|
+
if (action.type === 'setResourceType') return _objectSpread$k(_objectSpread$k({}, state), {}, {
|
|
134
133
|
resourceType: action.resourceType
|
|
135
134
|
});
|
|
136
|
-
if (action.type === 'setContainerKey') return _objectSpread$
|
|
135
|
+
if (action.type === 'setContainerKey') return _objectSpread$k(_objectSpread$k({}, state), {}, {
|
|
137
136
|
containerKey: action.containerKey
|
|
138
137
|
});
|
|
139
|
-
if (action.type === 'cancelImport') return _objectSpread$
|
|
138
|
+
if (action.type === 'cancelImport') return _objectSpread$k(_objectSpread$k({}, state), {}, {
|
|
140
139
|
currentStep: CurrentStep$1.Upload,
|
|
141
140
|
containerKey: undefined,
|
|
142
141
|
fileUploadErrors: [],
|
|
@@ -145,7 +144,7 @@ function reducer(state, action) {
|
|
|
145
144
|
dropAreaState: 'disabled',
|
|
146
145
|
progress: 0
|
|
147
146
|
});
|
|
148
|
-
if (action.type === 'uploadNewFile') return _objectSpread$
|
|
147
|
+
if (action.type === 'uploadNewFile') return _objectSpread$k(_objectSpread$k({}, state), {}, {
|
|
149
148
|
currentStep: CurrentStep$1.Upload,
|
|
150
149
|
containerKey: undefined,
|
|
151
150
|
fileUploadErrors: [],
|
|
@@ -155,28 +154,28 @@ function reducer(state, action) {
|
|
|
155
154
|
progress: 0
|
|
156
155
|
});
|
|
157
156
|
if (action.type === 'setDroppedFile') {
|
|
158
|
-
return _objectSpread$
|
|
157
|
+
return _objectSpread$k(_objectSpread$k({}, state), {}, {
|
|
159
158
|
droppedFile: action.droppedFile
|
|
160
159
|
});
|
|
161
160
|
}
|
|
162
161
|
if (action.type === 'setFileUploadErrors') {
|
|
163
|
-
return _objectSpread$
|
|
162
|
+
return _objectSpread$k(_objectSpread$k({}, state), {}, {
|
|
164
163
|
fileUploadErrors: action.fileUploadErrors
|
|
165
164
|
});
|
|
166
165
|
}
|
|
167
166
|
if (action.type === 'setAbortController') {
|
|
168
|
-
return _objectSpread$
|
|
167
|
+
return _objectSpread$k(_objectSpread$k({}, state), {}, {
|
|
169
168
|
abortController: action.abortController
|
|
170
169
|
});
|
|
171
170
|
}
|
|
172
171
|
if (action.type === 'setProgress') {
|
|
173
|
-
return _objectSpread$
|
|
172
|
+
return _objectSpread$k(_objectSpread$k({}, state), {}, {
|
|
174
173
|
progress: action.progress
|
|
175
174
|
});
|
|
176
175
|
}
|
|
177
176
|
if (action.type === 'setUploadSettings') {
|
|
178
|
-
return _objectSpread$
|
|
179
|
-
settings: _objectSpread$
|
|
177
|
+
return _objectSpread$k(_objectSpread$k({}, state), {}, {
|
|
178
|
+
settings: _objectSpread$k(_objectSpread$k({}, state.settings), action.settings)
|
|
180
179
|
});
|
|
181
180
|
}
|
|
182
181
|
throw new Error(getUnknownActionError(action));
|
|
@@ -192,7 +191,10 @@ const initialState = {
|
|
|
192
191
|
fileUploadErrors: [],
|
|
193
192
|
resourceType: 'category',
|
|
194
193
|
containerKey: undefined,
|
|
195
|
-
progress: 0
|
|
194
|
+
progress: 0,
|
|
195
|
+
settings: {
|
|
196
|
+
decimalSeparator: '.'
|
|
197
|
+
}
|
|
196
198
|
};
|
|
197
199
|
|
|
198
200
|
function _callSuper$2(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$2() ? _Reflect$construct__default["default"](o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
@@ -241,8 +243,8 @@ let HttpError = /*#__PURE__*/function (_Error) {
|
|
|
241
243
|
return _createClass(HttpError);
|
|
242
244
|
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
243
245
|
|
|
244
|
-
function ownKeys$
|
|
245
|
-
function _objectSpread$
|
|
246
|
+
function ownKeys$j(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; }
|
|
247
|
+
function _objectSpread$j(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$j(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$j(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
246
248
|
const addProxyPrefixToUrl = (uri, proxy) => {
|
|
247
249
|
return proxy ? `/proxy/${proxy}${uri}` : uri;
|
|
248
250
|
};
|
|
@@ -254,7 +256,7 @@ const fetchUsingXhr = _ref2 => {
|
|
|
254
256
|
onSuccess = _ref2.onSuccess,
|
|
255
257
|
onError = _ref2.onError;
|
|
256
258
|
const options = applicationShell.createHttpClientOptions({
|
|
257
|
-
headers: _objectSpread$
|
|
259
|
+
headers: _objectSpread$j({
|
|
258
260
|
'Content-Type': 'application/json'
|
|
259
261
|
}, config?.headers)
|
|
260
262
|
});
|
|
@@ -298,7 +300,14 @@ const fetchUsingXhr = _ref2 => {
|
|
|
298
300
|
return xhr;
|
|
299
301
|
};
|
|
300
302
|
|
|
301
|
-
const
|
|
303
|
+
const DELIMITERS = {
|
|
304
|
+
COMMA: ',',
|
|
305
|
+
SEMICOLON: ';',
|
|
306
|
+
POINT: '.',
|
|
307
|
+
TAB: '\t',
|
|
308
|
+
PIPE: '|'
|
|
309
|
+
};
|
|
310
|
+
const COLUMN_DELIMITERS = [DELIMITERS.COMMA, DELIMITERS.SEMICOLON, DELIMITERS.PIPE, DELIMITERS.TAB];
|
|
302
311
|
const INITIAL_COLUMN_DISPLAY_COUNT = 8;
|
|
303
312
|
const IMPORT_TAG_KEYS = {
|
|
304
313
|
source: 'source'
|
|
@@ -399,11 +408,11 @@ const ACTION_RIGHTS = {
|
|
|
399
408
|
}
|
|
400
409
|
};
|
|
401
410
|
|
|
402
|
-
function ownKeys$
|
|
403
|
-
function _objectSpread$
|
|
411
|
+
function ownKeys$i(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; }
|
|
412
|
+
function _objectSpread$i(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$i(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$i(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
404
413
|
const DEFAULT_SHORT_LIVED_FLAGS = {};
|
|
405
414
|
const DEFAULT_LONG_LIVED_FLAGS = {};
|
|
406
|
-
_objectSpread$
|
|
415
|
+
_objectSpread$i(_objectSpread$i({}, DEFAULT_SHORT_LIVED_FLAGS), DEFAULT_LONG_LIVED_FLAGS);
|
|
407
416
|
|
|
408
417
|
var sharedMessages = reactIntl.defineMessages({
|
|
409
418
|
[`modalTitle.${IMPORTABLE_RESOURCES.CATEGORY}`]: {
|
|
@@ -655,13 +664,13 @@ var sharedMessages = reactIntl.defineMessages({
|
|
|
655
664
|
//
|
|
656
665
|
});
|
|
657
666
|
|
|
658
|
-
function ownKeys$
|
|
659
|
-
function _objectSpread$
|
|
667
|
+
function ownKeys$h(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; }
|
|
668
|
+
function _objectSpread$h(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys$h(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$h(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
660
669
|
|
|
661
670
|
// Delimiters not included in this array may be treated as part of a column content
|
|
662
671
|
// potentially causing the file to be parsed as a single-column CSV and pass this validation
|
|
663
|
-
const
|
|
664
|
-
const DELIMITERS_TO_GUESS = [...
|
|
672
|
+
const NON_ALLOWED_COLUMN_DELIMITERS = ['%', '.', ' '];
|
|
673
|
+
const DELIMITERS_TO_GUESS = [...COLUMN_DELIMITERS, ...NON_ALLOWED_COLUMN_DELIMITERS];
|
|
665
674
|
const validateDelimiter = file => {
|
|
666
675
|
return new _Promise__default["default"](resolve => {
|
|
667
676
|
Papa__default["default"].parse(file, {
|
|
@@ -676,7 +685,7 @@ const validateDelimiter = file => {
|
|
|
676
685
|
}
|
|
677
686
|
const detectedDelimiter = result.meta.delimiter;
|
|
678
687
|
let isValid = false;
|
|
679
|
-
if (detectedDelimiter !== null && _includesInstanceProperty__default["default"](
|
|
688
|
+
if (detectedDelimiter !== null && _includesInstanceProperty__default["default"](COLUMN_DELIMITERS).call(COLUMN_DELIMITERS, detectedDelimiter)) {
|
|
680
689
|
var _context;
|
|
681
690
|
const isUndetectableDelimiter = _someInstanceProperty__default["default"](_context = result.errors).call(_context, error => error.code === 'UndetectableDelimiter');
|
|
682
691
|
if (!isUndetectableDelimiter) {
|
|
@@ -705,7 +714,7 @@ const mapUploadFileErrorsResponseToUploadFileErrorRows = uploadFileErrorsRespons
|
|
|
705
714
|
};
|
|
706
715
|
const mapFileUploadErrorsToUploadFileErrorRows = uploadFileErrors => {
|
|
707
716
|
let idCounter = 1;
|
|
708
|
-
return _mapInstanceProperty__default["default"](uploadFileErrors).call(uploadFileErrors, uploadFileError => _objectSpread$
|
|
717
|
+
return _mapInstanceProperty__default["default"](uploadFileErrors).call(uploadFileErrors, uploadFileError => _objectSpread$h(_objectSpread$h({}, uploadFileError), {}, {
|
|
709
718
|
id: String(idCounter++)
|
|
710
719
|
}));
|
|
711
720
|
};
|
|
@@ -745,7 +754,7 @@ const getValidatedColumns = (columns, ignoredColumns) => {
|
|
|
745
754
|
};
|
|
746
755
|
const formatAllowedDelimitersForMessageDisplay = intl => {
|
|
747
756
|
const localizedOr = intl.formatMessage(sharedMessages.listConjunctionOr);
|
|
748
|
-
const descriptions = _mapInstanceProperty__default["default"](
|
|
757
|
+
const descriptions = _mapInstanceProperty__default["default"](COLUMN_DELIMITERS).call(COLUMN_DELIMITERS, delimiter => {
|
|
749
758
|
let nameDescriptor;
|
|
750
759
|
switch (delimiter) {
|
|
751
760
|
case ',':
|
|
@@ -903,8 +912,8 @@ function uploadFileForImport(_ref) {
|
|
|
903
912
|
});
|
|
904
913
|
}
|
|
905
914
|
|
|
906
|
-
function ownKeys$
|
|
907
|
-
function _objectSpread$
|
|
915
|
+
function ownKeys$g(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; }
|
|
916
|
+
function _objectSpread$g(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$g(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$g(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
908
917
|
function createImportContainerForFileUpload(importContainerDraft, projectKey, asyncDispatch) {
|
|
909
918
|
return asyncDispatch(sdk.actions.post({
|
|
910
919
|
mcApiProxyTarget: constants.MC_API_PROXY_TARGETS.IMPORT,
|
|
@@ -913,7 +922,7 @@ function createImportContainerForFileUpload(importContainerDraft, projectKey, as
|
|
|
913
922
|
accept: 'application/json',
|
|
914
923
|
'Content-Type': 'application/json'
|
|
915
924
|
},
|
|
916
|
-
payload: _JSON$stringify__default["default"](_objectSpread$
|
|
925
|
+
payload: _JSON$stringify__default["default"](_objectSpread$g({
|
|
917
926
|
retentionPolicy: {
|
|
918
927
|
strategy: 'ttl',
|
|
919
928
|
config: {
|
|
@@ -957,8 +966,8 @@ function assertProcessFileResponse(maybeProcessFileResponse) {
|
|
|
957
966
|
throw new Error('Invalid response');
|
|
958
967
|
}
|
|
959
968
|
|
|
960
|
-
function ownKeys$
|
|
961
|
-
function _objectSpread$
|
|
969
|
+
function ownKeys$f(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; }
|
|
970
|
+
function _objectSpread$f(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$f(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$f(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
962
971
|
const ImportResourcesContext = /*#__PURE__*/React__default["default"].createContext();
|
|
963
972
|
const ImportResourcesProvider = props => {
|
|
964
973
|
const _useApplicationContex = applicationShellConnectors.useApplicationContext(context => ({
|
|
@@ -966,7 +975,7 @@ const ImportResourcesProvider = props => {
|
|
|
966
975
|
})),
|
|
967
976
|
projectKey = _useApplicationContex.projectKey;
|
|
968
977
|
const asyncDispatch = sdk.useAsyncDispatch();
|
|
969
|
-
const _React$useReducer = React__default["default"].useReducer(reducer, _objectSpread$
|
|
978
|
+
const _React$useReducer = React__default["default"].useReducer(reducer, _objectSpread$f(_objectSpread$f({}, initialState), {}, {
|
|
970
979
|
resourceType: props.resourceTypes[0]
|
|
971
980
|
})),
|
|
972
981
|
_React$useReducer2 = _slicedToArray(_React$useReducer, 2),
|
|
@@ -1103,13 +1112,13 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
|
|
|
1103
1112
|
return /*#__PURE__*/react.css("" , "" );
|
|
1104
1113
|
}
|
|
1105
1114
|
|
|
1106
|
-
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-
|
|
1115
|
+
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-58179e9a.cjs.prod.js'); }));
|
|
1107
1116
|
|
|
1108
|
-
var DisabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./disabled-drop-area-
|
|
1117
|
+
var DisabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./disabled-drop-area-9c90609b.cjs.prod.js'); }));
|
|
1109
1118
|
|
|
1110
|
-
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-
|
|
1119
|
+
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-723eb5b8.cjs.prod.js'); }));
|
|
1111
1120
|
|
|
1112
|
-
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-
|
|
1121
|
+
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-d451d883.cjs.prod.js'); }));
|
|
1113
1122
|
|
|
1114
1123
|
function getDropArea(_ref) {
|
|
1115
1124
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -1147,7 +1156,7 @@ function getDropAreaState(flags) {
|
|
|
1147
1156
|
return 'ready-for-drop';
|
|
1148
1157
|
}
|
|
1149
1158
|
|
|
1150
|
-
var messages$
|
|
1159
|
+
var messages$8 = reactIntl.defineMessages({
|
|
1151
1160
|
dragAndDropCSV: {
|
|
1152
1161
|
id: 'ImportResourcesModal.dragAndDropCSV',
|
|
1153
1162
|
description: 'The message telling the user to drag and drop CSV file in the file drop area',
|
|
@@ -1212,7 +1221,7 @@ function useImportResourcesContext() {
|
|
|
1212
1221
|
return context;
|
|
1213
1222
|
}
|
|
1214
1223
|
|
|
1215
|
-
var messages$
|
|
1224
|
+
var messages$7 = reactIntl.defineMessages({
|
|
1216
1225
|
fileSizeExceededTitle: {
|
|
1217
1226
|
id: 'ImportResourcesModal.sizeExceededTitle',
|
|
1218
1227
|
defaultMessage: 'File size exceeded'
|
|
@@ -1272,8 +1281,8 @@ var messages$6 = reactIntl.defineMessages({
|
|
|
1272
1281
|
}
|
|
1273
1282
|
});
|
|
1274
1283
|
|
|
1275
|
-
function ownKeys$
|
|
1276
|
-
function _objectSpread$
|
|
1284
|
+
function ownKeys$e(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; }
|
|
1285
|
+
function _objectSpread$e(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$e(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$e(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1277
1286
|
const useUpload = () => {
|
|
1278
1287
|
const intl = reactIntl.useIntl();
|
|
1279
1288
|
const projectKey = applicationShellConnectors.useApplicationContext(context => context.project?.key);
|
|
@@ -1291,25 +1300,25 @@ const useUpload = () => {
|
|
|
1291
1300
|
const errors = [];
|
|
1292
1301
|
const isDelimiterValid = await validateDelimiter(file);
|
|
1293
1302
|
if (!isDelimiterValid) errors.push({
|
|
1294
|
-
title: intl.formatMessage(messages$
|
|
1295
|
-
description: intl.formatMessage(messages$
|
|
1303
|
+
title: intl.formatMessage(messages$7.wrongSeparatorTitle),
|
|
1304
|
+
description: intl.formatMessage(messages$7.wrongSeparatorDescription, {
|
|
1296
1305
|
delimiterList: formatAllowedDelimitersForMessageDisplay(intl)
|
|
1297
1306
|
})
|
|
1298
1307
|
});
|
|
1299
1308
|
const rowCount = await getRowCount(file);
|
|
1300
1309
|
if (rowCount < 1) errors.push({
|
|
1301
|
-
title: intl.formatMessage(messages$
|
|
1302
|
-
description: intl.formatMessage(messages$
|
|
1310
|
+
title: intl.formatMessage(messages$7.dropAreaNotEnoughRowsTitle),
|
|
1311
|
+
description: intl.formatMessage(messages$7.dropAreaNotEnoughRowsDescription)
|
|
1303
1312
|
});
|
|
1304
1313
|
if (state.resourceType && file.size > toBytes(FILE_SIZE_LIMITS_MB[state.resourceType])) errors.push({
|
|
1305
|
-
title: intl.formatMessage(messages$
|
|
1306
|
-
description: intl.formatMessage(messages$
|
|
1314
|
+
title: intl.formatMessage(messages$7.fileSizeExceededTitle),
|
|
1315
|
+
description: intl.formatMessage(messages$7.fileSizeExceededDescription, {
|
|
1307
1316
|
fileSizeLimit: intl.formatNumber(FILE_SIZE_LIMITS_MB[state.resourceType])
|
|
1308
1317
|
})
|
|
1309
1318
|
});
|
|
1310
1319
|
if (state.resourceType && rowCount > ROW_LIMITS[state.resourceType]) errors.push({
|
|
1311
|
-
title: intl.formatMessage(messages$
|
|
1312
|
-
description: intl.formatMessage(messages$
|
|
1320
|
+
title: intl.formatMessage(messages$7.rowLimitExceededTitle),
|
|
1321
|
+
description: intl.formatMessage(messages$7.rowLimitExceededDescription, {
|
|
1313
1322
|
rowLimit: intl.formatNumber(ROW_LIMITS[state.resourceType])
|
|
1314
1323
|
})
|
|
1315
1324
|
});
|
|
@@ -1328,16 +1337,16 @@ const useUpload = () => {
|
|
|
1328
1337
|
if (error instanceof HttpError) {
|
|
1329
1338
|
if (error.errorData?.code === 'MISSING_KEY_ERROR') {
|
|
1330
1339
|
actions.setFileUploadErrors([{
|
|
1331
|
-
title: intl.formatMessage(messages$
|
|
1332
|
-
description: intl.formatMessage(messages$
|
|
1340
|
+
title: intl.formatMessage(messages$7.missingRequiredField),
|
|
1341
|
+
description: intl.formatMessage(messages$7.missingKeyError)
|
|
1333
1342
|
}]);
|
|
1334
1343
|
actions.setCurrentStep(CurrentStep$1.UploadResult);
|
|
1335
1344
|
} else if (error.errorData?.code === 'MissingCsvFieldIdentifier') {
|
|
1336
1345
|
const MissingCsvFieldIdentifierError = error.errorData;
|
|
1337
1346
|
const fieldNames = formatKeys(MissingCsvFieldIdentifierError.rowValue);
|
|
1338
1347
|
actions.setFileUploadErrors([{
|
|
1339
|
-
title: intl.formatMessage(messages$
|
|
1340
|
-
description: intl.formatMessage(messages$
|
|
1348
|
+
title: intl.formatMessage(messages$7.missingRequiredField),
|
|
1349
|
+
description: intl.formatMessage(messages$7.missingRequiredKeys, {
|
|
1341
1350
|
fieldNames
|
|
1342
1351
|
})
|
|
1343
1352
|
}]);
|
|
@@ -1350,7 +1359,7 @@ const useUpload = () => {
|
|
|
1350
1359
|
showNotification({
|
|
1351
1360
|
kind: 'error',
|
|
1352
1361
|
domain: constants.DOMAINS.PAGE,
|
|
1353
|
-
text: intl.formatMessage(messages$
|
|
1362
|
+
text: intl.formatMessage(messages$7.unexpectedError)
|
|
1354
1363
|
});
|
|
1355
1364
|
}
|
|
1356
1365
|
} else {
|
|
@@ -1379,21 +1388,21 @@ const useUpload = () => {
|
|
|
1379
1388
|
const containerKey = encodeFileNameWithTimestampToContainerKey(state.droppedFile.name);
|
|
1380
1389
|
actions.setContainerKey(containerKey);
|
|
1381
1390
|
try {
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
await createImportContainerForFileUpload(_objectSpread$d({
|
|
1391
|
+
const shouldApplyPublishSettings = state.resourceType === 'product';
|
|
1392
|
+
await createImportContainerForFileUpload({
|
|
1385
1393
|
key: containerKey,
|
|
1386
1394
|
resourceType: state.resourceType,
|
|
1387
|
-
tags: [TAG_KEY_SOURCE_FILE_UPLOAD]
|
|
1388
|
-
|
|
1389
|
-
settings: {
|
|
1390
|
-
resourceType: state.resourceType === 'product' ? 'product-draft' : state.resourceType,
|
|
1395
|
+
tags: [TAG_KEY_SOURCE_FILE_UPLOAD],
|
|
1396
|
+
settings: _objectSpread$e({
|
|
1391
1397
|
format: 'CSV',
|
|
1398
|
+
decimalSeparator: state.settings?.decimalSeparator
|
|
1399
|
+
}, shouldApplyPublishSettings ? {
|
|
1400
|
+
resourceType: state.resourceType === 'product' ? 'product-draft' : state.resourceType,
|
|
1392
1401
|
options: {
|
|
1393
1402
|
publishAllChanges: state.settings?.publish ?? false
|
|
1394
1403
|
}
|
|
1395
|
-
}
|
|
1396
|
-
}
|
|
1404
|
+
} : {})
|
|
1405
|
+
}, projectKey, asyncDispatch);
|
|
1397
1406
|
const newAbortController = uploadFileForImport({
|
|
1398
1407
|
projectKey,
|
|
1399
1408
|
containerKey,
|
|
@@ -1471,8 +1480,8 @@ const useImportPermission = () => {
|
|
|
1471
1480
|
};
|
|
1472
1481
|
};
|
|
1473
1482
|
|
|
1474
|
-
function ownKeys$
|
|
1475
|
-
function _objectSpread$
|
|
1483
|
+
function ownKeys$d(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; }
|
|
1484
|
+
function _objectSpread$d(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys$d(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$d(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1476
1485
|
const FileDropArea = () => {
|
|
1477
1486
|
const intl = reactIntl.useIntl();
|
|
1478
1487
|
const _useImportResourcesCo = useImportResourcesContext(),
|
|
@@ -1502,7 +1511,7 @@ const FileDropArea = () => {
|
|
|
1502
1511
|
showNotification({
|
|
1503
1512
|
kind: 'error',
|
|
1504
1513
|
domain: constants.DOMAINS.PAGE,
|
|
1505
|
-
text: intl.formatMessage(messages$
|
|
1514
|
+
text: intl.formatMessage(messages$8.tooManyFilesError)
|
|
1506
1515
|
});
|
|
1507
1516
|
return;
|
|
1508
1517
|
}
|
|
@@ -1510,13 +1519,13 @@ const FileDropArea = () => {
|
|
|
1510
1519
|
showNotification({
|
|
1511
1520
|
kind: 'error',
|
|
1512
1521
|
domain: constants.DOMAINS.PAGE,
|
|
1513
|
-
text: intl.formatMessage(messages$
|
|
1522
|
+
text: intl.formatMessage(messages$8.fileFormatNotSupported)
|
|
1514
1523
|
});
|
|
1515
1524
|
} else {
|
|
1516
1525
|
showNotification({
|
|
1517
1526
|
kind: 'error',
|
|
1518
1527
|
domain: constants.DOMAINS.PAGE,
|
|
1519
|
-
text: intl.formatMessage(messages$
|
|
1528
|
+
text: intl.formatMessage(messages$8.genericError)
|
|
1520
1529
|
});
|
|
1521
1530
|
}
|
|
1522
1531
|
}
|
|
@@ -1534,11 +1543,11 @@ const FileDropArea = () => {
|
|
|
1534
1543
|
resourceType: 'category',
|
|
1535
1544
|
isFileDropped: Boolean(state.droppedFile)
|
|
1536
1545
|
});
|
|
1537
|
-
return jsxRuntime.jsxs(DropWrapper, _objectSpread$
|
|
1546
|
+
return jsxRuntime.jsxs(DropWrapper, _objectSpread$d(_objectSpread$d({
|
|
1538
1547
|
role: "presentation"
|
|
1539
1548
|
}, getRootProps()), {}, {
|
|
1540
1549
|
dropAreaState: dropAreaState,
|
|
1541
|
-
children: [jsxRuntime.jsx("input", _objectSpread$
|
|
1550
|
+
children: [jsxRuntime.jsx("input", _objectSpread$d({
|
|
1542
1551
|
"data-testid": "file-input"
|
|
1543
1552
|
}, getInputProps())), jsxRuntime.jsx(uiKit.Constraints.Horizontal, {
|
|
1544
1553
|
children: dropArea
|
|
@@ -1546,6 +1555,82 @@ const FileDropArea = () => {
|
|
|
1546
1555
|
}));
|
|
1547
1556
|
};
|
|
1548
1557
|
|
|
1558
|
+
var messages$6 = reactIntl.defineMessages({
|
|
1559
|
+
separatorTitle: {
|
|
1560
|
+
id: 'ImportResourcesModal.uploadSeparator.separatorTitle',
|
|
1561
|
+
description: 'Title for the separator selection',
|
|
1562
|
+
defaultMessage: 'Separator'
|
|
1563
|
+
},
|
|
1564
|
+
decimalsSeparatorDescription: {
|
|
1565
|
+
id: 'ImportResourcesModal.uploadSeparator.decimalsSeparatorDescription',
|
|
1566
|
+
description: 'Description for the decimals separator selection',
|
|
1567
|
+
defaultMessage: 'Select the decimals separator that match your CSV file. The column separator is automatically detected.'
|
|
1568
|
+
},
|
|
1569
|
+
decimalSeparatorPoint: {
|
|
1570
|
+
id: 'ImportResourcesModal.uploadSeparator.decimalSeparatorPoint',
|
|
1571
|
+
description: 'Label for point decimal separator option',
|
|
1572
|
+
defaultMessage: 'point (.)'
|
|
1573
|
+
},
|
|
1574
|
+
decimalSeparatorComma: {
|
|
1575
|
+
id: 'ImportResourcesModal.uploadSeparator.decimalSeparatorComma',
|
|
1576
|
+
description: 'Label for comma decimal separator option',
|
|
1577
|
+
defaultMessage: 'comma (,)'
|
|
1578
|
+
},
|
|
1579
|
+
decimals: {
|
|
1580
|
+
id: 'ImportResourcesModal.uploadSeparator.decimals',
|
|
1581
|
+
description: 'Label for decimal separator select',
|
|
1582
|
+
defaultMessage: 'Decimals'
|
|
1583
|
+
}
|
|
1584
|
+
});
|
|
1585
|
+
|
|
1586
|
+
function ownKeys$c(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; }
|
|
1587
|
+
function _objectSpread$c(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$c(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$c(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1588
|
+
const DECIMAL_DELIMITER_OPTIONS = [{
|
|
1589
|
+
label: messages$6.decimalSeparatorPoint,
|
|
1590
|
+
value: DELIMITERS.POINT
|
|
1591
|
+
}, {
|
|
1592
|
+
label: messages$6.decimalSeparatorComma,
|
|
1593
|
+
value: DELIMITERS.COMMA
|
|
1594
|
+
}];
|
|
1595
|
+
const decimalSeparatorOptions = _mapInstanceProperty__default["default"](DECIMAL_DELIMITER_OPTIONS).call(DECIMAL_DELIMITER_OPTIONS, option => _objectSpread$c(_objectSpread$c({}, option), {}, {
|
|
1596
|
+
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$c({}, option.label))
|
|
1597
|
+
}));
|
|
1598
|
+
var _ref$1 = {
|
|
1599
|
+
name: "lt3z56",
|
|
1600
|
+
styles: "width:calc(50% - 16px)"
|
|
1601
|
+
} ;
|
|
1602
|
+
const UploadSeparator = () => {
|
|
1603
|
+
const intl = reactIntl.useIntl();
|
|
1604
|
+
const _useImportResourcesCo = useImportResourcesContext(),
|
|
1605
|
+
state = _useImportResourcesCo.state,
|
|
1606
|
+
actions = _useImportResourcesCo.actions;
|
|
1607
|
+
return jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
1608
|
+
scale: "m",
|
|
1609
|
+
children: [jsxRuntime.jsxs("div", {
|
|
1610
|
+
children: [jsxRuntime.jsx(uiKit.Text.Subheadline, {
|
|
1611
|
+
as: "h4",
|
|
1612
|
+
intlMessage: messages$6.separatorTitle
|
|
1613
|
+
}), jsxRuntime.jsx(uiKit.Text.Caption, {
|
|
1614
|
+
tone: "tertiary",
|
|
1615
|
+
intlMessage: messages$6.decimalsSeparatorDescription
|
|
1616
|
+
})]
|
|
1617
|
+
}), jsxRuntime.jsx("div", {
|
|
1618
|
+
css: _ref$1,
|
|
1619
|
+
children: jsxRuntime.jsx(uiKit.SelectField, {
|
|
1620
|
+
title: intl.formatMessage(messages$6.decimals),
|
|
1621
|
+
isSearchable: false,
|
|
1622
|
+
options: decimalSeparatorOptions,
|
|
1623
|
+
value: state.settings?.decimalSeparator,
|
|
1624
|
+
onChange: e => {
|
|
1625
|
+
actions.setUploadSettings({
|
|
1626
|
+
decimalSeparator: e.target.value
|
|
1627
|
+
});
|
|
1628
|
+
}
|
|
1629
|
+
})
|
|
1630
|
+
})]
|
|
1631
|
+
});
|
|
1632
|
+
};
|
|
1633
|
+
|
|
1549
1634
|
var messages$5 = reactIntl.defineMessages({
|
|
1550
1635
|
publishProducts: {
|
|
1551
1636
|
id: 'ImportResourcesModal.settings.publishProducts',
|
|
@@ -1609,28 +1694,28 @@ const Upload = () => {
|
|
|
1609
1694
|
},
|
|
1610
1695
|
children: jsxRuntime.jsx(fullstory.Masking.Unmask, {
|
|
1611
1696
|
children: jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
1612
|
-
scale: "
|
|
1697
|
+
scale: "l",
|
|
1613
1698
|
children: [isMultipleResourceTypes ? jsxRuntime.jsxs(uiKit.Grid, {
|
|
1614
1699
|
gridRowGap: uiKit.designTokens.spacingL,
|
|
1615
1700
|
gridTemplateColumns: `calc(${uiKit.designTokens.constraint3} + ${uiKit.designTokens.spacingL}) auto`,
|
|
1616
1701
|
children: [jsxRuntime.jsx(uiKit.Grid.Item, {
|
|
1617
1702
|
children: jsxRuntime.jsx(uiKit.Text.Body, {
|
|
1618
1703
|
isBold: true,
|
|
1619
|
-
intlMessage: messages$
|
|
1704
|
+
intlMessage: messages$8.dataType
|
|
1620
1705
|
})
|
|
1621
1706
|
}), jsxRuntime.jsx(uiKit.Grid.Item, {
|
|
1622
1707
|
children: jsxRuntime.jsx(ResourceTypeSelection, {})
|
|
1623
1708
|
}), jsxRuntime.jsx(uiKit.Grid.Item, {
|
|
1624
1709
|
children: jsxRuntime.jsx(uiKit.Text.Body, {
|
|
1625
1710
|
isBold: true,
|
|
1626
|
-
intlMessage: messages$
|
|
1711
|
+
intlMessage: messages$8.instructions
|
|
1627
1712
|
})
|
|
1628
1713
|
}), jsxRuntime.jsx(uiKit.Grid.Item, {
|
|
1629
1714
|
children: jsxRuntime.jsx(Instructions, {})
|
|
1630
1715
|
})]
|
|
1631
1716
|
}) : jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
1632
1717
|
children: jsxRuntime.jsx(Instructions, {})
|
|
1633
|
-
}), jsxRuntime.jsx(InfoBox, {}), jsxRuntime.jsx(fullstory.Masking.Mask, {
|
|
1718
|
+
}), jsxRuntime.jsx(InfoBox, {}), jsxRuntime.jsx(UploadSeparator, {}), jsxRuntime.jsx(fullstory.Masking.Mask, {
|
|
1634
1719
|
children: jsxRuntime.jsx(FileDropArea, {})
|
|
1635
1720
|
}), jsxRuntime.jsx(UploadSettings, {})]
|
|
1636
1721
|
})
|
|
@@ -2517,7 +2602,7 @@ const getChunkImport = locale => {
|
|
|
2517
2602
|
const intlLocale = i18n.mapLocaleToIntlLocale(locale);
|
|
2518
2603
|
switch (intlLocale) {
|
|
2519
2604
|
case 'de':
|
|
2520
|
-
return Promise.resolve().then(function () { return require('./de-
|
|
2605
|
+
return Promise.resolve().then(function () { return require('./de-a33f40b4.cjs.prod.js'); });
|
|
2521
2606
|
case 'es':
|
|
2522
2607
|
return Promise.resolve().then(function () { return require('./es-02f8a321.cjs.prod.js'); });
|
|
2523
2608
|
case 'fr-FR':
|
|
@@ -2611,6 +2696,6 @@ exports.EnabledDropArea = EnabledDropArea;
|
|
|
2611
2696
|
exports.FileDropped = FileDropped;
|
|
2612
2697
|
exports.FileIcon = FileIcon;
|
|
2613
2698
|
exports.ImportResourcesModal = ImportResourcesModal;
|
|
2614
|
-
exports.messages = messages$
|
|
2699
|
+
exports.messages = messages$8;
|
|
2615
2700
|
exports.useImportPermission = useImportPermission;
|
|
2616
2701
|
exports.useImportResourcesContext = useImportResourcesContext;
|
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.
|
|
4
|
+
"version": "1.10.0",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"README.md"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@babel/runtime": "7.
|
|
19
|
-
"@babel/runtime-corejs3": "7.28.
|
|
18
|
+
"@babel/runtime": "7.28.3",
|
|
19
|
+
"@babel/runtime-corejs3": "7.28.3",
|
|
20
20
|
"@commercetools/importapi-sdk": "5.20.0",
|
|
21
21
|
"@emotion/react": "11.14.0",
|
|
22
22
|
"@emotion/styled": "11.14.1",
|
|
@@ -34,22 +34,22 @@
|
|
|
34
34
|
"react-dropzone": "14.3.8"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@commercetools-frontend/actions-global": "24.
|
|
38
|
-
"@commercetools-frontend/application-components": "24.
|
|
39
|
-
"@commercetools-frontend/application-shell": "24.
|
|
40
|
-
"@commercetools-frontend/application-shell-connectors": "24.
|
|
41
|
-
"@commercetools-frontend/constants": "24.
|
|
37
|
+
"@commercetools-frontend/actions-global": "24.5.0",
|
|
38
|
+
"@commercetools-frontend/application-components": "24.5.0",
|
|
39
|
+
"@commercetools-frontend/application-shell": "24.5.0",
|
|
40
|
+
"@commercetools-frontend/application-shell-connectors": "24.5.0",
|
|
41
|
+
"@commercetools-frontend/constants": "24.5.0",
|
|
42
42
|
"@commercetools-frontend/fullstory": "4.0.0",
|
|
43
|
-
"@commercetools-frontend/i18n": "24.
|
|
44
|
-
"@commercetools-frontend/jest-preset-mc-app": "24.
|
|
45
|
-
"@commercetools-frontend/permissions": "24.
|
|
46
|
-
"@commercetools-frontend/sdk": "24.
|
|
47
|
-
"@commercetools-frontend/sentry": "24.
|
|
48
|
-
"@commercetools-frontend/ui-kit": "20.2.
|
|
49
|
-
"@commercetools-uikit/data-table": "20.2.
|
|
50
|
-
"@commercetools-uikit/design-system": "20.2.
|
|
51
|
-
"@commercetools-uikit/icons": "20.2.
|
|
52
|
-
"@commercetools-uikit/select-field": "20.2.
|
|
43
|
+
"@commercetools-frontend/i18n": "24.5.0",
|
|
44
|
+
"@commercetools-frontend/jest-preset-mc-app": "24.5.0",
|
|
45
|
+
"@commercetools-frontend/permissions": "24.5.0",
|
|
46
|
+
"@commercetools-frontend/sdk": "24.5.0",
|
|
47
|
+
"@commercetools-frontend/sentry": "24.5.0",
|
|
48
|
+
"@commercetools-frontend/ui-kit": "20.2.3",
|
|
49
|
+
"@commercetools-uikit/data-table": "20.2.3",
|
|
50
|
+
"@commercetools-uikit/design-system": "20.2.3",
|
|
51
|
+
"@commercetools-uikit/icons": "20.2.3",
|
|
52
|
+
"@commercetools-uikit/select-field": "20.2.3",
|
|
53
53
|
"@preconstruct/cli": "2.8.12",
|
|
54
54
|
"@types/jest": "29.5.14",
|
|
55
55
|
"@types/lodash.truncate": "^4.4.7",
|