@burdenoff/website-sdk 2026.924.1 → 2026.924.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/dist/components/explore.d.mts +1 -1
- package/dist/components/explore.d.ts +1 -1
- package/dist/components/explore.js +25 -8
- package/dist/components/explore.js.map +1 -1
- package/dist/components/explore.mjs +25 -10
- package/dist/components/explore.mjs.map +1 -1
- package/dist/{explore-I4QnY4J9.d.ts → explore-C3SEP5K6.d.ts} +12 -1
- package/dist/{explore-D25zoXy9.d.mts → explore-Crc41y0j.d.mts} +12 -1
- package/dist/index.d.mts +36 -4
- package/dist/index.d.ts +36 -4
- package/dist/index.js +300 -148
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +299 -150
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
export {
|
|
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 {
|
|
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';
|
|
@@ -5408,7 +5408,7 @@ function ConceptStrip({
|
|
|
5408
5408
|
"div",
|
|
5409
5409
|
{
|
|
5410
5410
|
"data-boff-explore": "concept-strip-block",
|
|
5411
|
-
className: "boff-explore-rise boff-explore-rise-3 mt-
|
|
5411
|
+
className: "boff-explore-rise boff-explore-rise-3 mt-4",
|
|
5412
5412
|
children: [
|
|
5413
5413
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mb-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground", children: T.conceptStripTitle }),
|
|
5414
5414
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
@@ -5471,9 +5471,9 @@ function ConceptStrip({
|
|
|
5471
5471
|
product: highlight.productName
|
|
5472
5472
|
})
|
|
5473
5473
|
),
|
|
5474
|
-
className: "group flex w-40 flex-col overflow-hidden rounded-xl border border-border bg-card text-left shadow-sm transition-colors hover:border-primary/50 hover:bg-accent disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring sm:w-
|
|
5474
|
+
className: "group flex w-40 flex-col overflow-hidden rounded-xl border border-border bg-card text-left shadow-sm transition-colors hover:border-primary/50 hover:bg-accent disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring sm:w-44",
|
|
5475
5475
|
children: [
|
|
5476
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "relative block aspect-[
|
|
5476
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "relative block aspect-[2/1] w-full overflow-hidden bg-muted", children: [
|
|
5477
5477
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5478
5478
|
"img",
|
|
5479
5479
|
{
|
|
@@ -5623,7 +5623,7 @@ function WelcomeState({
|
|
|
5623
5623
|
onFocus,
|
|
5624
5624
|
disabled
|
|
5625
5625
|
}) {
|
|
5626
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "boff-explore-aura mx-auto my-auto w-full max-w-3xl px-4 py-
|
|
5626
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "boff-explore-aura mx-auto my-auto w-full max-w-3xl px-4 py-4 sm:py-5", children: [
|
|
5627
5627
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "boff-explore-rise text-center", children: [
|
|
5628
5628
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "inline-flex items-center gap-1.5 rounded-full border border-border bg-muted px-3 py-1 text-xs font-medium text-muted-foreground", children: [
|
|
5629
5629
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { className: "h-3.5 w-3.5" }),
|
|
@@ -5632,10 +5632,10 @@ function WelcomeState({
|
|
|
5632
5632
|
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "mt-3 text-balance break-words text-2xl font-bold tracking-tight sm:text-3xl", children: title }),
|
|
5633
5633
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mx-auto mt-2 max-w-2xl text-pretty text-sm leading-relaxed text-muted-foreground sm:text-base", children: body })
|
|
5634
5634
|
] }),
|
|
5635
|
-
/* @__PURE__ */ jsxRuntime.jsx("ul", { className: "boff-explore-rise boff-explore-rise-1 mt-
|
|
5635
|
+
/* @__PURE__ */ jsxRuntime.jsx("ul", { className: "boff-explore-rise boff-explore-rise-1 mt-4 grid grid-cols-3 gap-2 sm:gap-2.5", children: CAPABILITIES.map(({ icon: Icon, body: capBody }, i) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5636
5636
|
"li",
|
|
5637
5637
|
{
|
|
5638
|
-
className: "rounded-xl border border-border/70 bg-card/60 p-2.5 text-center transition-colors hover:border-border sm:p-
|
|
5638
|
+
className: "rounded-xl border border-border/70 bg-card/60 p-2.5 text-center transition-colors hover:border-border sm:p-2.5 sm:text-left",
|
|
5639
5639
|
children: [
|
|
5640
5640
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "mx-auto mb-1.5 flex h-7 w-7 items-center justify-center rounded-lg bg-primary/10 text-primary sm:mx-0 sm:mb-2 sm:h-8 sm:w-8", children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "h-3.5 w-3.5 sm:h-4 sm:w-4" }) }),
|
|
5641
5641
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[11px] font-semibold leading-tight text-card-foreground sm:text-sm sm:leading-normal", children: T.capabilities[i] ?? "" }),
|
|
@@ -5644,7 +5644,7 @@ function WelcomeState({
|
|
|
5644
5644
|
},
|
|
5645
5645
|
i
|
|
5646
5646
|
)) }),
|
|
5647
|
-
prompts.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "boff-explore-rise boff-explore-rise-2 mt-
|
|
5647
|
+
prompts.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "boff-explore-rise boff-explore-rise-2 mt-4", children: [
|
|
5648
5648
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mb-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground", children: T.tryAsking }),
|
|
5649
5649
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5650
5650
|
PromptCarousel,
|
|
@@ -5656,7 +5656,7 @@ function WelcomeState({
|
|
|
5656
5656
|
}
|
|
5657
5657
|
)
|
|
5658
5658
|
] }) : null,
|
|
5659
|
-
products.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "boff-explore-rise boff-explore-rise-3 mt-
|
|
5659
|
+
products.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "boff-explore-rise boff-explore-rise-3 mt-4", children: [
|
|
5660
5660
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mb-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground", children: T.focusProduct }),
|
|
5661
5661
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5662
5662
|
ProductStrip,
|
|
@@ -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;
|