@burdenoff/website-sdk 2026.829.7 → 2026.830.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/components/explore.js +70 -32
- package/dist/components/explore.js.map +1 -1
- package/dist/components/explore.mjs +70 -32
- package/dist/components/explore.mjs.map +1 -1
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.js +19 -6
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +19 -6
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +70 -32
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +70 -32
- package/dist/index.mjs.map +1 -1
- package/dist/{use-explore-chat-BzXCz2UM.d.mts → use-explore-chat-B8xKGid5.d.mts} +13 -1
- package/dist/{use-explore-chat-BzXCz2UM.d.ts → use-explore-chat-B8xKGid5.d.ts} +13 -1
- package/package.json +1 -1
|
@@ -207,7 +207,7 @@ interface ExploreAttachmentPayload {
|
|
|
207
207
|
*/
|
|
208
208
|
type ExploreChatPhase = "loading" | "ready" | "sending" | "streaming" | "error" | "limited" | "disabled";
|
|
209
209
|
/** Coarse bucket the UI switches its banner copy and affordances on. */
|
|
210
|
-
type ExploreChatErrorKind = "rate-limit" | "captcha" | "timeout" | "network" | "disabled" | "validation" | "unknown";
|
|
210
|
+
type ExploreChatErrorKind = "rate-limit" | "captcha" | "timeout" | "scope" | "network" | "disabled" | "validation" | "unknown";
|
|
211
211
|
interface ExploreChatError {
|
|
212
212
|
/** UI bucket. */
|
|
213
213
|
kind: ExploreChatErrorKind;
|
|
@@ -236,6 +236,18 @@ interface UseExploreChatOptions {
|
|
|
236
236
|
* be overridden centrally once the catalog carries them.
|
|
237
237
|
*/
|
|
238
238
|
examplePrompts?: string[];
|
|
239
|
+
/**
|
|
240
|
+
* Welcome copy for the fallback catalog, used only when `exploreCatalog` cannot be reached.
|
|
241
|
+
*
|
|
242
|
+
* The hook's own built-in fallback is English. `ExplorePage` passes the strings for the
|
|
243
|
+
* visitor's locale, so a catalog outage degrades to a translated page rather than an
|
|
244
|
+
* English one — the whole point of shipping six locales is that the failure paths speak
|
|
245
|
+
* them too.
|
|
246
|
+
*/
|
|
247
|
+
fallbackWelcome?: {
|
|
248
|
+
title: string;
|
|
249
|
+
body: string;
|
|
250
|
+
};
|
|
239
251
|
/** localStorage key for the ACTIVE conversation. Default `boff.explore.v1`. */
|
|
240
252
|
storageKey?: string;
|
|
241
253
|
/** Persist the conversation across reloads within the tab. Default true. */
|
|
@@ -207,7 +207,7 @@ interface ExploreAttachmentPayload {
|
|
|
207
207
|
*/
|
|
208
208
|
type ExploreChatPhase = "loading" | "ready" | "sending" | "streaming" | "error" | "limited" | "disabled";
|
|
209
209
|
/** Coarse bucket the UI switches its banner copy and affordances on. */
|
|
210
|
-
type ExploreChatErrorKind = "rate-limit" | "captcha" | "timeout" | "network" | "disabled" | "validation" | "unknown";
|
|
210
|
+
type ExploreChatErrorKind = "rate-limit" | "captcha" | "timeout" | "scope" | "network" | "disabled" | "validation" | "unknown";
|
|
211
211
|
interface ExploreChatError {
|
|
212
212
|
/** UI bucket. */
|
|
213
213
|
kind: ExploreChatErrorKind;
|
|
@@ -236,6 +236,18 @@ interface UseExploreChatOptions {
|
|
|
236
236
|
* be overridden centrally once the catalog carries them.
|
|
237
237
|
*/
|
|
238
238
|
examplePrompts?: string[];
|
|
239
|
+
/**
|
|
240
|
+
* Welcome copy for the fallback catalog, used only when `exploreCatalog` cannot be reached.
|
|
241
|
+
*
|
|
242
|
+
* The hook's own built-in fallback is English. `ExplorePage` passes the strings for the
|
|
243
|
+
* visitor's locale, so a catalog outage degrades to a translated page rather than an
|
|
244
|
+
* English one — the whole point of shipping six locales is that the failure paths speak
|
|
245
|
+
* them too.
|
|
246
|
+
*/
|
|
247
|
+
fallbackWelcome?: {
|
|
248
|
+
title: string;
|
|
249
|
+
body: string;
|
|
250
|
+
};
|
|
239
251
|
/** localStorage key for the ACTIVE conversation. Default `boff.explore.v1`. */
|
|
240
252
|
storageKey?: string;
|
|
241
253
|
/** Persist the conversation across reloads within the tab. Default true. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/website-sdk",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.830.1",
|
|
4
4
|
"description": "Shared SDK for Burdenoff product websites - reusable React components, utilities, and configurations",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|