@topconsultnpm/sdkui-react 6.20.0-dev1.116 → 6.20.0-dev1.117

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.
@@ -107,11 +107,19 @@ export const TMPanelManagerProvider = (props) => {
107
107
  });
108
108
  }
109
109
  else {
110
- let updated = { ...initialVisibility };
111
- Object.entries(initialVisibility).forEach(([id, isVisible]) => {
112
- updated = adjustPanelVisibilityAndSize(id, isVisible, updated);
113
- });
114
- setPanelVisibility(updated);
110
+ if (isPersistenceEnabled) {
111
+ // If persistence is enabled, visibility and dimensions are already synced from persisted state, so just set them directly
112
+ setPanelVisibility(initialVisibility);
113
+ }
114
+ else {
115
+ // If persistence is not enabled, recalculate visibility and dimensions based on the initial visibility, applying the hierarchy logic
116
+ let updated = { ...initialVisibility };
117
+ Object.entries(initialVisibility).forEach(([id, isVisible]) => {
118
+ updated = adjustPanelVisibilityAndSize(id, isVisible, updated);
119
+ });
120
+ // Update panel visibility state with recalculated values
121
+ setPanelVisibility(updated);
122
+ }
115
123
  }
116
124
  }, [isMobile]);
117
125
  // Function to maximize a panel (and its parent panels)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topconsultnpm/sdkui-react",
3
- "version": "6.20.0-dev1.116",
3
+ "version": "6.20.0-dev1.117",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",