@burdenoff/website-sdk 2026.922.3 → 2026.922.5

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
- import { a as ExploreLimits, b as ExploreCatalog, c as ExploreMessage, d as ExploreFeedbackRating, e as ExploreFeedbackReason } from './explore-types-CPF1QoMn.js';
1
+ import { b as ExploreLimits, c as ExploreCatalog, d as ExploreMessage, e as ExploreFeedbackRating, f as ExploreFeedbackReason } from './explore-types-DvQPiL1t.js';
2
2
 
3
3
  /** What travels on the wire — mirrors `ExploreAttachmentInput`. */
4
4
  interface ExploreAttachmentPayload {
@@ -160,4 +160,38 @@ interface ArchivedExploreConversation {
160
160
  }
161
161
  declare function useExploreChat(options?: UseExploreChatOptions): UseExploreChatResult;
162
162
 
163
- 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 UseExploreChatResult as c, classifyExploreError as d, useExploreChat as u };
163
+ /**
164
+ * Stop whatever this SDK is reading aloud, from outside a component.
165
+ *
166
+ * A no-op when nothing of ours is speaking — deliberately, rather than calling
167
+ * `speechSynthesis.cancel()` unconditionally, which would also silence a host page that is
168
+ * using the same queue for its own reasons.
169
+ */
170
+ declare function stopSpeaking(): void;
171
+ interface UseSpeechOutputOptions {
172
+ /** BCP-47 tag to read in. Omit to let the platform pick its default voice. */
173
+ lang?: string;
174
+ }
175
+ interface UseSpeechOutputResult {
176
+ /**
177
+ * False when this browser has no synthesiser, or has one that was asked to speak and did
178
+ * not. Render no control at all when it is false — see the note at the top of the file.
179
+ */
180
+ supported: boolean;
181
+ speaking: boolean;
182
+ speak: (text: string) => void;
183
+ stop: () => void;
184
+ toggle: (text: string) => void;
185
+ }
186
+ declare function useSpeechOutput({ lang, }?: UseSpeechOutputOptions): UseSpeechOutputResult;
187
+
188
+ /**
189
+ * The part of `text` that is currently on screen.
190
+ *
191
+ * @param text everything that has arrived so far — `content` once the turn completes,
192
+ * `partialContent` while it runs.
193
+ * @param settled true once the turn is COMPLETED or FAILED and `text` will not grow again.
194
+ */
195
+ declare function useProgressiveReveal(text: string, settled: boolean): string;
196
+
197
+ 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 UseExploreChatResult as c, type UseSpeechOutputOptions as d, type UseSpeechOutputResult as e, classifyExploreError as f, useProgressiveReveal as g, useSpeechOutput as h, stopSpeaking as s, useExploreChat as u };
@@ -1,4 +1,4 @@
1
- import { a as ExploreLimits, b as ExploreCatalog, c as ExploreMessage, d as ExploreFeedbackRating, e as ExploreFeedbackReason } from './explore-types-CPF1QoMn.mjs';
1
+ import { b as ExploreLimits, c as ExploreCatalog, d as ExploreMessage, e as ExploreFeedbackRating, f as ExploreFeedbackReason } from './explore-types-DvQPiL1t.mjs';
2
2
 
3
3
  /** What travels on the wire — mirrors `ExploreAttachmentInput`. */
4
4
  interface ExploreAttachmentPayload {
@@ -160,4 +160,38 @@ interface ArchivedExploreConversation {
160
160
  }
161
161
  declare function useExploreChat(options?: UseExploreChatOptions): UseExploreChatResult;
162
162
 
163
- 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 UseExploreChatResult as c, classifyExploreError as d, useExploreChat as u };
163
+ /**
164
+ * Stop whatever this SDK is reading aloud, from outside a component.
165
+ *
166
+ * A no-op when nothing of ours is speaking — deliberately, rather than calling
167
+ * `speechSynthesis.cancel()` unconditionally, which would also silence a host page that is
168
+ * using the same queue for its own reasons.
169
+ */
170
+ declare function stopSpeaking(): void;
171
+ interface UseSpeechOutputOptions {
172
+ /** BCP-47 tag to read in. Omit to let the platform pick its default voice. */
173
+ lang?: string;
174
+ }
175
+ interface UseSpeechOutputResult {
176
+ /**
177
+ * False when this browser has no synthesiser, or has one that was asked to speak and did
178
+ * not. Render no control at all when it is false — see the note at the top of the file.
179
+ */
180
+ supported: boolean;
181
+ speaking: boolean;
182
+ speak: (text: string) => void;
183
+ stop: () => void;
184
+ toggle: (text: string) => void;
185
+ }
186
+ declare function useSpeechOutput({ lang, }?: UseSpeechOutputOptions): UseSpeechOutputResult;
187
+
188
+ /**
189
+ * The part of `text` that is currently on screen.
190
+ *
191
+ * @param text everything that has arrived so far — `content` once the turn completes,
192
+ * `partialContent` while it runs.
193
+ * @param settled true once the turn is COMPLETED or FAILED and `text` will not grow again.
194
+ */
195
+ declare function useProgressiveReveal(text: string, settled: boolean): string;
196
+
197
+ 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 UseExploreChatResult as c, type UseSpeechOutputOptions as d, type UseSpeechOutputResult as e, classifyExploreError as f, useProgressiveReveal as g, useSpeechOutput as h, 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.922.3",
3
+ "version": "2026.922.5",
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",