@commercetools-frontend-extensions/export-resources-modal 0.0.0-canary-20250221132608 → 0.0.0-canary-20250227120018
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.
|
@@ -998,8 +998,8 @@ const useInitialValues = props => {
|
|
|
998
998
|
cachedExpandedGroups = _useStorage4[0];
|
|
999
999
|
return React__default["default"].useMemo(() => {
|
|
1000
1000
|
let groups = removeEmptyGroups(props.fieldGroups);
|
|
1001
|
-
groups = updateFieldGroupsWithIsCheckedValue(groups, cachedSelectedGroups[props.resourceType] || {});
|
|
1002
|
-
groups = updateFieldGroupsWithIsExpandedValue(groups, cachedExpandedGroups[props.resourceType] || {});
|
|
1001
|
+
groups = updateFieldGroupsWithIsCheckedValue(groups, cachedSelectedGroups?.[props.resourceType] || {});
|
|
1002
|
+
groups = updateFieldGroupsWithIsExpandedValue(groups, cachedExpandedGroups?.[props.resourceType] || {});
|
|
1003
1003
|
return {
|
|
1004
1004
|
outputFormat: props.outputFormat,
|
|
1005
1005
|
fileName: `${resourceTypeToFileName(props.resourceType, userLocale)}`,
|
|
@@ -1469,7 +1469,7 @@ const ExportFieldSelectionProvider = _ref => {
|
|
|
1469
1469
|
setCachedExpandedGroups = _useStorage2[1];
|
|
1470
1470
|
const updateExpandedGroups = React.useCallback((name, value) => {
|
|
1471
1471
|
setCachedExpandedGroups({
|
|
1472
|
-
[resourceType]: _objectSpread$3(_objectSpread$3({}, cachedExpandedGroups[resourceType] || {}), {}, {
|
|
1472
|
+
[resourceType]: _objectSpread$3(_objectSpread$3({}, cachedExpandedGroups?.[resourceType] || {}), {}, {
|
|
1473
1473
|
[name]: value
|
|
1474
1474
|
})
|
|
1475
1475
|
});
|
|
@@ -998,8 +998,8 @@ const useInitialValues = props => {
|
|
|
998
998
|
cachedExpandedGroups = _useStorage4[0];
|
|
999
999
|
return React__default["default"].useMemo(() => {
|
|
1000
1000
|
let groups = removeEmptyGroups(props.fieldGroups);
|
|
1001
|
-
groups = updateFieldGroupsWithIsCheckedValue(groups, cachedSelectedGroups[props.resourceType] || {});
|
|
1002
|
-
groups = updateFieldGroupsWithIsExpandedValue(groups, cachedExpandedGroups[props.resourceType] || {});
|
|
1001
|
+
groups = updateFieldGroupsWithIsCheckedValue(groups, cachedSelectedGroups?.[props.resourceType] || {});
|
|
1002
|
+
groups = updateFieldGroupsWithIsExpandedValue(groups, cachedExpandedGroups?.[props.resourceType] || {});
|
|
1003
1003
|
return {
|
|
1004
1004
|
outputFormat: props.outputFormat,
|
|
1005
1005
|
fileName: `${resourceTypeToFileName(props.resourceType, userLocale)}`,
|
|
@@ -1469,7 +1469,7 @@ const ExportFieldSelectionProvider = _ref => {
|
|
|
1469
1469
|
setCachedExpandedGroups = _useStorage2[1];
|
|
1470
1470
|
const updateExpandedGroups = React.useCallback((name, value) => {
|
|
1471
1471
|
setCachedExpandedGroups({
|
|
1472
|
-
[resourceType]: _objectSpread$3(_objectSpread$3({}, cachedExpandedGroups[resourceType] || {}), {}, {
|
|
1472
|
+
[resourceType]: _objectSpread$3(_objectSpread$3({}, cachedExpandedGroups?.[resourceType] || {}), {}, {
|
|
1473
1473
|
[name]: value
|
|
1474
1474
|
})
|
|
1475
1475
|
});
|
|
@@ -959,8 +959,8 @@ const useInitialValues = props => {
|
|
|
959
959
|
cachedExpandedGroups = _useStorage4[0];
|
|
960
960
|
return React.useMemo(() => {
|
|
961
961
|
let groups = removeEmptyGroups(props.fieldGroups);
|
|
962
|
-
groups = updateFieldGroupsWithIsCheckedValue(groups, cachedSelectedGroups[props.resourceType] || {});
|
|
963
|
-
groups = updateFieldGroupsWithIsExpandedValue(groups, cachedExpandedGroups[props.resourceType] || {});
|
|
962
|
+
groups = updateFieldGroupsWithIsCheckedValue(groups, cachedSelectedGroups?.[props.resourceType] || {});
|
|
963
|
+
groups = updateFieldGroupsWithIsExpandedValue(groups, cachedExpandedGroups?.[props.resourceType] || {});
|
|
964
964
|
return {
|
|
965
965
|
outputFormat: props.outputFormat,
|
|
966
966
|
fileName: `${resourceTypeToFileName(props.resourceType, userLocale)}`,
|
|
@@ -1430,7 +1430,7 @@ const ExportFieldSelectionProvider = _ref => {
|
|
|
1430
1430
|
setCachedExpandedGroups = _useStorage2[1];
|
|
1431
1431
|
const updateExpandedGroups = useCallback((name, value) => {
|
|
1432
1432
|
setCachedExpandedGroups({
|
|
1433
|
-
[resourceType]: _objectSpread$3(_objectSpread$3({}, cachedExpandedGroups[resourceType] || {}), {}, {
|
|
1433
|
+
[resourceType]: _objectSpread$3(_objectSpread$3({}, cachedExpandedGroups?.[resourceType] || {}), {}, {
|
|
1434
1434
|
[name]: value
|
|
1435
1435
|
})
|
|
1436
1436
|
});
|
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": "0.0.0-canary-
|
|
4
|
+
"version": "0.0.0-canary-20250227120018",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@babel/runtime": "7.26.9",
|
|
19
19
|
"@babel/runtime-corejs3": "7.26.9",
|
|
20
|
-
"@commercetools-frontend/experimental-components": "6.4.
|
|
21
|
-
"@commercetools-frontend/fullstory": "2.5.
|
|
20
|
+
"@commercetools-frontend/experimental-components": "6.4.2",
|
|
21
|
+
"@commercetools-frontend/fullstory": "2.5.4",
|
|
22
22
|
"@emotion/react": "11.14.0",
|
|
23
23
|
"@emotion/styled": "11.14.0",
|
|
24
24
|
"@formatjs/cli": "6.6.1",
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
"react": "17.0.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@commercetools-frontend/actions-global": "
|
|
35
|
-
"@commercetools-frontend/application-components": "
|
|
36
|
-
"@commercetools-frontend/application-shell": "
|
|
37
|
-
"@commercetools-frontend/application-shell-connectors": "
|
|
38
|
-
"@commercetools-frontend/constants": "
|
|
39
|
-
"@commercetools-frontend/i18n": "
|
|
40
|
-
"@commercetools-frontend/jest-preset-mc-app": "
|
|
41
|
-
"@commercetools-frontend/l10n": "
|
|
42
|
-
"@commercetools-frontend/sdk": "
|
|
43
|
-
"@commercetools-frontend/sentry": "
|
|
34
|
+
"@commercetools-frontend/actions-global": "23.1.0",
|
|
35
|
+
"@commercetools-frontend/application-components": "23.1.0",
|
|
36
|
+
"@commercetools-frontend/application-shell": "23.1.0",
|
|
37
|
+
"@commercetools-frontend/application-shell-connectors": "23.1.0",
|
|
38
|
+
"@commercetools-frontend/constants": "23.1.0",
|
|
39
|
+
"@commercetools-frontend/i18n": "23.1.0",
|
|
40
|
+
"@commercetools-frontend/jest-preset-mc-app": "23.1.0",
|
|
41
|
+
"@commercetools-frontend/l10n": "23.x",
|
|
42
|
+
"@commercetools-frontend/sdk": "23.1.0",
|
|
43
|
+
"@commercetools-frontend/sentry": "23.1.0",
|
|
44
44
|
"@commercetools-frontend/ui-kit": "19.22.6",
|
|
45
45
|
"@commercetools-uikit/design-system": "19.22.6",
|
|
46
46
|
"@preconstruct/cli": "2.8.10",
|
|
@@ -53,16 +53,16 @@
|
|
|
53
53
|
"rimraf": "6.0.1"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@commercetools-frontend/actions-global": "
|
|
57
|
-
"@commercetools-frontend/application-components": "
|
|
58
|
-
"@commercetools-frontend/application-shell": "
|
|
59
|
-
"@commercetools-frontend/application-shell-connectors": "
|
|
60
|
-
"@commercetools-frontend/constants": "
|
|
61
|
-
"@commercetools-frontend/i18n": "
|
|
62
|
-
"@commercetools-frontend/jest-preset-mc-app": "
|
|
63
|
-
"@commercetools-frontend/l10n": "
|
|
64
|
-
"@commercetools-frontend/sdk": "
|
|
65
|
-
"@commercetools-frontend/sentry": "
|
|
56
|
+
"@commercetools-frontend/actions-global": "23.x",
|
|
57
|
+
"@commercetools-frontend/application-components": "23.x",
|
|
58
|
+
"@commercetools-frontend/application-shell": "23.x",
|
|
59
|
+
"@commercetools-frontend/application-shell-connectors": "23.x",
|
|
60
|
+
"@commercetools-frontend/constants": "23.x",
|
|
61
|
+
"@commercetools-frontend/i18n": "23.x",
|
|
62
|
+
"@commercetools-frontend/jest-preset-mc-app": "23.x",
|
|
63
|
+
"@commercetools-frontend/l10n": "23.x",
|
|
64
|
+
"@commercetools-frontend/sdk": "23.x",
|
|
65
|
+
"@commercetools-frontend/sentry": "23.x",
|
|
66
66
|
"@commercetools-frontend/ui-kit": "19.x",
|
|
67
67
|
"@commercetools-uikit/design-system": "19.x",
|
|
68
68
|
"react-intl": "6.x",
|