@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/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { avatarApiBase, liveConfigComplete, isAvatarLiveLocaleReviewed } from './chunk-BX2USEWF.mjs';
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 manifestVersion; the live avatar stays off."
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
- const key = typeof siteKey === "string" ? siteKey.trim() : "";
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 accepted = alpha ? key === ALPHA_TEST_SITE_KEY || isRealSiteKey(key) : isRealSiteKey(key);
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 { site, load, manifestVersion, turnstileSiteKey: key };
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 };