polymorph-sdk 0.2.0 → 0.2.2
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 +1 -2
- package/dist/index.css +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +3313 -3243
- package/package.json +6 -2
- package/src/ChatThread.tsx +50 -6
- package/src/PolymorphWidget.tsx +70 -8
- package/src/RoomHandler.tsx +99 -0
- package/src/VoiceOverlay.tsx +22 -2
- package/src/WidgetPanel.tsx +129 -95
- package/src/__tests__/exports.test.ts +13 -0
- package/src/index.ts +6 -1
- package/src/styles.module.css +92 -28
- package/src/types.ts +5 -5
- package/src/usePolymorphSession.ts +110 -41
package/dist/index.d.ts
CHANGED
|
@@ -48,17 +48,17 @@ export declare interface WidgetBranding {
|
|
|
48
48
|
export declare interface WidgetConfig {
|
|
49
49
|
apiBaseUrl: string;
|
|
50
50
|
apiKey?: string;
|
|
51
|
-
|
|
51
|
+
/** LiveKit dispatched agent name (default: "custom-voice-agent"). */
|
|
52
|
+
agentName?: string;
|
|
53
|
+
metadata?: Record<string, string | string[]>;
|
|
52
54
|
branding?: WidgetBranding;
|
|
53
55
|
position?: "bottom-right" | "bottom-left";
|
|
54
56
|
/** Enable voice call (default: true). When false, widget is chat-only. */
|
|
55
57
|
enableVoice?: boolean;
|
|
56
|
-
/** Participant identity sent to LiveKit */
|
|
57
|
-
userIdentity?: string;
|
|
58
|
-
/** Participant display name sent to LiveKit */
|
|
59
|
-
userName?: string;
|
|
60
58
|
/** Extra options passed to fetch (e.g. { credentials: "include" }) */
|
|
61
59
|
fetchOptions?: RequestInit;
|
|
60
|
+
/** Render widget in dark mode (default: false) */
|
|
61
|
+
darkMode?: boolean;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
export { }
|