@zuplo/zudoku-plugin-monetization 0.0.15 → 0.0.16
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.mjs +5 -2
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -648,7 +648,10 @@ const PricingPage = ({ subtitle = "See our pricing options and choose the one th
|
|
|
648
648
|
const zudoku = useZudoku();
|
|
649
649
|
const deploymentName = useDeploymentName();
|
|
650
650
|
const auth = useAuth();
|
|
651
|
-
const { data: pricingTable } = useSuspenseQuery({
|
|
651
|
+
const { data: pricingTable } = useSuspenseQuery({
|
|
652
|
+
queryKey: [`/v3/zudoku-metering/${deploymentName}/pricing-page`],
|
|
653
|
+
meta: { context: auth.isAuthenticated ? zudoku : void 0 }
|
|
654
|
+
});
|
|
652
655
|
const { data: subscriptions = { items: [] } } = useQuery({
|
|
653
656
|
meta: { context: zudoku },
|
|
654
657
|
queryKey: [`/v3/zudoku-metering/${deploymentName}/subscriptions`],
|
|
@@ -677,7 +680,7 @@ const PricingPage = ({ subtitle = "See our pricing options and choose the one th
|
|
|
677
680
|
className: "w-full grid grid-cols-1 sm:grid-cols-[repeat(auto-fit,minmax(300px,max-content))] justify-center gap-6",
|
|
678
681
|
children: pricingTable.items.map((plan) => /* @__PURE__ */ jsx(PricingCard, {
|
|
679
682
|
plan,
|
|
680
|
-
isPopular: plan.metadata?.
|
|
683
|
+
isPopular: plan.metadata?.zuplo_most_popular === "true",
|
|
681
684
|
isSubscribed: subscriptions.items.some((subscription) => ["active", "canceled"].includes(subscription.status))
|
|
682
685
|
}, plan.id))
|
|
683
686
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zuplo/zudoku-plugin-monetization",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/zuplo/zudoku",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"react": "19.2.4",
|
|
32
32
|
"react-dom": "19.2.4",
|
|
33
33
|
"tsdown": "0.20.3",
|
|
34
|
-
"zudoku": "0.69.
|
|
34
|
+
"zudoku": "0.69.3"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"react": ">=19.2.0",
|