@burdenoff/website-sdk 2026.724.7 → 2026.726.2
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/pricing.d.mts +20 -1
- package/dist/components/pricing.d.ts +20 -1
- package/dist/components/pricing.js +14 -2
- package/dist/components/pricing.js.map +1 -1
- package/dist/components/pricing.mjs +14 -3
- package/dist/components/pricing.mjs.map +1 -1
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2523,6 +2523,15 @@ function isEnterprisePlan(planName) {
|
|
|
2523
2523
|
const name = planName.toLowerCase();
|
|
2524
2524
|
return name.includes("team") || name.includes("business") || name.includes("enterprise");
|
|
2525
2525
|
}
|
|
2526
|
+
function splitPlansByAudience(plans, showAudienceTabs) {
|
|
2527
|
+
if (!showAudienceTabs) {
|
|
2528
|
+
return { individualPlans: plans, enterprisePlans: [] };
|
|
2529
|
+
}
|
|
2530
|
+
return {
|
|
2531
|
+
individualPlans: plans.filter((p) => !isEnterprisePlan(p.name)),
|
|
2532
|
+
enterprisePlans: plans.filter((p) => isEnterprisePlan(p.name))
|
|
2533
|
+
};
|
|
2534
|
+
}
|
|
2526
2535
|
function detectPlanTier(planName) {
|
|
2527
2536
|
const name = planName.toLowerCase();
|
|
2528
2537
|
if (name.includes("free") || name.includes("basic") || name.includes("starter") || name.includes("hobby")) {
|
|
@@ -2703,8 +2712,10 @@ function PricingSection(props) {
|
|
|
2703
2712
|
cancelled = true;
|
|
2704
2713
|
};
|
|
2705
2714
|
}, [client, resolvedProductId]);
|
|
2706
|
-
const
|
|
2707
|
-
|
|
2715
|
+
const {
|
|
2716
|
+
individualPlans: individualAllPlans,
|
|
2717
|
+
enterprisePlans: enterpriseApiPlans
|
|
2718
|
+
} = splitPlansByAudience(allPlans, props.showAudienceTabs);
|
|
2708
2719
|
const individualPlans = individualAllPlans.filter(
|
|
2709
2720
|
(plan) => billingCycle === "monthly" ? plan.duration === "monthly" : plan.duration === "yearly"
|
|
2710
2721
|
);
|