@burdenoff/website-sdk 2026.923.3 → 2026.924.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.
@@ -1,4 +1,4 @@
1
1
  import 'react';
2
- export { c as ExplorePage, d as ExplorePageProps, h as ExploreProvenance, j as ExploreReferenceKind, e as answerPlainText, f as answerSpeechText, i as inlineImageOrigins, g as isInlineImageAllowed, l as logoUrlOf, p as productNamesByOrigin, r as referenceKindOf, s as summariseReferences } from '../explore-D25zoXy9.mjs';
2
+ export { E as EXPLORE_PREFILL_MAX_LENGTH, d as ExplorePage, e as ExplorePageProps, k as ExploreProvenance, l as ExploreReferenceKind, f as answerPlainText, g as answerSpeechText, h as exploreQuestionHref, i as inlineImageOrigins, j as isInlineImageAllowed, m as logoUrlOf, p as productNamesByOrigin, r as referenceKindOf, s as summariseReferences } from '../explore-Crc41y0j.mjs';
3
3
  import '../explore-types-B5sdOC5M.mjs';
4
4
  import 'react-markdown';
@@ -1,4 +1,4 @@
1
1
  import 'react';
2
- export { c as ExplorePage, d as ExplorePageProps, h as ExploreProvenance, j as ExploreReferenceKind, e as answerPlainText, f as answerSpeechText, i as inlineImageOrigins, g as isInlineImageAllowed, l as logoUrlOf, p as productNamesByOrigin, r as referenceKindOf, s as summariseReferences } from '../explore-I4QnY4J9.js';
2
+ export { E as EXPLORE_PREFILL_MAX_LENGTH, d as ExplorePage, e as ExplorePageProps, k as ExploreProvenance, l as ExploreReferenceKind, f as answerPlainText, g as answerSpeechText, h as exploreQuestionHref, i as inlineImageOrigins, j as isInlineImageAllowed, m as logoUrlOf, p as productNamesByOrigin, r as referenceKindOf, s as summariseReferences } from '../explore-C3SEP5K6.js';
3
3
  import '../explore-types-B5sdOC5M.js';
4
4
  import 'react-markdown';
@@ -5679,6 +5679,13 @@ function WelcomeState({
5679
5679
  )
5680
5680
  ] });
5681
5681
  }
5682
+ var EXPLORE_PREFILL_MAX_LENGTH = 500;
5683
+ function exploreQuestionHref(question, base = "/explore") {
5684
+ const trimmed = question.trim().slice(0, EXPLORE_PREFILL_MAX_LENGTH);
5685
+ if (!trimmed) return base;
5686
+ const joiner = base.includes("?") ? "&" : "?";
5687
+ return `${base}${joiner}q=${encodeURIComponent(trimmed)}`;
5688
+ }
5682
5689
  function ExplorePage({
5683
5690
  seo,
5684
5691
  productSlug,
@@ -5738,6 +5745,14 @@ function ExplorePage({
5738
5745
  });
5739
5746
  const [draft, setDraft] = React.useState("");
5740
5747
  const textareaRef = React.useRef(null);
5748
+ React.useEffect(() => {
5749
+ if (typeof window === "undefined") return;
5750
+ const params = new URLSearchParams(window.location.search);
5751
+ if (params.has("c")) return;
5752
+ const question = params.get("q")?.trim();
5753
+ if (!question) return;
5754
+ setDraft(question.slice(0, EXPLORE_PREFILL_MAX_LENGTH));
5755
+ }, []);
5741
5756
  const [historyOpen, setHistoryOpen] = React.useState(false);
5742
5757
  const speechStopRef = React.useRef(() => void 0);
5743
5758
  const stopDictation = React.useCallback(() => {
@@ -6656,9 +6671,11 @@ function ExplorePage({
6656
6671
  );
6657
6672
  }
6658
6673
 
6674
+ exports.EXPLORE_PREFILL_MAX_LENGTH = EXPLORE_PREFILL_MAX_LENGTH;
6659
6675
  exports.ExplorePage = ExplorePage;
6660
6676
  exports.answerPlainText = answerPlainText;
6661
6677
  exports.answerSpeechText = answerSpeechText;
6678
+ exports.exploreQuestionHref = exploreQuestionHref;
6662
6679
  exports.inlineImageOrigins = inlineImageOrigins;
6663
6680
  exports.isInlineImageAllowed = isInlineImageAllowed;
6664
6681
  exports.logoUrlOf = logoUrlOf;