kenobi-js 0.1.32 → 0.1.34

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/browser/dist.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Kenobi SDK v0.1.32
2
+ * Kenobi SDK v0.1.33
3
3
  * (c) 2025 Kenobi.ai
4
4
  */
5
5
  "use strict";
@@ -1193,6 +1193,9 @@ var KenobiLib = (() => {
1193
1193
  .launcher .kbd-hint { position: static; transform: none; opacity: 0.6; transition: opacity 0.2s; }
1194
1194
  .launcher:hover .kbd-hint { opacity: 1; }
1195
1195
  .pos-top-right.launcher .kbd-hint { left: auto; right: auto; }
1196
+ /* Launcher dismiss button */
1197
+ .launcher .btn-dismiss.launcher-dismiss { top: -0.375rem; left: -0.375rem; width: 1.25rem; height: 1.25rem; opacity: 0; transition: opacity 0.2s ease-out, background-color 0.3s ease-out, color 0.3s ease-out; }
1198
+ .launcher:hover .btn-dismiss.launcher-dismiss { opacity: 1; }
1196
1199
  `;
1197
1200
  var useEnterExitAnimation = /* @__PURE__ */ __name((ref, isVisible, config) => {
1198
1201
  const hasEnteredRef = A2(false);
@@ -1386,11 +1389,6 @@ var KenobiLib = (() => {
1386
1389
  setMode("card");
1387
1390
  }
1388
1391
  }, [isOpen, mode]);
1389
- y2(() => {
1390
- if (config.status === "starting") {
1391
- setIsOpen(false);
1392
- }
1393
- }, [config.status, setIsOpen]);
1394
1392
  if (!isInline) {
1395
1393
  useEnterExitAnimation(containerRef, !!config.isVisible && mode === "card", {
1396
1394
  direction: config.direction || "top-to-bottom",
@@ -1821,7 +1819,7 @@ var KenobiLib = (() => {
1821
1819
  }
1822
1820
  ),
1823
1821
  /* @__PURE__ */ u3(
1824
- "button",
1822
+ "div",
1825
1823
  {
1826
1824
  ref: launcherRef,
1827
1825
  class: `launcher theme-${config.theme || "glass"} pos-${config.position || "top-center"}`,
@@ -1831,7 +1829,21 @@ var KenobiLib = (() => {
1831
1829
  setMode("card");
1832
1830
  setIsOpen(true);
1833
1831
  },
1832
+ role: "button",
1833
+ tabIndex: 0,
1834
1834
  children: [
1835
+ /* @__PURE__ */ u3(
1836
+ "button",
1837
+ {
1838
+ class: "btn-dismiss launcher-dismiss",
1839
+ "aria-label": "Dismiss",
1840
+ onClick: (e3) => {
1841
+ e3.stopPropagation();
1842
+ config.onDismiss?.();
1843
+ },
1844
+ children: /* @__PURE__ */ u3(XMarkIcon, {})
1845
+ }
1846
+ ),
1835
1847
  /* @__PURE__ */ u3(
1836
1848
  "div",
1837
1849
  {
@@ -1935,6 +1947,9 @@ var KenobiLib = (() => {
1935
1947
  this.host.remove();
1936
1948
  }
1937
1949
  update(newState) {
1950
+ if (newState.status === "starting" && this.config.status !== "starting") {
1951
+ this.isOpen = false;
1952
+ }
1938
1953
  this.config = { ...this.config, ...newState };
1939
1954
  this.applyHostStyles();
1940
1955
  this.render();
@@ -3042,12 +3057,10 @@ var KenobiLib = (() => {
3042
3057
  errorMessage: "Company name or domain is required"
3043
3058
  }
3044
3059
  ],
3045
- hasPersonalization: true,
3046
3060
  isVisible: true,
3047
- enableFocusMode: true,
3061
+ enableFocusMode: false,
3062
+ showWatermark: false,
3048
3063
  showKeyboardHints: true,
3049
- focusBlurIntensity: "8px",
3050
- focusDelayMs: 2e3,
3051
3064
  enableLauncher: true,
3052
3065
  onSubmitPersonalization: /* @__PURE__ */ __name((values) => {
3053
3066
  this.log("debug", "CueCard submitted:", values);