@xpert-ai/chatkit-ui5 0.18.1 → 0.18.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/index.js CHANGED
@@ -47,7 +47,7 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
47
47
  var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
48
48
  var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
49
49
  var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
50
- var _a, _b, _setTrainingOptOut_dec, _hideHistory_dec, _showHistory_dec, _sendCustomAction_dec, _shareThread_dec, _focusMessage_dec, _prepareLeave_dec, _setThreadId_dec, _setRuntimeCapabilities_dec, _setComposerValue_dec, _sendUserMessage_dec, _fetchUpdates_dec, _focusComposer_dec, _c, _opts, _frameUrl, _frame, _wrapper, _windowDrag, _launcherCloseButton, _launcherOpen, _chatMinimizedToPet, _framePetOptionsOverride, _petClosedByContextMenu, _shadow, _petOverlay, _resolveLoaded, _loaded, _channelId, _messenger, _ChatKitElementBase_instances, emitAndThrow_fn, setOptionsDataAttributes_fn, getDisplayMode_fn, getConfiguredPetOptions_fn, mergeConfiguredPetPositionDefaults_fn, getOverlayPetOptions_fn, resolvePetAssetUrl_fn, resolveOverlayPetOptions_fn, getFrameOptions_fn, setLauncherOpen_fn, setChatMinimizedToPet_fn, syncPetOverlayOptions_fn, handlePetActivate_fn, handlePetClose_fn, handlePetReply_fn, handlePetThreadSummaryActivate_fn, _handleLauncherClose, getFrameUrl_fn, setFrameUrl_fn, consumeFrameUrl_fn, _handleFrameLoad, _initialized, maybeInit_fn, _init;
50
+ var _a, _b, _setTrainingOptOut_dec, _hideHistory_dec, _showHistory_dec, _sendCustomAction_dec, _shareThread_dec, _focusMessage_dec, _prepareLeave_dec, _setThreadId_dec, _setRuntimeCapabilities_dec, _setComposerValue_dec, _sendUserMessage_dec, _fetchUpdates_dec, _focusComposer_dec, _c, _opts, _frameUrl, _frame, _wrapper, _windowDrag, _launcherCloseButton, _launcherOpen, _chatMinimizedToPet, _framePetOptionsOverride, _petClosedByContextMenu, _hostLauncherEnabled, _launcherVisible, _shadow, _petOverlay, _resolveLoaded, _loaded, _channelId, _messenger, _ChatKitElementBase_instances, emitAndThrow_fn, setOptionsDataAttributes_fn, getDisplayMode_fn, getConfiguredPetOptions_fn, mergeConfiguredPetPositionDefaults_fn, effectivePet_fn, innerOptions_fn, updateFrameOptions_fn, isLauncherHidden_fn, requestLauncherVisibility_fn, getOverlayPetOptions_fn, resolvePetAssetUrl_fn, resolveOverlayPetOptions_fn, setLauncherOpen_fn, setChatMinimizedToPet_fn, syncPetOverlayOptions_fn, handlePetActivate_fn, handlePetClose_fn, handlePetReply_fn, handlePetThreadSummaryActivate_fn, _handleLauncherClose, getFrameUrl_fn, setFrameUrl_fn, consumeFrameUrl_fn, _handleFrameLoad, _initialized, maybeInit_fn, _init;
51
51
  import { normalizePetOptions, DEFAULT_PET_STORAGE_KEY, resolvePetCharacter, normalizeBoundsPadding, getPinnedPetPosition, clampPetPosition, getPetAssetsBaseUrl } from "@xpert-ai/chatkit-types";
52
52
  class EventEmitter {
53
53
  constructor() {
@@ -1036,6 +1036,7 @@ const PET_SUMMARY_FONT_FAMILY = 'system-ui, -apple-system, BlinkMacSystemFont, "
1036
1036
  const PET_OVERLAY_COPY = {
1037
1037
  "en-US": {
1038
1038
  closePetMenuItem: "Close pet",
1039
+ reopenPet: "Show pet",
1039
1040
  hideMessage: "Hide message",
1040
1041
  expandMessage: "Expand message",
1041
1042
  collapseMessage: "Collapse message",
@@ -1048,6 +1049,7 @@ const PET_OVERLAY_COPY = {
1048
1049
  },
1049
1050
  "zh-CN": {
1050
1051
  closePetMenuItem: "关闭宠物",
1052
+ reopenPet: "显示宠物",
1051
1053
  hideMessage: "隐藏消息",
1052
1054
  expandMessage: "展开消息",
1053
1055
  collapseMessage: "收起消息",
@@ -1258,6 +1260,7 @@ function parseThreadSummaryLogPayload(value) {
1258
1260
  }
1259
1261
  class PetOverlay {
1260
1262
  constructor(root, options) {
1263
+ this.reopenButton = null;
1261
1264
  this.overlayElement = null;
1262
1265
  this.petElement = null;
1263
1266
  this.contextMenuElement = null;
@@ -1505,6 +1508,7 @@ class PetOverlay {
1505
1508
  this.root = root;
1506
1509
  this.onActivate = options == null ? void 0 : options.onActivate;
1507
1510
  this.onClose = options == null ? void 0 : options.onClose;
1511
+ this.onReopen = options == null ? void 0 : options.onReopen;
1508
1512
  this.onReply = options == null ? void 0 : options.onReply;
1509
1513
  this.onThreadSummaryActivate = options == null ? void 0 : options.onThreadSummaryActivate;
1510
1514
  this.connect();
@@ -1548,6 +1552,44 @@ class PetOverlay {
1548
1552
  this.resolveCharacter();
1549
1553
  this.render();
1550
1554
  }
1555
+ setReopenVisible(visible, zIndex) {
1556
+ var _a2, _b2, _c2, _d, _e, _f;
1557
+ if (!visible) {
1558
+ (_a2 = this.reopenButton) == null ? void 0 : _a2.remove();
1559
+ this.reopenButton = null;
1560
+ return;
1561
+ }
1562
+ if (!this.reopenButton) {
1563
+ const button2 = document.createElement("button");
1564
+ button2.type = "button";
1565
+ button2.addEventListener("click", () => {
1566
+ var _a3;
1567
+ return (_a3 = this.onReopen) == null ? void 0 : _a3.call(this);
1568
+ });
1569
+ this.root.append(button2);
1570
+ this.reopenButton = button2;
1571
+ }
1572
+ const button = this.reopenButton;
1573
+ const theme = typeof this.theme === "object" ? this.theme : null;
1574
+ const metrics = getSummaryThemeMetrics(this.theme);
1575
+ button.textContent = this.copy.reopenPet;
1576
+ Object.assign(button.style, {
1577
+ position: "fixed",
1578
+ insetInlineEnd: `${PET_SUMMARY_MARGIN}px`,
1579
+ bottom: `${PET_SUMMARY_MARGIN}px`,
1580
+ zIndex: String(zIndex ?? ((_b2 = normalizePetOptions(true)) == null ? void 0 : _b2.position.zIndex)),
1581
+ pointerEvents: "auto",
1582
+ cursor: "pointer",
1583
+ colorScheme: typeof this.theme === "string" ? this.theme : (theme == null ? void 0 : theme.colorScheme) ?? "light",
1584
+ color: ((_d = (_c2 = theme == null ? void 0 : theme.color) == null ? void 0 : _c2.surface) == null ? void 0 : _d.foreground) ?? "ButtonText",
1585
+ background: ((_f = (_e = theme == null ? void 0 : theme.color) == null ? void 0 : _e.surface) == null ? void 0 : _f.background) ?? "ButtonFace",
1586
+ border: "1px solid ButtonBorder",
1587
+ borderRadius: `${metrics.radius}px`,
1588
+ padding: metrics.padding,
1589
+ fontFamily: metrics.fontFamily,
1590
+ fontSize: `${metrics.bodySize}px`
1591
+ });
1592
+ }
1551
1593
  setState(state) {
1552
1594
  var _a2;
1553
1595
  const previous = this.lastAutoState;
@@ -1611,6 +1653,7 @@ class PetOverlay {
1611
1653
  return;
1612
1654
  }
1613
1655
  this.connected = false;
1656
+ this.setReopenVisible(false);
1614
1657
  this.clearRestingDelayTimer();
1615
1658
  this.clearTimers();
1616
1659
  this.removeDragListeners();
@@ -2518,9 +2561,6 @@ class PetOverlay {
2518
2561
  window.removeEventListener("pointercancel", this.handlePointerUp);
2519
2562
  }
2520
2563
  }
2521
- function getInnerOptions(options) {
2522
- return removeMethods(options);
2523
- }
2524
2564
  function requireCommandCapability(value, context) {
2525
2565
  const command = String(context.name);
2526
2566
  return function(...args) {
@@ -2547,10 +2587,13 @@ class ChatKitElementBase extends (_c = HTMLElement, _focusComposer_dec = [requir
2547
2587
  __privateAdd(this, _chatMinimizedToPet, false);
2548
2588
  __privateAdd(this, _framePetOptionsOverride);
2549
2589
  __privateAdd(this, _petClosedByContextMenu, false);
2590
+ __privateAdd(this, _hostLauncherEnabled, true);
2591
+ __privateAdd(this, _launcherVisible, true);
2550
2592
  __privateAdd(this, _shadow, this.attachShadow({ mode: "open" }));
2551
2593
  __privateAdd(this, _petOverlay, new PetOverlay(__privateGet(this, _shadow), {
2552
2594
  onActivate: () => __privateMethod(this, _ChatKitElementBase_instances, handlePetActivate_fn).call(this),
2553
2595
  onClose: () => __privateMethod(this, _ChatKitElementBase_instances, handlePetClose_fn).call(this),
2596
+ onReopen: () => __privateMethod(this, _ChatKitElementBase_instances, requestLauncherVisibility_fn).call(this, true),
2554
2597
  onReply: (text) => __privateMethod(this, _ChatKitElementBase_instances, handlePetReply_fn).call(this, text),
2555
2598
  onThreadSummaryActivate: (threadId) => void __privateMethod(this, _ChatKitElementBase_instances, handlePetThreadSummaryActivate_fn).call(this, threadId)
2556
2599
  }));
@@ -2743,6 +2786,7 @@ class ChatKitElementBase extends (_c = HTMLElement, _focusComposer_dec = [requir
2743
2786
  }
2744
2787
  connectedCallback() {
2745
2788
  __privateGet(this, _petOverlay).connect();
2789
+ if (__privateGet(this, _opts)) __privateMethod(this, _ChatKitElementBase_instances, syncPetOverlayOptions_fn).call(this);
2746
2790
  const style = document.createElement("style");
2747
2791
  style.textContent = `
2748
2792
  :host {
@@ -3021,19 +3065,26 @@ class ChatKitElementBase extends (_c = HTMLElement, _focusComposer_dec = [requir
3021
3065
  __privateGet(this, _petOverlay).destroy();
3022
3066
  }
3023
3067
  applySanitizedOptions(newOptions) {
3024
- var _a2, _b2;
3068
+ var _a2, _b2, _c2, _d;
3069
+ const sessionChanged = ((_a2 = __privateGet(this, _opts)) == null ? void 0 : _a2.sessionKey) !== newOptions.sessionKey || ((_b2 = __privateGet(this, _opts)) == null ? void 0 : _b2.api.xpertId) !== newOptions.api.xpertId || __privateMethod(this, _ChatKitElementBase_instances, getDisplayMode_fn).call(this) !== __privateMethod(this, _ChatKitElementBase_instances, getDisplayMode_fn).call(this, newOptions);
3070
+ const pet = newOptions.pet;
3071
+ const enabled = typeof pet === "boolean" ? pet : (pet == null ? void 0 : pet.enabled) ?? true;
3072
+ if (sessionChanged || enabled !== __privateGet(this, _hostLauncherEnabled)) {
3073
+ __privateSet(this, _launcherVisible, enabled);
3074
+ }
3075
+ __privateSet(this, _hostLauncherEnabled, enabled);
3076
+ if (sessionChanged) {
3077
+ __privateSet(this, _framePetOptionsOverride, void 0);
3078
+ __privateMethod(this, _ChatKitElementBase_instances, setLauncherOpen_fn).call(this, false);
3079
+ }
3025
3080
  __privateSet(this, _opts, newOptions);
3026
- if (!((_a2 = newOptions.header) == null ? void 0 : _a2.windowDrag)) (_b2 = __privateGet(this, _windowDrag)) == null ? void 0 : _b2.clear();
3081
+ if (!((_c2 = newOptions.header) == null ? void 0 : _c2.windowDrag)) (_d = __privateGet(this, _windowDrag)) == null ? void 0 : _d.clear();
3027
3082
  __privateSet(this, _petClosedByContextMenu, false);
3028
3083
  __privateGet(this, _petOverlay).setLocale(newOptions.locale);
3029
3084
  __privateMethod(this, _ChatKitElementBase_instances, syncPetOverlayOptions_fn).call(this);
3030
3085
  if (__privateGet(this, _initialized)) {
3031
3086
  __privateMethod(this, _ChatKitElementBase_instances, setOptionsDataAttributes_fn).call(this, __privateGet(this, _opts));
3032
- __privateGet(this, _loaded).then(() => {
3033
- __privateGet(this, _messenger).commands.setOptions(
3034
- getInnerOptions(__privateMethod(this, _ChatKitElementBase_instances, getFrameOptions_fn).call(this, newOptions))
3035
- );
3036
- });
3087
+ __privateMethod(this, _ChatKitElementBase_instances, updateFrameOptions_fn).call(this);
3037
3088
  } else {
3038
3089
  __privateMethod(this, _ChatKitElementBase_instances, maybeInit_fn).call(this);
3039
3090
  }
@@ -3125,6 +3176,8 @@ _launcherOpen = new WeakMap();
3125
3176
  _chatMinimizedToPet = new WeakMap();
3126
3177
  _framePetOptionsOverride = new WeakMap();
3127
3178
  _petClosedByContextMenu = new WeakMap();
3179
+ _hostLauncherEnabled = new WeakMap();
3180
+ _launcherVisible = new WeakMap();
3128
3181
  _shadow = new WeakMap();
3129
3182
  _petOverlay = new WeakMap();
3130
3183
  _resolveLoaded = new WeakMap();
@@ -3147,14 +3200,9 @@ setOptionsDataAttributes_fn = function(options) {
3147
3200
  getDisplayMode_fn = function(options = __privateGet(this, _opts)) {
3148
3201
  return (options == null ? void 0 : options.displayMode) === "pet" ? "pet" : "chat";
3149
3202
  };
3150
- getConfiguredPetOptions_fn = function(options = __privateGet(this, _opts)) {
3151
- if (!options) {
3152
- return null;
3153
- }
3154
- if (__privateMethod(this, _ChatKitElementBase_instances, getDisplayMode_fn).call(this, options) === "pet" && !normalizePetOptions(options.pet ?? null)) {
3155
- return typeof options.pet === "object" ? { ...options.pet, enabled: true } : true;
3156
- }
3157
- return options.pet ?? null;
3203
+ getConfiguredPetOptions_fn = function() {
3204
+ if (!__privateGet(this, _opts)) return null;
3205
+ return __privateMethod(this, _ChatKitElementBase_instances, effectivePet_fn).call(this, __privateGet(this, _opts)) ?? (__privateMethod(this, _ChatKitElementBase_instances, getDisplayMode_fn).call(this) === "pet" ? true : null);
3158
3206
  };
3159
3207
  mergeConfiguredPetPositionDefaults_fn = function(pet) {
3160
3208
  if (!pet) {
@@ -3182,9 +3230,41 @@ mergeConfiguredPetPositionDefaults_fn = function(pet) {
3182
3230
  }
3183
3231
  };
3184
3232
  };
3233
+ effectivePet_fn = function(options) {
3234
+ const pet = options.pet;
3235
+ if (options.displayMode !== "pet" || __privateGet(this, _launcherVisible) === __privateGet(this, _hostLauncherEnabled)) {
3236
+ return pet;
3237
+ }
3238
+ return typeof pet === "object" ? { ...pet, enabled: __privateGet(this, _launcherVisible) } : __privateGet(this, _launcherVisible);
3239
+ };
3240
+ innerOptions_fn = function(options) {
3241
+ return removeMethods({
3242
+ ...options,
3243
+ pet: __privateMethod(this, _ChatKitElementBase_instances, effectivePet_fn).call(this, options)
3244
+ });
3245
+ };
3246
+ updateFrameOptions_fn = function() {
3247
+ __privateGet(this, _loaded).then(() => {
3248
+ if (__privateGet(this, _opts))
3249
+ __privateGet(this, _messenger).commands.setOptions(__privateMethod(this, _ChatKitElementBase_instances, innerOptions_fn).call(this, __privateGet(this, _opts)));
3250
+ });
3251
+ };
3252
+ isLauncherHidden_fn = function() {
3253
+ return __privateMethod(this, _ChatKitElementBase_instances, getDisplayMode_fn).call(this) === "pet" && !__privateGet(this, _launcherVisible);
3254
+ };
3255
+ requestLauncherVisibility_fn = function(visible) {
3256
+ __privateSet(this, _launcherVisible, visible);
3257
+ __privateMethod(this, _ChatKitElementBase_instances, syncPetOverlayOptions_fn).call(this);
3258
+ __privateMethod(this, _ChatKitElementBase_instances, updateFrameOptions_fn).call(this);
3259
+ this.dispatchEvent(
3260
+ new CustomEvent("chatkit.pet.launcher.visibility.change", {
3261
+ detail: { visible }
3262
+ })
3263
+ );
3264
+ };
3185
3265
  getOverlayPetOptions_fn = function() {
3186
3266
  var _a2;
3187
- if (__privateGet(this, _petClosedByContextMenu) || ((_a2 = __privateGet(this, _opts)) == null ? void 0 : _a2.pet) === false && __privateMethod(this, _ChatKitElementBase_instances, getDisplayMode_fn).call(this) !== "pet") {
3267
+ if (__privateMethod(this, _ChatKitElementBase_instances, isLauncherHidden_fn).call(this) || __privateGet(this, _petClosedByContextMenu) || ((_a2 = __privateGet(this, _opts)) == null ? void 0 : _a2.pet) === false && __privateMethod(this, _ChatKitElementBase_instances, getDisplayMode_fn).call(this) !== "pet") {
3188
3268
  return null;
3189
3269
  }
3190
3270
  let pet;
@@ -3194,7 +3274,7 @@ getOverlayPetOptions_fn = function() {
3194
3274
  pet = __privateMethod(this, _ChatKitElementBase_instances, getConfiguredPetOptions_fn).call(this);
3195
3275
  }
3196
3276
  if (__privateMethod(this, _ChatKitElementBase_instances, getDisplayMode_fn).call(this) === "pet" && !normalizePetOptions(pet ?? null)) {
3197
- pet = true;
3277
+ pet = __privateMethod(this, _ChatKitElementBase_instances, getConfiguredPetOptions_fn).call(this);
3198
3278
  }
3199
3279
  return __privateMethod(this, _ChatKitElementBase_instances, resolveOverlayPetOptions_fn).call(this, pet);
3200
3280
  };
@@ -3229,19 +3309,6 @@ resolveOverlayPetOptions_fn = function(pet) {
3229
3309
  imageRendering: normalized.imageRendering
3230
3310
  };
3231
3311
  };
3232
- getFrameOptions_fn = function(options) {
3233
- const pet = __privateMethod(this, _ChatKitElementBase_instances, getConfiguredPetOptions_fn).call(this, options);
3234
- if (pet === (options.pet ?? null)) {
3235
- return options;
3236
- }
3237
- const nextOptions = { ...options };
3238
- if (pet === null) {
3239
- delete nextOptions.pet;
3240
- } else {
3241
- nextOptions.pet = pet;
3242
- }
3243
- return nextOptions;
3244
- };
3245
3312
  setLauncherOpen_fn = function(open) {
3246
3313
  __privateSet(this, _launcherOpen, open);
3247
3314
  if (open) {
@@ -3260,9 +3327,14 @@ setChatMinimizedToPet_fn = function(minimized) {
3260
3327
  }
3261
3328
  };
3262
3329
  syncPetOverlayOptions_fn = function() {
3263
- var _a2;
3330
+ var _a2, _b2, _c2;
3331
+ if (__privateMethod(this, _ChatKitElementBase_instances, isLauncherHidden_fn).call(this)) __privateMethod(this, _ChatKitElementBase_instances, setLauncherOpen_fn).call(this, false);
3264
3332
  const overlayPetOptions = __privateMethod(this, _ChatKitElementBase_instances, getOverlayPetOptions_fn).call(this);
3265
3333
  __privateGet(this, _petOverlay).setOptions(overlayPetOptions, (_a2 = __privateGet(this, _opts)) == null ? void 0 : _a2.theme);
3334
+ __privateGet(this, _petOverlay).setReopenVisible(
3335
+ __privateMethod(this, _ChatKitElementBase_instances, isLauncherHidden_fn).call(this),
3336
+ typeof ((_b2 = __privateGet(this, _opts)) == null ? void 0 : _b2.pet) === "object" ? (_c2 = __privateGet(this, _opts).pet.position) == null ? void 0 : _c2.zIndex : void 0
3337
+ );
3266
3338
  if (!overlayPetOptions) {
3267
3339
  __privateMethod(this, _ChatKitElementBase_instances, setChatMinimizedToPet_fn).call(this, false);
3268
3340
  }
@@ -3283,14 +3355,14 @@ handlePetActivate_fn = function() {
3283
3355
  __privateGet(this, _loaded).then(() => this.focusComposer()).catch(() => void 0);
3284
3356
  };
3285
3357
  handlePetClose_fn = function() {
3286
- __privateSet(this, _petClosedByContextMenu, true);
3287
- __privateSet(this, _framePetOptionsOverride, null);
3288
- __privateMethod(this, _ChatKitElementBase_instances, setChatMinimizedToPet_fn).call(this, false);
3289
3358
  __privateMethod(this, _ChatKitElementBase_instances, setLauncherOpen_fn).call(this, false);
3290
- __privateGet(this, _petOverlay).setOptions(null);
3291
3359
  if (__privateMethod(this, _ChatKitElementBase_instances, getDisplayMode_fn).call(this) === "pet") {
3360
+ __privateMethod(this, _ChatKitElementBase_instances, requestLauncherVisibility_fn).call(this, false);
3292
3361
  return;
3293
3362
  }
3363
+ __privateSet(this, _petClosedByContextMenu, true);
3364
+ __privateSet(this, _framePetOptionsOverride, null);
3365
+ __privateMethod(this, _ChatKitElementBase_instances, syncPetOverlayOptions_fn).call(this);
3294
3366
  __privateGet(this, _loaded).then(() => __privateGet(this, _messenger).commands.setPetEnabled({ enabled: false })).catch(() => void 0);
3295
3367
  };
3296
3368
  handlePetReply_fn = async function(text) {
@@ -3343,7 +3415,7 @@ maybeInit_fn = function() {
3343
3415
  const frameURL = new URL(__privateMethod(this, _ChatKitElementBase_instances, getFrameUrl_fn).call(this), window.location.origin);
3344
3416
  __privateGet(this, _messenger).setTargetOrigin(frameURL.origin);
3345
3417
  frameURL.hash = encodeBase64({
3346
- options: getInnerOptions(__privateMethod(this, _ChatKitElementBase_instances, getFrameOptions_fn).call(this, __privateGet(this, _opts))),
3418
+ options: __privateMethod(this, _ChatKitElementBase_instances, innerOptions_fn).call(this, __privateGet(this, _opts)),
3347
3419
  referrer: window.location.origin,
3348
3420
  profile: this.profile,
3349
3421
  ...__privateGet(this, _channelId) ? { channelId: __privateGet(this, _channelId) } : {}
@@ -3392,6 +3464,7 @@ const EVENT_HANDLER_MAP = {
3392
3464
  "chatkit.response.start": "onResponseStart",
3393
3465
  "chatkit.log": "onLog",
3394
3466
  "chatkit.thread.change": "onThreadChange",
3467
+ "chatkit.pet.launcher.visibility.change": "onPetLauncherVisibilityChange",
3395
3468
  "chatkit.project.change": "onProjectChange",
3396
3469
  "chatkit.connectors.change": "onConnectorsChange",
3397
3470
  "chatkit.thread.load.start": "onThreadLoadStart",
@@ -3405,6 +3478,7 @@ const UI5_EVENT_NAME_MAP = {
3405
3478
  "chatkit.response.start": "responseStart",
3406
3479
  "chatkit.log": "log",
3407
3480
  "chatkit.thread.change": "threadChange",
3481
+ "chatkit.pet.launcher.visibility.change": "petLauncherVisibilityChange",
3408
3482
  "chatkit.project.change": "projectChange",
3409
3483
  "chatkit.connectors.change": "connectorsChange",
3410
3484
  "chatkit.thread.load.start": "threadLoadStart",
@@ -3471,6 +3545,7 @@ const ChatKit = ControlBase.extend("xpertai.chatkit.ui5.ChatKit", {
3471
3545
  responseStart: { parameters: { detail: { type: "object" } } },
3472
3546
  log: { parameters: { detail: { type: "object" } } },
3473
3547
  threadChange: { parameters: { detail: { type: "object" } } },
3548
+ petLauncherVisibilityChange: { parameters: { detail: { type: "object" } } },
3474
3549
  threadLoadStart: { parameters: { detail: { type: "object" } } },
3475
3550
  threadLoadEnd: { parameters: { detail: { type: "object" } } },
3476
3551
  ready: { parameters: { detail: { type: "object" } } },