@burdenoff/website-sdk 2026.1101.4 → 2026.1102.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 +59 -20
- 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 +71 -24
- package/dist/avatar-live-view/index.js.map +1 -1
- package/dist/avatar-live-view/index.mjs +69 -22
- package/dist/avatar-live-view/index.mjs.map +1 -1
- package/dist/{chunk-23H4JUL4.js → chunk-OIQHIGGU.js} +20 -3
- package/dist/chunk-OIQHIGGU.js.map +1 -0
- package/dist/{chunk-BX2USEWF.mjs → chunk-QOHPLTGT.mjs} +19 -4
- package/dist/chunk-QOHPLTGT.mjs.map +1 -0
- package/dist/{explore-avatar-live-config-B171o1Yo.d.ts → explore-avatar-live-config-C1ILEcY8.d.ts} +16 -4
- package/dist/{explore-avatar-live-config-BGsGwbcq.d.mts → explore-avatar-live-config-D-hO90-A.d.mts} +16 -4
- package/dist/index.d.mts +17 -7
- package/dist/index.d.ts +17 -7
- package/dist/index.js +18 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-23H4JUL4.js.map +0 -1
- package/dist/chunk-BX2USEWF.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { avatarApiBase, liveConfigComplete, isAvatarLiveLocaleReviewed } from './chunk-
|
|
1
|
+
import { isRealTurnstileSiteKey, avatarApiBase, liveConfigComplete, isAvatarLiveLocaleReviewed } from './chunk-QOHPLTGT.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';
|
|
@@ -3361,7 +3361,7 @@ function ExploreAvatarLive({
|
|
|
3361
3361
|
useEffect(() => {
|
|
3362
3362
|
if (!complete) {
|
|
3363
3363
|
console.warn(
|
|
3364
|
-
"[WebSDK] ExplorePanel: avatar.live needs site, load, turnstileSiteKey and
|
|
3364
|
+
"[WebSDK] ExplorePanel: avatar.live needs site, load and manifestVersion, and turnstileSiteKey and allowTestSiteKey of a valid shape when set; the live avatar stays off."
|
|
3365
3365
|
);
|
|
3366
3366
|
}
|
|
3367
3367
|
}, [complete]);
|
|
@@ -4305,24 +4305,27 @@ function Dock({
|
|
|
4305
4305
|
|
|
4306
4306
|
// src/components/website-avatar-live.ts
|
|
4307
4307
|
var ALPHA_TEST_SITE_KEY = "1x00000000000000000000AA";
|
|
4308
|
-
var TEST_SITE_KEY = /^\dx0{16,}[A-Za-z]{2}$/;
|
|
4309
|
-
var REAL_SITE_KEY = /^0x[A-Za-z0-9_-]{16,62}$/;
|
|
4310
|
-
function isRealSiteKey(key) {
|
|
4311
|
-
return REAL_SITE_KEY.test(key) && !TEST_SITE_KEY.test(key);
|
|
4312
|
-
}
|
|
4313
4308
|
function websiteAvatarLive({
|
|
4314
4309
|
deployEnv,
|
|
4315
4310
|
siteKey,
|
|
4316
4311
|
site,
|
|
4317
4312
|
manifestVersion,
|
|
4318
|
-
load
|
|
4313
|
+
load,
|
|
4314
|
+
enabled
|
|
4319
4315
|
}) {
|
|
4320
|
-
|
|
4321
|
-
if (key === "") return void 0;
|
|
4316
|
+
if (enabled === false) return void 0;
|
|
4322
4317
|
const alpha = typeof deployEnv === "string" && deployEnv.trim().toLowerCase() === "alpha";
|
|
4323
|
-
const
|
|
4318
|
+
const live = {
|
|
4319
|
+
site,
|
|
4320
|
+
load,
|
|
4321
|
+
manifestVersion,
|
|
4322
|
+
allowTestSiteKey: alpha
|
|
4323
|
+
};
|
|
4324
|
+
const key = typeof siteKey === "string" ? siteKey.trim() : "";
|
|
4325
|
+
if (key === "") return live;
|
|
4326
|
+
const accepted = alpha ? key === ALPHA_TEST_SITE_KEY || isRealTurnstileSiteKey(key) : isRealTurnstileSiteKey(key);
|
|
4324
4327
|
if (!accepted) return void 0;
|
|
4325
|
-
return {
|
|
4328
|
+
return { ...live, turnstileSiteKey: key };
|
|
4326
4329
|
}
|
|
4327
4330
|
|
|
4328
4331
|
export { ANSWERS_PATH, ANSWER_HEADING_SHIFT, ANSWER_PATH_PREFIX, AnswerDetailPage, AnswersPage, CONCEPTS_PATH, CONCEPT_ILLUSTRATION_NOTICE, CONCEPT_PATH_PREFIX, CONCEPT_WORKFLOW_NOTICE, CareersApplyForm, CareersSubmissionForm, ConceptDetailPage, ConceptsPage, DOMAINS_URL, ExplorePanel, PUBLISHED_ANSWER_FIELDS, SiteAssistantDock, answerPath, answerSourceHost, answerStrings, conceptPath, formatAnswerDate, getAnswerBySlug, getConceptBySlug, isPublishedSourceUrl, isValidUrl, websiteAvatarLive };
|