@burdenoff/website-sdk 2026.522.2 → 2026.522.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.
@@ -398,6 +398,7 @@ function ContactPage({
398
398
  responseTime = "We typically respond within 24 hours",
399
399
  heroTitle = "Get in Touch",
400
400
  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.",
401
+ headingLevel = 1,
401
402
  // Backward-compatibility: default to `[]` so existing consumers
402
403
  // (fluidgrids/burdenoff/algoshred websites) that don't pass
403
404
  // `categories` continue to render with NO dropdown — same behavior
@@ -510,10 +511,16 @@ function ContactPage({
510
511
  url: seo.url
511
512
  }
512
513
  ),
513
- /* @__PURE__ */ 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__ */ 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: [
514
- /* @__PURE__ */ jsx("h1", { className: "text-3xl sm:text-4xl md:text-5xl font-bold mb-4 sm:mb-6", children: heroTitle }),
515
- /* @__PURE__ */ jsx("p", { className: "text-lg sm:text-xl text-muted-foreground leading-relaxed", children: replacePlaceholders(heroDescription, displayName, contactEmail) })
516
- ] }) }) }),
514
+ /* @__PURE__ */ jsx(
515
+ "section",
516
+ {
517
+ 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",
518
+ 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: [
519
+ 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 }),
520
+ /* @__PURE__ */ jsx("p", { className: "text-lg sm:text-xl text-muted-foreground leading-relaxed", children: replacePlaceholders(heroDescription, displayName, contactEmail) })
521
+ ] }) })
522
+ }
523
+ ),
517
524
  /* @__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: [
518
525
  /* @__PURE__ */ jsxs("div", { className: "lg:col-span-1 order-2 lg:order-1", children: [
519
526
  /* @__PURE__ */ jsx("h2", { className: "text-xl sm:text-2xl font-bold mb-4 sm:mb-6", children: "Contact Information" }),
@@ -902,6 +909,12 @@ function PartnerHero({
902
909
  subtitle && /* @__PURE__ */ jsx("p", { className: "text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto", children: subtitle })
903
910
  ] }) });
904
911
  }
912
+ function stripLeadingHeading(content, format) {
913
+ if (format === "html") {
914
+ return content.replace(/^\s*<h1\b[^>]*>[\s\S]*?<\/h1>\s*/i, "");
915
+ }
916
+ return content.replace(/^\s*#\s+.*(?:\r?\n)*/, "");
917
+ }
905
918
  function PartnerContentSection({
906
919
  page
907
920
  }) {
@@ -934,7 +947,7 @@ function PartnerContentSection({
934
947
  children: page.content && /* @__PURE__ */ jsx(
935
948
  ContentRenderer,
936
949
  {
937
- content: page.content,
950
+ content: stripLeadingHeading(page.content, page.contentFormat),
938
951
  format: (
939
952
  // Validate before passing; unknown formats fall through to
940
953
  // ContentRenderer's default behavior (markdown rendering)
@@ -1102,6 +1115,7 @@ function PartnersPage(props) {
1102
1115
  {
1103
1116
  productName: resolvedProductName,
1104
1117
  heroTitle: formTitle,
1118
+ headingLevel: 2,
1105
1119
  heroDescription: formSubtitle ?? `Tell us about your organisation and a partner manager from ${resolvedProductName} will be in touch.`,
1106
1120
  contactEmail,
1107
1121
  contactPhone,
@@ -1117,6 +1131,6 @@ function PartnersPage(props) {
1117
1131
  ] });
1118
1132
  }
1119
1133
 
1120
- export { PartnersPage };
1134
+ export { PartnersPage, stripLeadingHeading };
1121
1135
  //# sourceMappingURL=partners.mjs.map
1122
1136
  //# sourceMappingURL=partners.mjs.map