@alxxsck/ai-assistant 3.11.0 → 3.13.0
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/{Avatar-CRPIqi4d.js → Avatar-HFE16OJf.js} +5 -5
- package/dist/{ChatWidgetContent-Dn1ACwFH.js → ChatWidgetContent-UzqVe7xI.js} +4 -4
- package/dist/{MediaVideoPlayer-DPfwJ3OV.js → MediaVideoPlayer-B5Q_NhOD.js} +2 -2
- package/dist/{MediaVideoViewer-Ds0sDZ76.js → MediaVideoViewer-DrY4wjfx.js} +3 -3
- package/dist/bridge-ai-chat-widget.es.js +1 -1
- package/dist/domain/command/CommandRuntime.d.ts +2 -1
- package/dist/domain/ui/widget-geometry.d.ts +2 -2
- package/dist/{index-DvcCvjP3.js → index-BnH6SD6u.js} +64 -54
- package/dist/{mount-Dm__YqnT.js → mount-DfRJnLCL.js} +6713 -6661
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as Fi } from "./index-
|
|
1
|
+
import { l as Fi } from "./index-BnH6SD6u.js";
|
|
2
2
|
var Fr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
3
3
|
const Ic = "182", Dd = 0, Ml = 1, Fd = 2, Jr = 1, Nd = 2, Xr = 3, ni = 0, Kt = 1, Dn = 2, ei = 0, hr = 1, Tl = 2, Al = 3, El = 4, Ud = 5, Li = 100, Od = 101, kd = 102, Bd = 103, zd = 104, Hd = 200, Gd = 201, Vd = 202, Wd = 203, So = 204, yo = 205, Xd = 206, jd = 207, qd = 208, Kd = 209, Yd = 210, Jd = 211, Qd = 212, Zd = 213, $d = 214, Mo = 0, To = 1, Ao = 2, mr = 3, Eo = 4, wo = 5, Ro = 6, Co = 7, Lc = 0, ef = 1, tf = 2, On = 0, Qu = 1, Zu = 2, $u = 3, eh = 4, th = 5, nh = 6, Dc = 7, wl = "attached", nf = "detached", ih = 300, Hi = 301, _r = 302, Po = 303, Io = 304, ga = 306, Nt = 1e3, Nn = 1001, ra = 1002, Tt = 1003, rh = 1004, jr = 1005, At = 1006, Ys = 1007, Zn = 1008, tn = 1009, sh = 1010, ah = 1011, rs = 1012, Fc = 1013, Bn = 1014, hn = 1015, ii = 1016, Nc = 1017, Uc = 1018, ss = 1020, oh = 35902, ch = 35899, lh = 1021, uh = 1022, dn = 1023, ri = 1026, Ni = 1027, Oc = 1028, kc = 1029, gr = 1030, Bc = 1031, zc = 1033, Js = 33776, Qs = 33777, Zs = 33778, $s = 33779, Lo = 35840, Do = 35841, Fo = 35842, No = 35843, Uo = 36196, Oo = 37492, ko = 37496, Bo = 37488, zo = 37489, Ho = 37490, Go = 37491, Vo = 37808, Wo = 37809, Xo = 37810, jo = 37811, qo = 37812, Ko = 37813, Yo = 37814, Jo = 37815, Qo = 37816, Zo = 37817, $o = 37818, ec = 37819, tc = 37820, nc = 37821, ic = 36492, rc = 36494, sc = 36495, ac = 36283, oc = 36284, cc = 36285, lc = 36286, hh = 2200, rf = 2201, sf = 2202, as = 2300, os = 2301, Ca = 2302, cr = 2400, lr = 2401, sa = 2402, Hc = 2500, af = 2501, of = 0, dh = 1, uc = 2, cf = 3200, Gc = 0, lf = 1, qt = "", _t = "srgb", Wt = "srgb-linear", aa = "linear", $e = "srgb", ji = 7680, Rl = 519, uf = 512, hf = 513, df = 514, Vc = 515, ff = 516, pf = 517, Wc = 518, mf = 519, hc = 35044, Cl = "300 es", Un = 2e3, oa = 2001;
|
|
4
4
|
function fh(s) {
|
|
@@ -29591,22 +29591,22 @@ class pS extends EventTarget {
|
|
|
29591
29591
|
cameraParams = {
|
|
29592
29592
|
default: {
|
|
29593
29593
|
position: new N(0, 140, 200),
|
|
29594
|
-
lookAt: new N(
|
|
29594
|
+
lookAt: new N(0, 115, 0),
|
|
29595
29595
|
fov: 35
|
|
29596
29596
|
},
|
|
29597
29597
|
chatSurface: {
|
|
29598
29598
|
position: new N(0, 125, 220),
|
|
29599
|
-
lookAt: new N(
|
|
29599
|
+
lookAt: new N(0, 86, 0),
|
|
29600
29600
|
fov: 50
|
|
29601
29601
|
},
|
|
29602
29602
|
compactAssistant: {
|
|
29603
29603
|
position: new N(0, 140, 200),
|
|
29604
|
-
lookAt: new N(
|
|
29604
|
+
lookAt: new N(0, 122, 0),
|
|
29605
29605
|
fov: 32
|
|
29606
29606
|
},
|
|
29607
29607
|
video: {
|
|
29608
29608
|
position: new N(0, 125, 200),
|
|
29609
|
-
lookAt: new N(
|
|
29609
|
+
lookAt: new N(0, 90, 0),
|
|
29610
29610
|
fov: 48
|
|
29611
29611
|
}
|
|
29612
29612
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as N, jsx as i, Fragment as ye } from "react/jsx-runtime";
|
|
2
2
|
import * as De from "react";
|
|
3
3
|
import ae, { useContext as Be, createContext as it, useId as Et, useState as R, useMemo as ke, useCallback as Q, useEffect as B, useRef as A, useSyncExternalStore as nr, Fragment as bn, useReducer as ya, createRef as Go, useLayoutEffect as Re, Suspense as Un, lazy as rr, memo as xa } from "react";
|
|
4
|
-
import { Y as Fe, K as je, a as ar, y as st, n as Ct, b as _t, o as Ne, c as Xt, s as cn, u as Yt, l as Zt, d as Qt, r as $r, e as qo, t as or, T as Yo, p as Na, f as Ea, g as Ca, h as Xo, O as hn, i as _a, j as pt, k as an, m as Zo, A as Dr, $ as Qo, q as Jo, V as ei, v as fe, w as We, x as de, z as ve, P as Pe, L as me, B as ti, C as ni, S as ka, D as ri, E as ai, F as oi, G as Jt, H as ir, I as Ta, J as sr, M as Ge, N as Se, Q as Lt, R as tt, U as ii, W as si, X as yn, Z as li, _ as lr, a0 as ci, a1 as di, a2 as ui, a3 as Aa, a4 as pi, a5 as hi, a6 as fi, a7 as cr, a8 as mi, a9 as gi, aa as dr, ab as Qe, ac as vi, ad as wi, ae as bi, af as yi, ag as xi, ah as Ni, ai as dn, aj as Ei, ak as nt, al as Ci, am as Sa, an as Ma, ao as _i, ap as ki, aq as Ti, ar as Ai, as as Si, at as Mi, au as La, av as ur, aw as Ra, ax as Li, ay as Ri, az as Ii, aA as Oi, aB as Pi, aC as pr, aD as $i, aE as un, aF as Di, aG as Fi, aH as zi, aI as Ui, aJ as Hi, aK as Vi, aL as Bi, aM as Rt, aN as ji, aO as Mn, aP as Wi, aQ as Pt, aR as Hn } from "./mount-
|
|
5
|
-
import { m as Ki, M as bt, u as Gi, e as qi, o as Yi, g as Xi, L as hr, d as Zi, f as Qi, a as Ji } from "./index-
|
|
4
|
+
import { Y as Fe, K as je, a as ar, y as st, n as Ct, b as _t, o as Ne, c as Xt, s as cn, u as Yt, l as Zt, d as Qt, r as $r, e as qo, t as or, T as Yo, p as Na, f as Ea, g as Ca, h as Xo, O as hn, i as _a, j as pt, k as an, m as Zo, A as Dr, $ as Qo, q as Jo, V as ei, v as fe, w as We, x as de, z as ve, P as Pe, L as me, B as ti, C as ni, S as ka, D as ri, E as ai, F as oi, G as Jt, H as ir, I as Ta, J as sr, M as Ge, N as Se, Q as Lt, R as tt, U as ii, W as si, X as yn, Z as li, _ as lr, a0 as ci, a1 as di, a2 as ui, a3 as Aa, a4 as pi, a5 as hi, a6 as fi, a7 as cr, a8 as mi, a9 as gi, aa as dr, ab as Qe, ac as vi, ad as wi, ae as bi, af as yi, ag as xi, ah as Ni, ai as dn, aj as Ei, ak as nt, al as Ci, am as Sa, an as Ma, ao as _i, ap as ki, aq as Ti, ar as Ai, as as Si, at as Mi, au as La, av as ur, aw as Ra, ax as Li, ay as Ri, az as Ii, aA as Oi, aB as Pi, aC as pr, aD as $i, aE as un, aF as Di, aG as Fi, aH as zi, aI as Ui, aJ as Hi, aK as Vi, aL as Bi, aM as Rt, aN as ji, aO as Mn, aP as Wi, aQ as Pt, aR as Hn } from "./mount-DfRJnLCL.js";
|
|
5
|
+
import { m as Ki, M as bt, u as Gi, e as qi, o as Yi, g as Xi, L as hr, d as Zi, f as Qi, a as Ji } from "./index-BnH6SD6u.js";
|
|
6
6
|
import { createPortal as Ia } from "react-dom";
|
|
7
7
|
let es = "span";
|
|
8
8
|
var fn = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(fn || {});
|
|
@@ -2619,7 +2619,7 @@ function Xc(e, t) {
|
|
|
2619
2619
|
}
|
|
2620
2620
|
return Yc(y, a, r.length, _, k), y;
|
|
2621
2621
|
}
|
|
2622
|
-
const Zc = rr(() => import("./MediaVideoViewer-
|
|
2622
|
+
const Zc = rr(() => import("./MediaVideoViewer-DrY4wjfx.js"));
|
|
2623
2623
|
function Qc({
|
|
2624
2624
|
entitlementId: e,
|
|
2625
2625
|
previewUrl: t,
|
|
@@ -3164,7 +3164,7 @@ function ed({
|
|
|
3164
3164
|
)
|
|
3165
3165
|
] });
|
|
3166
3166
|
}
|
|
3167
|
-
const td = rr(() => import("./MediaVideoPlayer-
|
|
3167
|
+
const td = rr(() => import("./MediaVideoPlayer-B5Q_NhOD.js")), nd = rr(() => import("./MediaVideoViewer-DrY4wjfx.js"));
|
|
3168
3168
|
function rd({ messageId: e }) {
|
|
3169
3169
|
const { config: t, api: n } = We(), { t: r } = de(), a = t.customerInteractionSession.accessToken, [o, s] = R(), [c, d] = R(""), l = A(null), [f, u] = R(!0), p = `${a}:${e}`, [h, m] = R(!1), [v, b] = R(0), [T, g] = R(""), [E, y] = R(""), [k, _] = R(!1), x = o?.token === a && o.messageId === e ? o.photo : void 0, I = x?.state === "UNLOCKED" && E !== p && (!x.deadline || performance.now() < x.deadline) && (!x.localExpiresAt || Date.now() < x.localExpiresAt) ? x.original?.url : void 0;
|
|
3170
3170
|
B(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as As, jsx as ot } from "react/jsx-runtime";
|
|
2
2
|
import w, { useRef as Ei, useEffect as vi, useLayoutEffect as Ts } from "react";
|
|
3
|
-
import { S as So } from "./index-
|
|
4
|
-
import { x as ko } from "./mount-
|
|
3
|
+
import { S as So } from "./index-BnH6SD6u.js";
|
|
4
|
+
import { x as ko } from "./mount-DfRJnLCL.js";
|
|
5
5
|
const Lo = /* @__PURE__ */ new Set([
|
|
6
6
|
"style",
|
|
7
7
|
"children",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { createPortal as h } from "react-dom";
|
|
3
3
|
import { useRef as b, useState as c, useEffect as w } from "react";
|
|
4
|
-
import x from "./MediaVideoPlayer-
|
|
5
|
-
import { x as g } from "./mount-
|
|
6
|
-
import { D as p, X as y } from "./ChatWidgetContent-
|
|
4
|
+
import x from "./MediaVideoPlayer-B5Q_NhOD.js";
|
|
5
|
+
import { x as g } from "./mount-DfRJnLCL.js";
|
|
6
|
+
import { D as p, X as y } from "./ChatWidgetContent-UzqVe7xI.js";
|
|
7
7
|
const k = ".lola-video-viewer{position:fixed;inset:0;margin:auto;border:0;padding:0;width:min(100vw,1100px);height:100dvh;max-width:100vw;max-height:100dvh;background:#101217;color:#fff;font:14px/1.4 system-ui,sans-serif;display:flex;flex-direction:column;overscroll-behavior:contain;opacity:1;transform:translateY(0);transition:opacity .18s var(--chat-ease-out, cubic-bezier(.23, 1, .32, 1)),transform .18s var(--chat-ease-out, cubic-bezier(.23, 1, .32, 1))}@starting-style{.lola-video-viewer[open]{opacity:0;transform:translateY(6px)}}.lola-video-viewer::backdrop{background:#080a10eb}.lola-video-viewer header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;padding-top:max(12px,env(safe-area-inset-top));gap:12px}.lola-video-viewer header>div{display:flex;gap:8px}.lola-video-viewer button,.lola-video-viewer a{display:inline-flex;align-items:center;justify-content:center;background:#ffffff12;border:0;border-radius:50%;color:#fff;width:44px;height:44px;cursor:pointer}.lola-video-viewer button:focus-visible,.lola-video-viewer a:focus-visible{outline:2px solid white;outline-offset:2px}.lola-video-viewer main{flex:1;min-height:0;padding-bottom:env(safe-area-inset-bottom)}.lola-video-viewer p{padding:8px 16px}@media(prefers-reduced-motion:reduce){.lola-video-viewer{transition:opacity .12s ease;transform:none}@starting-style{.lola-video-viewer[open]{transform:none}}}";
|
|
8
8
|
function P({
|
|
9
9
|
src: f,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { CustomerInteractionSession } from "@/types";
|
|
2
2
|
import { type CommandAck, type CommandEnvelope, type CommandEventDetail, type CtaActionExecutionResult, type CtaCommandContext, type HostCommandHandlerName, type HostCommandHandlers, type SpeakTextCommandContext, type StartVoiceConversationCommandContext, type UiActionPresentationSnapshot, type UiActionPolicies, type UiTarget } from "./command.types";
|
|
3
|
+
import type { AssistantOpenSurfaceMode } from "@/domain/ui/assistant-surface";
|
|
3
4
|
import type { ScenarioInteractionRuntime } from "@/domain/scenario-interaction/ScenarioInteractionRuntime";
|
|
4
5
|
type AckSender = (ack: CommandAck) => Promise<unknown>;
|
|
5
6
|
type UiActionInvocation = "COMMAND" | "CTA";
|
|
@@ -8,7 +9,7 @@ type UiActionPresentationHandoff = {
|
|
|
8
9
|
cancel: () => void;
|
|
9
10
|
};
|
|
10
11
|
type InternalHandlers = {
|
|
11
|
-
setAssistantVisible?: (visible: boolean, commandId: string) => void
|
|
12
|
+
setAssistantVisible?: (visible: boolean, commandId: string, mode?: AssistantOpenSurfaceMode) => void | Promise<void>;
|
|
12
13
|
setChatOpen?: (open: boolean, commandId: string) => void | Promise<void>;
|
|
13
14
|
playAnimation?: (animation: string, expiresAt?: string | null) => void | Promise<void>;
|
|
14
15
|
showCta?: (context: CtaCommandContext) => void;
|
|
@@ -19,7 +19,7 @@ export type DockedLauncher = {
|
|
|
19
19
|
side: LauncherSide;
|
|
20
20
|
yRatio: number;
|
|
21
21
|
};
|
|
22
|
-
export type CompactPreviewPlacement = "above" | "below";
|
|
22
|
+
export type CompactPreviewPlacement = "left" | "above" | "below";
|
|
23
23
|
export type CompactPreviewLayout = {
|
|
24
24
|
x: number;
|
|
25
25
|
y: number;
|
|
@@ -65,5 +65,5 @@ export declare function clampPanelRect(rect: Rect, viewport: Viewport): Rect;
|
|
|
65
65
|
export declare function dockPanelRect(rect: Rect, viewport: Viewport): Rect;
|
|
66
66
|
export declare function dockPanelRectToSide(rect: Rect, viewport: Viewport, side: LauncherSide): Rect;
|
|
67
67
|
export declare function placePanelFromLauncher(launcher: Point, size: Size, viewport: Viewport): Rect;
|
|
68
|
-
export declare function placeCompactPreview(launcher: Point
|
|
68
|
+
export declare function placeCompactPreview(launcher: Point & Partial<Size>, measuredSize: Size, viewport: Viewport, side: LauncherSide, avoidRect?: Rect | null): CompactPreviewLayout;
|
|
69
69
|
export declare function resizePanelFromTopCorner(start: Rect, delta: Point, corner: "northWest" | "northEast", viewport: Viewport): Rect;
|