@commercetools-frontend-extensions/export-resources-modal 4.6.13 → 4.6.15
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 +7 -3
- package/dist/commercetools-frontend-extensions-export-resources-modal.cjs.prod.js +7 -3
- package/dist/commercetools-frontend-extensions-export-resources-modal.esm.js +7 -3
- package/dist/declarations/src/@types/export-resources-modal-context.d.ts +0 -1
- package/dist/{es-7eff2ec7.cjs.dev.js → es-4f8df55f.cjs.dev.js} +1 -1
- package/dist/{es-619e3759.esm.js → es-5519907b.esm.js} +1 -1
- package/dist/{es-a3612086.cjs.prod.js → es-df1fc29e.cjs.prod.js} +1 -1
- package/dist/{pt-BR-7e767de3.cjs.prod.js → pt-BR-716a9fc3.cjs.dev.js} +1 -1
- package/dist/{pt-BR-a80a154a.cjs.dev.js → pt-BR-b6547065.cjs.prod.js} +1 -1
- package/dist/{pt-BR-5a8dc558.esm.js → pt-BR-bb5b61ff.esm.js} +1 -1
- package/package.json +2 -2
|
@@ -778,6 +778,9 @@ function getInitialExportType(args) {
|
|
|
778
778
|
}
|
|
779
779
|
return EXPORT_TYPES.ALL;
|
|
780
780
|
}
|
|
781
|
+
function removeEmptyGroups(groups) {
|
|
782
|
+
return _filterInstanceProperty__default["default"](groups).call(groups, group => group.fields && group.fields.length > 0);
|
|
783
|
+
}
|
|
781
784
|
|
|
782
785
|
function ownKeys$6(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; }
|
|
783
786
|
function _objectSpread$6(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$6(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$6(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
@@ -926,7 +929,8 @@ const useInitialValues = props => {
|
|
|
926
929
|
_useStorage4 = _slicedToArray(_useStorage3, 1),
|
|
927
930
|
cachedExpandedGroups = _useStorage4[0];
|
|
928
931
|
return React__default["default"].useMemo(() => {
|
|
929
|
-
let groups =
|
|
932
|
+
let groups = removeEmptyGroups(props.fieldGroups);
|
|
933
|
+
groups = updateFieldGroupsWithIsCheckedValue(groups, cachedSelectedGroups[props.resourceType] || {});
|
|
930
934
|
groups = updateFieldGroupsWithIsExpandedValue(groups, cachedExpandedGroups[props.resourceType] || {});
|
|
931
935
|
return {
|
|
932
936
|
outputFormat: props.outputFormat,
|
|
@@ -1899,7 +1903,7 @@ const getChunkImport = locale => {
|
|
|
1899
1903
|
case 'de':
|
|
1900
1904
|
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-de" */'./de-4612e610.cjs.dev.js'); });
|
|
1901
1905
|
case 'es':
|
|
1902
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-es" */'./es-
|
|
1906
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-es" */'./es-4f8df55f.cjs.dev.js'); });
|
|
1903
1907
|
case 'fr-FR':
|
|
1904
1908
|
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-fr-FR" */'./fr-FR-511b32a3.cjs.dev.js'); });
|
|
1905
1909
|
case 'zh-CN':
|
|
@@ -1907,7 +1911,7 @@ const getChunkImport = locale => {
|
|
|
1907
1911
|
case 'ja':
|
|
1908
1912
|
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-ja" */'./ja-9bd5f452.cjs.dev.js'); });
|
|
1909
1913
|
case 'pt-BR':
|
|
1910
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "change-history-i18n-pt-BR" */'./pt-BR-
|
|
1914
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "change-history-i18n-pt-BR" */'./pt-BR-716a9fc3.cjs.dev.js'); });
|
|
1911
1915
|
default:
|
|
1912
1916
|
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-en" */'./en-67d31b8f.cjs.dev.js'); });
|
|
1913
1917
|
}
|
|
@@ -778,6 +778,9 @@ function getInitialExportType(args) {
|
|
|
778
778
|
}
|
|
779
779
|
return EXPORT_TYPES.ALL;
|
|
780
780
|
}
|
|
781
|
+
function removeEmptyGroups(groups) {
|
|
782
|
+
return _filterInstanceProperty__default["default"](groups).call(groups, group => group.fields && group.fields.length > 0);
|
|
783
|
+
}
|
|
781
784
|
|
|
782
785
|
function ownKeys$6(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; }
|
|
783
786
|
function _objectSpread$6(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$6(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$6(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
@@ -926,7 +929,8 @@ const useInitialValues = props => {
|
|
|
926
929
|
_useStorage4 = _slicedToArray(_useStorage3, 1),
|
|
927
930
|
cachedExpandedGroups = _useStorage4[0];
|
|
928
931
|
return React__default["default"].useMemo(() => {
|
|
929
|
-
let groups =
|
|
932
|
+
let groups = removeEmptyGroups(props.fieldGroups);
|
|
933
|
+
groups = updateFieldGroupsWithIsCheckedValue(groups, cachedSelectedGroups[props.resourceType] || {});
|
|
930
934
|
groups = updateFieldGroupsWithIsExpandedValue(groups, cachedExpandedGroups[props.resourceType] || {});
|
|
931
935
|
return {
|
|
932
936
|
outputFormat: props.outputFormat,
|
|
@@ -1866,7 +1870,7 @@ const getChunkImport = locale => {
|
|
|
1866
1870
|
case 'de':
|
|
1867
1871
|
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-de" */'./de-550bdf59.cjs.prod.js'); });
|
|
1868
1872
|
case 'es':
|
|
1869
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-es" */'./es-
|
|
1873
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-es" */'./es-df1fc29e.cjs.prod.js'); });
|
|
1870
1874
|
case 'fr-FR':
|
|
1871
1875
|
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-fr-FR" */'./fr-FR-07fd1da3.cjs.prod.js'); });
|
|
1872
1876
|
case 'zh-CN':
|
|
@@ -1874,7 +1878,7 @@ const getChunkImport = locale => {
|
|
|
1874
1878
|
case 'ja':
|
|
1875
1879
|
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-ja" */'./ja-37632763.cjs.prod.js'); });
|
|
1876
1880
|
case 'pt-BR':
|
|
1877
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "change-history-i18n-pt-BR" */'./pt-BR-
|
|
1881
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "change-history-i18n-pt-BR" */'./pt-BR-b6547065.cjs.prod.js'); });
|
|
1878
1882
|
default:
|
|
1879
1883
|
return Promise.resolve().then(function () { return require(/* webpackChunkName: "export-resources-modal-i18n-en" */'./en-6c40dfd0.cjs.prod.js'); });
|
|
1880
1884
|
}
|
|
@@ -740,6 +740,9 @@ function getInitialExportType(args) {
|
|
|
740
740
|
}
|
|
741
741
|
return EXPORT_TYPES.ALL;
|
|
742
742
|
}
|
|
743
|
+
function removeEmptyGroups(groups) {
|
|
744
|
+
return _filterInstanceProperty(groups).call(groups, group => group.fields && group.fields.length > 0);
|
|
745
|
+
}
|
|
743
746
|
|
|
744
747
|
function ownKeys$6(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; }
|
|
745
748
|
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$6(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$6(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -888,7 +891,8 @@ const useInitialValues = props => {
|
|
|
888
891
|
_useStorage4 = _slicedToArray(_useStorage3, 1),
|
|
889
892
|
cachedExpandedGroups = _useStorage4[0];
|
|
890
893
|
return React.useMemo(() => {
|
|
891
|
-
let groups =
|
|
894
|
+
let groups = removeEmptyGroups(props.fieldGroups);
|
|
895
|
+
groups = updateFieldGroupsWithIsCheckedValue(groups, cachedSelectedGroups[props.resourceType] || {});
|
|
892
896
|
groups = updateFieldGroupsWithIsExpandedValue(groups, cachedExpandedGroups[props.resourceType] || {});
|
|
893
897
|
return {
|
|
894
898
|
outputFormat: props.outputFormat,
|
|
@@ -1861,7 +1865,7 @@ const getChunkImport = locale => {
|
|
|
1861
1865
|
case 'de':
|
|
1862
1866
|
return import(/* webpackChunkName: "export-resources-modal-i18n-de" */'./de-46838835.esm.js');
|
|
1863
1867
|
case 'es':
|
|
1864
|
-
return import(/* webpackChunkName: "export-resources-modal-i18n-es" */'./es-
|
|
1868
|
+
return import(/* webpackChunkName: "export-resources-modal-i18n-es" */'./es-5519907b.esm.js');
|
|
1865
1869
|
case 'fr-FR':
|
|
1866
1870
|
return import(/* webpackChunkName: "export-resources-modal-i18n-fr-FR" */'./fr-FR-9e6874ed.esm.js');
|
|
1867
1871
|
case 'zh-CN':
|
|
@@ -1869,7 +1873,7 @@ const getChunkImport = locale => {
|
|
|
1869
1873
|
case 'ja':
|
|
1870
1874
|
return import(/* webpackChunkName: "export-resources-modal-i18n-ja" */'./ja-73c088a7.esm.js');
|
|
1871
1875
|
case 'pt-BR':
|
|
1872
|
-
return import(/* webpackChunkName: "change-history-i18n-pt-BR" */'./pt-BR-
|
|
1876
|
+
return import(/* webpackChunkName: "change-history-i18n-pt-BR" */'./pt-BR-bb5b61ff.esm.js');
|
|
1873
1877
|
default:
|
|
1874
1878
|
return import(/* webpackChunkName: "export-resources-modal-i18n-en" */'./en-03ff6505.esm.js');
|
|
1875
1879
|
}
|
|
@@ -151,7 +151,7 @@ var es = {
|
|
|
151
151
|
},
|
|
152
152
|
"ExportResourcesModal.modalTitle.customer": {
|
|
153
153
|
developer_comment: "Label for the customers modal title",
|
|
154
|
-
string: "
|
|
154
|
+
string: "Exportar clientes"
|
|
155
155
|
},
|
|
156
156
|
"ExportResourcesModal.modalTitle.discountCode": {
|
|
157
157
|
developer_comment: "Label for the discount codes modal title",
|
|
@@ -149,7 +149,7 @@ var es = {
|
|
|
149
149
|
},
|
|
150
150
|
"ExportResourcesModal.modalTitle.customer": {
|
|
151
151
|
developer_comment: "Label for the customers modal title",
|
|
152
|
-
string: "
|
|
152
|
+
string: "Exportar clientes"
|
|
153
153
|
},
|
|
154
154
|
"ExportResourcesModal.modalTitle.discountCode": {
|
|
155
155
|
developer_comment: "Label for the discount codes modal title",
|
|
@@ -151,7 +151,7 @@ var es = {
|
|
|
151
151
|
},
|
|
152
152
|
"ExportResourcesModal.modalTitle.customer": {
|
|
153
153
|
developer_comment: "Label for the customers modal title",
|
|
154
|
-
string: "
|
|
154
|
+
string: "Exportar clientes"
|
|
155
155
|
},
|
|
156
156
|
"ExportResourcesModal.modalTitle.discountCode": {
|
|
157
157
|
developer_comment: "Label for the discount codes modal title",
|
|
@@ -151,7 +151,7 @@ var ptBR = {
|
|
|
151
151
|
},
|
|
152
152
|
"ExportResourcesModal.modalTitle.customer": {
|
|
153
153
|
developer_comment: "Label for the customers modal title",
|
|
154
|
-
string: "
|
|
154
|
+
string: "Exportar clientes"
|
|
155
155
|
},
|
|
156
156
|
"ExportResourcesModal.modalTitle.discountCode": {
|
|
157
157
|
developer_comment: "Label for the discount codes modal title",
|
|
@@ -151,7 +151,7 @@ var ptBR = {
|
|
|
151
151
|
},
|
|
152
152
|
"ExportResourcesModal.modalTitle.customer": {
|
|
153
153
|
developer_comment: "Label for the customers modal title",
|
|
154
|
-
string: "
|
|
154
|
+
string: "Exportar clientes"
|
|
155
155
|
},
|
|
156
156
|
"ExportResourcesModal.modalTitle.discountCode": {
|
|
157
157
|
developer_comment: "Label for the discount codes modal title",
|
|
@@ -149,7 +149,7 @@ var ptBR = {
|
|
|
149
149
|
},
|
|
150
150
|
"ExportResourcesModal.modalTitle.customer": {
|
|
151
151
|
developer_comment: "Label for the customers modal title",
|
|
152
|
-
string: "
|
|
152
|
+
string: "Exportar clientes"
|
|
153
153
|
},
|
|
154
154
|
"ExportResourcesModal.modalTitle.discountCode": {
|
|
155
155
|
developer_comment: "Label for the discount codes modal title",
|
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": "4.6.
|
|
4
|
+
"version": "4.6.15",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@babel/runtime": "7.25.6",
|
|
19
19
|
"@babel/runtime-corejs3": "7.25.6",
|
|
20
|
-
"@commercetools-frontend/experimental-components": "6.2.
|
|
20
|
+
"@commercetools-frontend/experimental-components": "6.2.2",
|
|
21
21
|
"@commercetools-frontend/fullstory": "2.4.5",
|
|
22
22
|
"@emotion/react": "11.13.3",
|
|
23
23
|
"@emotion/styled": "11.13.0",
|