thub-embed 2.0.7 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +34 -0
- package/README.md +353 -151
- package/dist/components/Badge.d.ts +9 -9
- package/dist/components/Bot.d.ts +115 -115
- package/dist/components/FeedbackContentDialog.d.ts +9 -9
- package/dist/components/TypingBubble.d.ts +1 -1
- package/dist/components/avatars/Avatar.d.ts +3 -3
- package/dist/components/avatars/DefaultAvatar.d.ts +1 -1
- package/dist/components/bubbles/AgentReasoningBubble.d.ts +15 -15
- package/dist/components/bubbles/BotBubble.d.ts +26 -26
- package/dist/components/bubbles/FollowUpPromptBubble.d.ts +7 -7
- package/dist/components/bubbles/GuestBubble.d.ts +15 -15
- package/dist/components/bubbles/LeadCaptureBubble.d.ts +19 -19
- package/dist/components/bubbles/LoadingBubble.d.ts +1 -1
- package/dist/components/bubbles/SourceBubble.d.ts +7 -7
- package/dist/components/bubbles/StarterPromptBubble.d.ts +7 -7
- package/dist/components/buttons/AttachmentUploadButton.d.ts +10 -10
- package/dist/components/buttons/CancelButton.d.ts +9 -9
- package/dist/components/buttons/FeedbackButtons.d.ts +12 -12
- package/dist/components/buttons/ImageUploadButton.d.ts +10 -10
- package/dist/components/buttons/LeadCaptureButtons.d.ts +10 -10
- package/dist/components/buttons/RecordAudioButton.d.ts +10 -10
- package/dist/components/buttons/SendButton.d.ts +11 -11
- package/dist/components/icons/AddImageIcon.d.ts +2 -2
- package/dist/components/icons/AttachmentIcon.d.ts +2 -2
- package/dist/components/icons/CircleDotIcon.d.ts +2 -2
- package/dist/components/icons/ClipboardIcon.d.ts +2 -2
- package/dist/components/icons/DeleteIcon.d.ts +2 -2
- package/dist/components/icons/RecordIcon.d.ts +2 -2
- package/dist/components/icons/SendIcon.d.ts +2 -2
- package/dist/components/icons/SparklesIcon.d.ts +2 -2
- package/dist/components/icons/ThumbsDownIcon.d.ts +2 -2
- package/dist/components/icons/ThumbsUpIcon.d.ts +2 -2
- package/dist/components/icons/TickIcon.d.ts +1 -1
- package/dist/components/icons/TrashIcon.d.ts +2 -2
- package/dist/components/icons/XIcon.d.ts +4 -4
- package/dist/components/icons/index.d.ts +13 -13
- package/dist/components/index.d.ts +2 -2
- package/dist/components/inputs/textInput/components/FilePreview.d.ts +11 -11
- package/dist/components/inputs/textInput/components/ShortTextInput.d.ts +9 -9
- package/dist/components/inputs/textInput/components/TextInput.d.ts +27 -27
- package/dist/components/inputs/textInput/index.d.ts +2 -2
- package/dist/constants.d.ts +2 -2
- package/dist/features/bubble/components/Bubble.d.ts +4 -4
- package/dist/features/bubble/components/BubbleButton.d.ts +15 -15
- package/dist/features/bubble/components/Tooltip.d.ts +14 -14
- package/dist/features/bubble/components/index.d.ts +1 -1
- package/dist/features/bubble/index.d.ts +1 -1
- package/dist/features/bubble/types.d.ts +100 -100
- package/dist/features/full/components/Full.d.ts +6 -6
- package/dist/features/full/components/index.d.ts +1 -1
- package/dist/features/full/index.d.ts +1 -1
- package/dist/features/popup/components/DisclaimerPopup.d.ts +8 -8
- package/dist/features/popup/components/Popup.d.ts +7 -7
- package/dist/features/popup/components/index.d.ts +2 -2
- package/dist/features/popup/index.d.ts +1 -1
- package/dist/features/popup/types.d.ts +7 -7
- package/dist/index.d.ts +2 -2
- package/dist/queries/sendMessageQuery.d.ts +86 -86
- package/dist/register.d.ts +1 -1
- package/dist/utils/audioRecording.d.ts +20 -20
- package/dist/utils/chatInputHistory.d.ts +21 -21
- package/dist/utils/index.d.ts +22 -22
- package/dist/utils/isMobileSignal.d.ts +1 -1
- package/dist/web.d.ts +22 -22
- package/dist/web.js +1 -1
- package/dist/window.d.ts +29 -29
- package/package.json +13 -4
- package/server.js +394 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
-
export declare const AddImageIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
1
|
+
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
+
export declare const AddImageIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
3
3
|
//# sourceMappingURL=AddImageIcon.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
-
export declare const AttachmentIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
1
|
+
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
+
export declare const AttachmentIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
3
3
|
//# sourceMappingURL=AttachmentIcon.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
-
export declare const CircleDotIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
1
|
+
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
+
export declare const CircleDotIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
3
3
|
//# sourceMappingURL=CircleDotIcon.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
-
export declare const ClipboardIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
1
|
+
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
+
export declare const ClipboardIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
3
3
|
//# sourceMappingURL=ClipboardIcon.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
-
export declare const DeleteIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
1
|
+
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
+
export declare const DeleteIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
3
3
|
//# sourceMappingURL=DeleteIcon.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
-
export declare const RecordIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
1
|
+
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
+
export declare const RecordIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
3
3
|
//# sourceMappingURL=RecordIcon.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
-
export declare const SendIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
1
|
+
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
+
export declare const SendIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
3
3
|
//# sourceMappingURL=SendIcon.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
-
export declare const SparklesIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
1
|
+
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
+
export declare const SparklesIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
3
3
|
//# sourceMappingURL=SparklesIcon.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
-
export declare const ThumbsDownIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
1
|
+
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
+
export declare const ThumbsDownIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
3
3
|
//# sourceMappingURL=ThumbsDownIcon.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
-
export declare const ThumbsUpIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
1
|
+
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
+
export declare const ThumbsUpIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
3
3
|
//# sourceMappingURL=ThumbsUpIcon.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const TickIcon: () => import("solid-js").JSX.Element;
|
|
1
|
+
export declare const TickIcon: () => import("solid-js").JSX.Element;
|
|
2
2
|
//# sourceMappingURL=TickIcon.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
-
export declare const TrashIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
1
|
+
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
+
export declare const TrashIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
3
3
|
//# sourceMappingURL=TrashIcon.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
-
export declare const XIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement> & {
|
|
3
|
-
isCurrentColor?: boolean;
|
|
4
|
-
}) => JSX.Element;
|
|
1
|
+
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
+
export declare const XIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement> & {
|
|
3
|
+
isCurrentColor?: boolean;
|
|
4
|
+
}) => JSX.Element;
|
|
5
5
|
//# sourceMappingURL=XIcon.d.ts.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export * from './ClipboardIcon';
|
|
2
|
-
export * from './ThumbsDownIcon';
|
|
3
|
-
export * from './ThumbsUpIcon';
|
|
4
|
-
export * from './AddImageIcon';
|
|
5
|
-
export * from './CircleDotIcon';
|
|
6
|
-
export * from './DeleteIcon';
|
|
7
|
-
export * from './RecordIcon';
|
|
8
|
-
export * from './SendIcon';
|
|
9
|
-
export * from './TrashIcon';
|
|
10
|
-
export * from './XIcon';
|
|
11
|
-
export * from './TickIcon';
|
|
12
|
-
export * from './AttachmentIcon';
|
|
13
|
-
export * from './SparklesIcon';
|
|
1
|
+
export * from './ClipboardIcon';
|
|
2
|
+
export * from './ThumbsDownIcon';
|
|
3
|
+
export * from './ThumbsUpIcon';
|
|
4
|
+
export * from './AddImageIcon';
|
|
5
|
+
export * from './CircleDotIcon';
|
|
6
|
+
export * from './DeleteIcon';
|
|
7
|
+
export * from './RecordIcon';
|
|
8
|
+
export * from './SendIcon';
|
|
9
|
+
export * from './TrashIcon';
|
|
10
|
+
export * from './XIcon';
|
|
11
|
+
export * from './TickIcon';
|
|
12
|
+
export * from './AttachmentIcon';
|
|
13
|
+
export * from './SparklesIcon';
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './buttons/SendButton';
|
|
2
|
-
export * from './TypingBubble';
|
|
1
|
+
export * from './buttons/SendButton';
|
|
2
|
+
export * from './TypingBubble';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
type CardWithDeleteOverlayProps = {
|
|
2
|
-
item: {
|
|
3
|
-
name: string;
|
|
4
|
-
};
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
onDelete: (item: {
|
|
7
|
-
name: string;
|
|
8
|
-
}) => void;
|
|
9
|
-
};
|
|
10
|
-
export declare const FilePreview: (props: CardWithDeleteOverlayProps) => import("solid-js").JSX.Element;
|
|
11
|
-
export {};
|
|
1
|
+
type CardWithDeleteOverlayProps = {
|
|
2
|
+
item: {
|
|
3
|
+
name: string;
|
|
4
|
+
};
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
onDelete: (item: {
|
|
7
|
+
name: string;
|
|
8
|
+
}) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const FilePreview: (props: CardWithDeleteOverlayProps) => import("solid-js").JSX.Element;
|
|
11
|
+
export {};
|
|
12
12
|
//# sourceMappingURL=FilePreview.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
-
type ShortTextInputProps = {
|
|
3
|
-
ref: HTMLInputElement | HTMLTextAreaElement | undefined;
|
|
4
|
-
onInput: (value: string) => void;
|
|
5
|
-
fontSize?: number;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
} & Omit<JSX.TextareaHTMLAttributes<HTMLTextAreaElement>, 'onInput'>;
|
|
8
|
-
export declare const ShortTextInput: (props: ShortTextInputProps) => JSX.Element;
|
|
9
|
-
export {};
|
|
1
|
+
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
+
type ShortTextInputProps = {
|
|
3
|
+
ref: HTMLInputElement | HTMLTextAreaElement | undefined;
|
|
4
|
+
onInput: (value: string) => void;
|
|
5
|
+
fontSize?: number;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
} & Omit<JSX.TextareaHTMLAttributes<HTMLTextAreaElement>, 'onInput'>;
|
|
8
|
+
export declare const ShortTextInput: (props: ShortTextInputProps) => JSX.Element;
|
|
9
|
+
export {};
|
|
10
10
|
//# sourceMappingURL=ShortTextInput.d.ts.map
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { Setter } from 'solid-js';
|
|
2
|
-
import { FileEvent, UploadsConfig } from '@/components/Bot';
|
|
3
|
-
type TextInputProps = {
|
|
4
|
-
placeholder?: string;
|
|
5
|
-
backgroundColor?: string;
|
|
6
|
-
textColor?: string;
|
|
7
|
-
sendButtonColor?: string;
|
|
8
|
-
inputValue: string;
|
|
9
|
-
fontSize?: number;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
onSubmit: (value: string) => void;
|
|
12
|
-
onInputChange: (value: string) => void;
|
|
13
|
-
uploadsConfig?: Partial<UploadsConfig>;
|
|
14
|
-
isFullFileUpload?: boolean;
|
|
15
|
-
setPreviews: Setter<unknown[]>;
|
|
16
|
-
onMicrophoneClicked: () => void;
|
|
17
|
-
handleFileChange: (event: FileEvent<HTMLInputElement>) => void;
|
|
18
|
-
maxChars?: number;
|
|
19
|
-
maxCharsWarningMessage?: string;
|
|
20
|
-
autoFocus?: boolean;
|
|
21
|
-
sendMessageSound?: boolean;
|
|
22
|
-
sendSoundLocation?: string;
|
|
23
|
-
enableInputHistory?: boolean;
|
|
24
|
-
maxHistorySize?: number;
|
|
25
|
-
};
|
|
26
|
-
export declare const TextInput: (props: TextInputProps) => import("solid-js").JSX.Element;
|
|
27
|
-
export {};
|
|
1
|
+
import { Setter } from 'solid-js';
|
|
2
|
+
import { FileEvent, UploadsConfig } from '@/components/Bot';
|
|
3
|
+
type TextInputProps = {
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
backgroundColor?: string;
|
|
6
|
+
textColor?: string;
|
|
7
|
+
sendButtonColor?: string;
|
|
8
|
+
inputValue: string;
|
|
9
|
+
fontSize?: number;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
onSubmit: (value: string) => void;
|
|
12
|
+
onInputChange: (value: string) => void;
|
|
13
|
+
uploadsConfig?: Partial<UploadsConfig>;
|
|
14
|
+
isFullFileUpload?: boolean;
|
|
15
|
+
setPreviews: Setter<unknown[]>;
|
|
16
|
+
onMicrophoneClicked: () => void;
|
|
17
|
+
handleFileChange: (event: FileEvent<HTMLInputElement>) => void;
|
|
18
|
+
maxChars?: number;
|
|
19
|
+
maxCharsWarningMessage?: string;
|
|
20
|
+
autoFocus?: boolean;
|
|
21
|
+
sendMessageSound?: boolean;
|
|
22
|
+
sendSoundLocation?: string;
|
|
23
|
+
enableInputHistory?: boolean;
|
|
24
|
+
maxHistorySize?: number;
|
|
25
|
+
};
|
|
26
|
+
export declare const TextInput: (props: TextInputProps) => import("solid-js").JSX.Element;
|
|
27
|
+
export {};
|
|
28
28
|
//# sourceMappingURL=TextInput.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { TextInput } from './components/TextInput';
|
|
2
|
-
export { FilePreview } from './components/FilePreview';
|
|
1
|
+
export { TextInput } from './components/TextInput';
|
|
2
|
+
export { FilePreview } from './components/FilePreview';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { BubbleProps } from './features/bubble';
|
|
2
|
-
export declare const defaultBotProps: BubbleProps;
|
|
1
|
+
import type { BubbleProps } from './features/bubble';
|
|
2
|
+
export declare const defaultBotProps: BubbleProps;
|
|
3
3
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BubbleParams } from '../types';
|
|
2
|
-
import { BotProps } from '../../../components/Bot';
|
|
3
|
-
export type BubbleProps = BotProps & BubbleParams;
|
|
4
|
-
export declare const Bubble: (props: BubbleProps) => import("solid-js").JSX.Element;
|
|
1
|
+
import { BubbleParams } from '../types';
|
|
2
|
+
import { BotProps } from '../../../components/Bot';
|
|
3
|
+
export type BubbleProps = BotProps & BubbleParams;
|
|
4
|
+
export declare const Bubble: (props: BubbleProps) => import("solid-js").JSX.Element;
|
|
5
5
|
//# sourceMappingURL=Bubble.d.ts.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ButtonTheme } from '../types';
|
|
2
|
-
type Props = ButtonTheme & {
|
|
3
|
-
isBotOpened: boolean;
|
|
4
|
-
toggleBot: () => void;
|
|
5
|
-
setButtonPosition: (position: {
|
|
6
|
-
bottom: number;
|
|
7
|
-
right: number;
|
|
8
|
-
}) => void;
|
|
9
|
-
dragAndDrop: boolean;
|
|
10
|
-
autoOpen?: boolean;
|
|
11
|
-
openDelay?: number;
|
|
12
|
-
autoOpenOnMobile?: boolean;
|
|
13
|
-
};
|
|
14
|
-
export declare const BubbleButton: (props: Props) => import("solid-js").JSX.Element;
|
|
15
|
-
export {};
|
|
1
|
+
import { ButtonTheme } from '../types';
|
|
2
|
+
type Props = ButtonTheme & {
|
|
3
|
+
isBotOpened: boolean;
|
|
4
|
+
toggleBot: () => void;
|
|
5
|
+
setButtonPosition: (position: {
|
|
6
|
+
bottom: number;
|
|
7
|
+
right: number;
|
|
8
|
+
}) => void;
|
|
9
|
+
dragAndDrop: boolean;
|
|
10
|
+
autoOpen?: boolean;
|
|
11
|
+
openDelay?: number;
|
|
12
|
+
autoOpenOnMobile?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare const BubbleButton: (props: Props) => import("solid-js").JSX.Element;
|
|
15
|
+
export {};
|
|
16
16
|
//# sourceMappingURL=BubbleButton.d.ts.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
type TooltipProps = {
|
|
2
|
-
showTooltip: boolean;
|
|
3
|
-
position: {
|
|
4
|
-
bottom: number;
|
|
5
|
-
right: number;
|
|
6
|
-
};
|
|
7
|
-
buttonSize: number;
|
|
8
|
-
tooltipMessage?: string;
|
|
9
|
-
tooltipBackgroundColor?: string;
|
|
10
|
-
tooltipTextColor?: string;
|
|
11
|
-
tooltipFontSize?: number;
|
|
12
|
-
};
|
|
13
|
-
declare const Tooltip: (props: TooltipProps) => import("solid-js").JSX.Element;
|
|
14
|
-
export default Tooltip;
|
|
1
|
+
type TooltipProps = {
|
|
2
|
+
showTooltip: boolean;
|
|
3
|
+
position: {
|
|
4
|
+
bottom: number;
|
|
5
|
+
right: number;
|
|
6
|
+
};
|
|
7
|
+
buttonSize: number;
|
|
8
|
+
tooltipMessage?: string;
|
|
9
|
+
tooltipBackgroundColor?: string;
|
|
10
|
+
tooltipTextColor?: string;
|
|
11
|
+
tooltipFontSize?: number;
|
|
12
|
+
};
|
|
13
|
+
declare const Tooltip: (props: TooltipProps) => import("solid-js").JSX.Element;
|
|
14
|
+
export default Tooltip;
|
|
15
15
|
//# sourceMappingURL=Tooltip.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './Bubble';
|
|
1
|
+
export * from './Bubble';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './components';
|
|
1
|
+
export * from './components';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
export type BubbleParams = {
|
|
2
|
-
theme?: BubbleTheme;
|
|
3
|
-
};
|
|
4
|
-
export type BubbleTheme = {
|
|
5
|
-
chatWindow?: ChatWindowTheme;
|
|
6
|
-
button?: ButtonTheme;
|
|
7
|
-
tooltip?: ToolTipTheme;
|
|
8
|
-
disclaimer?: DisclaimerPopUpTheme;
|
|
9
|
-
};
|
|
10
|
-
export type TextInputTheme = {
|
|
11
|
-
backgroundColor?: string;
|
|
12
|
-
textColor?: string;
|
|
13
|
-
placeholder?: string;
|
|
14
|
-
sendButtonColor?: string;
|
|
15
|
-
maxChars?: number;
|
|
16
|
-
maxCharsWarningMessage?: string;
|
|
17
|
-
autoFocus?: boolean;
|
|
18
|
-
sendMessageSound?: boolean;
|
|
19
|
-
sendSoundLocation?: string;
|
|
20
|
-
receiveMessageSound?: boolean;
|
|
21
|
-
receiveSoundLocation?: string;
|
|
22
|
-
};
|
|
23
|
-
export type UserMessageTheme = {
|
|
24
|
-
backgroundColor?: string;
|
|
25
|
-
textColor?: string;
|
|
26
|
-
showAvatar?: boolean;
|
|
27
|
-
avatarSrc?: string;
|
|
28
|
-
};
|
|
29
|
-
export type BotMessageTheme = {
|
|
30
|
-
backgroundColor?: string;
|
|
31
|
-
textColor?: string;
|
|
32
|
-
showAvatar?: boolean;
|
|
33
|
-
avatarSrc?: string;
|
|
34
|
-
};
|
|
35
|
-
export type FooterTheme = {
|
|
36
|
-
showFooter?: boolean;
|
|
37
|
-
textColor?: string;
|
|
38
|
-
text?: string;
|
|
39
|
-
company?: string;
|
|
40
|
-
companyLink?: string;
|
|
41
|
-
};
|
|
42
|
-
export type FeedbackTheme = {
|
|
43
|
-
color?: string;
|
|
44
|
-
};
|
|
45
|
-
export type ChatWindowTheme = {
|
|
46
|
-
showTitle?: boolean;
|
|
47
|
-
showAgentMessages?: boolean;
|
|
48
|
-
title?: string;
|
|
49
|
-
titleAvatarSrc?: string;
|
|
50
|
-
welcomeMessage?: string;
|
|
51
|
-
errorMessage?: string;
|
|
52
|
-
backgroundColor?: string;
|
|
53
|
-
backgroundImage?: string;
|
|
54
|
-
height?: number;
|
|
55
|
-
width?: number;
|
|
56
|
-
fontSize?: number;
|
|
57
|
-
userMessage?: UserMessageTheme;
|
|
58
|
-
botMessage?: BotMessageTheme;
|
|
59
|
-
textInput?: TextInputTheme;
|
|
60
|
-
feedback?: FeedbackTheme;
|
|
61
|
-
footer?: FooterTheme;
|
|
62
|
-
sourceDocsTitle?: string;
|
|
63
|
-
poweredByTextColor?: string;
|
|
64
|
-
starterPrompts?: string[];
|
|
65
|
-
starterPromptFontSize?: number;
|
|
66
|
-
clearChatOnReload?: boolean;
|
|
67
|
-
dateTimeToggle?: DateTimeToggleTheme;
|
|
68
|
-
renderHTML?: boolean;
|
|
69
|
-
};
|
|
70
|
-
export type ButtonTheme = {
|
|
71
|
-
size?: 'small' | 'medium' | 'large' | number;
|
|
72
|
-
backgroundColor?: string;
|
|
73
|
-
iconColor?: string;
|
|
74
|
-
customIconSrc?: string;
|
|
75
|
-
bottom?: number;
|
|
76
|
-
right?: number;
|
|
77
|
-
dragAndDrop?: boolean;
|
|
78
|
-
autoWindowOpen?: autoWindowOpenTheme;
|
|
79
|
-
};
|
|
80
|
-
export type ToolTipTheme = {
|
|
81
|
-
showTooltip?: boolean;
|
|
82
|
-
tooltipMessage?: string;
|
|
83
|
-
tooltipBackgroundColor?: string;
|
|
84
|
-
tooltipTextColor?: string;
|
|
85
|
-
tooltipFontSize?: number;
|
|
86
|
-
};
|
|
87
|
-
export type autoWindowOpenTheme = {
|
|
88
|
-
autoOpen?: boolean;
|
|
89
|
-
openDelay?: number;
|
|
90
|
-
autoOpenOnMobile?: boolean;
|
|
91
|
-
};
|
|
92
|
-
export type DisclaimerPopUpTheme = {
|
|
93
|
-
title?: string;
|
|
94
|
-
message?: string;
|
|
95
|
-
buttonText?: string;
|
|
96
|
-
};
|
|
97
|
-
export type DateTimeToggleTheme = {
|
|
98
|
-
date?: boolean;
|
|
99
|
-
time?: boolean;
|
|
100
|
-
};
|
|
1
|
+
export type BubbleParams = {
|
|
2
|
+
theme?: BubbleTheme;
|
|
3
|
+
};
|
|
4
|
+
export type BubbleTheme = {
|
|
5
|
+
chatWindow?: ChatWindowTheme;
|
|
6
|
+
button?: ButtonTheme;
|
|
7
|
+
tooltip?: ToolTipTheme;
|
|
8
|
+
disclaimer?: DisclaimerPopUpTheme;
|
|
9
|
+
};
|
|
10
|
+
export type TextInputTheme = {
|
|
11
|
+
backgroundColor?: string;
|
|
12
|
+
textColor?: string;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
sendButtonColor?: string;
|
|
15
|
+
maxChars?: number;
|
|
16
|
+
maxCharsWarningMessage?: string;
|
|
17
|
+
autoFocus?: boolean;
|
|
18
|
+
sendMessageSound?: boolean;
|
|
19
|
+
sendSoundLocation?: string;
|
|
20
|
+
receiveMessageSound?: boolean;
|
|
21
|
+
receiveSoundLocation?: string;
|
|
22
|
+
};
|
|
23
|
+
export type UserMessageTheme = {
|
|
24
|
+
backgroundColor?: string;
|
|
25
|
+
textColor?: string;
|
|
26
|
+
showAvatar?: boolean;
|
|
27
|
+
avatarSrc?: string;
|
|
28
|
+
};
|
|
29
|
+
export type BotMessageTheme = {
|
|
30
|
+
backgroundColor?: string;
|
|
31
|
+
textColor?: string;
|
|
32
|
+
showAvatar?: boolean;
|
|
33
|
+
avatarSrc?: string;
|
|
34
|
+
};
|
|
35
|
+
export type FooterTheme = {
|
|
36
|
+
showFooter?: boolean;
|
|
37
|
+
textColor?: string;
|
|
38
|
+
text?: string;
|
|
39
|
+
company?: string;
|
|
40
|
+
companyLink?: string;
|
|
41
|
+
};
|
|
42
|
+
export type FeedbackTheme = {
|
|
43
|
+
color?: string;
|
|
44
|
+
};
|
|
45
|
+
export type ChatWindowTheme = {
|
|
46
|
+
showTitle?: boolean;
|
|
47
|
+
showAgentMessages?: boolean;
|
|
48
|
+
title?: string;
|
|
49
|
+
titleAvatarSrc?: string;
|
|
50
|
+
welcomeMessage?: string;
|
|
51
|
+
errorMessage?: string;
|
|
52
|
+
backgroundColor?: string;
|
|
53
|
+
backgroundImage?: string;
|
|
54
|
+
height?: number;
|
|
55
|
+
width?: number;
|
|
56
|
+
fontSize?: number;
|
|
57
|
+
userMessage?: UserMessageTheme;
|
|
58
|
+
botMessage?: BotMessageTheme;
|
|
59
|
+
textInput?: TextInputTheme;
|
|
60
|
+
feedback?: FeedbackTheme;
|
|
61
|
+
footer?: FooterTheme;
|
|
62
|
+
sourceDocsTitle?: string;
|
|
63
|
+
poweredByTextColor?: string;
|
|
64
|
+
starterPrompts?: string[];
|
|
65
|
+
starterPromptFontSize?: number;
|
|
66
|
+
clearChatOnReload?: boolean;
|
|
67
|
+
dateTimeToggle?: DateTimeToggleTheme;
|
|
68
|
+
renderHTML?: boolean;
|
|
69
|
+
};
|
|
70
|
+
export type ButtonTheme = {
|
|
71
|
+
size?: 'small' | 'medium' | 'large' | number;
|
|
72
|
+
backgroundColor?: string;
|
|
73
|
+
iconColor?: string;
|
|
74
|
+
customIconSrc?: string;
|
|
75
|
+
bottom?: number;
|
|
76
|
+
right?: number;
|
|
77
|
+
dragAndDrop?: boolean;
|
|
78
|
+
autoWindowOpen?: autoWindowOpenTheme;
|
|
79
|
+
};
|
|
80
|
+
export type ToolTipTheme = {
|
|
81
|
+
showTooltip?: boolean;
|
|
82
|
+
tooltipMessage?: string;
|
|
83
|
+
tooltipBackgroundColor?: string;
|
|
84
|
+
tooltipTextColor?: string;
|
|
85
|
+
tooltipFontSize?: number;
|
|
86
|
+
};
|
|
87
|
+
export type autoWindowOpenTheme = {
|
|
88
|
+
autoOpen?: boolean;
|
|
89
|
+
openDelay?: number;
|
|
90
|
+
autoOpenOnMobile?: boolean;
|
|
91
|
+
};
|
|
92
|
+
export type DisclaimerPopUpTheme = {
|
|
93
|
+
title?: string;
|
|
94
|
+
message?: string;
|
|
95
|
+
buttonText?: string;
|
|
96
|
+
};
|
|
97
|
+
export type DateTimeToggleTheme = {
|
|
98
|
+
date?: boolean;
|
|
99
|
+
time?: boolean;
|
|
100
|
+
};
|
|
101
101
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BotProps } from '@/components/Bot';
|
|
2
|
-
import { BubbleParams } from '@/features/bubble/types';
|
|
3
|
-
export type FullProps = BotProps & BubbleParams;
|
|
4
|
-
export declare const Full: (props: FullProps, { element }: {
|
|
5
|
-
element: HTMLElement;
|
|
6
|
-
}) => import("solid-js").JSX.Element;
|
|
1
|
+
import { BotProps } from '@/components/Bot';
|
|
2
|
+
import { BubbleParams } from '@/features/bubble/types';
|
|
3
|
+
export type FullProps = BotProps & BubbleParams;
|
|
4
|
+
export declare const Full: (props: FullProps, { element }: {
|
|
5
|
+
element: HTMLElement;
|
|
6
|
+
}) => import("solid-js").JSX.Element;
|
|
7
7
|
//# sourceMappingURL=Full.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './Full';
|
|
1
|
+
export * from './Full';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './components';
|
|
1
|
+
export * from './components';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export type DisclaimerPopupProps = {
|
|
2
|
-
isOpen?: boolean;
|
|
3
|
-
onAccept?: () => void;
|
|
4
|
-
title?: string;
|
|
5
|
-
message?: string;
|
|
6
|
-
buttonText?: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const DisclaimerPopup: (props: DisclaimerPopupProps) => import("solid-js").JSX.Element;
|
|
1
|
+
export type DisclaimerPopupProps = {
|
|
2
|
+
isOpen?: boolean;
|
|
3
|
+
onAccept?: () => void;
|
|
4
|
+
title?: string;
|
|
5
|
+
message?: string;
|
|
6
|
+
buttonText?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const DisclaimerPopup: (props: DisclaimerPopupProps) => import("solid-js").JSX.Element;
|
|
9
9
|
//# sourceMappingURL=DisclaimerPopup.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export type PopupProps = {
|
|
2
|
-
value?: any;
|
|
3
|
-
isOpen?: boolean;
|
|
4
|
-
onOpen?: () => void;
|
|
5
|
-
onClose?: () => void;
|
|
6
|
-
};
|
|
7
|
-
export declare const Popup: (props: PopupProps) => import("solid-js").JSX.Element;
|
|
1
|
+
export type PopupProps = {
|
|
2
|
+
value?: any;
|
|
3
|
+
isOpen?: boolean;
|
|
4
|
+
onOpen?: () => void;
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const Popup: (props: PopupProps) => import("solid-js").JSX.Element;
|
|
8
8
|
//# sourceMappingURL=Popup.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './Popup';
|
|
2
|
-
export * from './DisclaimerPopup';
|
|
1
|
+
export * from './Popup';
|
|
2
|
+
export * from './DisclaimerPopup';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './components';
|
|
1
|
+
export * from './components';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export type PopupParams = {
|
|
2
|
-
autoShowDelay?: number;
|
|
3
|
-
theme?: {
|
|
4
|
-
width?: string;
|
|
5
|
-
backgroundColor?: string;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
1
|
+
export type PopupParams = {
|
|
2
|
+
autoShowDelay?: number;
|
|
3
|
+
theme?: {
|
|
4
|
+
width?: string;
|
|
5
|
+
backgroundColor?: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
8
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { BotProps } from './components/Bot';
|
|
2
|
-
export type { BubbleProps } from './features/bubble/components/Bubble';
|
|
1
|
+
export type { BotProps } from './components/Bot';
|
|
2
|
+
export type { BubbleProps } from './features/bubble/components/Bubble';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|