@algolia/satellite 2.3.0-rc.5 → 2.3.0-rc.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Chat/ChatContextAccordion/ChatContextAccordion.d.ts +23 -0
- package/dist/cjs/{Layout/Chat → Chat}/ChatContextAccordion/ChatContextAccordion.js +9 -2
- package/dist/cjs/{Layout/Chat → Chat}/ChatContextAccordion/ChatContextAccordion.styles.d.ts +23 -4
- package/dist/cjs/{Layout/Chat → Chat}/ChatContextAccordion/ChatContextAccordion.styles.js +3 -3
- package/dist/cjs/{Layout/Chat → Chat}/ChatMessage/ChatMessage.d.ts +80 -3
- package/dist/cjs/{Layout/Chat → Chat}/ChatMessage/ChatMessage.js +14 -5
- package/dist/{esm/Layout/Chat/ChatMessageError/ChatMessageError.styles.d.ts → cjs/Chat/ChatMessage/ChatMessage.styles.d.ts} +34 -40
- package/dist/cjs/{Layout/Chat → Chat}/ChatMessage/ChatMessage.styles.js +12 -12
- package/dist/{esm/Layout → cjs}/Chat/ChatMessageError/ChatMessageError.d.ts +7 -2
- package/dist/cjs/{Layout/Chat → Chat}/ChatMessageError/ChatMessageError.js +8 -3
- package/dist/cjs/Chat/ChatMessageError/ChatMessageError.styles.d.ts +253 -0
- package/dist/cjs/{Layout/Chat → Chat}/ChatMessageError/ChatMessageError.styles.js +2 -2
- package/dist/cjs/{Layout/Chat → Chat}/ChatMessageLoader/ChatMessageLoader.d.ts +6 -3
- package/dist/cjs/{Layout/Chat → Chat}/ChatMessageLoader/ChatMessageLoader.js +9 -4
- package/dist/{esm/Layout → cjs}/Chat/ChatMessageLoader/ChatMessageLoader.styles.d.ts +89 -9
- package/dist/cjs/{Layout/Chat → Chat}/ChatMessageLoader/ChatMessageLoader.styles.js +2 -2
- package/dist/cjs/Chat/ChatMessages/ChatMessages.d.ts +141 -0
- package/dist/cjs/{Layout/Chat → Chat}/ChatMessages/ChatMessages.js +18 -7
- package/dist/cjs/{Layout/Chat → Chat}/ChatMessages/ChatMessages.styles.d.ts +27 -1
- package/dist/cjs/{Layout/Chat → Chat}/ChatMessages/ChatMessages.styles.js +2 -2
- package/dist/cjs/{Layout/Chat → Chat}/ChatMessages/useLastMessageHeight.d.ts +7 -1
- package/dist/cjs/{Layout/Chat → Chat}/ChatMessages/useLastMessageHeight.js +6 -0
- package/dist/cjs/{Layout/Chat → Chat}/ChatPrompt/ChatPrompt.d.ts +16 -2
- package/dist/cjs/{Layout/Chat → Chat}/ChatPrompt/ChatPrompt.js +32 -20
- package/dist/cjs/Chat/ChatPrompt/ChatPrompt.styles.d.ts +63 -0
- package/dist/cjs/{Layout/Chat → Chat}/ChatPrompt/ChatPrompt.styles.js +10 -3
- package/dist/cjs/Chat/ChatPrompt/useFocusTyping.d.ts +30 -0
- package/dist/cjs/{Layout/Chat → Chat}/ChatPrompt/useFocusTyping.js +19 -14
- package/dist/cjs/{Layout/Chat → Chat}/ChatPrompt/useTypewriter.d.ts +9 -0
- package/dist/cjs/{Layout/Chat → Chat}/ChatPrompt/useTypewriter.js +9 -0
- package/dist/cjs/Fields/Checkbox/Checkbox.d.ts +2 -2
- package/dist/cjs/Fields/Checkbox/Checkbox.js +2 -2
- package/dist/cjs/Fields/Dropzone/Dropzone.js +1 -1
- package/dist/cjs/Fields/Form/stories/Complex.js +123 -50
- package/dist/cjs/Fields/RadioGroup/RadioButton.js +9 -2
- package/dist/cjs/Fields/RadioGroup/RadioButton.tailwind.js +1 -1
- package/dist/cjs/Fields/RadioGroup/RadioGroupItem.js +1 -1
- package/dist/cjs/Fields/SelectableCard/SelectableCard.d.ts +35 -0
- package/dist/cjs/Fields/SelectableCard/SelectableCard.js +105 -0
- package/dist/cjs/Fields/SelectableCard/SelectableCardContext.d.ts +13 -0
- package/dist/cjs/Fields/SelectableCard/SelectableCardContext.js +15 -0
- package/dist/cjs/Fields/SelectableCard/SelectableCardGroup.d.ts +13 -0
- package/dist/cjs/Fields/SelectableCard/SelectableCardGroup.js +55 -0
- package/dist/cjs/Fields/SelectableCard/index.d.ts +2 -0
- package/dist/cjs/Fields/SelectableCard/index.js +27 -0
- package/dist/cjs/Fields/Switch/Switch.js +1 -1
- package/dist/cjs/Fields/TextAreaAutoSize/TextAreaAutoSize.d.ts +12 -4
- package/dist/cjs/Fields/TextAreaAutoSize/TextAreaAutoSize.styles.d.ts +13 -1
- package/dist/cjs/Fields/index.d.ts +1 -0
- package/dist/cjs/Fields/index.js +11 -0
- package/dist/cjs/Helpers/utilities/focusable.tailwind.js +1 -1
- package/dist/cjs/Layout/index.d.ts +0 -1
- package/dist/cjs/Layout/index.js +0 -11
- package/dist/cjs/Satellite/locale.d.ts +3 -3
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +12 -0
- package/dist/cjs/styles/helpers/tv.d.ts +5 -1
- package/dist/cjs/utils/isCssPropertySupported.d.ts +1 -1
- package/dist/esm/Chat/ChatContextAccordion/ChatContextAccordion.d.ts +23 -0
- package/dist/esm/{Layout/Chat → Chat}/ChatContextAccordion/ChatContextAccordion.js +9 -2
- package/dist/esm/{Layout/Chat → Chat}/ChatContextAccordion/ChatContextAccordion.styles.d.ts +23 -4
- package/dist/esm/{Layout/Chat → Chat}/ChatContextAccordion/ChatContextAccordion.styles.js +3 -3
- package/dist/esm/{Layout/Chat → Chat}/ChatMessage/ChatMessage.d.ts +80 -3
- package/dist/esm/{Layout/Chat → Chat}/ChatMessage/ChatMessage.js +14 -5
- package/dist/{cjs/Layout/Chat/ChatMessageError/ChatMessageError.styles.d.ts → esm/Chat/ChatMessage/ChatMessage.styles.d.ts} +34 -40
- package/dist/esm/{Layout/Chat → Chat}/ChatMessage/ChatMessage.styles.js +12 -12
- package/dist/{cjs/Layout → esm}/Chat/ChatMessageError/ChatMessageError.d.ts +7 -2
- package/dist/esm/{Layout/Chat → Chat}/ChatMessageError/ChatMessageError.js +8 -3
- package/dist/esm/Chat/ChatMessageError/ChatMessageError.styles.d.ts +253 -0
- package/dist/esm/{Layout/Chat → Chat}/ChatMessageError/ChatMessageError.styles.js +2 -2
- package/dist/esm/{Layout/Chat → Chat}/ChatMessageLoader/ChatMessageLoader.d.ts +6 -3
- package/dist/esm/{Layout/Chat → Chat}/ChatMessageLoader/ChatMessageLoader.js +9 -4
- package/dist/{cjs/Layout → esm}/Chat/ChatMessageLoader/ChatMessageLoader.styles.d.ts +89 -9
- package/dist/esm/{Layout/Chat → Chat}/ChatMessageLoader/ChatMessageLoader.styles.js +2 -2
- package/dist/esm/Chat/ChatMessages/ChatMessages.d.ts +141 -0
- package/dist/esm/{Layout/Chat → Chat}/ChatMessages/ChatMessages.js +18 -7
- package/dist/esm/{Layout/Chat → Chat}/ChatMessages/ChatMessages.styles.d.ts +27 -1
- package/dist/esm/{Layout/Chat → Chat}/ChatMessages/ChatMessages.styles.js +2 -2
- package/dist/esm/{Layout/Chat → Chat}/ChatMessages/useLastMessageHeight.d.ts +7 -1
- package/dist/esm/{Layout/Chat → Chat}/ChatMessages/useLastMessageHeight.js +6 -0
- package/dist/esm/{Layout/Chat → Chat}/ChatPrompt/ChatPrompt.d.ts +16 -2
- package/dist/esm/{Layout/Chat → Chat}/ChatPrompt/ChatPrompt.js +33 -20
- package/dist/esm/Chat/ChatPrompt/ChatPrompt.styles.d.ts +63 -0
- package/dist/esm/{Layout/Chat → Chat}/ChatPrompt/ChatPrompt.styles.js +10 -3
- package/dist/esm/Chat/ChatPrompt/useFocusTyping.d.ts +30 -0
- package/dist/esm/{Layout/Chat → Chat}/ChatPrompt/useFocusTyping.js +19 -14
- package/dist/esm/{Layout/Chat → Chat}/ChatPrompt/useTypewriter.d.ts +9 -0
- package/dist/esm/{Layout/Chat → Chat}/ChatPrompt/useTypewriter.js +9 -0
- package/dist/esm/Fields/Checkbox/Checkbox.d.ts +2 -2
- package/dist/esm/Fields/Checkbox/Checkbox.js +2 -2
- package/dist/esm/Fields/Dropzone/Dropzone.js +1 -1
- package/dist/esm/Fields/Form/stories/Complex.js +123 -50
- package/dist/esm/Fields/RadioGroup/RadioButton.js +10 -3
- package/dist/esm/Fields/RadioGroup/RadioButton.tailwind.js +1 -1
- package/dist/esm/Fields/RadioGroup/RadioGroupItem.js +1 -1
- package/dist/esm/Fields/SelectableCard/SelectableCard.d.ts +35 -0
- package/dist/esm/Fields/SelectableCard/SelectableCard.js +100 -0
- package/dist/esm/Fields/SelectableCard/SelectableCardContext.d.ts +13 -0
- package/dist/esm/Fields/SelectableCard/SelectableCardContext.js +9 -0
- package/dist/esm/Fields/SelectableCard/SelectableCardGroup.d.ts +13 -0
- package/dist/esm/Fields/SelectableCard/SelectableCardGroup.js +48 -0
- package/dist/esm/Fields/SelectableCard/index.d.ts +2 -0
- package/dist/esm/Fields/SelectableCard/index.js +2 -0
- package/dist/esm/Fields/Switch/Switch.js +1 -1
- package/dist/esm/Fields/TextAreaAutoSize/TextAreaAutoSize.d.ts +12 -4
- package/dist/esm/Fields/TextAreaAutoSize/TextAreaAutoSize.styles.d.ts +13 -1
- package/dist/esm/Fields/index.d.ts +1 -0
- package/dist/esm/Fields/index.js +1 -0
- package/dist/esm/Helpers/utilities/focusable.tailwind.js +1 -1
- package/dist/esm/Layout/index.d.ts +0 -1
- package/dist/esm/Layout/index.js +0 -1
- package/dist/esm/Satellite/locale.d.ts +3 -3
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/styles/helpers/tv.d.ts +5 -1
- package/dist/esm/utils/isCssPropertySupported.d.ts +1 -1
- package/dist/satellite.min.css +1 -1
- package/package.json +3 -3
- package/dist/cjs/Layout/Chat/ChatContextAccordion/ChatContextAccordion.d.ts +0 -8
- package/dist/cjs/Layout/Chat/ChatMessage/ChatMessage.styles.d.ts +0 -100
- package/dist/cjs/Layout/Chat/ChatMessages/ChatMessages.d.ts +0 -44
- package/dist/cjs/Layout/Chat/ChatPrompt/ChatPrompt.styles.d.ts +0 -61
- package/dist/cjs/Layout/Chat/ChatPrompt/useFocusTyping.d.ts +0 -12
- package/dist/esm/Layout/Chat/ChatContextAccordion/ChatContextAccordion.d.ts +0 -8
- package/dist/esm/Layout/Chat/ChatMessage/ChatMessage.styles.d.ts +0 -100
- package/dist/esm/Layout/Chat/ChatMessages/ChatMessages.d.ts +0 -44
- package/dist/esm/Layout/Chat/ChatPrompt/ChatPrompt.styles.d.ts +0 -61
- package/dist/esm/Layout/Chat/ChatPrompt/useFocusTyping.d.ts +0 -12
- /package/dist/cjs/{Layout/Chat → Chat}/ChatContextAccordion/index.d.ts +0 -0
- /package/dist/cjs/{Layout/Chat → Chat}/ChatContextAccordion/index.js +0 -0
- /package/dist/cjs/{Layout/Chat → Chat}/ChatMessage/index.d.ts +0 -0
- /package/dist/cjs/{Layout/Chat → Chat}/ChatMessage/index.js +0 -0
- /package/dist/cjs/{Layout/Chat → Chat}/ChatMessageError/index.d.ts +0 -0
- /package/dist/cjs/{Layout/Chat → Chat}/ChatMessageError/index.js +0 -0
- /package/dist/cjs/{Layout/Chat → Chat}/ChatMessageLoader/index.d.ts +0 -0
- /package/dist/cjs/{Layout/Chat → Chat}/ChatMessageLoader/index.js +0 -0
- /package/dist/cjs/{Layout/Chat → Chat}/ChatMessages/index.d.ts +0 -0
- /package/dist/cjs/{Layout/Chat → Chat}/ChatMessages/index.js +0 -0
- /package/dist/cjs/{Layout/Chat → Chat}/ChatPrompt/index.d.ts +0 -0
- /package/dist/cjs/{Layout/Chat → Chat}/ChatPrompt/index.js +0 -0
- /package/dist/cjs/{Layout/Chat → Chat}/index.d.ts +0 -0
- /package/dist/cjs/{Layout/Chat → Chat}/index.js +0 -0
- /package/dist/cjs/{Layout/Chat → Chat}/types.d.ts +0 -0
- /package/dist/cjs/{Layout/Chat → Chat}/types.js +0 -0
- /package/dist/esm/{Layout/Chat → Chat}/ChatContextAccordion/index.d.ts +0 -0
- /package/dist/esm/{Layout/Chat → Chat}/ChatContextAccordion/index.js +0 -0
- /package/dist/esm/{Layout/Chat → Chat}/ChatMessage/index.d.ts +0 -0
- /package/dist/esm/{Layout/Chat → Chat}/ChatMessage/index.js +0 -0
- /package/dist/esm/{Layout/Chat → Chat}/ChatMessageError/index.d.ts +0 -0
- /package/dist/esm/{Layout/Chat → Chat}/ChatMessageError/index.js +0 -0
- /package/dist/esm/{Layout/Chat → Chat}/ChatMessageLoader/index.d.ts +0 -0
- /package/dist/esm/{Layout/Chat → Chat}/ChatMessageLoader/index.js +0 -0
- /package/dist/esm/{Layout/Chat → Chat}/ChatMessages/index.d.ts +0 -0
- /package/dist/esm/{Layout/Chat → Chat}/ChatMessages/index.js +0 -0
- /package/dist/esm/{Layout/Chat → Chat}/ChatPrompt/index.d.ts +0 -0
- /package/dist/esm/{Layout/Chat → Chat}/ChatPrompt/index.js +0 -0
- /package/dist/esm/{Layout/Chat → Chat}/index.d.ts +0 -0
- /package/dist/esm/{Layout/Chat → Chat}/index.js +0 -0
- /package/dist/esm/{Layout/Chat → Chat}/types.d.ts +0 -0
- /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,44 +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
|
-
declare type ChatMessageWithoutContent<Message extends ChatMessageBase> = Omit<ChatMessageProps<Message>, "content">;
|
10
|
-
export declare type ChatMessagesProps<Message extends ChatMessageBase = ChatMessageBase> = Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
|
11
|
-
messages: Message[];
|
12
|
-
userMessageProps?: ChatMessageWithoutContent<Message> | ((message: Message) => ChatMessageWithoutContent<Message>);
|
13
|
-
assistantMessageProps?: ChatMessageWithoutContent<Message> | ((message: Message) => ChatMessageWithoutContent<Message>);
|
14
|
-
loaderProps?: ChatMessageLoaderProps;
|
15
|
-
errorProps?: Omit<ChatMessageErrorProps, "onReload">;
|
16
|
-
renderMessage?: (message: Message) => ReactNode;
|
17
|
-
renderLoader?: ReactNode;
|
18
|
-
renderError?: ReactNode;
|
19
|
-
status?: ChatStatus;
|
20
|
-
onReload?: () => void;
|
21
|
-
hideScrollToBottom?: boolean;
|
22
|
-
scrollClassName?: string;
|
23
|
-
contentClassName?: string;
|
24
|
-
locale?: ChatMessageLocale;
|
25
|
-
};
|
26
|
-
export declare const ChatMessages: <Message extends ChatMessageBase = ChatMessageBase>(props: Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
|
27
|
-
messages: Message[];
|
28
|
-
userMessageProps?: ChatMessageWithoutContent<Message> | ((message: Message) => ChatMessageWithoutContent<Message>) | undefined;
|
29
|
-
assistantMessageProps?: ChatMessageWithoutContent<Message> | ((message: Message) => ChatMessageWithoutContent<Message>) | undefined;
|
30
|
-
loaderProps?: ChatMessageLoaderProps | undefined;
|
31
|
-
errorProps?: Omit<ChatMessageErrorProps, "onReload"> | undefined;
|
32
|
-
renderMessage?: ((message: Message) => ReactNode) | undefined;
|
33
|
-
renderLoader?: ReactNode;
|
34
|
-
renderError?: ReactNode;
|
35
|
-
status?: ChatStatus | undefined;
|
36
|
-
onReload?: (() => void) | undefined;
|
37
|
-
hideScrollToBottom?: boolean | undefined;
|
38
|
-
scrollClassName?: string | undefined;
|
39
|
-
contentClassName?: string | undefined;
|
40
|
-
locale?: ChatMessageLocale | undefined;
|
41
|
-
} & {
|
42
|
-
ref?: Ref<HTMLDivElement> | undefined;
|
43
|
-
}) => ReactElement | null;
|
44
|
-
export {};
|
@@ -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,12 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
declare type Editable = HTMLTextAreaElement | HTMLInputElement | HTMLElement;
|
3
|
-
interface Options {
|
4
|
-
enabled?: boolean;
|
5
|
-
strictChars?: boolean;
|
6
|
-
}
|
7
|
-
/**
|
8
|
-
* Focus `editableRef` the moment the user types anywhere on the page,
|
9
|
-
* *unless* their cursor is already inside an editable control.
|
10
|
-
*/
|
11
|
-
export declare function useFocusOnTyping<E extends Editable = Editable>(editableRef: React.RefObject<E>, { enabled, strictChars }?: Options): void;
|
12
|
-
export {};
|
@@ -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,44 +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
|
-
declare type ChatMessageWithoutContent<Message extends ChatMessageBase> = Omit<ChatMessageProps<Message>, "content">;
|
10
|
-
export declare type ChatMessagesProps<Message extends ChatMessageBase = ChatMessageBase> = Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
|
11
|
-
messages: Message[];
|
12
|
-
userMessageProps?: ChatMessageWithoutContent<Message> | ((message: Message) => ChatMessageWithoutContent<Message>);
|
13
|
-
assistantMessageProps?: ChatMessageWithoutContent<Message> | ((message: Message) => ChatMessageWithoutContent<Message>);
|
14
|
-
loaderProps?: ChatMessageLoaderProps;
|
15
|
-
errorProps?: Omit<ChatMessageErrorProps, "onReload">;
|
16
|
-
renderMessage?: (message: Message) => ReactNode;
|
17
|
-
renderLoader?: ReactNode;
|
18
|
-
renderError?: ReactNode;
|
19
|
-
status?: ChatStatus;
|
20
|
-
onReload?: () => void;
|
21
|
-
hideScrollToBottom?: boolean;
|
22
|
-
scrollClassName?: string;
|
23
|
-
contentClassName?: string;
|
24
|
-
locale?: ChatMessageLocale;
|
25
|
-
};
|
26
|
-
export declare const ChatMessages: <Message extends ChatMessageBase = ChatMessageBase>(props: Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
|
27
|
-
messages: Message[];
|
28
|
-
userMessageProps?: ChatMessageWithoutContent<Message> | ((message: Message) => ChatMessageWithoutContent<Message>) | undefined;
|
29
|
-
assistantMessageProps?: ChatMessageWithoutContent<Message> | ((message: Message) => ChatMessageWithoutContent<Message>) | undefined;
|
30
|
-
loaderProps?: ChatMessageLoaderProps | undefined;
|
31
|
-
errorProps?: Omit<ChatMessageErrorProps, "onReload"> | undefined;
|
32
|
-
renderMessage?: ((message: Message) => ReactNode) | undefined;
|
33
|
-
renderLoader?: ReactNode;
|
34
|
-
renderError?: ReactNode;
|
35
|
-
status?: ChatStatus | undefined;
|
36
|
-
onReload?: (() => void) | undefined;
|
37
|
-
hideScrollToBottom?: boolean | undefined;
|
38
|
-
scrollClassName?: string | undefined;
|
39
|
-
contentClassName?: string | undefined;
|
40
|
-
locale?: ChatMessageLocale | undefined;
|
41
|
-
} & {
|
42
|
-
ref?: Ref<HTMLDivElement> | undefined;
|
43
|
-
}) => ReactElement | null;
|
44
|
-
export {};
|
@@ -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,12 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
declare type Editable = HTMLTextAreaElement | HTMLInputElement | HTMLElement;
|
3
|
-
interface Options {
|
4
|
-
enabled?: boolean;
|
5
|
-
strictChars?: boolean;
|
6
|
-
}
|
7
|
-
/**
|
8
|
-
* Focus `editableRef` the moment the user types anywhere on the page,
|
9
|
-
* *unless* their cursor is already inside an editable control.
|
10
|
-
*/
|
11
|
-
export declare function useFocusOnTyping<E extends Editable = Editable>(editableRef: React.RefObject<E>, { enabled, strictChars }?: Options): void;
|
12
|
-
export {};
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|