@desivocal/agents-cdn 1.0.21-alpha.2 → 1.0.21-alpha.3
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/dv-agent.es.js +16 -16
- package/dist/dv-agent.umd.js +22 -22
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/dv-agent.es.js
CHANGED
|
@@ -13164,7 +13164,7 @@ Check the render method of \`` + i + "`." : "";
|
|
|
13164
13164
|
};
|
|
13165
13165
|
}
|
|
13166
13166
|
}
|
|
13167
|
-
function
|
|
13167
|
+
function kle(i) {
|
|
13168
13168
|
return i;
|
|
13169
13169
|
}
|
|
13170
13170
|
function j6(i) {
|
|
@@ -15394,9 +15394,9 @@ Incoming: %s`, Le, "[" + o.join(", ") + "]", "[" + i.join(", ") + "]");
|
|
|
15394
15394
|
}
|
|
15395
15395
|
return [P, S];
|
|
15396
15396
|
}
|
|
15397
|
-
function
|
|
15397
|
+
function xle(i, o, f) {
|
|
15398
15398
|
}
|
|
15399
|
-
function
|
|
15399
|
+
function Tle(i, o, f) {
|
|
15400
15400
|
}
|
|
15401
15401
|
function uT(i, o, f) {
|
|
15402
15402
|
var m = lr, y = ql(), S, _ = sa();
|
|
@@ -27736,7 +27736,7 @@ function zH() {
|
|
|
27736
27736
|
return typeof window.RTCRtpSender < "u" && // @ts-ignore
|
|
27737
27737
|
typeof window.RTCRtpSender.prototype.createEncodedStreams < "u";
|
|
27738
27738
|
}
|
|
27739
|
-
class
|
|
27739
|
+
class wle extends du.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 kq extends Gd {
|
|
|
36600
36600
|
});
|
|
36601
36601
|
}
|
|
36602
36602
|
}
|
|
36603
|
-
class
|
|
36603
|
+
class Ele extends du.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;
|
|
@@ -61163,8 +61163,8 @@ function vle(t, e) {
|
|
|
61163
61163
|
});
|
|
61164
61164
|
}), n;
|
|
61165
61165
|
}
|
|
61166
|
-
const
|
|
61167
|
-
function
|
|
61166
|
+
const Ny = (...t) => console.warn("[DOM_ACTION]", ...t);
|
|
61167
|
+
function yle(t, e) {
|
|
61168
61168
|
const n = (s) => {
|
|
61169
61169
|
try {
|
|
61170
61170
|
e == null || e(s);
|
|
@@ -61185,12 +61185,12 @@ function ble(t, e) {
|
|
|
61185
61185
|
if (!t.event_name)
|
|
61186
61186
|
return Ny(`[${r}] trigger_event missing event_name`), n({ id: r, label: "Event missing name", level: "error" });
|
|
61187
61187
|
const s = { ...t.default_payload ?? {}, action_id: r };
|
|
61188
|
-
|
|
61188
|
+
window.dispatchEvent(new CustomEvent(t.event_name, { detail: s })), n({ id: r, label: "Triggered", meta: t.event_name, level: "info" });
|
|
61189
61189
|
} catch (s) {
|
|
61190
61190
|
Ny(`[${r}] execution failed`, s), n({ id: r, label: "Action failed", level: "error" });
|
|
61191
61191
|
}
|
|
61192
61192
|
}
|
|
61193
|
-
const
|
|
61193
|
+
const ble = ({ label: t, meta: e, level: n = "info" }) => {
|
|
61194
61194
|
const r = Uo(), a = n === "error" ? "#ef4444" : "#22c55e";
|
|
61195
61195
|
return /* @__PURE__ */ F.jsx("div", { className: "ringg_ai-flex ringg_ai-justify-center ringg_ai-my-1", children: /* @__PURE__ */ F.jsxs(
|
|
61196
61196
|
"div",
|
|
@@ -61205,7 +61205,7 @@ const Cle = ({ label: t, meta: e, level: n = "info" }) => {
|
|
|
61205
61205
|
]
|
|
61206
61206
|
}
|
|
61207
61207
|
) });
|
|
61208
|
-
},
|
|
61208
|
+
}, Cle = ({ room: t, config: e }) => {
|
|
61209
61209
|
var Ha, oo, Q, Ue, rt, ot, cn, Gt, fn;
|
|
61210
61210
|
const [n, r] = $.useState({}), a = e, {
|
|
61211
61211
|
mode: s = gh.mode,
|
|
@@ -61544,7 +61544,7 @@ const Cle = ({ label: t, meta: e, level: n = "info" }) => {
|
|
|
61544
61544
|
details: Re.details
|
|
61545
61545
|
}
|
|
61546
61546
|
} : Re.component_type && Re.component_id ? Re : null;
|
|
61547
|
-
}, []), $i = ((Ha = a.eventLogs) == null ? void 0 : Ha.enabled)
|
|
61547
|
+
}, []), $i = ((Ha = a.eventLogs) == null ? void 0 : Ha.enabled) === !0, Kr = ((oo = a.eventLogs) == null ? void 0 : oo.showIds) === !0, qi = $.useCallback(
|
|
61548
61548
|
(be) => {
|
|
61549
61549
|
if (!$i) return;
|
|
61550
61550
|
const Re = Kr && be.id ? be.meta ? `${be.id} · ${be.meta}` : be.id : be.meta, Ve = {
|
|
@@ -61574,7 +61574,7 @@ const Cle = ({ label: t, meta: e, level: n = "info" }) => {
|
|
|
61574
61574
|
event_name: mn.event_name,
|
|
61575
61575
|
default_payload: mn.default_payload ?? mn.detail
|
|
61576
61576
|
};
|
|
61577
|
-
return
|
|
61577
|
+
return yle(tt, qi), JSON.stringify({ status: "received" });
|
|
61578
61578
|
}
|
|
61579
61579
|
const st = Ve.replace("render_component_", "");
|
|
61580
61580
|
if (st === "disease_search_results") {
|
|
@@ -61768,7 +61768,7 @@ const Cle = ({ label: t, meta: e, level: n = "info" }) => {
|
|
|
61768
61768
|
Ct.length === 0 && Oe && /* @__PURE__ */ F.jsx("div", { className: "ringg_ai-mt-20 ringg_ai-h-full" }),
|
|
61769
61769
|
Ct.length > 0 && Oe && /* @__PURE__ */ F.jsx("div", { "data-scrollable": "true", ref: Un, className: "ringg_ai-mt-20 ringg_ai-h-full ringg_ai-overflow-y-auto ringg_ai-flex ringg_ai-flex-col", children: /* @__PURE__ */ F.jsx("div", { className: "ringg_ai-mt-auto md:ringg_ai-mt-0 ringg_ai-flex ringg_ai-flex-col ringg_ai-gap-2.5", children: Ct.sort((be, Re) => be.timestamp - Re.timestamp).map((be, Re) => {
|
|
61770
61770
|
var st;
|
|
61771
|
-
return be.kind === "system" ? /* @__PURE__ */ F.jsx(
|
|
61771
|
+
return be.kind === "system" ? /* @__PURE__ */ F.jsx(ble, { label: be.message, meta: be.systemMeta, level: be.systemLevel }, `sys_${be.timestamp}_${Re}`) : be.componentType === "disease_data" && be.componentData ? /* @__PURE__ */ F.jsx(
|
|
61772
61772
|
sle,
|
|
61773
61773
|
{
|
|
61774
61774
|
label: be.componentData.label,
|
|
@@ -61817,9 +61817,9 @@ const Cle = ({ label: t, meta: e, level: n = "info" }) => {
|
|
|
61817
61817
|
/* @__PURE__ */ F.jsx(dG, {}),
|
|
61818
61818
|
!1
|
|
61819
61819
|
] });
|
|
61820
|
-
},
|
|
61820
|
+
}, Sle = ({ config: t }) => {
|
|
61821
61821
|
const [e] = $.useState(() => new Jm({ dynacast: !0, adaptiveStream: !0 }));
|
|
61822
|
-
return /* @__PURE__ */ F.jsx(FR.Provider, { value: e, children: /* @__PURE__ */ F.jsx(
|
|
61822
|
+
return /* @__PURE__ */ F.jsx(FR.Provider, { value: e, children: /* @__PURE__ */ F.jsx(Cle, { config: t, room: e }) });
|
|
61823
61823
|
};
|
|
61824
61824
|
{
|
|
61825
61825
|
const t = "ringg_ai_container";
|
|
@@ -61827,7 +61827,7 @@ const Cle = ({ label: t, meta: e, level: n = "info" }) => {
|
|
|
61827
61827
|
function r(a) {
|
|
61828
61828
|
let s = n.getElementById(t);
|
|
61829
61829
|
s || (s = n.createElement("div"), s.id = t, n.body.appendChild(s)), Iy.createRoot(s).render(
|
|
61830
|
-
/* @__PURE__ */ F.jsx(fr.StrictMode, { children: /* @__PURE__ */ F.jsx(
|
|
61830
|
+
/* @__PURE__ */ F.jsx(fr.StrictMode, { children: /* @__PURE__ */ F.jsx(Sle, { config: a }) })
|
|
61831
61831
|
);
|
|
61832
61832
|
}
|
|
61833
61833
|
e.loadAgent = r;
|