@burdenoff/website-sdk 2026.924.7 → 2026.924.9
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 +56 -4
- package/dist/components/explore.js.map +1 -1
- package/dist/components/explore.mjs +56 -4
- package/dist/components/explore.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +56 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +56 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3831,6 +3831,9 @@ function toPayload(staged) {
|
|
|
3831
3831
|
}));
|
|
3832
3832
|
}
|
|
3833
3833
|
var SHORT_VIEWPORT_PX = 420;
|
|
3834
|
+
var WELCOME_FIT_MIN_WIDTH_PX = 640;
|
|
3835
|
+
var WELCOME_FIT_STEP_PX = [700, 549, 505, 422];
|
|
3836
|
+
var toRem = (px) => `${px / 16}rem`;
|
|
3834
3837
|
var EXPLORE_CSS = `
|
|
3835
3838
|
@keyframes boff-explore-pulse {
|
|
3836
3839
|
0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
|
|
@@ -4041,6 +4044,50 @@ var EXPLORE_CSS = `
|
|
|
4041
4044
|
}
|
|
4042
4045
|
}
|
|
4043
4046
|
|
|
4047
|
+
/* ---- Welcome fit ----------------------------------------------------------------------
|
|
4048
|
+
The ladder is documented at WELCOME_FIT_STEP_PX. The pane becomes a query container only
|
|
4049
|
+
in viewport mode and above the short-viewport threshold, because size containment sizes
|
|
4050
|
+
an element as if it had no content. That is safe exactly while the pane's height comes
|
|
4051
|
+
from its flex parent. In \`auto\` mode, and in the short-viewport fallback above, the pane
|
|
4052
|
+
grows WITH its content \u2014 and containment there would collapse it to zero height.
|
|
4053
|
+
|
|
4054
|
+
Selectors are two classes deep on purpose. The host sites' Tailwind puts \`py-5\`, \`mt-4\`
|
|
4055
|
+
and \`aspect-[2/1]\` on these same elements; unlayered SDK CSS already outranks a v4
|
|
4056
|
+
\`@layer utilities\` rule, and the extra class makes it outrank a v3 one too, whichever
|
|
4057
|
+
stylesheet happens to load last.
|
|
4058
|
+
|
|
4059
|
+
Nothing here hides the concept strip, and nothing here hides content the page does not
|
|
4060
|
+
also say elsewhere. Below the last step the pane scrolls, so every control stays
|
|
4061
|
+
reachable at every zoom level. */
|
|
4062
|
+
@media (min-height: ${SHORT_VIEWPORT_PX + 1}px) {
|
|
4063
|
+
.boff-explore-viewport .boff-explore-scroll {
|
|
4064
|
+
container: boff-explore-pane / size;
|
|
4065
|
+
}
|
|
4066
|
+
}
|
|
4067
|
+
@container boff-explore-pane (min-width: ${toRem(WELCOME_FIT_MIN_WIDTH_PX)}) and (max-height: ${toRem(WELCOME_FIT_STEP_PX[0])}) {
|
|
4068
|
+
/* Step 1. Each tile restates something the page already says in the badge, the intro or
|
|
4069
|
+
the composer footer, so this is the one block whose absence loses nothing. */
|
|
4070
|
+
.boff-explore-scroll .boff-explore-capabilities { display: none; }
|
|
4071
|
+
}
|
|
4072
|
+
@container boff-explore-pane (min-width: ${toRem(WELCOME_FIT_MIN_WIDTH_PX)}) and (max-height: ${toRem(WELCOME_FIT_STEP_PX[1])}) {
|
|
4073
|
+
/* Step 2. */
|
|
4074
|
+
.boff-explore-scroll .boff-explore-concept-media { aspect-ratio: 4 / 1; }
|
|
4075
|
+
}
|
|
4076
|
+
@container boff-explore-pane (min-width: ${toRem(WELCOME_FIT_MIN_WIDTH_PX)}) and (max-height: ${toRem(WELCOME_FIT_STEP_PX[2])}) {
|
|
4077
|
+
/* Step 3. Title-only cards. The "concept illustration" caveat lives on the picture, so it
|
|
4078
|
+
goes with it; the button's accessible name never depended on the image. Lazy images
|
|
4079
|
+
inside a display:none box are not fetched until there is room to show them. */
|
|
4080
|
+
.boff-explore-scroll .boff-explore-concept-media { display: none; }
|
|
4081
|
+
.boff-explore-scroll .boff-explore-aura { padding-top: 0.75rem; padding-bottom: 0.75rem; }
|
|
4082
|
+
.boff-explore-scroll .boff-explore-aura > :not(:first-child) { margin-top: 0.5rem; }
|
|
4083
|
+
}
|
|
4084
|
+
@container boff-explore-pane (min-width: ${toRem(WELCOME_FIT_MIN_WIDTH_PX)}) and (max-height: ${toRem(WELCOME_FIT_STEP_PX[3])}) {
|
|
4085
|
+
/* Step 4. The badge is the third statement on this screen that answers come from our
|
|
4086
|
+
documentation. The heading beneath it loses its top margin so the hero starts flush. */
|
|
4087
|
+
.boff-explore-scroll .boff-explore-hero-badge { display: none; }
|
|
4088
|
+
.boff-explore-scroll .boff-explore-hero-badge + h1 { margin-top: 0; }
|
|
4089
|
+
}
|
|
4090
|
+
|
|
4044
4091
|
/* ---- Composer dock --------------------------------------------------------------------
|
|
4045
4092
|
Three declarations, each the fallback for the one after it: a plain 1rem where \`max()\`
|
|
4046
4093
|
is unknown, then the measured overlap of any FOREIGN fixed chrome sitting over the
|
|
@@ -5367,7 +5414,12 @@ function ConceptStrip({
|
|
|
5367
5414
|
measureRail();
|
|
5368
5415
|
const onResize = () => measureRail();
|
|
5369
5416
|
window.addEventListener("resize", onResize);
|
|
5370
|
-
|
|
5417
|
+
const observer = typeof ResizeObserver === "function" ? new ResizeObserver(onResize) : null;
|
|
5418
|
+
observer?.observe(el);
|
|
5419
|
+
return () => {
|
|
5420
|
+
window.removeEventListener("resize", onResize);
|
|
5421
|
+
observer?.disconnect();
|
|
5422
|
+
};
|
|
5371
5423
|
}, [measureRail, highlights.length, failed]);
|
|
5372
5424
|
const scrollRail = useCallback((direction) => {
|
|
5373
5425
|
const el = railRef.current;
|
|
@@ -5447,7 +5499,7 @@ function ConceptStrip({
|
|
|
5447
5499
|
),
|
|
5448
5500
|
className: "group flex w-40 flex-col overflow-hidden rounded-xl border border-border bg-card text-left shadow-sm transition-colors hover:border-primary/50 hover:bg-accent disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring sm:w-44",
|
|
5449
5501
|
children: [
|
|
5450
|
-
/* @__PURE__ */ jsxs("span", { className: "relative block aspect-[2/1] w-full overflow-hidden bg-muted", children: [
|
|
5502
|
+
/* @__PURE__ */ jsxs("span", { className: "boff-explore-concept-media relative block aspect-[2/1] w-full overflow-hidden bg-muted", children: [
|
|
5451
5503
|
/* @__PURE__ */ jsx(
|
|
5452
5504
|
"img",
|
|
5453
5505
|
{
|
|
@@ -5599,14 +5651,14 @@ function WelcomeState({
|
|
|
5599
5651
|
}) {
|
|
5600
5652
|
return /* @__PURE__ */ jsxs("div", { className: "boff-explore-aura mx-auto my-auto w-full max-w-3xl px-4 py-4 sm:py-5", children: [
|
|
5601
5653
|
/* @__PURE__ */ jsxs("div", { className: "boff-explore-rise text-center", children: [
|
|
5602
|
-
/* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-1.5 rounded-full border border-border bg-muted px-3 py-1 text-xs font-medium text-muted-foreground", children: [
|
|
5654
|
+
/* @__PURE__ */ jsxs("span", { className: "boff-explore-hero-badge inline-flex items-center gap-1.5 rounded-full border border-border bg-muted px-3 py-1 text-xs font-medium text-muted-foreground", children: [
|
|
5603
5655
|
/* @__PURE__ */ jsx(Sparkles, { className: "h-3.5 w-3.5" }),
|
|
5604
5656
|
T.badge
|
|
5605
5657
|
] }),
|
|
5606
5658
|
/* @__PURE__ */ jsx("h1", { className: "mt-2 text-balance break-words text-2xl font-bold tracking-tight sm:text-3xl", children: title }),
|
|
5607
5659
|
/* @__PURE__ */ jsx("p", { className: "mx-auto mt-2 max-w-2xl text-pretty text-sm leading-relaxed text-muted-foreground", children: body })
|
|
5608
5660
|
] }),
|
|
5609
|
-
/* @__PURE__ */ jsx("ul", { className: "boff-explore-rise boff-explore-rise-1 mt-4 grid grid-cols-3 gap-2 sm:gap-2.5", children: CAPABILITIES.map(({ icon: Icon, body: capBody }, i) => /* @__PURE__ */ jsxs(
|
|
5661
|
+
/* @__PURE__ */ jsx("ul", { className: "boff-explore-capabilities boff-explore-rise boff-explore-rise-1 mt-4 grid grid-cols-3 gap-2 sm:gap-2.5", children: CAPABILITIES.map(({ icon: Icon, body: capBody }, i) => /* @__PURE__ */ jsxs(
|
|
5610
5662
|
"li",
|
|
5611
5663
|
{
|
|
5612
5664
|
className: "rounded-xl border border-border/70 bg-card/60 p-2.5 text-center transition-colors hover:border-border sm:p-2.5 sm:text-left",
|