@epam/ai-dial-conversation-input 1.3.0-dev.342 → 1.3.0-dev.348
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/components/Input/Input.d.ts.map +1 -1
- package/components/Input/InputAttachButton.d.ts +45 -0
- package/components/Input/InputAttachButton.d.ts.map +1 -0
- package/components/Input/InputCommandMenuArea.d.ts +48 -0
- package/components/Input/InputCommandMenuArea.d.ts.map +1 -0
- package/components/Input/InputTextareaArea.d.ts +22 -0
- package/components/Input/InputTextareaArea.d.ts.map +1 -0
- package/components/Input/hooks/useCommandMenuAnchor.d.ts +36 -0
- package/components/Input/hooks/useCommandMenuAnchor.d.ts.map +1 -0
- package/components/Input/hooks/useCommandMenuController.d.ts +49 -0
- package/components/Input/hooks/useCommandMenuController.d.ts.map +1 -0
- package/components/Input/hooks/useDismissibleTools.d.ts +18 -0
- package/components/Input/hooks/useDismissibleTools.d.ts.map +1 -0
- package/components/Input/hooks/usePasteHandling.d.ts +21 -0
- package/components/Input/hooks/usePasteHandling.d.ts.map +1 -0
- package/components/Input/hooks/useSendKeyboard.d.ts +41 -0
- package/components/Input/hooks/useSendKeyboard.d.ts.map +1 -0
- package/components/Input/hooks/useVoiceInput.d.ts +39 -0
- package/components/Input/hooks/useVoiceInput.d.ts.map +1 -0
- package/components/Input/input-css-vars.d.ts +8 -0
- package/components/Input/input-css-vars.d.ts.map +1 -0
- package/index.css +1 -1
- package/index.js +1711 -1535
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAkBlE,wIAAwI;AACxI,eAAO,MAAM,KAAK,oGAmqBjB,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ToolMenuItem } from '@epam/ai-dial-chat-shared';
|
|
2
|
+
import { CSSProperties, RefObject } from 'react';
|
|
3
|
+
import { ChatSettingsConfig, MenuOverlayConfig } from '../../models/Input';
|
|
4
|
+
import { useVoiceInput } from './hooks/useVoiceInput';
|
|
5
|
+
interface InputAttachButtonProps {
|
|
6
|
+
fileInputRef: RefObject<HTMLInputElement | null>;
|
|
7
|
+
textareaRef: RefObject<HTMLTextAreaElement | null>;
|
|
8
|
+
message: string;
|
|
9
|
+
style: CSSProperties;
|
|
10
|
+
hideAttachFile: boolean | undefined;
|
|
11
|
+
isInputDisabled: boolean;
|
|
12
|
+
isStreaming: boolean;
|
|
13
|
+
isAttachmentsEnabled: boolean;
|
|
14
|
+
isVoiceRecordingSupported: boolean | undefined;
|
|
15
|
+
isVoiceActive: boolean;
|
|
16
|
+
startRecording: ReturnType<typeof useVoiceInput>['startRecording'];
|
|
17
|
+
isPhone: boolean;
|
|
18
|
+
canRemoveTools: boolean;
|
|
19
|
+
toolsMenuItems: ToolMenuItem[] | undefined;
|
|
20
|
+
onToolToggle: ((toolId: string) => void) | undefined;
|
|
21
|
+
chatSettings: ChatSettingsConfig | undefined;
|
|
22
|
+
menuOverlays: MenuOverlayConfig[] | undefined;
|
|
23
|
+
onDialFileSystemClick: (() => void) | undefined;
|
|
24
|
+
dialFileSystemLabel: string | undefined;
|
|
25
|
+
attachLabel: string;
|
|
26
|
+
addMenuTitle: string;
|
|
27
|
+
menuTitle: string;
|
|
28
|
+
menuCloseLabel: string;
|
|
29
|
+
recordVoiceLabel: string | undefined;
|
|
30
|
+
toolsMenuTitle: string | undefined;
|
|
31
|
+
toolsBackLabel: string | undefined;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* The `+` attach button of `Input` with its menu: file upload, the DIAL
|
|
35
|
+
* file system entry, voice recording as an attachment, chat settings and the
|
|
36
|
+
* tools submenu. Private to `Input`.
|
|
37
|
+
*
|
|
38
|
+
* Shared between the normal footer and the voice bar's second row: same
|
|
39
|
+
* menu, same file input, only its disabled state differs. Disabled while
|
|
40
|
+
* a dictation/attachment recording is anything but actively Recording, so
|
|
41
|
+
* it cannot be used to interrupt a pending transcription.
|
|
42
|
+
*/
|
|
43
|
+
export declare const InputAttachButton: ({ fileInputRef, textareaRef, message, style, hideAttachFile, isInputDisabled, isStreaming, isAttachmentsEnabled, isVoiceRecordingSupported, isVoiceActive, startRecording, isPhone, canRemoveTools, toolsMenuItems, onToolToggle, chatSettings, menuOverlays, onDialFileSystemClick, dialFileSystemLabel, attachLabel, addMenuTitle, menuTitle, menuCloseLabel, recordVoiceLabel, toolsMenuTitle, toolsBackLabel, }: InputAttachButtonProps) => import('react').JSX.Element;
|
|
44
|
+
export {};
|
|
45
|
+
//# sourceMappingURL=InputAttachButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputAttachButton.d.ts","sourceRoot":"","sources":["../../../src/components/Input/InputAttachButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAG9D,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAEpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEhF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,UAAU,sBAAsB;IAC9B,YAAY,EAAE,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IACjD,WAAW,EAAE,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;IACnD,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,aAAa,CAAC;IACrB,cAAc,EAAE,OAAO,GAAG,SAAS,CAAC;IACpC,eAAe,EAAE,OAAO,CAAC;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,yBAAyB,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/C,aAAa,EAAE,OAAO,CAAC;IACvB,cAAc,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,gBAAgB,CAAC,CAAC;IACnE,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,OAAO,CAAC;IACxB,cAAc,EAAE,YAAY,EAAE,GAAG,SAAS,CAAC;IAC3C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IACrD,YAAY,EAAE,kBAAkB,GAAG,SAAS,CAAC;IAC7C,YAAY,EAAE,iBAAiB,EAAE,GAAG,SAAS,CAAC;IAC9C,qBAAqB,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IAChD,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,GAAI,qZA2B/B,sBAAsB,gCA8DxB,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ReactNode, RefObject } from 'react';
|
|
2
|
+
import { InputProps } from '../../models/Input';
|
|
3
|
+
import { useCommandMenuAnchor } from './hooks/useCommandMenuAnchor';
|
|
4
|
+
import { useCommandMenuController } from './hooks/useCommandMenuController';
|
|
5
|
+
type CommandMenuController = ReturnType<typeof useCommandMenuController>;
|
|
6
|
+
interface InputCommandMenuAreaProps {
|
|
7
|
+
textarea: ReactNode;
|
|
8
|
+
textareaRef: RefObject<HTMLTextAreaElement | null>;
|
|
9
|
+
commandMenu: InputProps['commandMenu'];
|
|
10
|
+
caretAnchor: ReturnType<typeof useCommandMenuAnchor>['caretAnchor'];
|
|
11
|
+
fontClassName: string | undefined;
|
|
12
|
+
isMenuOpen: boolean;
|
|
13
|
+
query: CommandMenuController['query'];
|
|
14
|
+
activeWordStart: CommandMenuController['activeWordStart'];
|
|
15
|
+
listboxId: CommandMenuController['commandMenuListboxId'];
|
|
16
|
+
activeOptionId: CommandMenuController['activeCommandOptionId'];
|
|
17
|
+
overlayRef: CommandMenuController['commandMenuOverlayRef'];
|
|
18
|
+
onOutsidePress: () => void;
|
|
19
|
+
onClose: CommandMenuController['handleCloseCommandMenu'];
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The command menu anchors to the trigger word's own on-screen position,
|
|
23
|
+
* not to the textarea as a whole — the kit `Dropdown` wraps its
|
|
24
|
+
* `children` in the actual floating-ui reference element, so that
|
|
25
|
+
* element has to sit at `caretAnchor` rather than the textarea itself
|
|
26
|
+
* (which, unlike the marker, sits fixed at the box's own top-left
|
|
27
|
+
* regardless of where the trigger word is). `Dropdown` takes no `style`
|
|
28
|
+
* prop, only `className`, so it cannot be positioned directly with a
|
|
29
|
+
* computed pixel value — instead, a plain `<div>` this component fully
|
|
30
|
+
* controls carries the inline `style` and is absolutely positioned at
|
|
31
|
+
* `caretAnchor`; `Dropdown`'s own internal reference span, rendered as
|
|
32
|
+
* that div's only child with no positioning of its own, lands in normal
|
|
33
|
+
* flow at the div's origin, i.e. exactly at the caret. The real textarea
|
|
34
|
+
* renders as a sibling instead of `Dropdown`'s child. `trigger={[]}`
|
|
35
|
+
* keeps the controlled `open` prop the only opener, focus stays in the
|
|
36
|
+
* textarea on open (`initialFocus={-1}`), and clicks inside the textarea
|
|
37
|
+
* count as inside the menu (`outsidePressIgnoreRef`).
|
|
38
|
+
* `matchReferenceWidth={false}` drops the kit's default min-width equal
|
|
39
|
+
* to the (now zero-size) reference, so the overlay sizes to its content.
|
|
40
|
+
*
|
|
41
|
+
* Always the same Fragment with the textarea as its first child, so toggling
|
|
42
|
+
* `commandMenu` (e.g. switching to a skills-capable model) never changes the
|
|
43
|
+
* textarea's parent type and never remounts it (focus, caret and IME state
|
|
44
|
+
* survive).
|
|
45
|
+
*/
|
|
46
|
+
export declare const InputCommandMenuArea: ({ textarea, textareaRef, commandMenu, caretAnchor, fontClassName, isMenuOpen, query, activeWordStart, listboxId, activeOptionId, overlayRef, onOutsidePress, onClose, }: InputCommandMenuAreaProps) => import('react').JSX.Element;
|
|
47
|
+
export {};
|
|
48
|
+
//# sourceMappingURL=InputCommandMenuArea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputCommandMenuArea.d.ts","sourceRoot":"","sources":["../../../src/components/Input/InputCommandMenuArea.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAEjF,KAAK,qBAAqB,GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEzE,UAAU,yBAAyB;IACjC,QAAQ,EAAE,SAAS,CAAC;IACpB,WAAW,EAAE,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;IACnD,WAAW,EAAE,UAAU,CAAC,aAAa,CAAC,CAAC;IACvC,WAAW,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,aAAa,CAAC,CAAC;IACpE,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,qBAAqB,CAAC,OAAO,CAAC,CAAC;IACtC,eAAe,EAAE,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;IAC1D,SAAS,EAAE,qBAAqB,CAAC,sBAAsB,CAAC,CAAC;IACzD,cAAc,EAAE,qBAAqB,CAAC,uBAAuB,CAAC,CAAC;IAC/D,UAAU,EAAE,qBAAqB,CAAC,uBAAuB,CAAC,CAAC;IAC3D,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,OAAO,EAAE,qBAAqB,CAAC,wBAAwB,CAAC,CAAC;CAC1D;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,oBAAoB,GAAI,yKAclC,yBAAyB,gCAiE3B,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactNode, RefObject } from 'react';
|
|
2
|
+
import { HighlightedTextRange } from '../../models/Input';
|
|
3
|
+
import { MirrorInsertion } from '../../utils/highlight-mirror';
|
|
4
|
+
interface InputTextareaAreaProps {
|
|
5
|
+
areaRef: RefObject<HTMLDivElement | null>;
|
|
6
|
+
mirrorRef: RefObject<HTMLDivElement | null>;
|
|
7
|
+
isMirrorActive: boolean;
|
|
8
|
+
fontClassName: string | undefined;
|
|
9
|
+
message: string;
|
|
10
|
+
mentionRanges: HighlightedTextRange[];
|
|
11
|
+
mirrorInsertions: MirrorInsertion[];
|
|
12
|
+
selectionRects: DOMRect[];
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The textarea area of `Input`: the mention-highlight mirror with its
|
|
17
|
+
* replacement selection highlight, layered over the textarea and its
|
|
18
|
+
* command menu. Presentational and private to `Input`.
|
|
19
|
+
*/
|
|
20
|
+
export declare const InputTextareaArea: ({ areaRef, mirrorRef, isMirrorActive, fontClassName, message, mentionRanges, mirrorInsertions, selectionRects, children, }: InputTextareaAreaProps) => import('react').JSX.Element;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=InputTextareaArea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputTextareaArea.d.ts","sourceRoot":"","sources":["../../../src/components/Input/InputTextareaArea.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EACL,KAAK,eAAe,EAErB,MAAM,8BAA8B,CAAC;AAGtC,UAAU,sBAAsB;IAE9B,OAAO,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC1C,SAAS,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC5C,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,oBAAoB,EAAE,CAAC;IACtC,gBAAgB,EAAE,eAAe,EAAE,CAAC;IACpC,cAAc,EAAE,OAAO,EAAE,CAAC;IAE1B,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAAI,4HAU/B,sBAAsB,gCA+CxB,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { InputProps } from '../../../models/Input';
|
|
3
|
+
import { MirrorInsertion } from '../../../utils/highlight-mirror';
|
|
4
|
+
interface UseCommandMenuAnchorParams {
|
|
5
|
+
commandMenu: InputProps['commandMenu'];
|
|
6
|
+
message: string;
|
|
7
|
+
textareaRef: RefObject<HTMLTextAreaElement | null>;
|
|
8
|
+
hasActiveMentions: boolean;
|
|
9
|
+
markerOffset: number | null;
|
|
10
|
+
triggerEnd: number | null;
|
|
11
|
+
hasCommandEmptyQueryHint: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Anchors `Input`'s command popup to the trigger word: splices a zero-size
|
|
15
|
+
* caret marker (and the empty-query hint) into the mention-highlight mirror,
|
|
16
|
+
* keeps the mirror in sync with the textarea, and measures the marker's
|
|
17
|
+
* position relative to the textarea area. `useMentionSelectionMirror` is
|
|
18
|
+
* called before the measuring layout effect on purpose, so the mirror has
|
|
19
|
+
* scrolled into sync before the marker inside it is measured. Private to
|
|
20
|
+
* `Input`.
|
|
21
|
+
*/
|
|
22
|
+
export declare const useCommandMenuAnchor: ({ commandMenu, message, textareaRef, hasActiveMentions, markerOffset, triggerEnd, hasCommandEmptyQueryHint, }: UseCommandMenuAnchorParams) => {
|
|
23
|
+
textareaAreaRef: RefObject<HTMLDivElement | null>;
|
|
24
|
+
caretAnchor: {
|
|
25
|
+
left: number;
|
|
26
|
+
top: number;
|
|
27
|
+
} | null;
|
|
28
|
+
mirrorInsertions: MirrorInsertion[];
|
|
29
|
+
isMirrorActive: boolean;
|
|
30
|
+
mirrorRef: RefObject<HTMLDivElement | null>;
|
|
31
|
+
selectionRects: DOMRect[];
|
|
32
|
+
updateSelectionRects: () => void;
|
|
33
|
+
handleTextareaScroll: () => void;
|
|
34
|
+
};
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=useCommandMenuAnchor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCommandMenuAnchor.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/hooks/useCommandMenuAnchor.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EAOf,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAGvE,UAAU,0BAA0B;IAClC,WAAW,EAAE,UAAU,CAAC,aAAa,CAAC,CAAC;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;IACnD,iBAAiB,EAAE,OAAO,CAAC;IAE3B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,wBAAwB,EAAE,OAAO,CAAC;CACnC;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,GAAI,+GAQlC,0BAA0B;;;cAYnB,MAAM;aACP,MAAM;;;;;;;;CAkHd,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { KeyboardEvent } from 'react';
|
|
2
|
+
import { useInputHistoryNavigation } from '../../../hooks/useInputHistoryNavigation';
|
|
3
|
+
import { useMessageState } from '../../../hooks/useMessageState';
|
|
4
|
+
import { InputProps, SendOnEnter } from '../../../models/Input';
|
|
5
|
+
interface UseCommandMenuControllerParams {
|
|
6
|
+
commandMenu: InputProps['commandMenu'];
|
|
7
|
+
message: string;
|
|
8
|
+
setMessage: ReturnType<typeof useMessageState>['setMessage'];
|
|
9
|
+
textareaRef: ReturnType<typeof useMessageState>['textareaRef'];
|
|
10
|
+
historyNav: ReturnType<typeof useInputHistoryNavigation>;
|
|
11
|
+
onChange: ((message: string) => void) | undefined;
|
|
12
|
+
caretPositionOverride: number | undefined;
|
|
13
|
+
messageRevision: number | undefined;
|
|
14
|
+
markCaretPlaced: () => void;
|
|
15
|
+
sendOnEnter: SendOnEnter;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The `/command` menu wiring of `Input`: re-evaluates the menu when the caret
|
|
19
|
+
* moves, derives the empty-query hint and the popup's marker offset, consumes
|
|
20
|
+
* the `/query` text on selection, restores a host-driven caret, and owns the
|
|
21
|
+
* keys an open menu takes. Returns `skipFocusMenuEvaluationRef`, which
|
|
22
|
+
* `useVoiceInput` sets when it restores focus after recording. Private to
|
|
23
|
+
* `Input`.
|
|
24
|
+
*/
|
|
25
|
+
export declare const useCommandMenuController: ({ commandMenu, message, setMessage, textareaRef, historyNav, onChange, caretPositionOverride, messageRevision, markCaretPlaced, sendOnEnter, }: UseCommandMenuControllerParams) => {
|
|
26
|
+
isMenuOpen: boolean;
|
|
27
|
+
query: string;
|
|
28
|
+
activeWordStart: number | null;
|
|
29
|
+
closeOnOutsidePress: () => void;
|
|
30
|
+
handleValueChange: (nextValue: string, caretPosition: number, isComposing: boolean) => void;
|
|
31
|
+
commandMenuListboxId: string;
|
|
32
|
+
commandMenuOverlayRef: import('react').RefObject<HTMLDivElement | null>;
|
|
33
|
+
activeCommandOptionId: string | null;
|
|
34
|
+
handleTextareaClick: () => void;
|
|
35
|
+
handleTextareaFocus: () => void;
|
|
36
|
+
handleTextareaKeyUp: (e: KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
37
|
+
skipFocusMenuEvaluationRef: import('react').RefObject<boolean>;
|
|
38
|
+
triggerEnd: number | null;
|
|
39
|
+
hasCommandEmptyQueryHint: boolean;
|
|
40
|
+
markerOffset: number | null;
|
|
41
|
+
handleCloseCommandMenu: (options?: {
|
|
42
|
+
consumeQuery?: boolean;
|
|
43
|
+
returnFocus?: boolean;
|
|
44
|
+
}) => void;
|
|
45
|
+
isSendGesture: (e: KeyboardEvent<HTMLTextAreaElement>) => boolean;
|
|
46
|
+
handleCommandMenuKeyDown: (e: KeyboardEvent<HTMLTextAreaElement>) => boolean;
|
|
47
|
+
};
|
|
48
|
+
export {};
|
|
49
|
+
//# sourceMappingURL=useCommandMenuController.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCommandMenuController.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/hooks/useCommandMenuController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAkC,MAAM,OAAO,CAAC;AAK3E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AAC1F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,KAAK,UAAU,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAErE,UAAU,8BAA8B;IACtC,WAAW,EAAE,UAAU,CAAC,aAAa,CAAC,CAAC;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,YAAY,CAAC,CAAC;IAC7D,WAAW,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,aAAa,CAAC,CAAC;IAC/D,UAAU,EAAE,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;IACzD,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IAClD,qBAAqB,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IAEpC,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,WAAW,EAAE,WAAW,CAAC;CAC1B;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,GAAI,gJAWtC,8BAA8B;;;;;;;;;;;6BA8DC,aAAa,CAAC,mBAAmB,CAAC;;;;;uCAoErD;QAAE,YAAY,CAAC,EAAE,OAAO,CAAC;QAAC,WAAW,CAAC,EAAE,OAAO,CAAA;KAAE;uBAkEpC,aAAa,CAAC,mBAAmB,CAAC;kCAoBvD,aAAa,CAAC,mBAAmB,CAAC,KACpC,OAAO;CAyDX,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ToolMenuItem } from '@epam/ai-dial-chat-shared';
|
|
2
|
+
interface UseDismissibleToolsParams {
|
|
3
|
+
toolsMenuItems: ToolMenuItem[] | undefined;
|
|
4
|
+
canRemoveTools: boolean;
|
|
5
|
+
isPhone: boolean;
|
|
6
|
+
onToolToggle: ((toolId: string) => void) | undefined;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Tool chips the composer shows and the chip × dismissal behind them. Private
|
|
10
|
+
* to `Input`: dismissal is view state of one composer, forgotten when the
|
|
11
|
+
* deployment offers a different tool list.
|
|
12
|
+
*/
|
|
13
|
+
export declare const useDismissibleTools: ({ toolsMenuItems, canRemoveTools, isPhone, onToolToggle, }: UseDismissibleToolsParams) => {
|
|
14
|
+
visibleTools: ToolMenuItem[];
|
|
15
|
+
handleToolDismiss: (toolId: string) => void;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=useDismissibleTools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDismissibleTools.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/hooks/useDismissibleTools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAG9D,UAAU,yBAAyB;IACjC,cAAc,EAAE,YAAY,EAAE,GAAG,SAAS,CAAC;IAC3C,cAAc,EAAE,OAAO,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;CACtD;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAAI,4DAKjC,yBAAyB;;gCA8Bf,MAAM;CAWlB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ClipboardEvent } from 'react';
|
|
2
|
+
import { useAttachments } from '../../../hooks/useAttachments';
|
|
3
|
+
import { InputProps } from '../../../models/Input';
|
|
4
|
+
interface UsePasteHandlingParams {
|
|
5
|
+
addAttachments: ReturnType<typeof useAttachments>['addAttachments'];
|
|
6
|
+
isAttachmentsEnabled: boolean;
|
|
7
|
+
isTextAttachmentsAllowed: boolean;
|
|
8
|
+
pasteTextThreshold: number;
|
|
9
|
+
maxMessageLength: number;
|
|
10
|
+
onMessageTooLong: InputProps['onMessageTooLong'];
|
|
11
|
+
commandMenu: InputProps['commandMenu'];
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The textarea's paste handler for `Input`: turns a long plain-text paste
|
|
15
|
+
* into a `text/plain` attachment when the model accepts one, warns about a
|
|
16
|
+
* paste that alone exceeds the message cap, and reports inline pasted text
|
|
17
|
+
* to the command menu. Private to `Input`.
|
|
18
|
+
*/
|
|
19
|
+
export declare const usePasteHandling: ({ addAttachments, isAttachmentsEnabled, isTextAttachmentsAllowed, pasteTextThreshold, maxMessageLength, onMessageTooLong, commandMenu, }: UsePasteHandlingParams) => (e: ClipboardEvent<HTMLTextAreaElement>) => void;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=usePasteHandling.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePasteHandling.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/hooks/usePasteHandling.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAe,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD,UAAU,sBAAsB;IAC9B,cAAc,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,gBAAgB,CAAC,CAAC;IACpE,oBAAoB,EAAE,OAAO,CAAC;IAC9B,wBAAwB,EAAE,OAAO,CAAC;IAClC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,UAAU,CAAC,kBAAkB,CAAC,CAAC;IACjD,WAAW,EAAE,UAAU,CAAC,aAAa,CAAC,CAAC;CACxC;AAED;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAI,0IAQ9B,sBAAsB,SAiBjB,cAAc,CAAC,mBAAmB,CAAC,SAkC1C,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { KeyboardEvent } from 'react';
|
|
2
|
+
import { useAttachments } from '../../../hooks/useAttachments';
|
|
3
|
+
import { useInputHistoryNavigation } from '../../../hooks/useInputHistoryNavigation';
|
|
4
|
+
import { useMessageState } from '../../../hooks/useMessageState';
|
|
5
|
+
import { UseTextInsertionResult } from '../../../hooks/useTextInsertion';
|
|
6
|
+
import { InputProps } from '../../../models/Input';
|
|
7
|
+
import { useCommandMenuController } from './useCommandMenuController';
|
|
8
|
+
type Attachments = ReturnType<typeof useAttachments>;
|
|
9
|
+
type CommandMenuController = ReturnType<typeof useCommandMenuController>;
|
|
10
|
+
interface UseSendKeyboardParams {
|
|
11
|
+
message: string;
|
|
12
|
+
setMessage: ReturnType<typeof useMessageState>['setMessage'];
|
|
13
|
+
attachments: Attachments['attachments'];
|
|
14
|
+
resetAttachments: Attachments['resetAttachments'];
|
|
15
|
+
historyNav: ReturnType<typeof useInputHistoryNavigation>;
|
|
16
|
+
onSend: InputProps['onSend'];
|
|
17
|
+
onMessageTooLong: InputProps['onMessageTooLong'];
|
|
18
|
+
maxMessageLength: number;
|
|
19
|
+
isSendDisabled: boolean;
|
|
20
|
+
isVoiceActive: boolean;
|
|
21
|
+
isInputDisabled: boolean;
|
|
22
|
+
isStreaming: boolean;
|
|
23
|
+
canSend: boolean;
|
|
24
|
+
hasModelSelected: boolean;
|
|
25
|
+
handleUndoKeyDown: UseTextInsertionResult['handleUndoKeyDown'];
|
|
26
|
+
handleCommandMenuKeyDown: CommandMenuController['handleCommandMenuKeyDown'];
|
|
27
|
+
isSendGesture: CommandMenuController['isSendGesture'];
|
|
28
|
+
onBackspaceAtCaret: InputProps['onBackspaceAtCaret'];
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Sending and the textarea's keyboard for `Input`: the send action with its
|
|
32
|
+
* restore-on-failure, and `handleKeyDown`, which runs in order the pending
|
|
33
|
+
* undo, the open command menu's keys, history navigation, the whole-mention
|
|
34
|
+
* Backspace, and Enter-to-send. Private to `Input`.
|
|
35
|
+
*/
|
|
36
|
+
export declare const useSendKeyboard: ({ message, setMessage, attachments, resetAttachments, historyNav, onSend, onMessageTooLong, maxMessageLength, isSendDisabled, isVoiceActive, isInputDisabled, isStreaming, canSend, hasModelSelected, handleUndoKeyDown, handleCommandMenuKeyDown, isSendGesture, onBackspaceAtCaret, }: UseSendKeyboardParams) => {
|
|
37
|
+
handleSend: () => Promise<void>;
|
|
38
|
+
handleKeyDown: (e: KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
39
|
+
};
|
|
40
|
+
export {};
|
|
41
|
+
//# sourceMappingURL=useSendKeyboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSendKeyboard.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/hooks/useSendKeyboard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AAC1F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAE3E,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAErD,KAAK,qBAAqB,GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEzE,UAAU,qBAAqB;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,YAAY,CAAC,CAAC;IAC7D,WAAW,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC;IACxC,gBAAgB,EAAE,WAAW,CAAC,kBAAkB,CAAC,CAAC;IAClD,UAAU,EAAE,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;IACzD,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC7B,gBAAgB,EAAE,UAAU,CAAC,kBAAkB,CAAC,CAAC;IACjD,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;IACvB,eAAe,EAAE,OAAO,CAAC;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,iBAAiB,EAAE,sBAAsB,CAAC,mBAAmB,CAAC,CAAC;IAC/D,wBAAwB,EAAE,qBAAqB,CAAC,0BAA0B,CAAC,CAAC;IAC5E,aAAa,EAAE,qBAAqB,CAAC,eAAe,CAAC,CAAC;IACtD,kBAAkB,EAAE,UAAU,CAAC,oBAAoB,CAAC,CAAC;CACtD;AAED;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,yRAmB7B,qBAAqB;;uBAyBI,aAAa,CAAC,mBAAmB,CAAC;CAgE7D,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { MutableRefObject, RefObject } from 'react';
|
|
2
|
+
import { useAttachments } from '../../../hooks/useAttachments';
|
|
3
|
+
import { useInputHistoryNavigation } from '../../../hooks/useInputHistoryNavigation';
|
|
4
|
+
import { useMessageState } from '../../../hooks/useMessageState';
|
|
5
|
+
import { VoiceRecorderState } from '../../../hooks/useVoiceRecorder';
|
|
6
|
+
import { TranscribeAudio } from '../../../models/Voice';
|
|
7
|
+
type Attachments = ReturnType<typeof useAttachments>;
|
|
8
|
+
interface UseVoiceInputParams {
|
|
9
|
+
addAttachments: Attachments['addAttachments'];
|
|
10
|
+
buildAttachments: Attachments['buildAttachments'];
|
|
11
|
+
draftRef: MutableRefObject<string>;
|
|
12
|
+
setMessage: ReturnType<typeof useMessageState>['setMessage'];
|
|
13
|
+
historyNav: ReturnType<typeof useInputHistoryNavigation>;
|
|
14
|
+
onChange: ((message: string) => void) | undefined;
|
|
15
|
+
onTranscribeAudio: TranscribeAudio | undefined;
|
|
16
|
+
voiceErrorLabel: string | undefined;
|
|
17
|
+
textareaRef: RefObject<HTMLTextAreaElement | null>;
|
|
18
|
+
skipFocusMenuEvaluationRef: MutableRefObject<boolean>;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Voice recording for `Input`: attaches recorded audio or merges a transcript
|
|
22
|
+
* into the draft, and puts focus and the caret back at the end of the
|
|
23
|
+
* textarea once recording ends. Private to `Input`.
|
|
24
|
+
*/
|
|
25
|
+
export declare const useVoiceInput: ({ addAttachments, buildAttachments, draftRef, setMessage, historyNav, onChange, onTranscribeAudio, voiceErrorLabel, textareaRef, skipFocusMenuEvaluationRef, }: UseVoiceInputParams) => {
|
|
26
|
+
voiceState: VoiceRecorderState;
|
|
27
|
+
analyserNodeRef: RefObject<AnalyserNode | null>;
|
|
28
|
+
voiceError: string | null;
|
|
29
|
+
startRecording: (mode?: import('../../../hooks/useVoiceRecorder').VoiceRecordingMode) => void;
|
|
30
|
+
stopRecording: () => void;
|
|
31
|
+
discardRecording: () => void;
|
|
32
|
+
isVoiceActive: boolean;
|
|
33
|
+
latestTranscript: {
|
|
34
|
+
text: string;
|
|
35
|
+
revision: number;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export {};
|
|
39
|
+
//# sourceMappingURL=useVoiceInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useVoiceInput.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/hooks/useVoiceInput.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AAC1F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAEL,kBAAkB,EACnB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAErD,UAAU,mBAAmB;IAC3B,cAAc,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;IAC9C,gBAAgB,EAAE,WAAW,CAAC,kBAAkB,CAAC,CAAC;IAElD,QAAQ,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IACnC,UAAU,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,YAAY,CAAC,CAAC;IAC7D,UAAU,EAAE,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;IACzD,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IAClD,iBAAiB,EAAE,eAAe,GAAG,SAAS,CAAC;IAC/C,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,WAAW,EAAE,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;IAEnD,0BAA0B,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;CACvD;AAED;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,gKAW3B,mBAAmB;;;;;;;;;;;;CAqFrB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { InputProps } from '../../models/Input';
|
|
3
|
+
/**
|
|
4
|
+
* Maps `Input`'s `colors` prop to the `--ci-*` CSS variables its stylesheet
|
|
5
|
+
* and child components read. Private to `Input`.
|
|
6
|
+
*/
|
|
7
|
+
export declare const buildInputCssVars: (colors: InputProps["colors"]) => CSSProperties;
|
|
8
|
+
//# sourceMappingURL=input-css-vars.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-css-vars.d.ts","sourceRoot":"","sources":["../../../src/components/Input/input-css-vars.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAC5B,QAAQ,UAAU,CAAC,QAAQ,CAAC,KAC3B,aAsBC,CAAC"}
|
package/index.css
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
._backdrop_1ym62_8._backdrop_1ym62_8{background:var(--ci-backdrop,var(--bg-backdrop,#161b2d4d))}._sheet_1ym62_12._sheet_1ym62_12{background:var(--ci-sheet-bg,var(--bg-layer-raised,#fcfcfc))}._title_1ym62_16._title_1ym62_16{color:var(--ci-sheet-text,var(--text-primary,#161b2d))}._divider_1ym62_20._divider_1ym62_20{border-bottom-color:var(--ci-sheet-divider,var(--stroke-tertiary,#e0e6f0))}.
|
|
1
|
+
._backdrop_1ym62_8._backdrop_1ym62_8{background:var(--ci-backdrop,var(--bg-backdrop,#161b2d4d))}._sheet_1ym62_12._sheet_1ym62_12{background:var(--ci-sheet-bg,var(--bg-layer-raised,#fcfcfc))}._title_1ym62_16._title_1ym62_16{color:var(--ci-sheet-text,var(--text-primary,#161b2d))}._divider_1ym62_20._divider_1ym62_20{border-bottom-color:var(--ci-sheet-divider,var(--stroke-tertiary,#e0e6f0))}._chip_1lvv5_1{background:var(--ci-chip-bg,var(--bg-layer-base,#f5f7fa));border-color:var(--ci-chip-border,var(--stroke-secondary,#d1dbea))}._chip_1lvv5_1:hover,._chip_1lvv5_1:focus-visible{background:var(--ci-chip-hover-bg,var(--bg-control-neutral-hover-muted,#e0e6f0))}._chipSelected_1lvv5_9{background:var(--ci-chip-selected-bg,var(--bg-control-accent-alpha,#2764d90f));border-color:var(--ci-chip-selected-border,var(--stroke-accent,#1d4ed8))}._chipSelected_1lvv5_9:hover,._chipSelected_1lvv5_9:focus-visible{background:var(--ci-chip-selected-bg-hover,var(--bg-control-accent-alpha-hover,#2764d924))}._chipSelected_1lvv5_9 ._chipIcon_1lvv5_16{color:var(--ci-chip-selected-icon,var(--text-accent,#1d4ed8))}._chipSelected_1lvv5_9 ._chipText_1lvv5_19,._chipSelected_1lvv5_9 ._chipState_1lvv5_22{color:var(--ci-chip-selected-text,var(--text-accent,#1d4ed8))}._chipSelected_1lvv5_9 ._chipClose_1lvv5_25{color:var(--ci-chip-close,var(--text-accent,#1d4ed8))}._chipClose_1lvv5_25{color:var(--ci-chip-close,var(--text-secondary,#57647a))}._chipClose_1lvv5_25:hover,._chipClose_1lvv5_25:focus-visible{color:var(--ci-chip-close-hover,var(--text-primary,#161b2d))}._chipIcon_1lvv5_16{color:var(--ci-chip-icon,var(--text-secondary,#57647a))}._chipText_1lvv5_19{color:var(--ci-chip-text,var(--text-primary,#161b2d))}._chipState_1lvv5_22{color:var(--ci-chip-state-text,var(--text-secondary,#57647a))}._wrapper_13067_2{background:var(--ci-bg,var(--bg-control-neutral,#fcfcfc));border-color:var(--ci-border,var(--stroke-tertiary,#e0e6f0))}._wrapper_13067_2:focus-within,._wrapper_13067_2:active{outline-color:var(--ci-border-focus,var(--stroke-accent-focus,#6785fb))}._wrapper_13067_2._wrapperDisabled_13067_9{color:var(--ci-text-disabled,var(--text-control-disable-primary,#848e9c))}._textarea_13067_13{color:var(--ci-text,var(--text-primary,#161b2d))}._textarea_13067_13::placeholder{color:var(--ci-placeholder,var(--text-secondary,#57647a))}._textarea_13067_13._textareaMentionMode_13067_19{color:#0000;caret-color:var(--ci-text,var(--text-primary,#161b2d))}._textarea_13067_13._textareaMentionMode_13067_19::selection{background-color:#0000}._textarea_13067_13:disabled{color:var(--ci-text-disabled,var(--text-control-disable-primary,#848e9c))}._commandHint_13067_53{color:var(--ci-placeholder,var(--text-secondary,#57647a))}._mentionHighlight_13067_57{background-color:var(--ci-mention-highlight-bg,var(--bg-control-accent-alpha,#2764d90f));color:var(--ci-mention-highlight-text,var(--text-accent,#1d4ed8));border-radius:4px}._mentionHighlightUnsupported_13067_63{background-color:var(--ci-mention-highlight-unsupported-bg,var(--bg-error,#f3d6d8));color:var(--ci-mention-highlight-unsupported-text,var(--text-error,#ae2f2f));border-radius:4px}._selectionHighlight_13067_69{background-color:var(--ci-selection-highlight-bg,var(--bg-control-accent-alpha-active,#2764d933))}._modelOverlayPanel_13067_78._modelOverlayPanel_13067_78{background-color:var(--ci-model-overlay-bg,var(--bg-layer-raised,#fcfcfc))}._modelSelectorButton_13067_82 ._modelSelectorCaret_13067_82{color:var(--ci-model-selector-caret-color,var(--text-primary,#161b2d))}._modelSelectorButton_13067_82 ._modelSelectorName_13067_85{color:var(--ci-model-selector-name-color,var(--text-primary,#161b2d))}._modelSelectorButton_13067_82 ._modelSelectorVersion_13067_88{color:var(--ci-model-selector-version-color,var(--text-secondary,#57647a))}._modelSelectorButton_13067_82:hover{background:var(--ci-model-selector-hover-bg,var(--bg-control-accent-alpha-hover,#2764d924))}._modelSelectorButton_13067_82:active{background:var(--ci-model-selector-hover-bg,var(--bg-control-accent-alpha-active,#2764d933))}._modelSelectorButton_13067_82._modelSelectorButtonDisabled_13067_97 ._modelSelectorCaret_13067_82{color:var(--ci-model-selector-disabled-color,var(--text-control-disable-primary,#848e9c))}._waveformCanvas_18zb5_1{color:var(--ci-voice-waveform,var(--text-primary,#161b2d))}@keyframes _recording-pulse_18zb5_1{0%,to{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(.8)}}._recordingDot_18zb5_15{background:var(--ci-voice-accent,var(--text-error,#ae2f2f));animation:1.2s ease-in-out infinite _recording-pulse_18zb5_1}._item_1sr2n_1{color:var(--ci-sheet-text,var(--text-primary,#161b2d))}._item_1sr2n_1:hover{background:var(--ci-sheet-item-hover,var(--bg-layer-raised,#fcfcfc))}._item_1sr2n_1:active{background:var(--ci-sheet-item-active,var(--bg-control-neutral-active,#d1dbea))}._itemIcon_1sr2n_11{color:var(--ci-sheet-icon,var(--text-secondary,#57647a))}._label_14i7c_1{color:var(--csf-label-text,var(--text-primary,#161b2d))!important}._modal_kl0h0_1{background:var(--csm-bg,var(--bg-layer-raised,#fcfcfc))!important}._icon_1fv6z_1{color:var(--tbs-icon-text,var(--text-secondary,#57647a))}._selectedIcon_1fv6z_5{color:var(--tbs-selected-icon-text,var(--text-accent,#1d4ed8))}._toolIcon_ma5s5_1{color:var(--aab-tool-icon,var(--text-secondary,#57647a))}._chevronIcon_ma5s5_5{color:var(--aab-chevron-icon,var(--text-secondary,#57647a))}._searchHeader_1u7db_1{background:var(--ms-search-header-bg,var(--bg-layer-raised,#fcfcfc))}._itemText_1u7db_13._itemText_1u7db_13{color:var(--ms-item-text)}._itemHover_1u7db_17._itemHover_1u7db_17:hover{background:var(--ms-item-hover-bg)}._selectedItemBackground_1u7db_22._selectedItemBackground_1u7db_22:not(:hover){background:var(--ms-selected-item-bg)}._selectedItemText_1u7db_26._selectedItemText_1u7db_26{color:var(--ms-selected-item-text)}._checkIcon_1u7db_30 .dial-kit-menuitem-check{color:var(--ms-check-icon)}._search_5skzl_1{background:var(--ci-sheet-search-bg,transparent)}._divider_5skzl_5{background:var(--ci-sheet-divider,var(--stroke-secondary,#d1dbea))}._item_5skzl_9{color:var(--ci-sheet-text,var(--text-primary,#161b2d))}._item_5skzl_9:hover{background:var(--ci-sheet-item-hover,var(--bg-layer-raised,#fcfcfc))}._item_5skzl_9:active{background:var(--ci-sheet-item-active,var(--bg-control-neutral-active,#d1dbea))}._itemIcon_5skzl_19{color:var(--ci-sheet-icon,var(--text-secondary,#57647a))}._checkIcon_5skzl_23{color:var(--ci-check-icon,var(--text-accent,#1d4ed8))}._stateLabel_5skzl_27{color:var(--ci-sheet-text,var(--text-secondary,#57647a))}._itemSelectedBackground_5skzl_37{background:var(--ci-sheet-selected-bg)}._itemSelectedText_5skzl_41{color:var(--ci-sheet-selected-text)}._welcome_1icyo_1{color:var(--ci-welcome-color,var(--text-primary,#161b2d))}._description_1icyo_5{color:var(--ci-description-color,var(--text-secondary,#57647a))}._banner_180n6_2._banner_180n6_2{background-color:var(--ci-usage-banner-bg,var(--bg-layer-sunken,#eef1f7))}
|
|
2
2
|
/*$vite$:1*//*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
3
3
|
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-outline-style:solid;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.top-0{top:0}.left-1\/2{left:50%}.z-0{z-index:0}.z-10{z-index:10}.m-0{margin:0}.-ms-1{margin-inline-start:-.25rem}.ms-1{margin-inline-start:.25rem}.ms-auto{margin-inline-start:auto}.-me-1{margin-inline-end:-.25rem}.-me-4{margin-inline-end:-1rem}.mb-2{margin-bottom:.5rem}.block{display:block}.contents{display:contents}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.field-sizing-content{field-sizing:content}.size-\[8px\]{width:8px;height:8px}.size-\[40px\]{width:40px;height:40px}.h-11{height:2.75rem}.h-\[26px\]{height:26px}.h-auto{height:auto}.h-full{height:100%}.h-lh{height:1lh}.h-px{height:1px}.max-h-\[80dvh\]{max-height:80dvh}.max-h-\[272px\]{max-height:272px}.min-h-\[64px\]{min-height:64px}.w-0{width:0}.w-\[50px\]{width:50px}.w-\[240px\]{width:240px}.w-\[240px\]\!{width:240px!important}.w-\[368px\]\!{width:368px!important}.w-\[calc\(100\%\+8px\)\]{width:calc(100% + 8px)}.w-full{width:100%}.max-w-\[180px\]{max-width:180px}.max-w-\[540px\]{max-width:540px}.max-w-\[700px\]{max-width:700px}.max-w-\[748px\]{max-width:748px}.max-w-full{max-width:100%}.min-w-0{min-width:0}.flex-1{flex:1}.flex-\[1_0_auto\]{flex:1 0 auto}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.cursor-not-allowed{cursor:not-allowed}.resize{resize:both}.resize-none{resize:none}.flex-col{flex-direction:column}.flex-nowrap{flex-wrap:nowrap}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-9{gap:2.25rem}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:4px}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:3.40282e38px}.rounded-full\!{border-radius:3.40282e38px!important}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.\!border-0{border-style:var(--tw-border-style)!important;border-width:0!important}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-0\!{border-style:var(--tw-border-style)!important;border-width:0!important}.bg-transparent{background-color:#0000}.p-0\.5{padding:.125rem}.p-1\.5{padding:.375rem}.p-4{padding:1rem}.px-0{padding-inline:0}.px-1{padding-inline:.25rem}.px-2{padding-inline:.5rem}.px-3{padding-inline:.75rem}.px-4{padding-inline:1rem}.px-6{padding-inline:1.5rem}.py-1{padding-block:.25rem}.py-1\.5{padding-block:.375rem}.py-4{padding-block:1rem}.py-5{padding-block:1.25rem}.py-\[10px\]{padding-block:10px}.ps-1{padding-inline-start:.25rem}.ps-1\.5{padding-inline-start:.375rem}.ps-2{padding-inline-start:.5rem}.pe-1{padding-inline-end:.25rem}.pe-2{padding-inline-end:.5rem}.pt-2{padding-top:.5rem}.pb-1{padding-bottom:.25rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.text-center{text-align:center}.text-start{text-align:start}.align-text-top{vertical-align:text-top}.wrap-anywhere{overflow-wrap:anywhere}.wrap-break-word{overflow-wrap:break-word}.whitespace-pre-wrap{white-space:pre-wrap}.opacity-50{opacity:.5}.shadow-md{--tw-shadow:0 10px 30px 9px var(--tw-shadow-color,var(--shadow-md-2,var(--shadow-md,#2764d90f))), 0 0 8px 2px var(--tw-shadow-color,var(--shadow-md-1,#2764d90a));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,cubic-bezier(.4, 0, .2, 1));transition-duration:var(--tw-duration,.15s)}.empty\:hidden:empty{display:none}.focus-within\:outline:focus-within{outline-style:var(--tw-outline-style);outline-width:1px}.focus-within\:-outline-offset-1:focus-within{outline-offset:calc(1px * -1)}.active\:outline:active{outline-style:var(--tw-outline-style);outline-width:1px}.active\:-outline-offset-1:active{outline-offset:calc(1px * -1)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.rtl\:scale-x-\[-1\]:where(:dir(rtl),[dir=rtl],[dir=rtl] *){--tw-scale-x:-1;scale:var(--tw-scale-x) var(--tw-scale-y)}@media (max-width:1279px){.mobile\:min-h-11{min-height:2.75rem}.mobile\:min-w-11{min-width:2.75rem}.mobile\:pb-8{padding-bottom:2rem}}@media (min-width:1280px){.desktop\:p-5{padding:1.25rem}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}
|