@epam/ai-dial-conversation-input 1.1.0-dev.8 → 1.1.0-dev.87

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.
Files changed (58) hide show
  1. package/components/AddAttachmentButton/AddAttachmentButton.d.ts +10 -0
  2. package/components/AddAttachmentButton/AddAttachmentButton.d.ts.map +1 -1
  3. package/components/BottomSheet/BottomSheet.d.ts +17 -4
  4. package/components/BottomSheet/BottomSheet.d.ts.map +1 -1
  5. package/components/BottomSheetShell/BottomSheetShell.d.ts +16 -13
  6. package/components/BottomSheetShell/BottomSheetShell.d.ts.map +1 -1
  7. package/components/ChatSettingsBottomSheet/ChatSettingsBottomSheet.d.ts +1 -4
  8. package/components/ChatSettingsBottomSheet/ChatSettingsBottomSheet.d.ts.map +1 -1
  9. package/components/ChatSettingsModal/ChatSettingsModal.d.ts +1 -0
  10. package/components/ChatSettingsModal/ChatSettingsModal.d.ts.map +1 -1
  11. package/components/ConversationInput/ConversationInput.d.ts +1 -0
  12. package/components/ConversationInput/ConversationInput.d.ts.map +1 -1
  13. package/components/EditMessageInput/EditMessageInput.d.ts +1 -0
  14. package/components/EditMessageInput/EditMessageInput.d.ts.map +1 -1
  15. package/components/Input/Buttons/SendButton.d.ts +1 -2
  16. package/components/Input/Buttons/SendButton.d.ts.map +1 -1
  17. package/components/Input/Buttons/StopButton.d.ts +1 -0
  18. package/components/Input/Buttons/StopButton.d.ts.map +1 -1
  19. package/components/Input/Input.d.ts +1 -0
  20. package/components/Input/Input.d.ts.map +1 -1
  21. package/components/Input/ModelSelectorControl.d.ts +9 -10
  22. package/components/Input/ModelSelectorControl.d.ts.map +1 -1
  23. package/components/ModelSelectorBottomSheet/ModelSelectorBottomSheet.d.ts +21 -5
  24. package/components/ModelSelectorBottomSheet/ModelSelectorBottomSheet.d.ts.map +1 -1
  25. package/components/ModelSelectorSkeleton/ModelSelectorSkeleton.d.ts +4 -0
  26. package/components/ModelSelectorSkeleton/ModelSelectorSkeleton.d.ts.map +1 -1
  27. package/components/SelectedToolsChips/SelectedToolsChips.d.ts +42 -0
  28. package/components/SelectedToolsChips/SelectedToolsChips.d.ts.map +1 -0
  29. package/components/ToolsBottomSheet/ToolsBottomSheet.d.ts +29 -0
  30. package/components/ToolsBottomSheet/ToolsBottomSheet.d.ts.map +1 -0
  31. package/components/VoiceBar/VoiceBar.d.ts +11 -17
  32. package/components/VoiceBar/VoiceBar.d.ts.map +1 -1
  33. package/hooks/useAttachments.d.ts +1 -5
  34. package/hooks/useAttachments.d.ts.map +1 -1
  35. package/hooks/useBottomSheet.d.ts +1 -4
  36. package/hooks/useBottomSheet.d.ts.map +1 -1
  37. package/hooks/useDelayedUnmount.d.ts +3 -12
  38. package/hooks/useDelayedUnmount.d.ts.map +1 -1
  39. package/hooks/useInputHistoryNavigation.d.ts +1 -12
  40. package/hooks/useInputHistoryNavigation.d.ts.map +1 -1
  41. package/hooks/useMessageState.d.ts +1 -4
  42. package/hooks/useMessageState.d.ts.map +1 -1
  43. package/hooks/useModelSelector.d.ts.map +1 -1
  44. package/hooks/useVoiceRecorder.d.ts +16 -24
  45. package/hooks/useVoiceRecorder.d.ts.map +1 -1
  46. package/index.css +1 -1
  47. package/index.d.ts +1 -1
  48. package/index.d.ts.map +1 -1
  49. package/index.js +1047 -864
  50. package/models/ConversationInput.d.ts +67 -32
  51. package/models/ConversationInput.d.ts.map +1 -1
  52. package/models/Input.d.ts +67 -34
  53. package/models/Input.d.ts.map +1 -1
  54. package/package.json +5 -5
  55. package/utils/concurrency.d.ts +3 -12
  56. package/utils/concurrency.d.ts.map +1 -1
  57. package/utils/deployment.d.ts +1 -4
  58. package/utils/deployment.d.ts.map +1 -1
@@ -1,3 +1,4 @@
1
+ import { ToolMenuItem } from '@epam/ai-dial-chat-shared';
1
2
  import { CSSProperties, FC, ReactNode } from 'react';
2
3
  import { ChatSettingsConfig } from '../../models/Input';
3
4
  /** A single item injected into the attachment menu by the host app. */
@@ -33,7 +34,16 @@ interface AddAttachmentButtonProps {
33
34
  chatSettings?: ChatSettingsConfig;
34
35
  /** Additional menu items appended after "Attach file". */
35
36
  extraMenuItems?: ExtraMenuItem[];
37
+ /** Resolved tool toggle items to render in a "Tools" submenu. When empty or absent, no Tools item is shown. */
38
+ toolsMenuItems?: ToolMenuItem[];
39
+ /** Called when a tool row is toggled. Receives the tool id. */
40
+ onToolToggle?: (toolId: string) => void;
41
+ /** Label for the "Tools" menu item and mobile sheet title. Defaults to `'Tools'`. */
42
+ toolsMenuTitle?: string;
43
+ /** Accessible label for the back arrow in the mobile tools bottom sheet. Defaults to `'Back'`. */
44
+ toolsBackLabel?: string;
36
45
  }
46
+ /** "+" trigger button that opens an attachment/settings menu (desktop dropdown or mobile bottom sheet). */
37
47
  export declare const AddAttachmentButton: FC<AddAttachmentButtonProps>;
38
48
  export {};
39
49
  //# sourceMappingURL=AddAttachmentButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AddAttachmentButton.d.ts","sourceRoot":"","sources":["../../../src/components/AddAttachmentButton/AddAttachmentButton.tsx"],"names":[],"mappings":"AAiBA,OAAO,EACL,aAAa,EACb,KAAK,EAAE,EACP,KAAK,SAAS,EAGf,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAK7D,uEAAuE;AACvE,MAAM,WAAW,aAAa;IAC5B,+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,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,oFAAoF;IACpF,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;CAClC;AAED,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CAmK5D,CAAC"}
1
+ {"version":3,"file":"AddAttachmentButton.d.ts","sourceRoot":"","sources":["../../../src/components/AddAttachmentButton/AddAttachmentButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EAElB,MAAM,2BAA2B,CAAC;AAgBnC,OAAO,EACL,aAAa,EACb,KAAK,EAAE,EACP,KAAK,SAAS,EAGf,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAM7D,uEAAuE;AACvE,MAAM,WAAW,aAAa;IAC5B,+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,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,oFAAoF;IACpF,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;CACzB;AAED,2GAA2G;AAC3G,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CAqP5D,CAAC"}
@@ -1,4 +1,18 @@
1
1
  import { CSSProperties, FC, ReactNode } from 'react';
2
+ import { BottomSheetShellColors } from '../BottomSheetShell/BottomSheetShell';
3
+ /** Color overrides for the `BottomSheet` component, applied as CSS custom properties. */
4
+ export interface BottomSheetColors {
5
+ /** Item label text color. Defaults to `--text-primary`. */
6
+ itemText?: string;
7
+ /** Item hover background. Defaults to `--bg-layer-3`. */
8
+ itemHoverBg?: string;
9
+ /** Item active/pressed background. Defaults to `--bg-layer-4`. */
10
+ itemActiveBg?: string;
11
+ /** Item leading-icon color. Defaults to `--text-secondary`. */
12
+ itemIcon?: string;
13
+ /** Color overrides forwarded to the underlying `BottomSheetShell` (backdrop, panel background, title, divider). */
14
+ shell?: BottomSheetShellColors;
15
+ }
2
16
  /** A single action entry in the bottom-sheet menu. */
3
17
  export interface BottomSheetItem {
4
18
  /** Unique identifier for the item. */
@@ -36,10 +50,9 @@ export interface BottomSheetProps {
36
50
  itemLabelClassName?: string;
37
51
  /** CSS class applied to each item button text. Defaults to empty string */
38
52
  btnTextClassName?: string;
53
+ /** Color overrides applied as CSS custom properties. */
54
+ colors?: BottomSheetColors;
39
55
  }
40
- /**
41
- * A generic bottom-sheet overlay for mobile viewports.
42
- * Renders the shared {@link BottomSheetShell} with a list of tappable actions.
43
- */
56
+ /** Generic mobile bottom-sheet overlay with a list of tappable action items. */
44
57
  export declare const BottomSheet: FC<BottomSheetProps>;
45
58
  //# sourceMappingURL=BottomSheet.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../src/components/BottomSheet/BottomSheet.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAI1D,sDAAsD;AACtD,MAAM,WAAW,eAAe;IAC9B,sCAAsC;IACtC,GAAG,EAAE,MAAM,CAAC;IACZ,qBAAqB;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,4BAA4B;IAC5B,IAAI,EAAE,SAAS,CAAC;IAChB,sCAAsC;IACtC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,0EAA0E;IAC1E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,6EAA6E;IAC7E,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,sDAAsD;AACtD,MAAM,WAAW,gBAAgB;IAC/B,iCAAiC;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,UAAU,EAAE,MAAM,CAAC;IACnB,kFAAkF;IAClF,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,2CAA2C;IAC3C,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,oFAAoF;IACpF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sFAAsF;IACtF,cAAc,CAAC,EAAE,MAAM,CAAC;I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AAC;IACnB,kFAAkF;IAClF,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,2CAA2C;IAC3C,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,oFAAoF;IACpF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sFAAsF;IACtF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,6EAA6E;IAC7E,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,2EAA2E;IAC3E,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,wDAAwD;IACxD,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC5B;AAED,gFAAgF;AAChF,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CA0D5C,CAAC"}
@@ -1,12 +1,20 @@
1
1
  import { CSSProperties, FC, ReactNode } from 'react';
2
+ /** Color overrides for the `BottomSheetShell` component, applied as CSS custom properties. */
3
+ export interface BottomSheetShellColors {
4
+ /** Backdrop background color. Defaults to `--bg-backdrop`. */
5
+ backdrop?: string;
6
+ /** Sheet panel background color. Defaults to `--bg-layer-0`. */
7
+ sheetBg?: string;
8
+ /** Sheet title text color. Defaults to `--text-primary`. */
9
+ sheetText?: string;
10
+ /** Divider line color below the header. Defaults to `--bg-layer-4`. */
11
+ divider?: string;
12
+ }
2
13
  /** Props for the shared bottom-sheet overlay shell. */
3
14
  export interface BottomSheetShellProps {
4
15
  /** Controls sheet visibility. */
5
16
  isOpen: boolean;
6
- /**
7
- * Heading text rendered in the sheet header and used as the dialog
8
- * accessible name. When omitted the header is hidden entirely.
9
- */
17
+ /** Heading text for the sheet header and dialog accessible name; header hidden when omitted. */
10
18
  title?: string;
11
19
  /** Accessible label for the close (×) button. Required when `title` is provided. */
12
20
  closeLabel?: string;
@@ -16,10 +24,7 @@ export interface BottomSheetShellProps {
16
24
  onBack?: () => void;
17
25
  /** Accessible label for the back button. Required when `onBack` is provided. */
18
26
  backLabel?: string;
19
- /**
20
- * Accessible name for the dialog when no `title` is shown.
21
- * Ignored when `title` is present (title doubles as the accessible name).
22
- */
27
+ /** Dialog accessible name used when `title` is omitted. */
23
28
  'aria-label'?: string;
24
29
  /** Inline CSS custom properties forwarded to the sheet root for theming. */
25
30
  style?: CSSProperties;
@@ -27,13 +32,11 @@ export interface BottomSheetShellProps {
27
32
  titleClassName?: string;
28
33
  /** Extra classes appended to the sheet container (e.g. a max-height constraint). */
29
34
  className?: string;
35
+ /** Color overrides applied as CSS custom properties. */
36
+ colors?: BottomSheetShellColors;
30
37
  /** Sheet body rendered below the header divider. */
31
38
  children: ReactNode;
32
39
  }
33
- /**
34
- * Generic mobile bottom-sheet shell: renders a portal with a backdrop, a fixed
35
- * bottom-anchored panel, and an optional header. Handles Escape-to-close and
36
- * body scroll locking. Consumers supply the body.
37
- */
40
+ /** Generic mobile bottom-sheet shell: backdrop, bottom-anchored panel, optional header, Escape-to-close, and body-scroll lock. */
38
41
  export declare const BottomSheetShell: FC<BottomSheetShellProps>;
39
42
  //# sourceMappingURL=BottomSheetShell.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BottomSheetShell.d.ts","sourceRoot":"","sources":["../../../src/components/BottomSheetShell/BottomSheetShell.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAK1D,uDAAuD;AACvD,MAAM,WAAW,qBAAqB;IACpC,iCAAiC;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,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;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,sFAAsF;IACtF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oFAAoF;IACpF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oDAAoD;IACpD,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA4EtD,CAAC"}
1
+ {"version":3,"file":"BottomSheetShell.d.ts","sourceRoot":"","sources":["../../../src/components/BottomSheetShell/BottomSheetShell.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAK1D,8FAA8F;AAC9F,MAAM,WAAW,sBAAsB;IACrC,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gEAAgE;IAChE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,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,4EAA4E;IAC5E,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,sFAAsF;IACtF,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,kIAAkI;AAClI,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAuFtD,CAAC"}
@@ -50,9 +50,6 @@ export interface ChatSettingsBottomSheetProps {
50
50
  /** Tooltip shown on the save button when it is disabled (e.g. no response format selected). */
51
51
  saveDisabledTooltip?: string;
52
52
  }
53
- /**
54
- * Mobile bottom sheet that renders the chat-settings form inline with a back
55
- * arrow to return to the preceding sheet.
56
- */
53
+ /** Mobile bottom sheet for chat settings with a back button to return to the preceding sheet. */
57
54
  export declare const ChatSettingsBottomSheet: FC<ChatSettingsBottomSheetProps>;
58
55
  //# sourceMappingURL=ChatSettingsBottomSheet.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChatSettingsBottomSheet.d.ts","sourceRoot":"","sources":["../../../src/components/ChatSettingsBottomSheet/ChatSettingsBottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAgB,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAGzE,OAAO,KAAK,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAE/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAI7D,uDAAuD;AACvD,MAAM,WAAW,4BAA4B;IAC3C,iCAAiC;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,4EAA4E;IAC5E,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,kDAAkD;IAClD,SAAS,EAAE,MAAM,CAAC;IAClB,iFAAiF;IACjF,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,iDAAiD;IACjD,UAAU,EAAE,MAAM,CAAC;IACnB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,iFAAiF;IACjF,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,qEAAqE;IACrE,qBAAqB,EAAE,cAAc,CAAC;IACtC,iEAAiE;IACjE,mBAAmB,EAAE,MAAM,CAAC;IAC5B,6DAA6D;IAC7D,kBAAkB,EAAE,MAAM,CAAC;IAC3B,0DAA0D;IAC1D,MAAM,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC7C,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,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,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+FAA+F;IAC/F,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,4BAA4B,CAwFpE,CAAC"}
1
+ {"version":3,"file":"ChatSettingsBottomSheet.d.ts","sourceRoot":"","sources":["../../../src/components/ChatSettingsBottomSheet/ChatSettingsBottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,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,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,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+FAA+F;IAC/F,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,iGAAiG;AACjG,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,4BAA4B,CAwFpE,CAAC"}
@@ -40,6 +40,7 @@ export interface ChatSettingsModalProps {
40
40
  /** Tooltip shown on the save button when it is disabled (e.g. no response format selected). */
41
41
  saveDisabledTooltip?: string;
42
42
  }
43
+ /** Desktop modal for chat settings (system prompt, temperature, response format). */
43
44
  export declare const ChatSettingsModal: FC<ChatSettingsModalProps>;
44
45
  declare const _default: import('react').NamedExoticComponent<ChatSettingsModalProps>;
45
46
  export default _default;
@@ -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;AAG3D,OAAO,EAAQ,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAG7D,iDAAiD;AACjD,MAAM,WAAW,sBAAsB;IACrC,iFAAiF;IACjF,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,qEAAqE;IACrE,qBAAqB,EAAE,cAAc,CAAC;IACtC,iEAAiE;IACjE,mBAAmB,EAAE,MAAM,CAAC;IAC5B,6DAA6D;IAC7D,kBAAkB,EAAE,MAAM,CAAC;IAC3B,4DAA4D;IAC5D,MAAM,EAAE,C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IACrC,iFAAiF;IACjF,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,qEAAqE;IACrE,qBAAqB,EAAE,cAAc,CAAC;IACtC,iEAAiE;IACjE,mBAAmB,EAAE,MAAM,CAAC;IAC5B,6DAA6D;IAC7D,kBAAkB,EAAE,MAAM,CAAC;IAC3B,4DAA4D;IAC5D,MAAM,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC7C,0CAA0C;IAC1C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,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,gFAAgF;IAChF,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,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+FAA+F;IAC/F,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,qFAAqF;AACrF,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAgFxD,CAAC;;AAEF,wBAAuC"}
@@ -1,4 +1,5 @@
1
1
  import { FC } from 'react';
2
2
  import { ConversationInputProps } from '../../models/ConversationInput';
3
+ /** Root conversation input: wraps the `Input` component with a welcome message and style override support. */
3
4
  export declare const ConversationInput: FC<ConversationInputProps>;
4
5
  //# sourceMappingURL=ConversationInput.d.ts.map
@@ -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,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CA+CxD,CAAC"}
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,CAgDxD,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { FC } from 'react';
2
2
  import { EditMessageInputProps } from '../../models/ConversationInput';
3
+ /** Inline edit-message form: pre-populated textarea, existing attachment tray, and Save/Cancel actions. */
3
4
  export declare const EditMessageInput: FC<EditMessageInputProps>;
4
5
  //# sourceMappingURL=EditMessageInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EditMessageInput.d.ts","sourceRoot":"","sources":["../../../src/components/EditMessageInput/EditMessageInput.tsx"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,EAAE,EAMR,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAI5E,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAmKtD,CAAC"}
1
+ {"version":3,"file":"EditMessageInput.d.ts","sourceRoot":"","sources":["../../../src/components/EditMessageInput/EditMessageInput.tsx"],"names":[],"mappings":"AAQA,OAAO,EAEL,KAAK,EAAE,EAMR,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAI5E,2GAA2G;AAC3G,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAiLtD,CAAC"}
@@ -5,10 +5,9 @@ export interface SendButtonProps {
5
5
  isDisabled?: boolean;
6
6
  /** Accessible label for the send button. */
7
7
  ariaLabel?: string;
8
- /** Tooltip shown on hover. */
9
- title?: string;
10
8
  /** Whether the button is in the process of exiting (e.g., during an animation). */
11
9
  isExiting?: boolean;
12
10
  }
11
+ /** Animated circular send button with tooltip and disabled state. */
13
12
  export declare const SendButton: FC<SendButtonProps>;
14
13
  //# sourceMappingURL=SendButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SendButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/Buttons/SendButton.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,kDAAkD;AAClD,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mFAAmF;IACnF,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CA4B1C,CAAC"}
1
+ {"version":3,"file":"SendButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/Buttons/SendButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,kDAAkD;AAClD,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mFAAmF;IACnF,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,qEAAqE;AACrE,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAoB1C,CAAC"}
@@ -4,6 +4,7 @@ interface Props {
4
4
  /** Accessible label for the stop button. */
5
5
  ariaLabel?: string;
6
6
  }
7
+ /** Square stop-streaming button. */
7
8
  export declare const StopButton: FC<Props>;
8
9
  export {};
9
10
  //# sourceMappingURL=StopButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StopButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/Buttons/StopButton.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,UAAU,KAAK;IACb,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,KAAK,CAmBhC,CAAC"}
1
+ {"version":3,"file":"StopButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/Buttons/StopButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,UAAU,KAAK;IACb,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,oCAAoC;AACpC,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,KAAK,CAWhC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { FC } from 'react';
2
2
  import { InputProps } from '../../models/Input';
3
+ /** Full conversation input field: textarea, send/stop, model selector, attachment menu, voice recording, and chat-settings controls. */
3
4
  export declare const Input: FC<InputProps>;
4
5
  //# sourceMappingURL=Input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAeA,OAAO,EAEL,KAAK,EAAE,EAMR,MAAM,OAAO,CAAC;AAOf,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAUrD,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,CA+ahC,CAAC"}
1
+ {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAeA,OAAO,EAGL,KAAK,EAAE,EAMR,MAAM,OAAO,CAAC;AAOf,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAWrD,wIAAwI;AACxI,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,CAifhC,CAAC"}
@@ -1,10 +1,11 @@
1
- import { CSSProperties, FC } from 'react';
2
- import { InputProps } from '../../models/Input';
1
+ import { DeploymentItem } from '@epam/ai-dial-chat-shared';
2
+ import { CSSProperties, FC, ReactNode } from 'react';
3
+ import { ModelSelectorLabels } from '../../models/Input';
3
4
  interface Props {
4
- deployments: InputProps['deployments'];
5
- selectedDeploymentId: InputProps['selectedDeploymentId'];
6
- onDeploymentChange: InputProps['onDeploymentChange'];
7
- modelSelectorLabels: InputProps['modelSelectorLabels'];
5
+ deployments?: DeploymentItem[];
6
+ selectedDeploymentId?: string | null;
7
+ onDeploymentChange?: (id: string) => void;
8
+ modelSelectorLabels?: ModelSelectorLabels;
8
9
  isStreaming: boolean;
9
10
  isMobile: boolean;
10
11
  isInputDisabled?: boolean;
@@ -14,7 +15,7 @@ interface Props {
14
15
  */
15
16
  isDisabled?: boolean;
16
17
  style: CSSProperties;
17
- modelPickerOverlay: InputProps['modelPickerOverlay'];
18
+ modelPickerOverlay?: (onClose: () => void) => ReactNode;
18
19
  /** Whether the model picker popover is open (controlled from Input). */
19
20
  isPickerOpen?: boolean;
20
21
  /** Toggles the model picker popover open/closed. */
@@ -22,9 +23,7 @@ interface Props {
22
23
  /** Called by DialDropdown when open state changes (e.g. outside click). */
23
24
  onPickerOpenChange?: (open: boolean) => void;
24
25
  }
25
- /**
26
- * Renders model selection control as a dropdown on desktop and as a bottom sheet on mobile.
27
- */
26
+ /** Model-selector control: desktop dropdown or mobile bottom sheet, depending on viewport. */
28
27
  export declare const ModelSelectorControl: FC<Props>;
29
28
  export {};
30
29
  //# sourceMappingURL=ModelSelectorControl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModelSelectorControl.d.ts","sourceRoot":"","sources":["../../../src/components/Input/ModelSelectorControl.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,EAAE,EAAY,MAAM,OAAO,CAAC;AAE9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAKrD,UAAU,KAAK;IACb,WAAW,EAAE,UAAU,CAAC,aAAa,CAAC,CAAC;IACvC,oBAAoB,EAAE,UAAU,CAAC,sBAAsB,CAAC,CAAC;IACzD,kBAAkB,EAAE,UAAU,CAAC,oBAAoB,CAAC,CAAC;IACrD,mBAAmB,EAAE,UAAU,CAAC,qBAAqB,CAAC,CAAC;IACvD,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,aAAa,CAAC;IACrB,kBAAkB,EAAE,UAAU,CAAC,oBAAoB,CAAC,CAAC;IACrD,wEAAwE;IACxE,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,oDAAoD;IACpD,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,2EAA2E;IAC3E,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CAC9C;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,KAAK,CA6K1C,CAAC"}
1
+ {"version":3,"file":"ModelSelectorControl.d.ts","sourceRoot":"","sources":["../../../src/components/Input/ModelSelectorControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAgB,MAAM,2BAA2B,CAAC;AAUzE,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,EAAE,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAEzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAK9D,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,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;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,2EAA2E;IAC3E,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CAC9C;AAED,8FAA8F;AAC9F,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,KAAK,CA6K1C,CAAC"}
@@ -1,5 +1,23 @@
1
1
  import { DeploymentItem } from '@epam/ai-dial-chat-shared';
2
2
  import { CSSProperties, FC } from 'react';
3
+ import { BottomSheetShellColors } from '../BottomSheetShell/BottomSheetShell';
4
+ /** Color overrides for the `ModelSelectorBottomSheet` component, applied as CSS custom properties. */
5
+ export interface ModelSelectorBottomSheetColors {
6
+ /** Divider color between the search field and the deployment list. Defaults to `--bg-layer-4`. */
7
+ divider?: string;
8
+ /** Item label and state-label text color. Defaults to `--text-primary`/`--text-secondary`. */
9
+ itemText?: string;
10
+ /** Item hover background. Defaults to `--bg-layer-3`. */
11
+ itemHoverBg?: string;
12
+ /** Item active/pressed background. Defaults to `--bg-layer-4`. */
13
+ itemActiveBg?: string;
14
+ /** Item leading-icon color. Defaults to `--text-secondary`. */
15
+ itemIcon?: string;
16
+ /** Selected-row checkmark icon color. Defaults to `--text-accent-primary`. */
17
+ checkIcon?: string;
18
+ /** Color overrides forwarded to the underlying `BottomSheetShell` (backdrop, panel background, title, divider). */
19
+ shell?: BottomSheetShellColors;
20
+ }
3
21
  /** Props for the mobile bottom-sheet model selector. */
4
22
  export interface ModelSelectorBottomSheetProps {
5
23
  /** Controls sheet visibility. */
@@ -30,11 +48,9 @@ export interface ModelSelectorBottomSheetProps {
30
48
  titleClassName?: string;
31
49
  /** CSS class applied to each item label and the state label. Defaults to `'dial-small-text'`. */
32
50
  labelClassName?: string;
51
+ /** Color overrides applied as CSS custom properties. */
52
+ colors?: ModelSelectorBottomSheetColors;
33
53
  }
34
- /**
35
- * A bottom-sheet overlay for the model/deployment selector on mobile viewports.
36
- * Renders the shared {@link BottomSheetShell} with a search input that filters
37
- * the deployment list (virtualized for large lists) as the user types.
38
- */
54
+ /** Mobile bottom-sheet model selector with search and a virtualized deployment list. */
39
55
  export declare const ModelSelectorBottomSheet: FC<ModelSelectorBottomSheetProps>;
40
56
  //# sourceMappingURL=ModelSelectorBottomSheet.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModelSelectorBottomSheet.d.ts","sourceRoot":"","sources":["../../../src/components/ModelSelectorBottomSheet/ModelSelectorBottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAGpB,MAAM,2BAA2B,CAAC;AAQnC,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,EAAE,EAAuB,MAAM,OAAO,CAAC;AAiFzE,wDAAwD;AACxD,MAAM,WAAW,6BAA6B;IAC5C,iCAAiC;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,kFAAkF;IAClF,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,UAAU,EAAE,MAAM,CAAC;IACnB,qEAAqE;IACrE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kFAAkF;IAClF,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,kJAAkJ;IAClJ,WAAW,CAAC,EAAE,cAAc,EAAE,CAAC;IAC/B,uEAAuE;IACvE,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,oFAAoF;IACpF,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,oEAAoE;IACpE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wEAAwE;IACxE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yEAAyE;IACzE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,sFAAsF;IACtF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iGAAiG;IACjG,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,EAAE,EAAE,CAAC,6BAA6B,CAgGtE,CAAC"}
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;AASnC,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,EAAE,EAAuB,MAAM,OAAO,CAAC;AAGzE,OAAO,K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AAM,CAAC;IACxB,wDAAwD;IACxD,MAAM,CAAC,EAAE,8BAA8B,CAAC;CACzC;AAED,wFAAwF;AACxF,eAAO,MAAM,wBAAwB,EAAE,EAAE,CAAC,6BAA6B,CA+GtE,CAAC"}
@@ -1,16 +1,20 @@
1
1
  import { FC } from 'react';
2
+ /** Number of skeleton rows rendered while deployments are loading. */
2
3
  export declare const MODEL_SELECTOR_SKELETON_ROW_COUNT = 7;
3
4
  interface ModelSelectorSkeletonIconProps {
4
5
  size?: number;
5
6
  }
7
+ /** Circular skeleton placeholder for a deployment icon. */
6
8
  export declare const ModelSelectorSkeletonIcon: FC<ModelSelectorSkeletonIconProps>;
7
9
  interface ModelSelectorSkeletonLabelProps {
8
10
  loadingLabel?: string;
9
11
  }
12
+ /** Text skeleton placeholder for a deployment label. */
10
13
  export declare const ModelSelectorSkeletonLabel: FC<ModelSelectorSkeletonLabelProps>;
11
14
  interface ModelSelectorSkeletonRowsProps {
12
15
  loadingLabel?: string;
13
16
  }
17
+ /** Stacked skeleton rows shown while the model selector is loading. */
14
18
  export declare const ModelSelectorSkeletonRows: FC<ModelSelectorSkeletonRowsProps>;
15
19
  export {};
16
20
  //# sourceMappingURL=ModelSelectorSkeleton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModelSelectorSkeleton.d.ts","sourceRoot":"","sources":["../../../src/components/ModelSelectorSkeleton/ModelSelectorSkeleton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,eAAO,MAAM,iCAAiC,IAAI,CAAC;AAEnD,UAAU,8BAA8B;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,yBAAyB,EAAE,EAAE,CAAC,8BAA8B,CASxE,CAAC;AAEF,UAAU,+BAA+B;IACvC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,0BAA0B,EAAE,EAAE,CACzC,+BAA+B,CAWhC,CAAC;AAEF,UAAU,8BAA8B;IACtC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,yBAAyB,EAAE,EAAE,CAAC,8BAA8B,CAiBxE,CAAC"}
1
+ {"version":3,"file":"ModelSelectorSkeleton.d.ts","sourceRoot":"","sources":["../../../src/components/ModelSelectorSkeleton/ModelSelectorSkeleton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,sEAAsE;AACtE,eAAO,MAAM,iCAAiC,IAAI,CAAC;AAEnD,UAAU,8BAA8B;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,2DAA2D;AAC3D,eAAO,MAAM,yBAAyB,EAAE,EAAE,CAAC,8BAA8B,CASxE,CAAC;AAEF,UAAU,+BAA+B;IACvC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,wDAAwD;AACxD,eAAO,MAAM,0BAA0B,EAAE,EAAE,CACzC,+BAA+B,CAWhC,CAAC;AAEF,UAAU,8BAA8B;IACtC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,uEAAuE;AACvE,eAAO,MAAM,yBAAyB,EAAE,EAAE,CAAC,8BAA8B,CAiBxE,CAAC"}
@@ -0,0 +1,42 @@
1
+ import { ToolMenuItem } from '@epam/ai-dial-chat-shared';
2
+ import { FC } from 'react';
3
+ /** Typography overrides for the `SelectedToolsChips` component. */
4
+ export interface SelectedToolsChipsTypography {
5
+ /** Typography utility class applied to the chip text. Defaults to `'dial-small-paragraph-text'`. */
6
+ fontClassName?: string;
7
+ }
8
+ /** Color overrides for the `SelectedToolsChips` component, applied as CSS custom properties. */
9
+ export interface SelectedToolsChipsColors {
10
+ /** Chip background color. Defaults to `--bg-layer-base`. */
11
+ chipBg?: string;
12
+ /** Chip border color. Defaults to `--stroke-secondary`. */
13
+ chipBorder?: string;
14
+ /** Chip leading-icon color. Defaults to `--text-secondary`. */
15
+ chipIcon?: string;
16
+ /** Chip label text color. Defaults to `--text-primary`. */
17
+ chipText?: string;
18
+ /** Close (×) button icon color. Defaults to `--text-secondary`. */
19
+ chipClose?: string;
20
+ /** Close (×) button icon color on hover/focus. Defaults to `--text-primary`. */
21
+ chipCloseHover?: string;
22
+ }
23
+ /** Props for the SelectedToolsChips component. */
24
+ export interface SelectedToolsChipsProps {
25
+ /** All tool menu items; the component filters by `isSelected` internally. */
26
+ items: ToolMenuItem[];
27
+ /** Called with the tool id when the close button is clicked on a desktop chip. */
28
+ onToolToggle: (toolId: string) => void;
29
+ /** Whether to render the mobile (consolidated) chip or desktop (individual) chips. */
30
+ isMobile: boolean;
31
+ /** Formats the consolidated count label shown in the mobile chip. Defaults to English pluralization. */
32
+ countLabel?: (count: number) => string;
33
+ /** Returns the accessible label for the close button on a desktop chip. Defaults to `"Remove {toolLabel}"`. */
34
+ removeLabel?: (toolLabel: string) => string;
35
+ /** Typography overrides for the chip text. */
36
+ typography?: SelectedToolsChipsTypography;
37
+ /** Color overrides applied as CSS custom properties. */
38
+ colors?: SelectedToolsChipsColors;
39
+ }
40
+ /** Chip row rendered inside the conversation input when one or more tools are selected. */
41
+ export declare const SelectedToolsChips: FC<SelectedToolsChipsProps>;
42
+ //# sourceMappingURL=SelectedToolsChips.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectedToolsChips.d.ts","sourceRoot":"","sources":["../../../src/components/SelectedToolsChips/SelectedToolsChips.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAI9D,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,mEAAmE;AACnE,MAAM,WAAW,4BAA4B;IAC3C,oGAAoG;IACpG,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,gGAAgG;AAChG,MAAM,WAAW,wBAAwB;IACvC,4DAA4D;IAC5D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,2DAA2D;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mEAAmE;IACnE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gFAAgF;IAChF,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,kDAAkD;AAClD,MAAM,WAAW,uBAAuB;IACtC,6EAA6E;IAC7E,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,kFAAkF;IAClF,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,sFAAsF;IACtF,QAAQ,EAAE,OAAO,CAAC;IAClB,wGAAwG;IACxG,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACvC,+GAA+G;IAC/G,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;IAC5C,8CAA8C;IAC9C,UAAU,CAAC,EAAE,4BAA4B,CAAC;IAC1C,wDAAwD;IACxD,MAAM,CAAC,EAAE,wBAAwB,CAAC;CACnC;AAOD,2FAA2F;AAC3F,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CA0F1D,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { ToolMenuItem } from '@epam/ai-dial-chat-shared';
2
+ import { CSSProperties, FC } from 'react';
3
+ /** Props for the ToolsBottomSheet component. */
4
+ export interface ToolsBottomSheetProps {
5
+ /** Controls sheet visibility. */
6
+ isOpen: boolean;
7
+ /** Called when the back arrow is tapped — returns to the previous sheet. */
8
+ onBack: () => void;
9
+ /** Accessible label for the back arrow button. Defaults to `'Back'`. */
10
+ backLabel?: string;
11
+ /** Called when the close (x) button is tapped — dismisses the sheet entirely. */
12
+ onClose: () => void;
13
+ /** Accessible label for the close (x) button. Defaults to `'Close'`. */
14
+ closeLabel?: string;
15
+ /** Inline CSS custom properties forwarded to the sheet root for theming. */
16
+ style?: CSSProperties;
17
+ /** Sheet title. Defaults to `'Tools'`. */
18
+ title?: string;
19
+ /** Tool items to render as toggle rows. */
20
+ items: ToolMenuItem[];
21
+ /** Called with the tool id when a row is tapped. */
22
+ onToolToggle: (toolId: string) => void;
23
+ }
24
+ /**
25
+ * Mobile bottom sheet that renders a list of tool toggle rows with a back
26
+ * arrow to return to the preceding add-menu bottom sheet.
27
+ */
28
+ export declare const ToolsBottomSheet: FC<ToolsBottomSheetProps>;
29
+ //# sourceMappingURL=ToolsBottomSheet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToolsBottomSheet.d.ts","sourceRoot":"","sources":["../../../src/components/ToolsBottomSheet/ToolsBottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAG9D,OAAO,KAAK,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAG/C,gDAAgD;AAChD,MAAM,WAAW,qBAAqB;IACpC,iCAAiC;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,4EAA4E;IAC5E,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,wEAAwE;IACxE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iFAAiF;IACjF,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,wEAAwE;IACxE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2CAA2C;IAC3C,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,oDAAoD;IACpD,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA+CtD,CAAC"}
@@ -1,36 +1,30 @@
1
- import { CSSProperties, FC } from 'react';
1
+ import { CSSProperties, FC, RefObject } from 'react';
2
2
  import { VoiceRecorderState } from '../../hooks/useVoiceRecorder';
3
3
  /** Props accepted by the `VoiceBar` component. */
4
4
  export interface VoiceBarProps {
5
5
  /** Current recorder state — must not be `'idle'` when this component is rendered. */
6
6
  state: VoiceRecorderState;
7
- /** Accumulated RMS amplitude history. `null` before recording starts. */
8
- waveformData: Float32Array | null;
7
+ /** Stable ref to the live `AnalyserNode` during recording; `.current` is `null` when idle. */
8
+ analyserNodeRef: RefObject<AnalyserNode | null>;
9
+ /** Elapsed recording time in whole seconds. */
10
+ elapsedSeconds: number;
9
11
  /** Error message in `error` state; `null` otherwise. */
10
12
  errorMessage: string | null;
11
- /** Called when the user clicks the red mic button to stop recording. */
13
+ /** Called when the user clicks the stop button to finish recording. */
12
14
  onStop: () => void;
13
- /** Called when the user clicks the checkmark to confirm, or retry after an error. */
14
- onConfirm: () => void;
15
- /** Called when the user clicks the X to discard the recording or cancel uploading. */
15
+ /** Called when the user clicks the X to discard the recording. */
16
16
  onDiscard: () => void;
17
- /** Accessible label for the stop-recording mic button. Defaults to `'Stop recording'`. */
17
+ /** Accessible label for the stop-recording button. Defaults to `'Stop recording'`. */
18
18
  stopLabel?: string;
19
- /** Accessible label for the confirm / retry button. Defaults to `'Send voice message'`. */
20
- confirmLabel?: string;
21
19
  /** Accessible label for the discard / cancel button. Defaults to `'Discard recording'`. */
22
20
  discardLabel?: string;
23
- /** Accessible label for the uploading progress indicator. Defaults to `'Uploading…'`. */
24
- uploadingLabel?: string;
21
+ /** Accessible label for the recording timer region. Defaults to `'Recording time'`. */
22
+ timerLabel?: string;
25
23
  /** CSS custom properties forwarded from the parent (e.g. `--ci-bg`, `--ci-border`). */
26
24
  style?: CSSProperties;
27
25
  /** Extra class names applied to the root element. */
28
26
  className?: string;
29
27
  }
30
- /**
31
- * Renders the voice recording bar: waveform canvas, state-based controls,
32
- * and an error text for the `error` state. Replaces the `Input` component
33
- * while voice state is not `idle`.
34
- */
28
+ /** Voice recording bar: live timer, scrolling waveform, stop and discard controls. */
35
29
  export declare const VoiceBar: FC<VoiceBarProps>;
36
30
  //# sourceMappingURL=VoiceBar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"VoiceBar.d.ts","sourceRoot":"","sources":["../../../src/components/VoiceBar/VoiceBar.tsx"],"names":[],"mappings":"AAQA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,EAAE,EAIR,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AASlE,kDAAkD;AAClD,MAAM,WAAW,aAAa;IAC5B,qFAAqF;IACrF,KAAK,EAAE,kBAAkB,CAAC;IAC1B,yEAAyE;IACzE,YAAY,EAAE,YAAY,GAAG,IAAI,CAAC;IAClC,wDAAwD;IACxD,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,wEAAwE;IACxE,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,qFAAqF;IACrF,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,sFAAsF;IACtF,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,0FAA0F;IAC1F,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2FAA2F;IAC3F,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2FAA2F;IAC3F,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yFAAyF;IACzF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,uFAAuF;IACvF,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAyNtC,CAAC"}
1
+ {"version":3,"file":"VoiceBar.d.ts","sourceRoot":"","sources":["../../../src/components/VoiceBar/VoiceBar.tsx"],"names":[],"mappings":"AAQA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,EAAE,EACP,KAAK,SAAS,EAIf,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAYlE,kDAAkD;AAClD,MAAM,WAAW,aAAa;IAC5B,qFAAqF;IACrF,KAAK,EAAE,kBAAkB,CAAC;IAC1B,8FAA8F;IAC9F,eAAe,EAAE,SAAS,CAAC,YAAY,GAAG,IAAI,CAAC,CAAC;IAChD,+CAA+C;IAC/C,cAAc,EAAE,MAAM,CAAC;IACvB,wDAAwD;IACxD,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,uEAAuE;IACvE,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,kEAAkE;IAClE,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,sFAAsF;IACtF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2FAA2F;IAC3F,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uFAAuF;IACvF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uFAAuF;IACvF,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,sFAAsF;AACtF,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAqMtC,CAAC"}
@@ -51,11 +51,7 @@ export interface UseAttachmentsResult {
51
51
  /** `true` when any attachment is still uploading or in an error state. */
52
52
  hasBlockedAttachments: boolean;
53
53
  }
54
- /**
55
- * Manages all attachment state and side-effects for the `Input` component:
56
- * building, uploading, adding, removing, retrying, expanding, and consuming
57
- * pending drop/attachment queues.
58
- */
54
+ /** Manages attachment state and lifecycle for the `Input` component. */
59
55
  export declare const useAttachments: ({ initialAttachments, onUploadAttachment, onAttachmentsChange, validateAttachment, pendingDropFiles, onDropFilesConsumed, pendingAttachments, onPendingAttachmentsConsumed, onExpandPastedText, maximumAttachmentsAmount, baseAttachmentsAmount, onAttachmentsLimitExceeded, }: UseAttachmentsParams) => UseAttachmentsResult;
60
56
  export {};
61
57
  //# 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,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EACL,qBAAqB,EAGtB,MAAM,2BAA2B,CAAC;AAInC,sDAAsD;AACtD,UAAU,oBAAoB;IAC5B,sDAAsD;IACtD,kBAAkB,EAAE,UAAU,EAAE,CAAC;IACjC,uFAAuF;IACvF,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACjE,mDAAmD;IACnD,mBAAmB,CAAC,EAAE,CAAC,WAAW,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC;IAC1D;;;OAGG;IACH,kBAAkB,CAAC,EAAE,CACnB,UAAU,EAAE,UAAU,KACnB,qBAAqB,GAAG,SAAS,CAAC;IACvC,yDAAyD;IACzD,gBAAgB,EAAE,IAAI,EAAE,CAAC;IACzB,0DAA0D;IAC1D,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC,4EAA4E;IAC5E,kBAAkB,EAAE,UAAU,EAAE,CAAC;IACjC,4DAA4D;IAC5D,4BAA4B,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1C;;;OAGG;IACH,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,oFAAoF;IACpF,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,iFAAiF;IACjF,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,0EAA0E;IAC1E,0BAA0B,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACrE;AAED,uDAAuD;AACvD,MAAM,WA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AA0E;IAC1E,qBAAqB,EAAE,OAAO,CAAC;CAChC;AAED,wEAAwE;AACxE,eAAO,MAAM,cAAc,GAAI,gRAa5B,oBAAoB,KAAG,oBAwRzB,CAAC"}
@@ -1,6 +1,3 @@
1
- /**
2
- * Shared behavior for bottom-sheet overlays: closes the sheet on `Escape`
3
- * and locks body scrolling while the sheet is open. No-op while closed.
4
- */
1
+ /** Handles Escape-to-close and body-scroll-locking for a bottom-sheet overlay. */
5
2
  export declare const useBottomSheet: (isOpen: boolean, onClose: () => void) => void;
6
3
  //# sourceMappingURL=useBottomSheet.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useBottomSheet.d.ts","sourceRoot":"","sources":["../../src/hooks/useBottomSheet.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,OAAO,EAAE,SAAS,MAAM,IAAI,KAAG,IAiBrE,CAAC"}
1
+ {"version":3,"file":"useBottomSheet.d.ts","sourceRoot":"","sources":["../../src/hooks/useBottomSheet.ts"],"names":[],"mappings":"AAEA,kFAAkF;AAClF,eAAO,MAAM,cAAc,GAAI,QAAQ,OAAO,EAAE,SAAS,MAAM,IAAI,KAAG,IAiBrE,CAAC"}
@@ -4,22 +4,13 @@ export interface DelayedUnmountState {
4
4
  shouldRender: boolean;
5
5
  /** Whether the element is currently playing its exit animation. */
6
6
  isExiting: boolean;
7
- /**
8
- * Increments every time the element (re)appears. Pass as the rendered
9
- * element's `key` so React remounts it on a fresh DOM node instead of
10
- * toggling `isExiting` in place — relying on a CSS `animation-name` change
11
- * to restart cleanly mid-animation is exactly the kind of transition that
12
- * can drop a stray unstyled frame in some browsers, e.g. if visibility is
13
- * toggled back to `true` while the exit animation is still playing.
14
- */
7
+ /** Monotonically increasing counter that increments every time the element transitions from hidden to visible. */
15
8
  instanceKey: number;
16
9
  }
17
10
  /**
18
11
  * Keeps a conditionally-rendered element mounted for `exitDurationMs` after
19
- * `isVisible` turns `false`, so a CSS exit animation can play before the
20
- * caller actually removes it from the tree. `isVisible` turning back to
21
- * `true` mid-exit cancels the pending unmount and bumps `instanceKey` so the
22
- * caller remounts fresh rather than resuming the same DOM node.
12
+ * `isVisible` turns `false`, so a CSS exit animation can play to completion.
13
+ * Cancels the pending unmount if `isVisible` turns `true` again mid-exit.
23
14
  */
24
15
  export declare const useDelayedUnmount: (isVisible: boolean, exitDurationMs: number) => DelayedUnmountState;
25
16
  //# sourceMappingURL=useDelayedUnmount.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDelayedUnmount.d.ts","sourceRoot":"","sources":["../../src/hooks/useDelayedUnmount.ts"],"names":[],"mappings":"AAEA,iDAAiD;AACjD,MAAM,WAAW,mBAAmB;IAClC,mFAAmF;IACnF,YAAY,EAAE,OAAO,CAAC;IACtB,mEAAmE;IACnE,SAAS,EAAE,OAAO,CAAC;IACnB;;;;;;;OAOG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,GAC5B,WAAW,OAAO,EAClB,gBAAgB,MAAM,KACrB,mBAyBF,CAAC"}
1
+ {"version":3,"file":"useDelayedUnmount.d.ts","sourceRoot":"","sources":["../../src/hooks/useDelayedUnmount.ts"],"names":[],"mappings":"AAEA,iDAAiD;AACjD,MAAM,WAAW,mBAAmB;IAClC,mFAAmF;IACnF,YAAY,EAAE,OAAO,CAAC;IACtB,mEAAmE;IACnE,SAAS,EAAE,OAAO,CAAC;IACnB,kHAAkH;IAClH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAC5B,WAAW,OAAO,EAClB,gBAAgB,MAAM,KACrB,mBAyBF,CAAC"}
@@ -1,15 +1,4 @@
1
- /**
2
- * Manages keyboard-driven Up/Down navigation through a list of previously
3
- * sent messages from a chat input textarea.
4
- *
5
- * The hook tracks the current history index (-1 = draft mode) and saves the
6
- * unsent draft when the user first enters history mode. The returned object
7
- * reference is stable across renders so it does not cause unnecessary
8
- * re-renders when passed as a dependency.
9
- *
10
- * @param messageHistory - Ordered list of previously sent message strings
11
- * (oldest first). Pass `undefined` or an empty array to disable navigation.
12
- */
1
+ /** Manages keyboard-driven Up/Down navigation through a list of previously sent messages from a chat input textarea. */
13
2
  export declare const useInputHistoryNavigation: (messageHistory: readonly string[] | undefined) => {
14
3
  navigate: (direction: "up" | "down", currentValue: string, cursorPos: number) => string | null;
15
4
  notifyChange: () => void;