@burdenoff/website-sdk 2026.522.2 → 2026.522.3
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/contact.d.mts +9 -1
- package/dist/components/contact.d.ts +9 -1
- package/dist/components/contact.js +11 -4
- package/dist/components/contact.js.map +1 -1
- package/dist/components/contact.mjs +11 -4
- package/dist/components/contact.mjs.map +1 -1
- package/dist/components/partners.d.mts +12 -1
- package/dist/components/partners.d.ts +12 -1
- package/dist/components/partners.js +20 -5
- package/dist/components/partners.js.map +1 -1
- package/dist/components/partners.mjs +20 -6
- package/dist/components/partners.mjs.map +1 -1
- package/dist/index.js +19 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -613,6 +613,7 @@ function ContactPage({
|
|
|
613
613
|
responseTime = "We typically respond within 24 hours",
|
|
614
614
|
heroTitle = "Get in Touch",
|
|
615
615
|
heroDescription = "Have questions about {productName}? We're here to help. Reach out to our team and we'll get back to you as soon as possible.",
|
|
616
|
+
headingLevel = 1,
|
|
616
617
|
// Backward-compatibility: default to `[]` so existing consumers
|
|
617
618
|
// (fluidgrids/burdenoff/algoshred websites) that don't pass
|
|
618
619
|
// `categories` continue to render with NO dropdown — same behavior
|
|
@@ -725,10 +726,16 @@ function ContactPage({
|
|
|
725
726
|
url: seo.url
|
|
726
727
|
}
|
|
727
728
|
),
|
|
728
|
-
/* @__PURE__ */ jsx(
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
729
|
+
/* @__PURE__ */ jsx(
|
|
730
|
+
"section",
|
|
731
|
+
{
|
|
732
|
+
className: headingLevel === 2 ? "py-12 md:py-16" : "bg-gradient-to-b from-background to-muted/20 py-12 sm:py-16 md:py-20 lg:py-24",
|
|
733
|
+
children: /* @__PURE__ */ jsx("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ jsxs("div", { className: "text-center max-w-3xl mx-auto", children: [
|
|
734
|
+
headingLevel === 2 ? /* @__PURE__ */ jsx("h2", { className: "text-2xl md:text-3xl font-bold mb-3", children: heroTitle }) : /* @__PURE__ */ jsx("h1", { className: "text-3xl sm:text-4xl md:text-5xl font-bold mb-4 sm:mb-6", children: heroTitle }),
|
|
735
|
+
/* @__PURE__ */ jsx("p", { className: "text-lg sm:text-xl text-muted-foreground leading-relaxed", children: replacePlaceholders(heroDescription, displayName, contactEmail) })
|
|
736
|
+
] }) })
|
|
737
|
+
}
|
|
738
|
+
),
|
|
732
739
|
/* @__PURE__ */ jsx("section", { className: "py-12 sm:py-16 md:py-20 lg:py-24", children: /* @__PURE__ */ jsx("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ jsxs("div", { className: "grid sm:grid-cols-1 lg:grid-cols-3 gap-8 sm:gap-10 lg:gap-12", children: [
|
|
733
740
|
/* @__PURE__ */ jsxs("div", { className: "lg:col-span-1 order-2 lg:order-1", children: [
|
|
734
741
|
/* @__PURE__ */ jsx("h2", { className: "text-xl sm:text-2xl font-bold mb-4 sm:mb-6", children: "Contact Information" }),
|
|
@@ -1261,6 +1268,12 @@ function PartnerHero({
|
|
|
1261
1268
|
subtitle && /* @__PURE__ */ jsx("p", { className: "text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto", children: subtitle })
|
|
1262
1269
|
] }) });
|
|
1263
1270
|
}
|
|
1271
|
+
function stripLeadingHeading(content, format) {
|
|
1272
|
+
if (format === "html") {
|
|
1273
|
+
return content.replace(/^\s*<h1\b[^>]*>[\s\S]*?<\/h1>\s*/i, "");
|
|
1274
|
+
}
|
|
1275
|
+
return content.replace(/^\s*#\s+.*(?:\r?\n)*/, "");
|
|
1276
|
+
}
|
|
1264
1277
|
function PartnerContentSection({
|
|
1265
1278
|
page
|
|
1266
1279
|
}) {
|
|
@@ -1293,7 +1306,7 @@ function PartnerContentSection({
|
|
|
1293
1306
|
children: page.content && /* @__PURE__ */ jsx(
|
|
1294
1307
|
ContentRenderer,
|
|
1295
1308
|
{
|
|
1296
|
-
content: page.content,
|
|
1309
|
+
content: stripLeadingHeading(page.content, page.contentFormat),
|
|
1297
1310
|
format: (
|
|
1298
1311
|
// Validate before passing; unknown formats fall through to
|
|
1299
1312
|
// ContentRenderer's default behavior (markdown rendering)
|
|
@@ -1461,6 +1474,7 @@ function PartnersPage(props) {
|
|
|
1461
1474
|
{
|
|
1462
1475
|
productName: resolvedProductName,
|
|
1463
1476
|
heroTitle: formTitle,
|
|
1477
|
+
headingLevel: 2,
|
|
1464
1478
|
heroDescription: formSubtitle ?? `Tell us about your organisation and a partner manager from ${resolvedProductName} will be in touch.`,
|
|
1465
1479
|
contactEmail,
|
|
1466
1480
|
contactPhone,
|