@xapp/stentor-chat-widget 1.98.0 → 1.100.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.
Files changed (2) hide show
  1. package/lib/WidgetEnv.d.ts +17 -3
  2. package/package.json +1 -1
@@ -133,13 +133,17 @@ export interface MCPServerConfig {
133
133
  */
134
134
  readonly channelId?: string;
135
135
  /**
136
- * Mode determines endpoint path and authentication requirements:
137
- * - homeowner: /chat/stream (unauthenticated, appId should be in serverUrl)
138
- * - business_owner: /api/chat/stream (authenticated, requires authToken)
136
+ * Mode determines endpoint paths and authentication requirements:
137
+ * - homeowner: /chat/stream and /chat/close (unauthenticated, appId in serverUrl)
138
+ * - business_owner: /api/chat/stream and /api/chat/close (requires authToken)
139
139
  *
140
140
  * For homeowner mode, the serverUrl should include the appId:
141
141
  * e.g., "https://agent.xapp.ai/abc123"
142
142
  *
143
+ * The serverUrl may also be given as the full stream endpoint
144
+ * (e.g. "https://agent.xapp.ai/abc123/chat/stream"); the widget normalises it back to
145
+ * the base rather than appending the path twice.
146
+ *
143
147
  * @default "homeowner"
144
148
  */
145
149
  readonly mode?: "homeowner" | "business_owner";
@@ -339,6 +343,16 @@ export interface WidgetUrlPolicy {
339
343
  readonly behavior: WidgetUrlBehavior;
340
344
  }
341
345
  export interface WidgetHeaderConfig {
346
+ /**
347
+ * Hide the header when the widget is embedded in a page (`docked` or `static` mode),
348
+ * where the host page usually provides its own title.
349
+ *
350
+ * Ignored in `normal` mode: the header carries the minimize and close buttons, and a
351
+ * floating window without them could not be put away.
352
+ *
353
+ * @default false
354
+ */
355
+ readonly hidden?: boolean;
342
356
  readonly status?: WidgetHeaderStatusConfig;
343
357
  readonly subtitle?: WidgetHeaderSubtitleConfig;
344
358
  readonly alignTextCenter?: boolean;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.98.0",
7
+ "version": "1.100.0",
8
8
  "description": "Chat Widget channel for stentor",
9
9
  "types": "lib/index",
10
10
  "main": "lib/index",