@burdenoff/website-sdk 2026.514.6 → 2026.514.8
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.js +9 -6
- package/dist/components/pricing.js.map +1 -1
- package/dist/components/pricing.mjs +9 -6
- package/dist/components/pricing.mjs.map +1 -1
- package/dist/index.js +9 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1436,9 +1436,9 @@ function formatInterval(duration, billingIntervals) {
|
|
|
1436
1436
|
}
|
|
1437
1437
|
function detectPlanTier(planName) {
|
|
1438
1438
|
const name = planName.toLowerCase();
|
|
1439
|
-
if (name.includes("basic") || name.includes("starter")) {
|
|
1439
|
+
if (name.includes("free") || name.includes("basic") || name.includes("starter") || name.includes("hobby")) {
|
|
1440
1440
|
return "basic";
|
|
1441
|
-
} else if (name.includes("pro") || name.includes("professional") || name.includes("premium")) {
|
|
1441
|
+
} else if (name.includes("pro") || name.includes("professional") || name.includes("premium") || name.includes("team")) {
|
|
1442
1442
|
return "professional";
|
|
1443
1443
|
} else if (name.includes("enterprise") || name.includes("business")) {
|
|
1444
1444
|
return "enterprise";
|
|
@@ -1518,14 +1518,17 @@ function transformQuotaToFeature(quota) {
|
|
|
1518
1518
|
return label;
|
|
1519
1519
|
}
|
|
1520
1520
|
function extractDisplayFeatures(features, planName, fallbackFeatures) {
|
|
1521
|
+
const tier = detectPlanTier(planName);
|
|
1522
|
+
if (tier) {
|
|
1523
|
+
const tierFeatures = getFallbackFeaturesForTier(tier, fallbackFeatures);
|
|
1524
|
+
if (tierFeatures.length > 0) {
|
|
1525
|
+
return tierFeatures;
|
|
1526
|
+
}
|
|
1527
|
+
}
|
|
1521
1528
|
const quotaFeatures = features.filter((f) => f.quota).map((f) => transformQuotaToFeature(f.quota));
|
|
1522
1529
|
if (quotaFeatures.length > 0) {
|
|
1523
1530
|
return quotaFeatures;
|
|
1524
1531
|
}
|
|
1525
|
-
const tier = detectPlanTier(planName);
|
|
1526
|
-
if (tier) {
|
|
1527
|
-
return getFallbackFeaturesForTier(tier, fallbackFeatures);
|
|
1528
|
-
}
|
|
1529
1532
|
return [];
|
|
1530
1533
|
}
|
|
1531
1534
|
function transformToDisplayCard(plan, props) {
|