@interopio/groups-ui-react 2.2.5 → 2.2.7
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/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/styles/groups.css +23 -27
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -2496,8 +2496,8 @@
|
|
|
2496
2496
|
if (stateProp === "groupOverlay" || stateProp === "groupCaptionBar" || stateProp === "tabElements") {
|
|
2497
2497
|
return;
|
|
2498
2498
|
}
|
|
2499
|
-
if (
|
|
2500
|
-
newState[stateProp] = __assign(__assign({},
|
|
2499
|
+
if (newState[stateProp][targetId] && ((_b = newState[stateProp][targetId]) === null || _b === void 0 ? void 0 : _b.selectedWindow) !== selectedWindow) {
|
|
2500
|
+
newState[stateProp] = __assign(__assign({}, newState[stateProp]), (_a = {}, _a[targetId] = __assign(__assign({}, newState[stateProp][targetId]), { selectedWindow: selectedWindow }), _a));
|
|
2501
2501
|
}
|
|
2502
2502
|
};
|
|
2503
2503
|
var updateHiddenTabs = function (stateProp, targetId, hiddenTabsToTheLeft, hiddenTabsToTheRight) {
|
|
@@ -2505,7 +2505,7 @@
|
|
|
2505
2505
|
var _b, _c;
|
|
2506
2506
|
var oldHiddenToTheLeft = (_b = newState[stateProp][targetId]) === null || _b === void 0 ? void 0 : _b.hiddenTabsToTheLeft;
|
|
2507
2507
|
var oldHiddenToTheRight = (_c = newState[stateProp][targetId]) === null || _c === void 0 ? void 0 : _c.hiddenTabsToTheRight;
|
|
2508
|
-
newState[stateProp] = __assign(__assign({},
|
|
2508
|
+
newState[stateProp] = __assign(__assign({}, newState[stateProp]), (_a = {}, _a[targetId] = __assign(__assign({}, newState[stateProp][targetId]), { hiddenTabsToTheLeft: hiddenTabsToTheLeft || oldHiddenToTheLeft, hiddenTabsToTheRight: hiddenTabsToTheRight || oldHiddenToTheRight }), _a));
|
|
2509
2509
|
};
|
|
2510
2510
|
updateSelectionWindow("frameCaptionBars", options.targetId, options.selectedWindow);
|
|
2511
2511
|
updateSelectionWindow("frameWindowOverlays", options.targetId, options.selectedWindow);
|