@burdenoff/website-sdk 2026.829.8 → 2026.921.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 +112 -1
- package/dist/components/contact.js +4 -1
- package/dist/components/contact.js.map +1 -1
- package/dist/components/contact.mjs +4 -1
- package/dist/components/contact.mjs.map +1 -1
- package/dist/components/explore.d.mts +14 -1
- package/dist/components/explore.d.ts +14 -1
- package/dist/components/explore.js +217 -43
- package/dist/components/explore.js.map +1 -1
- package/dist/components/explore.mjs +217 -45
- package/dist/components/explore.mjs.map +1 -1
- package/dist/components/newsletter.js +4 -1
- package/dist/components/newsletter.js.map +1 -1
- package/dist/components/newsletter.mjs +4 -1
- package/dist/components/newsletter.mjs.map +1 -1
- package/dist/components/partners.js +23 -13
- package/dist/components/partners.js.map +1 -1
- package/dist/components/partners.mjs +23 -13
- package/dist/components/partners.mjs.map +1 -1
- package/dist/components/pricing.js +4 -1
- package/dist/components/pricing.js.map +1 -1
- package/dist/components/pricing.mjs +4 -1
- package/dist/components/pricing.mjs.map +1 -1
- package/dist/components/unsubscribe.js +4 -1
- package/dist/components/unsubscribe.js.map +1 -1
- package/dist/components/unsubscribe.mjs +4 -1
- package/dist/components/unsubscribe.mjs.map +1 -1
- package/dist/components/waitlist.js +4 -1
- package/dist/components/waitlist.js.map +1 -1
- package/dist/components/waitlist.mjs +4 -1
- package/dist/components/waitlist.mjs.map +1 -1
- package/dist/content/index.js +23 -13
- package/dist/content/index.js.map +1 -1
- package/dist/content/index.mjs +23 -13
- package/dist/content/index.mjs.map +1 -1
- package/dist/{use-explore-chat-BzXCz2UM.d.mts → explore-types-CLw19R76.d.mts} +1 -131
- package/dist/{use-explore-chat-BzXCz2UM.d.ts → explore-types-CLw19R76.d.ts} +1 -131
- package/dist/hooks/index.d.mts +2 -1
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/index.js +23 -7
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +23 -7
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.d.mts +143 -3
- package/dist/index.d.ts +143 -3
- package/dist/index.js +1552 -207
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1548 -210
- package/dist/index.mjs.map +1 -1
- package/dist/seo/index.js +4 -1
- package/dist/seo/index.js.map +1 -1
- package/dist/seo/index.mjs +4 -1
- package/dist/seo/index.mjs.map +1 -1
- package/dist/store/index.js +23 -13
- package/dist/store/index.js.map +1 -1
- package/dist/store/index.mjs +23 -13
- package/dist/store/index.mjs.map +1 -1
- package/dist/use-explore-chat-CvW-kyIm.d.mts +145 -0
- package/dist/use-explore-chat-DdGBimiz.d.ts +145 -0
- package/package.json +1 -1
package/dist/hooks/index.mjs
CHANGED
|
@@ -366,10 +366,13 @@ var ECOSYSTEM_PRODUCTS = [
|
|
|
366
366
|
name: "VibeControls",
|
|
367
367
|
websiteUrl: "https://vibecontrols.com"
|
|
368
368
|
},
|
|
369
|
+
// FluidGrids ships on www.fluidgrids.ai — fluidgrids.com only redirects there. The explore
|
|
370
|
+
// catalog and the site's own sitemap use this origin, and so must the fallback catalog
|
|
371
|
+
// built from this list, or /explore rejects FluidGrids concept images until it loads.
|
|
369
372
|
{
|
|
370
373
|
slug: "fluidgrids",
|
|
371
374
|
name: "FluidGrids",
|
|
372
|
-
websiteUrl: "https://fluidgrids.
|
|
375
|
+
websiteUrl: "https://www.fluidgrids.ai"
|
|
373
376
|
},
|
|
374
377
|
// Botlit ships on botlit.ai — botlit.com does not resolve.
|
|
375
378
|
{ slug: "botlit", name: "Botlit", websiteUrl: "https://www.botlit.ai" },
|
|
@@ -620,7 +623,7 @@ var DEFAULT_EXPLORE_EXAMPLE_PROMPTS = [
|
|
|
620
623
|
];
|
|
621
624
|
var FALLBACK_WELCOME_TITLE = "Ask anything about our products";
|
|
622
625
|
var FALLBACK_WELCOME_BODY = "Get straight answers drawn from our product documentation and public pages \u2014 with links back to the exact page each answer came from.";
|
|
623
|
-
function buildFallbackCatalog(examplePrompts) {
|
|
626
|
+
function buildFallbackCatalog(examplePrompts, welcome) {
|
|
624
627
|
return {
|
|
625
628
|
enabled: true,
|
|
626
629
|
products: ECOSYSTEM_PRODUCTS.map((p) => ({
|
|
@@ -630,8 +633,8 @@ function buildFallbackCatalog(examplePrompts) {
|
|
|
630
633
|
website: p.websiteUrl
|
|
631
634
|
})),
|
|
632
635
|
examplePrompts: examplePrompts?.length ? examplePrompts : DEFAULT_EXPLORE_EXAMPLE_PROMPTS,
|
|
633
|
-
welcomeTitle: FALLBACK_WELCOME_TITLE,
|
|
634
|
-
welcomeBody: FALLBACK_WELCOME_BODY,
|
|
636
|
+
welcomeTitle: welcome?.title ?? FALLBACK_WELCOME_TITLE,
|
|
637
|
+
welcomeBody: welcome?.body ?? FALLBACK_WELCOME_BODY,
|
|
635
638
|
limits: FALLBACK_EXPLORE_LIMITS,
|
|
636
639
|
captchaRequired: false,
|
|
637
640
|
recaptchaSiteKey: null
|
|
@@ -691,7 +694,15 @@ function classifyExploreError(code, serverMessage) {
|
|
|
691
694
|
retryable: true
|
|
692
695
|
};
|
|
693
696
|
}
|
|
694
|
-
if (c === "
|
|
697
|
+
if (c === "TOOL_BUDGET") {
|
|
698
|
+
return {
|
|
699
|
+
kind: "scope",
|
|
700
|
+
code: c,
|
|
701
|
+
message: "That question spans more of our products than I can look through in one go. Try asking about two or three specific products.",
|
|
702
|
+
retryable: false
|
|
703
|
+
};
|
|
704
|
+
}
|
|
705
|
+
if (c === "TIMEOUT") {
|
|
695
706
|
return {
|
|
696
707
|
kind: "timeout",
|
|
697
708
|
code: c,
|
|
@@ -823,6 +834,7 @@ function useExploreChat(options = {}) {
|
|
|
823
834
|
pageUrl,
|
|
824
835
|
locale,
|
|
825
836
|
examplePrompts,
|
|
837
|
+
fallbackWelcome,
|
|
826
838
|
pollIntervalMs = DEFAULT_POLL_INTERVAL_MS,
|
|
827
839
|
pollTimeoutMs = DEFAULT_POLL_TIMEOUT_MS,
|
|
828
840
|
storageKey = DEFAULT_STORAGE_KEY,
|
|
@@ -831,9 +843,13 @@ function useExploreChat(options = {}) {
|
|
|
831
843
|
} = options;
|
|
832
844
|
const client = useWebSDK();
|
|
833
845
|
const promptKey = JSON.stringify(examplePrompts ?? []);
|
|
846
|
+
const welcomeKey = JSON.stringify(fallbackWelcome ?? null);
|
|
834
847
|
const fallbackCatalog = useMemo(
|
|
835
|
-
() => buildFallbackCatalog(
|
|
836
|
-
|
|
848
|
+
() => buildFallbackCatalog(
|
|
849
|
+
JSON.parse(promptKey),
|
|
850
|
+
JSON.parse(welcomeKey) ?? void 0
|
|
851
|
+
),
|
|
852
|
+
[promptKey, welcomeKey]
|
|
837
853
|
);
|
|
838
854
|
const [catalog, setCatalog] = useState(fallbackCatalog);
|
|
839
855
|
const [messages, setMessages] = useState([]);
|