@elevenlabs/convai-widget-core 0.5.1 → 0.5.4
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/components/Avatar.d.ts +1 -1
- package/dist/components/Button.d.ts +3 -2
- package/dist/components/CopyButton.d.ts +1 -1
- package/dist/components/Flag.d.ts +1 -1
- package/dist/components/Icon.d.ts +6 -0
- package/dist/components/InOutTransition.d.ts +1 -1
- package/dist/components/SizeTransition.d.ts +1 -1
- package/dist/components/TextArea.d.ts +1 -1
- package/dist/contexts/root-portal.d.ts +1 -1
- package/dist/contexts/widget-config.d.ts +1 -1
- package/dist/index.js +5076 -2216
- package/dist/markdown/components/CodeBlock.d.ts +7 -0
- package/dist/markdown/components/ContentBlock.d.ts +19 -0
- package/dist/markdown/components/Image.d.ts +5 -0
- package/dist/markdown/components/Table.d.ts +11 -0
- package/dist/markdown/components/components.d.ts +2 -0
- package/dist/markdown/index.d.ts +12 -0
- package/dist/markdown/utils/highlighter.d.ts +11 -0
- package/dist/markdown/utils/parse-blocks.d.ts +1 -0
- package/dist/markdown/utils/parse-incomplete-markdown.d.ts +1 -0
- package/dist/markdown/utils/utils.d.ts +1 -0
- package/dist/markdown.dev.d.ts +1 -0
- package/dist/mocks/browser.d.ts +9 -9
- package/dist/types/attributes.d.ts +1 -1
- package/dist/types/config.d.ts +4 -1
- package/dist/utils/cn.d.ts +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/widget/CompactTrigger.d.ts +1 -1
- package/dist/widget/ErrorModal.d.ts +1 -1
- package/dist/widget/ExpandableTriggerActions.d.ts +1 -1
- package/dist/widget/FeedbackActions.d.ts +1 -1
- package/dist/widget/FeedbackPage.d.ts +1 -1
- package/dist/widget/FullTrigger.d.ts +1 -1
- package/dist/widget/SheetActions.d.ts +1 -1
- package/dist/widget/StatusLabel.d.ts +1 -1
- package/dist/widget/Transcript.d.ts +1 -1
- package/dist/widget/Trigger.d.ts +1 -1
- package/dist/widget/TriggerMuteButton.d.ts +1 -1
- package/package.json +24 -3
|
@@ -6,5 +6,5 @@ interface AvatarProps {
|
|
|
6
6
|
size?: keyof typeof SIZE_CLASSES;
|
|
7
7
|
className?: string;
|
|
8
8
|
}
|
|
9
|
-
export declare function Avatar({ size, className }: AvatarProps): import("
|
|
9
|
+
export declare function Avatar({ size, className }: AvatarProps): import("preact").JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes } from "preact/compat";
|
|
2
|
-
import { IconName } from "./Icon";
|
|
3
1
|
import { ComponentChildren } from "preact";
|
|
2
|
+
import { ButtonHTMLAttributes } from "preact/compat";
|
|
4
3
|
import { Signalish } from "../utils/signalish";
|
|
4
|
+
import { IconName } from "./Icon";
|
|
5
5
|
declare const VARIANT_CLASSES: {
|
|
6
6
|
primary: string;
|
|
7
7
|
secondary: string;
|
|
8
8
|
ghost: string;
|
|
9
|
+
"md-button": string;
|
|
9
10
|
};
|
|
10
11
|
export interface BaseButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
11
12
|
iconClassName?: string;
|
|
@@ -3,5 +3,5 @@ import { Signalish } from "../utils/signalish";
|
|
|
3
3
|
interface CopyButtonProps extends BaseButtonProps {
|
|
4
4
|
copyText: Signalish<string | null>;
|
|
5
5
|
}
|
|
6
|
-
export declare function CopyButton({ copyText, children }: CopyButtonProps): import("
|
|
6
|
+
export declare function CopyButton({ copyText, children }: CopyButtonProps): import("preact").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -7,5 +7,5 @@ interface FlagProps extends ImgHTMLAttributes<HTMLImageElement> {
|
|
|
7
7
|
size?: keyof typeof SIZE_CLASSES;
|
|
8
8
|
flagCode: string;
|
|
9
9
|
}
|
|
10
|
-
export declare function Flag({ size, flagCode, className, ...props }: FlagProps): import("
|
|
10
|
+
export declare function Flag({ size, flagCode, className, ...props }: FlagProps): import("preact").JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -10,6 +10,9 @@ declare const ICON_MAP: {
|
|
|
10
10
|
"chevron-up": typeof ChevronUpIcon;
|
|
11
11
|
send: typeof SendIcon;
|
|
12
12
|
star: typeof StarIcon;
|
|
13
|
+
copy: typeof CopyIcon;
|
|
14
|
+
download: typeof DownloadIcon;
|
|
15
|
+
wrap: typeof WrapTextIcon;
|
|
13
16
|
};
|
|
14
17
|
declare const SIZE_CLASSES: {
|
|
15
18
|
sm: string;
|
|
@@ -33,6 +36,9 @@ declare function ChevronUpIcon(props: JSX.HTMLAttributes<SVGSVGElement>): JSX.El
|
|
|
33
36
|
declare function CheckIcon(props: JSX.HTMLAttributes<SVGSVGElement>): JSX.Element;
|
|
34
37
|
declare function SendIcon(props: JSX.HTMLAttributes<SVGSVGElement>): JSX.Element;
|
|
35
38
|
declare function StarIcon(props: JSX.HTMLAttributes<SVGSVGElement>): JSX.Element;
|
|
39
|
+
declare function CopyIcon(props: JSX.HTMLAttributes<SVGSVGElement>): JSX.Element;
|
|
40
|
+
declare function DownloadIcon(props: JSX.HTMLAttributes<SVGSVGElement>): JSX.Element;
|
|
41
|
+
declare function WrapTextIcon(props: JSX.HTMLAttributes<SVGSVGElement>): JSX.Element;
|
|
36
42
|
export declare function FeedbackIcon({ orbColor, circleBackgroundColor, starColor, className, }: {
|
|
37
43
|
orbColor: string;
|
|
38
44
|
circleBackgroundColor: string;
|
|
@@ -33,5 +33,5 @@ interface InOutTransitionProps extends HTMLAttributes<HTMLElement> {
|
|
|
33
33
|
* </InOutTransition>
|
|
34
34
|
* ```
|
|
35
35
|
*/
|
|
36
|
-
export declare function InOutTransition(props: InOutTransitionProps): import("
|
|
36
|
+
export declare function InOutTransition(props: InOutTransitionProps): import("preact").JSX.Element;
|
|
37
37
|
export {};
|
|
@@ -24,5 +24,5 @@ interface SizeTransitionProps extends PropsWithoutRef<HTMLAttributes<HTMLSpanEle
|
|
|
24
24
|
* @param props
|
|
25
25
|
* @constructor
|
|
26
26
|
*/
|
|
27
|
-
export declare function SizeTransition(props: SizeTransitionProps): import("
|
|
27
|
+
export declare function SizeTransition(props: SizeTransitionProps): import("preact").JSX.Element;
|
|
28
28
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { TextareaHTMLAttributes } from "preact/compat";
|
|
2
|
-
export declare function TextArea({ className, ...props }: TextareaHTMLAttributes<HTMLTextAreaElement>): import("
|
|
2
|
+
export declare function TextArea({ className, ...props }: TextareaHTMLAttributes<HTMLTextAreaElement>): import("preact").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from "preact/compat";
|
|
2
2
|
interface RootPortalProviderProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
3
|
}
|
|
4
|
-
export declare function Root({ children, ...rest }: RootPortalProviderProps): import("
|
|
4
|
+
export declare function Root({ children, ...rest }: RootPortalProviderProps): import("preact").JSX.Element;
|
|
5
5
|
export declare function useRootPortal(): HTMLDivElement;
|
|
6
6
|
export {};
|
|
@@ -10,5 +10,5 @@ export declare function useTextOnly(): ReadonlySignal<boolean>;
|
|
|
10
10
|
export declare function useIsConversationTextOnly(): ReadonlySignal<boolean>;
|
|
11
11
|
export declare function useFirstMessage(): ReadonlySignal<string | null>;
|
|
12
12
|
export declare function useWebRTC(): ReadonlySignal<boolean>;
|
|
13
|
-
export declare function
|
|
13
|
+
export declare function useEndFeedbackType(): ReadonlySignal<"rating" | null>;
|
|
14
14
|
export {};
|