@burdenoff/website-sdk 2026.829.3 → 2026.829.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.js +26 -2
- package/dist/components/explore.js.map +1 -1
- package/dist/components/explore.mjs +26 -2
- package/dist/components/explore.mjs.map +1 -1
- package/dist/index.js +26 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2709,6 +2709,7 @@ function ExplorePage({
|
|
|
2709
2709
|
speechStopRef.current = speech.stop;
|
|
2710
2710
|
const [disclaimerOpen, setDisclaimerOpen] = React.useState(false);
|
|
2711
2711
|
const [shareLabel, setShareLabel] = React.useState("Share");
|
|
2712
|
+
const [shareUrl, setShareUrl] = React.useState(null);
|
|
2712
2713
|
const scrollRef = React.useRef(null);
|
|
2713
2714
|
const latestAssistantRef = React.useRef(null);
|
|
2714
2715
|
const alignedForRef = React.useRef(null);
|
|
@@ -2765,6 +2766,7 @@ function ExplorePage({
|
|
|
2765
2766
|
}, [activity, latestAssistantId, messages]);
|
|
2766
2767
|
const handleShare = React.useCallback(async () => {
|
|
2767
2768
|
setShareLabel("Copying\u2026");
|
|
2769
|
+
setShareUrl(null);
|
|
2768
2770
|
const token = await createShareLink();
|
|
2769
2771
|
if (!token) {
|
|
2770
2772
|
setShareLabel("Unavailable");
|
|
@@ -2776,11 +2778,11 @@ function ExplorePage({
|
|
|
2776
2778
|
try {
|
|
2777
2779
|
await navigator.clipboard.writeText(url);
|
|
2778
2780
|
setShareLabel("Copied");
|
|
2781
|
+
setTimeout(() => setShareLabel("Share"), 2500);
|
|
2779
2782
|
} catch {
|
|
2780
|
-
|
|
2783
|
+
setShareUrl(url);
|
|
2781
2784
|
setShareLabel("Share");
|
|
2782
2785
|
}
|
|
2783
|
-
setTimeout(() => setShareLabel("Share"), 2500);
|
|
2784
2786
|
}, [createShareLink, pageUrl]);
|
|
2785
2787
|
const submitDraft = React.useCallback(() => {
|
|
2786
2788
|
const text = draft.trim();
|
|
@@ -3144,6 +3146,28 @@ function ExplorePage({
|
|
|
3144
3146
|
}
|
|
3145
3147
|
)
|
|
3146
3148
|
] }),
|
|
3149
|
+
shareUrl ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-2 flex items-center gap-2", children: [
|
|
3150
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3151
|
+
"input",
|
|
3152
|
+
{
|
|
3153
|
+
"data-boff-explore": "share-url",
|
|
3154
|
+
readOnly: true,
|
|
3155
|
+
value: shareUrl,
|
|
3156
|
+
"aria-label": "Read-only link to this conversation",
|
|
3157
|
+
onFocus: (event) => event.currentTarget.select(),
|
|
3158
|
+
className: "min-w-0 flex-1 rounded-md border border-border bg-muted px-2 py-1 text-xs text-muted-foreground"
|
|
3159
|
+
}
|
|
3160
|
+
),
|
|
3161
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3162
|
+
"button",
|
|
3163
|
+
{
|
|
3164
|
+
type: "button",
|
|
3165
|
+
className: "shrink-0 text-xs underline underline-offset-2",
|
|
3166
|
+
onClick: () => setShareUrl(null),
|
|
3167
|
+
children: "Done"
|
|
3168
|
+
}
|
|
3169
|
+
)
|
|
3170
|
+
] }) : null,
|
|
3147
3171
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-2 flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-muted-foreground", children: [
|
|
3148
3172
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 truncate", children: "Grounded in our docs \u2014 check anything important." }),
|
|
3149
3173
|
/* @__PURE__ */ jsxRuntime.jsx(
|