@xpert-ai/chatkit-ui5 0.18.1 → 0.18.2

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/chatkit.cjs CHANGED
@@ -48,7 +48,7 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
48
48
  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);
49
49
  var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
50
50
  var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
51
- 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;
51
+ 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;
52
52
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
53
53
  const chatkitTypes = require("@xpert-ai/chatkit-types");
54
54
  class EventEmitter {
@@ -1038,6 +1038,7 @@ const PET_SUMMARY_FONT_FAMILY = 'system-ui, -apple-system, BlinkMacSystemFont, "
1038
1038
  const PET_OVERLAY_COPY = {
1039
1039
  "en-US": {
1040
1040
  closePetMenuItem: "Close pet",
1041
+ reopenPet: "Show pet",
1041
1042
  hideMessage: "Hide message",
1042
1043
  expandMessage: "Expand message",
1043
1044
  collapseMessage: "Collapse message",
@@ -1050,6 +1051,7 @@ const PET_OVERLAY_COPY = {
1050
1051
  },
1051
1052
  "zh-CN": {
1052
1053
  closePetMenuItem: "关闭宠物",
1054
+ reopenPet: "显示宠物",
1053
1055
  hideMessage: "隐藏消息",
1054
1056
  expandMessage: "展开消息",
1055
1057
  collapseMessage: "收起消息",
@@ -1260,6 +1262,7 @@ function parseThreadSummaryLogPayload(value) {
1260
1262
  }
1261
1263
  class PetOverlay {
1262
1264
  constructor(root, options) {
1265
+ this.reopenButton = null;
1263
1266
  this.overlayElement = null;
1264
1267
  this.petElement = null;
1265
1268
  this.contextMenuElement = null;
@@ -1507,6 +1510,7 @@ class PetOverlay {
1507
1510
  this.root = root;
1508
1511
  this.onActivate = options == null ? void 0 : options.onActivate;
1509
1512
  this.onClose = options == null ? void 0 : options.onClose;
1513
+ this.onReopen = options == null ? void 0 : options.onReopen;
1510
1514
  this.onReply = options == null ? void 0 : options.onReply;
1511
1515
  this.onThreadSummaryActivate = options == null ? void 0 : options.onThreadSummaryActivate;
1512
1516
  this.connect();
@@ -1550,6 +1554,44 @@ class PetOverlay {
1550
1554
  this.resolveCharacter();
1551
1555
  this.render();
1552
1556
  }
1557
+ setReopenVisible(visible, zIndex) {
1558
+ var _a2, _b2, _c2, _d, _e, _f;
1559
+ if (!visible) {
1560
+ (_a2 = this.reopenButton) == null ? void 0 : _a2.remove();
1561
+ this.reopenButton = null;
1562
+ return;
1563
+ }
1564
+ if (!this.reopenButton) {
1565
+ const button2 = document.createElement("button");
1566
+ button2.type = "button";
1567
+ button2.addEventListener("click", () => {
1568
+ var _a3;
1569
+ return (_a3 = this.onReopen) == null ? void 0 : _a3.call(this);
1570
+ });
1571
+ this.root.append(button2);
1572
+ this.reopenButton = button2;
1573
+ }
1574
+ const button = this.reopenButton;
1575
+ const theme = typeof this.theme === "object" ? this.theme : null;
1576
+ const metrics = getSummaryThemeMetrics(this.theme);
1577
+ button.textContent = this.copy.reopenPet;
1578
+ Object.assign(button.style, {
1579
+ position: "fixed",
1580
+ insetInlineEnd: `${PET_SUMMARY_MARGIN}px`,
1581
+ bottom: `${PET_SUMMARY_MARGIN}px`,
1582
+ zIndex: String(zIndex ?? ((_b2 = chatkitTypes.normalizePetOptions(true)) == null ? void 0 : _b2.position.zIndex)),
1583
+ pointerEvents: "auto",
1584
+ cursor: "pointer",
1585
+ colorScheme: typeof this.theme === "string" ? this.theme : (theme == null ? void 0 : theme.colorScheme) ?? "light",
1586
+ color: ((_d = (_c2 = theme == null ? void 0 : theme.color) == null ? void 0 : _c2.surface) == null ? void 0 : _d.foreground) ?? "ButtonText",
1587
+ background: ((_f = (_e = theme == null ? void 0 : theme.color) == null ? void 0 : _e.surface) == null ? void 0 : _f.background) ?? "ButtonFace",
1588
+ border: "1px solid ButtonBorder",
1589
+ borderRadius: `${metrics.radius}px`,
1590
+ padding: metrics.padding,
1591
+ fontFamily: metrics.fontFamily,
1592
+ fontSize: `${metrics.bodySize}px`
1593
+ });
1594
+ }
1553
1595
  setState(state) {
1554
1596
  var _a2;
1555
1597
  const previous = this.lastAutoState;
@@ -1613,6 +1655,7 @@ class PetOverlay {
1613
1655
  return;
1614
1656
  }
1615
1657
  this.connected = false;
1658
+ this.setReopenVisible(false);
1616
1659
  this.clearRestingDelayTimer();
1617
1660
  this.clearTimers();
1618
1661
  this.removeDragListeners();
@@ -2520,9 +2563,6 @@ class PetOverlay {
2520
2563
  window.removeEventListener("pointercancel", this.handlePointerUp);
2521
2564
  }
2522
2565
  }
2523
- function getInnerOptions(options) {
2524
- return removeMethods(options);
2525
- }
2526
2566
  function requireCommandCapability(value, context) {
2527
2567
  const command = String(context.name);
2528
2568
  return function(...args) {
@@ -2549,10 +2589,13 @@ class ChatKitElementBase extends (_c = HTMLElement, _focusComposer_dec = [requir
2549
2589
  __privateAdd(this, _chatMinimizedToPet, false);
2550
2590
  __privateAdd(this, _framePetOptionsOverride);
2551
2591
  __privateAdd(this, _petClosedByContextMenu, false);
2592
+ __privateAdd(this, _hostLauncherEnabled, true);
2593
+ __privateAdd(this, _launcherVisible, true);
2552
2594
  __privateAdd(this, _shadow, this.attachShadow({ mode: "open" }));
2553
2595
  __privateAdd(this, _petOverlay, new PetOverlay(__privateGet(this, _shadow), {
2554
2596
  onActivate: () => __privateMethod(this, _ChatKitElementBase_instances, handlePetActivate_fn).call(this),
2555
2597
  onClose: () => __privateMethod(this, _ChatKitElementBase_instances, handlePetClose_fn).call(this),
2598
+ onReopen: () => __privateMethod(this, _ChatKitElementBase_instances, requestLauncherVisibility_fn).call(this, true),
2556
2599
  onReply: (text) => __privateMethod(this, _ChatKitElementBase_instances, handlePetReply_fn).call(this, text),
2557
2600
  onThreadSummaryActivate: (threadId) => void __privateMethod(this, _ChatKitElementBase_instances, handlePetThreadSummaryActivate_fn).call(this, threadId)
2558
2601
  }));
@@ -2745,6 +2788,7 @@ class ChatKitElementBase extends (_c = HTMLElement, _focusComposer_dec = [requir
2745
2788
  }
2746
2789
  connectedCallback() {
2747
2790
  __privateGet(this, _petOverlay).connect();
2791
+ if (__privateGet(this, _opts)) __privateMethod(this, _ChatKitElementBase_instances, syncPetOverlayOptions_fn).call(this);
2748
2792
  const style = document.createElement("style");
2749
2793
  style.textContent = `
2750
2794
  :host {
@@ -3023,19 +3067,26 @@ class ChatKitElementBase extends (_c = HTMLElement, _focusComposer_dec = [requir
3023
3067
  __privateGet(this, _petOverlay).destroy();
3024
3068
  }
3025
3069
  applySanitizedOptions(newOptions) {
3026
- var _a2, _b2;
3070
+ var _a2, _b2, _c2, _d;
3071
+ 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);
3072
+ const pet = newOptions.pet;
3073
+ const enabled = typeof pet === "boolean" ? pet : (pet == null ? void 0 : pet.enabled) ?? true;
3074
+ if (sessionChanged || enabled !== __privateGet(this, _hostLauncherEnabled)) {
3075
+ __privateSet(this, _launcherVisible, enabled);
3076
+ }
3077
+ __privateSet(this, _hostLauncherEnabled, enabled);
3078
+ if (sessionChanged) {
3079
+ __privateSet(this, _framePetOptionsOverride, void 0);
3080
+ __privateMethod(this, _ChatKitElementBase_instances, setLauncherOpen_fn).call(this, false);
3081
+ }
3027
3082
  __privateSet(this, _opts, newOptions);
3028
- if (!((_a2 = newOptions.header) == null ? void 0 : _a2.windowDrag)) (_b2 = __privateGet(this, _windowDrag)) == null ? void 0 : _b2.clear();
3083
+ if (!((_c2 = newOptions.header) == null ? void 0 : _c2.windowDrag)) (_d = __privateGet(this, _windowDrag)) == null ? void 0 : _d.clear();
3029
3084
  __privateSet(this, _petClosedByContextMenu, false);
3030
3085
  __privateGet(this, _petOverlay).setLocale(newOptions.locale);
3031
3086
  __privateMethod(this, _ChatKitElementBase_instances, syncPetOverlayOptions_fn).call(this);
3032
3087
  if (__privateGet(this, _initialized)) {
3033
3088
  __privateMethod(this, _ChatKitElementBase_instances, setOptionsDataAttributes_fn).call(this, __privateGet(this, _opts));
3034
- __privateGet(this, _loaded).then(() => {
3035
- __privateGet(this, _messenger).commands.setOptions(
3036
- getInnerOptions(__privateMethod(this, _ChatKitElementBase_instances, getFrameOptions_fn).call(this, newOptions))
3037
- );
3038
- });
3089
+ __privateMethod(this, _ChatKitElementBase_instances, updateFrameOptions_fn).call(this);
3039
3090
  } else {
3040
3091
  __privateMethod(this, _ChatKitElementBase_instances, maybeInit_fn).call(this);
3041
3092
  }
@@ -3127,6 +3178,8 @@ _launcherOpen = new WeakMap();
3127
3178
  _chatMinimizedToPet = new WeakMap();
3128
3179
  _framePetOptionsOverride = new WeakMap();
3129
3180
  _petClosedByContextMenu = new WeakMap();
3181
+ _hostLauncherEnabled = new WeakMap();
3182
+ _launcherVisible = new WeakMap();
3130
3183
  _shadow = new WeakMap();
3131
3184
  _petOverlay = new WeakMap();
3132
3185
  _resolveLoaded = new WeakMap();
@@ -3149,14 +3202,9 @@ setOptionsDataAttributes_fn = function(options) {
3149
3202
  getDisplayMode_fn = function(options = __privateGet(this, _opts)) {
3150
3203
  return (options == null ? void 0 : options.displayMode) === "pet" ? "pet" : "chat";
3151
3204
  };
3152
- getConfiguredPetOptions_fn = function(options = __privateGet(this, _opts)) {
3153
- if (!options) {
3154
- return null;
3155
- }
3156
- if (__privateMethod(this, _ChatKitElementBase_instances, getDisplayMode_fn).call(this, options) === "pet" && !chatkitTypes.normalizePetOptions(options.pet ?? null)) {
3157
- return typeof options.pet === "object" ? { ...options.pet, enabled: true } : true;
3158
- }
3159
- return options.pet ?? null;
3205
+ getConfiguredPetOptions_fn = function() {
3206
+ if (!__privateGet(this, _opts)) return null;
3207
+ return __privateMethod(this, _ChatKitElementBase_instances, effectivePet_fn).call(this, __privateGet(this, _opts)) ?? (__privateMethod(this, _ChatKitElementBase_instances, getDisplayMode_fn).call(this) === "pet" ? true : null);
3160
3208
  };
3161
3209
  mergeConfiguredPetPositionDefaults_fn = function(pet) {
3162
3210
  if (!pet) {
@@ -3184,9 +3232,41 @@ mergeConfiguredPetPositionDefaults_fn = function(pet) {
3184
3232
  }
3185
3233
  };
3186
3234
  };
3235
+ effectivePet_fn = function(options) {
3236
+ const pet = options.pet;
3237
+ if (options.displayMode !== "pet" || __privateGet(this, _launcherVisible) === __privateGet(this, _hostLauncherEnabled)) {
3238
+ return pet;
3239
+ }
3240
+ return typeof pet === "object" ? { ...pet, enabled: __privateGet(this, _launcherVisible) } : __privateGet(this, _launcherVisible);
3241
+ };
3242
+ innerOptions_fn = function(options) {
3243
+ return removeMethods({
3244
+ ...options,
3245
+ pet: __privateMethod(this, _ChatKitElementBase_instances, effectivePet_fn).call(this, options)
3246
+ });
3247
+ };
3248
+ updateFrameOptions_fn = function() {
3249
+ __privateGet(this, _loaded).then(() => {
3250
+ if (__privateGet(this, _opts))
3251
+ __privateGet(this, _messenger).commands.setOptions(__privateMethod(this, _ChatKitElementBase_instances, innerOptions_fn).call(this, __privateGet(this, _opts)));
3252
+ });
3253
+ };
3254
+ isLauncherHidden_fn = function() {
3255
+ return __privateMethod(this, _ChatKitElementBase_instances, getDisplayMode_fn).call(this) === "pet" && !__privateGet(this, _launcherVisible);
3256
+ };
3257
+ requestLauncherVisibility_fn = function(visible) {
3258
+ __privateSet(this, _launcherVisible, visible);
3259
+ __privateMethod(this, _ChatKitElementBase_instances, syncPetOverlayOptions_fn).call(this);
3260
+ __privateMethod(this, _ChatKitElementBase_instances, updateFrameOptions_fn).call(this);
3261
+ this.dispatchEvent(
3262
+ new CustomEvent("chatkit.pet.launcher.visibility.change", {
3263
+ detail: { visible }
3264
+ })
3265
+ );
3266
+ };
3187
3267
  getOverlayPetOptions_fn = function() {
3188
3268
  var _a2;
3189
- if (__privateGet(this, _petClosedByContextMenu) || ((_a2 = __privateGet(this, _opts)) == null ? void 0 : _a2.pet) === false && __privateMethod(this, _ChatKitElementBase_instances, getDisplayMode_fn).call(this) !== "pet") {
3269
+ 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") {
3190
3270
  return null;
3191
3271
  }
3192
3272
  let pet;
@@ -3196,7 +3276,7 @@ getOverlayPetOptions_fn = function() {
3196
3276
  pet = __privateMethod(this, _ChatKitElementBase_instances, getConfiguredPetOptions_fn).call(this);
3197
3277
  }
3198
3278
  if (__privateMethod(this, _ChatKitElementBase_instances, getDisplayMode_fn).call(this) === "pet" && !chatkitTypes.normalizePetOptions(pet ?? null)) {
3199
- pet = true;
3279
+ pet = __privateMethod(this, _ChatKitElementBase_instances, getConfiguredPetOptions_fn).call(this);
3200
3280
  }
3201
3281
  return __privateMethod(this, _ChatKitElementBase_instances, resolveOverlayPetOptions_fn).call(this, pet);
3202
3282
  };
@@ -3231,19 +3311,6 @@ resolveOverlayPetOptions_fn = function(pet) {
3231
3311
  imageRendering: normalized.imageRendering
3232
3312
  };
3233
3313
  };
3234
- getFrameOptions_fn = function(options) {
3235
- const pet = __privateMethod(this, _ChatKitElementBase_instances, getConfiguredPetOptions_fn).call(this, options);
3236
- if (pet === (options.pet ?? null)) {
3237
- return options;
3238
- }
3239
- const nextOptions = { ...options };
3240
- if (pet === null) {
3241
- delete nextOptions.pet;
3242
- } else {
3243
- nextOptions.pet = pet;
3244
- }
3245
- return nextOptions;
3246
- };
3247
3314
  setLauncherOpen_fn = function(open) {
3248
3315
  __privateSet(this, _launcherOpen, open);
3249
3316
  if (open) {
@@ -3262,9 +3329,14 @@ setChatMinimizedToPet_fn = function(minimized) {
3262
3329
  }
3263
3330
  };
3264
3331
  syncPetOverlayOptions_fn = function() {
3265
- var _a2;
3332
+ var _a2, _b2, _c2;
3333
+ if (__privateMethod(this, _ChatKitElementBase_instances, isLauncherHidden_fn).call(this)) __privateMethod(this, _ChatKitElementBase_instances, setLauncherOpen_fn).call(this, false);
3266
3334
  const overlayPetOptions = __privateMethod(this, _ChatKitElementBase_instances, getOverlayPetOptions_fn).call(this);
3267
3335
  __privateGet(this, _petOverlay).setOptions(overlayPetOptions, (_a2 = __privateGet(this, _opts)) == null ? void 0 : _a2.theme);
3336
+ __privateGet(this, _petOverlay).setReopenVisible(
3337
+ __privateMethod(this, _ChatKitElementBase_instances, isLauncherHidden_fn).call(this),
3338
+ typeof ((_b2 = __privateGet(this, _opts)) == null ? void 0 : _b2.pet) === "object" ? (_c2 = __privateGet(this, _opts).pet.position) == null ? void 0 : _c2.zIndex : void 0
3339
+ );
3268
3340
  if (!overlayPetOptions) {
3269
3341
  __privateMethod(this, _ChatKitElementBase_instances, setChatMinimizedToPet_fn).call(this, false);
3270
3342
  }
@@ -3285,14 +3357,14 @@ handlePetActivate_fn = function() {
3285
3357
  __privateGet(this, _loaded).then(() => this.focusComposer()).catch(() => void 0);
3286
3358
  };
3287
3359
  handlePetClose_fn = function() {
3288
- __privateSet(this, _petClosedByContextMenu, true);
3289
- __privateSet(this, _framePetOptionsOverride, null);
3290
- __privateMethod(this, _ChatKitElementBase_instances, setChatMinimizedToPet_fn).call(this, false);
3291
3360
  __privateMethod(this, _ChatKitElementBase_instances, setLauncherOpen_fn).call(this, false);
3292
- __privateGet(this, _petOverlay).setOptions(null);
3293
3361
  if (__privateMethod(this, _ChatKitElementBase_instances, getDisplayMode_fn).call(this) === "pet") {
3362
+ __privateMethod(this, _ChatKitElementBase_instances, requestLauncherVisibility_fn).call(this, false);
3294
3363
  return;
3295
3364
  }
3365
+ __privateSet(this, _petClosedByContextMenu, true);
3366
+ __privateSet(this, _framePetOptionsOverride, null);
3367
+ __privateMethod(this, _ChatKitElementBase_instances, syncPetOverlayOptions_fn).call(this);
3296
3368
  __privateGet(this, _loaded).then(() => __privateGet(this, _messenger).commands.setPetEnabled({ enabled: false })).catch(() => void 0);
3297
3369
  };
3298
3370
  handlePetReply_fn = async function(text) {
@@ -3345,7 +3417,7 @@ maybeInit_fn = function() {
3345
3417
  const frameURL = new URL(__privateMethod(this, _ChatKitElementBase_instances, getFrameUrl_fn).call(this), window.location.origin);
3346
3418
  __privateGet(this, _messenger).setTargetOrigin(frameURL.origin);
3347
3419
  frameURL.hash = encodeBase64({
3348
- options: getInnerOptions(__privateMethod(this, _ChatKitElementBase_instances, getFrameOptions_fn).call(this, __privateGet(this, _opts))),
3420
+ options: __privateMethod(this, _ChatKitElementBase_instances, innerOptions_fn).call(this, __privateGet(this, _opts)),
3349
3421
  referrer: window.location.origin,
3350
3422
  profile: this.profile,
3351
3423
  ...__privateGet(this, _channelId) ? { channelId: __privateGet(this, _channelId) } : {}
@@ -3394,6 +3466,7 @@ const EVENT_HANDLER_MAP = {
3394
3466
  "chatkit.response.start": "onResponseStart",
3395
3467
  "chatkit.log": "onLog",
3396
3468
  "chatkit.thread.change": "onThreadChange",
3469
+ "chatkit.pet.launcher.visibility.change": "onPetLauncherVisibilityChange",
3397
3470
  "chatkit.project.change": "onProjectChange",
3398
3471
  "chatkit.connectors.change": "onConnectorsChange",
3399
3472
  "chatkit.thread.load.start": "onThreadLoadStart",
@@ -3407,6 +3480,7 @@ const UI5_EVENT_NAME_MAP = {
3407
3480
  "chatkit.response.start": "responseStart",
3408
3481
  "chatkit.log": "log",
3409
3482
  "chatkit.thread.change": "threadChange",
3483
+ "chatkit.pet.launcher.visibility.change": "petLauncherVisibilityChange",
3410
3484
  "chatkit.project.change": "projectChange",
3411
3485
  "chatkit.connectors.change": "connectorsChange",
3412
3486
  "chatkit.thread.load.start": "threadLoadStart",
@@ -3473,6 +3547,7 @@ const ChatKit = ControlBase.extend("xpertai.chatkit.ui5.ChatKit", {
3473
3547
  responseStart: { parameters: { detail: { type: "object" } } },
3474
3548
  log: { parameters: { detail: { type: "object" } } },
3475
3549
  threadChange: { parameters: { detail: { type: "object" } } },
3550
+ petLauncherVisibilityChange: { parameters: { detail: { type: "object" } } },
3476
3551
  threadLoadStart: { parameters: { detail: { type: "object" } } },
3477
3552
  threadLoadEnd: { parameters: { detail: { type: "object" } } },
3478
3553
  ready: { parameters: { detail: { type: "object" } } },