@burdenoff/website-sdk 2026.829.1 → 2026.829.2

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-DhvZhH8f.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-8eL7WdLc.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-DhvZhH8f.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-8eL7WdLc.js';
2
2
 
3
3
  interface UseSpeechInputOptions {
4
4
  /** Receives settled text as it is recognised. Append it to the draft. */
@@ -244,6 +244,7 @@ var EXPLORE_MESSAGE_FIELDS = (
244
244
  description
245
245
  product
246
246
  imageUrl
247
+ index
247
248
  }
248
249
  ctas {
249
250
  kind
@@ -251,6 +252,8 @@ var EXPLORE_MESSAGE_FIELDS = (
251
252
  url
252
253
  product
253
254
  }
255
+ followUps
256
+ answered
254
257
  errorCode
255
258
  createdAt
256
259
  completedAt
@@ -316,6 +319,16 @@ var SEND_EXPLORE_MESSAGE_MUTATION = (
316
319
  }
317
320
  `
318
321
  );
322
+ var RECORD_EXPLORE_CLICK_MUTATION = (
323
+ /* GraphQL */
324
+ `
325
+ mutation RecordExploreClick($input: RecordExploreClickInput!) {
326
+ recordExploreClick(input: $input) {
327
+ recorded
328
+ }
329
+ }
330
+ `
331
+ );
319
332
 
320
333
  // src/data/products.ts
321
334
  var ECOSYSTEM_PRODUCTS = [
@@ -1248,6 +1261,20 @@ function useExploreChat(options = {}) {
1248
1261
  return null;
1249
1262
  }, [messages]);
1250
1263
  const canSend = (phase === "ready" || phase === "error") && catalog.enabled && turnCount < catalog.limits.maxTurnsPerConversation;
1264
+ const recordClick = react.useCallback(
1265
+ (messageId, kind, url) => {
1266
+ const token = conversationTokenRef.current;
1267
+ if (!token) return;
1268
+ try {
1269
+ void client.mutate(RECORD_EXPLORE_CLICK_MUTATION, {
1270
+ input: { conversationToken: token, messageId, kind, url }
1271
+ }).catch(() => {
1272
+ });
1273
+ } catch {
1274
+ }
1275
+ },
1276
+ [client]
1277
+ );
1251
1278
  return {
1252
1279
  phase,
1253
1280
  catalog,
@@ -1265,7 +1292,8 @@ function useExploreChat(options = {}) {
1265
1292
  history: archive,
1266
1293
  openConversation,
1267
1294
  deleteConversation,
1268
- clearHistory
1295
+ clearHistory,
1296
+ recordClick
1269
1297
  };
1270
1298
  }
1271
1299
  var optimisticCounter = 0;