@burdenoff/website-sdk 2026.829.2 → 2026.829.3

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
- export { D as DEFAULT_EXPLORE_EXAMPLE_PROMPTS, E as ExploreChatError, a as ExploreChatErrorKind, b as ExploreChatPhase, F as FALLBACK_EXPLORE_LIMITS, U as UseExploreChatOptions, c as UseExploreChatResult, d as classifyExploreError, u as useExploreChat } from '../use-explore-chat-8eL7WdLc.mjs';
1
+ export { D as DEFAULT_EXPLORE_EXAMPLE_PROMPTS, E as ExploreChatError, a as ExploreChatErrorKind, b as ExploreChatPhase, F as FALLBACK_EXPLORE_LIMITS, U as UseExploreChatOptions, c as UseExploreChatResult, d as classifyExploreError, u as useExploreChat } from '../use-explore-chat-B-E7jN1H.mjs';
2
2
 
3
3
  interface UseSpeechInputOptions {
4
4
  /** Receives settled text as it is recognised. Append it to the draft. */
@@ -1,4 +1,4 @@
1
- export { D as DEFAULT_EXPLORE_EXAMPLE_PROMPTS, E as ExploreChatError, a as ExploreChatErrorKind, b as ExploreChatPhase, F as FALLBACK_EXPLORE_LIMITS, U as UseExploreChatOptions, c as UseExploreChatResult, d as classifyExploreError, u as useExploreChat } from '../use-explore-chat-8eL7WdLc.js';
1
+ export { D as DEFAULT_EXPLORE_EXAMPLE_PROMPTS, E as ExploreChatError, a as ExploreChatErrorKind, b as ExploreChatPhase, F as FALLBACK_EXPLORE_LIMITS, U as UseExploreChatOptions, c as UseExploreChatResult, d as classifyExploreError, u as useExploreChat } from '../use-explore-chat-B-E7jN1H.js';
2
2
 
3
3
  interface UseSpeechInputOptions {
4
4
  /** Receives settled text as it is recognised. Append it to the draft. */
@@ -329,6 +329,16 @@ var RECORD_EXPLORE_CLICK_MUTATION = (
329
329
  }
330
330
  `
331
331
  );
332
+ var CREATE_EXPLORE_SHARE_LINK_MUTATION = (
333
+ /* GraphQL */
334
+ `
335
+ mutation CreateExploreShareLink($conversationToken: String!) {
336
+ createExploreShareLink(conversationToken: $conversationToken) {
337
+ shareToken
338
+ }
339
+ }
340
+ `
341
+ );
332
342
 
333
343
  // src/data/products.ts
334
344
  var ECOSYSTEM_PRODUCTS = [
@@ -1261,6 +1271,16 @@ function useExploreChat(options = {}) {
1261
1271
  return null;
1262
1272
  }, [messages]);
1263
1273
  const canSend = (phase === "ready" || phase === "error") && catalog.enabled && turnCount < catalog.limits.maxTurnsPerConversation;
1274
+ const createShareLink = react.useCallback(async () => {
1275
+ const token = conversationTokenRef.current;
1276
+ if (!token) return null;
1277
+ try {
1278
+ const result = await client.mutate(CREATE_EXPLORE_SHARE_LINK_MUTATION, { conversationToken: token });
1279
+ return result?.data?.createExploreShareLink?.shareToken ?? null;
1280
+ } catch {
1281
+ return null;
1282
+ }
1283
+ }, [client]);
1264
1284
  const recordClick = react.useCallback(
1265
1285
  (messageId, kind, url) => {
1266
1286
  const token = conversationTokenRef.current;
@@ -1293,7 +1313,8 @@ function useExploreChat(options = {}) {
1293
1313
  openConversation,
1294
1314
  deleteConversation,
1295
1315
  clearHistory,
1296
- recordClick
1316
+ recordClick,
1317
+ createShareLink
1297
1318
  };
1298
1319
  }
1299
1320
  var optimisticCounter = 0;