@skbkontur/side-menu 4.0.2 → 4.0.3

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [4.0.3](/compare/@skbkontur/side-menu@4.0.2...@skbkontur/side-menu@4.0.3) (2026-04-21)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **side-menu:** update handleBellWidgetClose 7516c21
12
+
13
+
14
+
15
+
16
+
6
17
  ## [4.0.2](/compare/@skbkontur/side-menu@4.0.1...@skbkontur/side-menu@4.0.2) (2026-04-20)
7
18
 
8
19
  **Note:** Version bump only for package @skbkontur/side-menu
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skbkontur/side-menu",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "private": false,
5
5
  "license": "UNLICENSED",
6
6
  "author": "Kontur",
@@ -16,14 +16,17 @@ var SideMenuNotificationsInner = forwardRef(function (_a, ref) {
16
16
  var marker = getMarker(count);
17
17
  var currentIcon = marker ? React.createElement(IconNotificationBellAlarmRegular24, null) : React.createElement(IconNotificationBellRegular24, null);
18
18
  var theme = getSideMenuTheme(useContext(ThemeContext));
19
- var bellDropDownItem = document.querySelector("[data-item=\"".concat(BELL_SIDE_MENU_DATA_ITEM, "\"]"));
20
- var bellDropDownButton = bellDropDownItem === null || bellDropDownItem === void 0 ? void 0 : bellDropDownItem.querySelector('button');
19
+ var handleBellWidgetClose = function () {
20
+ var bellDropDownItem = document.querySelector("[data-item=".concat(BELL_SIDE_MENU_DATA_ITEM, "]"));
21
+ var bellDropDownButton = bellDropDownItem === null || bellDropDownItem === void 0 ? void 0 : bellDropDownItem.querySelector('button');
22
+ bellDropDownButton === null || bellDropDownButton === void 0 ? void 0 : bellDropDownButton.click();
23
+ };
21
24
  var handleClose = function () {
22
25
  onClose === null || onClose === void 0 ? void 0 : onClose();
23
26
  if (document.hasFocus()) {
24
27
  return;
25
28
  }
26
- bellDropDownButton === null || bellDropDownButton === void 0 ? void 0 : bellDropDownButton.click();
29
+ handleBellWidgetClose();
27
30
  };
28
31
  return (React.createElement(ThemeContext.Provider, { value: ThemeFactory.create({
29
32
  popupBorderRadius: '16px',
@@ -33,7 +36,7 @@ var SideMenuNotificationsInner = forwardRef(function (_a, ref) {
33
36
  menuScrollContainerContentWrapperPaddingY: '0px',
34
37
  sideMenuMarkerBg: theme.sideMenuNotificationsMarkerBg,
35
38
  }, theme) },
36
- React.createElement(SideMenuDropdown, __assign({ ref: ref, icon: currentIcon, marker: marker, positions: positions, "data-tid": SideMenuDataTids.bellSideMenuDropdownButton, "data-item": BELL_SIDE_MENU_DATA_ITEM, caption: "\u0423\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F", onClose: handleClose }, rest), children !== null && children !== void 0 ? children : (React.createElement(BellWidget, { widgetApi: widgetApi, onClose: function () { return bellDropDownButton === null || bellDropDownButton === void 0 ? void 0 : bellDropDownButton.click(); }, renderErrorButton: renderErrorButton, renderErrorMessage: renderErrorMessage, onError: onError, redirect: redirect }))),
39
+ React.createElement(SideMenuDropdown, __assign({ ref: ref, icon: currentIcon, marker: marker, positions: positions, "data-tid": SideMenuDataTids.bellSideMenuDropdownButton, "data-item": BELL_SIDE_MENU_DATA_ITEM, caption: "\u0423\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F", onClose: handleClose }, rest), children !== null && children !== void 0 ? children : (React.createElement(BellWidget, { widgetApi: widgetApi, onClose: handleBellWidgetClose, renderErrorButton: renderErrorButton, renderErrorMessage: renderErrorMessage, onError: onError, redirect: redirect }))),
37
40
  showDivider && React.createElement(SideMenu.Divider, null)));
38
41
  });
39
42
  /**