chatbotlite 0.5.1 → 0.6.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.
@@ -74,6 +74,21 @@ interface ChatWidgetCommonProps {
74
74
  };
75
75
  /** LLM-triggered tool registry. Bot emits `[SKILL:name args]` → widget renders matching card. */
76
76
  tools?: ChatWidgetTools;
77
+ /**
78
+ * Header avatar. Defaults to NONE (no avatar, just title) — most website chatbots don't
79
+ * need one.
80
+ * - `true` → circular badge with first letter of `title` on brand color
81
+ * - `"https://..."` → image URL (rendered in 32px circle)
82
+ * - omit / `false` → no avatar (default)
83
+ */
84
+ avatar?: boolean | string;
85
+ /**
86
+ * Launcher button icon. Customer override for the floating button glyph.
87
+ * - omit → default chat-bubble SVG
88
+ * - emoji string (e.g. "⚡", "💬", "🤖")
89
+ * - URL → rendered as image
90
+ */
91
+ launcherIcon?: string;
77
92
  }
78
93
  interface ChatWidgetDirectProps extends ChatWidgetCommonProps {
79
94
  /** Markdown knowledge for the bot. Client-side mode — API keys WILL be exposed. */
@@ -74,6 +74,21 @@ interface ChatWidgetCommonProps {
74
74
  };
75
75
  /** LLM-triggered tool registry. Bot emits `[SKILL:name args]` → widget renders matching card. */
76
76
  tools?: ChatWidgetTools;
77
+ /**
78
+ * Header avatar. Defaults to NONE (no avatar, just title) — most website chatbots don't
79
+ * need one.
80
+ * - `true` → circular badge with first letter of `title` on brand color
81
+ * - `"https://..."` → image URL (rendered in 32px circle)
82
+ * - omit / `false` → no avatar (default)
83
+ */
84
+ avatar?: boolean | string;
85
+ /**
86
+ * Launcher button icon. Customer override for the floating button glyph.
87
+ * - omit → default chat-bubble SVG
88
+ * - emoji string (e.g. "⚡", "💬", "🤖")
89
+ * - URL → rendered as image
90
+ */
91
+ launcherIcon?: string;
77
92
  }
78
93
  interface ChatWidgetDirectProps extends ChatWidgetCommonProps {
79
94
  /** Markdown knowledge for the bot. Client-side mode — API keys WILL be exposed. */