@algolia/satellite 2.3.0-rc.1 → 2.3.0-rc.10

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 (192) hide show
  1. package/dist/cjs/Actions/Button/PolymorphicButton.js +5 -5
  2. package/dist/cjs/Actions/Button/PolymorphicIconButton.js +2 -2
  3. package/dist/cjs/Actions/Button/styles.d.ts +1 -0
  4. package/dist/cjs/Actions/Button/styles.js +15 -10
  5. package/dist/cjs/Actions/ButtonLink/ButtonLink.d.ts +2 -0
  6. package/dist/cjs/Actions/ButtonLink/ButtonLink.js +4 -2
  7. package/dist/cjs/Actions/SegmentedControl/SegmentedControl.js +3 -2
  8. package/dist/cjs/Actions/SegmentedControl/SegmentedControlOption.js +6 -3
  9. package/dist/cjs/Actions/ToggleButton/ToggleButtonBase.js +3 -3
  10. package/dist/cjs/Actions/ToggleGroup/ToggleGroup.d.ts +13 -14
  11. package/dist/cjs/Chat/ChatContextAccordion/ChatContextAccordion.d.ts +23 -0
  12. package/dist/cjs/{Layout/Chat → Chat}/ChatContextAccordion/ChatContextAccordion.js +9 -2
  13. package/dist/cjs/{Layout/Chat → Chat}/ChatContextAccordion/ChatContextAccordion.styles.d.ts +20 -1
  14. package/dist/cjs/{Layout/Chat → Chat}/ChatContextAccordion/ChatContextAccordion.styles.js +3 -3
  15. package/dist/cjs/{Layout/Chat → Chat}/ChatMessage/ChatMessage.d.ts +80 -3
  16. package/dist/cjs/{Layout/Chat → Chat}/ChatMessage/ChatMessage.js +14 -5
  17. package/dist/{esm/Layout/Chat/ChatMessageError/ChatMessageError.styles.d.ts → cjs/Chat/ChatMessage/ChatMessage.styles.d.ts} +34 -40
  18. package/dist/cjs/{Layout/Chat → Chat}/ChatMessage/ChatMessage.styles.js +20 -14
  19. package/dist/{esm/Layout → cjs}/Chat/ChatMessageError/ChatMessageError.d.ts +7 -2
  20. package/dist/cjs/{Layout/Chat → Chat}/ChatMessageError/ChatMessageError.js +9 -4
  21. package/dist/cjs/Chat/ChatMessageError/ChatMessageError.styles.d.ts +253 -0
  22. package/dist/cjs/{Layout/Chat → Chat}/ChatMessageError/ChatMessageError.styles.js +2 -2
  23. package/dist/cjs/{Layout/Chat → Chat}/ChatMessageLoader/ChatMessageLoader.d.ts +6 -3
  24. package/dist/cjs/{Layout/Chat → Chat}/ChatMessageLoader/ChatMessageLoader.js +9 -4
  25. package/dist/{esm/Layout → cjs}/Chat/ChatMessageLoader/ChatMessageLoader.styles.d.ts +89 -9
  26. package/dist/cjs/{Layout/Chat → Chat}/ChatMessageLoader/ChatMessageLoader.styles.js +3 -3
  27. package/dist/cjs/Chat/ChatMessages/ChatMessages.d.ts +141 -0
  28. package/dist/cjs/{Layout/Chat → Chat}/ChatMessages/ChatMessages.js +64 -23
  29. package/dist/cjs/{Layout/Chat → Chat}/ChatMessages/ChatMessages.styles.d.ts +27 -1
  30. package/dist/cjs/{Layout/Chat → Chat}/ChatMessages/ChatMessages.styles.js +2 -2
  31. package/dist/cjs/Chat/ChatMessages/useLastMessageHeight.d.ts +14 -0
  32. package/dist/cjs/{Layout/Chat → Chat}/ChatMessages/useLastMessageHeight.js +21 -14
  33. package/dist/{esm/Layout → cjs}/Chat/ChatPrompt/ChatPrompt.d.ts +34 -12
  34. package/dist/cjs/{Layout/Chat → Chat}/ChatPrompt/ChatPrompt.js +46 -19
  35. package/dist/cjs/Chat/ChatPrompt/ChatPrompt.styles.d.ts +63 -0
  36. package/dist/cjs/{Layout/Chat → Chat}/ChatPrompt/ChatPrompt.styles.js +11 -4
  37. package/dist/cjs/Chat/ChatPrompt/useFocusTyping.d.ts +30 -0
  38. package/dist/cjs/Chat/ChatPrompt/useFocusTyping.js +65 -0
  39. package/dist/cjs/{Layout/Chat → Chat}/ChatPrompt/useTypewriter.d.ts +9 -0
  40. package/dist/cjs/{Layout/Chat → Chat}/ChatPrompt/useTypewriter.js +9 -0
  41. package/dist/cjs/Fields/Checkbox/Checkbox.d.ts +2 -2
  42. package/dist/cjs/Fields/Checkbox/Checkbox.js +2 -2
  43. package/dist/cjs/Fields/Dropzone/Dropzone.js +1 -1
  44. package/dist/cjs/Fields/Form/stories/Complex.js +123 -50
  45. package/dist/cjs/Fields/Input/Input.js +10 -13
  46. package/dist/cjs/Fields/RadioGroup/RadioButton.js +9 -2
  47. package/dist/cjs/Fields/RadioGroup/RadioButton.tailwind.js +1 -1
  48. package/dist/cjs/Fields/RadioGroup/RadioGroupContext.d.ts +2 -0
  49. package/dist/cjs/Fields/RadioGroup/RadioGroupItem.js +1 -1
  50. package/dist/cjs/Fields/Select/Select.tailwind.js +4 -3
  51. package/dist/cjs/Fields/SelectableCard/SelectableCard.d.ts +35 -0
  52. package/dist/cjs/Fields/SelectableCard/SelectableCard.js +105 -0
  53. package/dist/cjs/Fields/SelectableCard/SelectableCardContext.d.ts +13 -0
  54. package/dist/cjs/Fields/SelectableCard/SelectableCardContext.js +15 -0
  55. package/dist/cjs/Fields/SelectableCard/SelectableCardGroup.d.ts +13 -0
  56. package/dist/cjs/Fields/SelectableCard/SelectableCardGroup.js +55 -0
  57. package/dist/cjs/Fields/SelectableCard/index.d.ts +2 -0
  58. package/dist/cjs/Fields/SelectableCard/index.js +27 -0
  59. package/dist/cjs/Fields/Switch/Switch.js +1 -1
  60. package/dist/cjs/Fields/TextAreaAutoSize/TextAreaAutoSize.d.ts +12 -4
  61. package/dist/cjs/Fields/TextAreaAutoSize/TextAreaAutoSize.styles.d.ts +13 -1
  62. package/dist/cjs/Fields/index.d.ts +1 -0
  63. package/dist/cjs/Fields/index.js +11 -0
  64. package/dist/cjs/Helpers/ShimmerText/ShimmerText.tailwind.js +1 -1
  65. package/dist/cjs/Helpers/utilities/focusable.tailwind.js +1 -1
  66. package/dist/cjs/Layout/index.d.ts +0 -1
  67. package/dist/cjs/Layout/index.js +0 -11
  68. package/dist/cjs/Navigation/Link/Link.d.ts +10 -0
  69. package/dist/cjs/Navigation/Link/Link.js +4 -2
  70. package/dist/cjs/Satellite/locale.d.ts +3 -3
  71. package/dist/cjs/index.d.ts +1 -0
  72. package/dist/cjs/index.js +12 -0
  73. package/dist/cjs/styles/helpers/tv.d.ts +5 -1
  74. package/dist/cjs/utils/isCssPropertySupported.d.ts +1 -1
  75. package/dist/esm/Actions/Button/PolymorphicButton.js +6 -6
  76. package/dist/esm/Actions/Button/PolymorphicIconButton.js +2 -2
  77. package/dist/esm/Actions/Button/styles.d.ts +1 -0
  78. package/dist/esm/Actions/Button/styles.js +14 -9
  79. package/dist/esm/Actions/ButtonLink/ButtonLink.d.ts +2 -0
  80. package/dist/esm/Actions/ButtonLink/ButtonLink.js +4 -2
  81. package/dist/esm/Actions/SegmentedControl/SegmentedControl.js +3 -2
  82. package/dist/esm/Actions/SegmentedControl/SegmentedControlOption.js +6 -3
  83. package/dist/esm/Actions/ToggleButton/ToggleButtonBase.js +4 -4
  84. package/dist/esm/Actions/ToggleGroup/ToggleGroup.d.ts +13 -14
  85. package/dist/esm/Chat/ChatContextAccordion/ChatContextAccordion.d.ts +23 -0
  86. package/dist/esm/{Layout/Chat → Chat}/ChatContextAccordion/ChatContextAccordion.js +9 -2
  87. package/dist/esm/{Layout/Chat → Chat}/ChatContextAccordion/ChatContextAccordion.styles.d.ts +20 -1
  88. package/dist/esm/{Layout/Chat → Chat}/ChatContextAccordion/ChatContextAccordion.styles.js +3 -3
  89. package/dist/esm/{Layout/Chat → Chat}/ChatMessage/ChatMessage.d.ts +80 -3
  90. package/dist/esm/{Layout/Chat → Chat}/ChatMessage/ChatMessage.js +14 -5
  91. package/dist/{cjs/Layout/Chat/ChatMessageError/ChatMessageError.styles.d.ts → esm/Chat/ChatMessage/ChatMessage.styles.d.ts} +34 -40
  92. package/dist/esm/{Layout/Chat → Chat}/ChatMessage/ChatMessage.styles.js +20 -14
  93. package/dist/{cjs/Layout → esm}/Chat/ChatMessageError/ChatMessageError.d.ts +7 -2
  94. package/dist/esm/{Layout/Chat → Chat}/ChatMessageError/ChatMessageError.js +8 -3
  95. package/dist/esm/Chat/ChatMessageError/ChatMessageError.styles.d.ts +253 -0
  96. package/dist/esm/{Layout/Chat → Chat}/ChatMessageError/ChatMessageError.styles.js +2 -2
  97. package/dist/esm/{Layout/Chat → Chat}/ChatMessageLoader/ChatMessageLoader.d.ts +6 -3
  98. package/dist/esm/{Layout/Chat → Chat}/ChatMessageLoader/ChatMessageLoader.js +9 -4
  99. package/dist/{cjs/Layout → esm}/Chat/ChatMessageLoader/ChatMessageLoader.styles.d.ts +89 -9
  100. package/dist/esm/{Layout/Chat → Chat}/ChatMessageLoader/ChatMessageLoader.styles.js +3 -3
  101. package/dist/esm/Chat/ChatMessages/ChatMessages.d.ts +141 -0
  102. package/dist/esm/{Layout/Chat → Chat}/ChatMessages/ChatMessages.js +64 -25
  103. package/dist/esm/{Layout/Chat → Chat}/ChatMessages/ChatMessages.styles.d.ts +27 -1
  104. package/dist/esm/{Layout/Chat → Chat}/ChatMessages/ChatMessages.styles.js +2 -2
  105. package/dist/esm/Chat/ChatMessages/useLastMessageHeight.d.ts +14 -0
  106. package/dist/esm/{Layout/Chat → Chat}/ChatMessages/useLastMessageHeight.js +22 -15
  107. package/dist/{cjs/Layout → esm}/Chat/ChatPrompt/ChatPrompt.d.ts +34 -12
  108. package/dist/esm/{Layout/Chat → Chat}/ChatPrompt/ChatPrompt.js +47 -19
  109. package/dist/esm/Chat/ChatPrompt/ChatPrompt.styles.d.ts +63 -0
  110. package/dist/esm/{Layout/Chat → Chat}/ChatPrompt/ChatPrompt.styles.js +11 -4
  111. package/dist/esm/Chat/ChatPrompt/useFocusTyping.d.ts +30 -0
  112. package/dist/esm/Chat/ChatPrompt/useFocusTyping.js +59 -0
  113. package/dist/esm/{Layout/Chat → Chat}/ChatPrompt/useTypewriter.d.ts +9 -0
  114. package/dist/esm/{Layout/Chat → Chat}/ChatPrompt/useTypewriter.js +9 -0
  115. package/dist/esm/Fields/Checkbox/Checkbox.d.ts +2 -2
  116. package/dist/esm/Fields/Checkbox/Checkbox.js +2 -2
  117. package/dist/esm/Fields/Dropzone/Dropzone.js +1 -1
  118. package/dist/esm/Fields/Form/stories/Complex.js +123 -50
  119. package/dist/esm/Fields/Input/Input.js +10 -13
  120. package/dist/esm/Fields/RadioGroup/RadioButton.js +10 -3
  121. package/dist/esm/Fields/RadioGroup/RadioButton.tailwind.js +1 -1
  122. package/dist/esm/Fields/RadioGroup/RadioGroupContext.d.ts +2 -0
  123. package/dist/esm/Fields/RadioGroup/RadioGroupItem.js +1 -1
  124. package/dist/esm/Fields/Select/Select.tailwind.js +4 -3
  125. package/dist/esm/Fields/SelectableCard/SelectableCard.d.ts +35 -0
  126. package/dist/esm/Fields/SelectableCard/SelectableCard.js +100 -0
  127. package/dist/esm/Fields/SelectableCard/SelectableCardContext.d.ts +13 -0
  128. package/dist/esm/Fields/SelectableCard/SelectableCardContext.js +9 -0
  129. package/dist/esm/Fields/SelectableCard/SelectableCardGroup.d.ts +13 -0
  130. package/dist/esm/Fields/SelectableCard/SelectableCardGroup.js +48 -0
  131. package/dist/esm/Fields/SelectableCard/index.d.ts +2 -0
  132. package/dist/esm/Fields/SelectableCard/index.js +2 -0
  133. package/dist/esm/Fields/Switch/Switch.js +1 -1
  134. package/dist/esm/Fields/TextAreaAutoSize/TextAreaAutoSize.d.ts +12 -4
  135. package/dist/esm/Fields/TextAreaAutoSize/TextAreaAutoSize.styles.d.ts +13 -1
  136. package/dist/esm/Fields/index.d.ts +1 -0
  137. package/dist/esm/Fields/index.js +1 -0
  138. package/dist/esm/Helpers/ShimmerText/ShimmerText.tailwind.js +1 -1
  139. package/dist/esm/Helpers/utilities/focusable.tailwind.js +1 -1
  140. package/dist/esm/Layout/index.d.ts +0 -1
  141. package/dist/esm/Layout/index.js +0 -1
  142. package/dist/esm/Navigation/Link/Link.d.ts +10 -0
  143. package/dist/esm/Navigation/Link/Link.js +4 -2
  144. package/dist/esm/Satellite/locale.d.ts +3 -3
  145. package/dist/esm/index.d.ts +1 -0
  146. package/dist/esm/index.js +1 -0
  147. package/dist/esm/styles/helpers/tv.d.ts +5 -1
  148. package/dist/esm/utils/isCssPropertySupported.d.ts +1 -1
  149. package/dist/satellite.min.css +1 -1
  150. package/package.json +4 -4
  151. package/dist/cjs/Layout/Chat/ChatContextAccordion/ChatContextAccordion.d.ts +0 -8
  152. package/dist/cjs/Layout/Chat/ChatMessage/ChatMessage.styles.d.ts +0 -100
  153. package/dist/cjs/Layout/Chat/ChatMessages/ChatMessages.d.ts +0 -42
  154. package/dist/cjs/Layout/Chat/ChatMessages/useLastMessageHeight.d.ts +0 -10
  155. package/dist/cjs/Layout/Chat/ChatPrompt/ChatPrompt.styles.d.ts +0 -61
  156. package/dist/esm/Layout/Chat/ChatContextAccordion/ChatContextAccordion.d.ts +0 -8
  157. package/dist/esm/Layout/Chat/ChatMessage/ChatMessage.styles.d.ts +0 -100
  158. package/dist/esm/Layout/Chat/ChatMessages/ChatMessages.d.ts +0 -42
  159. package/dist/esm/Layout/Chat/ChatMessages/useLastMessageHeight.d.ts +0 -10
  160. package/dist/esm/Layout/Chat/ChatPrompt/ChatPrompt.styles.d.ts +0 -61
  161. /package/dist/cjs/{Layout/Chat → Chat}/ChatContextAccordion/index.d.ts +0 -0
  162. /package/dist/cjs/{Layout/Chat → Chat}/ChatContextAccordion/index.js +0 -0
  163. /package/dist/cjs/{Layout/Chat → Chat}/ChatMessage/index.d.ts +0 -0
  164. /package/dist/cjs/{Layout/Chat → Chat}/ChatMessage/index.js +0 -0
  165. /package/dist/cjs/{Layout/Chat → Chat}/ChatMessageError/index.d.ts +0 -0
  166. /package/dist/cjs/{Layout/Chat → Chat}/ChatMessageError/index.js +0 -0
  167. /package/dist/cjs/{Layout/Chat → Chat}/ChatMessageLoader/index.d.ts +0 -0
  168. /package/dist/cjs/{Layout/Chat → Chat}/ChatMessageLoader/index.js +0 -0
  169. /package/dist/cjs/{Layout/Chat → Chat}/ChatMessages/index.d.ts +0 -0
  170. /package/dist/cjs/{Layout/Chat → Chat}/ChatMessages/index.js +0 -0
  171. /package/dist/cjs/{Layout/Chat → Chat}/ChatPrompt/index.d.ts +0 -0
  172. /package/dist/cjs/{Layout/Chat → Chat}/ChatPrompt/index.js +0 -0
  173. /package/dist/cjs/{Layout/Chat → Chat}/index.d.ts +0 -0
  174. /package/dist/cjs/{Layout/Chat → Chat}/index.js +0 -0
  175. /package/dist/cjs/{Layout/Chat → Chat}/types.d.ts +0 -0
  176. /package/dist/cjs/{Layout/Chat → Chat}/types.js +0 -0
  177. /package/dist/esm/{Layout/Chat → Chat}/ChatContextAccordion/index.d.ts +0 -0
  178. /package/dist/esm/{Layout/Chat → Chat}/ChatContextAccordion/index.js +0 -0
  179. /package/dist/esm/{Layout/Chat → Chat}/ChatMessage/index.d.ts +0 -0
  180. /package/dist/esm/{Layout/Chat → Chat}/ChatMessage/index.js +0 -0
  181. /package/dist/esm/{Layout/Chat → Chat}/ChatMessageError/index.d.ts +0 -0
  182. /package/dist/esm/{Layout/Chat → Chat}/ChatMessageError/index.js +0 -0
  183. /package/dist/esm/{Layout/Chat → Chat}/ChatMessageLoader/index.d.ts +0 -0
  184. /package/dist/esm/{Layout/Chat → Chat}/ChatMessageLoader/index.js +0 -0
  185. /package/dist/esm/{Layout/Chat → Chat}/ChatMessages/index.d.ts +0 -0
  186. /package/dist/esm/{Layout/Chat → Chat}/ChatMessages/index.js +0 -0
  187. /package/dist/esm/{Layout/Chat → Chat}/ChatPrompt/index.d.ts +0 -0
  188. /package/dist/esm/{Layout/Chat → Chat}/ChatPrompt/index.js +0 -0
  189. /package/dist/esm/{Layout/Chat → Chat}/index.d.ts +0 -0
  190. /package/dist/esm/{Layout/Chat → Chat}/index.js +0 -0
  191. /package/dist/esm/{Layout/Chat → Chat}/types.d.ts +0 -0
  192. /package/dist/esm/{Layout/Chat → Chat}/types.js +0 -0
@@ -1,100 +0,0 @@
1
- export declare const chatMessageStyles: import("tailwind-variants").TVReturnType<{
2
- variant: {
3
- neutral: {
4
- message: string;
5
- };
6
- subtle: {
7
- message: string;
8
- };
9
- };
10
- side: {
11
- left: {
12
- container: string;
13
- };
14
- right: {
15
- container: string;
16
- };
17
- };
18
- leading: {
19
- true: string;
20
- };
21
- actions: {
22
- true: string;
23
- };
24
- autoHideActions: {
25
- true: string;
26
- };
27
- }, {
28
- base: string;
29
- container: string;
30
- leading: string;
31
- content: string;
32
- message: string;
33
- actions: string;
34
- }, undefined, {
35
- variant: {
36
- neutral: {
37
- message: string;
38
- };
39
- subtle: {
40
- message: string;
41
- };
42
- };
43
- side: {
44
- left: {
45
- container: string;
46
- };
47
- right: {
48
- container: string;
49
- };
50
- };
51
- leading: {
52
- true: string;
53
- };
54
- actions: {
55
- true: string;
56
- };
57
- autoHideActions: {
58
- true: string;
59
- };
60
- }, {
61
- base: string;
62
- container: string;
63
- leading: string;
64
- content: string;
65
- message: string;
66
- actions: string;
67
- }, import("tailwind-variants").TVReturnType<{
68
- variant: {
69
- neutral: {
70
- message: string;
71
- };
72
- subtle: {
73
- message: string;
74
- };
75
- };
76
- side: {
77
- left: {
78
- container: string;
79
- };
80
- right: {
81
- container: string;
82
- };
83
- };
84
- leading: {
85
- true: string;
86
- };
87
- actions: {
88
- true: string;
89
- };
90
- autoHideActions: {
91
- true: string;
92
- };
93
- }, {
94
- base: string;
95
- container: string;
96
- leading: string;
97
- content: string;
98
- message: string;
99
- actions: string;
100
- }, undefined, unknown, unknown, undefined>>;
@@ -1,42 +0,0 @@
1
- import type { HTMLAttributes, ReactElement, ReactNode, Ref } from "react";
2
- import type { ChatMessageProps } from "../../../Layout/Chat/ChatMessage";
3
- import type { ChatMessageErrorProps } from "../../../Layout/Chat/ChatMessageError";
4
- import type { ChatMessageLoaderProps } from "../../../Layout/Chat/ChatMessageLoader";
5
- import type { ChatMessageBase, ChatStatus } from "../../../Layout/Chat/types";
6
- export declare type ChatMessageLocale = {
7
- scrollToBottomText?: string;
8
- };
9
- export declare type ChatMessagesProps<Message extends ChatMessageBase = ChatMessageBase> = Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
10
- messages: Message[];
11
- userMessageProps?: Omit<ChatMessageProps<Message>, "content">;
12
- assistantMessageProps?: Omit<ChatMessageProps<Message>, "content">;
13
- loaderProps?: ChatMessageLoaderProps;
14
- errorProps?: Omit<ChatMessageErrorProps, "onReload">;
15
- renderMessage?: (message: Message) => ReactNode;
16
- renderLoader?: ReactNode;
17
- renderError?: ReactNode;
18
- status?: ChatStatus;
19
- onReload?: () => void;
20
- hideScrollToBottom?: boolean;
21
- scrollClassName?: string;
22
- contentClassName?: string;
23
- locale?: ChatMessageLocale;
24
- };
25
- export declare const ChatMessages: <Message extends ChatMessageBase = ChatMessageBase>(props: Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
26
- messages: Message[];
27
- userMessageProps?: Omit<ChatMessageProps<Message>, "content"> | undefined;
28
- assistantMessageProps?: Omit<ChatMessageProps<Message>, "content"> | undefined;
29
- loaderProps?: ChatMessageLoaderProps | undefined;
30
- errorProps?: Omit<ChatMessageErrorProps, "onReload"> | undefined;
31
- renderMessage?: ((message: Message) => ReactNode) | undefined;
32
- renderLoader?: ReactNode;
33
- renderError?: ReactNode;
34
- status?: ChatStatus | undefined;
35
- onReload?: (() => void) | undefined;
36
- hideScrollToBottom?: boolean | undefined;
37
- scrollClassName?: string | undefined;
38
- contentClassName?: string | undefined;
39
- locale?: ChatMessageLocale | undefined;
40
- } & {
41
- ref?: Ref<HTMLDivElement> | undefined;
42
- }) => ReactElement | null;
@@ -1,10 +0,0 @@
1
- import type { RefObject } from "react";
2
- /**
3
- * React hook to compute the “fill” height below the last user message,
4
- * based on the scroll container’s height, the last user‐message element’s height,
5
- * and any CSS gap/padding offsets.
6
- */
7
- export declare function useLastMessageHeight(scrollRef: RefObject<HTMLElement>, messages: Array<{
8
- id: string;
9
- role: string;
10
- }>, lastUserMessageEl: HTMLElement | undefined, lastMessageSubmitted: boolean, spacingOffset?: number): number;
@@ -1,61 +0,0 @@
1
- export declare const chatPromptStyles: import("tailwind-variants").TVReturnType<{
2
- [key: string]: {
3
- [key: string]: import("tailwind-merge").ClassNameValue | {
4
- base?: import("tailwind-merge").ClassNameValue;
5
- body?: import("tailwind-merge").ClassNameValue;
6
- footer?: import("tailwind-merge").ClassNameValue;
7
- header?: import("tailwind-merge").ClassNameValue;
8
- textarea?: import("tailwind-merge").ClassNameValue;
9
- submit?: import("tailwind-merge").ClassNameValue;
10
- actions?: import("tailwind-merge").ClassNameValue;
11
- };
12
- };
13
- } | {
14
- [x: string]: {
15
- [x: string]: import("tailwind-merge").ClassNameValue | {
16
- base?: import("tailwind-merge").ClassNameValue;
17
- body?: import("tailwind-merge").ClassNameValue;
18
- footer?: import("tailwind-merge").ClassNameValue;
19
- header?: import("tailwind-merge").ClassNameValue;
20
- textarea?: import("tailwind-merge").ClassNameValue;
21
- submit?: import("tailwind-merge").ClassNameValue;
22
- actions?: import("tailwind-merge").ClassNameValue;
23
- };
24
- };
25
- } | {}, {
26
- base: string;
27
- header: string;
28
- body: string;
29
- textarea: string;
30
- actions: string;
31
- submit: string;
32
- footer: string;
33
- }, undefined, {
34
- [key: string]: {
35
- [key: string]: import("tailwind-merge").ClassNameValue | {
36
- base?: import("tailwind-merge").ClassNameValue;
37
- body?: import("tailwind-merge").ClassNameValue;
38
- footer?: import("tailwind-merge").ClassNameValue;
39
- header?: import("tailwind-merge").ClassNameValue;
40
- textarea?: import("tailwind-merge").ClassNameValue;
41
- submit?: import("tailwind-merge").ClassNameValue;
42
- actions?: import("tailwind-merge").ClassNameValue;
43
- };
44
- };
45
- } | {}, {
46
- base: string;
47
- header: string;
48
- body: string;
49
- textarea: string;
50
- actions: string;
51
- submit: string;
52
- footer: string;
53
- }, import("tailwind-variants").TVReturnType<unknown, {
54
- base: string;
55
- header: string;
56
- body: string;
57
- textarea: string;
58
- actions: string;
59
- submit: string;
60
- footer: string;
61
- }, undefined, unknown, unknown, undefined>>;
@@ -1,8 +0,0 @@
1
- import type { HTMLAttributes, ReactNode } from "react";
2
- import type { AccordionProps } from "../../../Actions";
3
- import type { IconComponentType } from "../../../Icons";
4
- export declare type ChatContextAccordionProps = HTMLAttributes<HTMLDivElement> & AccordionProps & {
5
- header: ReactNode;
6
- icon?: IconComponentType;
7
- };
8
- export declare const ChatContextAccordion: ({ header, icon, children, className, ...props }: ChatContextAccordionProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,100 +0,0 @@
1
- export declare const chatMessageStyles: import("tailwind-variants").TVReturnType<{
2
- variant: {
3
- neutral: {
4
- message: string;
5
- };
6
- subtle: {
7
- message: string;
8
- };
9
- };
10
- side: {
11
- left: {
12
- container: string;
13
- };
14
- right: {
15
- container: string;
16
- };
17
- };
18
- leading: {
19
- true: string;
20
- };
21
- actions: {
22
- true: string;
23
- };
24
- autoHideActions: {
25
- true: string;
26
- };
27
- }, {
28
- base: string;
29
- container: string;
30
- leading: string;
31
- content: string;
32
- message: string;
33
- actions: string;
34
- }, undefined, {
35
- variant: {
36
- neutral: {
37
- message: string;
38
- };
39
- subtle: {
40
- message: string;
41
- };
42
- };
43
- side: {
44
- left: {
45
- container: string;
46
- };
47
- right: {
48
- container: string;
49
- };
50
- };
51
- leading: {
52
- true: string;
53
- };
54
- actions: {
55
- true: string;
56
- };
57
- autoHideActions: {
58
- true: string;
59
- };
60
- }, {
61
- base: string;
62
- container: string;
63
- leading: string;
64
- content: string;
65
- message: string;
66
- actions: string;
67
- }, import("tailwind-variants").TVReturnType<{
68
- variant: {
69
- neutral: {
70
- message: string;
71
- };
72
- subtle: {
73
- message: string;
74
- };
75
- };
76
- side: {
77
- left: {
78
- container: string;
79
- };
80
- right: {
81
- container: string;
82
- };
83
- };
84
- leading: {
85
- true: string;
86
- };
87
- actions: {
88
- true: string;
89
- };
90
- autoHideActions: {
91
- true: string;
92
- };
93
- }, {
94
- base: string;
95
- container: string;
96
- leading: string;
97
- content: string;
98
- message: string;
99
- actions: string;
100
- }, undefined, unknown, unknown, undefined>>;
@@ -1,42 +0,0 @@
1
- import type { HTMLAttributes, ReactElement, ReactNode, Ref } from "react";
2
- import type { ChatMessageProps } from "../../../Layout/Chat/ChatMessage";
3
- import type { ChatMessageErrorProps } from "../../../Layout/Chat/ChatMessageError";
4
- import type { ChatMessageLoaderProps } from "../../../Layout/Chat/ChatMessageLoader";
5
- import type { ChatMessageBase, ChatStatus } from "../../../Layout/Chat/types";
6
- export declare type ChatMessageLocale = {
7
- scrollToBottomText?: string;
8
- };
9
- export declare type ChatMessagesProps<Message extends ChatMessageBase = ChatMessageBase> = Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
10
- messages: Message[];
11
- userMessageProps?: Omit<ChatMessageProps<Message>, "content">;
12
- assistantMessageProps?: Omit<ChatMessageProps<Message>, "content">;
13
- loaderProps?: ChatMessageLoaderProps;
14
- errorProps?: Omit<ChatMessageErrorProps, "onReload">;
15
- renderMessage?: (message: Message) => ReactNode;
16
- renderLoader?: ReactNode;
17
- renderError?: ReactNode;
18
- status?: ChatStatus;
19
- onReload?: () => void;
20
- hideScrollToBottom?: boolean;
21
- scrollClassName?: string;
22
- contentClassName?: string;
23
- locale?: ChatMessageLocale;
24
- };
25
- export declare const ChatMessages: <Message extends ChatMessageBase = ChatMessageBase>(props: Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
26
- messages: Message[];
27
- userMessageProps?: Omit<ChatMessageProps<Message>, "content"> | undefined;
28
- assistantMessageProps?: Omit<ChatMessageProps<Message>, "content"> | undefined;
29
- loaderProps?: ChatMessageLoaderProps | undefined;
30
- errorProps?: Omit<ChatMessageErrorProps, "onReload"> | undefined;
31
- renderMessage?: ((message: Message) => ReactNode) | undefined;
32
- renderLoader?: ReactNode;
33
- renderError?: ReactNode;
34
- status?: ChatStatus | undefined;
35
- onReload?: (() => void) | undefined;
36
- hideScrollToBottom?: boolean | undefined;
37
- scrollClassName?: string | undefined;
38
- contentClassName?: string | undefined;
39
- locale?: ChatMessageLocale | undefined;
40
- } & {
41
- ref?: Ref<HTMLDivElement> | undefined;
42
- }) => ReactElement | null;
@@ -1,10 +0,0 @@
1
- import type { RefObject } from "react";
2
- /**
3
- * React hook to compute the “fill” height below the last user message,
4
- * based on the scroll container’s height, the last user‐message element’s height,
5
- * and any CSS gap/padding offsets.
6
- */
7
- export declare function useLastMessageHeight(scrollRef: RefObject<HTMLElement>, messages: Array<{
8
- id: string;
9
- role: string;
10
- }>, lastUserMessageEl: HTMLElement | undefined, lastMessageSubmitted: boolean, spacingOffset?: number): number;
@@ -1,61 +0,0 @@
1
- export declare const chatPromptStyles: import("tailwind-variants").TVReturnType<{
2
- [key: string]: {
3
- [key: string]: import("tailwind-merge").ClassNameValue | {
4
- base?: import("tailwind-merge").ClassNameValue;
5
- body?: import("tailwind-merge").ClassNameValue;
6
- footer?: import("tailwind-merge").ClassNameValue;
7
- header?: import("tailwind-merge").ClassNameValue;
8
- textarea?: import("tailwind-merge").ClassNameValue;
9
- submit?: import("tailwind-merge").ClassNameValue;
10
- actions?: import("tailwind-merge").ClassNameValue;
11
- };
12
- };
13
- } | {
14
- [x: string]: {
15
- [x: string]: import("tailwind-merge").ClassNameValue | {
16
- base?: import("tailwind-merge").ClassNameValue;
17
- body?: import("tailwind-merge").ClassNameValue;
18
- footer?: import("tailwind-merge").ClassNameValue;
19
- header?: import("tailwind-merge").ClassNameValue;
20
- textarea?: import("tailwind-merge").ClassNameValue;
21
- submit?: import("tailwind-merge").ClassNameValue;
22
- actions?: import("tailwind-merge").ClassNameValue;
23
- };
24
- };
25
- } | {}, {
26
- base: string;
27
- header: string;
28
- body: string;
29
- textarea: string;
30
- actions: string;
31
- submit: string;
32
- footer: string;
33
- }, undefined, {
34
- [key: string]: {
35
- [key: string]: import("tailwind-merge").ClassNameValue | {
36
- base?: import("tailwind-merge").ClassNameValue;
37
- body?: import("tailwind-merge").ClassNameValue;
38
- footer?: import("tailwind-merge").ClassNameValue;
39
- header?: import("tailwind-merge").ClassNameValue;
40
- textarea?: import("tailwind-merge").ClassNameValue;
41
- submit?: import("tailwind-merge").ClassNameValue;
42
- actions?: import("tailwind-merge").ClassNameValue;
43
- };
44
- };
45
- } | {}, {
46
- base: string;
47
- header: string;
48
- body: string;
49
- textarea: string;
50
- actions: string;
51
- submit: string;
52
- footer: string;
53
- }, import("tailwind-variants").TVReturnType<unknown, {
54
- base: string;
55
- header: string;
56
- body: string;
57
- textarea: string;
58
- actions: string;
59
- submit: string;
60
- footer: string;
61
- }, undefined, unknown, unknown, undefined>>;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes