@burdenoff/website-sdk 2026.1104.3 → 2026.1105.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.
- package/README.md +51 -6
- package/dist/avatar-live-view/index.d.mts +1 -1
- package/dist/avatar-live-view/index.d.ts +1 -1
- package/dist/avatar-live-view/index.js +482 -64
- package/dist/avatar-live-view/index.js.map +1 -1
- package/dist/avatar-live-view/index.mjs +476 -58
- package/dist/avatar-live-view/index.mjs.map +1 -1
- package/dist/avatar-mic/index.d.mts +193 -0
- package/dist/avatar-mic/index.d.ts +193 -0
- package/dist/avatar-mic/index.js +738 -0
- package/dist/avatar-mic/index.js.map +1 -0
- package/dist/avatar-mic/index.mjs +736 -0
- package/dist/avatar-mic/index.mjs.map +1 -0
- package/dist/{chunk-5JQGE3XI.mjs → chunk-7HE33NBS.mjs} +4 -111
- package/dist/chunk-7HE33NBS.mjs.map +1 -0
- package/dist/chunk-JZS6FQT6.mjs +127 -0
- package/dist/chunk-JZS6FQT6.mjs.map +1 -0
- package/dist/{chunk-22OT6E26.js → chunk-MBVXDFVC.js} +18 -127
- package/dist/chunk-MBVXDFVC.js.map +1 -0
- package/dist/{chunk-7MSB3EUI.mjs → chunk-MVNN6LLO.mjs} +4 -3
- package/dist/chunk-MVNN6LLO.mjs.map +1 -0
- package/dist/chunk-N7E6Z2GF.js +132 -0
- package/dist/chunk-N7E6Z2GF.js.map +1 -0
- package/dist/{chunk-WSEQ2I6I.js → chunk-XIZE37IB.js} +4 -3
- package/dist/chunk-XIZE37IB.js.map +1 -0
- package/dist/components/explore.d.mts +1 -1
- package/dist/components/explore.d.ts +1 -1
- package/dist/components/explore.js +20 -20
- package/dist/components/explore.mjs +2 -2
- package/dist/{explore-BV4dRwoC.d.ts → explore-Dfru4j4m.d.ts} +45 -31
- package/dist/{explore-avatar-live-config-DRpS-mqQ.d.ts → explore-avatar-live-config-C-OwXNje.d.ts} +8 -0
- package/dist/{explore-avatar-live-config-B6_p0q1c.d.mts → explore-avatar-live-config-OO0hvQCK.d.mts} +8 -0
- package/dist/{explore-BgEeGPvY.d.mts → explore-ei8uoko9.d.mts} +45 -31
- package/dist/index.d.mts +11 -6
- package/dist/index.d.ts +11 -6
- package/dist/index.js +70 -68
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-22OT6E26.js.map +0 -1
- package/dist/chunk-5JQGE3XI.mjs.map +0 -1
- package/dist/chunk-7MSB3EUI.mjs.map +0 -1
- package/dist/chunk-O4GS3XPZ.js +0 -10
- package/dist/chunk-O4GS3XPZ.js.map +0 -1
- package/dist/chunk-TT3MHN42.mjs +0 -8
- package/dist/chunk-TT3MHN42.mjs.map +0 -1
- package/dist/chunk-WSEQ2I6I.js.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -18,10 +18,10 @@ 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-
|
|
22
|
-
export { b as EXPLORE_LOCALES, c as ExploreStrings, s as speechLocaleOf } from './explore-avatar-live-config-
|
|
23
|
-
import { A as AnswerRendererStrings, E as ExploreScope } from './explore-
|
|
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-
|
|
21
|
+
import { a as ExploreLocale, E as ExplorePanelAvatarLive } from './explore-avatar-live-config-OO0hvQCK.mjs';
|
|
22
|
+
export { b as EXPLORE_LOCALES, c as ExploreStrings, s as speechLocaleOf } from './explore-avatar-live-config-OO0hvQCK.mjs';
|
|
23
|
+
import { A as AnswerRendererStrings, E as ExploreScope } from './explore-ei8uoko9.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-ei8uoko9.mjs';
|
|
25
25
|
export { ExploreCta, ExploreCtaProps } from './components/explore-cta.mjs';
|
|
26
26
|
import { h as UseExploreChatResult, S as StagedAttachment } from './use-explore-chat-CbfohA9O.mjs';
|
|
27
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';
|
|
@@ -854,13 +854,18 @@ interface WebsiteAvatarLiveOptions {
|
|
|
854
854
|
* plays on to the end the server planned for it.
|
|
855
855
|
*/
|
|
856
856
|
endUnattended?: boolean;
|
|
857
|
+
/**
|
|
858
|
+
* `mic` on the live config (Stage C): a mic in the Avatar tab's own question box, where the server offers one too.
|
|
859
|
+
* Default unset: no mic.
|
|
860
|
+
*/
|
|
861
|
+
mic?: boolean;
|
|
857
862
|
}
|
|
858
863
|
/** The `avatar.live` prop for this build, or `undefined` for the still picture only. */
|
|
859
|
-
declare function websiteAvatarLive({ deployEnv, siteKey, site, manifestVersion, load, enabled, endUnattended, }: WebsiteAvatarLiveOptions): ExplorePanelAvatarLive | undefined;
|
|
864
|
+
declare function websiteAvatarLive({ deployEnv, siteKey, site, manifestVersion, load, enabled, endUnattended, mic, }: WebsiteAvatarLiveOptions): ExplorePanelAvatarLive | undefined;
|
|
860
865
|
|
|
861
866
|
declare const buttonVariants: (props?: ({
|
|
862
867
|
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
863
|
-
size?: "
|
|
868
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
864
869
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
865
870
|
interface ButtonProps extends react.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
866
871
|
asChild?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -18,10 +18,10 @@ 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-
|
|
22
|
-
export { b as EXPLORE_LOCALES, c as ExploreStrings, s as speechLocaleOf } from './explore-avatar-live-config-
|
|
23
|
-
import { A as AnswerRendererStrings, E as ExploreScope } from './explore-
|
|
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-
|
|
21
|
+
import { a as ExploreLocale, E as ExplorePanelAvatarLive } from './explore-avatar-live-config-C-OwXNje.js';
|
|
22
|
+
export { b as EXPLORE_LOCALES, c as ExploreStrings, s as speechLocaleOf } from './explore-avatar-live-config-C-OwXNje.js';
|
|
23
|
+
import { A as AnswerRendererStrings, E as ExploreScope } from './explore-Dfru4j4m.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-Dfru4j4m.js';
|
|
25
25
|
export { ExploreCta, ExploreCtaProps } from './components/explore-cta.js';
|
|
26
26
|
import { h as UseExploreChatResult, S as StagedAttachment } from './use-explore-chat-B3dOOvJN.js';
|
|
27
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';
|
|
@@ -854,13 +854,18 @@ interface WebsiteAvatarLiveOptions {
|
|
|
854
854
|
* plays on to the end the server planned for it.
|
|
855
855
|
*/
|
|
856
856
|
endUnattended?: boolean;
|
|
857
|
+
/**
|
|
858
|
+
* `mic` on the live config (Stage C): a mic in the Avatar tab's own question box, where the server offers one too.
|
|
859
|
+
* Default unset: no mic.
|
|
860
|
+
*/
|
|
861
|
+
mic?: boolean;
|
|
857
862
|
}
|
|
858
863
|
/** The `avatar.live` prop for this build, or `undefined` for the still picture only. */
|
|
859
|
-
declare function websiteAvatarLive({ deployEnv, siteKey, site, manifestVersion, load, enabled, endUnattended, }: WebsiteAvatarLiveOptions): ExplorePanelAvatarLive | undefined;
|
|
864
|
+
declare function websiteAvatarLive({ deployEnv, siteKey, site, manifestVersion, load, enabled, endUnattended, mic, }: WebsiteAvatarLiveOptions): ExplorePanelAvatarLive | undefined;
|
|
860
865
|
|
|
861
866
|
declare const buttonVariants: (props?: ({
|
|
862
867
|
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
863
|
-
size?: "
|
|
868
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
864
869
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
865
870
|
interface ButtonProps extends react.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
866
871
|
asChild?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkXIZE37IB_js = require('./chunk-XIZE37IB.js');
|
|
4
4
|
var chunk6KY2ZRVI_js = require('./chunk-6KY2ZRVI.js');
|
|
5
5
|
require('./chunk-VRWZLGR7.js');
|
|
6
6
|
var chunkQMA6U6AU_js = require('./chunk-QMA6U6AU.js');
|
|
@@ -16,8 +16,8 @@ var chunkAA33WDYS_js = require('./chunk-AA33WDYS.js');
|
|
|
16
16
|
var chunk45GCA4GG_js = require('./chunk-45GCA4GG.js');
|
|
17
17
|
var chunkW6P3YETJ_js = require('./chunk-W6P3YETJ.js');
|
|
18
18
|
var chunkT7JIPZAC_js = require('./chunk-T7JIPZAC.js');
|
|
19
|
-
var
|
|
20
|
-
var
|
|
19
|
+
var chunkMBVXDFVC_js = require('./chunk-MBVXDFVC.js');
|
|
20
|
+
var chunkN7E6Z2GF_js = require('./chunk-N7E6Z2GF.js');
|
|
21
21
|
var chunkP5GMVPR6_js = require('./chunk-P5GMVPR6.js');
|
|
22
22
|
var chunkPHXAGQNB_js = require('./chunk-PHXAGQNB.js');
|
|
23
23
|
var chunk3LFFY7AZ_js = require('./chunk-3LFFY7AZ.js');
|
|
@@ -2320,7 +2320,7 @@ var CHROME = {
|
|
|
2320
2320
|
};
|
|
2321
2321
|
function answerStrings(locale) {
|
|
2322
2322
|
const chrome = CHROME[locale] ?? EN;
|
|
2323
|
-
const explore =
|
|
2323
|
+
const explore = chunkMBVXDFVC_js.exploreStrings(locale);
|
|
2324
2324
|
return {
|
|
2325
2325
|
...chrome,
|
|
2326
2326
|
answerTable: explore.answerTable,
|
|
@@ -2422,10 +2422,10 @@ function clampText2(text, limit) {
|
|
|
2422
2422
|
return `${(lastSpace > 0 ? cut.slice(0, lastSpace) : cut).replace(/[\s,;:—–-]+$/, "")}\u2026`;
|
|
2423
2423
|
}
|
|
2424
2424
|
function questionCount(T, count) {
|
|
2425
|
-
return count === 1 ? T.questionCountOne :
|
|
2425
|
+
return count === 1 ? T.questionCountOne : chunkN7E6Z2GF_js.fill(T.questionCountMany, { count: String(count) });
|
|
2426
2426
|
}
|
|
2427
2427
|
function sourceCount(T, count) {
|
|
2428
|
-
return count === 1 ? T.sourceCountOne :
|
|
2428
|
+
return count === 1 ? T.sourceCountOne : chunkN7E6Z2GF_js.fill(T.sourceCountMany, { count: String(count) });
|
|
2429
2429
|
}
|
|
2430
2430
|
function slugifyAnchor2(value) {
|
|
2431
2431
|
return value.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
@@ -2509,8 +2509,8 @@ var ECOSYSTEM_SITES = chunkP5GMVPR6_js.ECOSYSTEM_PRODUCTS.map((product) => ({
|
|
|
2509
2509
|
slug: product.slug,
|
|
2510
2510
|
website: product.websiteUrl
|
|
2511
2511
|
}));
|
|
2512
|
-
var ECOSYSTEM_PRODUCT_SLUGS =
|
|
2513
|
-
var ECOSYSTEM_ORIGINS =
|
|
2512
|
+
var ECOSYSTEM_PRODUCT_SLUGS = chunkMBVXDFVC_js.productSlugsByOrigin(ECOSYSTEM_SITES);
|
|
2513
|
+
var ECOSYSTEM_ORIGINS = chunkMBVXDFVC_js.inlineImageOrigins(ECOSYSTEM_SITES);
|
|
2514
2514
|
function DefaultAnswerLink({
|
|
2515
2515
|
href,
|
|
2516
2516
|
className,
|
|
@@ -2604,9 +2604,9 @@ function AnswersPage({
|
|
|
2604
2604
|
const Link = linkComponent ?? DefaultAnswerLink;
|
|
2605
2605
|
const base = normaliseSiteUrl2(siteUrl);
|
|
2606
2606
|
const searchId = react.useId();
|
|
2607
|
-
const activeLocale = react.useMemo(() =>
|
|
2607
|
+
const activeLocale = react.useMemo(() => chunkMBVXDFVC_js.resolveExploreLocale(locale), [locale]);
|
|
2608
2608
|
const T = react.useMemo(() => answerStrings(activeLocale), [activeLocale]);
|
|
2609
|
-
const rtl =
|
|
2609
|
+
const rtl = chunkMBVXDFVC_js.isRtlLocale(activeLocale);
|
|
2610
2610
|
const ordered = react.useMemo(() => sortByOrder2(answers), [answers]);
|
|
2611
2611
|
const groups = react.useMemo(
|
|
2612
2612
|
() => groupByTopic(ordered, topics),
|
|
@@ -2647,12 +2647,12 @@ function AnswersPage({
|
|
|
2647
2647
|
setQuery("");
|
|
2648
2648
|
setActiveTopic(null);
|
|
2649
2649
|
}, []);
|
|
2650
|
-
const heading = title ??
|
|
2650
|
+
const heading = title ?? chunkN7E6Z2GF_js.fill(T.indexHeading, { product: productName });
|
|
2651
2651
|
const metaDescription = description ?? clampText2(
|
|
2652
|
-
|
|
2652
|
+
chunkN7E6Z2GF_js.fill(T.seoIndexDescription, { product: productName }),
|
|
2653
2653
|
META_DESCRIPTION_LIMIT2
|
|
2654
2654
|
);
|
|
2655
|
-
const lead = description ??
|
|
2655
|
+
const lead = description ?? chunkN7E6Z2GF_js.fill(T.indexLead, { product: productName });
|
|
2656
2656
|
const canonical = `${base}${ANSWERS_PATH}`;
|
|
2657
2657
|
const structuredData = react.useMemo(
|
|
2658
2658
|
() => [
|
|
@@ -2710,7 +2710,7 @@ function AnswersPage({
|
|
|
2710
2710
|
description: metaDescription,
|
|
2711
2711
|
productName,
|
|
2712
2712
|
keywords: [
|
|
2713
|
-
|
|
2713
|
+
chunkN7E6Z2GF_js.fill(T.indexHeading, { product: productName }),
|
|
2714
2714
|
...groups.map((group) => group.name)
|
|
2715
2715
|
].join(", "),
|
|
2716
2716
|
url: canonical,
|
|
@@ -2796,7 +2796,7 @@ function AnswersPage({
|
|
|
2796
2796
|
{
|
|
2797
2797
|
"aria-live": "polite",
|
|
2798
2798
|
className: filtering ? "text-sm text-muted-foreground" : "sr-only",
|
|
2799
|
-
children:
|
|
2799
|
+
children: chunkN7E6Z2GF_js.fill(T.showingCount, {
|
|
2800
2800
|
shown: String(visibleTotal),
|
|
2801
2801
|
total: String(ordered.length)
|
|
2802
2802
|
})
|
|
@@ -2877,7 +2877,7 @@ function AnswersPage({
|
|
|
2877
2877
|
}
|
|
2878
2878
|
),
|
|
2879
2879
|
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "mt-4 text-lg font-semibold text-foreground", children: T.noneYetTitle }),
|
|
2880
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-2 text-sm text-muted-foreground", children:
|
|
2880
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-2 text-sm text-muted-foreground", children: chunkN7E6Z2GF_js.fill(T.noneYetBody, { product: productName }) })
|
|
2881
2881
|
]
|
|
2882
2882
|
}
|
|
2883
2883
|
)
|
|
@@ -2914,7 +2914,7 @@ function ProvenanceNote({
|
|
|
2914
2914
|
/* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
|
|
2915
2915
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold", children: T.aboutTitle }),
|
|
2916
2916
|
" \u2014 ",
|
|
2917
|
-
|
|
2917
|
+
chunkN7E6Z2GF_js.fill(T.aboutBody, { date })
|
|
2918
2918
|
] })
|
|
2919
2919
|
]
|
|
2920
2920
|
}
|
|
@@ -2970,9 +2970,9 @@ function AnswerDetail({
|
|
|
2970
2970
|
const Link = linkComponent ?? DefaultAnswerLink;
|
|
2971
2971
|
const base = normaliseSiteUrl2(siteUrl);
|
|
2972
2972
|
const headingId = react.useId();
|
|
2973
|
-
const activeLocale = react.useMemo(() =>
|
|
2973
|
+
const activeLocale = react.useMemo(() => chunkMBVXDFVC_js.resolveExploreLocale(locale), [locale]);
|
|
2974
2974
|
const T = react.useMemo(() => answerStrings(activeLocale), [activeLocale]);
|
|
2975
|
-
const rtl =
|
|
2975
|
+
const rtl = chunkMBVXDFVC_js.isRtlLocale(activeLocale);
|
|
2976
2976
|
const dateLabel = react.useMemo(
|
|
2977
2977
|
() => formatAnswerDate(answer.answeredAt, activeLocale),
|
|
2978
2978
|
[answer.answeredAt, activeLocale]
|
|
@@ -3002,7 +3002,7 @@ function AnswerDetail({
|
|
|
3002
3002
|
[answer.sources]
|
|
3003
3003
|
);
|
|
3004
3004
|
const answerImageOrigins = react.useMemo(
|
|
3005
|
-
() =>
|
|
3005
|
+
() => chunkMBVXDFVC_js.inlineImageOrigins([
|
|
3006
3006
|
{ website: base },
|
|
3007
3007
|
...sources.map((source) => ({ website: source.url })),
|
|
3008
3008
|
...(imageOrigins ?? []).map((origin) => ({ website: origin }))
|
|
@@ -3015,7 +3015,7 @@ function AnswerDetail({
|
|
|
3015
3015
|
);
|
|
3016
3016
|
const canonical = absoluteUrl2(base, answerPath(answer.slug));
|
|
3017
3017
|
const answerText = react.useMemo(
|
|
3018
|
-
() =>
|
|
3018
|
+
() => chunkN7E6Z2GF_js.answerSpeechText(answer.answer),
|
|
3019
3019
|
[answer.answer]
|
|
3020
3020
|
);
|
|
3021
3021
|
const structuredData = react.useMemo(
|
|
@@ -3100,7 +3100,7 @@ function AnswerDetail({
|
|
|
3100
3100
|
}
|
|
3101
3101
|
),
|
|
3102
3102
|
/* @__PURE__ */ jsxRuntime.jsx(chunk3LFFY7AZ_js.ProseStyles, {}),
|
|
3103
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3103
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkMBVXDFVC_js.ExploreAnswerStyles, {}),
|
|
3104
3104
|
/* @__PURE__ */ jsxRuntime.jsx("header", { className: "border-b border-border bg-muted/30", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mx-auto max-w-4xl px-4 pb-10 pt-8 sm:px-6 lg:px-8", children: [
|
|
3105
3105
|
/* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": "Breadcrumb", children: /* @__PURE__ */ jsxRuntime.jsxs("ol", { className: "flex flex-wrap items-center gap-1.5 text-sm text-muted-foreground", children: [
|
|
3106
3106
|
/* @__PURE__ */ jsxRuntime.jsxs("li", { className: "inline-flex items-center gap-1.5", children: [
|
|
@@ -3145,7 +3145,7 @@ function AnswerDetail({
|
|
|
3145
3145
|
children: answer.topic
|
|
3146
3146
|
}
|
|
3147
3147
|
),
|
|
3148
|
-
dateLabel ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "inline-flex items-center rounded-full border border-border bg-background px-3 py-1 text-xs font-medium text-muted-foreground", children: /* @__PURE__ */ jsxRuntime.jsx("time", { dateTime: answer.answeredAt, children:
|
|
3148
|
+
dateLabel ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "inline-flex items-center rounded-full border border-border bg-background px-3 py-1 text-xs font-medium text-muted-foreground", children: /* @__PURE__ */ jsxRuntime.jsx("time", { dateTime: answer.answeredAt, children: chunkN7E6Z2GF_js.fill(T.answeredOn, { date: dateLabel }) }) }) : null
|
|
3149
3149
|
] }),
|
|
3150
3150
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3151
3151
|
"h1",
|
|
@@ -3170,7 +3170,7 @@ function AnswerDetail({
|
|
|
3170
3170
|
/* @__PURE__ */ jsxRuntime.jsxs("section", { "aria-labelledby": `${headingId}-answer`, children: [
|
|
3171
3171
|
/* @__PURE__ */ jsxRuntime.jsx("h2", { id: `${headingId}-answer`, className: SECTION_HEADING2, children: T.answerHeading }),
|
|
3172
3172
|
/* @__PURE__ */ jsxRuntime.jsx("div", { "data-answers": "body", ...ENGLISH_TEXT, dir: "ltr", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3173
|
-
|
|
3173
|
+
chunkMBVXDFVC_js.ExploreAnswerBody,
|
|
3174
3174
|
{
|
|
3175
3175
|
strings: T,
|
|
3176
3176
|
imageOrigins: answerImageOrigins,
|
|
@@ -3213,7 +3213,7 @@ function AnswerDetail({
|
|
|
3213
3213
|
"data-answers": "related",
|
|
3214
3214
|
className: "mt-14",
|
|
3215
3215
|
children: [
|
|
3216
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { id: `${headingId}-related`, className: SECTION_HEADING2, children: relatedIsCurated ? T.relatedHeading :
|
|
3216
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { id: `${headingId}-related`, className: SECTION_HEADING2, children: relatedIsCurated ? T.relatedHeading : chunkN7E6Z2GF_js.fill(T.moreInTopic, { topic: answer.topic }) }),
|
|
3217
3217
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3218
3218
|
"ul",
|
|
3219
3219
|
{
|
|
@@ -3297,7 +3297,7 @@ function AnswerDetail({
|
|
|
3297
3297
|
className: "inline-flex items-center gap-2 rounded text-sm font-medium text-primary hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
3298
3298
|
children: [
|
|
3299
3299
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowLeft, { "aria-hidden": "true", className: "h-4 w-4" }),
|
|
3300
|
-
|
|
3300
|
+
chunkN7E6Z2GF_js.fill(T.allAnswers, { product: productName })
|
|
3301
3301
|
]
|
|
3302
3302
|
}
|
|
3303
3303
|
),
|
|
@@ -3330,10 +3330,10 @@ var VIEW_LOAD_TIMEOUT_MS = 8e3;
|
|
|
3330
3330
|
var NO_PROMPTS = [];
|
|
3331
3331
|
function suggestedQuestions(catalog, examplePrompts, pinnedSlug) {
|
|
3332
3332
|
if (catalog === void 0) return NO_PROMPTS;
|
|
3333
|
-
return pinnedSlug === null ? catalog.examplePrompts :
|
|
3333
|
+
return pinnedSlug === null ? catalog.examplePrompts : chunkMBVXDFVC_js.productScopedPrompts(
|
|
3334
3334
|
examplePrompts,
|
|
3335
3335
|
catalog.examplePrompts,
|
|
3336
|
-
|
|
3336
|
+
chunkMBVXDFVC_js.anotherProductMatcher(catalog.products, pinnedSlug)
|
|
3337
3337
|
);
|
|
3338
3338
|
}
|
|
3339
3339
|
function loadAvatarLiveView() {
|
|
@@ -3357,21 +3357,21 @@ function ExploreAvatarLive({
|
|
|
3357
3357
|
currentPath,
|
|
3358
3358
|
loadView = loadAvatarLiveView
|
|
3359
3359
|
}) {
|
|
3360
|
-
const T =
|
|
3360
|
+
const T = chunkMBVXDFVC_js.exploreStrings(locale);
|
|
3361
3361
|
const config = chunkJXLSTVBK_js.useWebSDKConfig();
|
|
3362
|
-
const conversation = react.useContext(
|
|
3362
|
+
const conversation = react.useContext(chunkMBVXDFVC_js.ExploreConversationContext);
|
|
3363
3363
|
const catalog = conversation?.catalog;
|
|
3364
3364
|
const prompts = react.useMemo(
|
|
3365
3365
|
() => suggestedQuestions(catalog, examplePrompts, pinnedSlug),
|
|
3366
3366
|
[catalog, examplePrompts, pinnedSlug]
|
|
3367
3367
|
);
|
|
3368
|
-
const base =
|
|
3368
|
+
const base = chunkXIZE37IB_js.avatarApiBase(config.gatewayUrl);
|
|
3369
3369
|
const headers = react.useMemo(
|
|
3370
3370
|
() => chunkJXLSTVBK_js.cfAccessHeaders(config.gatewayUrl, config.cfAccess),
|
|
3371
3371
|
[config.gatewayUrl, config.cfAccess]
|
|
3372
3372
|
);
|
|
3373
|
-
const complete =
|
|
3374
|
-
const off = !complete || base === null || conversation === null || conversation.isSharedView || !
|
|
3373
|
+
const complete = chunkXIZE37IB_js.liveConfigComplete(live);
|
|
3374
|
+
const off = !complete || base === null || conversation === null || conversation.isSharedView || !chunkXIZE37IB_js.isAvatarLiveLocaleReviewed(locale);
|
|
3375
3375
|
react.useEffect(() => {
|
|
3376
3376
|
if (!complete) {
|
|
3377
3377
|
console.warn(
|
|
@@ -3667,20 +3667,20 @@ function ExplorePanel({
|
|
|
3667
3667
|
currentPath,
|
|
3668
3668
|
className
|
|
3669
3669
|
}) {
|
|
3670
|
-
const resolvedLocale =
|
|
3671
|
-
const T = react.useMemo(() =>
|
|
3672
|
-
const rtl =
|
|
3673
|
-
const catalogProducts = react.useContext(
|
|
3674
|
-
const pinnedSlug =
|
|
3670
|
+
const resolvedLocale = chunkMBVXDFVC_js.resolveExploreLocale(locale);
|
|
3671
|
+
const T = react.useMemo(() => chunkMBVXDFVC_js.exploreStrings(resolvedLocale), [resolvedLocale]);
|
|
3672
|
+
const rtl = chunkMBVXDFVC_js.isRtlLocale(resolvedLocale);
|
|
3673
|
+
const catalogProducts = react.useContext(chunkMBVXDFVC_js.ExploreCatalogProductsContext);
|
|
3674
|
+
const pinnedSlug = chunkMBVXDFVC_js.pinnedProductSlug(scope, productSlug);
|
|
3675
3675
|
const pinnedName = react.useMemo(
|
|
3676
|
-
() => pinnedSlug === null ? null :
|
|
3676
|
+
() => pinnedSlug === null ? null : chunkMBVXDFVC_js.productNameFor(
|
|
3677
3677
|
catalogProducts ?? chunkP5GMVPR6_js.ECOSYSTEM_PRODUCTS,
|
|
3678
3678
|
pinnedSlug,
|
|
3679
3679
|
productName
|
|
3680
3680
|
),
|
|
3681
3681
|
[catalogProducts, pinnedSlug, productName]
|
|
3682
3682
|
);
|
|
3683
|
-
const title = pinnedName === null ? T.panelTitle :
|
|
3683
|
+
const title = pinnedName === null ? T.panelTitle : chunkN7E6Z2GF_js.fill(T.panelTitleProduct, { product: pinnedName });
|
|
3684
3684
|
const uid = react.useId();
|
|
3685
3685
|
const titleId = `${uid}-title`;
|
|
3686
3686
|
const chatTabId = `${uid}-chat-tab`;
|
|
@@ -4140,7 +4140,7 @@ function ExplorePanel({
|
|
|
4140
4140
|
view === "avatar" && "invisible"
|
|
4141
4141
|
),
|
|
4142
4142
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4143
|
-
|
|
4143
|
+
chunkMBVXDFVC_js.ExplorePage,
|
|
4144
4144
|
{
|
|
4145
4145
|
presentation: "panel",
|
|
4146
4146
|
active: open && view === "chat",
|
|
@@ -4212,7 +4212,7 @@ function useIsActiveDock() {
|
|
|
4212
4212
|
const listener = () => setActive(activeDock());
|
|
4213
4213
|
dockListeners.add(listener);
|
|
4214
4214
|
mountedDocks.push(id);
|
|
4215
|
-
if (mountedDocks.length > 1 &&
|
|
4215
|
+
if (mountedDocks.length > 1 && chunkMBVXDFVC_js.isDevelopmentBuild()) {
|
|
4216
4216
|
console.error(SITE_ASSISTANT_DOCK_MORE_THAN_ONE);
|
|
4217
4217
|
}
|
|
4218
4218
|
announceActiveDock();
|
|
@@ -4227,10 +4227,10 @@ function useIsActiveDock() {
|
|
|
4227
4227
|
}
|
|
4228
4228
|
var SITE_ASSISTANT_DOCK_NEEDS_PROVIDER = "[WebSDK] SiteAssistantDock must be rendered under an ExploreChatProvider (inside the router, around the routes). Without one the panel cannot share the /explore conversation, and the live avatar cannot run.";
|
|
4229
4229
|
function SiteAssistantDock(props) {
|
|
4230
|
-
const start = react.useContext(
|
|
4230
|
+
const start = react.useContext(chunkMBVXDFVC_js.ExploreConversationStartContext);
|
|
4231
4231
|
const active = useIsActiveDock();
|
|
4232
4232
|
if (start === null) {
|
|
4233
|
-
if (
|
|
4233
|
+
if (chunkMBVXDFVC_js.isDevelopmentBuild())
|
|
4234
4234
|
throw new Error(SITE_ASSISTANT_DOCK_NEEDS_PROVIDER);
|
|
4235
4235
|
return active ? /* @__PURE__ */ jsxRuntime.jsx(DockWithoutProvider, { ...props }) : null;
|
|
4236
4236
|
}
|
|
@@ -4344,7 +4344,8 @@ function websiteAvatarLive({
|
|
|
4344
4344
|
manifestVersion,
|
|
4345
4345
|
load,
|
|
4346
4346
|
enabled,
|
|
4347
|
-
endUnattended
|
|
4347
|
+
endUnattended,
|
|
4348
|
+
mic
|
|
4348
4349
|
}) {
|
|
4349
4350
|
if (enabled === false) return void 0;
|
|
4350
4351
|
const alpha = typeof deployEnv === "string" && deployEnv.trim().toLowerCase() === "alpha";
|
|
@@ -4354,11 +4355,12 @@ function websiteAvatarLive({
|
|
|
4354
4355
|
manifestVersion,
|
|
4355
4356
|
allowTestSiteKey: alpha,
|
|
4356
4357
|
// Only when the site sets it: a site that does not gets the very config it got before.
|
|
4357
|
-
...endUnattended === void 0 ? {} : { endUnattended }
|
|
4358
|
+
...endUnattended === void 0 ? {} : { endUnattended },
|
|
4359
|
+
...mic === void 0 ? {} : { mic }
|
|
4358
4360
|
};
|
|
4359
4361
|
const key = typeof siteKey === "string" ? siteKey.trim() : "";
|
|
4360
4362
|
if (key === "") return live;
|
|
4361
|
-
const accepted = alpha ? key === ALPHA_TEST_SITE_KEY ||
|
|
4363
|
+
const accepted = alpha ? key === ALPHA_TEST_SITE_KEY || chunkXIZE37IB_js.isRealTurnstileSiteKey(key) : chunkXIZE37IB_js.isRealTurnstileSiteKey(key);
|
|
4362
4364
|
if (!accepted) return void 0;
|
|
4363
4365
|
return { ...live, turnstileSiteKey: key };
|
|
4364
4366
|
}
|
|
@@ -4569,63 +4571,63 @@ Object.defineProperty(exports, "detectElectronPlatform", {
|
|
|
4569
4571
|
});
|
|
4570
4572
|
Object.defineProperty(exports, "EXPLORE_LOCALES", {
|
|
4571
4573
|
enumerable: true,
|
|
4572
|
-
get: function () { return
|
|
4574
|
+
get: function () { return chunkMBVXDFVC_js.EXPLORE_LOCALES; }
|
|
4573
4575
|
});
|
|
4574
4576
|
Object.defineProperty(exports, "EXPLORE_PREFILL_MAX_LENGTH", {
|
|
4575
4577
|
enumerable: true,
|
|
4576
|
-
get: function () { return
|
|
4578
|
+
get: function () { return chunkMBVXDFVC_js.EXPLORE_PREFILL_MAX_LENGTH; }
|
|
4577
4579
|
});
|
|
4578
4580
|
Object.defineProperty(exports, "ExploreAnswerBody", {
|
|
4579
4581
|
enumerable: true,
|
|
4580
|
-
get: function () { return
|
|
4582
|
+
get: function () { return chunkMBVXDFVC_js.ExploreAnswerBody; }
|
|
4581
4583
|
});
|
|
4582
4584
|
Object.defineProperty(exports, "ExploreAnswerStyles", {
|
|
4583
4585
|
enumerable: true,
|
|
4584
|
-
get: function () { return
|
|
4586
|
+
get: function () { return chunkMBVXDFVC_js.ExploreAnswerStyles; }
|
|
4585
4587
|
});
|
|
4586
4588
|
Object.defineProperty(exports, "ExploreChatProvider", {
|
|
4587
4589
|
enumerable: true,
|
|
4588
|
-
get: function () { return
|
|
4590
|
+
get: function () { return chunkMBVXDFVC_js.ExploreChatProvider; }
|
|
4589
4591
|
});
|
|
4590
4592
|
Object.defineProperty(exports, "ExplorePage", {
|
|
4591
4593
|
enumerable: true,
|
|
4592
|
-
get: function () { return
|
|
4593
|
-
});
|
|
4594
|
-
Object.defineProperty(exports, "answerPlainText", {
|
|
4595
|
-
enumerable: true,
|
|
4596
|
-
get: function () { return chunk22OT6E26_js.answerPlainText; }
|
|
4597
|
-
});
|
|
4598
|
-
Object.defineProperty(exports, "answerSpeechText", {
|
|
4599
|
-
enumerable: true,
|
|
4600
|
-
get: function () { return chunk22OT6E26_js.answerSpeechText; }
|
|
4594
|
+
get: function () { return chunkMBVXDFVC_js.ExplorePage; }
|
|
4601
4595
|
});
|
|
4602
4596
|
Object.defineProperty(exports, "exploreQuestionHref", {
|
|
4603
4597
|
enumerable: true,
|
|
4604
|
-
get: function () { return
|
|
4598
|
+
get: function () { return chunkMBVXDFVC_js.exploreQuestionHref; }
|
|
4605
4599
|
});
|
|
4606
4600
|
Object.defineProperty(exports, "inlineImageOrigins", {
|
|
4607
4601
|
enumerable: true,
|
|
4608
|
-
get: function () { return
|
|
4602
|
+
get: function () { return chunkMBVXDFVC_js.inlineImageOrigins; }
|
|
4609
4603
|
});
|
|
4610
4604
|
Object.defineProperty(exports, "isInlineImageAllowed", {
|
|
4611
4605
|
enumerable: true,
|
|
4612
|
-
get: function () { return
|
|
4606
|
+
get: function () { return chunkMBVXDFVC_js.isInlineImageAllowed; }
|
|
4613
4607
|
});
|
|
4614
4608
|
Object.defineProperty(exports, "isInlineVideoAllowed", {
|
|
4615
4609
|
enumerable: true,
|
|
4616
|
-
get: function () { return
|
|
4610
|
+
get: function () { return chunkMBVXDFVC_js.isInlineVideoAllowed; }
|
|
4617
4611
|
});
|
|
4618
4612
|
Object.defineProperty(exports, "productSlugsByOrigin", {
|
|
4619
4613
|
enumerable: true,
|
|
4620
|
-
get: function () { return
|
|
4614
|
+
get: function () { return chunkMBVXDFVC_js.productSlugsByOrigin; }
|
|
4621
4615
|
});
|
|
4622
4616
|
Object.defineProperty(exports, "speechLocaleOf", {
|
|
4623
4617
|
enumerable: true,
|
|
4624
|
-
get: function () { return
|
|
4618
|
+
get: function () { return chunkMBVXDFVC_js.speechLocaleOf; }
|
|
4625
4619
|
});
|
|
4626
4620
|
Object.defineProperty(exports, "useExploreConversation", {
|
|
4627
4621
|
enumerable: true,
|
|
4628
|
-
get: function () { return
|
|
4622
|
+
get: function () { return chunkMBVXDFVC_js.useExploreConversation; }
|
|
4623
|
+
});
|
|
4624
|
+
Object.defineProperty(exports, "answerPlainText", {
|
|
4625
|
+
enumerable: true,
|
|
4626
|
+
get: function () { return chunkN7E6Z2GF_js.answerPlainText; }
|
|
4627
|
+
});
|
|
4628
|
+
Object.defineProperty(exports, "answerSpeechText", {
|
|
4629
|
+
enumerable: true,
|
|
4630
|
+
get: function () { return chunkN7E6Z2GF_js.answerSpeechText; }
|
|
4629
4631
|
});
|
|
4630
4632
|
Object.defineProperty(exports, "DEFAULT_EXPLORE_EXAMPLE_PROMPTS", {
|
|
4631
4633
|
enumerable: true,
|