@cloud-ru/ds-uikit-product-notification 2.0.28 → 2.0.30

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,14 @@
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
+ ## 2.0.30 (2026-10-09)
7
+
8
+ **Note:** Version bump only for package @ds/uikit-product-notification
9
+
10
+ ## 2.0.29 (2026-10-09)
11
+
12
+ **Note:** Version bump only for package @ds/uikit-product-notification
13
+
6
14
  ## 2.0.28 (2026-10-09)
7
15
 
8
16
  **Note:** Version bump only for package @ds/uikit-product-notification
@@ -44,7 +44,7 @@ function NotificationPanel({ title, settings, segments, chipToggle, readAllButto
44
44
  })), "data-test-id": constants_1.TEST_IDS.panel.segments })), !isMobile && chipToggle && ((0, jsx_runtime_1.jsx)(chips_1.ChipToggle, { size: 's', disabled: loading, label: chipToggle.label, onChange: chipToggle.onChange, checked: chipToggle.checked, "data-test-id": constants_1.TEST_IDS.panel.chipToggle }))] }));
45
45
  return ((0, jsx_runtime_1.jsx)(drawer_1.Drawer, { position: position, width: width, className: (0, classnames_1.default)(styles_module_scss_1.default.panel, className), showButtonClosed: false, title: (0, jsx_runtime_1.jsx)("span", { "data-test-id": constants_1.TEST_IDS.panel.title, children: title }), slotAfterTitle: actions, slotSecondTitle: filters, withDividers: isMobile,
46
46
  // Только mobile: в мастере bottomSheet панель открывается на всю высоту экрана.
47
- snapPoints: [1], contentRef: scrollContainerRef, content: (0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.body, "aria-busy": loading || undefined, children: [content, loading && ((0, jsx_runtime_1.jsx)(skeleton_1.SkeletonContextProvider, { loading: Boolean(loading), children: skeletons.map(skeleton => ((0, jsx_runtime_1.jsx)(skeleton_1.WithSkeleton, { skeleton: (0, jsx_runtime_1.jsx)(NotificationCardSkeleton_1.NotificationCardSkeleton, {}) }, skeleton))) })), (0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.scrollStub, ref: scrollEndRef })] }), ...rest }));
47
+ snapPoints: drawer_1.SNAP_POINTS_PRESET.full, contentRef: scrollContainerRef, content: (0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.body, "aria-busy": loading || undefined, children: [content, loading && ((0, jsx_runtime_1.jsx)(skeleton_1.SkeletonContextProvider, { loading: Boolean(loading), children: skeletons.map(skeleton => ((0, jsx_runtime_1.jsx)(skeleton_1.WithSkeleton, { skeleton: (0, jsx_runtime_1.jsx)(NotificationCardSkeleton_1.NotificationCardSkeleton, {}) }, skeleton))) })), (0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.scrollStub, ref: scrollEndRef })] }), ...rest }));
48
48
  }
49
49
  (function (NotificationPanel) {
50
50
  NotificationPanel.Blank = components_1.NotificationPanelBlank;
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { isMobileLayout, useAdaptiveLayout } from '@cloud-ru/ds-adaptive';
3
3
  import { Button } from '@cloud-ru/ds-button';
4
4
  import { ChipToggle } from '@cloud-ru/ds-chips';
5
- import { Drawer, POSITION, WIDTH } from '@cloud-ru/ds-drawer';
5
+ import { Drawer, POSITION, SNAP_POINTS_PRESET, WIDTH } from '@cloud-ru/ds-drawer';
6
6
  import { DecorCheckedSVG } from '@cloud-ru/ds-icons/interface/product';
7
7
  import { SegmentControl } from '@cloud-ru/ds-segment-control';
8
8
  import { SkeletonContextProvider, WithSkeleton } from '@cloud-ru/ds-skeleton';
@@ -38,7 +38,7 @@ export function NotificationPanel({ title, settings, segments, chipToggle, readA
38
38
  })), "data-test-id": TEST_IDS.panel.segments })), !isMobile && chipToggle && (_jsx(ChipToggle, { size: 's', disabled: loading, label: chipToggle.label, onChange: chipToggle.onChange, checked: chipToggle.checked, "data-test-id": TEST_IDS.panel.chipToggle }))] }));
39
39
  return (_jsx(Drawer, { position: position, width: width, className: cn(styles.panel, className), showButtonClosed: false, title: _jsx("span", { "data-test-id": TEST_IDS.panel.title, children: title }), slotAfterTitle: actions, slotSecondTitle: filters, withDividers: isMobile,
40
40
  // Только mobile: в мастере bottomSheet панель открывается на всю высоту экрана.
41
- snapPoints: [1], contentRef: scrollContainerRef, content: _jsxs("div", { className: styles.body, "aria-busy": loading || undefined, children: [content, loading && (_jsx(SkeletonContextProvider, { loading: Boolean(loading), children: skeletons.map(skeleton => (_jsx(WithSkeleton, { skeleton: _jsx(NotificationCardSkeleton, {}) }, skeleton))) })), _jsx("div", { className: styles.scrollStub, ref: scrollEndRef })] }), ...rest }));
41
+ snapPoints: SNAP_POINTS_PRESET.full, contentRef: scrollContainerRef, content: _jsxs("div", { className: styles.body, "aria-busy": loading || undefined, children: [content, loading && (_jsx(SkeletonContextProvider, { loading: Boolean(loading), children: skeletons.map(skeleton => (_jsx(WithSkeleton, { skeleton: _jsx(NotificationCardSkeleton, {}) }, skeleton))) })), _jsx("div", { className: styles.scrollStub, ref: scrollEndRef })] }), ...rest }));
42
42
  }
43
43
  (function (NotificationPanel) {
44
44
  NotificationPanel.Blank = NotificationPanelBlank;