@dinghy-chat/widget 0.27.0 → 0.28.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/dist/shared.d.ts +2 -0
  2. package/package.json +1 -1
package/dist/shared.d.ts CHANGED
@@ -179,6 +179,8 @@ export interface WidgetContext {
179
179
  page?: boolean;
180
180
  /** Set by identify() and cleared by reset(). */
181
181
  identity: Identity | null;
182
+ /** The token the chat got from an identify() function, so the loader's beat can send it. */
183
+ hostToken: string | null;
182
184
  /** The last setContext() value, as the page gave it. */
183
185
  pageContext: unknown;
184
186
  /** The chat bundle sets this when it runs, then opens the chat if `wanted` asks for it. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dinghy-chat/widget",
3
- "version": "0.27.0",
3
+ "version": "0.28.0",
4
4
  "description": "Add the Dinghy chat to your site from code, with a typed API.",
5
5
  "type": "module",
6
6
  "license": "MIT",