@streamoid/settings 0.2.2 → 0.2.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
@@ -4769,7 +4769,7 @@ function PlansView({
4769
4769
  key: price.id,
4770
4770
  productId: product.id,
4771
4771
  priceId: price.id,
4772
- planName: price.unit_amount === 0 ? "Free" : "Pro",
4772
+ planName: price.metadata.name,
4773
4773
  price: price.unit_amount === 0 ? "$0" : `${formatCurrency(price.unit_amount)} / month`,
4774
4774
  credits: `${Number(price.metadata.credits).toLocaleString()} credits`,
4775
4775
  amount: price.unit_amount,
@@ -4777,24 +4777,7 @@ function PlansView({
4777
4777
  }))
4778
4778
  );
4779
4779
  }
4780
- return [
4781
- {
4782
- key: "free",
4783
- planName: "Free",
4784
- price: "$0",
4785
- credits: "3,000 credits",
4786
- amount: 0,
4787
- isCurrent: true
4788
- },
4789
- {
4790
- key: "pro",
4791
- planName: "Pro",
4792
- price: "$1049.99 / month",
4793
- credits: "30,000 credits",
4794
- amount: 104999,
4795
- isCurrent: false
4796
- }
4797
- ];
4780
+ return [];
4798
4781
  }, [products, currentPlanId]);
4799
4782
  const sortedPlans = (0, import_react8.useMemo)(
4800
4783
  () => [...allPlans].sort((a, b) => a.amount - b.amount),
@@ -4802,7 +4785,14 @@ function PlansView({
4802
4785
  );
4803
4786
  const isNotFreePlan = (planName) => {
4804
4787
  if (planName) {
4805
- return ["Free (DR Test)", "Custom", "custom"].includes(planName);
4788
+ return [
4789
+ "Free (DR Test)",
4790
+ "Custom",
4791
+ "custom",
4792
+ "custom_shopify",
4793
+ "custom shopify",
4794
+ "Custom_Shopify"
4795
+ ].includes(planName);
4806
4796
  }
4807
4797
  return false;
4808
4798
  };
package/dist/index.mjs CHANGED
@@ -4783,7 +4783,7 @@ function PlansView({
4783
4783
  key: price.id,
4784
4784
  productId: product.id,
4785
4785
  priceId: price.id,
4786
- planName: price.unit_amount === 0 ? "Free" : "Pro",
4786
+ planName: price.metadata.name,
4787
4787
  price: price.unit_amount === 0 ? "$0" : `${formatCurrency(price.unit_amount)} / month`,
4788
4788
  credits: `${Number(price.metadata.credits).toLocaleString()} credits`,
4789
4789
  amount: price.unit_amount,
@@ -4791,24 +4791,7 @@ function PlansView({
4791
4791
  }))
4792
4792
  );
4793
4793
  }
4794
- return [
4795
- {
4796
- key: "free",
4797
- planName: "Free",
4798
- price: "$0",
4799
- credits: "3,000 credits",
4800
- amount: 0,
4801
- isCurrent: true
4802
- },
4803
- {
4804
- key: "pro",
4805
- planName: "Pro",
4806
- price: "$1049.99 / month",
4807
- credits: "30,000 credits",
4808
- amount: 104999,
4809
- isCurrent: false
4810
- }
4811
- ];
4794
+ return [];
4812
4795
  }, [products, currentPlanId]);
4813
4796
  const sortedPlans = useMemo2(
4814
4797
  () => [...allPlans].sort((a, b) => a.amount - b.amount),
@@ -4816,7 +4799,14 @@ function PlansView({
4816
4799
  );
4817
4800
  const isNotFreePlan = (planName) => {
4818
4801
  if (planName) {
4819
- return ["Free (DR Test)", "Custom", "custom"].includes(planName);
4802
+ return [
4803
+ "Free (DR Test)",
4804
+ "Custom",
4805
+ "custom",
4806
+ "custom_shopify",
4807
+ "custom shopify",
4808
+ "Custom_Shopify"
4809
+ ].includes(planName);
4820
4810
  }
4821
4811
  return false;
4822
4812
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamoid/settings",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",