@convai/web-sdk 0.3.1-beta.2 → 0.3.1-beta.3
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/types/vanilla/ConvaiWidget.d.ts.map +1 -1
- package/dist/umd/convai.umd.js +1 -1
- package/dist/vanilla/index.cjs +5 -3
- package/dist/vanilla/index.js +5 -3
- package/package.json +2 -2
- package/dist/types/dev.d.ts +0 -12
- package/dist/types/dev.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -2
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/react/components/ConvaiWidget.d.ts +0 -68
- package/dist/types/react/components/ConvaiWidget.d.ts.map +0 -1
- package/dist/types/react/components/index.d.ts +0 -2
- package/dist/types/react/components/index.d.ts.map +0 -1
- package/dist/types/react/components/rtc-widget/components/AudioSettingsPanel.d.ts +0 -10
- package/dist/types/react/components/rtc-widget/components/AudioSettingsPanel.d.ts.map +0 -1
- package/dist/types/react/components/rtc-widget/components/AudioVisualizer.d.ts +0 -36
- package/dist/types/react/components/rtc-widget/components/AudioVisualizer.d.ts.map +0 -1
- package/dist/types/react/components/rtc-widget/components/ConviMessage.d.ts +0 -10
- package/dist/types/react/components/rtc-widget/components/ConviMessage.d.ts.map +0 -1
- package/dist/types/react/components/rtc-widget/components/FloatingVideo.d.ts +0 -9
- package/dist/types/react/components/rtc-widget/components/FloatingVideo.d.ts.map +0 -1
- package/dist/types/react/components/rtc-widget/components/MarkdownRenderer.d.ts +0 -7
- package/dist/types/react/components/rtc-widget/components/MarkdownRenderer.d.ts.map +0 -1
- package/dist/types/react/components/rtc-widget/components/MessageBubble.d.ts +0 -10
- package/dist/types/react/components/rtc-widget/components/MessageBubble.d.ts.map +0 -1
- package/dist/types/react/components/rtc-widget/components/MessageList.d.ts +0 -11
- package/dist/types/react/components/rtc-widget/components/MessageList.d.ts.map +0 -1
- package/dist/types/react/components/rtc-widget/components/UserMessage.d.ts +0 -9
- package/dist/types/react/components/rtc-widget/components/UserMessage.d.ts.map +0 -1
- package/dist/types/react/components/rtc-widget/components/conviComponents/ConviButton.d.ts +0 -6
- package/dist/types/react/components/rtc-widget/components/conviComponents/ConviButton.d.ts.map +0 -1
- package/dist/types/react/components/rtc-widget/components/conviComponents/ConviFooter.d.ts +0 -25
- package/dist/types/react/components/rtc-widget/components/conviComponents/ConviFooter.d.ts.map +0 -1
- package/dist/types/react/components/rtc-widget/components/conviComponents/ConviHeader.d.ts +0 -17
- package/dist/types/react/components/rtc-widget/components/conviComponents/ConviHeader.d.ts.map +0 -1
- package/dist/types/react/components/rtc-widget/components/conviComponents/SettingsTray.d.ts +0 -12
- package/dist/types/react/components/rtc-widget/components/conviComponents/SettingsTray.d.ts.map +0 -1
- package/dist/types/react/components/rtc-widget/components/conviComponents/VoiceModeOverlay.d.ts +0 -12
- package/dist/types/react/components/rtc-widget/components/conviComponents/VoiceModeOverlay.d.ts.map +0 -1
- package/dist/types/react/components/rtc-widget/components/conviComponents/index.d.ts +0 -6
- package/dist/types/react/components/rtc-widget/components/conviComponents/index.d.ts.map +0 -1
- package/dist/types/react/components/rtc-widget/components/index.d.ts +0 -9
- package/dist/types/react/components/rtc-widget/components/index.d.ts.map +0 -1
- package/dist/types/react/components/rtc-widget/index.d.ts +0 -6
- package/dist/types/react/components/rtc-widget/index.d.ts.map +0 -1
- package/dist/types/react/components/rtc-widget/styles/framerConfig.d.ts +0 -116
- package/dist/types/react/components/rtc-widget/styles/framerConfig.d.ts.map +0 -1
- package/dist/types/react/components/rtc-widget/styles/icons.d.ts +0 -28
- package/dist/types/react/components/rtc-widget/styles/icons.d.ts.map +0 -1
- package/dist/types/react/components/rtc-widget/styles/index.d.ts +0 -6
- package/dist/types/react/components/rtc-widget/styles/index.d.ts.map +0 -1
- package/dist/types/react/components/rtc-widget/styles/styledComponents.d.ts +0 -90
- package/dist/types/react/components/rtc-widget/styles/styledComponents.d.ts.map +0 -1
- package/dist/types/react/components/rtc-widget/styles/theme.d.ts +0 -188
- package/dist/types/react/components/rtc-widget/styles/theme.d.ts.map +0 -1
- package/dist/types/react/components/rtc-widget/types/index.d.ts +0 -60
- package/dist/types/react/components/rtc-widget/types/index.d.ts.map +0 -1
- package/dist/types/react/hooks/index.d.ts +0 -4
- package/dist/types/react/hooks/index.d.ts.map +0 -1
- package/dist/types/react/hooks/useCharacterInfo.d.ts +0 -17
- package/dist/types/react/hooks/useCharacterInfo.d.ts.map +0 -1
- package/dist/types/react/hooks/useConvaiClient.d.ts +0 -141
- package/dist/types/react/hooks/useConvaiClient.d.ts.map +0 -1
- package/dist/types/react/hooks/useLocalCameraTrack.d.ts +0 -22
- package/dist/types/react/hooks/useLocalCameraTrack.d.ts.map +0 -1
- package/dist/types/react/index.d.ts +0 -9
- package/dist/types/react/index.d.ts.map +0 -1
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { aeroTheme, glassStyles, iconSizes, variants } from "./theme";
|
|
2
|
-
export { iosTransitions, animationVariants } from "./framerConfig";
|
|
3
|
-
export { ConvaiContainer, MorphingContainer, ButtonContent, Logo, ChatContent, Header, Title, HeaderLogo, CloseButton, SettingsButton, SettingsTray, SettingsOption, Content, Footer, InputContainer, Input, ActionButton, MessageList, Message, MessageBubble, MessageTime, ButtonContainer, ButtonLogo, ConviBubble, ConviMessageContainer, MessageHeader, ConviLabel, LogoWrapper, UserBubble, UserMessageContainer, UserLabel, BubbleContainer, Bubble, Timestamp, MessageListContainer, MessageWrapper, EmptyState, } from "./styledComponents";
|
|
4
|
-
export { ConvaiLogo, ChevronDown, AeroIcons, IconButton } from "./icons";
|
|
5
|
-
export type { LogoState } from "./icons";
|
|
6
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/react/components/rtc-widget/styles/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGtE,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGnE,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,IAAI,EACJ,WAAW,EACX,MAAM,EACN,KAAK,EACL,UAAU,EACV,WAAW,EACX,cAAc,EACd,YAAY,EACZ,cAAc,EACd,OAAO,EACP,MAAM,EACN,cAAc,EACd,KAAK,EACL,YAAY,EACZ,WAAW,EACX,OAAO,EACP,aAAa,EACb,WAAW,EACX,eAAe,EACf,UAAU,EACV,WAAW,EACX,qBAAqB,EACrB,aAAa,EACb,UAAU,EACV,WAAW,EACX,UAAU,EACV,oBAAoB,EACpB,SAAS,EACT,eAAe,EACf,MAAM,EACN,SAAS,EACT,oBAAoB,EACpB,cAAc,EACd,UAAU,GACX,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGzE,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
export declare const ConvaiContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("framer-motion").HTMLMotionProps<"div">, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
2
|
-
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
3
|
-
}, never>> & string & Omit<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, keyof import("react").Component<any, {}, any>>;
|
|
4
|
-
export declare const MorphingContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<Omit<import("framer-motion").HTMLMotionProps<"div">, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
5
|
-
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
6
|
-
}, {
|
|
7
|
-
$backgroundOpacity?: number;
|
|
8
|
-
}>> & string & Omit<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, keyof import("react").Component<any, {}, any>>;
|
|
9
|
-
export declare const ButtonContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("framer-motion").HTMLMotionProps<"div">, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
10
|
-
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
11
|
-
}, never>> & string & Omit<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, keyof import("react").Component<any, {}, any>>;
|
|
12
|
-
export declare const Logo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("framer-motion").HTMLMotionProps<"div">, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
13
|
-
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
14
|
-
}, never>> & string & Omit<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, keyof import("react").Component<any, {}, any>>;
|
|
15
|
-
export declare const ChatContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("framer-motion").HTMLMotionProps<"div">, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
16
|
-
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
17
|
-
}, never>> & string & Omit<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, keyof import("react").Component<any, {}, any>>;
|
|
18
|
-
export declare const Header: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("framer-motion").HTMLMotionProps<"div">, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
19
|
-
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
20
|
-
}, never>> & string & Omit<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, keyof import("react").Component<any, {}, any>>;
|
|
21
|
-
export declare const Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
|
|
22
|
-
export declare const HeaderLogo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
23
|
-
export declare const CloseButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("framer-motion").HTMLMotionProps<"button">, "ref"> & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
24
|
-
ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
25
|
-
}, never>> & string & Omit<import("framer-motion").ForwardRefComponent<HTMLButtonElement, import("framer-motion").HTMLMotionProps<"button">>, keyof import("react").Component<any, {}, any>>;
|
|
26
|
-
export declare const SettingsButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("framer-motion").HTMLMotionProps<"button">, "ref"> & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
27
|
-
ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
28
|
-
}, never>> & string & Omit<import("framer-motion").ForwardRefComponent<HTMLButtonElement, import("framer-motion").HTMLMotionProps<"button">>, keyof import("react").Component<any, {}, any>>;
|
|
29
|
-
export declare const SettingsTray: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("framer-motion").HTMLMotionProps<"div">, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
30
|
-
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
31
|
-
}, never>> & string & Omit<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, keyof import("react").Component<any, {}, any>>;
|
|
32
|
-
export declare const SettingsOption: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("framer-motion").HTMLMotionProps<"button">, "ref"> & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
33
|
-
ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
34
|
-
}, never>> & string & Omit<import("framer-motion").ForwardRefComponent<HTMLButtonElement, import("framer-motion").HTMLMotionProps<"button">>, keyof import("react").Component<any, {}, any>>;
|
|
35
|
-
export declare const Content: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("framer-motion").HTMLMotionProps<"div">, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
36
|
-
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
37
|
-
}, never>> & string & Omit<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, keyof import("react").Component<any, {}, any>>;
|
|
38
|
-
export declare const Footer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("framer-motion").HTMLMotionProps<"div">, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
39
|
-
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
40
|
-
}, never>> & string & Omit<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, keyof import("react").Component<any, {}, any>>;
|
|
41
|
-
export declare const InputContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("framer-motion").HTMLMotionProps<"div">, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
42
|
-
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
43
|
-
}, never>> & string & Omit<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, keyof import("react").Component<any, {}, any>>;
|
|
44
|
-
export declare const Input: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
|
|
45
|
-
export declare const ActionButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<Omit<import("framer-motion").HTMLMotionProps<"button">, "ref"> & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
46
|
-
ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
47
|
-
}, {
|
|
48
|
-
$active?: boolean;
|
|
49
|
-
}>> & string & Omit<import("framer-motion").ForwardRefComponent<HTMLButtonElement, import("framer-motion").HTMLMotionProps<"button">>, keyof import("react").Component<any, {}, any>>;
|
|
50
|
-
export declare const MessageList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
51
|
-
export declare const Message: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
52
|
-
isUser: boolean;
|
|
53
|
-
}>> & string;
|
|
54
|
-
export declare const MessageBubble: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
55
|
-
isUser: boolean;
|
|
56
|
-
}>> & string;
|
|
57
|
-
export declare const MessageTime: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
58
|
-
isUser: boolean;
|
|
59
|
-
}>> & string;
|
|
60
|
-
export declare const ButtonContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("framer-motion").HTMLMotionProps<"button">, "ref"> & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
61
|
-
ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
62
|
-
}, never>> & string & Omit<import("framer-motion").ForwardRefComponent<HTMLButtonElement, import("framer-motion").HTMLMotionProps<"button">>, keyof import("react").Component<any, {}, any>>;
|
|
63
|
-
export declare const ButtonLogo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("framer-motion").HTMLMotionProps<"div">, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
64
|
-
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
65
|
-
}, never>> & string & Omit<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, keyof import("react").Component<any, {}, any>>;
|
|
66
|
-
export declare const ConviBubble: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
67
|
-
export declare const ConviMessageContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
68
|
-
export declare const MessageHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
69
|
-
export declare const ConviLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
70
|
-
export declare const LogoWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
71
|
-
export declare const UserBubble: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
72
|
-
export declare const UserMessageContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
73
|
-
export declare const UserLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
74
|
-
export declare const BubbleContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<Omit<import("framer-motion").HTMLMotionProps<"div">, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
75
|
-
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
76
|
-
}, {
|
|
77
|
-
$isUser: boolean;
|
|
78
|
-
}>> & string & Omit<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, keyof import("react").Component<any, {}, any>>;
|
|
79
|
-
export declare const Bubble: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<Omit<import("framer-motion").HTMLMotionProps<"div">, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
80
|
-
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
81
|
-
}, {
|
|
82
|
-
$isUser: boolean;
|
|
83
|
-
}>> & string & Omit<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, keyof import("react").Component<any, {}, any>>;
|
|
84
|
-
export declare const Timestamp: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
85
|
-
$isUser: boolean;
|
|
86
|
-
}>> & string;
|
|
87
|
-
export declare const MessageListContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
88
|
-
export declare const MessageWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
89
|
-
export declare const EmptyState: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
90
|
-
//# sourceMappingURL=styledComponents.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styledComponents.d.ts","sourceRoot":"","sources":["../../../../../../src/react/components/rtc-widget/styles/styledComponents.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe;;sLAmB3B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;yBACP,MAAM;+KAoB5B,CAAC;AAEF,eAAO,MAAM,aAAa;;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O,MAAM,MAAM;;;aAAiC,OAAO;+KA4B1D,CAAC;AAEF,eAAO,MAAM,SAAS;aAA0B,OAAO;YAStD,CAAC;AAEF,eAAO,MAAM,oBAAoB,6NA4BhC,CAAC;AAEF,eAAO,MAAM,cAAc,6NAS1B,CAAC;AAEF,eAAO,MAAM,UAAU,6NAWtB,CAAC"}
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
export declare const aeroTheme: {
|
|
2
|
-
colors: {
|
|
3
|
-
primary: {
|
|
4
|
-
50: string;
|
|
5
|
-
100: string;
|
|
6
|
-
200: string;
|
|
7
|
-
300: string;
|
|
8
|
-
400: string;
|
|
9
|
-
500: string;
|
|
10
|
-
600: string;
|
|
11
|
-
700: string;
|
|
12
|
-
800: string;
|
|
13
|
-
900: string;
|
|
14
|
-
};
|
|
15
|
-
convai: {
|
|
16
|
-
light: string;
|
|
17
|
-
medium: string;
|
|
18
|
-
dark: string;
|
|
19
|
-
};
|
|
20
|
-
neutral: {
|
|
21
|
-
50: string;
|
|
22
|
-
100: string;
|
|
23
|
-
200: string;
|
|
24
|
-
300: string;
|
|
25
|
-
400: string;
|
|
26
|
-
500: string;
|
|
27
|
-
600: string;
|
|
28
|
-
700: string;
|
|
29
|
-
800: string;
|
|
30
|
-
900: string;
|
|
31
|
-
};
|
|
32
|
-
glass: {
|
|
33
|
-
light: string;
|
|
34
|
-
medium: string;
|
|
35
|
-
dark: string;
|
|
36
|
-
backdrop: string;
|
|
37
|
-
card: string;
|
|
38
|
-
backdropLight: string;
|
|
39
|
-
borderLight: string;
|
|
40
|
-
};
|
|
41
|
-
accent: {
|
|
42
|
-
purple: string;
|
|
43
|
-
green: string;
|
|
44
|
-
blue: string;
|
|
45
|
-
orange: string;
|
|
46
|
-
red: string;
|
|
47
|
-
};
|
|
48
|
-
error: {
|
|
49
|
-
50: string;
|
|
50
|
-
100: string;
|
|
51
|
-
200: string;
|
|
52
|
-
300: string;
|
|
53
|
-
400: string;
|
|
54
|
-
500: string;
|
|
55
|
-
600: string;
|
|
56
|
-
700: string;
|
|
57
|
-
800: string;
|
|
58
|
-
900: string;
|
|
59
|
-
};
|
|
60
|
-
text: {
|
|
61
|
-
primary: string;
|
|
62
|
-
secondary: string;
|
|
63
|
-
tertiary: string;
|
|
64
|
-
inverse: string;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
typography: {
|
|
68
|
-
fontFamily: {
|
|
69
|
-
primary: string;
|
|
70
|
-
title: string;
|
|
71
|
-
header: string;
|
|
72
|
-
body: string;
|
|
73
|
-
mono: string;
|
|
74
|
-
};
|
|
75
|
-
fontSize: {
|
|
76
|
-
xs: string;
|
|
77
|
-
sm: string;
|
|
78
|
-
base: string;
|
|
79
|
-
lg: string;
|
|
80
|
-
xl: string;
|
|
81
|
-
"2xl": string;
|
|
82
|
-
"3xl": string;
|
|
83
|
-
"4xl": string;
|
|
84
|
-
};
|
|
85
|
-
sizes: {
|
|
86
|
-
xs: string;
|
|
87
|
-
sm: string;
|
|
88
|
-
body: string;
|
|
89
|
-
lg: string;
|
|
90
|
-
xl: string;
|
|
91
|
-
"2xl": string;
|
|
92
|
-
"3xl": string;
|
|
93
|
-
"4xl": string;
|
|
94
|
-
caption: string;
|
|
95
|
-
};
|
|
96
|
-
fontWeight: {
|
|
97
|
-
normal: number;
|
|
98
|
-
medium: number;
|
|
99
|
-
semibold: number;
|
|
100
|
-
bold: number;
|
|
101
|
-
};
|
|
102
|
-
lineHeight: {
|
|
103
|
-
tight: number;
|
|
104
|
-
normal: number;
|
|
105
|
-
relaxed: number;
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
spacing: {
|
|
109
|
-
xs: string;
|
|
110
|
-
sm: string;
|
|
111
|
-
md: string;
|
|
112
|
-
lg: string;
|
|
113
|
-
xl: string;
|
|
114
|
-
"2xl": string;
|
|
115
|
-
"3xl": string;
|
|
116
|
-
};
|
|
117
|
-
borderRadius: {
|
|
118
|
-
none: string;
|
|
119
|
-
sm: string;
|
|
120
|
-
md: string;
|
|
121
|
-
lg: string;
|
|
122
|
-
xl: string;
|
|
123
|
-
"2xl": string;
|
|
124
|
-
full: string;
|
|
125
|
-
};
|
|
126
|
-
shadows: {
|
|
127
|
-
sm: string;
|
|
128
|
-
md: string;
|
|
129
|
-
lg: string;
|
|
130
|
-
xl: string;
|
|
131
|
-
glass: string;
|
|
132
|
-
};
|
|
133
|
-
glass: {
|
|
134
|
-
backdrop: string;
|
|
135
|
-
backdropLight: string;
|
|
136
|
-
backdropHeavy: string;
|
|
137
|
-
border: string;
|
|
138
|
-
borderLight: string;
|
|
139
|
-
};
|
|
140
|
-
transitions: {
|
|
141
|
-
fast: string;
|
|
142
|
-
normal: string;
|
|
143
|
-
slow: string;
|
|
144
|
-
spring: string;
|
|
145
|
-
snappy: string;
|
|
146
|
-
};
|
|
147
|
-
zIndex: {
|
|
148
|
-
base: number;
|
|
149
|
-
dropdown: number;
|
|
150
|
-
sticky: number;
|
|
151
|
-
fixed: number;
|
|
152
|
-
modal: number;
|
|
153
|
-
popover: number;
|
|
154
|
-
tooltip: number;
|
|
155
|
-
};
|
|
156
|
-
};
|
|
157
|
-
export declare const glassStyles: {
|
|
158
|
-
container: string;
|
|
159
|
-
overlay: string;
|
|
160
|
-
card: string;
|
|
161
|
-
input: string;
|
|
162
|
-
button: string;
|
|
163
|
-
};
|
|
164
|
-
export declare const iconSizes: {
|
|
165
|
-
xs: string;
|
|
166
|
-
sm: string;
|
|
167
|
-
md: string;
|
|
168
|
-
lg: string;
|
|
169
|
-
xl: string;
|
|
170
|
-
"2xl": string;
|
|
171
|
-
};
|
|
172
|
-
export declare const variants: {
|
|
173
|
-
button: {
|
|
174
|
-
primary: string;
|
|
175
|
-
secondary: string;
|
|
176
|
-
ghost: string;
|
|
177
|
-
};
|
|
178
|
-
input: {
|
|
179
|
-
default: string;
|
|
180
|
-
search: string;
|
|
181
|
-
};
|
|
182
|
-
card: {
|
|
183
|
-
default: string;
|
|
184
|
-
elevated: string;
|
|
185
|
-
interactive: string;
|
|
186
|
-
};
|
|
187
|
-
};
|
|
188
|
-
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../../../src/react/components/rtc-widget/styles/theme.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4LrB,CAAC;AAGF,eAAO,MAAM,WAAW;;;;;;CA4DvB,CAAC;AAGF,eAAO,MAAM,SAAS;;;;;;;CAOrB,CAAC;AAGF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;CAmDpB,CAAC"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
export interface RTCChatMessage {
|
|
2
|
-
id: string;
|
|
3
|
-
text: string;
|
|
4
|
-
isUser: boolean;
|
|
5
|
-
timestamp: string;
|
|
6
|
-
sender: string;
|
|
7
|
-
showLogo?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface CharacterVerbosityConfig {
|
|
10
|
-
characterId: string;
|
|
11
|
-
label?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface ConviUIProps {
|
|
14
|
-
isOpen: boolean;
|
|
15
|
-
backgroundOpacity?: number;
|
|
16
|
-
alwaysExpanded?: boolean;
|
|
17
|
-
characterName?: string;
|
|
18
|
-
characterImage?: string;
|
|
19
|
-
verbosityLevels?: Array<{
|
|
20
|
-
index: number;
|
|
21
|
-
characterId: string;
|
|
22
|
-
label?: string;
|
|
23
|
-
}>;
|
|
24
|
-
currentVerbosityIndex?: number;
|
|
25
|
-
onVerbosityChange?: (index: number, characterId: string) => void;
|
|
26
|
-
verbosityChanged?: boolean;
|
|
27
|
-
messages: RTCChatMessage[];
|
|
28
|
-
isStreaming?: boolean;
|
|
29
|
-
inputMode?: "conversation" | "speaker" | "voice" | "verbosity";
|
|
30
|
-
inputValue: string;
|
|
31
|
-
liveUserText?: string;
|
|
32
|
-
localIsTyping: boolean;
|
|
33
|
-
convaiIsTyping: boolean;
|
|
34
|
-
chatbotMic: boolean;
|
|
35
|
-
isPressingMic: boolean;
|
|
36
|
-
isTalking: boolean;
|
|
37
|
-
isMuted: boolean;
|
|
38
|
-
isVoiceMode: boolean;
|
|
39
|
-
isSettingsOpen: boolean;
|
|
40
|
-
isSpeakerEditMode: boolean;
|
|
41
|
-
isVerbosityMode: boolean;
|
|
42
|
-
isCreatingSpeaker?: boolean;
|
|
43
|
-
onToggle: () => void;
|
|
44
|
-
onClose: () => void;
|
|
45
|
-
onInputChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
46
|
-
onKeyPress: (e: React.KeyboardEvent) => void;
|
|
47
|
-
onSend: () => void;
|
|
48
|
-
onMicPress: () => void;
|
|
49
|
-
onMicRelease: () => void;
|
|
50
|
-
setIsPressingMic: (value: boolean) => void;
|
|
51
|
-
onToggleMute: () => void;
|
|
52
|
-
onToggleVoiceMode: () => void;
|
|
53
|
-
onSettingsToggle: () => void;
|
|
54
|
-
onReset: () => void;
|
|
55
|
-
onToggleVerbosityMode: () => void;
|
|
56
|
-
onContinue?: () => void;
|
|
57
|
-
settingsButtonRef?: React.RefObject<HTMLButtonElement>;
|
|
58
|
-
convaiClient?: any;
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/react/components/rtc-widget/types/index.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IACl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AAC,EAAE,OAAO,CAAC;IAG5B,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAChE,UAAU,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,KAAK,IAAI,CAAC;IAC7C,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,gBAAgB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,qBAAqB,EAAE,MAAM,IAAI,CAAC;IAClC,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IAGxB,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IACvD,YAAY,CAAC,EAAE,GAAG,CAAC;CACpB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/react/hooks/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
interface CharacterInfo {
|
|
2
|
-
name: string;
|
|
3
|
-
image: string | null;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Hook to fetch character information from Convai API
|
|
7
|
-
*
|
|
8
|
-
* @param characterId - The character ID to fetch information for (optional)
|
|
9
|
-
* @param apiKey - The Convai API key (optional)
|
|
10
|
-
* @returns Character information including name and image URL
|
|
11
|
-
*/
|
|
12
|
-
export declare const useCharacterInfo: (characterId?: string, apiKey?: string) => CharacterInfo & {
|
|
13
|
-
isLoading: boolean;
|
|
14
|
-
error: Error | null;
|
|
15
|
-
};
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=useCharacterInfo.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useCharacterInfo.d.ts","sourceRoot":"","sources":["../../../../src/react/hooks/useCharacterInfo.ts"],"names":[],"mappings":"AAGA,UAAU,aAAa;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAC3B,cAAc,MAAM,EACpB,SAAS,MAAM,KACd,aAAa,GAAG;IAAE,SAAS,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAA;CA4D3D,CAAC"}
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import type { ConvaiConfig, IConvaiClient, ChatMessage } from "../../core/types";
|
|
2
|
-
/**
|
|
3
|
-
* Blendshape data structure for 3D character animation
|
|
4
|
-
* Compatible with ARKit and Meta Human Animation (MHA) formats
|
|
5
|
-
*/
|
|
6
|
-
export interface BlendshapeFrame {
|
|
7
|
-
/** Array of 251 blendshape values (0.0 to 1.0 range, typically) */
|
|
8
|
-
values: number[];
|
|
9
|
-
/** Timestamp of when this frame was received */
|
|
10
|
-
timestamp: number;
|
|
11
|
-
/** Frame index in the current sequence */
|
|
12
|
-
frameIndex: number;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Blendshape controls interface for accessing facial animation data
|
|
16
|
-
*
|
|
17
|
-
* Provides two modes:
|
|
18
|
-
* 1. **Simple mode**: Use `currentFrame` for real-time updates (updates ~every chunk)
|
|
19
|
-
* 2. **Queue mode**: Use `frameQueue` for proper 72fps playback with requestAnimationFrame
|
|
20
|
-
*/
|
|
21
|
-
export interface BlendshapeControls {
|
|
22
|
-
/**
|
|
23
|
-
* Current/latest blendshape frame (null if not available).
|
|
24
|
-
* Updates whenever new chunk arrives. Use for simple real-time updates.
|
|
25
|
-
*/
|
|
26
|
-
currentFrame: BlendshapeFrame | null;
|
|
27
|
-
/**
|
|
28
|
-
* Queue of all unplayed frames for 72fps playback.
|
|
29
|
-
* Use with requestAnimationFrame for frame-accurate animation.
|
|
30
|
-
* Call `clearFrameQueue()` to reset.
|
|
31
|
-
*/
|
|
32
|
-
frameQueue: number[][];
|
|
33
|
-
/**
|
|
34
|
-
* Clear the frame queue.
|
|
35
|
-
* Useful when you want to reset animation or skip accumulated frames.
|
|
36
|
-
*/
|
|
37
|
-
clearFrameQueue: () => void;
|
|
38
|
-
/** Array of all 251 blendshape names in order */
|
|
39
|
-
blendshapeNames: readonly string[];
|
|
40
|
-
/** Map current frame values to their names for easy lookup */
|
|
41
|
-
namedBlendshapes: Record<string, number>;
|
|
42
|
-
/** Get top N active blendshapes sorted by absolute value */
|
|
43
|
-
getTopBlendshapes: (count?: number) => Array<{
|
|
44
|
-
name: string;
|
|
45
|
-
value: number;
|
|
46
|
-
index: number;
|
|
47
|
-
}>;
|
|
48
|
-
/** Check if blendshape data is available */
|
|
49
|
-
isAvailable: boolean;
|
|
50
|
-
/** Total number of frames received since connection */
|
|
51
|
-
totalFramesReceived: number;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* React hook wrapper for ConvaiClient
|
|
55
|
-
* Main hook for managing Convai client connection and functionality.
|
|
56
|
-
*
|
|
57
|
-
* Provides a complete interface for connecting to Convai's AI-powered voice assistants,
|
|
58
|
-
* managing real-time audio/video conversations, and handling various message types.
|
|
59
|
-
*
|
|
60
|
-
* @param config - Optional configuration to store for later connection
|
|
61
|
-
* @returns {ConvaiClient & { activity: string; chatMessages: ChatMessage[]; blendshapes: BlendshapeControls }} Complete client interface with connection state, methods, and message history
|
|
62
|
-
*
|
|
63
|
-
* @example Simple real-time mode (updates per chunk)
|
|
64
|
-
* ```tsx
|
|
65
|
-
* function App() {
|
|
66
|
-
* const convaiClient = useConvaiClient({
|
|
67
|
-
* apiKey: 'your-api-key',
|
|
68
|
-
* characterId: 'your-character-id',
|
|
69
|
-
* blendshapeProvider: 'neurosync',
|
|
70
|
-
* blendshapeConfig: { format: 'arkit' },
|
|
71
|
-
* });
|
|
72
|
-
*
|
|
73
|
-
* // Simple: Use currentFrame for real-time updates (updates every chunk)
|
|
74
|
-
* useEffect(() => {
|
|
75
|
-
* if (convaiClient.blendshapes.currentFrame) {
|
|
76
|
-
* const { values } = convaiClient.blendshapes.currentFrame;
|
|
77
|
-
* // Apply to your 3D character morphs
|
|
78
|
-
* values.forEach((value, index) => {
|
|
79
|
-
* const name = convaiClient.blendshapes.blendshapeNames[index];
|
|
80
|
-
* myCharacter.morphTargetInfluences[index] = value;
|
|
81
|
-
* });
|
|
82
|
-
* }
|
|
83
|
-
* }, [convaiClient.blendshapes.currentFrame]);
|
|
84
|
-
*
|
|
85
|
-
* return <ConvaiWidget convaiClient={convaiClient} />;
|
|
86
|
-
* }
|
|
87
|
-
* ```
|
|
88
|
-
*
|
|
89
|
-
* @example Advanced 72fps playback mode
|
|
90
|
-
* ```tsx
|
|
91
|
-
* function CharacterWithBlendshapes() {
|
|
92
|
-
* const convaiClient = useConvaiClient({ ...config });
|
|
93
|
-
* const { blendshapes } = convaiClient;
|
|
94
|
-
* const frameQueueRef = useRef(blendshapes.frameQueue);
|
|
95
|
-
* const currentFrameIndex = useRef(0);
|
|
96
|
-
*
|
|
97
|
-
* // Sync queue ref with state
|
|
98
|
-
* useEffect(() => {
|
|
99
|
-
* frameQueueRef.current = blendshapes.frameQueue;
|
|
100
|
-
* }, [blendshapes.frameQueue]);
|
|
101
|
-
*
|
|
102
|
-
* // 72fps animation loop
|
|
103
|
-
* useEffect(() => {
|
|
104
|
-
* const FPS = 72;
|
|
105
|
-
* let lastTime = 0;
|
|
106
|
-
*
|
|
107
|
-
* const animate = (timestamp: number) => {
|
|
108
|
-
* if (timestamp - lastTime >= 1000 / FPS) {
|
|
109
|
-
* const queue = frameQueueRef.current;
|
|
110
|
-
* if (currentFrameIndex.current < queue.length) {
|
|
111
|
-
* const frame = queue[currentFrameIndex.current];
|
|
112
|
-
* // Apply frame to your character
|
|
113
|
-
* frame.forEach((value, index) => {
|
|
114
|
-
* myCharacter.morphTargetInfluences[index] = value;
|
|
115
|
-
* });
|
|
116
|
-
* currentFrameIndex.current++;
|
|
117
|
-
* } else {
|
|
118
|
-
* // Finished playing, clear queue
|
|
119
|
-
* blendshapes.clearFrameQueue();
|
|
120
|
-
* currentFrameIndex.current = 0;
|
|
121
|
-
* }
|
|
122
|
-
* lastTime = timestamp;
|
|
123
|
-
* }
|
|
124
|
-
* requestAnimationFrame(animate);
|
|
125
|
-
* };
|
|
126
|
-
*
|
|
127
|
-
* const animId = requestAnimationFrame(animate);
|
|
128
|
-
* return () => cancelAnimationFrame(animId);
|
|
129
|
-
* }, [blendshapes]);
|
|
130
|
-
* }
|
|
131
|
-
* ```
|
|
132
|
-
*/
|
|
133
|
-
export declare const useConvaiClient: (config?: ConvaiConfig) => IConvaiClient & {
|
|
134
|
-
activity: string;
|
|
135
|
-
chatMessages: ChatMessage[];
|
|
136
|
-
isAudioMuted: boolean;
|
|
137
|
-
isVideoEnabled: boolean;
|
|
138
|
-
isScreenShareActive: boolean;
|
|
139
|
-
blendshapes: BlendshapeControls;
|
|
140
|
-
};
|
|
141
|
-
//# sourceMappingURL=useConvaiClient.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useConvaiClient.d.ts","sourceRoot":"","sources":["../../../../src/react/hooks/useConvaiClient.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACb,WAAW,EACZ,MAAM,k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0 @@
|
|
|
1
|
-
import { TrackReferenceOrPlaceholder } from "@livekit/components-react";
|
|
2
|
-
/**
|
|
3
|
-
* Hook to get the local camera track reference from LiveKit.
|
|
4
|
-
*
|
|
5
|
-
* Returns a track reference that can be used with LiveKit components
|
|
6
|
-
* to display the local participant's camera feed.
|
|
7
|
-
*
|
|
8
|
-
* @returns {TrackReferenceOrPlaceholder} Track reference for the local camera
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```tsx
|
|
12
|
-
* function VideoComponent() {
|
|
13
|
-
* const cameraTrackRef = useLocalCameraTrack();
|
|
14
|
-
*
|
|
15
|
-
* return (
|
|
16
|
-
* <VideoTrack trackRef={cameraTrackRef} />
|
|
17
|
-
* );
|
|
18
|
-
* }
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
export declare const useLocalCameraTrack: () => TrackReferenceOrPlaceholder;
|
|
22
|
-
//# sourceMappingURL=useLocalCameraTrack.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useLocalCameraTrack.d.ts","sourceRoot":"","sources":["../../../../src/react/hooks/useLocalCameraTrack.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAE5B,MAAM,2BAA2B,CAAC;AAInC;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,mBAAmB,mCAY/B,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { useConvaiClient } from './hooks/useConvaiClient';
|
|
2
|
-
export type { BlendshapeFrame, BlendshapeControls } from './hooks/useConvaiClient';
|
|
3
|
-
export { ConvaiWidget } from './components/ConvaiWidget';
|
|
4
|
-
export * from './hooks';
|
|
5
|
-
export * from '../core/types';
|
|
6
|
-
export { ConvaiClient } from '../core';
|
|
7
|
-
export { RoomAudioRenderer as AudioRenderer, RoomContext as AudioContext } from '@livekit/components-react';
|
|
8
|
-
export * from '../lipsync-helpers';
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,YAAY,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAGnF,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAGzD,cAAc,SAAS,CAAC;AAGxB,cAAc,eAAe,CAAC;AAG9B,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGvC,OAAO,EAAE,iBAAiB,IAAI,aAAa,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAG5G,cAAc,oBAAoB,CAAC"}
|