@aintela/chat 0.2.51 → 0.2.53
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/components.js +5461 -5426
- package/dist/components.js.map +1 -1
- package/dist/src/components/v2/TriggerDropdown.d.ts +11 -3
- package/package.json +1 -1
|
@@ -24,8 +24,16 @@ export interface TriggerDropdownProps {
|
|
|
24
24
|
/**
|
|
25
25
|
* The dropdown body.
|
|
26
26
|
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
27
|
+
* Selection is split by pointer type, because the two have opposite requirements.
|
|
28
|
+
*
|
|
29
|
+
* MOUSE selects on pointerdown with `preventDefault()` — the one sequence that keeps the composer's textarea
|
|
30
|
+
* focused through the pick. A plain click blurs it first, and handling mousedown+touchstart together fires twice
|
|
31
|
+
* on WebKit.
|
|
32
|
+
*
|
|
33
|
+
* TOUCH must not do either of those. Selecting on pointerdown makes every scroll pick whatever row the finger
|
|
34
|
+
* happened to land on, and `preventDefault()` there cancels the browser's own scrolling for that gesture — so the
|
|
35
|
+
* list could not be swiped at all. Touch therefore selects on pointerUP, and only when the gesture stayed put:
|
|
36
|
+
* the browser fires `pointercancel` the moment it claims the gesture for scrolling, which is the authoritative
|
|
37
|
+
* "this was a scroll, not a tap" signal. The slop check is a belt-and-braces for a shaky finger.
|
|
30
38
|
*/
|
|
31
39
|
export declare function TriggerDropdown({ items, highlight, onHighlight, onSelect, loading, personLabel, locationLabel, touch, emptyLabel, sx, }: TriggerDropdownProps): import("react/jsx-runtime").JSX.Element;
|