@burdenoff/website-sdk 2026.828.3 → 2026.828.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.
Files changed (47) hide show
  1. package/dist/client/index.js.map +1 -1
  2. package/dist/client/index.mjs.map +1 -1
  3. package/dist/components/contact.js.map +1 -1
  4. package/dist/components/contact.mjs.map +1 -1
  5. package/dist/components/explore-cta.js +9 -7
  6. package/dist/components/explore-cta.js.map +1 -1
  7. package/dist/components/explore-cta.mjs +9 -7
  8. package/dist/components/explore-cta.mjs.map +1 -1
  9. package/dist/components/explore.js +427 -41
  10. package/dist/components/explore.js.map +1 -1
  11. package/dist/components/explore.mjs +429 -43
  12. package/dist/components/explore.mjs.map +1 -1
  13. package/dist/components/newsletter.js.map +1 -1
  14. package/dist/components/newsletter.mjs.map +1 -1
  15. package/dist/components/partners.js.map +1 -1
  16. package/dist/components/partners.mjs.map +1 -1
  17. package/dist/components/pricing.js.map +1 -1
  18. package/dist/components/pricing.mjs.map +1 -1
  19. package/dist/components/resource-links.js.map +1 -1
  20. package/dist/components/resource-links.mjs.map +1 -1
  21. package/dist/components/social-links.js.map +1 -1
  22. package/dist/components/social-links.mjs.map +1 -1
  23. package/dist/components/unsubscribe.js.map +1 -1
  24. package/dist/components/unsubscribe.mjs.map +1 -1
  25. package/dist/components/waitlist.js.map +1 -1
  26. package/dist/components/waitlist.mjs.map +1 -1
  27. package/dist/content/index.js.map +1 -1
  28. package/dist/content/index.mjs.map +1 -1
  29. package/dist/hooks/index.d.mts +24 -1
  30. package/dist/hooks/index.d.ts +24 -1
  31. package/dist/hooks/index.js +235 -5
  32. package/dist/hooks/index.js.map +1 -1
  33. package/dist/hooks/index.mjs +235 -6
  34. package/dist/hooks/index.mjs.map +1 -1
  35. package/dist/index.d.mts +1 -1
  36. package/dist/index.d.ts +1 -1
  37. package/dist/index.js +436 -48
  38. package/dist/index.js.map +1 -1
  39. package/dist/index.mjs +437 -49
  40. package/dist/index.mjs.map +1 -1
  41. package/dist/product/index.js.map +1 -1
  42. package/dist/product/index.mjs.map +1 -1
  43. package/dist/store/index.js.map +1 -1
  44. package/dist/store/index.mjs.map +1 -1
  45. package/dist/{index-CUJTTlYx.d.mts → use-explore-chat-DhvZhH8f.d.mts} +21 -2
  46. package/dist/{index-CUJTTlYx.d.ts → use-explore-chat-DhvZhH8f.d.ts} +21 -2
  47. package/package.json +1 -1
@@ -197,7 +197,7 @@ interface UseExploreChatOptions {
197
197
  * be overridden centrally once the catalog carries them.
198
198
  */
199
199
  examplePrompts?: string[];
200
- /** sessionStorage key. Default `boff.explore.v1`. */
200
+ /** localStorage key for the ACTIVE conversation. Default `boff.explore.v1`. */
201
201
  storageKey?: string;
202
202
  /** Persist the conversation across reloads within the tab. Default true. */
203
203
  persist?: boolean;
@@ -224,6 +224,14 @@ interface UseExploreChatResult {
224
224
  retry: () => void;
225
225
  /** Clear the conversation and the persisted session. */
226
226
  reset: () => void;
227
+ /** Past conversations held in THIS browser, newest first. */
228
+ history: ArchivedExploreConversation[];
229
+ /** Reopen a past conversation and continue it. */
230
+ openConversation: (token: string) => void;
231
+ /** Forget one past conversation (local only). */
232
+ deleteConversation: (token: string) => void;
233
+ /** Forget every past conversation held in this browser. */
234
+ clearHistory: () => void;
227
235
  canSend: boolean;
228
236
  }
229
237
  /** Fallback limits, mirroring the server defaults in CONTRACT.md §3. */
@@ -239,6 +247,17 @@ declare const DEFAULT_EXPLORE_EXAMPLE_PROMPTS: string[];
239
247
  * condition we have not enumerated is far more likely than a permanent one.
240
248
  */
241
249
  declare function classifyExploreError(code: string | null | undefined, serverMessage?: string | null): ExploreChatError;
250
+ /** One past conversation, as shown in the history list and restored on click. */
251
+ interface ArchivedExploreConversation {
252
+ token: string;
253
+ /** First thing the visitor asked — the human-readable label for the thread. */
254
+ title: string;
255
+ /** ISO timestamp of the last message in the thread. */
256
+ updatedAt: string;
257
+ messageCount: number;
258
+ focusProduct: string | null;
259
+ messages: ExploreMessage[];
260
+ }
242
261
  declare function useExploreChat(options?: UseExploreChatOptions): UseExploreChatResult;
243
262
 
244
- export { DEFAULT_EXPLORE_EXAMPLE_PROMPTS as D, EXPLORE_CATALOG_QUERY as E, FALLBACK_EXPLORE_LIMITS as F, SEND_EXPLORE_MESSAGE_MUTATION as S, type UseExploreChatOptions as U, EXPLORE_MESSAGE_QUERY as a, type ExploreCatalog as b, type ExploreCatalogQueryData as c, type ExploreChatError as d, type ExploreChatErrorKind as e, type ExploreChatPhase as f, type ExploreConversation as g, type ExploreCtaKind as h, type ExploreCtaLink as i, type ExploreErrorCode as j, type ExploreLimits as k, type ExploreMessage as l, type ExploreMessageQueryData as m, type ExploreMessageRole as n, type ExploreMessageStatus as o, type ExploreProduct as p, type ExploreReference as q, type SendExploreMessageInput as r, type SendExploreMessageMutationData as s, type SendExploreMessageResult as t, type UseExploreChatResult as u, classifyExploreError as v, useExploreChat as w };
263
+ export { DEFAULT_EXPLORE_EXAMPLE_PROMPTS as D, type ExploreChatError as E, FALLBACK_EXPLORE_LIMITS as F, SEND_EXPLORE_MESSAGE_MUTATION as S, type UseExploreChatOptions as U, type ExploreChatErrorKind as a, type ExploreChatPhase as b, type UseExploreChatResult as c, classifyExploreError as d, EXPLORE_CATALOG_QUERY as e, EXPLORE_MESSAGE_QUERY as f, type ExploreCatalog as g, type ExploreCatalogQueryData as h, type ExploreConversation as i, type ExploreCtaKind as j, type ExploreCtaLink as k, type ExploreErrorCode as l, type ExploreLimits as m, type ExploreMessage as n, type ExploreMessageQueryData as o, type ExploreMessageRole as p, type ExploreMessageStatus as q, type ExploreProduct as r, type ExploreReference as s, type SendExploreMessageInput as t, useExploreChat as u, type SendExploreMessageMutationData as v, type SendExploreMessageResult as w };
@@ -197,7 +197,7 @@ interface UseExploreChatOptions {
197
197
  * be overridden centrally once the catalog carries them.
198
198
  */
199
199
  examplePrompts?: string[];
200
- /** sessionStorage key. Default `boff.explore.v1`. */
200
+ /** localStorage key for the ACTIVE conversation. Default `boff.explore.v1`. */
201
201
  storageKey?: string;
202
202
  /** Persist the conversation across reloads within the tab. Default true. */
203
203
  persist?: boolean;
@@ -224,6 +224,14 @@ interface UseExploreChatResult {
224
224
  retry: () => void;
225
225
  /** Clear the conversation and the persisted session. */
226
226
  reset: () => void;
227
+ /** Past conversations held in THIS browser, newest first. */
228
+ history: ArchivedExploreConversation[];
229
+ /** Reopen a past conversation and continue it. */
230
+ openConversation: (token: string) => void;
231
+ /** Forget one past conversation (local only). */
232
+ deleteConversation: (token: string) => void;
233
+ /** Forget every past conversation held in this browser. */
234
+ clearHistory: () => void;
227
235
  canSend: boolean;
228
236
  }
229
237
  /** Fallback limits, mirroring the server defaults in CONTRACT.md §3. */
@@ -239,6 +247,17 @@ declare const DEFAULT_EXPLORE_EXAMPLE_PROMPTS: string[];
239
247
  * condition we have not enumerated is far more likely than a permanent one.
240
248
  */
241
249
  declare function classifyExploreError(code: string | null | undefined, serverMessage?: string | null): ExploreChatError;
250
+ /** One past conversation, as shown in the history list and restored on click. */
251
+ interface ArchivedExploreConversation {
252
+ token: string;
253
+ /** First thing the visitor asked — the human-readable label for the thread. */
254
+ title: string;
255
+ /** ISO timestamp of the last message in the thread. */
256
+ updatedAt: string;
257
+ messageCount: number;
258
+ focusProduct: string | null;
259
+ messages: ExploreMessage[];
260
+ }
242
261
  declare function useExploreChat(options?: UseExploreChatOptions): UseExploreChatResult;
243
262
 
244
- export { DEFAULT_EXPLORE_EXAMPLE_PROMPTS as D, EXPLORE_CATALOG_QUERY as E, FALLBACK_EXPLORE_LIMITS as F, SEND_EXPLORE_MESSAGE_MUTATION as S, type UseExploreChatOptions as U, EXPLORE_MESSAGE_QUERY as a, type ExploreCatalog as b, type ExploreCatalogQueryData as c, type ExploreChatError as d, type ExploreChatErrorKind as e, type ExploreChatPhase as f, type ExploreConversation as g, type ExploreCtaKind as h, type ExploreCtaLink as i, type ExploreErrorCode as j, type ExploreLimits as k, type ExploreMessage as l, type ExploreMessageQueryData as m, type ExploreMessageRole as n, type ExploreMessageStatus as o, type ExploreProduct as p, type ExploreReference as q, type SendExploreMessageInput as r, type SendExploreMessageMutationData as s, type SendExploreMessageResult as t, type UseExploreChatResult as u, classifyExploreError as v, useExploreChat as w };
263
+ export { DEFAULT_EXPLORE_EXAMPLE_PROMPTS as D, type ExploreChatError as E, FALLBACK_EXPLORE_LIMITS as F, SEND_EXPLORE_MESSAGE_MUTATION as S, type UseExploreChatOptions as U, type ExploreChatErrorKind as a, type ExploreChatPhase as b, type UseExploreChatResult as c, classifyExploreError as d, EXPLORE_CATALOG_QUERY as e, EXPLORE_MESSAGE_QUERY as f, type ExploreCatalog as g, type ExploreCatalogQueryData as h, type ExploreConversation as i, type ExploreCtaKind as j, type ExploreCtaLink as k, type ExploreErrorCode as l, type ExploreLimits as m, type ExploreMessage as n, type ExploreMessageQueryData as o, type ExploreMessageRole as p, type ExploreMessageStatus as q, type ExploreProduct as r, type ExploreReference as s, type SendExploreMessageInput as t, useExploreChat as u, type SendExploreMessageMutationData as v, type SendExploreMessageResult as w };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/website-sdk",
3
- "version": "2026.828.3",
3
+ "version": "2026.828.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",