@burdenoff/website-sdk 2026.1102.2 → 2026.1102.3

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 (46) hide show
  1. package/README.md +41 -2
  2. package/dist/avatar-live-view/index.d.mts +13 -4
  3. package/dist/avatar-live-view/index.d.ts +13 -4
  4. package/dist/avatar-live-view/index.js +1262 -257
  5. package/dist/avatar-live-view/index.js.map +1 -1
  6. package/dist/avatar-live-view/index.mjs +1260 -255
  7. package/dist/avatar-live-view/index.mjs.map +1 -1
  8. package/dist/{chunk-FQH3AJN3.js → chunk-7O2I32ZN.js} +2 -2
  9. package/dist/chunk-7O2I32ZN.js.map +1 -0
  10. package/dist/{chunk-R742FS5E.js → chunk-DZLUZKOX.js} +19 -17
  11. package/dist/{chunk-R742FS5E.js.map → chunk-DZLUZKOX.js.map} +1 -1
  12. package/dist/{chunk-SFT3WHN5.mjs → chunk-K3QZGJEH.mjs} +2 -2
  13. package/dist/chunk-K3QZGJEH.mjs.map +1 -0
  14. package/dist/{chunk-SK5UGG6A.js → chunk-P5GMVPR6.js} +76 -20
  15. package/dist/chunk-P5GMVPR6.js.map +1 -0
  16. package/dist/{chunk-EUPFS6MZ.mjs → chunk-SMD7MEEA.mjs} +76 -20
  17. package/dist/chunk-SMD7MEEA.mjs.map +1 -0
  18. package/dist/{chunk-ETI2HQEC.mjs → chunk-ZWEEBHXJ.mjs} +4 -4
  19. package/dist/{chunk-ETI2HQEC.mjs.map → chunk-ZWEEBHXJ.mjs.map} +1 -1
  20. package/dist/components/explore.d.mts +2 -2
  21. package/dist/components/explore.d.ts +2 -2
  22. package/dist/components/explore.js +14 -14
  23. package/dist/components/explore.mjs +2 -2
  24. package/dist/{explore-DUTNYUOm.d.mts → explore-DaSNdm4O.d.mts} +1 -1
  25. package/dist/{explore-DjQE7Xia.d.ts → explore-DtSPdlEy.d.ts} +1 -1
  26. package/dist/{explore-avatar-live-config-Cetx8-Zu.d.ts → explore-avatar-live-config-CAfN5eAX.d.ts} +6 -3
  27. package/dist/{explore-avatar-live-config-Bp3kQbU2.d.mts → explore-avatar-live-config-N4WhJzgS.d.mts} +6 -3
  28. package/dist/{explore-types-Bb2Ih3d8.d.mts → explore-types-Ol1Mm3dW.d.mts} +12 -1
  29. package/dist/{explore-types-Bb2Ih3d8.d.ts → explore-types-Ol1Mm3dW.d.ts} +12 -1
  30. package/dist/hooks/index.d.mts +2 -2
  31. package/dist/hooks/index.d.ts +2 -2
  32. package/dist/hooks/index.js +9 -9
  33. package/dist/hooks/index.mjs +1 -1
  34. package/dist/index.d.mts +15 -9
  35. package/dist/index.d.ts +15 -9
  36. package/dist/index.js +92 -63
  37. package/dist/index.js.map +1 -1
  38. package/dist/index.mjs +35 -6
  39. package/dist/index.mjs.map +1 -1
  40. package/dist/{use-explore-chat-DunjG-3p.d.ts → use-explore-chat-B3dOOvJN.d.ts} +43 -3
  41. package/dist/{use-explore-chat-zRuoAin6.d.mts → use-explore-chat-CbfohA9O.d.mts} +43 -3
  42. package/package.json +1 -1
  43. package/dist/chunk-EUPFS6MZ.mjs.map +0 -1
  44. package/dist/chunk-FQH3AJN3.js.map +0 -1
  45. package/dist/chunk-SFT3WHN5.mjs.map +0 -1
  46. package/dist/chunk-SK5UGG6A.js.map +0 -1
@@ -1,4 +1,4 @@
1
1
  import 'react';
2
- export { a as EXPLORE_PREFILL_MAX_LENGTH, e as ExplorePage, f as ExplorePageProps, m as ExploreProvenance, n as ExploreReferenceKind, g as answerPlainText, h as answerSpeechText, i as exploreQuestionHref, j as inlineImageOrigins, k as isInlineImageAllowed, l as isInlineVideoAllowed, o as logoUrlOf, q as productNamesByOrigin, r as referenceKindOf, s as summariseReferences } from '../explore-DUTNYUOm.mjs';
3
- import '../explore-types-Bb2Ih3d8.mjs';
2
+ export { a as EXPLORE_PREFILL_MAX_LENGTH, e as ExplorePage, f as ExplorePageProps, m as ExploreProvenance, n as ExploreReferenceKind, g as answerPlainText, h as answerSpeechText, i as exploreQuestionHref, j as inlineImageOrigins, k as isInlineImageAllowed, l as isInlineVideoAllowed, o as logoUrlOf, q as productNamesByOrigin, r as referenceKindOf, s as summariseReferences } from '../explore-DaSNdm4O.mjs';
3
+ import '../explore-types-Ol1Mm3dW.mjs';
4
4
  import 'react-markdown';
@@ -1,4 +1,4 @@
1
1
  import 'react';
2
- export { a as EXPLORE_PREFILL_MAX_LENGTH, e as ExplorePage, f as ExplorePageProps, m as ExploreProvenance, n as ExploreReferenceKind, g as answerPlainText, h as answerSpeechText, i as exploreQuestionHref, j as inlineImageOrigins, k as isInlineImageAllowed, l as isInlineVideoAllowed, o as logoUrlOf, q as productNamesByOrigin, r as referenceKindOf, s as summariseReferences } from '../explore-DjQE7Xia.js';
3
- import '../explore-types-Bb2Ih3d8.js';
2
+ export { a as EXPLORE_PREFILL_MAX_LENGTH, e as ExplorePage, f as ExplorePageProps, m as ExploreProvenance, n as ExploreReferenceKind, g as answerPlainText, h as answerSpeechText, i as exploreQuestionHref, j as inlineImageOrigins, k as isInlineImageAllowed, l as isInlineVideoAllowed, o as logoUrlOf, q as productNamesByOrigin, r as referenceKindOf, s as summariseReferences } from '../explore-DtSPdlEy.js';
3
+ import '../explore-types-Ol1Mm3dW.js';
4
4
  import 'react-markdown';
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkR742FS5E_js = require('../chunk-R742FS5E.js');
3
+ var chunkDZLUZKOX_js = require('../chunk-DZLUZKOX.js');
4
4
  require('../chunk-O4GS3XPZ.js');
5
- require('../chunk-SK5UGG6A.js');
5
+ require('../chunk-P5GMVPR6.js');
6
6
  require('../chunk-PHXAGQNB.js');
7
7
  require('../chunk-3LFFY7AZ.js');
8
8
  require('../chunk-GEXC4LRP.js');
@@ -18,51 +18,51 @@ require('../chunk-ZSTFX7FV.js');
18
18
 
19
19
  Object.defineProperty(exports, "EXPLORE_PREFILL_MAX_LENGTH", {
20
20
  enumerable: true,
21
- get: function () { return chunkR742FS5E_js.EXPLORE_PREFILL_MAX_LENGTH; }
21
+ get: function () { return chunkDZLUZKOX_js.EXPLORE_PREFILL_MAX_LENGTH; }
22
22
  });
23
23
  Object.defineProperty(exports, "ExplorePage", {
24
24
  enumerable: true,
25
- get: function () { return chunkR742FS5E_js.ExplorePage; }
25
+ get: function () { return chunkDZLUZKOX_js.ExplorePage; }
26
26
  });
27
27
  Object.defineProperty(exports, "answerPlainText", {
28
28
  enumerable: true,
29
- get: function () { return chunkR742FS5E_js.answerPlainText; }
29
+ get: function () { return chunkDZLUZKOX_js.answerPlainText; }
30
30
  });
31
31
  Object.defineProperty(exports, "answerSpeechText", {
32
32
  enumerable: true,
33
- get: function () { return chunkR742FS5E_js.answerSpeechText; }
33
+ get: function () { return chunkDZLUZKOX_js.answerSpeechText; }
34
34
  });
35
35
  Object.defineProperty(exports, "exploreQuestionHref", {
36
36
  enumerable: true,
37
- get: function () { return chunkR742FS5E_js.exploreQuestionHref; }
37
+ get: function () { return chunkDZLUZKOX_js.exploreQuestionHref; }
38
38
  });
39
39
  Object.defineProperty(exports, "inlineImageOrigins", {
40
40
  enumerable: true,
41
- get: function () { return chunkR742FS5E_js.inlineImageOrigins; }
41
+ get: function () { return chunkDZLUZKOX_js.inlineImageOrigins; }
42
42
  });
43
43
  Object.defineProperty(exports, "isInlineImageAllowed", {
44
44
  enumerable: true,
45
- get: function () { return chunkR742FS5E_js.isInlineImageAllowed; }
45
+ get: function () { return chunkDZLUZKOX_js.isInlineImageAllowed; }
46
46
  });
47
47
  Object.defineProperty(exports, "isInlineVideoAllowed", {
48
48
  enumerable: true,
49
- get: function () { return chunkR742FS5E_js.isInlineVideoAllowed; }
49
+ get: function () { return chunkDZLUZKOX_js.isInlineVideoAllowed; }
50
50
  });
51
51
  Object.defineProperty(exports, "logoUrlOf", {
52
52
  enumerable: true,
53
- get: function () { return chunkR742FS5E_js.logoUrlOf; }
53
+ get: function () { return chunkDZLUZKOX_js.logoUrlOf; }
54
54
  });
55
55
  Object.defineProperty(exports, "productNamesByOrigin", {
56
56
  enumerable: true,
57
- get: function () { return chunkR742FS5E_js.productNamesByOrigin; }
57
+ get: function () { return chunkDZLUZKOX_js.productNamesByOrigin; }
58
58
  });
59
59
  Object.defineProperty(exports, "referenceKindOf", {
60
60
  enumerable: true,
61
- get: function () { return chunkR742FS5E_js.referenceKindOf; }
61
+ get: function () { return chunkDZLUZKOX_js.referenceKindOf; }
62
62
  });
63
63
  Object.defineProperty(exports, "summariseReferences", {
64
64
  enumerable: true,
65
- get: function () { return chunkR742FS5E_js.summariseReferences; }
65
+ get: function () { return chunkDZLUZKOX_js.summariseReferences; }
66
66
  });
67
67
  //# sourceMappingURL=explore.js.map
68
68
  //# sourceMappingURL=explore.js.map
@@ -1,6 +1,6 @@
1
- export { EXPLORE_PREFILL_MAX_LENGTH, ExplorePage, answerPlainText, answerSpeechText, exploreQuestionHref, inlineImageOrigins, isInlineImageAllowed, isInlineVideoAllowed, logoUrlOf, productNamesByOrigin, referenceKindOf, summariseReferences } from '../chunk-ETI2HQEC.mjs';
1
+ export { EXPLORE_PREFILL_MAX_LENGTH, ExplorePage, answerPlainText, answerSpeechText, exploreQuestionHref, inlineImageOrigins, isInlineImageAllowed, isInlineVideoAllowed, logoUrlOf, productNamesByOrigin, referenceKindOf, summariseReferences } from '../chunk-ZWEEBHXJ.mjs';
2
2
  import '../chunk-TT3MHN42.mjs';
3
- import '../chunk-EUPFS6MZ.mjs';
3
+ import '../chunk-SMD7MEEA.mjs';
4
4
  import '../chunk-SKIYDKIS.mjs';
5
5
  import '../chunk-6VJT3SM4.mjs';
6
6
  import '../chunk-EBZ2HGJ2.mjs';
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { e as ExploreProduct, f as ExploreReference } from './explore-types-Bb2Ih3d8.mjs';
2
+ import { f as ExploreProduct, g as ExploreReference } from './explore-types-Ol1Mm3dW.mjs';
3
3
  import { Components } from 'react-markdown';
4
4
 
5
5
  /** The words the player needs. `AnswerRendererStrings`, and so `ExploreStrings`, carry them. */
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { e as ExploreProduct, f as ExploreReference } from './explore-types-Bb2Ih3d8.js';
2
+ import { f as ExploreProduct, g as ExploreReference } from './explore-types-Ol1Mm3dW.js';
3
3
  import { Components } from 'react-markdown';
4
4
 
5
5
  /** The words the player needs. `AnswerRendererStrings`, and so `ExploreStrings`, carry them. */
@@ -1,5 +1,5 @@
1
1
  import { A as AvatarLiveModule } from './types-CndbmBK-.js';
2
- import { e as UseExploreChatResult } from './use-explore-chat-DunjG-3p.js';
2
+ import { h as UseExploreChatResult } from './use-explore-chat-B3dOOvJN.js';
3
3
 
4
4
  /**
5
5
  * Localisation for the `/explore` chat surface.
@@ -291,8 +291,11 @@ interface ExplorePanelAvatarLive {
291
291
  }
292
292
  /**
293
293
  * What the live avatar reads of the panel's conversation: the transcript, whether it is read-only and the token, and
294
- * `reset` (the chat's own New chat) for its New chat button where the conversation can never be read.
294
+ * `reset` (the chat's own New chat) for its New chat button where the conversation can never be read. Where the server
295
+ * reads typed questions too (contract v1.3), the Avatar tab's own question box asks through the same conversation:
296
+ * `send` (with `surface: "AVATAR"`), and `canSend`, `phase`, `activity` and `catalog` to say when it can and what the
297
+ * answer is doing, and `resent` to follow a question asked there that Chat's Retry sent again.
295
298
  */
296
- type AvatarConversation = Pick<UseExploreChatResult, "messages" | "isSharedView" | "getConversationToken" | "reset">;
299
+ type AvatarConversation = Pick<UseExploreChatResult, "messages" | "isSharedView" | "getConversationToken" | "reset" | "send" | "canSend" | "phase" | "activity" | "catalog" | "resent">;
297
300
 
298
301
  export { type AvatarConversation as A, type ExplorePanelAvatarLive as E, type ExploreLocale as a, EXPLORE_LOCALES as b, type ExploreStrings as c, speechLocaleOf as s };
@@ -1,5 +1,5 @@
1
1
  import { A as AvatarLiveModule } from './types-CndbmBK-.mjs';
2
- import { e as UseExploreChatResult } from './use-explore-chat-zRuoAin6.mjs';
2
+ import { h as UseExploreChatResult } from './use-explore-chat-CbfohA9O.mjs';
3
3
 
4
4
  /**
5
5
  * Localisation for the `/explore` chat surface.
@@ -291,8 +291,11 @@ interface ExplorePanelAvatarLive {
291
291
  }
292
292
  /**
293
293
  * What the live avatar reads of the panel's conversation: the transcript, whether it is read-only and the token, and
294
- * `reset` (the chat's own New chat) for its New chat button where the conversation can never be read.
294
+ * `reset` (the chat's own New chat) for its New chat button where the conversation can never be read. Where the server
295
+ * reads typed questions too (contract v1.3), the Avatar tab's own question box asks through the same conversation:
296
+ * `send` (with `surface: "AVATAR"`), and `canSend`, `phase`, `activity` and `catalog` to say when it can and what the
297
+ * answer is doing, and `resent` to follow a question asked there that Chat's Retry sent again.
295
298
  */
296
- type AvatarConversation = Pick<UseExploreChatResult, "messages" | "isSharedView" | "getConversationToken" | "reset">;
299
+ type AvatarConversation = Pick<UseExploreChatResult, "messages" | "isSharedView" | "getConversationToken" | "reset" | "send" | "canSend" | "phase" | "activity" | "catalog" | "resent">;
297
300
 
298
301
  export { type AvatarConversation as A, type ExplorePanelAvatarLive as E, type ExploreLocale as a, EXPLORE_LOCALES as b, type ExploreStrings as c, speechLocaleOf as s };
@@ -191,6 +191,12 @@ interface ExploreCatalog {
191
191
  */
192
192
  conceptHighlights: ExploreConceptHighlight[];
193
193
  }
194
+ /**
195
+ * `enum ExploreSurface` (BOFF-9797): where the visitor asked. `AVATAR` is the live avatar's own question box, whose
196
+ * first answer the server may shape to be read aloud; a question asked anywhere else carries no surface at all (the
197
+ * server reads none as `CHAT`).
198
+ */
199
+ type ExploreSurface = "CHAT" | "AVATAR";
194
200
  /** `input SendExploreMessageInput`. */
195
201
  interface SendExploreMessageInput {
196
202
  /** Omit to start a new conversation. */
@@ -207,6 +213,11 @@ interface SendExploreMessageInput {
207
213
  * so these are the limits the composer shows, not the limits that hold.
208
214
  */
209
215
  attachments?: ExploreAttachmentInput[];
216
+ /**
217
+ * BOFF-9797. Sent only from the live avatar's question box, as `AVATAR`; every other send omits it, so a server that
218
+ * does not know the field yet is never sent it from the Chat tab.
219
+ */
220
+ surface?: ExploreSurface;
210
221
  }
211
222
  /** `input ExploreAttachmentInput`. `textContent` is null for a format the browser cannot read. */
212
223
  interface ExploreAttachmentInput {
@@ -350,4 +361,4 @@ declare const EXPLORE_ESCALATION_NOTE_SOFT_MAX = 2000;
350
361
  */
351
362
  declare function looksLikeDeliverableEmail(value: string): boolean;
352
363
 
353
- export { looksLikeDeliverableEmail as A, type ExploreCatalog as E, SEND_EXPLORE_MESSAGE_MUTATION as S, type ExploreMessage as a, type ExploreFeedbackRating as b, type ExploreFeedbackReason as c, type ExploreLimits as d, type ExploreProduct as e, type ExploreReference as f, ESCALATE_EXPLORE_CONVERSATION_MUTATION as g, EXPLORE_CATALOG_QUERY as h, EXPLORE_CATALOG_QUERY_WITHOUT_HIGHLIGHTS as i, EXPLORE_ESCALATION_NOTE_SOFT_MAX as j, EXPLORE_MESSAGE_QUERY as k, type EscalateExploreConversationInput as l, type EscalateExploreConversationResult as m, type ExploreCatalogQueryData as n, type ExploreConceptHighlight as o, type ExploreConversation as p, type ExploreCtaKind as q, type ExploreCtaLink as r, type ExploreErrorCode as s, type ExploreEscalation as t, type ExploreMessageQueryData as u, type ExploreMessageRole as v, type ExploreMessageStatus as w, type SendExploreMessageInput as x, type SendExploreMessageMutationData as y, type SendExploreMessageResult as z };
364
+ export { type SendExploreMessageResult as A, looksLikeDeliverableEmail as B, type ExploreCatalog as E, SEND_EXPLORE_MESSAGE_MUTATION as S, type ExploreMessage as a, type ExploreSurface as b, type ExploreFeedbackRating as c, type ExploreFeedbackReason as d, type ExploreLimits as e, type ExploreProduct as f, type ExploreReference as g, ESCALATE_EXPLORE_CONVERSATION_MUTATION as h, EXPLORE_CATALOG_QUERY as i, EXPLORE_CATALOG_QUERY_WITHOUT_HIGHLIGHTS as j, EXPLORE_ESCALATION_NOTE_SOFT_MAX as k, EXPLORE_MESSAGE_QUERY as l, type EscalateExploreConversationInput as m, type EscalateExploreConversationResult as n, type ExploreCatalogQueryData as o, type ExploreConceptHighlight as p, type ExploreConversation as q, type ExploreCtaKind as r, type ExploreCtaLink as s, type ExploreErrorCode as t, type ExploreEscalation as u, type ExploreMessageQueryData as v, type ExploreMessageRole as w, type ExploreMessageStatus as x, type SendExploreMessageInput as y, type SendExploreMessageMutationData as z };
@@ -191,6 +191,12 @@ interface ExploreCatalog {
191
191
  */
192
192
  conceptHighlights: ExploreConceptHighlight[];
193
193
  }
194
+ /**
195
+ * `enum ExploreSurface` (BOFF-9797): where the visitor asked. `AVATAR` is the live avatar's own question box, whose
196
+ * first answer the server may shape to be read aloud; a question asked anywhere else carries no surface at all (the
197
+ * server reads none as `CHAT`).
198
+ */
199
+ type ExploreSurface = "CHAT" | "AVATAR";
194
200
  /** `input SendExploreMessageInput`. */
195
201
  interface SendExploreMessageInput {
196
202
  /** Omit to start a new conversation. */
@@ -207,6 +213,11 @@ interface SendExploreMessageInput {
207
213
  * so these are the limits the composer shows, not the limits that hold.
208
214
  */
209
215
  attachments?: ExploreAttachmentInput[];
216
+ /**
217
+ * BOFF-9797. Sent only from the live avatar's question box, as `AVATAR`; every other send omits it, so a server that
218
+ * does not know the field yet is never sent it from the Chat tab.
219
+ */
220
+ surface?: ExploreSurface;
210
221
  }
211
222
  /** `input ExploreAttachmentInput`. `textContent` is null for a format the browser cannot read. */
212
223
  interface ExploreAttachmentInput {
@@ -350,4 +361,4 @@ declare const EXPLORE_ESCALATION_NOTE_SOFT_MAX = 2000;
350
361
  */
351
362
  declare function looksLikeDeliverableEmail(value: string): boolean;
352
363
 
353
- export { looksLikeDeliverableEmail as A, type ExploreCatalog as E, SEND_EXPLORE_MESSAGE_MUTATION as S, type ExploreMessage as a, type ExploreFeedbackRating as b, type ExploreFeedbackReason as c, type ExploreLimits as d, type ExploreProduct as e, type ExploreReference as f, ESCALATE_EXPLORE_CONVERSATION_MUTATION as g, EXPLORE_CATALOG_QUERY as h, EXPLORE_CATALOG_QUERY_WITHOUT_HIGHLIGHTS as i, EXPLORE_ESCALATION_NOTE_SOFT_MAX as j, EXPLORE_MESSAGE_QUERY as k, type EscalateExploreConversationInput as l, type EscalateExploreConversationResult as m, type ExploreCatalogQueryData as n, type ExploreConceptHighlight as o, type ExploreConversation as p, type ExploreCtaKind as q, type ExploreCtaLink as r, type ExploreErrorCode as s, type ExploreEscalation as t, type ExploreMessageQueryData as u, type ExploreMessageRole as v, type ExploreMessageStatus as w, type SendExploreMessageInput as x, type SendExploreMessageMutationData as y, type SendExploreMessageResult as z };
364
+ export { type SendExploreMessageResult as A, looksLikeDeliverableEmail as B, type ExploreCatalog as E, SEND_EXPLORE_MESSAGE_MUTATION as S, type ExploreMessage as a, type ExploreSurface as b, type ExploreFeedbackRating as c, type ExploreFeedbackReason as d, type ExploreLimits as e, type ExploreProduct as f, type ExploreReference as g, ESCALATE_EXPLORE_CONVERSATION_MUTATION as h, EXPLORE_CATALOG_QUERY as i, EXPLORE_CATALOG_QUERY_WITHOUT_HIGHLIGHTS as j, EXPLORE_ESCALATION_NOTE_SOFT_MAX as k, EXPLORE_MESSAGE_QUERY as l, type EscalateExploreConversationInput as m, type EscalateExploreConversationResult as n, type ExploreCatalogQueryData as o, type ExploreConceptHighlight as p, type ExploreConversation as q, type ExploreCtaKind as r, type ExploreCtaLink as s, type ExploreErrorCode as t, type ExploreEscalation as u, type ExploreMessageQueryData as v, type ExploreMessageRole as w, type ExploreMessageStatus as x, type SendExploreMessageInput as y, type SendExploreMessageMutationData as z };
@@ -1,6 +1,6 @@
1
- export { D as DEFAULT_EXPLORE_EXAMPLE_PROMPTS, E as ExploreChatError, a as ExploreChatErrorKind, b as ExploreChatPhase, c as ExploreEscalateOutcome, d as ExploreEscalateResult, F as FALLBACK_EXPLORE_LIMITS, U as UseExploreChatOptions, e as UseExploreChatResult, f as classifyExploreError, u as useExploreChat } from '../use-explore-chat-zRuoAin6.mjs';
1
+ export { D as DEFAULT_EXPLORE_EXAMPLE_PROMPTS, E as ExploreChatError, a as ExploreChatErrorKind, b as ExploreChatPhase, c as ExploreEscalateOutcome, d as ExploreEscalateResult, e as ExploreResent, f as ExploreSendOptions, g as ExploreSent, F as FALLBACK_EXPLORE_LIMITS, U as UseExploreChatOptions, h as UseExploreChatResult, i as classifyExploreError, u as useExploreChat } from '../use-explore-chat-CbfohA9O.mjs';
2
2
  export { U as UseSpeechOutputOptions, a as UseSpeechOutputResult, s as stopSpeaking, u as useProgressiveReveal, b as useSpeechOutput } from '../use-progressive-reveal-ppicEgzZ.mjs';
3
- import '../explore-types-Bb2Ih3d8.mjs';
3
+ import '../explore-types-Ol1Mm3dW.mjs';
4
4
 
5
5
  interface UseSpeechInputOptions {
6
6
  /** Receives settled text as it is recognised. Append it to the draft. */
@@ -1,6 +1,6 @@
1
- export { D as DEFAULT_EXPLORE_EXAMPLE_PROMPTS, E as ExploreChatError, a as ExploreChatErrorKind, b as ExploreChatPhase, c as ExploreEscalateOutcome, d as ExploreEscalateResult, F as FALLBACK_EXPLORE_LIMITS, U as UseExploreChatOptions, e as UseExploreChatResult, f as classifyExploreError, u as useExploreChat } from '../use-explore-chat-DunjG-3p.js';
1
+ export { D as DEFAULT_EXPLORE_EXAMPLE_PROMPTS, E as ExploreChatError, a as ExploreChatErrorKind, b as ExploreChatPhase, c as ExploreEscalateOutcome, d as ExploreEscalateResult, e as ExploreResent, f as ExploreSendOptions, g as ExploreSent, F as FALLBACK_EXPLORE_LIMITS, U as UseExploreChatOptions, h as UseExploreChatResult, i as classifyExploreError, u as useExploreChat } from '../use-explore-chat-B3dOOvJN.js';
2
2
  export { U as UseSpeechOutputOptions, a as UseSpeechOutputResult, s as stopSpeaking, u as useProgressiveReveal, b as useSpeechOutput } from '../use-progressive-reveal-ppicEgzZ.js';
3
- import '../explore-types-Bb2Ih3d8.js';
3
+ import '../explore-types-Ol1Mm3dW.js';
4
4
 
5
5
  interface UseSpeechInputOptions {
6
6
  /** Receives settled text as it is recognised. Append it to the draft. */
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  require('../chunk-VRWZLGR7.js');
4
- var chunkSK5UGG6A_js = require('../chunk-SK5UGG6A.js');
4
+ var chunkP5GMVPR6_js = require('../chunk-P5GMVPR6.js');
5
5
  require('../chunk-PHXAGQNB.js');
6
6
  require('../chunk-E3GUGJMY.js');
7
7
  require('../chunk-JXLSTVBK.js');
@@ -11,35 +11,35 @@ require('../chunk-ZSTFX7FV.js');
11
11
 
12
12
  Object.defineProperty(exports, "DEFAULT_EXPLORE_EXAMPLE_PROMPTS", {
13
13
  enumerable: true,
14
- get: function () { return chunkSK5UGG6A_js.DEFAULT_EXPLORE_EXAMPLE_PROMPTS; }
14
+ get: function () { return chunkP5GMVPR6_js.DEFAULT_EXPLORE_EXAMPLE_PROMPTS; }
15
15
  });
16
16
  Object.defineProperty(exports, "FALLBACK_EXPLORE_LIMITS", {
17
17
  enumerable: true,
18
- get: function () { return chunkSK5UGG6A_js.FALLBACK_EXPLORE_LIMITS; }
18
+ get: function () { return chunkP5GMVPR6_js.FALLBACK_EXPLORE_LIMITS; }
19
19
  });
20
20
  Object.defineProperty(exports, "classifyExploreError", {
21
21
  enumerable: true,
22
- get: function () { return chunkSK5UGG6A_js.classifyExploreError; }
22
+ get: function () { return chunkP5GMVPR6_js.classifyExploreError; }
23
23
  });
24
24
  Object.defineProperty(exports, "stopSpeaking", {
25
25
  enumerable: true,
26
- get: function () { return chunkSK5UGG6A_js.stopSpeaking; }
26
+ get: function () { return chunkP5GMVPR6_js.stopSpeaking; }
27
27
  });
28
28
  Object.defineProperty(exports, "useExploreChat", {
29
29
  enumerable: true,
30
- get: function () { return chunkSK5UGG6A_js.useExploreChat; }
30
+ get: function () { return chunkP5GMVPR6_js.useExploreChat; }
31
31
  });
32
32
  Object.defineProperty(exports, "useProgressiveReveal", {
33
33
  enumerable: true,
34
- get: function () { return chunkSK5UGG6A_js.useProgressiveReveal; }
34
+ get: function () { return chunkP5GMVPR6_js.useProgressiveReveal; }
35
35
  });
36
36
  Object.defineProperty(exports, "useSpeechInput", {
37
37
  enumerable: true,
38
- get: function () { return chunkSK5UGG6A_js.useSpeechInput; }
38
+ get: function () { return chunkP5GMVPR6_js.useSpeechInput; }
39
39
  });
40
40
  Object.defineProperty(exports, "useSpeechOutput", {
41
41
  enumerable: true,
42
- get: function () { return chunkSK5UGG6A_js.useSpeechOutput; }
42
+ get: function () { return chunkP5GMVPR6_js.useSpeechOutput; }
43
43
  });
44
44
  //# sourceMappingURL=index.js.map
45
45
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
1
  import '../chunk-GTRAXQGC.mjs';
2
- export { DEFAULT_EXPLORE_EXAMPLE_PROMPTS, FALLBACK_EXPLORE_LIMITS, classifyExploreError, stopSpeaking, useExploreChat, useProgressiveReveal, useSpeechInput, useSpeechOutput } from '../chunk-EUPFS6MZ.mjs';
2
+ export { DEFAULT_EXPLORE_EXAMPLE_PROMPTS, FALLBACK_EXPLORE_LIMITS, classifyExploreError, stopSpeaking, useExploreChat, useProgressiveReveal, useSpeechInput, useSpeechOutput } from '../chunk-SMD7MEEA.mjs';
3
3
  import '../chunk-SKIYDKIS.mjs';
4
4
  import '../chunk-KZANIV3S.mjs';
5
5
  import '../chunk-5JRJ57CL.mjs';
package/dist/index.d.mts CHANGED
@@ -18,14 +18,14 @@ export { LaunchCountdown, LaunchCountdownProps } from './components/launch-count
18
18
  export { ProblemSolved, ProblemsSolvedSection, ProblemsSolvedSectionProps } from './components/problems-solved.mjs';
19
19
  export { DetectedPlatform, ElectronDownloadLink, ElectronDownloadLinkProps, detectElectronPlatform } from './components/electron-download.mjs';
20
20
  import { Components } from 'react-markdown';
21
- import { a as ExploreLocale, E as ExplorePanelAvatarLive } from './explore-avatar-live-config-Bp3kQbU2.mjs';
22
- export { b as EXPLORE_LOCALES, c as ExploreStrings, s as speechLocaleOf } from './explore-avatar-live-config-Bp3kQbU2.mjs';
23
- import { A as AnswerRendererStrings, E as ExploreScope } from './explore-DUTNYUOm.mjs';
24
- export { a as EXPLORE_PREFILL_MAX_LENGTH, b as ExploreAnswerBody, c as ExploreAnswerBodyProps, d as ExploreAnswerStyles, e as ExplorePage, f as ExplorePageProps, g as answerPlainText, h as answerSpeechText, i as exploreQuestionHref, j as inlineImageOrigins, k as isInlineImageAllowed, l as isInlineVideoAllowed, p as productSlugsByOrigin } from './explore-DUTNYUOm.mjs';
21
+ import { a as ExploreLocale, E as ExplorePanelAvatarLive } from './explore-avatar-live-config-N4WhJzgS.mjs';
22
+ export { b as EXPLORE_LOCALES, c as ExploreStrings, s as speechLocaleOf } from './explore-avatar-live-config-N4WhJzgS.mjs';
23
+ import { A as AnswerRendererStrings, E as ExploreScope } from './explore-DaSNdm4O.mjs';
24
+ export { a as EXPLORE_PREFILL_MAX_LENGTH, b as ExploreAnswerBody, c as ExploreAnswerBodyProps, d as ExploreAnswerStyles, e as ExplorePage, f as ExplorePageProps, g as answerPlainText, h as answerSpeechText, i as exploreQuestionHref, j as inlineImageOrigins, k as isInlineImageAllowed, l as isInlineVideoAllowed, p as productSlugsByOrigin } from './explore-DaSNdm4O.mjs';
25
25
  export { ExploreCta, ExploreCtaProps } from './components/explore-cta.mjs';
26
- import { e as UseExploreChatResult, S as StagedAttachment } from './use-explore-chat-zRuoAin6.mjs';
27
- export { D as DEFAULT_EXPLORE_EXAMPLE_PROMPTS, E as ExploreChatError, a as ExploreChatErrorKind, b as ExploreChatPhase, c as ExploreEscalateOutcome, d as ExploreEscalateResult, F as FALLBACK_EXPLORE_LIMITS, U as UseExploreChatOptions, f as classifyExploreError, u as useExploreChat } from './use-explore-chat-zRuoAin6.mjs';
28
- export { g as ESCALATE_EXPLORE_CONVERSATION_MUTATION, h as EXPLORE_CATALOG_QUERY, i as EXPLORE_CATALOG_QUERY_WITHOUT_HIGHLIGHTS, j as EXPLORE_ESCALATION_NOTE_SOFT_MAX, k as EXPLORE_MESSAGE_QUERY, l as EscalateExploreConversationInput, m as EscalateExploreConversationResult, E as ExploreCatalog, n as ExploreCatalogQueryData, o as ExploreConceptHighlight, p as ExploreConversation, q as ExploreCtaKind, r as ExploreCtaLink, s as ExploreErrorCode, t as ExploreEscalation, d as ExploreLimits, a as ExploreMessage, u as ExploreMessageQueryData, v as ExploreMessageRole, w as ExploreMessageStatus, e as ExploreProduct, f as ExploreReference, S as SEND_EXPLORE_MESSAGE_MUTATION, x as SendExploreMessageInput, y as SendExploreMessageMutationData, z as SendExploreMessageResult, A as looksLikeDeliverableEmail } from './explore-types-Bb2Ih3d8.mjs';
26
+ import { h as UseExploreChatResult, S as StagedAttachment } from './use-explore-chat-CbfohA9O.mjs';
27
+ export { D as DEFAULT_EXPLORE_EXAMPLE_PROMPTS, E as ExploreChatError, a as ExploreChatErrorKind, b as ExploreChatPhase, c as ExploreEscalateOutcome, d as ExploreEscalateResult, e as ExploreResent, f as ExploreSendOptions, g as ExploreSent, F as FALLBACK_EXPLORE_LIMITS, U as UseExploreChatOptions, i as classifyExploreError, u as useExploreChat } from './use-explore-chat-CbfohA9O.mjs';
28
+ export { h as ESCALATE_EXPLORE_CONVERSATION_MUTATION, i as EXPLORE_CATALOG_QUERY, j as EXPLORE_CATALOG_QUERY_WITHOUT_HIGHLIGHTS, k as EXPLORE_ESCALATION_NOTE_SOFT_MAX, l as EXPLORE_MESSAGE_QUERY, m as EscalateExploreConversationInput, n as EscalateExploreConversationResult, E as ExploreCatalog, o as ExploreCatalogQueryData, p as ExploreConceptHighlight, q as ExploreConversation, r as ExploreCtaKind, s as ExploreCtaLink, t as ExploreErrorCode, u as ExploreEscalation, e as ExploreLimits, a as ExploreMessage, v as ExploreMessageQueryData, w as ExploreMessageRole, x as ExploreMessageStatus, f as ExploreProduct, g as ExploreReference, b as ExploreSurface, S as SEND_EXPLORE_MESSAGE_MUTATION, y as SendExploreMessageInput, z as SendExploreMessageMutationData, A as SendExploreMessageResult, B as looksLikeDeliverableEmail } from './explore-types-Ol1Mm3dW.mjs';
29
29
  export { U as UseSpeechOutputOptions, a as UseSpeechOutputResult, s as stopSpeaking, u as useProgressiveReveal, b as useSpeechOutput } from './use-progressive-reveal-ppicEgzZ.mjs';
30
30
  export { RybbitAnalytics, RybbitAnalyticsProps, WebsiteEventName, WebsiteEventProperties, trackWebsiteEvent } from './analytics/index.mjs';
31
31
  export { PageHead, PageHeadProps } from './seo/index.mjs';
@@ -739,10 +739,16 @@ interface ExplorePanelProps {
739
739
  zIndex?: number;
740
740
  /** Where focus goes back when the panel closes: the button that opened it. */
741
741
  returnFocusRef?: RefObject<HTMLElement | null>;
742
+ /**
743
+ * BOFF-9797. The host router's path, when it has one (`SiteAssistantDock` passes its own). The live avatar's "Start
744
+ * when ready" is bound to the page it was pressed on and is called off when this changes. Absent: the window's path,
745
+ * read when the start is pressed and again before the session is created.
746
+ */
747
+ currentPath?: string;
742
748
  /** Extra classes for the panel. */
743
749
  className?: string;
744
750
  }
745
- declare function ExplorePanel({ open, onOpenChange, id, productSlug, locale, scope, productName, examplePrompts, onNavigate, welcomeTitle, welcomeBody, explorePath, avatar, bottomOffset, zIndex, returnFocusRef, className, }: ExplorePanelProps): react.JSX.Element | null;
751
+ declare function ExplorePanel({ open, onOpenChange, id, productSlug, locale, scope, productName, examplePrompts, onNavigate, welcomeTitle, welcomeBody, explorePath, avatar, bottomOffset, zIndex, returnFocusRef, currentPath, className, }: ExplorePanelProps): react.JSX.Element | null;
746
752
 
747
753
  interface SiteAssistantDockProps {
748
754
  /** The site's product, as the platform knows it (`healthybowl`). Passed to the panel's chat. */
@@ -848,7 +854,7 @@ declare function websiteAvatarLive({ deployEnv, siteKey, site, manifestVersion,
848
854
 
849
855
  declare const buttonVariants: (props?: ({
850
856
  variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
851
- size?: "icon" | "default" | "sm" | "lg" | null | undefined;
857
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
852
858
  } & class_variance_authority_types.ClassProp) | undefined) => string;
853
859
  interface ButtonProps extends react.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
854
860
  asChild?: boolean;
package/dist/index.d.ts CHANGED
@@ -18,14 +18,14 @@ export { LaunchCountdown, LaunchCountdownProps } from './components/launch-count
18
18
  export { ProblemSolved, ProblemsSolvedSection, ProblemsSolvedSectionProps } from './components/problems-solved.js';
19
19
  export { DetectedPlatform, ElectronDownloadLink, ElectronDownloadLinkProps, detectElectronPlatform } from './components/electron-download.js';
20
20
  import { Components } from 'react-markdown';
21
- import { a as ExploreLocale, E as ExplorePanelAvatarLive } from './explore-avatar-live-config-Cetx8-Zu.js';
22
- export { b as EXPLORE_LOCALES, c as ExploreStrings, s as speechLocaleOf } from './explore-avatar-live-config-Cetx8-Zu.js';
23
- import { A as AnswerRendererStrings, E as ExploreScope } from './explore-DjQE7Xia.js';
24
- export { a as EXPLORE_PREFILL_MAX_LENGTH, b as ExploreAnswerBody, c as ExploreAnswerBodyProps, d as ExploreAnswerStyles, e as ExplorePage, f as ExplorePageProps, g as answerPlainText, h as answerSpeechText, i as exploreQuestionHref, j as inlineImageOrigins, k as isInlineImageAllowed, l as isInlineVideoAllowed, p as productSlugsByOrigin } from './explore-DjQE7Xia.js';
21
+ import { a as ExploreLocale, E as ExplorePanelAvatarLive } from './explore-avatar-live-config-CAfN5eAX.js';
22
+ export { b as EXPLORE_LOCALES, c as ExploreStrings, s as speechLocaleOf } from './explore-avatar-live-config-CAfN5eAX.js';
23
+ import { A as AnswerRendererStrings, E as ExploreScope } from './explore-DtSPdlEy.js';
24
+ export { a as EXPLORE_PREFILL_MAX_LENGTH, b as ExploreAnswerBody, c as ExploreAnswerBodyProps, d as ExploreAnswerStyles, e as ExplorePage, f as ExplorePageProps, g as answerPlainText, h as answerSpeechText, i as exploreQuestionHref, j as inlineImageOrigins, k as isInlineImageAllowed, l as isInlineVideoAllowed, p as productSlugsByOrigin } from './explore-DtSPdlEy.js';
25
25
  export { ExploreCta, ExploreCtaProps } from './components/explore-cta.js';
26
- import { e as UseExploreChatResult, S as StagedAttachment } from './use-explore-chat-DunjG-3p.js';
27
- export { D as DEFAULT_EXPLORE_EXAMPLE_PROMPTS, E as ExploreChatError, a as ExploreChatErrorKind, b as ExploreChatPhase, c as ExploreEscalateOutcome, d as ExploreEscalateResult, F as FALLBACK_EXPLORE_LIMITS, U as UseExploreChatOptions, f as classifyExploreError, u as useExploreChat } from './use-explore-chat-DunjG-3p.js';
28
- export { g as ESCALATE_EXPLORE_CONVERSATION_MUTATION, h as EXPLORE_CATALOG_QUERY, i as EXPLORE_CATALOG_QUERY_WITHOUT_HIGHLIGHTS, j as EXPLORE_ESCALATION_NOTE_SOFT_MAX, k as EXPLORE_MESSAGE_QUERY, l as EscalateExploreConversationInput, m as EscalateExploreConversationResult, E as ExploreCatalog, n as ExploreCatalogQueryData, o as ExploreConceptHighlight, p as ExploreConversation, q as ExploreCtaKind, r as ExploreCtaLink, s as ExploreErrorCode, t as ExploreEscalation, d as ExploreLimits, a as ExploreMessage, u as ExploreMessageQueryData, v as ExploreMessageRole, w as ExploreMessageStatus, e as ExploreProduct, f as ExploreReference, S as SEND_EXPLORE_MESSAGE_MUTATION, x as SendExploreMessageInput, y as SendExploreMessageMutationData, z as SendExploreMessageResult, A as looksLikeDeliverableEmail } from './explore-types-Bb2Ih3d8.js';
26
+ import { h as UseExploreChatResult, S as StagedAttachment } from './use-explore-chat-B3dOOvJN.js';
27
+ export { D as DEFAULT_EXPLORE_EXAMPLE_PROMPTS, E as ExploreChatError, a as ExploreChatErrorKind, b as ExploreChatPhase, c as ExploreEscalateOutcome, d as ExploreEscalateResult, e as ExploreResent, f as ExploreSendOptions, g as ExploreSent, F as FALLBACK_EXPLORE_LIMITS, U as UseExploreChatOptions, i as classifyExploreError, u as useExploreChat } from './use-explore-chat-B3dOOvJN.js';
28
+ export { h as ESCALATE_EXPLORE_CONVERSATION_MUTATION, i as EXPLORE_CATALOG_QUERY, j as EXPLORE_CATALOG_QUERY_WITHOUT_HIGHLIGHTS, k as EXPLORE_ESCALATION_NOTE_SOFT_MAX, l as EXPLORE_MESSAGE_QUERY, m as EscalateExploreConversationInput, n as EscalateExploreConversationResult, E as ExploreCatalog, o as ExploreCatalogQueryData, p as ExploreConceptHighlight, q as ExploreConversation, r as ExploreCtaKind, s as ExploreCtaLink, t as ExploreErrorCode, u as ExploreEscalation, e as ExploreLimits, a as ExploreMessage, v as ExploreMessageQueryData, w as ExploreMessageRole, x as ExploreMessageStatus, f as ExploreProduct, g as ExploreReference, b as ExploreSurface, S as SEND_EXPLORE_MESSAGE_MUTATION, y as SendExploreMessageInput, z as SendExploreMessageMutationData, A as SendExploreMessageResult, B as looksLikeDeliverableEmail } from './explore-types-Ol1Mm3dW.js';
29
29
  export { U as UseSpeechOutputOptions, a as UseSpeechOutputResult, s as stopSpeaking, u as useProgressiveReveal, b as useSpeechOutput } from './use-progressive-reveal-ppicEgzZ.js';
30
30
  export { RybbitAnalytics, RybbitAnalyticsProps, WebsiteEventName, WebsiteEventProperties, trackWebsiteEvent } from './analytics/index.js';
31
31
  export { PageHead, PageHeadProps } from './seo/index.js';
@@ -739,10 +739,16 @@ interface ExplorePanelProps {
739
739
  zIndex?: number;
740
740
  /** Where focus goes back when the panel closes: the button that opened it. */
741
741
  returnFocusRef?: RefObject<HTMLElement | null>;
742
+ /**
743
+ * BOFF-9797. The host router's path, when it has one (`SiteAssistantDock` passes its own). The live avatar's "Start
744
+ * when ready" is bound to the page it was pressed on and is called off when this changes. Absent: the window's path,
745
+ * read when the start is pressed and again before the session is created.
746
+ */
747
+ currentPath?: string;
742
748
  /** Extra classes for the panel. */
743
749
  className?: string;
744
750
  }
745
- declare function ExplorePanel({ open, onOpenChange, id, productSlug, locale, scope, productName, examplePrompts, onNavigate, welcomeTitle, welcomeBody, explorePath, avatar, bottomOffset, zIndex, returnFocusRef, className, }: ExplorePanelProps): react.JSX.Element | null;
751
+ declare function ExplorePanel({ open, onOpenChange, id, productSlug, locale, scope, productName, examplePrompts, onNavigate, welcomeTitle, welcomeBody, explorePath, avatar, bottomOffset, zIndex, returnFocusRef, currentPath, className, }: ExplorePanelProps): react.JSX.Element | null;
746
752
 
747
753
  interface SiteAssistantDockProps {
748
754
  /** The site's product, as the platform knows it (`healthybowl`). Passed to the panel's chat. */
@@ -848,7 +854,7 @@ declare function websiteAvatarLive({ deployEnv, siteKey, site, manifestVersion,
848
854
 
849
855
  declare const buttonVariants: (props?: ({
850
856
  variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
851
- size?: "icon" | "default" | "sm" | "lg" | null | undefined;
857
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
852
858
  } & class_variance_authority_types.ClassProp) | undefined) => string;
853
859
  interface ButtonProps extends react.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
854
860
  asChild?: boolean;