@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.
- package/README.md +41 -2
- package/dist/avatar-live-view/index.d.mts +13 -4
- package/dist/avatar-live-view/index.d.ts +13 -4
- package/dist/avatar-live-view/index.js +1262 -257
- package/dist/avatar-live-view/index.js.map +1 -1
- package/dist/avatar-live-view/index.mjs +1260 -255
- package/dist/avatar-live-view/index.mjs.map +1 -1
- package/dist/{chunk-FQH3AJN3.js → chunk-7O2I32ZN.js} +2 -2
- package/dist/chunk-7O2I32ZN.js.map +1 -0
- package/dist/{chunk-R742FS5E.js → chunk-DZLUZKOX.js} +19 -17
- package/dist/{chunk-R742FS5E.js.map → chunk-DZLUZKOX.js.map} +1 -1
- package/dist/{chunk-SFT3WHN5.mjs → chunk-K3QZGJEH.mjs} +2 -2
- package/dist/chunk-K3QZGJEH.mjs.map +1 -0
- package/dist/{chunk-SK5UGG6A.js → chunk-P5GMVPR6.js} +76 -20
- package/dist/chunk-P5GMVPR6.js.map +1 -0
- package/dist/{chunk-EUPFS6MZ.mjs → chunk-SMD7MEEA.mjs} +76 -20
- package/dist/chunk-SMD7MEEA.mjs.map +1 -0
- package/dist/{chunk-ETI2HQEC.mjs → chunk-ZWEEBHXJ.mjs} +4 -4
- package/dist/{chunk-ETI2HQEC.mjs.map → chunk-ZWEEBHXJ.mjs.map} +1 -1
- package/dist/components/explore.d.mts +2 -2
- package/dist/components/explore.d.ts +2 -2
- package/dist/components/explore.js +14 -14
- package/dist/components/explore.mjs +2 -2
- package/dist/{explore-DUTNYUOm.d.mts → explore-DaSNdm4O.d.mts} +1 -1
- package/dist/{explore-DjQE7Xia.d.ts → explore-DtSPdlEy.d.ts} +1 -1
- package/dist/{explore-avatar-live-config-Cetx8-Zu.d.ts → explore-avatar-live-config-CAfN5eAX.d.ts} +6 -3
- package/dist/{explore-avatar-live-config-Bp3kQbU2.d.mts → explore-avatar-live-config-N4WhJzgS.d.mts} +6 -3
- package/dist/{explore-types-Bb2Ih3d8.d.mts → explore-types-Ol1Mm3dW.d.mts} +12 -1
- package/dist/{explore-types-Bb2Ih3d8.d.ts → explore-types-Ol1Mm3dW.d.ts} +12 -1
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +9 -9
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.d.mts +15 -9
- package/dist/index.d.ts +15 -9
- package/dist/index.js +92 -63
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +35 -6
- package/dist/index.mjs.map +1 -1
- package/dist/{use-explore-chat-DunjG-3p.d.ts → use-explore-chat-B3dOOvJN.d.ts} +43 -3
- package/dist/{use-explore-chat-zRuoAin6.d.mts → use-explore-chat-CbfohA9O.d.mts} +43 -3
- package/package.json +1 -1
- package/dist/chunk-EUPFS6MZ.mjs.map +0 -1
- package/dist/chunk-FQH3AJN3.js.map +0 -1
- package/dist/chunk-SFT3WHN5.mjs.map +0 -1
- 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-
|
|
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-
|
|
19
|
-
export { EXPLORE_LOCALES, EXPLORE_PREFILL_MAX_LENGTH, ExploreAnswerBody, ExploreAnswerStyles, ExploreChatProvider, ExplorePage, answerPlainText, answerSpeechText, exploreQuestionHref, inlineImageOrigins, isInlineImageAllowed, isInlineVideoAllowed, productSlugsByOrigin, speechLocaleOf, useExploreConversation } from './chunk-
|
|
18
|
+
import { productSlugsByOrigin, inlineImageOrigins, exploreStrings, resolveExploreLocale, isRtlLocale, answerSpeechText, ExploreAnswerStyles, ExploreAnswerBody, ExploreCatalogProductsContext, pinnedProductSlug, productNameFor, ExplorePage, ExploreConversationStartContext, isDevelopmentBuild, ExploreConversationContext, productScopedPrompts, anotherProductMatcher } from './chunk-ZWEEBHXJ.mjs';
|
|
19
|
+
export { EXPLORE_LOCALES, EXPLORE_PREFILL_MAX_LENGTH, ExploreAnswerBody, ExploreAnswerStyles, ExploreChatProvider, ExplorePage, answerPlainText, answerSpeechText, exploreQuestionHref, inlineImageOrigins, isInlineImageAllowed, isInlineVideoAllowed, productSlugsByOrigin, speechLocaleOf, useExploreConversation } from './chunk-ZWEEBHXJ.mjs';
|
|
20
20
|
import { fill } from './chunk-TT3MHN42.mjs';
|
|
21
|
-
import { ECOSYSTEM_PRODUCTS } from './chunk-
|
|
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-
|
|
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
|
|
@@ -3346,11 +3355,20 @@ function ExploreAvatarLive({
|
|
|
3346
3355
|
still,
|
|
3347
3356
|
fallback,
|
|
3348
3357
|
onContinueInChat,
|
|
3358
|
+
examplePrompts,
|
|
3359
|
+
pinnedSlug = null,
|
|
3360
|
+
touchFirst = false,
|
|
3361
|
+
currentPath,
|
|
3349
3362
|
loadView = loadAvatarLiveView
|
|
3350
3363
|
}) {
|
|
3351
3364
|
const T = exploreStrings(locale);
|
|
3352
3365
|
const config = useWebSDKConfig();
|
|
3353
3366
|
const conversation = useContext(ExploreConversationContext);
|
|
3367
|
+
const catalog = conversation?.catalog;
|
|
3368
|
+
const prompts = useMemo(
|
|
3369
|
+
() => suggestedQuestions(catalog, examplePrompts, pinnedSlug),
|
|
3370
|
+
[catalog, examplePrompts, pinnedSlug]
|
|
3371
|
+
);
|
|
3354
3372
|
const base = avatarApiBase(config.gatewayUrl);
|
|
3355
3373
|
const headers = useMemo(
|
|
3356
3374
|
() => cfAccessHeaders(config.gatewayUrl, config.cfAccess),
|
|
@@ -3407,6 +3425,11 @@ function ExploreAvatarLive({
|
|
|
3407
3425
|
onContinueInChat,
|
|
3408
3426
|
continueInChat: T.continueInChat,
|
|
3409
3427
|
newChat: T.newChat,
|
|
3428
|
+
send: T.send,
|
|
3429
|
+
tryAsking: T.tryAsking,
|
|
3430
|
+
prompts,
|
|
3431
|
+
touchFirst,
|
|
3432
|
+
currentPath,
|
|
3410
3433
|
off,
|
|
3411
3434
|
base,
|
|
3412
3435
|
headers,
|
|
@@ -3643,6 +3666,7 @@ function ExplorePanel({
|
|
|
3643
3666
|
bottomOffset,
|
|
3644
3667
|
zIndex,
|
|
3645
3668
|
returnFocusRef,
|
|
3669
|
+
currentPath,
|
|
3646
3670
|
className
|
|
3647
3671
|
}) {
|
|
3648
3672
|
const resolvedLocale = resolveExploreLocale(locale);
|
|
@@ -4154,7 +4178,11 @@ function ExplorePanel({
|
|
|
4154
4178
|
productName: pinnedName,
|
|
4155
4179
|
still: { src: avatar.src, alt: avatarAlt },
|
|
4156
4180
|
fallback: comingSoon,
|
|
4157
|
-
onContinueInChat: continueInChat
|
|
4181
|
+
onContinueInChat: continueInChat,
|
|
4182
|
+
examplePrompts,
|
|
4183
|
+
pinnedSlug,
|
|
4184
|
+
touchFirst: matches(TOUCH_FIRST_QUERY),
|
|
4185
|
+
currentPath
|
|
4158
4186
|
}
|
|
4159
4187
|
) : comingSoon
|
|
4160
4188
|
}
|
|
@@ -4298,6 +4326,7 @@ function Dock({
|
|
|
4298
4326
|
bottomOffset,
|
|
4299
4327
|
zIndex,
|
|
4300
4328
|
returnFocusRef: launcherRef,
|
|
4329
|
+
currentPath: path ?? void 0,
|
|
4301
4330
|
className: panelClassName
|
|
4302
4331
|
}
|
|
4303
4332
|
)
|