@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
|
@@ -2683,6 +2683,7 @@ function ExplorePage({
|
|
|
2683
2683
|
speechStopRef.current = speech.stop;
|
|
2684
2684
|
const [disclaimerOpen, setDisclaimerOpen] = useState(false);
|
|
2685
2685
|
const [shareLabel, setShareLabel] = useState("Share");
|
|
2686
|
+
const [shareUrl, setShareUrl] = useState(null);
|
|
2686
2687
|
const scrollRef = useRef(null);
|
|
2687
2688
|
const latestAssistantRef = useRef(null);
|
|
2688
2689
|
const alignedForRef = useRef(null);
|
|
@@ -2739,6 +2740,7 @@ function ExplorePage({
|
|
|
2739
2740
|
}, [activity, latestAssistantId, messages]);
|
|
2740
2741
|
const handleShare = useCallback(async () => {
|
|
2741
2742
|
setShareLabel("Copying\u2026");
|
|
2743
|
+
setShareUrl(null);
|
|
2742
2744
|
const token = await createShareLink();
|
|
2743
2745
|
if (!token) {
|
|
2744
2746
|
setShareLabel("Unavailable");
|
|
@@ -2750,11 +2752,11 @@ function ExplorePage({
|
|
|
2750
2752
|
try {
|
|
2751
2753
|
await navigator.clipboard.writeText(url);
|
|
2752
2754
|
setShareLabel("Copied");
|
|
2755
|
+
setTimeout(() => setShareLabel("Share"), 2500);
|
|
2753
2756
|
} catch {
|
|
2754
|
-
|
|
2757
|
+
setShareUrl(url);
|
|
2755
2758
|
setShareLabel("Share");
|
|
2756
2759
|
}
|
|
2757
|
-
setTimeout(() => setShareLabel("Share"), 2500);
|
|
2758
2760
|
}, [createShareLink, pageUrl]);
|
|
2759
2761
|
const submitDraft = useCallback(() => {
|
|
2760
2762
|
const text = draft.trim();
|
|
@@ -3118,6 +3120,28 @@ function ExplorePage({
|
|
|
3118
3120
|
}
|
|
3119
3121
|
)
|
|
3120
3122
|
] }),
|
|
3123
|
+
shareUrl ? /* @__PURE__ */ jsxs("div", { className: "mt-2 flex items-center gap-2", children: [
|
|
3124
|
+
/* @__PURE__ */ jsx(
|
|
3125
|
+
"input",
|
|
3126
|
+
{
|
|
3127
|
+
"data-boff-explore": "share-url",
|
|
3128
|
+
readOnly: true,
|
|
3129
|
+
value: shareUrl,
|
|
3130
|
+
"aria-label": "Read-only link to this conversation",
|
|
3131
|
+
onFocus: (event) => event.currentTarget.select(),
|
|
3132
|
+
className: "min-w-0 flex-1 rounded-md border border-border bg-muted px-2 py-1 text-xs text-muted-foreground"
|
|
3133
|
+
}
|
|
3134
|
+
),
|
|
3135
|
+
/* @__PURE__ */ jsx(
|
|
3136
|
+
"button",
|
|
3137
|
+
{
|
|
3138
|
+
type: "button",
|
|
3139
|
+
className: "shrink-0 text-xs underline underline-offset-2",
|
|
3140
|
+
onClick: () => setShareUrl(null),
|
|
3141
|
+
children: "Done"
|
|
3142
|
+
}
|
|
3143
|
+
)
|
|
3144
|
+
] }) : null,
|
|
3121
3145
|
/* @__PURE__ */ jsxs("div", { className: "mt-2 flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-muted-foreground", children: [
|
|
3122
3146
|
/* @__PURE__ */ jsx("span", { className: "min-w-0 truncate", children: "Grounded in our docs \u2014 check anything important." }),
|
|
3123
3147
|
/* @__PURE__ */ jsx(
|