@zuplo/zudoku-plugin-monetization 0.0.34 → 0.0.35

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.
Files changed (2) hide show
  1. package/dist/index.mjs +4 -3
  2. package/package.json +3 -3
package/dist/index.mjs CHANGED
@@ -811,14 +811,14 @@ const PricingCard = ({ plan, isPopular = false, isSubscribed = false }) => {
811
811
  })
812
812
  }),
813
813
  isSubscribed ? /* @__PURE__ */ jsx(Button, {
814
- variant: isPopular ? "default" : "secondary",
814
+ variant: isPopular ? "default" : "outline",
815
815
  asChild: true,
816
816
  children: /* @__PURE__ */ jsx(Link$1, {
817
817
  to: `/subscriptions#manage`,
818
818
  children: "Manage Subscriptions"
819
819
  })
820
820
  }) : /* @__PURE__ */ jsx(Button, {
821
- variant: isPopular ? "default" : "secondary",
821
+ variant: isPopular ? "default" : "outline",
822
822
  asChild: true,
823
823
  children: /* @__PURE__ */ jsx(Link$1, {
824
824
  to: `/checkout?planId=${encodeURIComponent(plan.id)}`,
@@ -836,7 +836,8 @@ const PricingPage = () => {
836
836
  const deploymentName = useDeploymentName();
837
837
  const auth = useAuth();
838
838
  const { data: pricingTable } = usePlans();
839
- const taxLegendSentence = taxBehaviorLegendSentence(collectDefaultTaxBehaviors(pricingTable.items[0]));
839
+ const firstPlan = pricingTable.items[0];
840
+ const taxLegendSentence = firstPlan ? taxBehaviorLegendSentence(collectDefaultTaxBehaviors(firstPlan)) : void 0;
840
841
  const { data: subscriptions = { items: [] } } = useQuery({
841
842
  meta: { context: zudoku },
842
843
  queryKey: [`/v3/zudoku-metering/${deploymentName}/subscriptions`],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zuplo/zudoku-plugin-monetization",
3
- "version": "0.0.34",
3
+ "version": "0.0.35",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/zuplo/zudoku",
@@ -30,8 +30,8 @@
30
30
  "happy-dom": "20.9.0",
31
31
  "react": "19.2.5",
32
32
  "react-dom": "19.2.5",
33
- "tsdown": "0.21.9",
34
- "zudoku": "0.76.0"
33
+ "tsdown": "0.21.10",
34
+ "zudoku": "0.77.0"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "react": ">=19.2.0",