@streamoji/avatar-widget 0.1.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.
@@ -0,0 +1,11 @@
1
+ import type { ReactElement } from "react";
2
+
3
+ export interface AvatarWidgetProps {
4
+ /** Encrypted agent token for chat/STT API. */
5
+ token?: string;
6
+ /** Called when the agent requests navigation; if omitted, opens in new tab. */
7
+ onNavigationRequested?: (url: string) => void;
8
+ }
9
+
10
+ declare const AvatarWidget: (props: AvatarWidgetProps) => ReactElement;
11
+ export { AvatarWidget };
package/package.json ADDED
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "@streamoji/avatar-widget",
3
+ "version": "0.1.0",
4
+ "description": "Plug-and-play React avatar widget for token-based AI conversations.",
5
+ "type": "module",
6
+ "main": "./dist/avatar-widget.cjs",
7
+ "module": "./dist/avatar-widget.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/avatar-widget.js",
13
+ "require": "./dist/avatar-widget.cjs",
14
+ "default": "./dist/avatar-widget.js"
15
+ },
16
+ "./styles.css": "./dist/avatar-widget.css"
17
+ },
18
+ "files": [
19
+ "dist"
20
+ ],
21
+ "scripts": {
22
+ "build": "vite build && cp declarations.d.ts dist/index.d.ts",
23
+ "build:html": "vite build --config vite.config.html.ts",
24
+ "build:js": "vite build",
25
+ "build:types": "tsc -p tsconfig.build.json"
26
+ },
27
+ "peerDependencies": {
28
+ "@react-three/drei": "^10.7.0",
29
+ "@react-three/fiber": "^9.4.0",
30
+ "react": "^18.0.0 || ^19.0.0",
31
+ "react-dom": "^18.0.0 || ^19.0.0",
32
+ "three": "^0.182.0"
33
+ },
34
+ "devDependencies": {
35
+ "typescript": "^5.9.3",
36
+ "vite": "^7.2.4"
37
+ }
38
+ }