@elevenlabs/convai-widget-core 0.1.0 → 0.2.0

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.
@@ -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("preact/compat").JSX.Element;
9
+ export declare function Avatar({ size, className }: AvatarProps): import("react-dom/src").JSX.Element;
10
10
  export {};
@@ -20,7 +20,7 @@ interface IconButtonProps extends BaseButtonProps {
20
20
  "aria-label": Signalish<string | undefined>;
21
21
  }
22
22
  export type ButtonProps = TextButtonProps | IconButtonProps;
23
- export declare const Button: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<ButtonProps> & {
23
+ export declare const Button: import("preact").FunctionalComponent<import("react-dom/src").PropsWithoutRef<ButtonProps> & {
24
24
  ref?: import("preact").Ref<HTMLButtonElement> | undefined;
25
25
  }>;
26
26
  export {};
@@ -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("preact/compat").JSX.Element;
6
+ export declare function CopyButton({ copyText, children }: CopyButtonProps): import("react-dom/src").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("preact/compat").JSX.Element;
10
+ export declare function Flag({ size, flagCode, className, ...props }: FlagProps): import("react-dom/src").JSX.Element;
11
11
  export {};
@@ -33,5 +33,5 @@ interface InOutTransitionProps extends HTMLAttributes<HTMLElement> {
33
33
  * </InOutTransition>
34
34
  * ```
35
35
  */
36
- export declare function InOutTransition(props: InOutTransitionProps): import("preact/compat").JSX.Element;
36
+ export declare function InOutTransition(props: InOutTransitionProps): import("react-dom/src").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("preact/compat").JSX.Element;
27
+ export declare function SizeTransition(props: SizeTransitionProps): import("react-dom/src").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("preact/compat").JSX.Element;
2
+ export declare function TextArea({ className, ...props }: TextareaHTMLAttributes<HTMLTextAreaElement>): import("react-dom/src").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("preact/compat").JSX.Element;
4
+ export declare function Root({ children, ...rest }: RootPortalProviderProps): import("react-dom/src").JSX.Element;
5
5
  export declare function useRootPortal(): HTMLDivElement;
6
6
  export {};
@@ -9,4 +9,5 @@ export declare function useWidgetConfig(): ReadonlySignal<WidgetConfig>;
9
9
  export declare function useTextOnly(): ReadonlySignal<boolean>;
10
10
  export declare function useIsConversationTextOnly(): ReadonlySignal<boolean>;
11
11
  export declare function useFirstMessage(): ReadonlySignal<string | null>;
12
+ export declare function useWebRTC(): ReadonlySignal<boolean>;
12
13
  export {};