@burdenoff/website-sdk 2026.1101.4 → 2026.1102.2

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-SFT3WHN5.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]);
@@ -3406,6 +3406,7 @@ function ExploreAvatarLive({
3406
3406
  fallback,
3407
3407
  onContinueInChat,
3408
3408
  continueInChat: T.continueInChat,
3409
+ newChat: T.newChat,
3409
3410
  off,
3410
3411
  base,
3411
3412
  headers,
@@ -4305,24 +4306,27 @@ function Dock({
4305
4306
 
4306
4307
  // src/components/website-avatar-live.ts
4307
4308
  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
4309
  function websiteAvatarLive({
4314
4310
  deployEnv,
4315
4311
  siteKey,
4316
4312
  site,
4317
4313
  manifestVersion,
4318
- load
4314
+ load,
4315
+ enabled
4319
4316
  }) {
4320
- const key = typeof siteKey === "string" ? siteKey.trim() : "";
4321
- if (key === "") return void 0;
4317
+ if (enabled === false) return void 0;
4322
4318
  const alpha = typeof deployEnv === "string" && deployEnv.trim().toLowerCase() === "alpha";
4323
- const accepted = alpha ? key === ALPHA_TEST_SITE_KEY || isRealSiteKey(key) : isRealSiteKey(key);
4319
+ const live = {
4320
+ site,
4321
+ load,
4322
+ manifestVersion,
4323
+ allowTestSiteKey: alpha
4324
+ };
4325
+ const key = typeof siteKey === "string" ? siteKey.trim() : "";
4326
+ if (key === "") return live;
4327
+ const accepted = alpha ? key === ALPHA_TEST_SITE_KEY || isRealTurnstileSiteKey(key) : isRealTurnstileSiteKey(key);
4324
4328
  if (!accepted) return void 0;
4325
- return { site, load, manifestVersion, turnstileSiteKey: key };
4329
+ return { ...live, turnstileSiteKey: key };
4326
4330
  }
4327
4331
 
4328
4332
  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 };