@burdenoff/website-sdk 2026.922.2 → 2026.922.4
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.d.mts +81 -3
- package/dist/components/explore.d.ts +81 -3
- package/dist/components/explore.js +1022 -143
- package/dist/components/explore.js.map +1 -1
- package/dist/components/explore.mjs +1020 -145
- package/dist/components/explore.mjs.map +1 -1
- package/dist/{explore-types-CLw19R76.d.mts → explore-types-DvQPiL1t.d.mts} +97 -4
- package/dist/{explore-types-CLw19R76.d.ts → explore-types-DvQPiL1t.d.ts} +97 -4
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +129 -11
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +129 -11
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.d.mts +63 -2
- package/dist/index.d.ts +63 -2
- package/dist/index.js +1019 -143
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1020 -145
- package/dist/index.mjs.map +1 -1
- package/dist/{use-explore-chat-DC47G-C3.d.mts → use-explore-chat-CNEdKBc1.d.ts} +13 -1
- package/dist/{use-explore-chat-DyPMkzXA.d.ts → use-explore-chat-Dgm-jf96.d.mts} +13 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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 {
|
|
@@ -104,6 +104,18 @@ interface UseExploreChatResult {
|
|
|
104
104
|
* awaited, never throws, and must never delay the navigation it is reporting on.
|
|
105
105
|
*/
|
|
106
106
|
recordClick: (messageId: string, kind: "CTA" | "REFERENCE", url: string) => void;
|
|
107
|
+
/**
|
|
108
|
+
* Rate one answer. Resolves `true` only when the server reports `recorded: true`.
|
|
109
|
+
*
|
|
110
|
+
* The opposite posture to {@link recordClick}, and deliberately so: the visitor is still on
|
|
111
|
+
* the page and is watching the control they pressed, so the result has to come back far
|
|
112
|
+
* enough for the UI to tell the truth about it. It still never throws — a transport
|
|
113
|
+
* failure, a GraphQL error and an unattributable message all resolve `false`.
|
|
114
|
+
*/
|
|
115
|
+
submitFeedback: (messageId: string, rating: ExploreFeedbackRating, detail?: {
|
|
116
|
+
reason?: ExploreFeedbackReason | null;
|
|
117
|
+
comment?: string | null;
|
|
118
|
+
}) => Promise<boolean>;
|
|
107
119
|
/**
|
|
108
120
|
* Mint a read-only link to this conversation, or null when there is nothing to share yet.
|
|
109
121
|
* The secret returned is not the conversation token and cannot continue the thread.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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 {
|
|
@@ -104,6 +104,18 @@ interface UseExploreChatResult {
|
|
|
104
104
|
* awaited, never throws, and must never delay the navigation it is reporting on.
|
|
105
105
|
*/
|
|
106
106
|
recordClick: (messageId: string, kind: "CTA" | "REFERENCE", url: string) => void;
|
|
107
|
+
/**
|
|
108
|
+
* Rate one answer. Resolves `true` only when the server reports `recorded: true`.
|
|
109
|
+
*
|
|
110
|
+
* The opposite posture to {@link recordClick}, and deliberately so: the visitor is still on
|
|
111
|
+
* the page and is watching the control they pressed, so the result has to come back far
|
|
112
|
+
* enough for the UI to tell the truth about it. It still never throws — a transport
|
|
113
|
+
* failure, a GraphQL error and an unattributable message all resolve `false`.
|
|
114
|
+
*/
|
|
115
|
+
submitFeedback: (messageId: string, rating: ExploreFeedbackRating, detail?: {
|
|
116
|
+
reason?: ExploreFeedbackReason | null;
|
|
117
|
+
comment?: string | null;
|
|
118
|
+
}) => Promise<boolean>;
|
|
107
119
|
/**
|
|
108
120
|
* Mint a read-only link to this conversation, or null when there is nothing to share yet.
|
|
109
121
|
* The secret returned is not the conversation token and cannot continue the thread.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/website-sdk",
|
|
3
|
-
"version": "2026.922.
|
|
3
|
+
"version": "2026.922.4",
|
|
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",
|