@desivocal/agents-cdn 1.0.20-alpha.4 → 1.0.20-alpha.43

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.
@@ -13164,7 +13164,7 @@ Check the render method of \`` + i + "`." : "";
13164
13164
  };
13165
13165
  }
13166
13166
  }
13167
- function Yse(i) {
13167
+ function Kse(i) {
13168
13168
  return i;
13169
13169
  }
13170
13170
  function A6(i) {
@@ -15394,10 +15394,10 @@ Incoming: %s`, Ae, "[" + o.join(", ") + "]", "[" + i.join(", ") + "]");
15394
15394
  }
15395
15395
  return [P, C];
15396
15396
  }
15397
- function Kse(i, o, f) {
15398
- }
15399
15397
  function Zse(i, o, f) {
15400
15398
  }
15399
+ function Qse(i, o, f) {
15400
+ }
15401
15401
  function nx(i, o, f) {
15402
15402
  var m = lr, y = jl(), C, w = oa();
15403
15403
  if (w) {
@@ -27736,7 +27736,7 @@ function LH() {
27736
27736
  return typeof window.RTCRtpSender < "u" && // @ts-ignore
27737
27737
  typeof window.RTCRtpSender.prototype.createEncodedStreams < "u";
27738
27738
  }
27739
- class Xse extends au.EventEmitter {
27739
+ class Jse extends au.EventEmitter {
27740
27740
  constructor() {
27741
27741
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
27742
27742
  super(), this.onKeyRatcheted = (n, r) => {
@@ -36600,7 +36600,7 @@ class mq extends zd {
36600
36600
  });
36601
36601
  }
36602
36602
  }
36603
- class Jse extends au.EventEmitter {
36603
+ class ele extends au.EventEmitter {
36604
36604
  constructor(e, n) {
36605
36605
  let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
36606
36606
  super(), this.options = {}, this.checkResults = /* @__PURE__ */ new Map(), this.url = e, this.token = n, this.options = r;
@@ -60418,7 +60418,7 @@ function $se(t, e) {
60418
60418
  });
60419
60419
  }), n;
60420
60420
  }
60421
- const qse = "1.0.20-alpha.4", Wse = ({ room: t, config: e }) => {
60421
+ const qse = "1.0.20-alpha.43", Wse = ({ room: t, config: e }) => {
60422
60422
  var zi, Qi, Xi, Ja, Go, Yo, eo;
60423
60423
  console.log(`[Ringg CDN] Version: ${qse}`);
60424
60424
  const [n, r] = G.useState({}), a = e, {
@@ -60882,17 +60882,20 @@ const qse = "1.0.20-alpha.4", Wse = ({ room: t, config: e }) => {
60882
60882
  /* @__PURE__ */ W.jsx(iG, {}),
60883
60883
  !1
60884
60884
  ] });
60885
- }, Gse = ({ config: t }) => {
60885
+ }, Gse = "1.0.20-alpha.43", Yse = ({ config: t }) => {
60886
60886
  const [e] = G.useState(() => new Zm({ dynacast: !0, adaptiveStream: !0 }));
60887
- return /* @__PURE__ */ W.jsx(LR.Provider, { value: e, children: /* @__PURE__ */ W.jsx(Wse, { config: t, room: e }) });
60887
+ return G.useEffect(() => {
60888
+ console.log(`%c[Ringg CDN] v${Gse} initialized`, "background: #7c3aed; color: white; padding: 2px 8px; border-radius: 4px;"), console.log("[Ringg CDN] Config:", t);
60889
+ }, [t]), /* @__PURE__ */ W.jsx(LR.Provider, { value: e, children: /* @__PURE__ */ W.jsx(Wse, { config: t, room: e }) });
60888
60890
  };
60889
60891
  {
60890
60892
  const t = "ringg_ai_container";
60891
60893
  (function(e, n) {
60892
60894
  function r(a) {
60895
+ console.log("%c[Ringg CDN] loadAgent called", "background: #22c55e; color: white; padding: 2px 8px; border-radius: 4px;", a);
60893
60896
  let s = n.getElementById(t);
60894
60897
  s || (s = n.createElement("div"), s.id = t, n.body.appendChild(s)), Ay.createRoot(s).render(
60895
- /* @__PURE__ */ W.jsx(fr.StrictMode, { children: /* @__PURE__ */ W.jsx(Gse, { config: a }) })
60898
+ /* @__PURE__ */ W.jsx(fr.StrictMode, { children: /* @__PURE__ */ W.jsx(Yse, { config: a }) })
60896
60899
  );
60897
60900
  }
60898
60901
  e.loadAgent = r;