@burdenoff/website-sdk 2026.1102.2 → 2026.1104.1

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 (48) hide show
  1. package/README.md +63 -8
  2. package/dist/avatar-live-view/index.d.mts +29 -5
  3. package/dist/avatar-live-view/index.d.ts +29 -5
  4. package/dist/avatar-live-view/index.js +1319 -271
  5. package/dist/avatar-live-view/index.js.map +1 -1
  6. package/dist/avatar-live-view/index.mjs +1317 -269
  7. package/dist/avatar-live-view/index.mjs.map +1 -1
  8. package/dist/{chunk-R742FS5E.js → chunk-22OT6E26.js} +61 -27
  9. package/dist/chunk-22OT6E26.js.map +1 -0
  10. package/dist/{chunk-ETI2HQEC.mjs → chunk-5JQGE3XI.mjs} +46 -14
  11. package/dist/chunk-5JQGE3XI.mjs.map +1 -0
  12. package/dist/{chunk-FQH3AJN3.js → chunk-7O2I32ZN.js} +2 -2
  13. package/dist/chunk-7O2I32ZN.js.map +1 -0
  14. package/dist/{chunk-SFT3WHN5.mjs → chunk-K3QZGJEH.mjs} +2 -2
  15. package/dist/chunk-K3QZGJEH.mjs.map +1 -0
  16. package/dist/{chunk-SK5UGG6A.js → chunk-P5GMVPR6.js} +76 -20
  17. package/dist/chunk-P5GMVPR6.js.map +1 -0
  18. package/dist/{chunk-EUPFS6MZ.mjs → chunk-SMD7MEEA.mjs} +76 -20
  19. package/dist/chunk-SMD7MEEA.mjs.map +1 -0
  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-BV4dRwoC.d.ts} +8 -1
  25. package/dist/{explore-DjQE7Xia.d.ts → explore-BgEeGPvY.d.mts} +8 -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 +14 -8
  35. package/dist/index.d.ts +14 -8
  36. package/dist/index.js +100 -63
  37. package/dist/index.js.map +1 -1
  38. package/dist/index.mjs +43 -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-ETI2HQEC.mjs.map +0 -1
  44. package/dist/chunk-EUPFS6MZ.mjs.map +0 -1
  45. package/dist/chunk-FQH3AJN3.js.map +0 -1
  46. package/dist/chunk-R742FS5E.js.map +0 -1
  47. package/dist/chunk-SFT3WHN5.mjs.map +0 -1
  48. package/dist/chunk-SK5UGG6A.js.map +0 -1
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { isRealTurnstileSiteKey, avatarApiBase, liveConfigComplete, isAvatarLiveLocaleReviewed } from './chunk-SFT3WHN5.mjs';
1
+ import { isRealTurnstileSiteKey, avatarApiBase, liveConfigComplete, isAvatarLiveLocaleReviewed } from './chunk-K3QZGJEH.mjs';
2
2
  export { DEFAULT_COMPARISON_MAX_AGE_DAYS, checkComparisonFreshness, formatFreshnessReport, latestVerification, oldestVerification, parseVerifiedAt } from './chunk-B63XLDZH.mjs';
3
3
  import './chunk-GTRAXQGC.mjs';
4
4
  export { RybbitAnalytics } from './chunk-NZANQGDM.mjs';
@@ -15,11 +15,11 @@ export { WebsiteSwitcher } from './chunk-ZOON3S3Y.mjs';
15
15
  export { LaunchCountdown } from './chunk-KU2PXHGB.mjs';
16
16
  export { ProblemsSolvedSection } from './chunk-WPKFFQCR.mjs';
17
17
  export { ElectronDownloadLink, detectElectronPlatform } from './chunk-COOELBX7.mjs';
18
- import { productSlugsByOrigin, inlineImageOrigins, exploreStrings, resolveExploreLocale, isRtlLocale, answerSpeechText, ExploreAnswerStyles, ExploreAnswerBody, ExploreCatalogProductsContext, pinnedProductSlug, productNameFor, ExplorePage, ExploreConversationStartContext, isDevelopmentBuild, ExploreConversationContext } from './chunk-ETI2HQEC.mjs';
19
- export { EXPLORE_LOCALES, EXPLORE_PREFILL_MAX_LENGTH, ExploreAnswerBody, ExploreAnswerStyles, ExploreChatProvider, ExplorePage, answerPlainText, answerSpeechText, exploreQuestionHref, inlineImageOrigins, isInlineImageAllowed, isInlineVideoAllowed, productSlugsByOrigin, speechLocaleOf, useExploreConversation } from './chunk-ETI2HQEC.mjs';
18
+ import { productSlugsByOrigin, inlineImageOrigins, exploreStrings, resolveExploreLocale, isRtlLocale, answerSpeechText, ExploreAnswerStyles, ExploreAnswerBody, ExploreCatalogProductsContext, pinnedProductSlug, productNameFor, ExplorePage, ExploreConversationStartContext, isDevelopmentBuild, ExploreConversationContext, productScopedPrompts, anotherProductMatcher } from './chunk-5JQGE3XI.mjs';
19
+ export { EXPLORE_LOCALES, EXPLORE_PREFILL_MAX_LENGTH, ExploreAnswerBody, ExploreAnswerStyles, ExploreChatProvider, ExplorePage, answerPlainText, answerSpeechText, exploreQuestionHref, inlineImageOrigins, isInlineImageAllowed, isInlineVideoAllowed, productSlugsByOrigin, speechLocaleOf, useExploreConversation } from './chunk-5JQGE3XI.mjs';
20
20
  import { fill } from './chunk-TT3MHN42.mjs';
21
- import { ECOSYSTEM_PRODUCTS } from './chunk-EUPFS6MZ.mjs';
22
- export { DEFAULT_EXPLORE_EXAMPLE_PROMPTS, ECOSYSTEM_PRODUCTS, ESCALATE_EXPLORE_CONVERSATION_MUTATION, EXPLORE_CATALOG_QUERY, EXPLORE_CATALOG_QUERY_WITHOUT_HIGHLIGHTS, EXPLORE_ESCALATION_NOTE_SOFT_MAX, EXPLORE_MESSAGE_QUERY, FALLBACK_EXPLORE_LIMITS, SEND_EXPLORE_MESSAGE_MUTATION, classifyExploreError, looksLikeDeliverableEmail, stopSpeaking, useExploreChat, useProgressiveReveal, useSpeechOutput } from './chunk-EUPFS6MZ.mjs';
21
+ import { ECOSYSTEM_PRODUCTS } from './chunk-SMD7MEEA.mjs';
22
+ export { DEFAULT_EXPLORE_EXAMPLE_PROMPTS, ECOSYSTEM_PRODUCTS, ESCALATE_EXPLORE_CONVERSATION_MUTATION, EXPLORE_CATALOG_QUERY, EXPLORE_CATALOG_QUERY_WITHOUT_HIGHLIGHTS, EXPLORE_ESCALATION_NOTE_SOFT_MAX, EXPLORE_MESSAGE_QUERY, FALLBACK_EXPLORE_LIMITS, SEND_EXPLORE_MESSAGE_MUTATION, classifyExploreError, looksLikeDeliverableEmail, stopSpeaking, useExploreChat, useProgressiveReveal, useSpeechOutput } from './chunk-SMD7MEEA.mjs';
23
23
  export { EXPLORE_RECAPTCHA_ACTION, getRecaptchaV3Token, loadRecaptchaV3 } from './chunk-SKIYDKIS.mjs';
24
24
  import { ProseStyles } from './chunk-6VJT3SM4.mjs';
25
25
  export { Markdown } from './chunk-EBZ2HGJ2.mjs';
@@ -3333,6 +3333,15 @@ function AnswerDetail({
3333
3333
  );
3334
3334
  }
3335
3335
  var VIEW_LOAD_TIMEOUT_MS = 8e3;
3336
+ var NO_PROMPTS = [];
3337
+ function suggestedQuestions(catalog, examplePrompts, pinnedSlug) {
3338
+ if (catalog === void 0) return NO_PROMPTS;
3339
+ return pinnedSlug === null ? catalog.examplePrompts : productScopedPrompts(
3340
+ examplePrompts,
3341
+ catalog.examplePrompts,
3342
+ anotherProductMatcher(catalog.products, pinnedSlug)
3343
+ );
3344
+ }
3336
3345
  function loadAvatarLiveView() {
3337
3346
  return import('./avatar-live-view/index.mjs').then(
3338
3347
  (loaded) => loaded.AvatarLiveView
@@ -3341,16 +3350,27 @@ function loadAvatarLiveView() {
3341
3350
  function ExploreAvatarLive({
3342
3351
  live,
3343
3352
  active,
3353
+ open = active,
3344
3354
  locale,
3345
3355
  productName,
3346
3356
  still,
3347
3357
  fallback,
3348
3358
  onContinueInChat,
3359
+ onVoiceHold,
3360
+ examplePrompts,
3361
+ pinnedSlug = null,
3362
+ touchFirst = false,
3363
+ currentPath,
3349
3364
  loadView = loadAvatarLiveView
3350
3365
  }) {
3351
3366
  const T = exploreStrings(locale);
3352
3367
  const config = useWebSDKConfig();
3353
3368
  const conversation = useContext(ExploreConversationContext);
3369
+ const catalog = conversation?.catalog;
3370
+ const prompts = useMemo(
3371
+ () => suggestedQuestions(catalog, examplePrompts, pinnedSlug),
3372
+ [catalog, examplePrompts, pinnedSlug]
3373
+ );
3354
3374
  const base = avatarApiBase(config.gatewayUrl);
3355
3375
  const headers = useMemo(
3356
3376
  () => cfAccessHeaders(config.gatewayUrl, config.cfAccess),
@@ -3400,13 +3420,20 @@ function ExploreAvatarLive({
3400
3420
  {
3401
3421
  live,
3402
3422
  active,
3423
+ open,
3403
3424
  locale,
3404
3425
  productName,
3405
3426
  still,
3406
3427
  fallback,
3407
3428
  onContinueInChat,
3429
+ onVoiceHold,
3408
3430
  continueInChat: T.continueInChat,
3409
3431
  newChat: T.newChat,
3432
+ send: T.send,
3433
+ tryAsking: T.tryAsking,
3434
+ prompts,
3435
+ touchFirst,
3436
+ currentPath,
3410
3437
  off,
3411
3438
  base,
3412
3439
  headers,
@@ -3643,6 +3670,7 @@ function ExplorePanel({
3643
3670
  bottomOffset,
3644
3671
  zIndex,
3645
3672
  returnFocusRef,
3673
+ currentPath,
3646
3674
  className
3647
3675
  }) {
3648
3676
  const resolvedLocale = resolveExploreLocale(locale);
@@ -3668,6 +3696,7 @@ function ExplorePanel({
3668
3696
  const [mounted, setMounted] = useState(open);
3669
3697
  const [size, setSize] = useState("compact");
3670
3698
  const [view, setView] = useState("chat");
3699
+ const [voiceHold, setVoiceHold] = useState(null);
3671
3700
  const [focusRequest, setFocusRequest] = useState(
3672
3701
  open ? "in" : null
3673
3702
  );
@@ -4121,6 +4150,7 @@ function ExplorePanel({
4121
4150
  {
4122
4151
  presentation: "panel",
4123
4152
  active: open && view === "chat",
4153
+ voiceHold,
4124
4154
  productSlug,
4125
4155
  locale,
4126
4156
  scope,
@@ -4150,11 +4180,17 @@ function ExplorePanel({
4150
4180
  {
4151
4181
  live: avatar.live,
4152
4182
  active: open && view === "avatar",
4183
+ open,
4153
4184
  locale: resolvedLocale,
4154
4185
  productName: pinnedName,
4155
4186
  still: { src: avatar.src, alt: avatarAlt },
4156
4187
  fallback: comingSoon,
4157
- onContinueInChat: continueInChat
4188
+ onContinueInChat: continueInChat,
4189
+ onVoiceHold: setVoiceHold,
4190
+ examplePrompts,
4191
+ pinnedSlug,
4192
+ touchFirst: matches(TOUCH_FIRST_QUERY),
4193
+ currentPath
4158
4194
  }
4159
4195
  ) : comingSoon
4160
4196
  }
@@ -4298,6 +4334,7 @@ function Dock({
4298
4334
  bottomOffset,
4299
4335
  zIndex,
4300
4336
  returnFocusRef: launcherRef,
4337
+ currentPath: path ?? void 0,
4301
4338
  className: panelClassName
4302
4339
  }
4303
4340
  )