@epam/ai-dial-conversation-input 1.2.0-dev.99 → 1.2.0-rc.1
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/AddAttachmentButton/AddAttachmentButton.d.ts +6 -0
- package/components/AddAttachmentButton/AddAttachmentButton.d.ts.map +1 -1
- package/components/BottomSheetShell/BottomSheetShell.d.ts +2 -2
- package/components/BottomSheetShell/BottomSheetShell.d.ts.map +1 -1
- package/components/ChatSettingsFields/ChatSettingsFields.d.ts.map +1 -1
- package/components/ChatSettingsModal/ChatSettingsModal.d.ts.map +1 -1
- package/components/ConversationInput/ConversationInput.d.ts.map +1 -1
- package/components/EditMessageInput/EditMessageInput.d.ts.map +1 -1
- package/components/Input/Input.d.ts +2 -3
- package/components/Input/Input.d.ts.map +1 -1
- package/components/Input/ModelSelectorControl.d.ts +3 -1
- package/components/Input/ModelSelectorControl.d.ts.map +1 -1
- package/components/ModelSelectorBottomSheet/ModelSelectorBottomSheet.d.ts +3 -0
- package/components/ModelSelectorBottomSheet/ModelSelectorBottomSheet.d.ts.map +1 -1
- package/components/ToolsChips/ToolsChips.d.ts +11 -0
- package/components/ToolsChips/ToolsChips.d.ts.map +1 -1
- package/components/VoiceBar/VoiceBar.d.ts +1 -3
- package/components/VoiceBar/VoiceBar.d.ts.map +1 -1
- package/hooks/useAttachments.d.ts +8 -1
- package/hooks/useAttachments.d.ts.map +1 -1
- package/hooks/useCommandMenu/useCommandMenu.d.ts +35 -5
- package/hooks/useCommandMenu/useCommandMenu.d.ts.map +1 -1
- package/hooks/useComposerSeed.d.ts +32 -0
- package/hooks/useComposerSeed.d.ts.map +1 -0
- package/hooks/useMentionSelectionMirror.d.ts +24 -0
- package/hooks/useMentionSelectionMirror.d.ts.map +1 -0
- package/hooks/useModelSelector.d.ts +7 -13
- package/hooks/useModelSelector.d.ts.map +1 -1
- package/hooks/useTextInsertion.d.ts +7 -1
- package/hooks/useTextInsertion.d.ts.map +1 -1
- package/index.css +2 -2
- package/index.d.ts +3 -1
- package/index.d.ts.map +1 -1
- package/index.js +1442 -1160
- package/models/ConversationInput.d.ts +89 -17
- package/models/ConversationInput.d.ts.map +1 -1
- package/models/Input.d.ts +195 -41
- package/models/Input.d.ts.map +1 -1
- package/package.json +4 -5
- package/utils/highlight-mirror.d.ts +17 -0
- package/utils/highlight-mirror.d.ts.map +1 -0
- package/hooks/useBottomSheet.d.ts +0 -9
- package/hooks/useBottomSheet.d.ts.map +0 -1
|
@@ -57,6 +57,12 @@ interface AddAttachmentButtonProps {
|
|
|
57
57
|
* selection is complete.
|
|
58
58
|
*/
|
|
59
59
|
menuOverlays?: MenuOverlayConfig[];
|
|
60
|
+
/**
|
|
61
|
+
* Called to read the host's textarea caret position when a `menuOverlays`
|
|
62
|
+
* entry opens, forwarded as that entry's `renderOverlay`'s second
|
|
63
|
+
* argument. Absent (or returning `undefined`) reports `0`.
|
|
64
|
+
*/
|
|
65
|
+
getCaretPosition?: () => number;
|
|
60
66
|
/** Color overrides. */
|
|
61
67
|
colors?: AddAttachmentButtonColors;
|
|
62
68
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddAttachmentButton.d.ts","sourceRoot":"","sources":["../../../src/components/AddAttachmentButton/AddAttachmentButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,YAAY,EAElB,MAAM,2BAA2B,CAAC;AAkBnC,OAAO,EACL,aAAa,EACb,KAAK,EAAE,EACP,KAAK,SAAS,EAGf,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAQhF,uEAAuE;AACvE,UAAU,aAAa;IACrB,+BAA+B;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,qBAAqB;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,mDAAmD;IACnD,IAAI,EAAE,SAAS,CAAC;IAChB,0CAA0C;IAC1C,OAAO,EAAE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AE,CAAC,wBAAwB,
|
|
1
|
+
{"version":3,"file":"AddAttachmentButton.d.ts","sourceRoot":"","sources":["../../../src/components/AddAttachmentButton/AddAttachmentButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,YAAY,EAElB,MAAM,2BAA2B,CAAC;AAkBnC,OAAO,EACL,aAAa,EACb,KAAK,EAAE,EACP,KAAK,SAAS,EAGf,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAQhF,uEAAuE;AACvE,UAAU,aAAa;IACrB,+BAA+B;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,qBAAqB;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,mDAAmD;IACnD,IAAI,EAAE,SAAS,CAAC;IAChB,0CAA0C;IAC1C,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,mDAAmD;AACnD,UAAU,wBAAwB;IAChC,+GAA+G;IAC/G,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,kFAAkF;IAClF,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,sEAAsE;IACtE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,6CAA6C;IAC7C,WAAW,EAAE,MAAM,CAAC;IACpB,2CAA2C;IAC3C,YAAY,EAAE,MAAM,CAAC;IACrB,8CAA8C;IAC9C,SAAS,EAAE,MAAM,CAAC;IAClB,+CAA+C;IAC/C,cAAc,EAAE,MAAM,CAAC;IACvB,yEAAyE;IACzE,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,mFAAmF;IACnF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,4EAA4E;IAC5E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gIAAgI;IAChI,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,0DAA0D;IAC1D,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;IACjC,+GAA+G;IAC/G,cAAc,CAAC,EAAE,YAAY,EAAE,CAAC;IAChC,+DAA+D;IAC/D,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,qFAAqF;IACrF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kGAAkG;IAClG,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;;;OASG;IACH,YAAY,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACnC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,MAAM,CAAC;IAChC,uBAAuB;IACvB,MAAM,CAAC,EAAE,yBAAyB,CAAC;CACpC;AAED,4GAA4G;AAC5G,UAAU,yBAAyB;IACjC,uFAAuF;IACvF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mGAAmG;IACnG,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,2GAA2G;AAC3G,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CAiZ5D,CAAC"}
|
|
@@ -26,7 +26,7 @@ export interface BottomSheetShellProps {
|
|
|
26
26
|
backLabel?: string;
|
|
27
27
|
/** Dialog accessible name used when `title` is omitted. */
|
|
28
28
|
'aria-label'?: string;
|
|
29
|
-
/** Inline CSS custom properties forwarded to the sheet
|
|
29
|
+
/** Inline CSS custom properties forwarded to the sheet panel for theming. */
|
|
30
30
|
style?: CSSProperties;
|
|
31
31
|
/** CSS class applied to the sheet title. Defaults to `'dial-body-semi-text'`. */
|
|
32
32
|
titleClassName?: string;
|
|
@@ -37,6 +37,6 @@ export interface BottomSheetShellProps {
|
|
|
37
37
|
/** Sheet body rendered below the header divider. */
|
|
38
38
|
children: ReactNode;
|
|
39
39
|
}
|
|
40
|
-
/**
|
|
40
|
+
/** Mobile bottom sheet drawn by the UI kit's `BottomSheet`, themed through `BottomSheetShellColors`. */
|
|
41
41
|
export declare const BottomSheetShell: FC<BottomSheetShellProps>;
|
|
42
42
|
//# sourceMappingURL=BottomSheetShell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomSheetShell.d.ts","sourceRoot":"","sources":["../../../src/components/BottomSheetShell/BottomSheetShell.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BottomSheetShell.d.ts","sourceRoot":"","sources":["../../../src/components/BottomSheetShell/BottomSheetShell.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGpE,8FAA8F;AAC9F,MAAM,WAAW,sBAAsB;IACrC,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qEAAqE;IACrE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4EAA4E;IAC5E,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,uDAAuD;AACvD,MAAM,WAAW,qBAAqB;IACpC,iCAAiC;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,gGAAgG;IAChG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oFAAoF;IACpF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kFAAkF;IAClF,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,8EAA8E;IAC9E,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,gFAAgF;IAChF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2DAA2D;IAC3D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6EAA6E;IAC7E,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,iFAAiF;IACjF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oFAAoF;IACpF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wDAAwD;IACxD,MAAM,CAAC,EAAE,sBAAsB,CAAC;IAChC,oDAAoD;IACpD,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wGAAwG;AACxG,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA6CtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatSettingsFields.d.ts","sourceRoot":"","sources":["../../../src/components/ChatSettingsFields/ChatSettingsFields.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAIL,cAAc,EACf,MAAM,2BAA2B,CAAC;AAQnC,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,sDAAsD;AACtD,MAAM,WAAW,uBAAuB;IACtC,2DAA2D;IAC3D,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,6EAA6E;IAC7E,cAAc,EAAE,cAAc,GAAG,SAAS,CAAC;IAC3C,mCAAmC;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,iCAAiC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,+DAA+D;IAC/D,sBAAsB,EAAE,CAAC,CAAC,EAAE,cAAc,KAAK,IAAI,CAAC;IACpD,4DAA4D;IAC5D,oBAAoB,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,wDAAwD;IACxD,mBAAmB,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,4EAA4E;IAC5E,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,+GAA+G;IAC/G,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,qEAAqE;IACrE,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,yEAAyE;IACzE,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,wEAAwE;IACxE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,uFAAuF;IACvF,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,oEAAoE;IACpE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kIAAkI;IAClI,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7C,qDAAqD;IACrD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sFAAsF;IACtF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,uBAAuB;IACvB,MAAM,CAAC,EAAE,wBAAwB,CAAC;CACnC;AAED,2GAA2G;AAC3G,UAAU,wBAAwB;IAChC,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,2GAA2G;AAC3G,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,
|
|
1
|
+
{"version":3,"file":"ChatSettingsFields.d.ts","sourceRoot":"","sources":["../../../src/components/ChatSettingsFields/ChatSettingsFields.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAIL,cAAc,EACf,MAAM,2BAA2B,CAAC;AAQnC,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,sDAAsD;AACtD,MAAM,WAAW,uBAAuB;IACtC,2DAA2D;IAC3D,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,6EAA6E;IAC7E,cAAc,EAAE,cAAc,GAAG,SAAS,CAAC;IAC3C,mCAAmC;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,iCAAiC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,+DAA+D;IAC/D,sBAAsB,EAAE,CAAC,CAAC,EAAE,cAAc,KAAK,IAAI,CAAC;IACpD,4DAA4D;IAC5D,oBAAoB,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,wDAAwD;IACxD,mBAAmB,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,4EAA4E;IAC5E,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,+GAA+G;IAC/G,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,qEAAqE;IACrE,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,yEAAyE;IACzE,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,wEAAwE;IACxE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,uFAAuF;IACvF,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,oEAAoE;IACpE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kIAAkI;IAClI,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7C,qDAAqD;IACrD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sFAAsF;IACtF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,uBAAuB;IACvB,MAAM,CAAC,EAAE,wBAAwB,CAAC;CACnC;AAED,2GAA2G;AAC3G,UAAU,wBAAwB;IAChC,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,2GAA2G;AAC3G,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAwF1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatSettingsModal.d.ts","sourceRoot":"","sources":["../../../src/components/ChatSettingsModal/ChatSettingsModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAI7D,iDAAiD;AACjD,MAAM,WAAW,sBAAsB;IACrC,iFAAiF;IACjF,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,qEAAqE;IACrE,qBAAqB,EA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M,CAAC;IACnB,+FAA+F;IAC/F,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,qFAAqF;AACrF,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAgFxD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationInput.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationInput/ConversationInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAI7E,8GAA8G;AAC9G,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,
|
|
1
|
+
{"version":3,"file":"ConversationInput.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationInput/ConversationInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAI7E,8GAA8G;AAC9G,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAgFxD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditMessageInput.d.ts","sourceRoot":"","sources":["../../../src/components/EditMessageInput/EditMessageInput.tsx"],"names":[],"mappings":"AASA,OAAO,EAEL,KAAK,EAAE,EAMR,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"EditMessageInput.d.ts","sourceRoot":"","sources":["../../../src/components/EditMessageInput/EditMessageInput.tsx"],"names":[],"mappings":"AASA,OAAO,EAEL,KAAK,EAAE,EAMR,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAK5E,2GAA2G;AAC3G,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA6NtD,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { InputProps } from '../../models/Input';
|
|
1
|
+
import { InputHandle, InputProps } from '../../models/Input';
|
|
3
2
|
/** Full conversation input field: textarea, send/stop, model selector, attachment menu, voice recording, and chat-settings controls. */
|
|
4
|
-
export declare const Input:
|
|
3
|
+
export declare const Input: import('react').ForwardRefExoticComponent<InputProps & import('react').RefAttributes<InputHandle>>;
|
|
5
4
|
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -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":"AAkDA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAalE,wIAAwI;AACxI,eAAO,MAAM,KAAK,oGAqvCjB,CAAC"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { DeploymentItem } from '@epam/ai-dial-chat-shared';
|
|
2
2
|
import { CSSProperties, FC, ReactNode } from 'react';
|
|
3
|
-
import { ModelSelectorLabels } from '../../models/Input';
|
|
3
|
+
import { ModelMenuStyles, ModelSelectorLabels } from '../../models/Input';
|
|
4
4
|
interface Props {
|
|
5
5
|
deployments?: DeploymentItem[];
|
|
6
6
|
selectedDeploymentId?: string | null;
|
|
7
7
|
onDeploymentChange?: (id: string) => void;
|
|
8
8
|
modelSelectorLabels?: ModelSelectorLabels;
|
|
9
|
+
/** Host styling hooks for the menu panel, search row and deployment rows. */
|
|
10
|
+
menuStyles?: ModelMenuStyles;
|
|
9
11
|
isStreaming: boolean;
|
|
10
12
|
isMobile: boolean;
|
|
11
13
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModelSelectorControl.d.ts","sourceRoot":"","sources":["../../../src/components/Input/ModelSelectorControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EAGf,MAAM,2BAA2B,CAAC;AASnC,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,EAAE,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAGzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"ModelSelectorControl.d.ts","sourceRoot":"","sources":["../../../src/components/Input/ModelSelectorControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EAGf,MAAM,2BAA2B,CAAC;AASnC,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,EAAE,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAGzE,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAK/E,UAAU,KAAK;IACb,WAAW,CAAC,EAAE,cAAc,EAAE,CAAC;IAC/B,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,6EAA6E;IAC7E,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,aAAa,CAAC;IACrB,kBAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,IAAI,KAAK,SAAS,CAAC;IACxD,wEAAwE;IACxE,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,oDAAoD;IACpD,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,uEAAuE;IACvE,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CAC9C;AAED,8FAA8F;AAC9F,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,KAAK,CAsP1C,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DeploymentItem } from '@epam/ai-dial-chat-shared';
|
|
2
2
|
import { CSSProperties, FC } from 'react';
|
|
3
|
+
import { ModelMenuStyles } from '../../models/Input';
|
|
3
4
|
import { BottomSheetShellColors } from '../BottomSheetShell/BottomSheetShell';
|
|
4
5
|
/** Color overrides for the `ModelSelectorBottomSheet` component, applied as CSS custom properties. */
|
|
5
6
|
interface ModelSelectorBottomSheetColors {
|
|
@@ -50,6 +51,8 @@ export interface ModelSelectorBottomSheetProps {
|
|
|
50
51
|
labelClassName?: string;
|
|
51
52
|
/** Color overrides applied as CSS custom properties. */
|
|
52
53
|
colors?: ModelSelectorBottomSheetColors;
|
|
54
|
+
/** Host styling hooks shared with the desktop menu: panel, search row and rows. */
|
|
55
|
+
menuStyles?: ModelMenuStyles;
|
|
53
56
|
}
|
|
54
57
|
/** Mobile bottom-sheet model selector with search and a virtualized deployment list. */
|
|
55
58
|
export declare const ModelSelectorBottomSheet: FC<ModelSelectorBottomSheetProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModelSelectorBottomSheet.d.ts","sourceRoot":"","sources":["../../../src/components/ModelSelectorBottomSheet/ModelSelectorBottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EAEpB,MAAM,2BAA2B,CAAC;AAUnC,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,EAAE,EAAuB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ModelSelectorBottomSheet.d.ts","sourceRoot":"","sources":["../../../src/components/ModelSelectorBottomSheet/ModelSelectorBottomSheet.tsx"],"names":[],"mappings":"AA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AC;IACpB,yEAAyE;IACzE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,iFAAiF;IACjF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iGAAiG;IACjG,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,wDAAwD;IACxD,MAAM,CAAC,EAAE,8BAA8B,CAAC;IACxC,mFAAmF;IACnF,UAAU,CAAC,EAAE,eAAe,CAAC;CAC9B;AAED,wFAAwF;AACxF,eAAO,MAAM,wBAAwB,EAAE,EAAE,CAAC,6BAA6B,CAwItE,CAAC"}
|
|
@@ -25,6 +25,8 @@ interface ToolsChipsColors {
|
|
|
25
25
|
chipSelectedIcon?: string;
|
|
26
26
|
/** Chip label text color while the tool is on. Defaults to `--text-accent`. */
|
|
27
27
|
chipSelectedText?: string;
|
|
28
|
+
/** Color of the chip's ON/OFF state text while the tool is off. Defaults to `--text-secondary`; while on it follows `chipSelectedText`. */
|
|
29
|
+
chipStateText?: string;
|
|
28
30
|
/** Icon color of the chip's × button. Defaults to `--text-secondary`, or `--text-accent` while the tool is on. */
|
|
29
31
|
chipClose?: string;
|
|
30
32
|
/** Icon color of the chip's × button on hover/focus. Defaults to `--text-primary`. */
|
|
@@ -42,6 +44,15 @@ export interface ToolsChipsProps {
|
|
|
42
44
|
canRemove?: boolean;
|
|
43
45
|
/** Returns the accessible label for a chip's × button. Defaults to `"Remove {toolLabel}"`. */
|
|
44
46
|
removeLabel?: (toolLabel: string) => string;
|
|
47
|
+
/**
|
|
48
|
+
* Visible state text appended after the tool label, e.g. `"ON"` while the
|
|
49
|
+
* tool is selected. The state renders only when both `stateOnLabel` and
|
|
50
|
+
* `stateOffLabel` are provided; it is visual only, since the chip already
|
|
51
|
+
* announces its state through `aria-pressed`.
|
|
52
|
+
*/
|
|
53
|
+
stateOnLabel?: string;
|
|
54
|
+
/** Visible state text appended after the tool label while the tool is off, e.g. `"OFF"`. See `stateOnLabel`. */
|
|
55
|
+
stateOffLabel?: string;
|
|
45
56
|
/** Typography overrides for the chip text. */
|
|
46
57
|
typography?: ToolsChipsTypography;
|
|
47
58
|
/** Color overrides applied as CSS custom properties. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolsChips.d.ts","sourceRoot":"","sources":["../../../src/components/ToolsChips/ToolsChips.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAI9D,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,2DAA2D;AAC3D,UAAU,oBAAoB;IAC5B,oGAAoG;IACpG,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,wFAAwF;AACxF,UAAU,gBAAgB;IACxB,kFAAkF;IAClF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iFAAiF;IACjF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qFAAqF;IACrF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iFAAiF;IACjF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kHAAkH;IAClH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2FAA2F;IAC3F,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,6EAA6E;IAC7E,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iFAAiF;IACjF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,+EAA+E;IAC/E,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kHAAkH;IAClH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sFAAsF;IACtF,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAID,0CAA0C;AAC1C,MAAM,WAAW,eAAe;IAC9B,gFAAgF;IAChF,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,2DAA2D;IAC3D,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAA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a,CAAC,EAAE,MAAM,CAAC;IACvB,kHAAkH;IAClH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sFAAsF;IACtF,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAID,0CAA0C;AAC1C,MAAM,WAAW,eAAe;IAC9B,gFAAgF;IAChF,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,2DAA2D;IAC3D,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,2HAA2H;IAC3H,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,qGAAqG;IACrG,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,8FAA8F;IAC9F,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;IAC5C;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gHAAgH;IAChH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,8CAA8C;IAC9C,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,wDAAwD;IACxD,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B;AAED;;;;;GAKG;AACH,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CA8F1C,CAAC"}
|
|
@@ -2,12 +2,10 @@ import { CSSProperties, FC, ReactNode, RefObject } from 'react';
|
|
|
2
2
|
import { VoiceRecorderState } from '../../hooks/useVoiceRecorder';
|
|
3
3
|
/** Props accepted by the `VoiceBar` component. */
|
|
4
4
|
export interface VoiceBarProps {
|
|
5
|
-
/** Current recorder state —
|
|
5
|
+
/** Current recorder state — `Recording` or `Processing` while this component is rendered. */
|
|
6
6
|
state: VoiceRecorderState;
|
|
7
7
|
/** Stable ref to the live `AnalyserNode` during recording; `.current` is `null` when idle. */
|
|
8
8
|
analyserNodeRef: RefObject<AnalyserNode | null>;
|
|
9
|
-
/** Error message in `error` state; `null` otherwise. */
|
|
10
|
-
errorMessage: string | null;
|
|
11
9
|
/** Called when the user clicks the stop button to finish recording. */
|
|
12
10
|
onStop: () => void;
|
|
13
11
|
/** Called when the user clicks the X to discard the recording. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VoiceBar.d.ts","sourceRoot":"","sources":["../../../src/components/VoiceBar/VoiceBar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"VoiceBar.d.ts","sourceRoot":"","sources":["../../../src/components/VoiceBar/VoiceBar.tsx"],"names":[],"mappings":"AASA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,EAAE,EACP,KAAK,SAAS,EACd,KAAK,SAAS,EAIf,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AASlE,kDAAkD;AAClD,MAAM,WAAW,aAAa;IAC5B,6FAA6F;IAC7F,KAAK,EAAE,kBAAkB,CAAC;IAC1B,8FAA8F;IAC9F,eAAe,EAAE,SAAS,CAAC,YAAY,GAAG,IAAI,CAAC,CAAC;IAChD,uEAAuE;IACvE,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,kEAAkE;IAClE,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,yNAAyN;IACzN,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,sFAAsF;IACtF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2FAA2F;IAC3F,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8GAA8G;IAC9G,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,uFAAuF;IACvF,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,0EAA0E;AAC1E,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAuNtC,CAAC"}
|
|
@@ -16,6 +16,13 @@ interface UseAttachmentsParams {
|
|
|
16
16
|
pendingDropFiles: File[];
|
|
17
17
|
/** Called after `pendingDropFiles` have been consumed. */
|
|
18
18
|
onDropFilesConsumed?: () => void;
|
|
19
|
+
/**
|
|
20
|
+
* When `true`, `pendingDropFiles` are consumed (and `onDropFilesConsumed`
|
|
21
|
+
* fires) without being added to the tray, so a drop made while the input
|
|
22
|
+
* is disabled is discarded rather than applied once it is re-enabled.
|
|
23
|
+
* Defaults to `false`.
|
|
24
|
+
*/
|
|
25
|
+
isDropDisabled?: boolean;
|
|
19
26
|
/** Already-uploaded attachments supplied by the host awaiting insertion. */
|
|
20
27
|
pendingAttachments: Attachment[];
|
|
21
28
|
/** Called after `pendingAttachments` have been inserted. */
|
|
@@ -52,6 +59,6 @@ export interface UseAttachmentsResult {
|
|
|
52
59
|
hasBlockedAttachments: boolean;
|
|
53
60
|
}
|
|
54
61
|
/** Manages attachment state and lifecycle for the `Input` component. */
|
|
55
|
-
export declare const useAttachments: ({ initialAttachments, onUploadAttachment, onAttachmentsChange, validateAttachment, pendingDropFiles, onDropFilesConsumed, pendingAttachments, onPendingAttachmentsConsumed, onExpandPastedText, maximumAttachmentsAmount, baseAttachmentsAmount, onAttachmentsLimitExceeded, }: UseAttachmentsParams) => UseAttachmentsResult;
|
|
62
|
+
export declare const useAttachments: ({ initialAttachments, onUploadAttachment, onAttachmentsChange, validateAttachment, pendingDropFiles, onDropFilesConsumed, isDropDisabled, pendingAttachments, onPendingAttachmentsConsumed, onExpandPastedText, maximumAttachmentsAmount, baseAttachmentsAmount, onAttachmentsLimitExceeded, }: UseAttachmentsParams) => UseAttachmentsResult;
|
|
56
63
|
export {};
|
|
57
64
|
//# sourceMappingURL=useAttachments.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAttachments.d.ts","sourceRoot":"","sources":["../../src/hooks/useAttachments.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,UAAU,EACV,wBAAwB,EACzB,MAAM,2BAA2B,CA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
+
/** Direction the active option moves in on an arrow key. */
|
|
3
|
+
export declare enum CommandMenuOptionStep {
|
|
4
|
+
Next = "next",
|
|
5
|
+
Previous = "previous"
|
|
6
|
+
}
|
|
2
7
|
/** Parameters accepted by the `useCommandMenu` hook. */
|
|
3
8
|
export interface UseCommandMenuParams {
|
|
4
9
|
/** Command-menu configuration; `undefined` disables the mechanism entirely. */
|
|
@@ -7,15 +12,40 @@ export interface UseCommandMenuParams {
|
|
|
7
12
|
message: string;
|
|
8
13
|
}
|
|
9
14
|
/**
|
|
10
|
-
* State machine behind the `commandMenu` prop of `Input`: opens
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
15
|
+
* State machine behind the `commandMenu` prop of `Input`: opens whenever the
|
|
16
|
+
* word at the caret becomes the trigger prefix plus a whitespace-free query,
|
|
17
|
+
* anywhere in the textarea — not only when the textarea is otherwise empty —
|
|
18
|
+
* stays open while that same word keeps matching, and closes the moment it
|
|
19
|
+
* stops. Reaching the bare trigger character always (re)opens the menu, even
|
|
20
|
+
* over a word an explicit dismissal previously closed; a dismissal otherwise
|
|
21
|
+
* stays in effect only while the caret remains in that same word.
|
|
22
|
+
*
|
|
23
|
+
* Escape is the one explicit dismissal: it latches (`dismiss`) until the
|
|
24
|
+
* tracked word stops matching and the trigger is typed or pasted again — an
|
|
25
|
+
* outside click is a different gesture and only closes for the moment
|
|
26
|
+
* (`closeOnOutsidePress`), with no latch, so the same word reopens the menu
|
|
27
|
+
* on the next keystroke (`handleValueChange`) or the next time the caret
|
|
28
|
+
* lands back in it (`handleCaretMove`, driven by focus/click rather than by
|
|
29
|
+
* an edit — evaluated fresh off the given position every time, since a
|
|
30
|
+
* message can hold more than one command-shaped word at once).
|
|
31
|
+
*
|
|
32
|
+
* Also drives the menu's keyboard navigation: the arrows move an active
|
|
33
|
+
* option read off the rendered overlay's DOM, and the active option is
|
|
34
|
+
* exposed via `aria-activedescendant`.
|
|
14
35
|
*/
|
|
15
36
|
export declare const useCommandMenu: ({ config, message }: UseCommandMenuParams) => {
|
|
16
37
|
isMenuOpen: boolean;
|
|
17
38
|
query: string;
|
|
39
|
+
/** Start offset of the word driving the currently open menu, or `null` when closed. */
|
|
40
|
+
activeWordStart: number | null;
|
|
18
41
|
dismiss: () => void;
|
|
19
|
-
|
|
42
|
+
closeOnOutsidePress: () => void;
|
|
43
|
+
handleCaretMove: (caretPosition: number) => void;
|
|
44
|
+
handleValueChange: (nextValue: string, caretPosition: number, isComposing: boolean) => void;
|
|
45
|
+
listboxId: string;
|
|
46
|
+
overlayRef: import('react').RefObject<HTMLDivElement | null>;
|
|
47
|
+
activeOptionId: string | null;
|
|
48
|
+
moveActiveOption: (step: CommandMenuOptionStep) => void;
|
|
49
|
+
getActiveOption: () => HTMLElement | null;
|
|
20
50
|
};
|
|
21
51
|
//# sourceMappingURL=useCommandMenu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCommandMenu.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCommandMenu/useCommandMenu.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"useCommandMenu.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCommandMenu/useCommandMenu.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAkC5D,4DAA4D;AAC5D,oBAAY,qBAAqB;IAC/B,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB;AAED,wDAAwD;AACxD,MAAM,WAAW,oBAAoB;IACnC,+EAA+E;IAC/E,MAAM,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACtC,wDAAwD;IACxD,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,cAAc,GAAI,qBAAqB,oBAAoB;;;IAmNpE,uFAAuF;;;;qCAxFvE,MAAM;mCAlFV,MAAM,iBAAiB,MAAM,eAAe,OAAO;;;;6BAsIxD,qBAAqB;2BA4BxB,WAAW,GAAG,IAAI;CAoBzB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/** Initial values for {@link useComposerSeed}. */
|
|
2
|
+
export interface UseComposerSeedInitial {
|
|
3
|
+
/** Text the composer starts with. */
|
|
4
|
+
text?: string;
|
|
5
|
+
/** Revision paired with the initial text. Defaults to `0`. */
|
|
6
|
+
revision?: number;
|
|
7
|
+
}
|
|
8
|
+
/** Return value of the {@link useComposerSeed} hook. */
|
|
9
|
+
export interface UseComposerSeedResult {
|
|
10
|
+
/** Text to pass as the composer's `message` prop. */
|
|
11
|
+
message: string | undefined;
|
|
12
|
+
/** Revision to pass as the composer's `messageRevision` prop. */
|
|
13
|
+
messageRevision: number;
|
|
14
|
+
/** Replaces the composer text and bumps `messageRevision`. */
|
|
15
|
+
seedMessage: (text: string) => void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Holds the one `message`/`messageRevision` pair a composer component
|
|
19
|
+
* accepts, with an imperative `seedMessage` for one-shot writes (a picked
|
|
20
|
+
* starter, route state). Pair with {@link useComposerSeedSource} for each
|
|
21
|
+
* additional externally revision-tracked source (e.g. a skill-mention hook's
|
|
22
|
+
* own message push) that should also seed the composer.
|
|
23
|
+
*/
|
|
24
|
+
export declare const useComposerSeed: (initial?: UseComposerSeedInitial) => UseComposerSeedResult;
|
|
25
|
+
/**
|
|
26
|
+
* Calls `onChange` whenever `revision` changes from its previous value,
|
|
27
|
+
* skipping the first render. Used to fold an externally revision-tracked
|
|
28
|
+
* source (e.g. a skill-mention hook's `message`/`messageRevision` push) into
|
|
29
|
+
* a {@link useComposerSeed} instance via its `seedMessage`.
|
|
30
|
+
*/
|
|
31
|
+
export declare const useComposerSeedSource: (revision: number | undefined, onChange: () => void) => void;
|
|
32
|
+
//# sourceMappingURL=useComposerSeed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useComposerSeed.d.ts","sourceRoot":"","sources":["../../src/hooks/useComposerSeed.ts"],"names":[],"mappings":"AAEA,kDAAkD;AAClD,MAAM,WAAW,sBAAsB;IACrC,qCAAqC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wDAAwD;AACxD,MAAM,WAAW,qBAAqB;IACpC,qDAAqD;IACrD,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,iEAAiE;IACjE,eAAe,EAAE,MAAM,CAAC;IACxB,8DAA8D;IAC9D,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AAED;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,GAC1B,UAAU,sBAAsB,KAC/B,qBAWF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GAChC,UAAU,MAAM,GAAG,SAAS,EAC5B,UAAU,MAAM,IAAI,KACnB,IAUF,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
/** Parameters for {@link useMentionSelectionMirror}. */
|
|
3
|
+
interface UseMentionSelectionMirrorParams {
|
|
4
|
+
/** Ref to the real `<textarea>` whose native selection is being mirrored. */
|
|
5
|
+
textareaRef: RefObject<HTMLTextAreaElement | null>;
|
|
6
|
+
/** Current textarea value — a selection-rect recompute trigger. */
|
|
7
|
+
message: string;
|
|
8
|
+
/** Whether the highlight mirror is rendered (a mention or a synthetic insertion is present). */
|
|
9
|
+
isMirrorActive: boolean;
|
|
10
|
+
}
|
|
11
|
+
/** Return value of {@link useMentionSelectionMirror}. */
|
|
12
|
+
interface UseMentionSelectionMirrorResult {
|
|
13
|
+
/** Ref to attach to the highlight-mirror `<div>`. */
|
|
14
|
+
mirrorRef: RefObject<HTMLDivElement | null>;
|
|
15
|
+
/** Mirror-relative rectangles to paint as the replacement selection highlight. */
|
|
16
|
+
selectionRects: DOMRect[];
|
|
17
|
+
/** Recomputes `selectionRects` from the textarea's current native selection. */
|
|
18
|
+
updateSelectionRects: () => void;
|
|
19
|
+
/** Copies the textarea's vertical scroll offset and scrollbar gutter onto the mirror; wire it to the textarea's `onScroll`. */
|
|
20
|
+
syncMirrorToTextarea: () => void;
|
|
21
|
+
}
|
|
22
|
+
export declare const useMentionSelectionMirror: ({ textareaRef, message, isMirrorActive, }: UseMentionSelectionMirrorParams) => UseMentionSelectionMirrorResult;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=useMentionSelectionMirror.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMentionSelectionMirror.d.ts","sourceRoot":"","sources":["../../src/hooks/useMentionSelectionMirror.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAGf,wDAAwD;AACxD,UAAU,+BAA+B;IACvC,6EAA6E;IAC7E,WAAW,EAAE,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;IACnD,mEAAmE;IACnE,OAAO,EAAE,MAAM,CAAC;IAChB,gGAAgG;IAChG,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,yDAAyD;AACzD,UAAU,+BAA+B;IACvC,qDAAqD;IACrD,SAAS,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC5C,kFAAkF;IAClF,cAAc,EAAE,OAAO,EAAE,CAAC;IAC1B,gFAAgF;IAChF,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,+HAA+H;IAC/H,oBAAoB,EAAE,MAAM,IAAI,CAAC;CAClC;AAmBD,eAAO,MAAM,yBAAyB,GAAI,2CAIvC,+BAA+B,KAAG,+BAwGpC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DeploymentItem } from '@epam/ai-dial-chat-shared';
|
|
2
2
|
import { DropdownItem } from '@epam/ai-dial-ui-kit';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
4
|
-
import { ModelSelectorLabels } from '../models/Input';
|
|
3
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
4
|
+
import { ModelMenuStyles, ModelSelectorLabels } from '../models/Input';
|
|
5
5
|
/** Options passed to `useModelSelector`. */
|
|
6
6
|
export interface UseModelSelectorOptions {
|
|
7
7
|
/** Available deployment items. When `undefined`, the selector is hidden. `iconUrl` must already be resolved by the host app. */
|
|
@@ -12,15 +12,8 @@ export interface UseModelSelectorOptions {
|
|
|
12
12
|
onDeploymentChange?: (id: string) => void;
|
|
13
13
|
/** Status labels for the selector dropdown. */
|
|
14
14
|
modelSelectorLabels?: ModelSelectorLabels;
|
|
15
|
-
/**
|
|
16
|
-
|
|
17
|
-
/** Color overrides applied as CSS custom properties. */
|
|
18
|
-
colors?: ModelSelectorColors;
|
|
19
|
-
}
|
|
20
|
-
/** Color overrides for the model-selector menu, applied as CSS custom properties. */
|
|
21
|
-
interface ModelSelectorColors {
|
|
22
|
-
/** Sticky search header background. Fallback: `--bg-layer-raised`. */
|
|
23
|
-
searchHeaderBackground?: string;
|
|
15
|
+
/** Host styling hooks for the search header and deployment rows. Each class is merged after the default, never in place of it. */
|
|
16
|
+
styles?: ModelMenuStyles;
|
|
24
17
|
}
|
|
25
18
|
/** Values returned by `useModelSelector`. */
|
|
26
19
|
export interface UseModelSelectorResult {
|
|
@@ -36,10 +29,11 @@ export interface UseModelSelectorResult {
|
|
|
36
29
|
menuItems: DropdownItem[];
|
|
37
30
|
/** Sticky search header rendered above the menu items. */
|
|
38
31
|
menuHeader: ReactNode;
|
|
32
|
+
/** Custom properties carrying the host's row colours; pass to `Dropdown.listStyle`. */
|
|
33
|
+
menuStyle: CSSProperties;
|
|
39
34
|
/** Should be passed to `DialDropdownIcon.onOpenChange` to reset the search on close. */
|
|
40
35
|
onOpenChange: (isOpen: boolean) => void;
|
|
41
36
|
}
|
|
42
37
|
/** Encapsulates model selector state, filtering, and menu construction. */
|
|
43
|
-
export declare const useModelSelector: ({ deployments, selectedDeploymentId, onDeploymentChange, modelSelectorLabels,
|
|
44
|
-
export {};
|
|
38
|
+
export declare const useModelSelector: ({ deployments, selectedDeploymentId, onDeploymentChange, modelSelectorLabels, styles: menuStyles, }: UseModelSelectorOptions) => UseModelSelectorResult;
|
|
45
39
|
//# sourceMappingURL=useModelSelector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useModelSelector.d.ts","sourceRoot":"","sources":["../../src/hooks/useModelSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EAEpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEL,YAAY,EAKb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"useModelSelector.d.ts","sourceRoot":"","sources":["../../src/hooks/useModelSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EAEpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEL,YAAY,EAKb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAqB,MAAM,OAAO,CAAC;AAO9E,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAQ5E,4CAA4C;AAC5C,MAAM,WAAW,uBAAuB;IACtC,gIAAgI;IAChI,WAAW,CAAC,EAAE,cAAc,EAAE,CAAC;IAC/B,wCAAwC;IACxC,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,yDAAyD;IACzD,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,+CAA+C;IAC/C,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,kIAAkI;IAClI,MAAM,CAAC,EAAE,eAAe,CAAC;CAC1B;AAED,6CAA6C;AAC7C,MAAM,WAAW,sBAAsB;IACrC,wCAAwC;IACxC,YAAY,EAAE,SAAS,CAAC;IACxB,+CAA+C;IAC/C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,0GAA0G;IAC1G,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,6IAA6I;IAC7I,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,8CAA8C;IAC9C,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,0DAA0D;IAC1D,UAAU,EAAE,SAAS,CAAC;IACtB,uFAAuF;IACvF,SAAS,EAAE,aAAa,CAAC;IACzB,wFAAwF;IACxF,YAAY,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;CACzC;AAED,2EAA2E;AAC3E,eAAO,MAAM,gBAAgB,GAAI,qGAM9B,uBAAuB,KAAG,sBAqL5B,CAAC"}
|
|
@@ -7,6 +7,12 @@ interface UseTextInsertionParams {
|
|
|
7
7
|
/** Ref attached to the `<textarea>` receiving the text. */
|
|
8
8
|
textareaRef: RefObject<HTMLTextAreaElement | null>;
|
|
9
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* Writes `value` into the textarea through React's own value tracker and fires the
|
|
12
|
+
* `input` event React listens for, so the component's `onChange` runs exactly as it
|
|
13
|
+
* does for a keystroke. Used only where the browser cannot perform the edit itself.
|
|
14
|
+
*/
|
|
15
|
+
export declare const applyValueThroughReact: (textarea: HTMLTextAreaElement, value: string, selectionStart: number, selectionEnd?: number) => void;
|
|
10
16
|
/** Return value of the {@link useTextInsertion} hook. */
|
|
11
17
|
export interface UseTextInsertionResult {
|
|
12
18
|
/**
|
|
@@ -30,7 +36,7 @@ export interface UseTextInsertionResult {
|
|
|
30
36
|
* The insert goes through `execCommand('insertText')` rather than a React state
|
|
31
37
|
* write, because only an edit made through the browser's editing pipeline lands on
|
|
32
38
|
* the textarea's native undo stack. Writing the value from React instead is what let
|
|
33
|
-
* a picked prompt discard an unrecoverable draft (
|
|
39
|
+
* a picked prompt discard an unrecoverable draft ([#8754](https://github.com/epam/ai-dial-chat/issues/8754)).
|
|
34
40
|
*/
|
|
35
41
|
export declare const useTextInsertion: ({ insertion, textareaRef, }: UseTextInsertionParams) => UseTextInsertionResult;
|
|
36
42
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTextInsertion.d.ts","sourceRoot":"","sources":["../../src/hooks/useTextInsertion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,wDAAwD;AACxD,UAAU,sBAAsB;IAC9B,4EAA4E;IAC5E,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,2DAA2D;IAC3D,WAAW,EAAE,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;CACpD;
|
|
1
|
+
{"version":3,"file":"useTextInsertion.d.ts","sourceRoot":"","sources":["../../src/hooks/useTextInsertion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,wDAAwD;AACxD,UAAU,sBAAsB;IAC9B,4EAA4E;IAC5E,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,2DAA2D;IAC3D,WAAW,EAAE,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;CACpD;AAED;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GACjC,UAAU,mBAAmB,EAC7B,OAAO,MAAM,EACb,gBAAgB,MAAM,EACtB,eAAc,MAAuB,KACpC,IAiBF,CAAC;AA6BF,yDAAyD;AACzD,MAAM,WAAW,sBAAsB;IACrC;;;;OAIG;IACH,iBAAiB,EAAE,CAAC,KAAK,EAAE;QACzB,GAAG,EAAE,MAAM,CAAC;QACZ,OAAO,EAAE,OAAO,CAAC;QACjB,OAAO,EAAE,OAAO,CAAC;QACjB,QAAQ,EAAE,OAAO,CAAC;QAClB,MAAM,EAAE,OAAO,CAAC;QAChB,cAAc,EAAE,MAAM,IAAI,CAAC;KAC5B,KAAK,OAAO,CAAC;CACf;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,GAAI,6BAG9B,sBAAsB,KAAG,sBAmG3B,CAAC"}
|
package/index.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
/*$vite$:1*/.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.
|
|
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))}._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))}._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_19a9k_2{background:var(--ci-bg,var(--bg-control-neutral,#fcfcfc));border-color:var(--ci-border,var(--stroke-tertiary,#e0e6f0))}._wrapper_19a9k_2:focus-within,._wrapper_19a9k_2:active{outline-color:var(--ci-border-focus,var(--stroke-accent-focus,#6785fb))}._wrapper_19a9k_2._wrapperDisabled_19a9k_9{color:var(--ci-text-disabled,var(--text-control-disable-primary,#848e9c))}._textarea_19a9k_13{color:var(--ci-text,var(--text-primary,#161b2d))}._textarea_19a9k_13::placeholder{color:var(--ci-placeholder,var(--text-secondary,#57647a))}._textarea_19a9k_13._textareaMentionMode_19a9k_19{color:#0000;caret-color:var(--ci-text,var(--text-primary,#161b2d))}._textarea_19a9k_13._textareaMentionMode_19a9k_19::selection{background-color:#0000}._textarea_19a9k_13:disabled{color:var(--ci-text-disabled,var(--text-control-disable-primary,#848e9c))}._commandHint_19a9k_53{color:var(--ci-placeholder,var(--text-secondary,#57647a))}._mentionHighlight_19a9k_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_19a9k_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}._modelSelectorButton_19a9k_69 ._modelSelectorCaret_19a9k_69{color:var(--ci-model-selector-caret-color,var(--text-primary,#161b2d))}._modelSelectorButton_19a9k_69 ._modelSelectorName_19a9k_72{color:var(--ci-model-selector-name-color,var(--text-primary,#161b2d))}._modelSelectorButton_19a9k_69 ._modelSelectorVersion_19a9k_75{color:var(--ci-model-selector-version-color,var(--text-secondary,#57647a))}._modelSelectorButton_19a9k_69:hover{background:var(--ci-model-selector-hover-bg,var(--bg-control-accent-alpha-hover,#2764d924))}._modelSelectorButton_19a9k_69:active{background:var(--ci-model-selector-hover-bg,var(--bg-control-accent-alpha-active,#2764d933))}._modelSelectorButton_19a9k_69._modelSelectorButtonDisabled_19a9k_84 ._modelSelectorCaret_19a9k_69{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}._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))}
|
|
2
|
+
/*$vite$:1*/.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.left-1\/2{left:50%}.top-0{top:0}.z-0{z-index:0}.z-10{z-index:10}.m-0{margin:0}.-me-1{margin-inline-end:-.25rem}.-me-4{margin-inline-end:-1rem}.-ms-1{margin-inline-start:-.25rem}.mb-2{margin-bottom:.5rem}.ms-1{margin-inline-start:.25rem}.ms-auto{margin-inline-start:auto}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.contents{display:contents}.hidden{display:none}.size-\[40px\]{height:40px;width:40px}.size-\[8px\]{height:8px;width:8px}.h-11{height:2.75rem}.h-\[1lh\]{height:1lh}.h-\[26px\]{height:26px}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.max-h-\[272px\]{max-height:272px}.max-h-\[80dvh\]{max-height:80dvh}.min-h-\[64px\]{min-height:64px}.\!w-\[240px\]{width:240px!important}.\!w-\[368px\]{width:368px!important}.w-0{width:0}.w-\[240px\]{width:240px}.w-\[50px\]{width:50px}.w-\[calc\(100\%\+1rem\)\]{width:calc(100% + 1rem)}.w-\[calc\(100\%\+8px\)\]{width:calc(100% + 8px)}.w-full{width:100%}.min-w-0{min-width:0}.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%}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-not-allowed{cursor:not-allowed}.resize-none{resize:none}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.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-stretch{align-self:stretch}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.\!rounded-full{border-radius:9999px!important}.rounded{border-radius:4px}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.\!border-0{border-width:0!important}.border{border-width:1px}.border-0{border-width:0}.\!bg-layer-raised{background-color:var(--bg-layer-raised,#fcfcfc)!important}.bg-control-accent-alpha-active{background-color:var(--bg-control-accent-alpha-active,#2764d933)}.bg-transparent{background-color:transparent}.p-0\.5{padding:.125rem}.p-1\.5{padding:.375rem}.p-4{padding:1rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.py-\[10px\]{padding-bottom:10px;padding-top:10px}.pb-1{padding-bottom:.25rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pe-1{padding-inline-end:.25rem}.pe-2{padding-inline-end:.5rem}.ps-1{padding-inline-start:.25rem}.ps-1\.5{padding-inline-start:.375rem}.ps-2{padding-inline-start:.5rem}.pt-2{padding-top:.5rem}.text-center{text-align:center}.text-start{text-align:start}.align-text-top{vertical-align:text-top}.uppercase{text-transform:uppercase}.tracking-wider{letter-spacing:.05em}.opacity-50{opacity:.5}.shadow-md{--tw-shadow:0 8px 24px 0 var(--shadow-md,#2764d90f);--tw-shadow-colored:0 8px 24px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #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-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.\[field-sizing\:content\]{field-sizing:content}.\[overflow-wrap\:anywhere\]{overflow-wrap:anywhere}.empty\:hidden:empty{display:none}.focus-within\:outline:focus-within{outline-style:solid;outline-width:1px}.focus-within\:-outline-offset-1:focus-within{outline-offset:-1px}.active\:outline:active{outline-style:solid;outline-width:1px}.active\:-outline-offset-1:active{outline-offset:-1px}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}@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}}.rtl\:scale-x-\[-1\]:where([dir=rtl],[dir=rtl] *){--tw-scale-x:-1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}
|
package/index.d.ts
CHANGED
|
@@ -6,8 +6,10 @@ export { EditMessageInput } from './components/EditMessageInput/EditMessageInput
|
|
|
6
6
|
export { Input } from './components/Input/Input';
|
|
7
7
|
export type { ConversationInputColors, ConversationInputProps, ConversationInputStyles, ConversationInputTypography, EditMessageInputProps, } from './models/ConversationInput';
|
|
8
8
|
export { ActionRowLayout, SendOnEnter } from './models/Input';
|
|
9
|
+
export { useComposerSeed, useComposerSeedSource, } from './hooks/useComposerSeed';
|
|
10
|
+
export type { UseComposerSeedInitial, UseComposerSeedResult, } from './hooks/useComposerSeed';
|
|
9
11
|
export type { TranscribeAudio } from './models/Voice';
|
|
10
|
-
export type { ChatSettingsValues, CommandMenuConfig, CommandMenuContext, InputColors, InputProps, InputTypography, MenuOverlayConfig, TextInsertion, ToolsChipLabels, } from './models/Input';
|
|
12
|
+
export type { ChatSettingsValues, CommandMenuConfig, CommandMenuContext, HighlightedTextRange, InputColors, InputHandle, InputProps, InputTypography, MenuOverlayConfig, ModelMenuColors, ModelMenuStyles, TextInsertion, ToolsChipLabels, } from './models/Input';
|
|
11
13
|
export type { BottomSheetColors, BottomSheetItem, } from './components/BottomSheet/BottomSheet';
|
|
12
14
|
export { ChatSettingsModal, type ChatSettingsModalProps, } from './components/ChatSettingsModal/ChatSettingsModal';
|
|
13
15
|
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAClF,YAAY,EAAE,qBAAqB,EAAE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