@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.js
CHANGED
|
@@ -7054,6 +7054,7 @@ function ExplorePage({
|
|
|
7054
7054
|
speechStopRef.current = speech.stop;
|
|
7055
7055
|
const [disclaimerOpen, setDisclaimerOpen] = React.useState(false);
|
|
7056
7056
|
const [shareLabel, setShareLabel] = React.useState("Share");
|
|
7057
|
+
const [shareUrl, setShareUrl] = React.useState(null);
|
|
7057
7058
|
const scrollRef = React.useRef(null);
|
|
7058
7059
|
const latestAssistantRef = React.useRef(null);
|
|
7059
7060
|
const alignedForRef = React.useRef(null);
|
|
@@ -7110,6 +7111,7 @@ function ExplorePage({
|
|
|
7110
7111
|
}, [activity, latestAssistantId, messages]);
|
|
7111
7112
|
const handleShare = React.useCallback(async () => {
|
|
7112
7113
|
setShareLabel("Copying\u2026");
|
|
7114
|
+
setShareUrl(null);
|
|
7113
7115
|
const token = await createShareLink();
|
|
7114
7116
|
if (!token) {
|
|
7115
7117
|
setShareLabel("Unavailable");
|
|
@@ -7121,11 +7123,11 @@ function ExplorePage({
|
|
|
7121
7123
|
try {
|
|
7122
7124
|
await navigator.clipboard.writeText(url);
|
|
7123
7125
|
setShareLabel("Copied");
|
|
7126
|
+
setTimeout(() => setShareLabel("Share"), 2500);
|
|
7124
7127
|
} catch {
|
|
7125
|
-
|
|
7128
|
+
setShareUrl(url);
|
|
7126
7129
|
setShareLabel("Share");
|
|
7127
7130
|
}
|
|
7128
|
-
setTimeout(() => setShareLabel("Share"), 2500);
|
|
7129
7131
|
}, [createShareLink, pageUrl]);
|
|
7130
7132
|
const submitDraft = React.useCallback(() => {
|
|
7131
7133
|
const text = draft.trim();
|
|
@@ -7489,6 +7491,28 @@ function ExplorePage({
|
|
|
7489
7491
|
}
|
|
7490
7492
|
)
|
|
7491
7493
|
] }),
|
|
7494
|
+
shareUrl ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-2 flex items-center gap-2", children: [
|
|
7495
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7496
|
+
"input",
|
|
7497
|
+
{
|
|
7498
|
+
"data-boff-explore": "share-url",
|
|
7499
|
+
readOnly: true,
|
|
7500
|
+
value: shareUrl,
|
|
7501
|
+
"aria-label": "Read-only link to this conversation",
|
|
7502
|
+
onFocus: (event) => event.currentTarget.select(),
|
|
7503
|
+
className: "min-w-0 flex-1 rounded-md border border-border bg-muted px-2 py-1 text-xs text-muted-foreground"
|
|
7504
|
+
}
|
|
7505
|
+
),
|
|
7506
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7507
|
+
"button",
|
|
7508
|
+
{
|
|
7509
|
+
type: "button",
|
|
7510
|
+
className: "shrink-0 text-xs underline underline-offset-2",
|
|
7511
|
+
onClick: () => setShareUrl(null),
|
|
7512
|
+
children: "Done"
|
|
7513
|
+
}
|
|
7514
|
+
)
|
|
7515
|
+
] }) : null,
|
|
7492
7516
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-2 flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-muted-foreground", children: [
|
|
7493
7517
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 truncate", children: "Grounded in our docs \u2014 check anything important." }),
|
|
7494
7518
|
/* @__PURE__ */ jsxRuntime.jsx(
|