@commercetools-frontend-extensions/export-resources-modal 3.5.0-next.4 → 3.5.1
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/README.md +3 -3
- package/dist/commercetools-frontend-extensions-export-resources-modal.cjs.dev.js +8 -5
- package/dist/commercetools-frontend-extensions-export-resources-modal.cjs.prod.js +8 -5
- package/dist/commercetools-frontend-extensions-export-resources-modal.esm.js +8 -5
- package/package.json +14 -14
package/README.md
CHANGED
|
@@ -196,7 +196,7 @@ import { ExportResourcesModal } from '@commercetools-frontend-extensions/export-
|
|
|
196
196
|
## Properties
|
|
197
197
|
|
|
198
198
|
| Props | Type | Required | Default | Description |
|
|
199
|
-
| ------------------------------- | ------------------------------------------------------- | :--------------------------------------------------: | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
199
|
+
| ------------------------------- | ------------------------------------------------------- | :--------------------------------------------------: | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
200
200
|
| `isOpen` | `boolean` | | `false` | Controls whether the export modal is open or closed |
|
|
201
201
|
| `outputFormat` | `string`<br/>Possible values: `csv`, `json` | | `csv` | The file format to export |
|
|
202
202
|
| `onExportSuccess` | `function` | | | Callback function that is called when the export operation is successful |
|
|
@@ -205,11 +205,11 @@ import { ExportResourcesModal } from '@commercetools-frontend-extensions/export-
|
|
|
205
205
|
| `totalResourcesCount` | `Number` | (✅) Required only if the `exportType` is `all` | | The count of all resources of identified `resourceType` |
|
|
206
206
|
| `exportType` | `string` <br/>Possible values:<br/>`all` and `selected` | | `all` | The type of export, so either export `all` resources or export only `selected` resources |
|
|
207
207
|
| `selectedResourceIds` | `array` | (✅) Required only if the `exportType` is `selected` | | Array of Ids of the selected resources |
|
|
208
|
-
| `fields` | `array` | ✅ | | Array of the fields to export. The fields must align with the [commercetools
|
|
208
|
+
| `fields` | `array` | ✅ | | Array of the fields to export. The fields must align with the [commercetools API schema](https://docs.commercetools.com/api/) |
|
|
209
209
|
| `fields[].name` | `string` | ✅ | | A string that represents the unique identifier for each field |
|
|
210
210
|
| `fields[].label` | `string` | ✅ | | The label of the field to be shown in the export modal |
|
|
211
211
|
| `fields[].isRequired` | `boolean` | | `false` | `isRequired` field indicates whether a field is required for the export process. If `true` the field will be selected by default and cannot be deselected by the user. This is useful for fields that are essential for the export process. Fields marked as required will have a `*` appended to their label in the UI |
|
|
212
|
-
| `fields[].isSelectedByDefault` | `boolean` | | `true` | This field is a part of the `fields` array is used to control the default state of the corresponding checkbox in the UI. If `isSelectedByDefault` is set to true, the checkbox for that particular field will be checked by default when the component loads. The default value of this attribute is `true` which means unless explicitly set to `false`, the checkbox for the field will be checked on initial load. |
|
|
212
|
+
| `fields[].isSelectedByDefault` | `boolean` | | `true` | This field is a part of the `fields` array is used to control the default state of the corresponding checkbox in the UI. If `isSelectedByDefault` is set to true, the checkbox for that particular field will be checked by default when the component loads. The default value of this attribute is `true` which means unless explicitly set to `false`, the checkbox for the field will be checked on initial load. |
|
|
213
213
|
| `customFields` | `array` | | | Array of objects, each representing a group of custom fields defined under a specific type. |
|
|
214
214
|
| `customFields[].type` | `string` | | | The type object. |
|
|
215
215
|
| `customFields[].type.key` | `string` | | | The unique identifier for the type. |
|
|
@@ -289,7 +289,7 @@ const FIELD_DEFINITIONS_URLS = {
|
|
|
289
289
|
};
|
|
290
290
|
|
|
291
291
|
function _createSuper$4(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$4(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
292
|
-
function _isNativeReflectConstruct$4() {
|
|
292
|
+
function _isNativeReflectConstruct$4() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$4 = function () { return !!t; })(); }
|
|
293
293
|
let UnexpectedExportTypeError = /*#__PURE__*/function (_Error) {
|
|
294
294
|
_inherits(UnexpectedExportTypeError, _Error);
|
|
295
295
|
var _super = _createSuper$4(UnexpectedExportTypeError);
|
|
@@ -304,7 +304,7 @@ let UnexpectedExportTypeError = /*#__PURE__*/function (_Error) {
|
|
|
304
304
|
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
305
305
|
|
|
306
306
|
function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
307
|
-
function _isNativeReflectConstruct$3() {
|
|
307
|
+
function _isNativeReflectConstruct$3() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$3 = function () { return !!t; })(); }
|
|
308
308
|
let MissingExportResourceProviderError = /*#__PURE__*/function (_Error) {
|
|
309
309
|
_inherits(MissingExportResourceProviderError, _Error);
|
|
310
310
|
var _super = _createSuper$3(MissingExportResourceProviderError);
|
|
@@ -319,7 +319,7 @@ let MissingExportResourceProviderError = /*#__PURE__*/function (_Error) {
|
|
|
319
319
|
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
320
320
|
|
|
321
321
|
function _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
322
|
-
function _isNativeReflectConstruct$2() {
|
|
322
|
+
function _isNativeReflectConstruct$2() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$2 = function () { return !!t; })(); }
|
|
323
323
|
let UnexpectedExportOperationStateError = /*#__PURE__*/function (_Error) {
|
|
324
324
|
_inherits(UnexpectedExportOperationStateError, _Error);
|
|
325
325
|
var _super = _createSuper$2(UnexpectedExportOperationStateError);
|
|
@@ -334,7 +334,7 @@ let UnexpectedExportOperationStateError = /*#__PURE__*/function (_Error) {
|
|
|
334
334
|
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
335
335
|
|
|
336
336
|
function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
337
|
-
function _isNativeReflectConstruct$1() {
|
|
337
|
+
function _isNativeReflectConstruct$1() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$1 = function () { return !!t; })(); }
|
|
338
338
|
let UnexpectedResourceTypeError = /*#__PURE__*/function (_Error) {
|
|
339
339
|
_inherits(UnexpectedResourceTypeError, _Error);
|
|
340
340
|
var _super = _createSuper$1(UnexpectedResourceTypeError);
|
|
@@ -349,7 +349,7 @@ let UnexpectedResourceTypeError = /*#__PURE__*/function (_Error) {
|
|
|
349
349
|
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
350
350
|
|
|
351
351
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
352
|
-
function _isNativeReflectConstruct() {
|
|
352
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function () { return !!t; })(); }
|
|
353
353
|
let InvalidResponseError = /*#__PURE__*/function (_Error) {
|
|
354
354
|
_inherits(InvalidResponseError, _Error);
|
|
355
355
|
var _super = _createSuper(InvalidResponseError);
|
|
@@ -519,6 +519,9 @@ const categoryFieldExtension = fields => {
|
|
|
519
519
|
if (_startsWithInstanceProperty__default["default"](field).call(field, 'custom.fields.') && !_includesInstanceProperty__default["default"](acc).call(acc, 'custom.type.key')) {
|
|
520
520
|
return [...acc, 'custom.type.key', 'custom.type.typeId', field];
|
|
521
521
|
}
|
|
522
|
+
if (field === 'assets') {
|
|
523
|
+
return [...acc, 'assets.key', 'assets.name', 'assets.sources.key', 'assets.sources.uri', 'assets.sources.contentType', 'assets.sources.dimensions.w', 'assets.sources.dimensions.h', 'assets.description', 'assets.tags'];
|
|
524
|
+
}
|
|
522
525
|
return [...acc, field];
|
|
523
526
|
}, []);
|
|
524
527
|
};
|
|
@@ -289,7 +289,7 @@ const FIELD_DEFINITIONS_URLS = {
|
|
|
289
289
|
};
|
|
290
290
|
|
|
291
291
|
function _createSuper$4(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$4(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
292
|
-
function _isNativeReflectConstruct$4() {
|
|
292
|
+
function _isNativeReflectConstruct$4() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$4 = function () { return !!t; })(); }
|
|
293
293
|
let UnexpectedExportTypeError = /*#__PURE__*/function (_Error) {
|
|
294
294
|
_inherits(UnexpectedExportTypeError, _Error);
|
|
295
295
|
var _super = _createSuper$4(UnexpectedExportTypeError);
|
|
@@ -304,7 +304,7 @@ let UnexpectedExportTypeError = /*#__PURE__*/function (_Error) {
|
|
|
304
304
|
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
305
305
|
|
|
306
306
|
function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
307
|
-
function _isNativeReflectConstruct$3() {
|
|
307
|
+
function _isNativeReflectConstruct$3() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$3 = function () { return !!t; })(); }
|
|
308
308
|
let MissingExportResourceProviderError = /*#__PURE__*/function (_Error) {
|
|
309
309
|
_inherits(MissingExportResourceProviderError, _Error);
|
|
310
310
|
var _super = _createSuper$3(MissingExportResourceProviderError);
|
|
@@ -319,7 +319,7 @@ let MissingExportResourceProviderError = /*#__PURE__*/function (_Error) {
|
|
|
319
319
|
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
320
320
|
|
|
321
321
|
function _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
322
|
-
function _isNativeReflectConstruct$2() {
|
|
322
|
+
function _isNativeReflectConstruct$2() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$2 = function () { return !!t; })(); }
|
|
323
323
|
let UnexpectedExportOperationStateError = /*#__PURE__*/function (_Error) {
|
|
324
324
|
_inherits(UnexpectedExportOperationStateError, _Error);
|
|
325
325
|
var _super = _createSuper$2(UnexpectedExportOperationStateError);
|
|
@@ -334,7 +334,7 @@ let UnexpectedExportOperationStateError = /*#__PURE__*/function (_Error) {
|
|
|
334
334
|
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
335
335
|
|
|
336
336
|
function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
337
|
-
function _isNativeReflectConstruct$1() {
|
|
337
|
+
function _isNativeReflectConstruct$1() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$1 = function () { return !!t; })(); }
|
|
338
338
|
let UnexpectedResourceTypeError = /*#__PURE__*/function (_Error) {
|
|
339
339
|
_inherits(UnexpectedResourceTypeError, _Error);
|
|
340
340
|
var _super = _createSuper$1(UnexpectedResourceTypeError);
|
|
@@ -349,7 +349,7 @@ let UnexpectedResourceTypeError = /*#__PURE__*/function (_Error) {
|
|
|
349
349
|
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
350
350
|
|
|
351
351
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
352
|
-
function _isNativeReflectConstruct() {
|
|
352
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function () { return !!t; })(); }
|
|
353
353
|
let InvalidResponseError = /*#__PURE__*/function (_Error) {
|
|
354
354
|
_inherits(InvalidResponseError, _Error);
|
|
355
355
|
var _super = _createSuper(InvalidResponseError);
|
|
@@ -519,6 +519,9 @@ const categoryFieldExtension = fields => {
|
|
|
519
519
|
if (_startsWithInstanceProperty__default["default"](field).call(field, 'custom.fields.') && !_includesInstanceProperty__default["default"](acc).call(acc, 'custom.type.key')) {
|
|
520
520
|
return [...acc, 'custom.type.key', 'custom.type.typeId', field];
|
|
521
521
|
}
|
|
522
|
+
if (field === 'assets') {
|
|
523
|
+
return [...acc, 'assets.key', 'assets.name', 'assets.sources.key', 'assets.sources.uri', 'assets.sources.contentType', 'assets.sources.dimensions.w', 'assets.sources.dimensions.h', 'assets.description', 'assets.tags'];
|
|
524
|
+
}
|
|
522
525
|
return [...acc, field];
|
|
523
526
|
}, []);
|
|
524
527
|
};
|
|
@@ -256,7 +256,7 @@ const FIELD_DEFINITIONS_URLS = {
|
|
|
256
256
|
};
|
|
257
257
|
|
|
258
258
|
function _createSuper$4(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$4(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
259
|
-
function _isNativeReflectConstruct$4() {
|
|
259
|
+
function _isNativeReflectConstruct$4() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$4 = function () { return !!t; })(); }
|
|
260
260
|
let UnexpectedExportTypeError = /*#__PURE__*/function (_Error) {
|
|
261
261
|
_inherits(UnexpectedExportTypeError, _Error);
|
|
262
262
|
var _super = _createSuper$4(UnexpectedExportTypeError);
|
|
@@ -271,7 +271,7 @@ let UnexpectedExportTypeError = /*#__PURE__*/function (_Error) {
|
|
|
271
271
|
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
272
272
|
|
|
273
273
|
function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
274
|
-
function _isNativeReflectConstruct$3() {
|
|
274
|
+
function _isNativeReflectConstruct$3() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$3 = function () { return !!t; })(); }
|
|
275
275
|
let MissingExportResourceProviderError = /*#__PURE__*/function (_Error) {
|
|
276
276
|
_inherits(MissingExportResourceProviderError, _Error);
|
|
277
277
|
var _super = _createSuper$3(MissingExportResourceProviderError);
|
|
@@ -286,7 +286,7 @@ let MissingExportResourceProviderError = /*#__PURE__*/function (_Error) {
|
|
|
286
286
|
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
287
287
|
|
|
288
288
|
function _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
289
|
-
function _isNativeReflectConstruct$2() {
|
|
289
|
+
function _isNativeReflectConstruct$2() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$2 = function () { return !!t; })(); }
|
|
290
290
|
let UnexpectedExportOperationStateError = /*#__PURE__*/function (_Error) {
|
|
291
291
|
_inherits(UnexpectedExportOperationStateError, _Error);
|
|
292
292
|
var _super = _createSuper$2(UnexpectedExportOperationStateError);
|
|
@@ -301,7 +301,7 @@ let UnexpectedExportOperationStateError = /*#__PURE__*/function (_Error) {
|
|
|
301
301
|
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
302
302
|
|
|
303
303
|
function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
304
|
-
function _isNativeReflectConstruct$1() {
|
|
304
|
+
function _isNativeReflectConstruct$1() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$1 = function () { return !!t; })(); }
|
|
305
305
|
let UnexpectedResourceTypeError = /*#__PURE__*/function (_Error) {
|
|
306
306
|
_inherits(UnexpectedResourceTypeError, _Error);
|
|
307
307
|
var _super = _createSuper$1(UnexpectedResourceTypeError);
|
|
@@ -316,7 +316,7 @@ let UnexpectedResourceTypeError = /*#__PURE__*/function (_Error) {
|
|
|
316
316
|
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
317
317
|
|
|
318
318
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
319
|
-
function _isNativeReflectConstruct() {
|
|
319
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function () { return !!t; })(); }
|
|
320
320
|
let InvalidResponseError = /*#__PURE__*/function (_Error) {
|
|
321
321
|
_inherits(InvalidResponseError, _Error);
|
|
322
322
|
var _super = _createSuper(InvalidResponseError);
|
|
@@ -486,6 +486,9 @@ const categoryFieldExtension = fields => {
|
|
|
486
486
|
if (_startsWithInstanceProperty(field).call(field, 'custom.fields.') && !_includesInstanceProperty(acc).call(acc, 'custom.type.key')) {
|
|
487
487
|
return [...acc, 'custom.type.key', 'custom.type.typeId', field];
|
|
488
488
|
}
|
|
489
|
+
if (field === 'assets') {
|
|
490
|
+
return [...acc, 'assets.key', 'assets.name', 'assets.sources.key', 'assets.sources.uri', 'assets.sources.contentType', 'assets.sources.dimensions.w', 'assets.sources.dimensions.h', 'assets.description', 'assets.tags'];
|
|
491
|
+
}
|
|
489
492
|
return [...acc, field];
|
|
490
493
|
}, []);
|
|
491
494
|
};
|
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": "3.5.
|
|
4
|
+
"version": "3.5.1",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"README.md"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@babel/runtime": "7.24.
|
|
19
|
-
"@babel/runtime-corejs3": "7.24.
|
|
18
|
+
"@babel/runtime": "7.24.4",
|
|
19
|
+
"@babel/runtime-corejs3": "7.24.4",
|
|
20
20
|
"@emotion/react": "11.11.4",
|
|
21
|
-
"@emotion/styled": "11.11.
|
|
22
|
-
"@formatjs/cli": "6.2.
|
|
21
|
+
"@emotion/styled": "11.11.5",
|
|
22
|
+
"@formatjs/cli": "6.2.9",
|
|
23
23
|
"formik": "^2.2.9",
|
|
24
24
|
"gql-query-builder": "^3.8.0",
|
|
25
25
|
"jest": "29.7.0",
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
"omit-empty-es": "^1.1.3",
|
|
28
28
|
"prop-types": "15.8.1",
|
|
29
29
|
"react": "17.0.2",
|
|
30
|
-
"react-intl": "6.6.
|
|
30
|
+
"react-intl": "6.6.5"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@commercetools-frontend/actions-global": "22.
|
|
34
|
-
"@commercetools-frontend/application-components": "22.
|
|
35
|
-
"@commercetools-frontend/application-shell": "22.
|
|
36
|
-
"@commercetools-frontend/application-shell-connectors": "22.
|
|
37
|
-
"@commercetools-frontend/constants": "22.
|
|
38
|
-
"@commercetools-frontend/jest-preset-mc-app": "22.
|
|
39
|
-
"@commercetools-frontend/sdk": "22.
|
|
40
|
-
"@commercetools-frontend/sentry": "22.
|
|
33
|
+
"@commercetools-frontend/actions-global": "22.23.3",
|
|
34
|
+
"@commercetools-frontend/application-components": "22.23.3",
|
|
35
|
+
"@commercetools-frontend/application-shell": "22.23.3",
|
|
36
|
+
"@commercetools-frontend/application-shell-connectors": "22.23.3",
|
|
37
|
+
"@commercetools-frontend/constants": "22.23.3",
|
|
38
|
+
"@commercetools-frontend/jest-preset-mc-app": "22.23.3",
|
|
39
|
+
"@commercetools-frontend/sdk": "22.23.3",
|
|
40
|
+
"@commercetools-frontend/sentry": "22.23.3",
|
|
41
41
|
"@commercetools-frontend/ui-kit": "19.0.0",
|
|
42
42
|
"@commercetools-uikit/design-system": "19.0.0",
|
|
43
43
|
"@preconstruct/cli": "2.8.3",
|