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

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 (210) 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/MarkdownContent/MarkdownContent.d.ts +15 -0
  65. package/dist/cjs/Helpers/MarkdownContent/MarkdownContent.js +29 -0
  66. package/dist/cjs/Helpers/MarkdownContent/MarkdownContent.tailwind.d.ts +5 -0
  67. package/dist/cjs/Helpers/MarkdownContent/MarkdownContent.tailwind.js +138 -0
  68. package/dist/cjs/Helpers/MarkdownContent/index.d.ts +1 -0
  69. package/dist/cjs/Helpers/MarkdownContent/index.js +16 -0
  70. package/dist/cjs/Helpers/ShimmerText/ShimmerText.tailwind.js +1 -1
  71. package/dist/cjs/Helpers/index.d.ts +1 -0
  72. package/dist/cjs/Helpers/index.js +11 -0
  73. package/dist/cjs/Helpers/utilities/focusable.tailwind.js +1 -1
  74. package/dist/cjs/Layout/index.d.ts +0 -1
  75. package/dist/cjs/Layout/index.js +0 -11
  76. package/dist/cjs/Navigation/Link/Link.d.ts +10 -0
  77. package/dist/cjs/Navigation/Link/Link.js +4 -2
  78. package/dist/cjs/Satellite/locale.d.ts +3 -3
  79. package/dist/cjs/index.d.ts +1 -0
  80. package/dist/cjs/index.js +12 -0
  81. package/dist/cjs/styles/helpers/tv.d.ts +5 -1
  82. package/dist/cjs/styles/tailwind.config.js +1 -1
  83. package/dist/cjs/utils/isCssPropertySupported.d.ts +1 -1
  84. package/dist/esm/Actions/Button/PolymorphicButton.js +6 -6
  85. package/dist/esm/Actions/Button/PolymorphicIconButton.js +2 -2
  86. package/dist/esm/Actions/Button/styles.d.ts +1 -0
  87. package/dist/esm/Actions/Button/styles.js +14 -9
  88. package/dist/esm/Actions/ButtonLink/ButtonLink.d.ts +2 -0
  89. package/dist/esm/Actions/ButtonLink/ButtonLink.js +4 -2
  90. package/dist/esm/Actions/SegmentedControl/SegmentedControl.js +3 -2
  91. package/dist/esm/Actions/SegmentedControl/SegmentedControlOption.js +6 -3
  92. package/dist/esm/Actions/ToggleButton/ToggleButtonBase.js +4 -4
  93. package/dist/esm/Actions/ToggleGroup/ToggleGroup.d.ts +13 -14
  94. package/dist/esm/Chat/ChatContextAccordion/ChatContextAccordion.d.ts +23 -0
  95. package/dist/esm/{Layout/Chat → Chat}/ChatContextAccordion/ChatContextAccordion.js +9 -2
  96. package/dist/esm/{Layout/Chat → Chat}/ChatContextAccordion/ChatContextAccordion.styles.d.ts +20 -1
  97. package/dist/esm/{Layout/Chat → Chat}/ChatContextAccordion/ChatContextAccordion.styles.js +3 -3
  98. package/dist/esm/{Layout/Chat → Chat}/ChatMessage/ChatMessage.d.ts +80 -3
  99. package/dist/esm/{Layout/Chat → Chat}/ChatMessage/ChatMessage.js +14 -5
  100. package/dist/{cjs/Layout/Chat/ChatMessageError/ChatMessageError.styles.d.ts → esm/Chat/ChatMessage/ChatMessage.styles.d.ts} +34 -40
  101. package/dist/esm/{Layout/Chat → Chat}/ChatMessage/ChatMessage.styles.js +20 -14
  102. package/dist/{cjs/Layout → esm}/Chat/ChatMessageError/ChatMessageError.d.ts +7 -2
  103. package/dist/esm/{Layout/Chat → Chat}/ChatMessageError/ChatMessageError.js +8 -3
  104. package/dist/esm/Chat/ChatMessageError/ChatMessageError.styles.d.ts +253 -0
  105. package/dist/esm/{Layout/Chat → Chat}/ChatMessageError/ChatMessageError.styles.js +2 -2
  106. package/dist/esm/{Layout/Chat → Chat}/ChatMessageLoader/ChatMessageLoader.d.ts +6 -3
  107. package/dist/esm/{Layout/Chat → Chat}/ChatMessageLoader/ChatMessageLoader.js +9 -4
  108. package/dist/{cjs/Layout → esm}/Chat/ChatMessageLoader/ChatMessageLoader.styles.d.ts +89 -9
  109. package/dist/esm/{Layout/Chat → Chat}/ChatMessageLoader/ChatMessageLoader.styles.js +3 -3
  110. package/dist/esm/Chat/ChatMessages/ChatMessages.d.ts +141 -0
  111. package/dist/esm/{Layout/Chat → Chat}/ChatMessages/ChatMessages.js +64 -25
  112. package/dist/esm/{Layout/Chat → Chat}/ChatMessages/ChatMessages.styles.d.ts +27 -1
  113. package/dist/esm/{Layout/Chat → Chat}/ChatMessages/ChatMessages.styles.js +2 -2
  114. package/dist/esm/Chat/ChatMessages/useLastMessageHeight.d.ts +14 -0
  115. package/dist/esm/{Layout/Chat → Chat}/ChatMessages/useLastMessageHeight.js +22 -15
  116. package/dist/{cjs/Layout → esm}/Chat/ChatPrompt/ChatPrompt.d.ts +34 -12
  117. package/dist/esm/{Layout/Chat → Chat}/ChatPrompt/ChatPrompt.js +47 -19
  118. package/dist/esm/Chat/ChatPrompt/ChatPrompt.styles.d.ts +63 -0
  119. package/dist/esm/{Layout/Chat → Chat}/ChatPrompt/ChatPrompt.styles.js +11 -4
  120. package/dist/esm/Chat/ChatPrompt/useFocusTyping.d.ts +30 -0
  121. package/dist/esm/Chat/ChatPrompt/useFocusTyping.js +59 -0
  122. package/dist/esm/{Layout/Chat → Chat}/ChatPrompt/useTypewriter.d.ts +9 -0
  123. package/dist/esm/{Layout/Chat → Chat}/ChatPrompt/useTypewriter.js +9 -0
  124. package/dist/esm/Fields/Checkbox/Checkbox.d.ts +2 -2
  125. package/dist/esm/Fields/Checkbox/Checkbox.js +2 -2
  126. package/dist/esm/Fields/Dropzone/Dropzone.js +1 -1
  127. package/dist/esm/Fields/Form/stories/Complex.js +123 -50
  128. package/dist/esm/Fields/Input/Input.js +10 -13
  129. package/dist/esm/Fields/RadioGroup/RadioButton.js +10 -3
  130. package/dist/esm/Fields/RadioGroup/RadioButton.tailwind.js +1 -1
  131. package/dist/esm/Fields/RadioGroup/RadioGroupContext.d.ts +2 -0
  132. package/dist/esm/Fields/RadioGroup/RadioGroupItem.js +1 -1
  133. package/dist/esm/Fields/Select/Select.tailwind.js +4 -3
  134. package/dist/esm/Fields/SelectableCard/SelectableCard.d.ts +35 -0
  135. package/dist/esm/Fields/SelectableCard/SelectableCard.js +100 -0
  136. package/dist/esm/Fields/SelectableCard/SelectableCardContext.d.ts +13 -0
  137. package/dist/esm/Fields/SelectableCard/SelectableCardContext.js +9 -0
  138. package/dist/esm/Fields/SelectableCard/SelectableCardGroup.d.ts +13 -0
  139. package/dist/esm/Fields/SelectableCard/SelectableCardGroup.js +48 -0
  140. package/dist/esm/Fields/SelectableCard/index.d.ts +2 -0
  141. package/dist/esm/Fields/SelectableCard/index.js +2 -0
  142. package/dist/esm/Fields/Switch/Switch.js +1 -1
  143. package/dist/esm/Fields/TextAreaAutoSize/TextAreaAutoSize.d.ts +12 -4
  144. package/dist/esm/Fields/TextAreaAutoSize/TextAreaAutoSize.styles.d.ts +13 -1
  145. package/dist/esm/Fields/index.d.ts +1 -0
  146. package/dist/esm/Fields/index.js +1 -0
  147. package/dist/esm/Helpers/MarkdownContent/MarkdownContent.d.ts +15 -0
  148. package/dist/esm/Helpers/MarkdownContent/MarkdownContent.js +22 -0
  149. package/dist/esm/Helpers/MarkdownContent/MarkdownContent.tailwind.d.ts +5 -0
  150. package/dist/esm/Helpers/MarkdownContent/MarkdownContent.tailwind.js +138 -0
  151. package/dist/esm/Helpers/MarkdownContent/index.d.ts +1 -0
  152. package/dist/esm/Helpers/MarkdownContent/index.js +1 -0
  153. package/dist/esm/Helpers/ShimmerText/ShimmerText.tailwind.js +1 -1
  154. package/dist/esm/Helpers/index.d.ts +1 -0
  155. package/dist/esm/Helpers/index.js +2 -1
  156. package/dist/esm/Helpers/utilities/focusable.tailwind.js +1 -1
  157. package/dist/esm/Layout/index.d.ts +0 -1
  158. package/dist/esm/Layout/index.js +0 -1
  159. package/dist/esm/Navigation/Link/Link.d.ts +10 -0
  160. package/dist/esm/Navigation/Link/Link.js +4 -2
  161. package/dist/esm/Satellite/locale.d.ts +3 -3
  162. package/dist/esm/index.d.ts +1 -0
  163. package/dist/esm/index.js +1 -0
  164. package/dist/esm/styles/helpers/tv.d.ts +5 -1
  165. package/dist/esm/styles/tailwind.config.js +1 -1
  166. package/dist/esm/utils/isCssPropertySupported.d.ts +1 -1
  167. package/dist/satellite.min.css +1 -1
  168. package/package.json +5 -4
  169. package/dist/cjs/Layout/Chat/ChatContextAccordion/ChatContextAccordion.d.ts +0 -8
  170. package/dist/cjs/Layout/Chat/ChatMessage/ChatMessage.styles.d.ts +0 -100
  171. package/dist/cjs/Layout/Chat/ChatMessages/ChatMessages.d.ts +0 -42
  172. package/dist/cjs/Layout/Chat/ChatMessages/useLastMessageHeight.d.ts +0 -10
  173. package/dist/cjs/Layout/Chat/ChatPrompt/ChatPrompt.styles.d.ts +0 -61
  174. package/dist/esm/Layout/Chat/ChatContextAccordion/ChatContextAccordion.d.ts +0 -8
  175. package/dist/esm/Layout/Chat/ChatMessage/ChatMessage.styles.d.ts +0 -100
  176. package/dist/esm/Layout/Chat/ChatMessages/ChatMessages.d.ts +0 -42
  177. package/dist/esm/Layout/Chat/ChatMessages/useLastMessageHeight.d.ts +0 -10
  178. package/dist/esm/Layout/Chat/ChatPrompt/ChatPrompt.styles.d.ts +0 -61
  179. /package/dist/cjs/{Layout/Chat → Chat}/ChatContextAccordion/index.d.ts +0 -0
  180. /package/dist/cjs/{Layout/Chat → Chat}/ChatContextAccordion/index.js +0 -0
  181. /package/dist/cjs/{Layout/Chat → Chat}/ChatMessage/index.d.ts +0 -0
  182. /package/dist/cjs/{Layout/Chat → Chat}/ChatMessage/index.js +0 -0
  183. /package/dist/cjs/{Layout/Chat → Chat}/ChatMessageError/index.d.ts +0 -0
  184. /package/dist/cjs/{Layout/Chat → Chat}/ChatMessageError/index.js +0 -0
  185. /package/dist/cjs/{Layout/Chat → Chat}/ChatMessageLoader/index.d.ts +0 -0
  186. /package/dist/cjs/{Layout/Chat → Chat}/ChatMessageLoader/index.js +0 -0
  187. /package/dist/cjs/{Layout/Chat → Chat}/ChatMessages/index.d.ts +0 -0
  188. /package/dist/cjs/{Layout/Chat → Chat}/ChatMessages/index.js +0 -0
  189. /package/dist/cjs/{Layout/Chat → Chat}/ChatPrompt/index.d.ts +0 -0
  190. /package/dist/cjs/{Layout/Chat → Chat}/ChatPrompt/index.js +0 -0
  191. /package/dist/cjs/{Layout/Chat → Chat}/index.d.ts +0 -0
  192. /package/dist/cjs/{Layout/Chat → Chat}/index.js +0 -0
  193. /package/dist/cjs/{Layout/Chat → Chat}/types.d.ts +0 -0
  194. /package/dist/cjs/{Layout/Chat → Chat}/types.js +0 -0
  195. /package/dist/esm/{Layout/Chat → Chat}/ChatContextAccordion/index.d.ts +0 -0
  196. /package/dist/esm/{Layout/Chat → Chat}/ChatContextAccordion/index.js +0 -0
  197. /package/dist/esm/{Layout/Chat → Chat}/ChatMessage/index.d.ts +0 -0
  198. /package/dist/esm/{Layout/Chat → Chat}/ChatMessage/index.js +0 -0
  199. /package/dist/esm/{Layout/Chat → Chat}/ChatMessageError/index.d.ts +0 -0
  200. /package/dist/esm/{Layout/Chat → Chat}/ChatMessageError/index.js +0 -0
  201. /package/dist/esm/{Layout/Chat → Chat}/ChatMessageLoader/index.d.ts +0 -0
  202. /package/dist/esm/{Layout/Chat → Chat}/ChatMessageLoader/index.js +0 -0
  203. /package/dist/esm/{Layout/Chat → Chat}/ChatMessages/index.d.ts +0 -0
  204. /package/dist/esm/{Layout/Chat → Chat}/ChatMessages/index.js +0 -0
  205. /package/dist/esm/{Layout/Chat → Chat}/ChatPrompt/index.d.ts +0 -0
  206. /package/dist/esm/{Layout/Chat → Chat}/ChatPrompt/index.js +0 -0
  207. /package/dist/esm/{Layout/Chat → Chat}/index.d.ts +0 -0
  208. /package/dist/esm/{Layout/Chat → Chat}/index.js +0 -0
  209. /package/dist/esm/{Layout/Chat → Chat}/types.d.ts +0 -0
  210. /package/dist/esm/{Layout/Chat → Chat}/types.js +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@algolia/satellite",
3
- "version": "2.3.0-rc.1",
3
+ "version": "2.3.0-rc.11",
4
4
  "description": "Algolia design system React components",
5
5
  "sideEffects": false,
6
6
  "scripts": {
@@ -19,7 +19,7 @@
19
19
  "quality": "run-s test type-check lint",
20
20
  "lint": "eslint --rulesdir ./.eslint_rules/ 'src/**/*.{ts,tsx}'",
21
21
  "type-check": "tsc --noEmit",
22
- "test": "jest --config jest.config.ts --runInBand",
22
+ "test": "jest --config jest.config.ts --runInBand --coverage",
23
23
  "clean-reports": "rimraf .reports",
24
24
  "accessibility": "yarn build:storybook && yarn clean-reports && run-p -r serve:storybook test-storybook",
25
25
  "test-storybook": "wait-on tcp:6060 && test-storybook --url http://localhost:6060 --no-stories-json --maxWorkers=2 && yarn test-storybook-process-reports",
@@ -230,14 +230,15 @@
230
230
  "diacritics": "^1.3.0",
231
231
  "downshift": "^8",
232
232
  "lodash": "^4.17.21",
233
- "lucide-react": "^0.513.0",
233
+ "lucide-react": "^0.312.0",
234
+ "marked": "^16.2.0",
234
235
  "react-day-picker": "^8.0.7",
235
236
  "react-dropzone": "^11.7.1",
236
237
  "react-popper": "^2.2.5",
237
238
  "react-transition-group": "^4.4.5",
238
239
  "react-use": "^17.5.1",
239
240
  "spin-delay": "^2.0.1",
240
- "tailwind-variants": "^1.0.0",
241
+ "tailwind-variants": "^0.3.1",
241
242
  "tailwindcss": "^3.4.4",
242
243
  "use-stick-to-bottom": "^1.1.1"
243
244
  }
@@ -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>>;
@@ -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