@cloud-ru/ds-bottom-sheet 2.0.10-preview-052d8f8a.0 → 2.1.0
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 +6 -0
- package/dist/cjs/components/BottomSheetCustom/hooks/useDragEngine.js +0 -4
- package/dist/esm/components/BottomSheetCustom/hooks/useDragEngine.js +0 -4
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/src/components/BottomSheetCustom/hooks/useDragEngine.ts +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
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.1.0 (2026-11-03)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **AIX-487:** ai-history-line component ([8f9d550](https://github.com/cloud-ru-tech/snack-v2/commit/8f9d550beb53b91d945816e48b6a280c3ad677b8))
|
|
11
|
+
|
|
6
12
|
## 2.0.9 (2026-10-30)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @ds/bottom-sheet
|
|
@@ -143,10 +143,6 @@ function useDragEngine({ snapPoints, defaultSnapIndex = 0, snapIndex: snapIndexP
|
|
|
143
143
|
const onPointerDown = (0, react_1.useCallback)((event) => {
|
|
144
144
|
if (!swipeEnabled || !isActive)
|
|
145
145
|
return;
|
|
146
|
-
// События вложенного React-портала всплывают в родительский sheet, хотя его DOM
|
|
147
|
-
// не содержит цель жеста. Такой жест принадлежит только вложенной панели.
|
|
148
|
-
if (!(event.target instanceof Node) || !event.currentTarget.contains(event.target))
|
|
149
|
-
return;
|
|
150
146
|
if (!event.isPrimary || pointerId.current !== null)
|
|
151
147
|
return;
|
|
152
148
|
if (event.pointerType === 'mouse' && event.button !== 0)
|
|
@@ -140,10 +140,6 @@ export function useDragEngine({ snapPoints, defaultSnapIndex = 0, snapIndex: sna
|
|
|
140
140
|
const onPointerDown = useCallback((event) => {
|
|
141
141
|
if (!swipeEnabled || !isActive)
|
|
142
142
|
return;
|
|
143
|
-
// События вложенного React-портала всплывают в родительский sheet, хотя его DOM
|
|
144
|
-
// не содержит цель жеста. Такой жест принадлежит только вложенной панели.
|
|
145
|
-
if (!(event.target instanceof Node) || !event.currentTarget.contains(event.target))
|
|
146
|
-
return;
|
|
147
143
|
if (!event.isPrimary || pointerId.current !== null)
|
|
148
144
|
return;
|
|
149
145
|
if (event.pointerType === 'mouse' && event.button !== 0)
|