@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
package/dist/index.mjs
CHANGED
|
@@ -7024,6 +7024,7 @@ function ExplorePage({
|
|
|
7024
7024
|
speechStopRef.current = speech.stop;
|
|
7025
7025
|
const [disclaimerOpen, setDisclaimerOpen] = useState(false);
|
|
7026
7026
|
const [shareLabel, setShareLabel] = useState("Share");
|
|
7027
|
+
const [shareUrl, setShareUrl] = useState(null);
|
|
7027
7028
|
const scrollRef = useRef(null);
|
|
7028
7029
|
const latestAssistantRef = useRef(null);
|
|
7029
7030
|
const alignedForRef = useRef(null);
|
|
@@ -7080,6 +7081,7 @@ function ExplorePage({
|
|
|
7080
7081
|
}, [activity, latestAssistantId, messages]);
|
|
7081
7082
|
const handleShare = useCallback(async () => {
|
|
7082
7083
|
setShareLabel("Copying\u2026");
|
|
7084
|
+
setShareUrl(null);
|
|
7083
7085
|
const token = await createShareLink();
|
|
7084
7086
|
if (!token) {
|
|
7085
7087
|
setShareLabel("Unavailable");
|
|
@@ -7091,11 +7093,11 @@ function ExplorePage({
|
|
|
7091
7093
|
try {
|
|
7092
7094
|
await navigator.clipboard.writeText(url);
|
|
7093
7095
|
setShareLabel("Copied");
|
|
7096
|
+
setTimeout(() => setShareLabel("Share"), 2500);
|
|
7094
7097
|
} catch {
|
|
7095
|
-
|
|
7098
|
+
setShareUrl(url);
|
|
7096
7099
|
setShareLabel("Share");
|
|
7097
7100
|
}
|
|
7098
|
-
setTimeout(() => setShareLabel("Share"), 2500);
|
|
7099
7101
|
}, [createShareLink, pageUrl]);
|
|
7100
7102
|
const submitDraft = useCallback(() => {
|
|
7101
7103
|
const text = draft.trim();
|
|
@@ -7459,6 +7461,28 @@ function ExplorePage({
|
|
|
7459
7461
|
}
|
|
7460
7462
|
)
|
|
7461
7463
|
] }),
|
|
7464
|
+
shareUrl ? /* @__PURE__ */ jsxs("div", { className: "mt-2 flex items-center gap-2", children: [
|
|
7465
|
+
/* @__PURE__ */ jsx(
|
|
7466
|
+
"input",
|
|
7467
|
+
{
|
|
7468
|
+
"data-boff-explore": "share-url",
|
|
7469
|
+
readOnly: true,
|
|
7470
|
+
value: shareUrl,
|
|
7471
|
+
"aria-label": "Read-only link to this conversation",
|
|
7472
|
+
onFocus: (event) => event.currentTarget.select(),
|
|
7473
|
+
className: "min-w-0 flex-1 rounded-md border border-border bg-muted px-2 py-1 text-xs text-muted-foreground"
|
|
7474
|
+
}
|
|
7475
|
+
),
|
|
7476
|
+
/* @__PURE__ */ jsx(
|
|
7477
|
+
"button",
|
|
7478
|
+
{
|
|
7479
|
+
type: "button",
|
|
7480
|
+
className: "shrink-0 text-xs underline underline-offset-2",
|
|
7481
|
+
onClick: () => setShareUrl(null),
|
|
7482
|
+
children: "Done"
|
|
7483
|
+
}
|
|
7484
|
+
)
|
|
7485
|
+
] }) : null,
|
|
7462
7486
|
/* @__PURE__ */ jsxs("div", { className: "mt-2 flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-muted-foreground", children: [
|
|
7463
7487
|
/* @__PURE__ */ jsx("span", { className: "min-w-0 truncate", children: "Grounded in our docs \u2014 check anything important." }),
|
|
7464
7488
|
/* @__PURE__ */ jsx(
|