@alxxsck/ai-assistant 2.24.0 → 2.24.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/README.md +12 -24
- package/dist/{Avatar-C6dvOio6.js → Avatar-ClVpkxB1.js} +1 -1
- package/dist/{ChatWidgetContent-BYZ7Qq06.js → ChatWidgetContent-CUihYTzy.js} +1523 -1534
- package/dist/bridge-ai-chat-widget.es.js +1 -1
- package/dist/domain/compact-preview/CompactPreviewController.d.ts +0 -7
- package/dist/i18n/messages.d.ts +0 -2
- package/dist/{index-WDFSbfaV.js → index-BJp4lJPs.js} +2 -2
- package/dist/index.types.d.ts +0 -9
- package/dist/{mount-CXUq37eu.js → mount-CYPRW0Wg.js} +3415 -3554
- package/dist/ui/components/CompactPreviewSurface.d.ts +1 -2
- package/dist/ui/components/CompactScenarioPreview.d.ts +0 -3
- package/package.json +1 -1
- package/dist/ui/hooks/useAttentionInterruption.d.ts +0 -1
package/README.md
CHANGED
|
@@ -91,30 +91,15 @@ recreating the public widget instance.
|
|
|
91
91
|
|
|
92
92
|
## Compact scenario preview
|
|
93
93
|
|
|
94
|
-
Compact
|
|
95
|
-
|
|
94
|
+
Compact presentation is automatic and is not controlled by host configuration.
|
|
95
|
+
When the chat is closed, a new eligible Scenario message, question, or CTA appears
|
|
96
|
+
next to the launcher. When the chat is already open, or a Scenario explicitly
|
|
97
|
+
opens it first, the same content is rendered only in the chat. Hiding the complete
|
|
98
|
+
assistant chrome also hides and clears the compact surface.
|
|
96
99
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
compactScenarioPreview: {
|
|
101
|
-
enabled: true,
|
|
102
|
-
storageNamespace: "casino-web/lola-main",
|
|
103
|
-
},
|
|
104
|
-
});
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
The namespace scopes the persisted launcher dock and panel geometry, so two
|
|
108
|
-
widgets on the same origin never inherit each other's placement. TypeScript
|
|
109
|
-
requires it when the feature is enabled; JavaScript callers that omit it or pass
|
|
110
|
-
only whitespace still get the preview, but layout persistence is disabled. With
|
|
111
|
-
the option omitted or `enabled: false`, scenario messages retain their existing
|
|
112
|
-
in-chat behavior and the legacy origin-wide layout persistence remains unchanged.
|
|
113
|
-
When compact preview is first enabled, the first stable namespace on the origin
|
|
114
|
-
claims and copies the legacy layout once; other namespaces start from defaults.
|
|
115
|
-
The synchronous migration marker is deterministic within one document and
|
|
116
|
-
best-effort if separate tabs initialize different namespaces at exactly the same
|
|
117
|
-
time; persisted scoped layouts remain isolated in either case.
|
|
100
|
+
Launcher docking and panel geometry use the widget's existing origin-scoped
|
|
101
|
+
persistence. Host applications do not decide which presentation surface a
|
|
102
|
+
Scenario uses.
|
|
118
103
|
|
|
119
104
|
## Localization
|
|
120
105
|
|
|
@@ -315,12 +300,15 @@ surface. Remove these constructor properties from integrations:
|
|
|
315
300
|
- `apiUrl`, `wsUrl`
|
|
316
301
|
- `AIAvatar`, `background`, `footer`, `voiceEnabled`, `voiceConfig`
|
|
317
302
|
- `manualOpen`, `avatarDebug`, `uiTargets`, `commandHandlers`
|
|
303
|
+
- `compactScenarioPreview`
|
|
318
304
|
|
|
319
305
|
Replace `manualOpen` with `hideOpenButton: true` only when the standard launcher
|
|
320
306
|
must be hidden. Remove calls to `playAnimation`, `executeReaction`,
|
|
321
307
|
`sendServiceMessage`, `registerUiTarget`, and
|
|
322
308
|
`registerCommandHandler`. Backend commands retain the supported assistant
|
|
323
|
-
behaviour internally.
|
|
309
|
+
behaviour internally. Remove `compactScenarioPreview` without replacement: the
|
|
310
|
+
SDK automatically renders eligible Scenario content as a compact preview only
|
|
311
|
+
while the chat is closed, and renders it in the full chat while the chat is open.
|
|
324
312
|
|
|
325
313
|
The repository ships only the library build. It no longer contains an app-mode
|
|
326
314
|
HTML entry, local session creation, remote JSON widget configs, a debug GUI,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as $s } from "./index-
|
|
1
|
+
import { l as $s } from "./index-BJp4lJPs.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) {
|