@burdenoff/website-sdk 2026.1102.1 → 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 +50 -2
- package/dist/avatar-live-view/index.d.mts +18 -4
- package/dist/avatar-live-view/index.d.ts +18 -4
- package/dist/avatar-live-view/index.js +1348 -266
- package/dist/avatar-live-view/index.js.map +1 -1
- package/dist/avatar-live-view/index.mjs +1346 -264
- package/dist/avatar-live-view/index.mjs.map +1 -1
- package/dist/{chunk-OIQHIGGU.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-QOHPLTGT.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-C1ILEcY8.d.ts → explore-avatar-live-config-CAfN5eAX.d.ts} +9 -3
- package/dist/{explore-avatar-live-config-D-hO90-A.d.mts → explore-avatar-live-config-N4WhJzgS.d.mts} +9 -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 +93 -63
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +36 -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-OIQHIGGU.js.map +0 -1
- package/dist/chunk-QOHPLTGT.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),
|
|
@@ -3406,6 +3424,12 @@ function ExploreAvatarLive({
|
|
|
3406
3424
|
fallback,
|
|
3407
3425
|
onContinueInChat,
|
|
3408
3426
|
continueInChat: T.continueInChat,
|
|
3427
|
+
newChat: T.newChat,
|
|
3428
|
+
send: T.send,
|
|
3429
|
+
tryAsking: T.tryAsking,
|
|
3430
|
+
prompts,
|
|
3431
|
+
touchFirst,
|
|
3432
|
+
currentPath,
|
|
3409
3433
|
off,
|
|
3410
3434
|
base,
|
|
3411
3435
|
headers,
|
|
@@ -3642,6 +3666,7 @@ function ExplorePanel({
|
|
|
3642
3666
|
bottomOffset,
|
|
3643
3667
|
zIndex,
|
|
3644
3668
|
returnFocusRef,
|
|
3669
|
+
currentPath,
|
|
3645
3670
|
className
|
|
3646
3671
|
}) {
|
|
3647
3672
|
const resolvedLocale = resolveExploreLocale(locale);
|
|
@@ -4153,7 +4178,11 @@ function ExplorePanel({
|
|
|
4153
4178
|
productName: pinnedName,
|
|
4154
4179
|
still: { src: avatar.src, alt: avatarAlt },
|
|
4155
4180
|
fallback: comingSoon,
|
|
4156
|
-
onContinueInChat: continueInChat
|
|
4181
|
+
onContinueInChat: continueInChat,
|
|
4182
|
+
examplePrompts,
|
|
4183
|
+
pinnedSlug,
|
|
4184
|
+
touchFirst: matches(TOUCH_FIRST_QUERY),
|
|
4185
|
+
currentPath
|
|
4157
4186
|
}
|
|
4158
4187
|
) : comingSoon
|
|
4159
4188
|
}
|
|
@@ -4297,6 +4326,7 @@ function Dock({
|
|
|
4297
4326
|
bottomOffset,
|
|
4298
4327
|
zIndex,
|
|
4299
4328
|
returnFocusRef: launcherRef,
|
|
4329
|
+
currentPath: path ?? void 0,
|
|
4300
4330
|
className: panelClassName
|
|
4301
4331
|
}
|
|
4302
4332
|
)
|