@alxxsck/ai-assistant 3.9.2 → 3.11.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-CN5cO5lL.js → Avatar-CRPIqi4d.js} +3308 -3157
- package/dist/{ChatWidgetContent-vam_rCAz.js → ChatWidgetContent-Dn1ACwFH.js} +4 -4
- package/dist/{MediaVideoPlayer-c33ZaBYE.js → MediaVideoPlayer-DPfwJ3OV.js} +2 -2
- package/dist/{MediaVideoViewer-BQmvzpx0.js → MediaVideoViewer-Ds0sDZ76.js} +3 -3
- package/dist/avatar/AnimationManager.d.ts +10 -0
- package/dist/avatar/Avatar.d.ts +0 -3
- package/dist/avatar/BlendShapeScenario.d.ts +2 -0
- package/dist/avatar/publicAnimations.d.ts +1 -1
- package/dist/avatar/skinMaterial.d.ts +10 -0
- package/dist/bridge-ai-chat-widget.es.js +1 -1
- package/dist/index-DvcCvjP3.js +3157 -0
- package/dist/{mount-Df-vqgr1.js → mount-Dm__YqnT.js} +3 -3
- package/package.json +1 -1
- package/dist/index-gOiy4KzG.js +0 -3062
|
@@ -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-Dm__YqnT.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-DvcCvjP3.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-Ds0sDZ76.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-DPfwJ3OV.js")), nd = rr(() => import("./MediaVideoViewer-Ds0sDZ76.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-DvcCvjP3.js";
|
|
4
|
+
import { x as ko } from "./mount-Dm__YqnT.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-DPfwJ3OV.js";
|
|
5
|
+
import { x as g } from "./mount-Dm__YqnT.js";
|
|
6
|
+
import { D as p, X as y } from "./ChatWidgetContent-Dn1ACwFH.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,
|
|
@@ -8,10 +8,12 @@ type AnimationAsset = {
|
|
|
8
8
|
name: string;
|
|
9
9
|
blendShapeScenario?: boolean;
|
|
10
10
|
loop?: boolean;
|
|
11
|
+
preload?: boolean;
|
|
11
12
|
};
|
|
12
13
|
type AnimationAssetsData = {
|
|
13
14
|
mandatory_initial_animations: AnimationAsset[];
|
|
14
15
|
lazy_load_animations: AnimationAsset[];
|
|
16
|
+
idle_rotation?: string[];
|
|
15
17
|
};
|
|
16
18
|
type InitialAnimationAssets = {
|
|
17
19
|
animationData: AnimationAssetsData;
|
|
@@ -38,6 +40,11 @@ export default class AnimationManager {
|
|
|
38
40
|
private latestActionRequest;
|
|
39
41
|
private pendingActionLoads;
|
|
40
42
|
private idleFallbackPending;
|
|
43
|
+
private idleRotation;
|
|
44
|
+
private idleQueue;
|
|
45
|
+
private eyelids;
|
|
46
|
+
private closedEyelid;
|
|
47
|
+
private blinkApplied;
|
|
41
48
|
private lipSyncActive;
|
|
42
49
|
private lipSyncTarget;
|
|
43
50
|
private lipSyncWeight;
|
|
@@ -57,6 +64,9 @@ export default class AnimationManager {
|
|
|
57
64
|
private onLoadAnimation;
|
|
58
65
|
private fadeDuration;
|
|
59
66
|
hasAction(name: string): boolean;
|
|
67
|
+
private nextIdleName;
|
|
68
|
+
private prepareNextIdle;
|
|
69
|
+
resumeIdle(): Promise<void>;
|
|
60
70
|
fadeToAction(name: string): Promise<void>;
|
|
61
71
|
applyActiveActionBlendShapeScenario(): void;
|
|
62
72
|
setLipSyncTarget(mouthOpen: number, activeViseme: Viseme | null): void;
|
package/dist/avatar/Avatar.d.ts
CHANGED
|
@@ -70,10 +70,7 @@ export declare class Avatar extends EventTarget {
|
|
|
70
70
|
waitForCriticalAssets(): Promise<void>;
|
|
71
71
|
private SPEAKING_ANIMATION_NAME_1;
|
|
72
72
|
private SPEAKING_ANIMATION_NAME_2;
|
|
73
|
-
private IDLE_ANIMATION_NAME_1;
|
|
74
|
-
private IDLE_ANIMATION_NAME_2;
|
|
75
73
|
private speakingAnimationName;
|
|
76
|
-
private idleAnimationName;
|
|
77
74
|
private talkingRequested;
|
|
78
75
|
private talkingApplied;
|
|
79
76
|
private lipSyncUnderrunTimer;
|
|
@@ -10,6 +10,8 @@ type BlendShapeScenarioData = {
|
|
|
10
10
|
export declare class BlendShapeScenario {
|
|
11
11
|
private head;
|
|
12
12
|
private timeline;
|
|
13
|
+
private blink;
|
|
14
|
+
get blinkWeight(): number;
|
|
13
15
|
private morphingInfluences;
|
|
14
16
|
constructor(data: BlendShapeScenarioData, head: Mesh, loop?: boolean);
|
|
15
17
|
play(): void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const EXTERNALLY_AVAILABLE_ACTIONS: readonly ["deposit", "excited", "fix_hair", "kiss", "spin", "win_small"];
|
|
1
|
+
export declare const EXTERNALLY_AVAILABLE_ACTIONS: readonly ["everyday_idle_adjust_clothes", "everyday_idle_adjust_hair", "everyday_idle_breath_deep", "everyday_idle_check_nails", "everyday_idle_crossed_arms", "everyday_idle_hair_tuck_behind_ear", "everyday_idle_hands_on_hips", "everyday_idle_head_tilt_curious", "everyday_idle_look_around", "everyday_idle_look_left", "everyday_idle_look_right", "everyday_idle_look_up", "everyday_idle_neutral_a", "everyday_idle_neutral_b", "everyday_idle_shift_arms", "everyday_idle_sigh", "everyday_idle_step_back_relax", "everyday_idle_weight_shift_left", "everyday_idle_weight_shift_right", "everyday_idle_wrist_stretch", "everyday_gesture_annoyed", "everyday_gesture_arms_open_explain", "everyday_gesture_clapping_long", "everyday_gesture_clapping_long_loop", "everyday_gesture_clapping_short", "everyday_gesture_confident_pose", "everyday_gesture_disappointed", "everyday_gesture_excited", "everyday_gesture_face_touch", "everyday_gesture_hand_wave_talk", "everyday_gesture_hands_crossed_talk", "everyday_gesture_laugh_big", "everyday_gesture_laugh_light", "everyday_gesture_nod_yes", "everyday_gesture_pensive", "everyday_gesture_point_front", "everyday_gesture_point_left", "everyday_gesture_point_right", "everyday_gesture_point_up", "everyday_gesture_shake_no", "everyday_gesture_shrug_shoulders", "everyday_gesture_surprised", "everyday_action_adjust_bag_strap", "everyday_action_adjust_necklace", "everyday_action_brush_off_clothes", "everyday_action_check_mirror", "everyday_action_check_phone_a", "everyday_action_check_phone_b", "everyday_action_cough_polite", "everyday_action_cross_legs_standing", "everyday_action_fix_sleeve", "everyday_action_hand_on_chest_relief", "everyday_action_light_stretch_back", "everyday_action_look_at_watch", "everyday_action_look_behind_left", "everyday_action_look_behind_right", "everyday_action_pick_up_object_small", "everyday_action_scratch_head", "everyday_action_sit_down_chair", "everyday_action_sit_down_chair_loop", "everyday_action_sneeze_short", "everyday_action_stand_up_chair", "everyday_action_take_photo_phone", "everyday_action_take_sip_bottle", "everyday_action_tap_foot_waiting", "everyday_action_touch_earphone", "everyday_action_wave_goodbye", "everyday_action_wave_hello", "everyday_action_yawn_stretch", "everyday_reaction_angry_talk", "everyday_reaction_cheering", "everyday_reaction_disgust_slight", "everyday_reaction_embarrassed_face_cover", "everyday_reaction_excited_jump", "everyday_reaction_fear_step_back", "everyday_reaction_friendly_wave", "everyday_reaction_frustrated_gesture", "everyday_reaction_hands_on_face_shock", "everyday_reaction_oh_no_hands_to_head", "everyday_reaction_sad_tear_wipe", "everyday_reaction_shocked_step_back", "everyday_reaction_sigh_disbelief", "everyday_reaction_thinking", "everyday_reaction_thumbs_down", "everyday_reaction_thumbs_up", "everyday_reaction_to_angry_talk_a", "everyday_reaction_to_angry_talk_b", "dance_samba", "gesture_blow_kiss", "gesture_bashful", "gesture_catwalk_left", "gesture_catwalk_right", "gesture_wave", "squat_air", "squat_bent_arms", "deposit", "excited", "fix_hair", "kiss", "spin", "win_small"];
|
|
2
2
|
export type ExternallyAvailableActions = (typeof EXTERNALLY_AVAILABLE_ACTIONS)[number];
|
|
3
3
|
export declare function isExternallyAvailableAction(value: string): value is ExternallyAvailableActions;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { MeshStandardMaterial } from "three";
|
|
2
|
+
/**
|
|
3
|
+
* Adds Lola's subtle skin surface without modifying her painted complexion.
|
|
4
|
+
* Bind-pose coordinates keep detail attached to the animated mesh; derivatives
|
|
5
|
+
* fade it out below pixel size. The colour mask targets this avatar's warm skin
|
|
6
|
+
* and suppresses the effect on lipstick and the dark leather sharing its atlas.
|
|
7
|
+
* The warm diffuse wrap is a stylized scattering approximation, not physical SSS.
|
|
8
|
+
* Shader chunk hooks are validated by the real WebGL avatar browser test.
|
|
9
|
+
*/
|
|
10
|
+
export declare function configureAvatarSkin(material: MeshStandardMaterial): void;
|