@burdenoff/website-sdk 2026.524.12 → 2026.526.1

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.
@@ -49,14 +49,13 @@ interface PartnersPageProps {
49
49
  */
50
50
  showContactForm?: boolean;
51
51
  /**
52
- * Locked inquiry-category for the embedded `<ContactPage>`. Default:
53
- * `{ value: "partnership", label: "Partner program" }`. The dropdown
54
- * renders with a single, required option so every submission is tagged
55
- * for partner triage. Pass `false` to disable the lock — `<ContactPage>`
56
- * then falls back to its own default (no dropdown) unless the consumer
57
- * wires the full categories list externally.
52
+ * Inquiry-category options for the embedded `<ContactPage>` dropdown.
53
+ * Default: `{ value: "partnership", label: "Partner program" }` (a single,
54
+ * required option so every submission is tagged for partner triage). Pass an
55
+ * **array** to offer multiple selectable partner tracks (Referral, Reseller,
56
+ * MSP, …). Pass `false` to disable the dropdown entirely.
58
57
  */
59
- contactCategory?: ContactCategory | false;
58
+ contactCategory?: ContactCategory | ContactCategory[] | false;
60
59
  /** Heading shown above the form. Default: `"Become a partner"`. */
61
60
  formTitle?: string;
62
61
  /** Subtitle / lead above the form. */
@@ -49,14 +49,13 @@ interface PartnersPageProps {
49
49
  */
50
50
  showContactForm?: boolean;
51
51
  /**
52
- * Locked inquiry-category for the embedded `<ContactPage>`. Default:
53
- * `{ value: "partnership", label: "Partner program" }`. The dropdown
54
- * renders with a single, required option so every submission is tagged
55
- * for partner triage. Pass `false` to disable the lock — `<ContactPage>`
56
- * then falls back to its own default (no dropdown) unless the consumer
57
- * wires the full categories list externally.
52
+ * Inquiry-category options for the embedded `<ContactPage>` dropdown.
53
+ * Default: `{ value: "partnership", label: "Partner program" }` (a single,
54
+ * required option so every submission is tagged for partner triage). Pass an
55
+ * **array** to offer multiple selectable partner tracks (Referral, Reseller,
56
+ * MSP, …). Pass `false` to disable the dropdown entirely.
58
57
  */
59
- contactCategory?: ContactCategory | false;
58
+ contactCategory?: ContactCategory | ContactCategory[] | false;
60
59
  /** Heading shown above the form. Default: `"Become a partner"`. */
61
60
  formTitle?: string;
62
61
  /** Subtitle / lead above the form. */
@@ -1115,7 +1115,14 @@ function PartnersPage(props) {
1115
1115
  cancelled = true;
1116
1116
  };
1117
1117
  }, [client, resolvedProductId, contentSlug, contentTag, documentsTag]);
1118
- const lockedCategory = contactCategory === false ? null : contactCategory ?? DEFAULT_PARTNER_CATEGORY;
1118
+ let partnerCategories;
1119
+ if (contactCategory === false) {
1120
+ partnerCategories = [];
1121
+ } else if (Array.isArray(contactCategory)) {
1122
+ partnerCategories = contactCategory.length > 0 ? contactCategory : [DEFAULT_PARTNER_CATEGORY];
1123
+ } else {
1124
+ partnerCategories = [contactCategory ?? DEFAULT_PARTNER_CATEGORY];
1125
+ }
1119
1126
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className, children: [
1120
1127
  /* @__PURE__ */ jsxRuntime.jsx(
1121
1128
  PageHead,
@@ -1148,9 +1155,9 @@ function PartnersPage(props) {
1148
1155
  responseTime,
1149
1156
  recaptchaSiteKey,
1150
1157
  additionalOptions,
1151
- categories: lockedCategory ? [lockedCategory] : [],
1158
+ categories: partnerCategories,
1152
1159
  categoryLabel: "Partnership type",
1153
- categoryRequired: !!lockedCategory
1160
+ categoryRequired: partnerCategories.length > 0
1154
1161
  }
1155
1162
  )
1156
1163
  ] });