@burdenoff/website-sdk 2026.1105.2 → 2026.1105.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 +54 -0
- 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 +269 -78
- package/dist/avatar-live-view/index.js.map +1 -1
- package/dist/avatar-live-view/index.mjs +262 -71
- package/dist/avatar-live-view/index.mjs.map +1 -1
- package/dist/avatar-mic/index.d.mts +187 -62
- package/dist/avatar-mic/index.d.ts +187 -62
- package/dist/avatar-mic/index.js +457 -5
- package/dist/avatar-mic/index.js.map +1 -1
- package/dist/avatar-mic/index.mjs +457 -6
- package/dist/avatar-mic/index.mjs.map +1 -1
- package/dist/{chunk-XIZE37IB.js → chunk-3AIAJ2L4.js} +2 -2
- package/dist/chunk-3AIAJ2L4.js.map +1 -0
- package/dist/{chunk-MVNN6LLO.mjs → chunk-JGU6JW4N.mjs} +2 -2
- package/dist/chunk-JGU6JW4N.mjs.map +1 -0
- package/dist/{explore-avatar-live-config-auLKxSzx.d.ts → explore-avatar-live-config-1zeXdMer.d.ts} +6 -3
- package/dist/{explore-avatar-live-config-BL8FTm0I.d.mts → explore-avatar-live-config-BxiE66Im.d.mts} +6 -3
- package/dist/index.d.mts +6 -5
- package/dist/index.d.ts +6 -5
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-MVNN6LLO.mjs.map +0 -1
- package/dist/chunk-XIZE37IB.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -18,8 +18,8 @@ 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-
|
|
21
|
+
import { a as ExploreLocale, E as ExplorePanelAvatarLive } from './explore-avatar-live-config-1zeXdMer.js';
|
|
22
|
+
export { b as EXPLORE_LOCALES, c as ExploreStrings, s as speechLocaleOf } from './explore-avatar-live-config-1zeXdMer.js';
|
|
23
23
|
import { A as AnswerRendererStrings, E as ExploreScope } from './explore-Dfru4j4m.js';
|
|
24
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';
|
|
@@ -855,8 +855,9 @@ interface WebsiteAvatarLiveOptions {
|
|
|
855
855
|
*/
|
|
856
856
|
endUnattended?: boolean;
|
|
857
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
|
-
*
|
|
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
|
+
* the server's offer decides how (the browser's own speech recognition under `mic.mode: "browser"`, or the gateway's
|
|
860
|
+
* speech-to-text stream). Default unset: no mic. Set it only in the builds that should show one (alpha first).
|
|
860
861
|
*/
|
|
861
862
|
mic?: boolean;
|
|
862
863
|
}
|
|
@@ -865,7 +866,7 @@ declare function websiteAvatarLive({ deployEnv, siteKey, site, manifestVersion,
|
|
|
865
866
|
|
|
866
867
|
declare const buttonVariants: (props?: ({
|
|
867
868
|
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
868
|
-
size?: "
|
|
869
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
869
870
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
870
871
|
interface ButtonProps extends react.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
871
872
|
asChild?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk3AIAJ2L4_js = require('./chunk-3AIAJ2L4.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');
|
|
@@ -3365,13 +3365,13 @@ function ExploreAvatarLive({
|
|
|
3365
3365
|
() => suggestedQuestions(catalog, examplePrompts, pinnedSlug),
|
|
3366
3366
|
[catalog, examplePrompts, pinnedSlug]
|
|
3367
3367
|
);
|
|
3368
|
-
const base =
|
|
3368
|
+
const base = chunk3AIAJ2L4_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 = chunk3AIAJ2L4_js.liveConfigComplete(live);
|
|
3374
|
+
const off = !complete || base === null || conversation === null || conversation.isSharedView || !chunk3AIAJ2L4_js.isAvatarLiveLocaleReviewed(locale);
|
|
3375
3375
|
react.useEffect(() => {
|
|
3376
3376
|
if (!complete) {
|
|
3377
3377
|
console.warn(
|
|
@@ -4360,7 +4360,7 @@ function websiteAvatarLive({
|
|
|
4360
4360
|
};
|
|
4361
4361
|
const key = typeof siteKey === "string" ? siteKey.trim() : "";
|
|
4362
4362
|
if (key === "") return live;
|
|
4363
|
-
const accepted = alpha ? key === ALPHA_TEST_SITE_KEY ||
|
|
4363
|
+
const accepted = alpha ? key === ALPHA_TEST_SITE_KEY || chunk3AIAJ2L4_js.isRealTurnstileSiteKey(key) : chunk3AIAJ2L4_js.isRealTurnstileSiteKey(key);
|
|
4364
4364
|
if (!accepted) return void 0;
|
|
4365
4365
|
return { ...live, turnstileSiteKey: key };
|
|
4366
4366
|
}
|