@zuplo/zudoku-plugin-monetization 0.0.20 → 0.0.21
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 +15 -13
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -391,7 +391,8 @@ const CheckoutConfirmPage = () => {
|
|
|
391
391
|
}), /* @__PURE__ */ jsx(Button, {
|
|
392
392
|
variant: "ghost",
|
|
393
393
|
className: "w-full",
|
|
394
|
-
|
|
394
|
+
disabled: createSubscriptionMutation.isPending,
|
|
395
|
+
asChild: !createSubscriptionMutation.isPending,
|
|
395
396
|
children: /* @__PURE__ */ jsx(Link$1, {
|
|
396
397
|
to: "/pricing",
|
|
397
398
|
children: "Cancel"
|
|
@@ -1954,20 +1955,21 @@ const zuploMonetizationPlugin = createPlugin((options) => ({
|
|
|
1954
1955
|
{
|
|
1955
1956
|
path: "/manage-payment",
|
|
1956
1957
|
element: /* @__PURE__ */ jsx(ManagePaymentPage, {})
|
|
1958
|
+
},
|
|
1959
|
+
{
|
|
1960
|
+
path: PRICING_PATH,
|
|
1961
|
+
handle: { layout: "default" },
|
|
1962
|
+
element: /* @__PURE__ */ jsx(PricingPage, {
|
|
1963
|
+
subtitle: options?.pricing?.subtitle,
|
|
1964
|
+
title: options?.pricing?.title
|
|
1965
|
+
})
|
|
1966
|
+
},
|
|
1967
|
+
{
|
|
1968
|
+
handle: { layout: "default" },
|
|
1969
|
+
path: "/subscriptions/:subscriptionId?",
|
|
1970
|
+
element: /* @__PURE__ */ jsx(SubscriptionsPage, {})
|
|
1957
1971
|
}
|
|
1958
1972
|
]
|
|
1959
|
-
}, {
|
|
1960
|
-
Component: ZuploMonetizationWrapper,
|
|
1961
|
-
children: [{
|
|
1962
|
-
path: "/pricing",
|
|
1963
|
-
element: /* @__PURE__ */ jsx(PricingPage, {
|
|
1964
|
-
subtitle: options?.pricing?.subtitle,
|
|
1965
|
-
title: options?.pricing?.title
|
|
1966
|
-
})
|
|
1967
|
-
}, {
|
|
1968
|
-
path: "/subscriptions/:subscriptionId?",
|
|
1969
|
-
element: /* @__PURE__ */ jsx(SubscriptionsPage, {})
|
|
1970
|
-
}]
|
|
1971
1973
|
}];
|
|
1972
1974
|
},
|
|
1973
1975
|
getProtectedRoutes: () => {
|
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.21",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/zuplo/zudoku",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"@testing-library/react": "16.3.2",
|
|
28
28
|
"@types/react": "19.2.14",
|
|
29
29
|
"@types/react-dom": "19.2.3",
|
|
30
|
-
"happy-dom": "20.
|
|
30
|
+
"happy-dom": "20.7.0",
|
|
31
31
|
"react": "19.2.4",
|
|
32
32
|
"react-dom": "19.2.4",
|
|
33
33
|
"tsdown": "0.20.3",
|
|
34
|
-
"zudoku": "0.70.
|
|
34
|
+
"zudoku": "0.70.3"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"react": ">=19.2.0",
|