@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/index.js CHANGED
@@ -638,6 +638,7 @@ function ContactPage({
638
638
  responseTime = "We typically respond within 24 hours",
639
639
  heroTitle = "Get in Touch",
640
640
  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.",
641
+ headingLevel = 1,
641
642
  // Backward-compatibility: default to `[]` so existing consumers
642
643
  // (fluidgrids/burdenoff/algoshred websites) that don't pass
643
644
  // `categories` continue to render with NO dropdown — same behavior
@@ -750,10 +751,16 @@ function ContactPage({
750
751
  url: seo.url
751
752
  }
752
753
  ),
753
- /* @__PURE__ */ jsxRuntime.jsx("section", { className: "bg-gradient-to-b from-background to-muted/20 py-12 sm:py-16 md:py-20 lg:py-24", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center max-w-3xl mx-auto", children: [
754
- /* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-3xl sm:text-4xl md:text-5xl font-bold mb-4 sm:mb-6", children: heroTitle }),
755
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-lg sm:text-xl text-muted-foreground leading-relaxed", children: replacePlaceholders(heroDescription, displayName, contactEmail) })
756
- ] }) }) }),
754
+ /* @__PURE__ */ jsxRuntime.jsx(
755
+ "section",
756
+ {
757
+ 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",
758
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center max-w-3xl mx-auto", children: [
759
+ headingLevel === 2 ? /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-2xl md:text-3xl font-bold mb-3", children: heroTitle }) : /* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-3xl sm:text-4xl md:text-5xl font-bold mb-4 sm:mb-6", children: heroTitle }),
760
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-lg sm:text-xl text-muted-foreground leading-relaxed", children: replacePlaceholders(heroDescription, displayName, contactEmail) })
761
+ ] }) })
762
+ }
763
+ ),
757
764
  /* @__PURE__ */ jsxRuntime.jsx("section", { className: "py-12 sm:py-16 md:py-20 lg:py-24", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid sm:grid-cols-1 lg:grid-cols-3 gap-8 sm:gap-10 lg:gap-12", children: [
758
765
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "lg:col-span-1 order-2 lg:order-1", children: [
759
766
  /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-xl sm:text-2xl font-bold mb-4 sm:mb-6", children: "Contact Information" }),
@@ -1286,6 +1293,12 @@ function PartnerHero({
1286
1293
  subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto", children: subtitle })
1287
1294
  ] }) });
1288
1295
  }
1296
+ function stripLeadingHeading(content, format) {
1297
+ if (format === "html") {
1298
+ return content.replace(/^\s*<h1\b[^>]*>[\s\S]*?<\/h1>\s*/i, "");
1299
+ }
1300
+ return content.replace(/^\s*#\s+.*(?:\r?\n)*/, "");
1301
+ }
1289
1302
  function PartnerContentSection({
1290
1303
  page
1291
1304
  }) {
@@ -1318,7 +1331,7 @@ function PartnerContentSection({
1318
1331
  children: page.content && /* @__PURE__ */ jsxRuntime.jsx(
1319
1332
  ContentRenderer,
1320
1333
  {
1321
- content: page.content,
1334
+ content: stripLeadingHeading(page.content, page.contentFormat),
1322
1335
  format: (
1323
1336
  // Validate before passing; unknown formats fall through to
1324
1337
  // ContentRenderer's default behavior (markdown rendering)
@@ -1486,6 +1499,7 @@ function PartnersPage(props) {
1486
1499
  {
1487
1500
  productName: resolvedProductName,
1488
1501
  heroTitle: formTitle,
1502
+ headingLevel: 2,
1489
1503
  heroDescription: formSubtitle ?? `Tell us about your organisation and a partner manager from ${resolvedProductName} will be in touch.`,
1490
1504
  contactEmail,
1491
1505
  contactPhone,