@burdenoff/website-sdk 2026.1024.1 → 2026.1026.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-cta.d.mts +10 -1
- package/dist/components/explore-cta.d.ts +10 -1
- package/dist/components/explore-cta.js +82 -74
- package/dist/components/explore-cta.js.map +1 -1
- package/dist/components/explore-cta.mjs +83 -75
- package/dist/components/explore-cta.mjs.map +1 -1
- package/dist/components/explore.d.mts +2 -2
- package/dist/components/explore.d.ts +2 -2
- package/dist/components/explore.js +590 -463
- package/dist/components/explore.js.map +1 -1
- package/dist/components/explore.mjs +591 -464
- package/dist/components/explore.mjs.map +1 -1
- package/dist/{explore-POqE7J8r.d.mts → explore-BRfKFfvI.d.mts} +21 -2
- package/dist/{explore-D6kon7uz.d.ts → explore-DkfcKgp6.d.ts} +21 -2
- package/dist/{explore-types-BB8HNFzX.d.mts → explore-types-_9UJu6EA.d.mts} +1 -1
- package/dist/{explore-types-BB8HNFzX.d.ts → explore-types-_9UJu6EA.d.ts} +1 -1
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +15 -9
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +15 -9
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.d.mts +123 -7
- package/dist/index.d.ts +123 -7
- package/dist/index.js +922 -117
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +922 -120
- package/dist/index.mjs.map +1 -1
- package/dist/{use-progressive-reveal-Kr6DwGXG.d.mts → use-progressive-reveal-BFPWbEXy.d.mts} +25 -2
- package/dist/{use-progressive-reveal-BVJn9NIr.d.ts → use-progressive-reveal-C0hkdu_i.d.ts} +25 -2
- package/package.json +1 -1
package/dist/{use-progressive-reveal-Kr6DwGXG.d.mts → use-progressive-reveal-BFPWbEXy.d.mts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as
|
|
1
|
+
import { b as ExploreCatalog, c as ExploreMessage, d as ExploreFeedbackRating, e as ExploreFeedbackReason, f as ExploreLimits } from './explore-types-_9UJu6EA.mjs';
|
|
2
2
|
|
|
3
3
|
/** What travels on the wire — mirrors `ExploreAttachmentInput`. */
|
|
4
4
|
interface ExploreAttachmentPayload {
|
|
@@ -7,6 +7,13 @@ interface ExploreAttachmentPayload {
|
|
|
7
7
|
size: number;
|
|
8
8
|
textContent: string | null;
|
|
9
9
|
}
|
|
10
|
+
/** A file staged in the composer, before it is sent. */
|
|
11
|
+
interface StagedAttachment extends ExploreAttachmentPayload {
|
|
12
|
+
/** Stable across re-renders so React keys and the remove button behave. */
|
|
13
|
+
id: string;
|
|
14
|
+
/** False when only the name and type could be used. Drives the UI's honesty. */
|
|
15
|
+
textExtracted: boolean;
|
|
16
|
+
}
|
|
10
17
|
|
|
11
18
|
/**
|
|
12
19
|
* Where the conversation is right now.
|
|
@@ -98,6 +105,22 @@ interface UseExploreChatOptions {
|
|
|
98
105
|
persist?: boolean;
|
|
99
106
|
/** Called with the message text each time a send is accepted locally. */
|
|
100
107
|
onSend?: (message: string) => void;
|
|
108
|
+
/**
|
|
109
|
+
* Whether the conversation is live. Default `true`: every caller that does not pass it behaves exactly as before.
|
|
110
|
+
*
|
|
111
|
+
* While `false` the hook asks nothing and reads nothing: no catalog request, no localStorage restore, no shared-link
|
|
112
|
+
* load (BOFF-9697). A host that keeps ONE conversation for a whole site (an `ExploreChatProvider` above its routes)
|
|
113
|
+
* passes `false` until the visitor first opens the assistant, so a page view costs no request. A one-way switch:
|
|
114
|
+
* once `true`, keep it `true` (the provider latches it).
|
|
115
|
+
*/
|
|
116
|
+
enabled?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* The `?c=` share token to open, in place of reading it from the page's URL (BOFF-9697). Unset (every existing
|
|
119
|
+
* caller): read from the URL as before. A site-wide provider mounts once for every page, so it takes the token from
|
|
120
|
+
* its router instead: the token of the route showing `/explore`, `null` anywhere else (a `?c=` on another page is
|
|
121
|
+
* not a shared conversation). Read once, like the URL: a different token needs a fresh hook (a new `key`).
|
|
122
|
+
*/
|
|
123
|
+
shareToken?: string | null;
|
|
101
124
|
}
|
|
102
125
|
interface UseExploreChatResult {
|
|
103
126
|
phase: ExploreChatPhase;
|
|
@@ -246,4 +269,4 @@ declare function useSpeechOutput({ lang, }?: UseSpeechOutputOptions): UseSpeechO
|
|
|
246
269
|
*/
|
|
247
270
|
declare function useProgressiveReveal(text: string, settled: boolean): string;
|
|
248
271
|
|
|
249
|
-
export { DEFAULT_EXPLORE_EXAMPLE_PROMPTS as D, type ExploreChatError as E, FALLBACK_EXPLORE_LIMITS as F, type UseExploreChatOptions as U, type ExploreChatErrorKind as a, type ExploreChatPhase as b, type ExploreEscalateOutcome as c, type ExploreEscalateResult as d, type UseExploreChatResult as e, type UseSpeechOutputOptions as f, type UseSpeechOutputResult as g, classifyExploreError as h, useProgressiveReveal as i, useSpeechOutput as j, stopSpeaking as s, useExploreChat as u };
|
|
272
|
+
export { DEFAULT_EXPLORE_EXAMPLE_PROMPTS as D, type ExploreChatError as E, FALLBACK_EXPLORE_LIMITS as F, type StagedAttachment as S, type UseExploreChatOptions as U, type ExploreChatErrorKind as a, type ExploreChatPhase as b, type ExploreEscalateOutcome as c, type ExploreEscalateResult as d, type UseExploreChatResult as e, type UseSpeechOutputOptions as f, type UseSpeechOutputResult as g, classifyExploreError as h, useProgressiveReveal as i, useSpeechOutput as j, stopSpeaking as s, useExploreChat as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as
|
|
1
|
+
import { b as ExploreCatalog, c as ExploreMessage, d as ExploreFeedbackRating, e as ExploreFeedbackReason, f as ExploreLimits } from './explore-types-_9UJu6EA.js';
|
|
2
2
|
|
|
3
3
|
/** What travels on the wire — mirrors `ExploreAttachmentInput`. */
|
|
4
4
|
interface ExploreAttachmentPayload {
|
|
@@ -7,6 +7,13 @@ interface ExploreAttachmentPayload {
|
|
|
7
7
|
size: number;
|
|
8
8
|
textContent: string | null;
|
|
9
9
|
}
|
|
10
|
+
/** A file staged in the composer, before it is sent. */
|
|
11
|
+
interface StagedAttachment extends ExploreAttachmentPayload {
|
|
12
|
+
/** Stable across re-renders so React keys and the remove button behave. */
|
|
13
|
+
id: string;
|
|
14
|
+
/** False when only the name and type could be used. Drives the UI's honesty. */
|
|
15
|
+
textExtracted: boolean;
|
|
16
|
+
}
|
|
10
17
|
|
|
11
18
|
/**
|
|
12
19
|
* Where the conversation is right now.
|
|
@@ -98,6 +105,22 @@ interface UseExploreChatOptions {
|
|
|
98
105
|
persist?: boolean;
|
|
99
106
|
/** Called with the message text each time a send is accepted locally. */
|
|
100
107
|
onSend?: (message: string) => void;
|
|
108
|
+
/**
|
|
109
|
+
* Whether the conversation is live. Default `true`: every caller that does not pass it behaves exactly as before.
|
|
110
|
+
*
|
|
111
|
+
* While `false` the hook asks nothing and reads nothing: no catalog request, no localStorage restore, no shared-link
|
|
112
|
+
* load (BOFF-9697). A host that keeps ONE conversation for a whole site (an `ExploreChatProvider` above its routes)
|
|
113
|
+
* passes `false` until the visitor first opens the assistant, so a page view costs no request. A one-way switch:
|
|
114
|
+
* once `true`, keep it `true` (the provider latches it).
|
|
115
|
+
*/
|
|
116
|
+
enabled?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* The `?c=` share token to open, in place of reading it from the page's URL (BOFF-9697). Unset (every existing
|
|
119
|
+
* caller): read from the URL as before. A site-wide provider mounts once for every page, so it takes the token from
|
|
120
|
+
* its router instead: the token of the route showing `/explore`, `null` anywhere else (a `?c=` on another page is
|
|
121
|
+
* not a shared conversation). Read once, like the URL: a different token needs a fresh hook (a new `key`).
|
|
122
|
+
*/
|
|
123
|
+
shareToken?: string | null;
|
|
101
124
|
}
|
|
102
125
|
interface UseExploreChatResult {
|
|
103
126
|
phase: ExploreChatPhase;
|
|
@@ -246,4 +269,4 @@ declare function useSpeechOutput({ lang, }?: UseSpeechOutputOptions): UseSpeechO
|
|
|
246
269
|
*/
|
|
247
270
|
declare function useProgressiveReveal(text: string, settled: boolean): string;
|
|
248
271
|
|
|
249
|
-
export { DEFAULT_EXPLORE_EXAMPLE_PROMPTS as D, type ExploreChatError as E, FALLBACK_EXPLORE_LIMITS as F, type UseExploreChatOptions as U, type ExploreChatErrorKind as a, type ExploreChatPhase as b, type ExploreEscalateOutcome as c, type ExploreEscalateResult as d, type UseExploreChatResult as e, type UseSpeechOutputOptions as f, type UseSpeechOutputResult as g, classifyExploreError as h, useProgressiveReveal as i, useSpeechOutput as j, stopSpeaking as s, useExploreChat as u };
|
|
272
|
+
export { DEFAULT_EXPLORE_EXAMPLE_PROMPTS as D, type ExploreChatError as E, FALLBACK_EXPLORE_LIMITS as F, type StagedAttachment as S, type UseExploreChatOptions as U, type ExploreChatErrorKind as a, type ExploreChatPhase as b, type ExploreEscalateOutcome as c, type ExploreEscalateResult as d, type UseExploreChatResult as e, type UseSpeechOutputOptions as f, type UseSpeechOutputResult as g, classifyExploreError as h, useProgressiveReveal as i, useSpeechOutput as j, stopSpeaking as s, useExploreChat as u };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/website-sdk",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.1026.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",
|