@convai/web-widget 0.1.4 → 0.2.0-beta.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.
- package/README.md +55 -11
- package/chunks/lightbox-Dxfdw3VU.js +683 -0
- package/index.d.ts +26 -0
- package/index.js +4 -0
- package/package.json +53 -2
- package/react.d.ts +23 -0
- package/react.js +3551 -0
- package/runtime.js +12588 -18085
- package/types.d.ts +62 -0
- package/ui/react/components/ConvaiWidget.d.ts +86 -0
- package/ui/react/components/index.d.ts +1 -0
- package/ui/react/components/rtc-widget/components/AudioSettingsPanel.d.ts +9 -0
- package/ui/react/components/rtc-widget/components/AudioVisualizer.d.ts +35 -0
- package/ui/react/components/rtc-widget/components/ConviMessage.d.ts +13 -0
- package/ui/react/components/rtc-widget/components/FloatingVideo.d.ts +8 -0
- package/ui/react/components/rtc-widget/components/MarkdownRenderer.d.ts +31 -0
- package/ui/react/components/rtc-widget/components/MessageBubble.d.ts +9 -0
- package/ui/react/components/rtc-widget/components/MessageList.d.ts +14 -0
- package/ui/react/components/rtc-widget/components/SiteCard.d.ts +15 -0
- package/ui/react/components/rtc-widget/components/UserMessage.d.ts +9 -0
- package/ui/react/components/rtc-widget/components/conviComponents/ConviButton.d.ts +6 -0
- package/ui/react/components/rtc-widget/components/conviComponents/ConviFooter.d.ts +24 -0
- package/ui/react/components/rtc-widget/components/conviComponents/ConviHeader.d.ts +16 -0
- package/ui/react/components/rtc-widget/components/conviComponents/SettingsTray.d.ts +12 -0
- package/ui/react/components/rtc-widget/components/conviComponents/VoiceModeOverlay.d.ts +14 -0
- package/ui/react/components/rtc-widget/components/conviComponents/index.d.ts +5 -0
- package/ui/react/components/rtc-widget/components/index.d.ts +8 -0
- package/ui/react/components/rtc-widget/index.d.ts +5 -0
- package/ui/react/components/rtc-widget/styles/framerConfig.d.ts +115 -0
- package/ui/react/components/rtc-widget/styles/icons.d.ts +27 -0
- package/ui/react/components/rtc-widget/styles/index.d.ts +5 -0
- package/ui/react/components/rtc-widget/styles/styledComponents.d.ts +53 -0
- package/ui/react/components/rtc-widget/styles/theme.d.ts +187 -0
- package/ui/react/components/rtc-widget/types/index.d.ts +59 -0
- package/ui/react/hooks/useCharacterInfo.d.ts +18 -0
- package/ui/react/hooks/useLocalCameraTrack.d.ts +21 -0
- package/ui/react/icons.d.ts +37 -0
- package/ui/shared/lightbox.d.ts +15 -0
- package/ui/shared/linkStyles.d.ts +64 -0
- package/ui/shared/logger.d.ts +30 -0
- package/ui/vanilla/ConvaiWidget.d.ts +46 -0
- package/ui/vanilla/WidgetEventSubscriptions.d.ts +14 -0
- package/ui/vanilla/icons.d.ts +34 -0
- package/ui/vanilla/styles.d.ts +168 -0
- package/ui/vanilla/types.d.ts +170 -0
- package/vanilla.d.ts +21 -0
- package/vanilla.js +2512 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@convai/web-widget",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0-beta.0",
|
|
4
4
|
"description": "Two-line script-tag embed for the Convai chat widget. A <convai-widget> custom element with a closed shadow root and a lazily loaded runtime.",
|
|
5
5
|
"homepage": "https://docs.convai.com/embed",
|
|
6
6
|
"repository": {
|
|
@@ -15,15 +15,66 @@
|
|
|
15
15
|
"engines": {
|
|
16
16
|
"node": ">=20"
|
|
17
17
|
},
|
|
18
|
-
"sideEffects":
|
|
18
|
+
"sideEffects": [
|
|
19
|
+
"./v1.js",
|
|
20
|
+
"./runtime.js",
|
|
21
|
+
"./src/loader.ts",
|
|
22
|
+
"./src/runtime.ts"
|
|
23
|
+
],
|
|
19
24
|
"exports": {
|
|
25
|
+
".": {
|
|
26
|
+
"types": "./index.d.ts",
|
|
27
|
+
"import": "./index.js",
|
|
28
|
+
"default": "./index.js"
|
|
29
|
+
},
|
|
30
|
+
"./react": {
|
|
31
|
+
"types": "./react.d.ts",
|
|
32
|
+
"import": "./react.js",
|
|
33
|
+
"default": "./react.js"
|
|
34
|
+
},
|
|
35
|
+
"./vanilla": {
|
|
36
|
+
"types": "./vanilla.d.ts",
|
|
37
|
+
"import": "./vanilla.js",
|
|
38
|
+
"default": "./vanilla.js"
|
|
39
|
+
},
|
|
20
40
|
"./v1.js": "./v1.js",
|
|
21
41
|
"./runtime.js": "./runtime.js",
|
|
22
42
|
"./package.json": "./package.json"
|
|
23
43
|
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@livekit/components-react": "^2.9.3",
|
|
46
|
+
"framer-motion": "^11.18.0",
|
|
47
|
+
"styled-components": "^6.1.15"
|
|
48
|
+
},
|
|
49
|
+
"peerDependencies": {
|
|
50
|
+
"@convai/web-sdk": ">=1.9.0-beta.8",
|
|
51
|
+
"livekit-client": ">=2.17.2 <3",
|
|
52
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
53
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
54
|
+
},
|
|
55
|
+
"peerDependenciesMeta": {
|
|
56
|
+
"@convai/web-sdk": {
|
|
57
|
+
"optional": true
|
|
58
|
+
},
|
|
59
|
+
"react": {
|
|
60
|
+
"optional": true
|
|
61
|
+
},
|
|
62
|
+
"react-dom": {
|
|
63
|
+
"optional": true
|
|
64
|
+
}
|
|
65
|
+
},
|
|
24
66
|
"files": [
|
|
25
67
|
"v1.js",
|
|
26
68
|
"runtime.js",
|
|
69
|
+
"index.js",
|
|
70
|
+
"index.d.ts",
|
|
71
|
+
"types.d.ts",
|
|
72
|
+
"react.js",
|
|
73
|
+
"react.d.ts",
|
|
74
|
+
"vanilla.js",
|
|
75
|
+
"vanilla.d.ts",
|
|
76
|
+
"chunks",
|
|
77
|
+
"ui",
|
|
27
78
|
"README.md"
|
|
28
79
|
],
|
|
29
80
|
"publishConfig": {
|
package/react.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@convai/web-widget/react` — the chat UI as React components.
|
|
3
|
+
*
|
|
4
|
+
* This moved here from `@convai/web-sdk/react`. The SDK now creates clients and
|
|
5
|
+
* exports the functions other packages need; it ships no UI. So a React app
|
|
6
|
+
* takes the client from the SDK and the interface from here:
|
|
7
|
+
*
|
|
8
|
+
* ```tsx
|
|
9
|
+
* import { useConvaiClient } from '@convai/web-sdk/react'
|
|
10
|
+
* import { ConvaiWidget } from '@convai/web-widget/react'
|
|
11
|
+
*
|
|
12
|
+
* const client = useConvaiClient({ apiKey, characterId })
|
|
13
|
+
* return <ConvaiWidget convaiClient={client} />
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* React, `@convai/web-sdk` and `livekit-client` are peers: one copy each, the
|
|
17
|
+
* app's own. Importing this entry has no side effects.
|
|
18
|
+
*/
|
|
19
|
+
export { ConvaiWidget } from './ui/react/components/ConvaiWidget';
|
|
20
|
+
export { MarkdownRenderer } from './ui/react/components/rtc-widget/components/MarkdownRenderer';
|
|
21
|
+
export { useCharacterInfo } from './ui/react/hooks/useCharacterInfo';
|
|
22
|
+
export { useLocalCameraTrack } from './ui/react/hooks/useLocalCameraTrack';
|
|
23
|
+
export { RoomAudioRenderer as AudioRenderer, RoomContext as AudioContext, } from '@livekit/components-react';
|