@graineai/inapp-react-native 0.33.0 → 0.33.1
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.
|
@@ -278,9 +278,11 @@ export function GraineVoiceLauncher({ webView: WebView, autoStart = false, activ
|
|
|
278
278
|
}, [post]);
|
|
279
279
|
if (!voiceAgentId)
|
|
280
280
|
return _jsx(_Fragment, { children: children?.(api) });
|
|
281
|
+
const mountStampRef = useRef(Date.now());
|
|
281
282
|
const effectiveTransport = transport ?? (appearance?.audioTransport === "rtc" ? "rtc" : "ws");
|
|
282
283
|
const src = `${client.opts.baseUrl.replace(/\/$/, "")}/embed/${voiceAgentId}` +
|
|
283
284
|
`?mode=voice&branding=0&embed=1&transport=${effectiveTransport}` +
|
|
285
|
+
`&b=${mountStampRef.current}` +
|
|
284
286
|
(mountedIdleRef.current ? "&idle=1" : "") +
|
|
285
287
|
`&pk=${encodeURIComponent(client.opts.publishableKey)}` +
|
|
286
288
|
(appearance?.accent ? `&accent=${encodeURIComponent(String(appearance.accent).replace("#", ""))}` : "");
|
package/package.json
CHANGED