@xapp/stentor-chat-widget 1.80.0 → 1.81.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 +12 -1
  2. package/package.json +4 -2
@@ -1,4 +1,5 @@
1
1
  /*! Copyright (c) 2021, XAPPmedia */
2
+ import type { ReactNode } from "react";
2
3
  import { Response } from "stentor-models";
3
4
  import { WidgetTheme } from "./WidgetTheme";
4
5
  import { ChatUserInfo } from "./UserInfo";
@@ -340,7 +341,17 @@ export interface WidgetMenuItemOpenURL {
340
341
  }
341
342
  export interface WidgetHeaderSubtitleConfig {
342
343
  readonly enabled?: boolean;
343
- readonly text?: string;
344
+ /**
345
+ * Subtitle text to display below the header title.
346
+ * Supports plain strings or JSX elements for custom formatting.
347
+ * @example
348
+ * // String
349
+ * text: "Always Active"
350
+ *
351
+ * // JSX with status indicator
352
+ * text: <span><StatusDot /> Always Active</span>
353
+ */
354
+ readonly text?: ReactNode;
344
355
  }
345
356
  export interface WidgetTypingStatusConfig {
346
357
  readonly textTypingStatusEnabled?: boolean;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.80.0",
7
+ "version": "1.81.0",
8
8
  "description": "Chat Widget channel for stentor",
9
9
  "types": "lib/index",
10
10
  "main": "lib/index",
@@ -16,6 +16,7 @@
16
16
  },
17
17
  "devDependencies": {
18
18
  "@types/chai": "4.3.20",
19
+ "@types/react": "^19.0.0",
19
20
  "@types/sinon": "10.0.20",
20
21
  "@types/sinon-chai": "3.2.12",
21
22
  "@xapp/config": "0.2.3",
@@ -32,11 +33,12 @@
32
33
  "stentor-guards": "1.66.25"
33
34
  },
34
35
  "peerDependencies": {
36
+ "react": ">=16.8.0",
35
37
  "stentor-models": "1.x"
36
38
  },
37
39
  "scripts": {
38
40
  "build": "tsc -d true -p .",
39
41
  "clean": "rm -rf ./lib/*"
40
42
  },
41
- "gitHead": "6f4f6ac37ee15ed4d1a0d4636ce45883ec956160"
43
+ "gitHead": "a568a993d4a16b6f87eea5c8870e0888f883959b"
42
44
  }