@rqmii_immersive/agent-react-sdk 5.0.1 → 5.0.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/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./RqmiiCloudAvatarPlayer-BI7Uz7DP.cjs"),f=require("react/jsx-runtime"),r=require("react");function M(){return i.useRqmiiAgentContext()}function D(){const s=i.useRqmiiAgentContext();return{sessionState:s.sessionState,isSessionTerminated:s.isSessionTerminated,isSessionTerminating:s.isSessionTerminating,isAgentThinking:s.isAgentThinking,isAgentSpeaking:s.isAgentSpeaking,isToolExecuting:s.isToolExecuting}}function O(s){const{attachAudioElement:t,resumeAudioPlayback:e}=i.useRqmiiAgentContext();r.useEffect(()=>{if(!s?.current)return;t(s.current);const o=()=>{e()},a=s.current;return a.addEventListener("click",o),a.addEventListener("touchstart",o),()=>{a.removeEventListener("click",o),a.removeEventListener("touchstart",o),t(null)}},[t,s,e])}class L{listeners=new Map;on(t,e){return this.listeners.has(t)||this.listeners.set(t,new Set),this.listeners.get(t).add(e),()=>this.off(t,e)}off(t,e){this.listeners.get(t)?.delete(e)}emit(t,e){const o=this.listeners.get(t);if(o)for(const a of o)try{a(e)}catch{}}removeAllListeners(){this.listeners.clear()}}const N={inputSampleRate:48e3,frameSizeMs:20},j=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./RqmiiCloudAvatarPlayer-CFPGKoOq.cjs"),f=require("react/jsx-runtime"),r=require("react");function M(){return i.useRqmiiAgentContext()}function D(){const s=i.useRqmiiAgentContext();return{sessionState:s.sessionState,isSessionTerminated:s.isSessionTerminated,isSessionTerminating:s.isSessionTerminating,isAgentThinking:s.isAgentThinking,isAgentSpeaking:s.isAgentSpeaking,isToolExecuting:s.isToolExecuting}}function O(s){const{attachAudioElement:t,resumeAudioPlayback:e}=i.useRqmiiAgentContext();r.useEffect(()=>{if(!s?.current)return;t(s.current);const o=()=>{e()},a=s.current;return a.addEventListener("click",o),a.addEventListener("touchstart",o),()=>{a.removeEventListener("click",o),a.removeEventListener("touchstart",o),t(null)}},[t,s,e])}class L{listeners=new Map;on(t,e){return this.listeners.has(t)||this.listeners.set(t,new Set),this.listeners.get(t).add(e),()=>this.off(t,e)}off(t,e){this.listeners.get(t)?.delete(e)}emit(t,e){const o=this.listeners.get(t);if(o)for(const a of o)try{a(e)}catch{}}removeAllListeners(){this.listeners.clear()}}const N={inputSampleRate:48e3,frameSizeMs:20},j=`
2
2
  class PcmCaptureProcessor extends AudioWorkletProcessor {
3
3
  constructor(options) {
4
4
  super();
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { u as l } from "./RqmiiCloudAvatarPlayer-D5aXKUuO.js";
2
- import { A as $, C as ee, a as te, D as se, b as ne, R as ie, c as re, d as oe, S as ae, e as ce, f as ue, g as le, h as de, i as pe, j as he } from "./RqmiiCloudAvatarPlayer-D5aXKUuO.js";
1
+ import { u as l } from "./RqmiiCloudAvatarPlayer-BBA8R0Sl.js";
2
+ import { A as $, C as ee, a as te, D as se, b as ne, R as ie, c as re, d as oe, S as ae, e as ce, f as ue, g as le, h as de, i as pe, j as he } from "./RqmiiCloudAvatarPlayer-BBA8R0Sl.js";
3
3
  import { jsxs as O, jsx as A } from "react/jsx-runtime";
4
4
  import { useEffect as x, useRef as C, useState as E, useCallback as u, useMemo as L, Component as j } from "react";
5
5
  function V() {
@@ -1 +1 @@
1
- {"version":3,"file":"chat-box-text-and-voice.d.ts","sourceRoot":"","sources":["../../../src/ui/chat/chat-box-text-and-voice.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAqB,iBAAiB,EAAY,MAAM,kBAAkB,CAAC;AAM7G,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,iBAAiB,GAAG,oBAAoB,2CAoNvF"}
1
+ {"version":3,"file":"chat-box-text-and-voice.d.ts","sourceRoot":"","sources":["../../../src/ui/chat/chat-box-text-and-voice.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAqB,iBAAiB,EAAY,MAAM,kBAAkB,CAAC;AAM7G,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,iBAAiB,GAAG,oBAAoB,2CA8NvF"}