@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.
- package/dist/components/explore.js +62 -2
- package/dist/components/explore.js.map +1 -1
- package/dist/components/explore.mjs +63 -3
- package/dist/components/explore.mjs.map +1 -1
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.js +22 -1
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +22 -1
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +62 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +63 -3
- package/dist/index.mjs.map +1 -1
- package/dist/{use-explore-chat-8eL7WdLc.d.mts → use-explore-chat-B-E7jN1H.d.mts} +5 -0
- package/dist/{use-explore-chat-8eL7WdLc.d.ts → use-explore-chat-B-E7jN1H.d.ts} +5 -0
- package/package.json +1 -1
package/dist/hooks/index.d.mts
CHANGED
|
@@ -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-
|
|
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. */
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -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-
|
|
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. */
|
package/dist/hooks/index.js
CHANGED
|
@@ -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;
|