@eloquentai/chat-sdk 0.30.12-dev → 0.30.13-dev
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/chat/keyboard-inset.hook.d.ts +6 -0
- package/dist/components/chat/scroll-lock.hook.d.ts +6 -0
- package/dist/components/chat-interface/index.d.ts +2 -0
- package/dist/{index-BVamj76p.js → index-BhNxVoj7.js} +757 -717
- package/dist/index-BhNxVoj7.js.map +1 -0
- package/dist/{index-D5p4GnZ2.js → index-CiWiemZf.js} +2 -2
- package/dist/{index-D5p4GnZ2.js.map → index-CiWiemZf.js.map} +1 -1
- package/dist/index.css +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/index-BVamj76p.js.map +0 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tracks how much the on-screen keyboard overlaps the layout viewport, using
|
|
3
|
+
* the VisualViewport API. Used to lift the chat input above the keyboard
|
|
4
|
+
* without moving/resizing the rest of the chat window.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useKeyboardInset(enabled: boolean): number;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Locks scrolling on the host page while active. Uses the fixed-body trick
|
|
3
|
+
* (rather than plain `overflow: hidden`) so it also holds on iOS Safari,
|
|
4
|
+
* which otherwise still allows background scroll/bounce behind the chat.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useScrollLock(locked: boolean): void;
|
|
@@ -5,6 +5,8 @@ export interface ChatInterfaceProps {
|
|
|
5
5
|
theme?: Partial<ThemeContextType>;
|
|
6
6
|
isOpen?: boolean;
|
|
7
7
|
isMobile?: boolean;
|
|
8
|
+
/** Current on-screen keyboard overlap (px), used to lift the input above it. */
|
|
9
|
+
keyboardInset?: number;
|
|
8
10
|
messages?: Message[];
|
|
9
11
|
assistantName?: string;
|
|
10
12
|
assistantLogo?: string;
|