@alxxsck/ai-assistant 2.25.0 → 2.25.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.
@@ -1,4 +1,4 @@
1
- import { l as $s } from "./index-BJp4lJPs.js";
1
+ import { l as $s } from "./index-CmFVo5By.js";
2
2
  var Fr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3
3
  const Ul = "182", Hf = 0, bc = 1, Wf = 2, js = 1, Ku = 2, Gr = 3, di = 0, jt = 1, Zn = 2, $n = 0, ur = 1, Ac = 2, Ec = 3, wc = 4, Xf = 5, Ci = 100, qf = 101, Yf = 102, Kf = 103, Zf = 104, $f = 200, jf = 201, Jf = 202, Qf = 203, wo = 204, Ro = 205, ed = 206, td = 207, nd = 208, id = 209, rd = 210, sd = 211, ad = 212, od = 213, ld = 214, Co = 0, Po = 1, Io = 2, dr = 3, Do = 4, Lo = 5, Fo = 6, Uo = 7, xa = 0, cd = 1, ud = 2, Un = 0, Zu = 1, $u = 2, ju = 3, Ju = 4, Qu = 5, eh = 6, th = 7, Rc = "attached", hd = "detached", nh = 300, Oi = 301, pr = 302, aa = 303, No = 304, ya = 306, wt = 1e3, En = 1001, Oo = 1002, Lt = 1003, fd = 1004, Ss = 1005, kt = 1006, La = 1007, Ii = 1008, sn = 1009, ih = 1010, rh = 1011, ts = 1012, Nl = 1013, Bn = 1014, wn = 1015, Jn = 1016, Ol = 1017, Bl = 1018, ns = 1020, sh = 35902, ah = 35899, oh = 1021, lh = 1022, mn = 1023, Qn = 1026, Di = 1027, ch = 1028, kl = 1029, mr = 1030, Vl = 1031, zl = 1033, Js = 33776, Qs = 33777, ea = 33778, ta = 33779, Bo = 35840, ko = 35841, Vo = 35842, zo = 35843, Go = 36196, Ho = 37492, Wo = 37496, Xo = 37488, qo = 37489, Yo = 37490, Ko = 37491, Zo = 37808, $o = 37809, jo = 37810, Jo = 37811, Qo = 37812, el = 37813, tl = 37814, nl = 37815, il = 37816, rl = 37817, sl = 37818, al = 37819, ol = 37820, ll = 37821, cl = 36492, ul = 36494, hl = 36495, fl = 36283, dl = 36284, pl = 36285, ml = 36286, uh = 2200, dd = 2201, pd = 2202, oa = 2300, _l = 2301, Fa = 2302, sr = 2400, ar = 2401, la = 2402, Gl = 2500, md = 2501, _d = 3200, Sa = 0, gd = 1, ci = "", Ue = "srgb", _r = "srgb-linear", ca = "linear", nt = "srgb", Gi = 7680, Cc = 519, vd = 512, xd = 513, yd = 514, Hl = 515, Sd = 516, Md = 517, Wl = 518, Td = 519, Pc = 35044, Ic = "300 es", Fn = 2e3, ua = 2001;
4
4
  function hh(s) {
@@ -1,8 +1,8 @@
1
1
  import { jsxs as A, jsx as u, Fragment as $e } from "react/jsx-runtime";
2
2
  import * as ee from "react";
3
3
  import I, { useRef as C, useCallback as R, useEffect as H, useState as U, useMemo as le, useLayoutEffect as mt, useContext as be, createContext as ke, forwardRef as cr, Fragment as rt, isValidElement as rs, cloneElement as os, createElement as un, useId as pt, useSyncExternalStore as ur, useReducer as as, createRef as ss, memo as ho } from "react";
4
- import { P as Le, u as Te, a as Wt, b as bn, c as dr, d as go, e as wt, C as Ne, N as Rt, f as Ft, V as is, g as ls, h as vo, i as cs, l as bo, S as us, j as fr, m as ds, k as fs, n as mr, M as It, o as ms, p as ps, r as hs, q as gs, s as vs, t as bs, v as ws, w as ys, x as xs, y as Cs, z as Es, A as wo, B as yo, D as Ts, E as Ns, F as ks, G as pr, H as As, I as Ss, J as xt, K as $s, L as Ms, O as Ls, Q as _s, R as Ps, T as Os, U as Rs, W as Fs, X as Is, Y as $t, Z as On } from "./mount-CYPRW0Wg.js";
5
- import { o as Ds, L as Hs, a as Us } from "./index-BJp4lJPs.js";
4
+ import { P as Le, u as Te, a as Wt, b as bn, c as dr, d as go, e as wt, C as Ne, N as Rt, f as Ft, V as is, g as ls, h as vo, i as cs, l as bo, S as us, j as fr, m as ds, k as fs, n as mr, M as It, o as ms, p as ps, r as hs, q as gs, s as vs, t as bs, v as ws, w as ys, x as xs, y as Cs, z as Es, A as wo, B as yo, D as Ts, E as Ns, F as ks, G as pr, H as As, I as Ss, J as xt, K as $s, L as Ms, O as Ls, Q as _s, R as Ps, T as Os, U as Rs, W as Fs, X as Is, Y as $t, Z as On } from "./mount-D5y3aEYe.js";
5
+ import { o as Ds, L as Hs, a as Us } from "./index-CmFVo5By.js";
6
6
  import { createPortal as js } from "react-dom";
7
7
  const zs = (e) => /* @__PURE__ */ ee.createElement("svg", { width: 15, height: 22, viewBox: "0 0 15 22", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ee.createElement("path", { d: "M3 10.5V4.5C3 3.30653 3.47411 2.16193 4.31802 1.31802C5.16193 0.474106 6.30653 0 7.5 0C8.69347 0 9.83807 0.474106 10.682 1.31802C11.5259 2.16193 12 3.30653 12 4.5V10.5C12 11.6935 11.5259 12.8381 10.682 13.682C9.83807 14.5259 8.69347 15 7.5 15C6.30653 15 5.16193 14.5259 4.31802 13.682C3.47411 12.8381 3 11.6935 3 10.5ZM15 10.5C15 10.3011 14.921 10.1103 14.7803 9.96967C14.6397 9.82902 14.4489 9.75 14.25 9.75C14.0511 9.75 13.8603 9.82902 13.7197 9.96967C13.579 10.1103 13.5 10.3011 13.5 10.5C13.5 12.0913 12.8679 13.6174 11.7426 14.7426C10.6174 15.8679 9.0913 16.5 7.5 16.5C5.9087 16.5 4.38258 15.8679 3.25736 14.7426C2.13214 13.6174 1.5 12.0913 1.5 10.5C1.5 10.3011 1.42098 10.1103 1.28033 9.96967C1.13968 9.82902 0.948912 9.75 0.75 9.75C0.551088 9.75 0.360322 9.82902 0.21967 9.96967C0.0790178 10.1103 0 10.3011 0 10.5C0.00228386 12.3586 0.693677 14.1504 1.94048 15.5288C3.18728 16.9072 4.90091 17.7743 6.75 17.9625V21C6.75 21.1989 6.82902 21.3897 6.96967 21.5303C7.11032 21.671 7.30109 21.75 7.5 21.75C7.69891 21.75 7.88968 21.671 8.03033 21.5303C8.17098 21.3897 8.25 21.1989 8.25 21V17.9625C10.0991 17.7743 11.8127 16.9072 13.0595 15.5288C14.3063 14.1504 14.9977 12.3586 15 10.5Z", fill: "white" })), Vs = (e) => /* @__PURE__ */ ee.createElement("svg", { width: 17, height: 22, viewBox: "0 0 17 22", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ee.createElement("path", { d: "M16.2483 20.05C16.1011 20.1838 15.9068 20.2536 15.7082 20.2441C15.5095 20.2346 15.3227 20.1466 15.189 19.9994L12.2902 16.8119C11.2986 17.4511 10.1683 17.8436 8.99395 17.9566V20.995C8.99395 21.1939 8.91494 21.3847 8.77428 21.5253C8.63363 21.666 8.44287 21.745 8.24395 21.745C8.04504 21.745 7.85428 21.666 7.71362 21.5253C7.57297 21.3847 7.49395 21.1939 7.49395 20.995V17.9575C5.64487 17.7694 3.93123 16.9022 2.68443 15.5238C1.43763 14.1454 0.746237 12.3536 0.743953 10.495C0.743953 10.2961 0.822971 10.1053 0.963623 9.96468C1.10428 9.82403 1.29504 9.74501 1.49395 9.74501C1.69287 9.74501 1.88363 9.82403 2.02428 9.96468C2.16494 10.1053 2.24395 10.2961 2.24395 10.495C2.24569 12.0858 2.87839 13.6109 4.00323 14.7357C5.12807 15.8606 6.65319 16.4933 8.24395 16.495C9.3051 16.4981 10.3477 16.2172 11.2636 15.6813L10.223 14.5375C9.53688 14.8735 8.77649 15.0293 8.01351 14.9902C7.25052 14.951 6.51006 14.7183 5.86189 14.3139C5.21372 13.9095 4.67918 13.3467 4.30864 12.6786C3.93811 12.0105 3.74377 11.259 3.74395 10.495V7.4097L0.188953 3.49939C0.0579834 3.35175 -0.00951799 3.15845 0.00108397 2.96138C0.0116859 2.76431 0.0995364 2.57936 0.245589 2.44663C0.391643 2.3139 0.584126 2.24408 0.781309 2.25232C0.978492 2.26056 1.16448 2.34619 1.29895 2.49064L16.299 18.9906C16.4327 19.1378 16.5025 19.3321 16.493 19.5308C16.4835 19.7295 16.3955 19.9162 16.2483 20.05ZM13.9805 14.1316C14.0828 14.1823 14.1954 14.2086 14.3096 14.2085C14.4501 14.2085 14.5878 14.169 14.7069 14.0946C14.8261 14.0202 14.922 13.9138 14.9836 13.7875C15.4869 12.7631 15.7471 11.6364 15.744 10.495C15.744 10.2961 15.6649 10.1053 15.5243 9.96468C15.3836 9.82403 15.1929 9.74501 14.994 9.74501C14.795 9.74501 14.6043 9.82403 14.4636 9.96468C14.323 10.1053 14.244 10.2961 14.244 10.495C14.2466 11.4079 14.0387 12.309 13.6365 13.1285C13.5491 13.3071 13.5363 13.5131 13.6008 13.7013C13.6653 13.8894 13.8019 14.0442 13.9805 14.1316ZM11.4183 11.3922C11.5158 11.4995 11.6422 11.5762 11.7824 11.6131C11.9225 11.65 12.0703 11.6456 12.208 11.6002C12.3456 11.5549 12.4672 11.4707 12.558 11.3577C12.6488 11.2448 12.7049 11.1079 12.7196 10.9638C12.7356 10.808 12.7437 10.6516 12.744 10.495V4.49501C12.7428 3.46146 12.3859 2.45981 11.7333 1.6584C11.0806 0.85698 10.172 0.304654 9.16007 0.0942441C8.14816 -0.116166 7.09467 0.0281652 6.17664 0.502981C5.25861 0.977798 4.53201 1.75415 4.11895 2.70158C4.06128 2.834 4.04308 2.98027 4.06652 3.1228C4.08997 3.26532 4.15408 3.39804 4.25114 3.50501L11.4183 11.3922Z" })), Bs = (e) => /* @__PURE__ */ ee.createElement("svg", { width: 19, height: 17, viewBox: "0 0 19 17", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ee.createElement("path", { d: "M12.5227 3.81607C11.8966 2.45748 10.8252 1.35355 9.48597 0.687157C8.14671 0.0207681 6.61998 -0.168078 5.15872 0.151907C3.69745 0.471891 2.38936 1.2815 1.45116 2.4466C0.512966 3.6117 0.000969112 5.06237 0 6.55826V11.5583C0 11.9727 0.16462 12.3701 0.457646 12.6631C0.750671 12.9561 1.1481 13.1208 1.5625 13.1208H5.63281C6.16643 14.2418 7.00649 15.1889 8.05583 15.8525C9.10517 16.5161 10.3209 16.8692 11.5625 16.8708H16.5625C16.9769 16.8708 17.3743 16.7061 17.6674 16.4131C17.9604 16.1201 18.125 15.7227 18.125 15.3083V10.3083C18.1251 8.73409 17.5593 7.21234 16.5309 6.02056C15.5024 4.82878 14.0799 4.04638 12.5227 3.81607ZM1.875 6.55826C1.875 5.63116 2.14992 4.72488 2.66499 3.95402C3.18006 3.18317 3.91214 2.58236 4.76867 2.22757C5.6252 1.87278 6.5677 1.77996 7.47699 1.96082C8.38627 2.14169 9.2215 2.58813 9.87706 3.24369C10.5326 3.89925 10.9791 4.73448 11.1599 5.64377C11.3408 6.55306 11.248 7.49556 10.8932 8.35209C10.5384 9.20861 9.93759 9.9407 9.16674 10.4558C8.39588 10.9708 7.4896 11.2458 6.5625 11.2458H1.875V6.55826ZM16.25 14.9958H11.5625C10.8125 14.9949 10.0737 14.8145 9.40771 14.4697C8.74173 14.1249 8.16796 13.6256 7.73438 13.0137C9.36318 12.7195 10.8205 11.8202 11.8138 10.4962C12.8071 9.17219 13.2629 7.52154 13.0898 5.87544C14.0125 6.19342 14.8129 6.79144 15.3794 7.58608C15.9459 8.38072 16.2502 9.33236 16.25 10.3083V14.9958Z" }));
8
8
  function xo(e) {
@@ -1,4 +1,4 @@
1
- import { C as A, E as e, S as s, d as E, c } from "./index-BJp4lJPs.js";
1
+ import { C as A, E as e, S as s, d as E, c } from "./index-CmFVo5By.js";
2
2
  export {
3
3
  A as ChatWidgetInstance,
4
4
  e as EXTERNALLY_AVAILABLE_ACTIONS,
@@ -2046,7 +2046,7 @@ class Me extends EventTarget {
2046
2046
  async init(t, e) {
2047
2047
  const [i, { mountWidget: r }] = await Promise.all([
2048
2048
  fetch(`${B}/manifest.json`),
2049
- import("./mount-CYPRW0Wg.js").then((n) => n._)
2049
+ import("./mount-D5y3aEYe.js").then((n) => n._)
2050
2050
  ]);
2051
2051
  if (!i.ok)
2052
2052
  throw new Error(
@@ -1,7 +1,7 @@
1
1
  import { jsx as H, jsxs as lt, Fragment as Ti } from "react/jsx-runtime";
2
2
  import * as R from "react";
3
3
  import Jr, { createContext as Kn, useContext as Pr, useState as he, useRef as q, useMemo as un, useEffect as Y, useCallback as le, useId as Zi, useLayoutEffect as Dn, memo as dl, useSyncExternalStore as eu, Suspense as hl, lazy as fl, Component as pl, createElement as Do } from "react";
4
- import { l as re, L as At, a as ml, n as gl, g as bl, i as Cl, P as yl, S as Il, b as vl, c as Al, o as wl } from "./index-BJp4lJPs.js";
4
+ import { l as re, L as At, a as ml, n as gl, g as bl, i as Cl, P as yl, S as Il, b as vl, c as Al, o as wl } from "./index-CmFVo5By.js";
5
5
  import { createRoot as Sl } from "react-dom/client";
6
6
  function _o(t) {
7
7
  return typeof t == "object" && t != null && "pathname" in t && "search" in t && "hash" in t && "state" in t && "key" in t;
@@ -12712,8 +12712,8 @@ const qc = Kn(void 0), ob = (t, e, n) => new Rh(t, e, n), ab = (t, e, n, r = {},
12712
12712
  (O) => C.submitScenarioChoice(O)
12713
12713
  ), C.channels.chat.on("info", (O) => {
12714
12714
  (O.type === "history_received" || O.type === "history_not_found" || O.type === "confirm_history" || O.type === "reject_history") && I(), (O.type === "history_not_found" || O.type === "reject_history") && re.warn("Realtime history was rejected");
12715
- }), C.channels.chat.on("connect", () => {
12716
- E(), console.info("[CableContext] Connected to the chat channel"), p(C), g();
12715
+ }), C.channels.chat.on("connect", (O) => {
12716
+ O.restored && E(), console.info("[CableContext] Connected to the chat channel"), p(C), g();
12717
12717
  }), C.channels.chat.on("disconnect", (O) => {
12718
12718
  E(), K.getState().actions.clearTransientRealtimeState(), Us(O) && n?.(), l(
12719
12719
  navigator.onLine ? $t.Unavailable : $t.Offline
@@ -18153,7 +18153,7 @@ function iC() {
18153
18153
  });
18154
18154
  let k = null;
18155
18155
  const O = r.onAvatarLoadStarted();
18156
- return import("./Avatar-ClVpkxB1.js").then(({ Avatar: T }) => {
18156
+ return import("./Avatar-Dvgov563.js").then(({ Avatar: T }) => {
18157
18157
  if (I) return;
18158
18158
  const M = {
18159
18159
  ...r,
@@ -19011,7 +19011,7 @@ function BC(t) {
19011
19011
  ...t.kind === "INFO" && t.message.ordinal !== void 0 ? { presentationOrdinal: t.message.ordinal } : {}
19012
19012
  };
19013
19013
  }
19014
- const VC = 250, zC = fl(() => import("./ChatWidgetContent-CUihYTzy.js")), GC = (t) => {
19014
+ const VC = 250, zC = fl(() => import("./ChatWidgetContent-Bz5AjlS4.js")), GC = (t) => {
19015
19015
  const e = /* @__PURE__ */ new Set(), n = t.getSnapshot(), r = new Set(
19016
19016
  [n.active, ...n.queue].flatMap(
19017
19017
  (s) => s?.messageId ? [s.messageId] : []
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@alxxsck/ai-assistant",
3
3
  "private": false,
4
- "version": "2.25.0",
4
+ "version": "2.25.1",
5
5
  "description": "Embeddable Lola AI assistant library",
6
6
  "type": "module",
7
7
  "main": "dist/bridge-ai-chat-widget.es.js",