@commercetools-frontend-extensions/export-resources-modal 5.6.6 → 5.7.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/commercetools-frontend-extensions-export-resources-modal.cjs.dev.js +62 -15
- package/dist/commercetools-frontend-extensions-export-resources-modal.cjs.prod.js +62 -15
- package/dist/commercetools-frontend-extensions-export-resources-modal.esm.js +62 -15
- package/dist/{de-32f54346.esm.js → de-69f7e506.esm.js} +12 -0
- package/dist/{de-695b76fd.cjs.prod.js → de-bf209699.cjs.dev.js} +12 -0
- package/dist/{de-a435ef4d.cjs.dev.js → de-c507128b.cjs.prod.js} +12 -0
- package/dist/declarations/src/@constants/feature-toggles.d.ts +7 -2
- package/dist/declarations/src/@types/field-validation-error-code.d.ts +1 -1
- package/dist/declarations/src/@types/field-validation-error.d.ts +2 -0
- package/dist/{en-14598f2e.cjs.prod.js → en-0158f656.cjs.prod.js} +12 -0
- package/dist/{en-0aab5dde.cjs.dev.js → en-91d5135c.cjs.dev.js} +12 -0
- package/dist/{en-2b5e8b4e.esm.js → en-cec5abba.esm.js} +12 -0
- package/dist/{es-ef77023b.cjs.prod.js → es-075cbb1f.cjs.prod.js} +12 -0
- package/dist/{es-1b83dac0.cjs.dev.js → es-1eca9390.cjs.dev.js} +12 -0
- package/dist/{es-c853d7a5.esm.js → es-a249d966.esm.js} +12 -0
- package/dist/{fr-FR-f0b84a66.cjs.dev.js → fr-FR-733eb4ef.cjs.prod.js} +12 -0
- package/dist/{fr-FR-ce630bc6.cjs.prod.js → fr-FR-a107eb30.cjs.dev.js} +12 -0
- package/dist/{fr-FR-c5d393f4.esm.js → fr-FR-e802b0c4.esm.js} +12 -0
- package/dist/{pt-BR-629d0b41.esm.js → pt-BR-03e41869.esm.js} +12 -0
- package/dist/{pt-BR-f792a0c2.cjs.prod.js → pt-BR-7c84b752.cjs.dev.js} +12 -0
- package/dist/{pt-BR-c6bf925c.cjs.dev.js → pt-BR-cb533c3d.cjs.prod.js} +12 -0
- package/package.json +15 -15
|
@@ -103,12 +103,19 @@ var _styled__default = /*#__PURE__*/_interopDefault(_styled);
|
|
|
103
103
|
var debounce__default = /*#__PURE__*/_interopDefault(debounce);
|
|
104
104
|
var get__default = /*#__PURE__*/_interopDefault(get);
|
|
105
105
|
|
|
106
|
-
function getBold(
|
|
106
|
+
function getBold(chunks) {
|
|
107
107
|
return jsxRuntime.jsx(uiKit.Text.Body, {
|
|
108
108
|
as: "span",
|
|
109
|
-
|
|
110
|
-
children:
|
|
111
|
-
},
|
|
109
|
+
fontWeight: "bold",
|
|
110
|
+
children: chunks
|
|
111
|
+
}, crypto.randomUUID());
|
|
112
|
+
}
|
|
113
|
+
function getSmallBold(chunks) {
|
|
114
|
+
return jsxRuntime.jsx(uiKit.Text.Detail, {
|
|
115
|
+
as: "span",
|
|
116
|
+
fontWeight: "bold",
|
|
117
|
+
children: chunks
|
|
118
|
+
}, crypto.randomUUID());
|
|
112
119
|
}
|
|
113
120
|
|
|
114
121
|
function getNewLine() {
|
|
@@ -610,6 +617,11 @@ var messages = reactIntl.defineMessages({
|
|
|
610
617
|
description: 'Incomplete field error',
|
|
611
618
|
defaultMessage: 'Incomplete field'
|
|
612
619
|
},
|
|
620
|
+
attributeLevelMismatch: {
|
|
621
|
+
id: 'ExportResourcesModal.attributeLevelMismatch',
|
|
622
|
+
description: 'Attribute level mismatch error',
|
|
623
|
+
defaultMessage: 'Attribute level mismatch'
|
|
624
|
+
},
|
|
613
625
|
notSupportedFieldsTitle: {
|
|
614
626
|
id: 'ExportResourcesModal.notSupportedFieldsTitle',
|
|
615
627
|
description: 'Title for not supported fields error',
|
|
@@ -640,6 +652,16 @@ var messages = reactIntl.defineMessages({
|
|
|
640
652
|
description: 'Title for field definitions not found error',
|
|
641
653
|
defaultMessage: 'The following custom field(s) cannot be found in this project:'
|
|
642
654
|
},
|
|
655
|
+
attributeLevelMismatchProductLevelTitle: {
|
|
656
|
+
id: 'ExportResourcesModal.attributeLevelMismatchProductLevelTitle',
|
|
657
|
+
description: 'Title for attribute level mismatch error when attribute needs to be at Product level',
|
|
658
|
+
defaultMessage: "Attribute needs to be defined at the Product level. Change the mapping by using this format <b>productAttributes.'{'nameOfAttribute'}'</b>."
|
|
659
|
+
},
|
|
660
|
+
attributeLevelMismatchVariantLevelTitle: {
|
|
661
|
+
id: 'ExportResourcesModal.attributeLevelMismatchVariantLevelTitle',
|
|
662
|
+
description: 'Title for attribute level mismatch error when attribute needs to be at Variant level',
|
|
663
|
+
defaultMessage: "Attribute needs to be defined at the Variant level. Change the mapping by using this format <b>attributes.'{'nameOfAttribute'}'</b>."
|
|
664
|
+
},
|
|
643
665
|
unknownError: {
|
|
644
666
|
id: 'ExportResourcesModal.unknownError',
|
|
645
667
|
description: 'Unknown error',
|
|
@@ -893,7 +915,10 @@ const FIELD_SELECTION_MODES = {
|
|
|
893
915
|
|
|
894
916
|
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; }
|
|
895
917
|
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; }
|
|
896
|
-
const
|
|
918
|
+
const FILE_IMPORT_JOB_FLOW = 'fileImportJobFlow';
|
|
919
|
+
const DEFAULT_SHORT_LIVED_FLAGS = {
|
|
920
|
+
[FILE_IMPORT_JOB_FLOW]: false
|
|
921
|
+
};
|
|
897
922
|
const DEFAULT_LONG_LIVED_FLAGS = {};
|
|
898
923
|
_objectSpread$f(_objectSpread$f({}, DEFAULT_SHORT_LIVED_FLAGS), DEFAULT_LONG_LIVED_FLAGS);
|
|
899
924
|
|
|
@@ -1515,7 +1540,8 @@ function groupFieldValidationErrors(errors, intl) {
|
|
|
1515
1540
|
var _context2, _context4;
|
|
1516
1541
|
const errorsByCode = _reduceInstanceProperty__default["default"](errors).call(errors, (groups, error) => {
|
|
1517
1542
|
var _context;
|
|
1518
|
-
const
|
|
1543
|
+
const groupKey = error.code === 'AttributeLevelMismatch' && error.actualLevel ? `${error.code}-${error.actualLevel}` : error.code;
|
|
1544
|
+
const group = groups[groupKey] || {
|
|
1519
1545
|
code: error.code,
|
|
1520
1546
|
originalErrors: [],
|
|
1521
1547
|
fieldNames: []
|
|
@@ -1524,7 +1550,7 @@ function groupFieldValidationErrors(errors, intl) {
|
|
|
1524
1550
|
group.fieldNames.push(error.field);
|
|
1525
1551
|
}
|
|
1526
1552
|
group.originalErrors.push(error);
|
|
1527
|
-
groups[
|
|
1553
|
+
groups[groupKey] = group;
|
|
1528
1554
|
return groups;
|
|
1529
1555
|
}, {});
|
|
1530
1556
|
_forEachInstanceProperty__default["default"](_context2 = _Object$values__default["default"](errorsByCode)).call(_context2, group => {
|
|
@@ -1552,6 +1578,22 @@ function groupFieldValidationErrors(errors, intl) {
|
|
|
1552
1578
|
case 'FieldDefinitionNotFound':
|
|
1553
1579
|
messageTitle = intl.formatMessage(messages.fieldDefinitionNotFoundTitle);
|
|
1554
1580
|
break;
|
|
1581
|
+
case 'AttributeLevelMismatch':
|
|
1582
|
+
{
|
|
1583
|
+
const referenceError = group.originalErrors[0];
|
|
1584
|
+
if (referenceError?.actualLevel === 'Product') {
|
|
1585
|
+
messageTitle = intl.formatMessage(messages.attributeLevelMismatchProductLevelTitle, {
|
|
1586
|
+
b: getSmallBold
|
|
1587
|
+
});
|
|
1588
|
+
} else if (referenceError?.actualLevel === 'Variant') {
|
|
1589
|
+
messageTitle = intl.formatMessage(messages.attributeLevelMismatchVariantLevelTitle, {
|
|
1590
|
+
b: getSmallBold
|
|
1591
|
+
});
|
|
1592
|
+
} else {
|
|
1593
|
+
messageTitle = referenceError?.message || intl.formatMessage(messages.unknownError);
|
|
1594
|
+
}
|
|
1595
|
+
break;
|
|
1596
|
+
}
|
|
1555
1597
|
default:
|
|
1556
1598
|
messageTitle = group.originalErrors[0]?.message || intl.formatMessage(messages.unknownError);
|
|
1557
1599
|
}
|
|
@@ -3202,9 +3244,12 @@ const getColumns = () => [{
|
|
|
3202
3244
|
const ErrorTable = props => {
|
|
3203
3245
|
var _context;
|
|
3204
3246
|
const intl = reactIntl.useIntl();
|
|
3205
|
-
const rows = _mapInstanceProperty__default["default"](_context = props.errors).call(_context, row =>
|
|
3206
|
-
id: row.code
|
|
3207
|
-
|
|
3247
|
+
const rows = _mapInstanceProperty__default["default"](_context = props.errors).call(_context, row => {
|
|
3248
|
+
const id = row.code === 'AttributeLevelMismatch' && row.originalErrors[0]?.actualLevel ? `${row.code}-${row.originalErrors[0].actualLevel}` : row.code;
|
|
3249
|
+
return _objectSpread$2(_objectSpread$2({}, row), {}, {
|
|
3250
|
+
id
|
|
3251
|
+
});
|
|
3252
|
+
});
|
|
3208
3253
|
return jsxRuntime.jsx(uiKit.Spacings.Stack, {
|
|
3209
3254
|
scale: "l",
|
|
3210
3255
|
children: jsxRuntime.jsx(uiKit.DataTable, {
|
|
@@ -3262,6 +3307,8 @@ function getErrorTypeLabel(errorCode, intl) {
|
|
|
3262
3307
|
return intl.formatMessage(messages.fieldDefinitionNotFound);
|
|
3263
3308
|
case 'IncompleteField':
|
|
3264
3309
|
return intl.formatMessage(messages.incompleteField);
|
|
3310
|
+
case 'AttributeLevelMismatch':
|
|
3311
|
+
return intl.formatMessage(messages.attributeLevelMismatch);
|
|
3265
3312
|
default:
|
|
3266
3313
|
return errorCode;
|
|
3267
3314
|
}
|
|
@@ -3438,17 +3485,17 @@ const getChunkImport = locale => {
|
|
|
3438
3485
|
const intlLocale = i18n.mapLocaleToIntlLocale(locale);
|
|
3439
3486
|
switch (intlLocale) {
|
|
3440
3487
|
case 'de':
|
|
3441
|
-
return Promise.resolve().then(function () { return require('./de-
|
|
3488
|
+
return Promise.resolve().then(function () { return require('./de-bf209699.cjs.dev.js'); });
|
|
3442
3489
|
case 'es':
|
|
3443
|
-
return Promise.resolve().then(function () { return require('./es-
|
|
3490
|
+
return Promise.resolve().then(function () { return require('./es-1eca9390.cjs.dev.js'); });
|
|
3444
3491
|
case 'fr-FR':
|
|
3445
|
-
return Promise.resolve().then(function () { return require('./fr-FR-
|
|
3492
|
+
return Promise.resolve().then(function () { return require('./fr-FR-a107eb30.cjs.dev.js'); });
|
|
3446
3493
|
case 'ja':
|
|
3447
3494
|
return Promise.resolve().then(function () { return require('./ja-9bd5f452.cjs.dev.js'); });
|
|
3448
3495
|
case 'pt-BR':
|
|
3449
|
-
return Promise.resolve().then(function () { return require('./pt-BR-
|
|
3496
|
+
return Promise.resolve().then(function () { return require('./pt-BR-7c84b752.cjs.dev.js'); });
|
|
3450
3497
|
default:
|
|
3451
|
-
return Promise.resolve().then(function () { return require('./en-
|
|
3498
|
+
return Promise.resolve().then(function () { return require('./en-91d5135c.cjs.dev.js'); });
|
|
3452
3499
|
}
|
|
3453
3500
|
};
|
|
3454
3501
|
const loadMessages = async locale => {
|
|
@@ -103,12 +103,19 @@ var _styled__default = /*#__PURE__*/_interopDefault(_styled);
|
|
|
103
103
|
var debounce__default = /*#__PURE__*/_interopDefault(debounce);
|
|
104
104
|
var get__default = /*#__PURE__*/_interopDefault(get);
|
|
105
105
|
|
|
106
|
-
function getBold(
|
|
106
|
+
function getBold(chunks) {
|
|
107
107
|
return jsxRuntime.jsx(uiKit.Text.Body, {
|
|
108
108
|
as: "span",
|
|
109
|
-
|
|
110
|
-
children:
|
|
111
|
-
},
|
|
109
|
+
fontWeight: "bold",
|
|
110
|
+
children: chunks
|
|
111
|
+
}, crypto.randomUUID());
|
|
112
|
+
}
|
|
113
|
+
function getSmallBold(chunks) {
|
|
114
|
+
return jsxRuntime.jsx(uiKit.Text.Detail, {
|
|
115
|
+
as: "span",
|
|
116
|
+
fontWeight: "bold",
|
|
117
|
+
children: chunks
|
|
118
|
+
}, crypto.randomUUID());
|
|
112
119
|
}
|
|
113
120
|
|
|
114
121
|
function getNewLine() {
|
|
@@ -610,6 +617,11 @@ var messages = reactIntl.defineMessages({
|
|
|
610
617
|
description: 'Incomplete field error',
|
|
611
618
|
defaultMessage: 'Incomplete field'
|
|
612
619
|
},
|
|
620
|
+
attributeLevelMismatch: {
|
|
621
|
+
id: 'ExportResourcesModal.attributeLevelMismatch',
|
|
622
|
+
description: 'Attribute level mismatch error',
|
|
623
|
+
defaultMessage: 'Attribute level mismatch'
|
|
624
|
+
},
|
|
613
625
|
notSupportedFieldsTitle: {
|
|
614
626
|
id: 'ExportResourcesModal.notSupportedFieldsTitle',
|
|
615
627
|
description: 'Title for not supported fields error',
|
|
@@ -640,6 +652,16 @@ var messages = reactIntl.defineMessages({
|
|
|
640
652
|
description: 'Title for field definitions not found error',
|
|
641
653
|
defaultMessage: 'The following custom field(s) cannot be found in this project:'
|
|
642
654
|
},
|
|
655
|
+
attributeLevelMismatchProductLevelTitle: {
|
|
656
|
+
id: 'ExportResourcesModal.attributeLevelMismatchProductLevelTitle',
|
|
657
|
+
description: 'Title for attribute level mismatch error when attribute needs to be at Product level',
|
|
658
|
+
defaultMessage: "Attribute needs to be defined at the Product level. Change the mapping by using this format <b>productAttributes.'{'nameOfAttribute'}'</b>."
|
|
659
|
+
},
|
|
660
|
+
attributeLevelMismatchVariantLevelTitle: {
|
|
661
|
+
id: 'ExportResourcesModal.attributeLevelMismatchVariantLevelTitle',
|
|
662
|
+
description: 'Title for attribute level mismatch error when attribute needs to be at Variant level',
|
|
663
|
+
defaultMessage: "Attribute needs to be defined at the Variant level. Change the mapping by using this format <b>attributes.'{'nameOfAttribute'}'</b>."
|
|
664
|
+
},
|
|
643
665
|
unknownError: {
|
|
644
666
|
id: 'ExportResourcesModal.unknownError',
|
|
645
667
|
description: 'Unknown error',
|
|
@@ -893,7 +915,10 @@ const FIELD_SELECTION_MODES = {
|
|
|
893
915
|
|
|
894
916
|
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; }
|
|
895
917
|
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; }
|
|
896
|
-
const
|
|
918
|
+
const FILE_IMPORT_JOB_FLOW = 'fileImportJobFlow';
|
|
919
|
+
const DEFAULT_SHORT_LIVED_FLAGS = {
|
|
920
|
+
[FILE_IMPORT_JOB_FLOW]: false
|
|
921
|
+
};
|
|
897
922
|
const DEFAULT_LONG_LIVED_FLAGS = {};
|
|
898
923
|
_objectSpread$f(_objectSpread$f({}, DEFAULT_SHORT_LIVED_FLAGS), DEFAULT_LONG_LIVED_FLAGS);
|
|
899
924
|
|
|
@@ -1515,7 +1540,8 @@ function groupFieldValidationErrors(errors, intl) {
|
|
|
1515
1540
|
var _context2, _context4;
|
|
1516
1541
|
const errorsByCode = _reduceInstanceProperty__default["default"](errors).call(errors, (groups, error) => {
|
|
1517
1542
|
var _context;
|
|
1518
|
-
const
|
|
1543
|
+
const groupKey = error.code === 'AttributeLevelMismatch' && error.actualLevel ? `${error.code}-${error.actualLevel}` : error.code;
|
|
1544
|
+
const group = groups[groupKey] || {
|
|
1519
1545
|
code: error.code,
|
|
1520
1546
|
originalErrors: [],
|
|
1521
1547
|
fieldNames: []
|
|
@@ -1524,7 +1550,7 @@ function groupFieldValidationErrors(errors, intl) {
|
|
|
1524
1550
|
group.fieldNames.push(error.field);
|
|
1525
1551
|
}
|
|
1526
1552
|
group.originalErrors.push(error);
|
|
1527
|
-
groups[
|
|
1553
|
+
groups[groupKey] = group;
|
|
1528
1554
|
return groups;
|
|
1529
1555
|
}, {});
|
|
1530
1556
|
_forEachInstanceProperty__default["default"](_context2 = _Object$values__default["default"](errorsByCode)).call(_context2, group => {
|
|
@@ -1552,6 +1578,22 @@ function groupFieldValidationErrors(errors, intl) {
|
|
|
1552
1578
|
case 'FieldDefinitionNotFound':
|
|
1553
1579
|
messageTitle = intl.formatMessage(messages.fieldDefinitionNotFoundTitle);
|
|
1554
1580
|
break;
|
|
1581
|
+
case 'AttributeLevelMismatch':
|
|
1582
|
+
{
|
|
1583
|
+
const referenceError = group.originalErrors[0];
|
|
1584
|
+
if (referenceError?.actualLevel === 'Product') {
|
|
1585
|
+
messageTitle = intl.formatMessage(messages.attributeLevelMismatchProductLevelTitle, {
|
|
1586
|
+
b: getSmallBold
|
|
1587
|
+
});
|
|
1588
|
+
} else if (referenceError?.actualLevel === 'Variant') {
|
|
1589
|
+
messageTitle = intl.formatMessage(messages.attributeLevelMismatchVariantLevelTitle, {
|
|
1590
|
+
b: getSmallBold
|
|
1591
|
+
});
|
|
1592
|
+
} else {
|
|
1593
|
+
messageTitle = referenceError?.message || intl.formatMessage(messages.unknownError);
|
|
1594
|
+
}
|
|
1595
|
+
break;
|
|
1596
|
+
}
|
|
1555
1597
|
default:
|
|
1556
1598
|
messageTitle = group.originalErrors[0]?.message || intl.formatMessage(messages.unknownError);
|
|
1557
1599
|
}
|
|
@@ -3169,9 +3211,12 @@ const getColumns = () => [{
|
|
|
3169
3211
|
const ErrorTable = props => {
|
|
3170
3212
|
var _context;
|
|
3171
3213
|
const intl = reactIntl.useIntl();
|
|
3172
|
-
const rows = _mapInstanceProperty__default["default"](_context = props.errors).call(_context, row =>
|
|
3173
|
-
id: row.code
|
|
3174
|
-
|
|
3214
|
+
const rows = _mapInstanceProperty__default["default"](_context = props.errors).call(_context, row => {
|
|
3215
|
+
const id = row.code === 'AttributeLevelMismatch' && row.originalErrors[0]?.actualLevel ? `${row.code}-${row.originalErrors[0].actualLevel}` : row.code;
|
|
3216
|
+
return _objectSpread$2(_objectSpread$2({}, row), {}, {
|
|
3217
|
+
id
|
|
3218
|
+
});
|
|
3219
|
+
});
|
|
3175
3220
|
return jsxRuntime.jsx(uiKit.Spacings.Stack, {
|
|
3176
3221
|
scale: "l",
|
|
3177
3222
|
children: jsxRuntime.jsx(uiKit.DataTable, {
|
|
@@ -3229,6 +3274,8 @@ function getErrorTypeLabel(errorCode, intl) {
|
|
|
3229
3274
|
return intl.formatMessage(messages.fieldDefinitionNotFound);
|
|
3230
3275
|
case 'IncompleteField':
|
|
3231
3276
|
return intl.formatMessage(messages.incompleteField);
|
|
3277
|
+
case 'AttributeLevelMismatch':
|
|
3278
|
+
return intl.formatMessage(messages.attributeLevelMismatch);
|
|
3232
3279
|
default:
|
|
3233
3280
|
return errorCode;
|
|
3234
3281
|
}
|
|
@@ -3405,17 +3452,17 @@ const getChunkImport = locale => {
|
|
|
3405
3452
|
const intlLocale = i18n.mapLocaleToIntlLocale(locale);
|
|
3406
3453
|
switch (intlLocale) {
|
|
3407
3454
|
case 'de':
|
|
3408
|
-
return Promise.resolve().then(function () { return require('./de-
|
|
3455
|
+
return Promise.resolve().then(function () { return require('./de-c507128b.cjs.prod.js'); });
|
|
3409
3456
|
case 'es':
|
|
3410
|
-
return Promise.resolve().then(function () { return require('./es-
|
|
3457
|
+
return Promise.resolve().then(function () { return require('./es-075cbb1f.cjs.prod.js'); });
|
|
3411
3458
|
case 'fr-FR':
|
|
3412
|
-
return Promise.resolve().then(function () { return require('./fr-FR-
|
|
3459
|
+
return Promise.resolve().then(function () { return require('./fr-FR-733eb4ef.cjs.prod.js'); });
|
|
3413
3460
|
case 'ja':
|
|
3414
3461
|
return Promise.resolve().then(function () { return require('./ja-37632763.cjs.prod.js'); });
|
|
3415
3462
|
case 'pt-BR':
|
|
3416
|
-
return Promise.resolve().then(function () { return require('./pt-BR-
|
|
3463
|
+
return Promise.resolve().then(function () { return require('./pt-BR-cb533c3d.cjs.prod.js'); });
|
|
3417
3464
|
default:
|
|
3418
|
-
return Promise.resolve().then(function () { return require('./en-
|
|
3465
|
+
return Promise.resolve().then(function () { return require('./en-0158f656.cjs.prod.js'); });
|
|
3419
3466
|
}
|
|
3420
3467
|
};
|
|
3421
3468
|
const loadMessages = async locale => {
|
|
@@ -60,12 +60,19 @@ import get from 'lodash/get';
|
|
|
60
60
|
import { parseChunkImport, mapLocaleToIntlLocale } from '@commercetools-frontend/i18n';
|
|
61
61
|
import { reportErrorToSentry } from '@commercetools-frontend/sentry';
|
|
62
62
|
|
|
63
|
-
function getBold(
|
|
63
|
+
function getBold(chunks) {
|
|
64
64
|
return jsx(Text.Body, {
|
|
65
65
|
as: "span",
|
|
66
|
-
|
|
67
|
-
children:
|
|
68
|
-
},
|
|
66
|
+
fontWeight: "bold",
|
|
67
|
+
children: chunks
|
|
68
|
+
}, crypto.randomUUID());
|
|
69
|
+
}
|
|
70
|
+
function getSmallBold(chunks) {
|
|
71
|
+
return jsx(Text.Detail, {
|
|
72
|
+
as: "span",
|
|
73
|
+
fontWeight: "bold",
|
|
74
|
+
children: chunks
|
|
75
|
+
}, crypto.randomUUID());
|
|
69
76
|
}
|
|
70
77
|
|
|
71
78
|
function getNewLine() {
|
|
@@ -567,6 +574,11 @@ var messages = defineMessages({
|
|
|
567
574
|
description: 'Incomplete field error',
|
|
568
575
|
defaultMessage: 'Incomplete field'
|
|
569
576
|
},
|
|
577
|
+
attributeLevelMismatch: {
|
|
578
|
+
id: 'ExportResourcesModal.attributeLevelMismatch',
|
|
579
|
+
description: 'Attribute level mismatch error',
|
|
580
|
+
defaultMessage: 'Attribute level mismatch'
|
|
581
|
+
},
|
|
570
582
|
notSupportedFieldsTitle: {
|
|
571
583
|
id: 'ExportResourcesModal.notSupportedFieldsTitle',
|
|
572
584
|
description: 'Title for not supported fields error',
|
|
@@ -597,6 +609,16 @@ var messages = defineMessages({
|
|
|
597
609
|
description: 'Title for field definitions not found error',
|
|
598
610
|
defaultMessage: 'The following custom field(s) cannot be found in this project:'
|
|
599
611
|
},
|
|
612
|
+
attributeLevelMismatchProductLevelTitle: {
|
|
613
|
+
id: 'ExportResourcesModal.attributeLevelMismatchProductLevelTitle',
|
|
614
|
+
description: 'Title for attribute level mismatch error when attribute needs to be at Product level',
|
|
615
|
+
defaultMessage: "Attribute needs to be defined at the Product level. Change the mapping by using this format <b>productAttributes.'{'nameOfAttribute'}'</b>."
|
|
616
|
+
},
|
|
617
|
+
attributeLevelMismatchVariantLevelTitle: {
|
|
618
|
+
id: 'ExportResourcesModal.attributeLevelMismatchVariantLevelTitle',
|
|
619
|
+
description: 'Title for attribute level mismatch error when attribute needs to be at Variant level',
|
|
620
|
+
defaultMessage: "Attribute needs to be defined at the Variant level. Change the mapping by using this format <b>attributes.'{'nameOfAttribute'}'</b>."
|
|
621
|
+
},
|
|
600
622
|
unknownError: {
|
|
601
623
|
id: 'ExportResourcesModal.unknownError',
|
|
602
624
|
description: 'Unknown error',
|
|
@@ -850,7 +872,10 @@ const FIELD_SELECTION_MODES = {
|
|
|
850
872
|
|
|
851
873
|
function ownKeys$f(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
852
874
|
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(_context = ownKeys$f(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$f(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
853
|
-
const
|
|
875
|
+
const FILE_IMPORT_JOB_FLOW = 'fileImportJobFlow';
|
|
876
|
+
const DEFAULT_SHORT_LIVED_FLAGS = {
|
|
877
|
+
[FILE_IMPORT_JOB_FLOW]: false
|
|
878
|
+
};
|
|
854
879
|
const DEFAULT_LONG_LIVED_FLAGS = {};
|
|
855
880
|
_objectSpread$f(_objectSpread$f({}, DEFAULT_SHORT_LIVED_FLAGS), DEFAULT_LONG_LIVED_FLAGS);
|
|
856
881
|
|
|
@@ -1472,7 +1497,8 @@ function groupFieldValidationErrors(errors, intl) {
|
|
|
1472
1497
|
var _context2, _context4;
|
|
1473
1498
|
const errorsByCode = _reduceInstanceProperty(errors).call(errors, (groups, error) => {
|
|
1474
1499
|
var _context;
|
|
1475
|
-
const
|
|
1500
|
+
const groupKey = error.code === 'AttributeLevelMismatch' && error.actualLevel ? `${error.code}-${error.actualLevel}` : error.code;
|
|
1501
|
+
const group = groups[groupKey] || {
|
|
1476
1502
|
code: error.code,
|
|
1477
1503
|
originalErrors: [],
|
|
1478
1504
|
fieldNames: []
|
|
@@ -1481,7 +1507,7 @@ function groupFieldValidationErrors(errors, intl) {
|
|
|
1481
1507
|
group.fieldNames.push(error.field);
|
|
1482
1508
|
}
|
|
1483
1509
|
group.originalErrors.push(error);
|
|
1484
|
-
groups[
|
|
1510
|
+
groups[groupKey] = group;
|
|
1485
1511
|
return groups;
|
|
1486
1512
|
}, {});
|
|
1487
1513
|
_forEachInstanceProperty(_context2 = _Object$values(errorsByCode)).call(_context2, group => {
|
|
@@ -1509,6 +1535,22 @@ function groupFieldValidationErrors(errors, intl) {
|
|
|
1509
1535
|
case 'FieldDefinitionNotFound':
|
|
1510
1536
|
messageTitle = intl.formatMessage(messages.fieldDefinitionNotFoundTitle);
|
|
1511
1537
|
break;
|
|
1538
|
+
case 'AttributeLevelMismatch':
|
|
1539
|
+
{
|
|
1540
|
+
const referenceError = group.originalErrors[0];
|
|
1541
|
+
if (referenceError?.actualLevel === 'Product') {
|
|
1542
|
+
messageTitle = intl.formatMessage(messages.attributeLevelMismatchProductLevelTitle, {
|
|
1543
|
+
b: getSmallBold
|
|
1544
|
+
});
|
|
1545
|
+
} else if (referenceError?.actualLevel === 'Variant') {
|
|
1546
|
+
messageTitle = intl.formatMessage(messages.attributeLevelMismatchVariantLevelTitle, {
|
|
1547
|
+
b: getSmallBold
|
|
1548
|
+
});
|
|
1549
|
+
} else {
|
|
1550
|
+
messageTitle = referenceError?.message || intl.formatMessage(messages.unknownError);
|
|
1551
|
+
}
|
|
1552
|
+
break;
|
|
1553
|
+
}
|
|
1512
1554
|
default:
|
|
1513
1555
|
messageTitle = group.originalErrors[0]?.message || intl.formatMessage(messages.unknownError);
|
|
1514
1556
|
}
|
|
@@ -3159,9 +3201,12 @@ const getColumns = () => [{
|
|
|
3159
3201
|
const ErrorTable = props => {
|
|
3160
3202
|
var _context;
|
|
3161
3203
|
const intl = useIntl();
|
|
3162
|
-
const rows = _mapInstanceProperty(_context = props.errors).call(_context, row =>
|
|
3163
|
-
id: row.code
|
|
3164
|
-
|
|
3204
|
+
const rows = _mapInstanceProperty(_context = props.errors).call(_context, row => {
|
|
3205
|
+
const id = row.code === 'AttributeLevelMismatch' && row.originalErrors[0]?.actualLevel ? `${row.code}-${row.originalErrors[0].actualLevel}` : row.code;
|
|
3206
|
+
return _objectSpread$2(_objectSpread$2({}, row), {}, {
|
|
3207
|
+
id
|
|
3208
|
+
});
|
|
3209
|
+
});
|
|
3165
3210
|
return jsx(Spacings.Stack, {
|
|
3166
3211
|
scale: "l",
|
|
3167
3212
|
children: jsx(DataTable, {
|
|
@@ -3219,6 +3264,8 @@ function getErrorTypeLabel(errorCode, intl) {
|
|
|
3219
3264
|
return intl.formatMessage(messages.fieldDefinitionNotFound);
|
|
3220
3265
|
case 'IncompleteField':
|
|
3221
3266
|
return intl.formatMessage(messages.incompleteField);
|
|
3267
|
+
case 'AttributeLevelMismatch':
|
|
3268
|
+
return intl.formatMessage(messages.attributeLevelMismatch);
|
|
3222
3269
|
default:
|
|
3223
3270
|
return errorCode;
|
|
3224
3271
|
}
|
|
@@ -3395,17 +3442,17 @@ const getChunkImport = locale => {
|
|
|
3395
3442
|
const intlLocale = mapLocaleToIntlLocale(locale);
|
|
3396
3443
|
switch (intlLocale) {
|
|
3397
3444
|
case 'de':
|
|
3398
|
-
return import('./de-
|
|
3445
|
+
return import('./de-69f7e506.esm.js');
|
|
3399
3446
|
case 'es':
|
|
3400
|
-
return import('./es-
|
|
3447
|
+
return import('./es-a249d966.esm.js');
|
|
3401
3448
|
case 'fr-FR':
|
|
3402
|
-
return import('./fr-FR-
|
|
3449
|
+
return import('./fr-FR-e802b0c4.esm.js');
|
|
3403
3450
|
case 'ja':
|
|
3404
3451
|
return import('./ja-73c088a7.esm.js');
|
|
3405
3452
|
case 'pt-BR':
|
|
3406
|
-
return import('./pt-BR-
|
|
3453
|
+
return import('./pt-BR-03e41869.esm.js');
|
|
3407
3454
|
default:
|
|
3408
|
-
return import('./en-
|
|
3455
|
+
return import('./en-cec5abba.esm.js');
|
|
3409
3456
|
}
|
|
3410
3457
|
};
|
|
3411
3458
|
const loadMessages = async locale => {
|
|
@@ -7,6 +7,18 @@ var de = {
|
|
|
7
7
|
developer_comment: "Title for attribute definitions not found error",
|
|
8
8
|
string: "Das folgende Attribut kann/die folgenden Attribute können in diesem Projekt nicht gefunden werden:"
|
|
9
9
|
},
|
|
10
|
+
"ExportResourcesModal.attributeLevelMismatch": {
|
|
11
|
+
developer_comment: "Attribute level mismatch error",
|
|
12
|
+
string: "Attribute level mismatch"
|
|
13
|
+
},
|
|
14
|
+
"ExportResourcesModal.attributeLevelMismatchProductLevelTitle": {
|
|
15
|
+
developer_comment: "Title for attribute level mismatch error when attribute needs to be at Product level",
|
|
16
|
+
string: "Attribute needs to be defined at the Product level. Change the mapping by using this format <b>productAttributes.'{'nameOfAttribute'}'</b>."
|
|
17
|
+
},
|
|
18
|
+
"ExportResourcesModal.attributeLevelMismatchVariantLevelTitle": {
|
|
19
|
+
developer_comment: "Title for attribute level mismatch error when attribute needs to be at Variant level",
|
|
20
|
+
string: "Attribute needs to be defined at the Variant level. Change the mapping by using this format <b>attributes.'{'nameOfAttribute'}'</b>."
|
|
21
|
+
},
|
|
10
22
|
"ExportResourcesModal.back": {
|
|
11
23
|
developer_comment: "Label for \"Back\" button",
|
|
12
24
|
string: "Zurück"
|
|
@@ -9,6 +9,18 @@ var de = {
|
|
|
9
9
|
developer_comment: "Title for attribute definitions not found error",
|
|
10
10
|
string: "Das folgende Attribut kann/die folgenden Attribute können in diesem Projekt nicht gefunden werden:"
|
|
11
11
|
},
|
|
12
|
+
"ExportResourcesModal.attributeLevelMismatch": {
|
|
13
|
+
developer_comment: "Attribute level mismatch error",
|
|
14
|
+
string: "Attribute level mismatch"
|
|
15
|
+
},
|
|
16
|
+
"ExportResourcesModal.attributeLevelMismatchProductLevelTitle": {
|
|
17
|
+
developer_comment: "Title for attribute level mismatch error when attribute needs to be at Product level",
|
|
18
|
+
string: "Attribute needs to be defined at the Product level. Change the mapping by using this format <b>productAttributes.'{'nameOfAttribute'}'</b>."
|
|
19
|
+
},
|
|
20
|
+
"ExportResourcesModal.attributeLevelMismatchVariantLevelTitle": {
|
|
21
|
+
developer_comment: "Title for attribute level mismatch error when attribute needs to be at Variant level",
|
|
22
|
+
string: "Attribute needs to be defined at the Variant level. Change the mapping by using this format <b>attributes.'{'nameOfAttribute'}'</b>."
|
|
23
|
+
},
|
|
12
24
|
"ExportResourcesModal.back": {
|
|
13
25
|
developer_comment: "Label for \"Back\" button",
|
|
14
26
|
string: "Zurück"
|
|
@@ -9,6 +9,18 @@ var de = {
|
|
|
9
9
|
developer_comment: "Title for attribute definitions not found error",
|
|
10
10
|
string: "Das folgende Attribut kann/die folgenden Attribute können in diesem Projekt nicht gefunden werden:"
|
|
11
11
|
},
|
|
12
|
+
"ExportResourcesModal.attributeLevelMismatch": {
|
|
13
|
+
developer_comment: "Attribute level mismatch error",
|
|
14
|
+
string: "Attribute level mismatch"
|
|
15
|
+
},
|
|
16
|
+
"ExportResourcesModal.attributeLevelMismatchProductLevelTitle": {
|
|
17
|
+
developer_comment: "Title for attribute level mismatch error when attribute needs to be at Product level",
|
|
18
|
+
string: "Attribute needs to be defined at the Product level. Change the mapping by using this format <b>productAttributes.'{'nameOfAttribute'}'</b>."
|
|
19
|
+
},
|
|
20
|
+
"ExportResourcesModal.attributeLevelMismatchVariantLevelTitle": {
|
|
21
|
+
developer_comment: "Title for attribute level mismatch error when attribute needs to be at Variant level",
|
|
22
|
+
string: "Attribute needs to be defined at the Variant level. Change the mapping by using this format <b>attributes.'{'nameOfAttribute'}'</b>."
|
|
23
|
+
},
|
|
12
24
|
"ExportResourcesModal.back": {
|
|
13
25
|
developer_comment: "Label for \"Back\" button",
|
|
14
26
|
string: "Zurück"
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const FILE_IMPORT_JOB_FLOW = "fileImportJobFlow";
|
|
2
|
+
export declare const DEFAULT_SHORT_LIVED_FLAGS: {
|
|
3
|
+
fileImportJobFlow: boolean;
|
|
4
|
+
};
|
|
2
5
|
export declare const DEFAULT_LONG_LIVED_FLAGS: {};
|
|
3
|
-
export declare const ALL_DEFAULT_FEATURE_FLAGS: {
|
|
6
|
+
export declare const ALL_DEFAULT_FEATURE_FLAGS: {
|
|
7
|
+
fileImportJobFlow: boolean;
|
|
8
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type FieldValidationErrorCode = 'DuplicateFields' | 'NotSupportedField' | 'FieldDefinitionNotFound' | 'AttributeDefinitionNotFound' | 'LocalizedFieldWithoutLocale' | 'IncompleteField';
|
|
1
|
+
export type FieldValidationErrorCode = 'DuplicateFields' | 'NotSupportedField' | 'FieldDefinitionNotFound' | 'AttributeDefinitionNotFound' | 'LocalizedFieldWithoutLocale' | 'IncompleteField' | 'AttributeLevelMismatch';
|
|
@@ -9,6 +9,18 @@ var en = {
|
|
|
9
9
|
developer_comment: "Title for attribute definitions not found error",
|
|
10
10
|
string: "The following attribute(s) cannot be found in this project:"
|
|
11
11
|
},
|
|
12
|
+
"ExportResourcesModal.attributeLevelMismatch": {
|
|
13
|
+
developer_comment: "Attribute level mismatch error",
|
|
14
|
+
string: "Attribute level mismatch"
|
|
15
|
+
},
|
|
16
|
+
"ExportResourcesModal.attributeLevelMismatchProductLevelTitle": {
|
|
17
|
+
developer_comment: "Title for attribute level mismatch error when attribute needs to be at Product level",
|
|
18
|
+
string: "Attribute needs to be defined at the Product level. Change the mapping by using this format <b>productAttributes.'{'nameOfAttribute'}'</b>."
|
|
19
|
+
},
|
|
20
|
+
"ExportResourcesModal.attributeLevelMismatchVariantLevelTitle": {
|
|
21
|
+
developer_comment: "Title for attribute level mismatch error when attribute needs to be at Variant level",
|
|
22
|
+
string: "Attribute needs to be defined at the Variant level. Change the mapping by using this format <b>attributes.'{'nameOfAttribute'}'</b>."
|
|
23
|
+
},
|
|
12
24
|
"ExportResourcesModal.back": {
|
|
13
25
|
developer_comment: "Label for \"Back\" button",
|
|
14
26
|
string: "Back"
|
|
@@ -9,6 +9,18 @@ var en = {
|
|
|
9
9
|
developer_comment: "Title for attribute definitions not found error",
|
|
10
10
|
string: "The following attribute(s) cannot be found in this project:"
|
|
11
11
|
},
|
|
12
|
+
"ExportResourcesModal.attributeLevelMismatch": {
|
|
13
|
+
developer_comment: "Attribute level mismatch error",
|
|
14
|
+
string: "Attribute level mismatch"
|
|
15
|
+
},
|
|
16
|
+
"ExportResourcesModal.attributeLevelMismatchProductLevelTitle": {
|
|
17
|
+
developer_comment: "Title for attribute level mismatch error when attribute needs to be at Product level",
|
|
18
|
+
string: "Attribute needs to be defined at the Product level. Change the mapping by using this format <b>productAttributes.'{'nameOfAttribute'}'</b>."
|
|
19
|
+
},
|
|
20
|
+
"ExportResourcesModal.attributeLevelMismatchVariantLevelTitle": {
|
|
21
|
+
developer_comment: "Title for attribute level mismatch error when attribute needs to be at Variant level",
|
|
22
|
+
string: "Attribute needs to be defined at the Variant level. Change the mapping by using this format <b>attributes.'{'nameOfAttribute'}'</b>."
|
|
23
|
+
},
|
|
12
24
|
"ExportResourcesModal.back": {
|
|
13
25
|
developer_comment: "Label for \"Back\" button",
|
|
14
26
|
string: "Back"
|
|
@@ -7,6 +7,18 @@ var en = {
|
|
|
7
7
|
developer_comment: "Title for attribute definitions not found error",
|
|
8
8
|
string: "The following attribute(s) cannot be found in this project:"
|
|
9
9
|
},
|
|
10
|
+
"ExportResourcesModal.attributeLevelMismatch": {
|
|
11
|
+
developer_comment: "Attribute level mismatch error",
|
|
12
|
+
string: "Attribute level mismatch"
|
|
13
|
+
},
|
|
14
|
+
"ExportResourcesModal.attributeLevelMismatchProductLevelTitle": {
|
|
15
|
+
developer_comment: "Title for attribute level mismatch error when attribute needs to be at Product level",
|
|
16
|
+
string: "Attribute needs to be defined at the Product level. Change the mapping by using this format <b>productAttributes.'{'nameOfAttribute'}'</b>."
|
|
17
|
+
},
|
|
18
|
+
"ExportResourcesModal.attributeLevelMismatchVariantLevelTitle": {
|
|
19
|
+
developer_comment: "Title for attribute level mismatch error when attribute needs to be at Variant level",
|
|
20
|
+
string: "Attribute needs to be defined at the Variant level. Change the mapping by using this format <b>attributes.'{'nameOfAttribute'}'</b>."
|
|
21
|
+
},
|
|
10
22
|
"ExportResourcesModal.back": {
|
|
11
23
|
developer_comment: "Label for \"Back\" button",
|
|
12
24
|
string: "Back"
|
|
@@ -9,6 +9,18 @@ var es = {
|
|
|
9
9
|
developer_comment: "Title for attribute definitions not found error",
|
|
10
10
|
string: "El/los siguiente/s atributo/s no se pueden encontrar en este proyecto:"
|
|
11
11
|
},
|
|
12
|
+
"ExportResourcesModal.attributeLevelMismatch": {
|
|
13
|
+
developer_comment: "Attribute level mismatch error",
|
|
14
|
+
string: "Attribute level mismatch"
|
|
15
|
+
},
|
|
16
|
+
"ExportResourcesModal.attributeLevelMismatchProductLevelTitle": {
|
|
17
|
+
developer_comment: "Title for attribute level mismatch error when attribute needs to be at Product level",
|
|
18
|
+
string: "Attribute needs to be defined at the Product level. Change the mapping by using this format <b>productAttributes.'{'nameOfAttribute'}'</b>."
|
|
19
|
+
},
|
|
20
|
+
"ExportResourcesModal.attributeLevelMismatchVariantLevelTitle": {
|
|
21
|
+
developer_comment: "Title for attribute level mismatch error when attribute needs to be at Variant level",
|
|
22
|
+
string: "Attribute needs to be defined at the Variant level. Change the mapping by using this format <b>attributes.'{'nameOfAttribute'}'</b>."
|
|
23
|
+
},
|
|
12
24
|
"ExportResourcesModal.back": {
|
|
13
25
|
developer_comment: "Label for \"Back\" button",
|
|
14
26
|
string: "Volver"
|
|
@@ -9,6 +9,18 @@ var es = {
|
|
|
9
9
|
developer_comment: "Title for attribute definitions not found error",
|
|
10
10
|
string: "El/los siguiente/s atributo/s no se pueden encontrar en este proyecto:"
|
|
11
11
|
},
|
|
12
|
+
"ExportResourcesModal.attributeLevelMismatch": {
|
|
13
|
+
developer_comment: "Attribute level mismatch error",
|
|
14
|
+
string: "Attribute level mismatch"
|
|
15
|
+
},
|
|
16
|
+
"ExportResourcesModal.attributeLevelMismatchProductLevelTitle": {
|
|
17
|
+
developer_comment: "Title for attribute level mismatch error when attribute needs to be at Product level",
|
|
18
|
+
string: "Attribute needs to be defined at the Product level. Change the mapping by using this format <b>productAttributes.'{'nameOfAttribute'}'</b>."
|
|
19
|
+
},
|
|
20
|
+
"ExportResourcesModal.attributeLevelMismatchVariantLevelTitle": {
|
|
21
|
+
developer_comment: "Title for attribute level mismatch error when attribute needs to be at Variant level",
|
|
22
|
+
string: "Attribute needs to be defined at the Variant level. Change the mapping by using this format <b>attributes.'{'nameOfAttribute'}'</b>."
|
|
23
|
+
},
|
|
12
24
|
"ExportResourcesModal.back": {
|
|
13
25
|
developer_comment: "Label for \"Back\" button",
|
|
14
26
|
string: "Volver"
|
|
@@ -7,6 +7,18 @@ var es = {
|
|
|
7
7
|
developer_comment: "Title for attribute definitions not found error",
|
|
8
8
|
string: "El/los siguiente/s atributo/s no se pueden encontrar en este proyecto:"
|
|
9
9
|
},
|
|
10
|
+
"ExportResourcesModal.attributeLevelMismatch": {
|
|
11
|
+
developer_comment: "Attribute level mismatch error",
|
|
12
|
+
string: "Attribute level mismatch"
|
|
13
|
+
},
|
|
14
|
+
"ExportResourcesModal.attributeLevelMismatchProductLevelTitle": {
|
|
15
|
+
developer_comment: "Title for attribute level mismatch error when attribute needs to be at Product level",
|
|
16
|
+
string: "Attribute needs to be defined at the Product level. Change the mapping by using this format <b>productAttributes.'{'nameOfAttribute'}'</b>."
|
|
17
|
+
},
|
|
18
|
+
"ExportResourcesModal.attributeLevelMismatchVariantLevelTitle": {
|
|
19
|
+
developer_comment: "Title for attribute level mismatch error when attribute needs to be at Variant level",
|
|
20
|
+
string: "Attribute needs to be defined at the Variant level. Change the mapping by using this format <b>attributes.'{'nameOfAttribute'}'</b>."
|
|
21
|
+
},
|
|
10
22
|
"ExportResourcesModal.back": {
|
|
11
23
|
developer_comment: "Label for \"Back\" button",
|
|
12
24
|
string: "Volver"
|
|
@@ -9,6 +9,18 @@ var frFR = {
|
|
|
9
9
|
developer_comment: "Title for attribute definitions not found error",
|
|
10
10
|
string: "Attribut(s) suivant(s) introuvables(s) dans ce projet :"
|
|
11
11
|
},
|
|
12
|
+
"ExportResourcesModal.attributeLevelMismatch": {
|
|
13
|
+
developer_comment: "Attribute level mismatch error",
|
|
14
|
+
string: "Attribute level mismatch"
|
|
15
|
+
},
|
|
16
|
+
"ExportResourcesModal.attributeLevelMismatchProductLevelTitle": {
|
|
17
|
+
developer_comment: "Title for attribute level mismatch error when attribute needs to be at Product level",
|
|
18
|
+
string: "Attribute needs to be defined at the Product level. Change the mapping by using this format <b>productAttributes.'{'nameOfAttribute'}'</b>."
|
|
19
|
+
},
|
|
20
|
+
"ExportResourcesModal.attributeLevelMismatchVariantLevelTitle": {
|
|
21
|
+
developer_comment: "Title for attribute level mismatch error when attribute needs to be at Variant level",
|
|
22
|
+
string: "Attribute needs to be defined at the Variant level. Change the mapping by using this format <b>attributes.'{'nameOfAttribute'}'</b>."
|
|
23
|
+
},
|
|
12
24
|
"ExportResourcesModal.back": {
|
|
13
25
|
developer_comment: "Label for \"Back\" button",
|
|
14
26
|
string: "Retour"
|
|
@@ -9,6 +9,18 @@ var frFR = {
|
|
|
9
9
|
developer_comment: "Title for attribute definitions not found error",
|
|
10
10
|
string: "Attribut(s) suivant(s) introuvables(s) dans ce projet :"
|
|
11
11
|
},
|
|
12
|
+
"ExportResourcesModal.attributeLevelMismatch": {
|
|
13
|
+
developer_comment: "Attribute level mismatch error",
|
|
14
|
+
string: "Attribute level mismatch"
|
|
15
|
+
},
|
|
16
|
+
"ExportResourcesModal.attributeLevelMismatchProductLevelTitle": {
|
|
17
|
+
developer_comment: "Title for attribute level mismatch error when attribute needs to be at Product level",
|
|
18
|
+
string: "Attribute needs to be defined at the Product level. Change the mapping by using this format <b>productAttributes.'{'nameOfAttribute'}'</b>."
|
|
19
|
+
},
|
|
20
|
+
"ExportResourcesModal.attributeLevelMismatchVariantLevelTitle": {
|
|
21
|
+
developer_comment: "Title for attribute level mismatch error when attribute needs to be at Variant level",
|
|
22
|
+
string: "Attribute needs to be defined at the Variant level. Change the mapping by using this format <b>attributes.'{'nameOfAttribute'}'</b>."
|
|
23
|
+
},
|
|
12
24
|
"ExportResourcesModal.back": {
|
|
13
25
|
developer_comment: "Label for \"Back\" button",
|
|
14
26
|
string: "Retour"
|
|
@@ -7,6 +7,18 @@ var frFR = {
|
|
|
7
7
|
developer_comment: "Title for attribute definitions not found error",
|
|
8
8
|
string: "Attribut(s) suivant(s) introuvables(s) dans ce projet :"
|
|
9
9
|
},
|
|
10
|
+
"ExportResourcesModal.attributeLevelMismatch": {
|
|
11
|
+
developer_comment: "Attribute level mismatch error",
|
|
12
|
+
string: "Attribute level mismatch"
|
|
13
|
+
},
|
|
14
|
+
"ExportResourcesModal.attributeLevelMismatchProductLevelTitle": {
|
|
15
|
+
developer_comment: "Title for attribute level mismatch error when attribute needs to be at Product level",
|
|
16
|
+
string: "Attribute needs to be defined at the Product level. Change the mapping by using this format <b>productAttributes.'{'nameOfAttribute'}'</b>."
|
|
17
|
+
},
|
|
18
|
+
"ExportResourcesModal.attributeLevelMismatchVariantLevelTitle": {
|
|
19
|
+
developer_comment: "Title for attribute level mismatch error when attribute needs to be at Variant level",
|
|
20
|
+
string: "Attribute needs to be defined at the Variant level. Change the mapping by using this format <b>attributes.'{'nameOfAttribute'}'</b>."
|
|
21
|
+
},
|
|
10
22
|
"ExportResourcesModal.back": {
|
|
11
23
|
developer_comment: "Label for \"Back\" button",
|
|
12
24
|
string: "Retour"
|
|
@@ -7,6 +7,18 @@ var ptBR = {
|
|
|
7
7
|
developer_comment: "Title for attribute definitions not found error",
|
|
8
8
|
string: "O(s) seguinte(s) atributo(s) não pode(m) ser encontrado(s) neste projeto:"
|
|
9
9
|
},
|
|
10
|
+
"ExportResourcesModal.attributeLevelMismatch": {
|
|
11
|
+
developer_comment: "Attribute level mismatch error",
|
|
12
|
+
string: "Attribute level mismatch"
|
|
13
|
+
},
|
|
14
|
+
"ExportResourcesModal.attributeLevelMismatchProductLevelTitle": {
|
|
15
|
+
developer_comment: "Title for attribute level mismatch error when attribute needs to be at Product level",
|
|
16
|
+
string: "Attribute needs to be defined at the Product level. Change the mapping by using this format <b>productAttributes.'{'nameOfAttribute'}'</b>."
|
|
17
|
+
},
|
|
18
|
+
"ExportResourcesModal.attributeLevelMismatchVariantLevelTitle": {
|
|
19
|
+
developer_comment: "Title for attribute level mismatch error when attribute needs to be at Variant level",
|
|
20
|
+
string: "Attribute needs to be defined at the Variant level. Change the mapping by using this format <b>attributes.'{'nameOfAttribute'}'</b>."
|
|
21
|
+
},
|
|
10
22
|
"ExportResourcesModal.back": {
|
|
11
23
|
developer_comment: "Label for \"Back\" button",
|
|
12
24
|
string: "Voltar"
|
|
@@ -9,6 +9,18 @@ var ptBR = {
|
|
|
9
9
|
developer_comment: "Title for attribute definitions not found error",
|
|
10
10
|
string: "O(s) seguinte(s) atributo(s) não pode(m) ser encontrado(s) neste projeto:"
|
|
11
11
|
},
|
|
12
|
+
"ExportResourcesModal.attributeLevelMismatch": {
|
|
13
|
+
developer_comment: "Attribute level mismatch error",
|
|
14
|
+
string: "Attribute level mismatch"
|
|
15
|
+
},
|
|
16
|
+
"ExportResourcesModal.attributeLevelMismatchProductLevelTitle": {
|
|
17
|
+
developer_comment: "Title for attribute level mismatch error when attribute needs to be at Product level",
|
|
18
|
+
string: "Attribute needs to be defined at the Product level. Change the mapping by using this format <b>productAttributes.'{'nameOfAttribute'}'</b>."
|
|
19
|
+
},
|
|
20
|
+
"ExportResourcesModal.attributeLevelMismatchVariantLevelTitle": {
|
|
21
|
+
developer_comment: "Title for attribute level mismatch error when attribute needs to be at Variant level",
|
|
22
|
+
string: "Attribute needs to be defined at the Variant level. Change the mapping by using this format <b>attributes.'{'nameOfAttribute'}'</b>."
|
|
23
|
+
},
|
|
12
24
|
"ExportResourcesModal.back": {
|
|
13
25
|
developer_comment: "Label for \"Back\" button",
|
|
14
26
|
string: "Voltar"
|
|
@@ -9,6 +9,18 @@ var ptBR = {
|
|
|
9
9
|
developer_comment: "Title for attribute definitions not found error",
|
|
10
10
|
string: "O(s) seguinte(s) atributo(s) não pode(m) ser encontrado(s) neste projeto:"
|
|
11
11
|
},
|
|
12
|
+
"ExportResourcesModal.attributeLevelMismatch": {
|
|
13
|
+
developer_comment: "Attribute level mismatch error",
|
|
14
|
+
string: "Attribute level mismatch"
|
|
15
|
+
},
|
|
16
|
+
"ExportResourcesModal.attributeLevelMismatchProductLevelTitle": {
|
|
17
|
+
developer_comment: "Title for attribute level mismatch error when attribute needs to be at Product level",
|
|
18
|
+
string: "Attribute needs to be defined at the Product level. Change the mapping by using this format <b>productAttributes.'{'nameOfAttribute'}'</b>."
|
|
19
|
+
},
|
|
20
|
+
"ExportResourcesModal.attributeLevelMismatchVariantLevelTitle": {
|
|
21
|
+
developer_comment: "Title for attribute level mismatch error when attribute needs to be at Variant level",
|
|
22
|
+
string: "Attribute needs to be defined at the Variant level. Change the mapping by using this format <b>attributes.'{'nameOfAttribute'}'</b>."
|
|
23
|
+
},
|
|
12
24
|
"ExportResourcesModal.back": {
|
|
13
25
|
developer_comment: "Label for \"Back\" button",
|
|
14
26
|
string: "Voltar"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend-extensions/export-resources-modal",
|
|
3
3
|
"description": "Shared export modal for exporting resources",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.7.0",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -20,26 +20,26 @@
|
|
|
20
20
|
"@emotion/react": "11.14.0",
|
|
21
21
|
"@emotion/styled": "11.14.1",
|
|
22
22
|
"@formatjs/cli": "6.7.4",
|
|
23
|
-
"formik": "2.4.
|
|
23
|
+
"formik": "2.4.9",
|
|
24
24
|
"jest": "29.7.0",
|
|
25
25
|
"lodash": "4.17.21",
|
|
26
26
|
"moment": "2.30.1",
|
|
27
27
|
"omit-empty-es": "^1.1.3",
|
|
28
28
|
"prop-types": "15.8.1",
|
|
29
|
-
"@commercetools-frontend-extensions/operations": "
|
|
29
|
+
"@commercetools-frontend-extensions/operations": "3.0.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@commercetools-frontend/actions-global": "24.
|
|
33
|
-
"@commercetools-frontend/application-components": "24.
|
|
34
|
-
"@commercetools-frontend/application-shell": "24.
|
|
35
|
-
"@commercetools-frontend/application-shell-connectors": "24.
|
|
36
|
-
"@commercetools-frontend/constants": "24.
|
|
37
|
-
"@commercetools-frontend/fullstory": "4.0.
|
|
38
|
-
"@commercetools-frontend/i18n": "24.
|
|
39
|
-
"@commercetools-frontend/jest-preset-mc-app": "24.
|
|
40
|
-
"@commercetools-frontend/l10n": "24.
|
|
41
|
-
"@commercetools-frontend/sdk": "24.
|
|
42
|
-
"@commercetools-frontend/sentry": "24.
|
|
32
|
+
"@commercetools-frontend/actions-global": "24.11.0",
|
|
33
|
+
"@commercetools-frontend/application-components": "24.11.0",
|
|
34
|
+
"@commercetools-frontend/application-shell": "24.11.0",
|
|
35
|
+
"@commercetools-frontend/application-shell-connectors": "24.11.0",
|
|
36
|
+
"@commercetools-frontend/constants": "24.11.0",
|
|
37
|
+
"@commercetools-frontend/fullstory": "4.0.3",
|
|
38
|
+
"@commercetools-frontend/i18n": "24.11.0",
|
|
39
|
+
"@commercetools-frontend/jest-preset-mc-app": "24.11.0",
|
|
40
|
+
"@commercetools-frontend/l10n": "24.11.0",
|
|
41
|
+
"@commercetools-frontend/sdk": "24.11.0",
|
|
42
|
+
"@commercetools-frontend/sentry": "24.11.0",
|
|
43
43
|
"@commercetools-frontend/ui-kit": "20.3.0",
|
|
44
44
|
"@commercetools-uikit/design-system": "20.3.0",
|
|
45
45
|
"@commercetools-uikit/icons": "20.3.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"react-intl": "7.1.4",
|
|
52
52
|
"react-redux": "7.2.9",
|
|
53
53
|
"redux": "4.2.1",
|
|
54
|
-
"rimraf": "6.
|
|
54
|
+
"rimraf": "6.1.2"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"@commercetools-frontend/actions-global": "23.x || 24.x",
|