@lukoweb/apitogo-plugin-dev-portal-billing 0.2.76 → 0.2.77
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/{AccountPlansPage-DW3DhOfi.mjs → AccountPlansPage-USlRPEhN.mjs} +5 -5
- package/dist/{CheckoutPage-CZ9NXp8z.mjs → CheckoutPage-CED9AYw0.mjs} +3 -3
- package/dist/{ContactSalesPage-CNx7qTyo.mjs → ContactSalesPage-B1qWs7UW.mjs} +4 -4
- package/dist/{CredentialsPage-505PrHN8.mjs → CredentialsPage-DpV3JBPM.mjs} +7 -7
- package/dist/{PricingCard-CRlUGh0k.mjs → PricingCard-KDRcH2ny.mjs} +6 -4
- package/dist/{PricingPage-CmeLQeEx.mjs → PricingPage-CiejO1vQ.mjs} +5 -5
- package/dist/{SubscriptionsPage-hCO41YWD.mjs → SubscriptionsPage-LvYhFxv1.mjs} +9 -9
- package/dist/{UsagePage-CFZTZMvk.mjs → UsagePage-CeUcC33p.mjs} +5 -5
- package/dist/{account-links-CgPPM43_.mjs → account-links-DZ9i1WTa.mjs} +1 -1
- package/dist/{billing-state-CJmy96zI.mjs → billing-state-D0Nkuz7i.mjs} +1 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.mjs +18 -18
- package/dist/{page-state-BLL2JJBc.mjs → page-state-Cmo0FPLl.mjs} +1 -1
- package/dist/{useApiKeys-BrYWVXE9.mjs → useApiKeys-Co1xhgcO.mjs} +2 -2
- package/dist/{useDevPortalApiBaseUrl-BfpUBayO.mjs → useDevPortalApiBaseUrl-B7gBA5El.mjs} +2 -2
- package/dist/{useMySubscriptions-C291WpgF.mjs → useMySubscriptions-BHp7cjkN.mjs} +2 -2
- package/dist/{usePlans-c8s0gfOq.mjs → usePlans-BKT8rIgl.mjs} +2 -2
- package/dist/{useUsage-DeEDgDdj.mjs → useUsage-BKuMJS65.mjs} +1 -1
- package/package.json +3 -3
- /package/dist/{DevPortalBillingContext-WcoincpU.mjs → DevPortalBillingContext-BUQPLoyk.mjs} +0 -0
- /package/dist/{paths-DaVyTIDJ.mjs → paths-DBr3Dj_q.mjs} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
1
|
+
import { r as useDevPortalBillingConfig } from "./DevPortalBillingContext-BUQPLoyk.mjs";
|
|
2
|
+
import { f as parseManifestPlans, n as useDevPortalPreviewMode, r as useIsDemoSession, s as isActiveSubscription, t as useDevPortalApiBaseUrl, y as withPlanFeatures } from "./useDevPortalApiBaseUrl-B7gBA5El.mjs";
|
|
3
|
+
import { t as PricingCard } from "./PricingCard-KDRcH2ny.mjs";
|
|
4
4
|
import { n as readProblemDetail } from "./problem-details-n20-dy3w.mjs";
|
|
5
|
-
import { t as useMySubscriptions } from "./useMySubscriptions-
|
|
6
|
-
import { t as usePlans } from "./usePlans-
|
|
5
|
+
import { t as useMySubscriptions } from "./useMySubscriptions-BHp7cjkN.mjs";
|
|
6
|
+
import { t as usePlans } from "./usePlans-BKT8rIgl.mjs";
|
|
7
7
|
import { n as readPendingCheckout, t as clearPendingCheckout } from "./pending-checkout-DpVaNnTu.mjs";
|
|
8
8
|
import { Head } from "@lukoweb/apitogo/components";
|
|
9
9
|
import { CreditCardIcon } from "@lukoweb/apitogo/icons";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as ALREADY_SUBSCRIBED_PARAM, s as PRICING_PATH, t as ACCOUNT_PLANS_PATH } from "./paths-
|
|
2
|
-
import { n as useDevPortalPreviewMode, r as useIsDemoSession, t as useDevPortalApiBaseUrl } from "./useDevPortalApiBaseUrl-
|
|
1
|
+
import { n as ALREADY_SUBSCRIBED_PARAM, s as PRICING_PATH, t as ACCOUNT_PLANS_PATH } from "./paths-DBr3Dj_q.mjs";
|
|
2
|
+
import { n as useDevPortalPreviewMode, r as useIsDemoSession, t as useDevPortalApiBaseUrl } from "./useDevPortalApiBaseUrl-B7gBA5El.mjs";
|
|
3
3
|
import { n as readProblemDetail, t as isAlreadySubscribedMessage } from "./problem-details-n20-dy3w.mjs";
|
|
4
4
|
import { r as rememberPendingCheckout } from "./pending-checkout-DpVaNnTu.mjs";
|
|
5
|
-
import { t as FREE_CHECKOUT_MARKER } from "./billing-state-
|
|
5
|
+
import { t as FREE_CHECKOUT_MARKER } from "./billing-state-D0Nkuz7i.mjs";
|
|
6
6
|
import { ShieldIcon } from "@lukoweb/apitogo/icons";
|
|
7
7
|
import { Link, useNavigate, useSearchParams } from "@lukoweb/apitogo/router";
|
|
8
8
|
import { useEffect } from "react";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import "./
|
|
1
|
+
import "./DevPortalBillingContext-BUQPLoyk.mjs";
|
|
2
|
+
import { s as PRICING_PATH } from "./paths-DBr3Dj_q.mjs";
|
|
3
|
+
import { l as isPlanCustomPriced, n as useDevPortalPreviewMode, r as useIsDemoSession, t as useDevPortalApiBaseUrl } from "./useDevPortalApiBaseUrl-B7gBA5El.mjs";
|
|
4
4
|
import { n as readProblemDetail } from "./problem-details-n20-dy3w.mjs";
|
|
5
|
-
import { t as usePlans } from "./usePlans-
|
|
5
|
+
import { t as usePlans } from "./usePlans-BKT8rIgl.mjs";
|
|
6
6
|
import { Link, useSearchParams } from "@lukoweb/apitogo/router";
|
|
7
7
|
import { useState } from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { r as
|
|
1
|
+
import { r as useDevPortalBillingConfig } from "./DevPortalBillingContext-BUQPLoyk.mjs";
|
|
2
|
+
import { t as ACCOUNT_PLANS_PATH } from "./paths-DBr3Dj_q.mjs";
|
|
3
|
+
import { n as useDevPortalPreviewMode, r as useIsDemoSession, t as useDevPortalApiBaseUrl } from "./useDevPortalApiBaseUrl-B7gBA5El.mjs";
|
|
4
4
|
import { r as createDemoCredentials, t as DEMO_GATEWAY_KEY_HEADER } from "./demo-session-yK9qEqV-.mjs";
|
|
5
|
-
import { n as useApiKeys } from "./useApiKeys-
|
|
6
|
-
import { n as apiReferencePath, r as ApiKeysPanel } from "./account-links-
|
|
7
|
-
import { i as ChoosePlanNotice, r as keyPlanNote, t as apiKeysPageState } from "./page-state-
|
|
5
|
+
import { n as useApiKeys } from "./useApiKeys-Co1xhgcO.mjs";
|
|
6
|
+
import { n as apiReferencePath, r as ApiKeysPanel } from "./account-links-DZ9i1WTa.mjs";
|
|
7
|
+
import { i as ChoosePlanNotice, r as keyPlanNote, t as apiKeysPageState } from "./page-state-Cmo0FPLl.mjs";
|
|
8
8
|
import { Head } from "@lukoweb/apitogo/components";
|
|
9
9
|
import { KeyRoundIcon } from "@lukoweb/apitogo/icons";
|
|
10
10
|
import { Link as Link$1 } from "@lukoweb/apitogo/router";
|
|
11
|
-
import zudokuConfig from "virtual:zudoku-config";
|
|
12
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
+
import zudokuConfig from "virtual:zudoku-config";
|
|
13
13
|
import { useQuery } from "@lukoweb/apitogo/react-query";
|
|
14
14
|
import { useAuth } from "@lukoweb/apitogo/hooks";
|
|
15
15
|
import { Button as Button$1 } from "@lukoweb/apitogo/ui/Button";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { r as useDevPortalBillingConfig } from "./DevPortalBillingContext-BUQPLoyk.mjs";
|
|
2
|
+
import { i as CONTACT_SALES_PATH, r as CHECKOUT_PATH } from "./paths-DBr3Dj_q.mjs";
|
|
3
|
+
import { d as listPlanFeatureLines, i as formatPlanDisplayPrice, l as isPlanCustomPriced, o as formatPlanPriceUnit, s as isActiveSubscription, u as isPlanFree } from "./useDevPortalApiBaseUrl-B7gBA5El.mjs";
|
|
3
4
|
import { Button } from "@lukoweb/apitogo/components";
|
|
4
5
|
import { Link as Link$1 } from "@lukoweb/apitogo/router";
|
|
5
6
|
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger } from "@lukoweb/apitogo/ui/AlertDialog.js";
|
|
@@ -20,7 +21,8 @@ const accountCtaLabel = (plan) => {
|
|
|
20
21
|
const planCtaPath = (plan) => `${isPlanCustomPriced(plan) ? CONTACT_SALES_PATH : CHECKOUT_PATH}?planSku=${encodeURIComponent(plan.sku)}`;
|
|
21
22
|
const PricingCard = ({ plan, mode = "public", subscriptionStatus, isSubscribed = false, onUnsubscribe, onSwitch, isSwitching = false, isCanceling = false, cancelDisabled = false, featured = false, isConfirming = false }) => {
|
|
22
23
|
const isActive = isSubscribed || isActiveSubscription(subscriptionStatus ?? "");
|
|
23
|
-
const
|
|
24
|
+
const { showEndpoints } = useDevPortalBillingConfig();
|
|
25
|
+
const features = listPlanFeatureLines(plan, { showEndpoints });
|
|
24
26
|
const displayPrice = formatPlanDisplayPrice(plan);
|
|
25
27
|
return /* @__PURE__ */ jsxs("article", {
|
|
26
28
|
className: cn("flex h-full w-full flex-col rounded-xl border border-border bg-card p-7", featured && "border-primary/50 shadow-[0_10px_28px_rgba(13,148,136,0.28)] ring-1 ring-primary/25", isActive && mode === "account" && "border-primary/40 ring-1 ring-primary/20"),
|
|
@@ -133,7 +135,7 @@ const PricingCard = ({ plan, mode = "public", subscriptionStatus, isSubscribed =
|
|
|
133
135
|
}),
|
|
134
136
|
features.length > 0 ? /* @__PURE__ */ jsx("div", {
|
|
135
137
|
className: "mt-5 flex flex-1 flex-col gap-[11px] border-t border-border pt-[18px]",
|
|
136
|
-
"data-testid": plan.includedActionKeys && plan.includedActionKeys.length > 0 ? `included-endpoints-${plan.sku}` : void 0,
|
|
138
|
+
"data-testid": showEndpoints && plan.includedActionKeys && plan.includedActionKeys.length > 0 ? `included-endpoints-${plan.sku}` : void 0,
|
|
137
139
|
children: features.map((feat) => /* @__PURE__ */ jsxs("div", {
|
|
138
140
|
className: "flex items-start gap-2.5 text-[0.84375rem] text-muted-foreground",
|
|
139
141
|
children: [/* @__PURE__ */ jsx("span", {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as usePlans } from "./usePlans-
|
|
1
|
+
import { r as useDevPortalBillingConfig } from "./DevPortalBillingContext-BUQPLoyk.mjs";
|
|
2
|
+
import { f as parseManifestPlans, h as pickFeaturedPlanSku, n as useDevPortalPreviewMode, y as withPlanFeatures } from "./useDevPortalApiBaseUrl-B7gBA5El.mjs";
|
|
3
|
+
import { t as PricingCard } from "./PricingCard-KDRcH2ny.mjs";
|
|
4
|
+
import { t as usePlans } from "./usePlans-BKT8rIgl.mjs";
|
|
5
5
|
import { t as isPreviewPricingEnabled } from "./pricing-config-Bc6eWFUO.mjs";
|
|
6
|
-
import { a as isPricingLoading, n as buildCompareRows } from "./billing-state-
|
|
6
|
+
import { a as isPricingLoading, n as buildCompareRows } from "./billing-state-D0Nkuz7i.mjs";
|
|
7
7
|
import { Head, Heading } from "@lukoweb/apitogo/components";
|
|
8
8
|
import { Navigate } from "@lukoweb/apitogo/router";
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
3
|
-
import {
|
|
4
|
-
import { t as useMySubscriptions } from "./useMySubscriptions-
|
|
5
|
-
import { t as usePlans } from "./usePlans-
|
|
1
|
+
import { r as useDevPortalBillingConfig } from "./DevPortalBillingContext-BUQPLoyk.mjs";
|
|
2
|
+
import { a as CREDENTIALS_PATH, n as ALREADY_SUBSCRIBED_PARAM, t as ACCOUNT_PLANS_PATH } from "./paths-DBr3Dj_q.mjs";
|
|
3
|
+
import { a as formatPlanPrice, p as parseMonthlyQuotaCalls, s as isActiveSubscription, t as useDevPortalApiBaseUrl } from "./useDevPortalApiBaseUrl-B7gBA5El.mjs";
|
|
4
|
+
import { t as useMySubscriptions } from "./useMySubscriptions-BHp7cjkN.mjs";
|
|
5
|
+
import { t as usePlans } from "./usePlans-BKT8rIgl.mjs";
|
|
6
6
|
import { n as readPendingCheckout, t as clearPendingCheckout } from "./pending-checkout-DpVaNnTu.mjs";
|
|
7
|
-
import { n as useApiKeys } from "./useApiKeys-
|
|
8
|
-
import { t as useUsage } from "./useUsage-
|
|
9
|
-
import { i as hasPaymentProvider, r as checkoutConfirmingText } from "./billing-state-
|
|
10
|
-
import { i as ChoosePlanNotice, n as billingPageState, r as keyPlanNote } from "./page-state-
|
|
7
|
+
import { n as useApiKeys } from "./useApiKeys-Co1xhgcO.mjs";
|
|
8
|
+
import { t as useUsage } from "./useUsage-BKuMJS65.mjs";
|
|
9
|
+
import { i as hasPaymentProvider, r as checkoutConfirmingText } from "./billing-state-D0Nkuz7i.mjs";
|
|
10
|
+
import { i as ChoosePlanNotice, n as billingPageState, r as keyPlanNote } from "./page-state-Cmo0FPLl.mjs";
|
|
11
11
|
import { Head, Spinner } from "@lukoweb/apitogo/components";
|
|
12
12
|
import { Link as Link$1, useSearchParams } from "@lukoweb/apitogo/router";
|
|
13
13
|
import { useEffect } from "react";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "./
|
|
3
|
-
import { t as useMySubscriptions } from "./useMySubscriptions-
|
|
4
|
-
import { t as usePlans } from "./usePlans-
|
|
5
|
-
import { n as useUsageRecent, t as useUsage } from "./useUsage-
|
|
1
|
+
import "./DevPortalBillingContext-BUQPLoyk.mjs";
|
|
2
|
+
import { m as parseQuotaPeriodDays, p as parseMonthlyQuotaCalls, s as isActiveSubscription } from "./useDevPortalApiBaseUrl-B7gBA5El.mjs";
|
|
3
|
+
import { t as useMySubscriptions } from "./useMySubscriptions-BHp7cjkN.mjs";
|
|
4
|
+
import { t as usePlans } from "./usePlans-BKT8rIgl.mjs";
|
|
5
|
+
import { n as useUsageRecent, t as useUsage } from "./useUsage-BKuMJS65.mjs";
|
|
6
6
|
import { Head } from "@lukoweb/apitogo/components";
|
|
7
7
|
import { Link as Link$1 } from "@lukoweb/apitogo/router";
|
|
8
8
|
import { useState } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as useRevokeApiKey, r as useCreateApiKey, t as API_KEY_CAP_REACHED } from "./useApiKeys-
|
|
1
|
+
import { i as useRevokeApiKey, r as useCreateApiKey, t as API_KEY_CAP_REACHED } from "./useApiKeys-Co1xhgcO.mjs";
|
|
2
2
|
import { Spinner } from "@lukoweb/apitogo/components";
|
|
3
3
|
import { KeyRoundIcon, TrashIcon } from "@lukoweb/apitogo/icons";
|
|
4
4
|
import { useEffect, useState } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as rateLimitCell, g as quotaCell } from "./useDevPortalApiBaseUrl-
|
|
1
|
+
import { _ as rateLimitCell, g as quotaCell } from "./useDevPortalApiBaseUrl-B7gBA5El.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/utils/billing-state.ts
|
|
4
4
|
/** Whether the pricing page has no plans to show yet because the answer is still on its way. */
|
package/dist/index.d.mts
CHANGED
|
@@ -60,7 +60,8 @@ type DevPortalBillingConfig = {
|
|
|
60
60
|
*/
|
|
61
61
|
keyHeader?: string; /** The plan shown as "Popular"; none unless the tenant marked one (API-124). */
|
|
62
62
|
featuredPlanSku?: string; /** Lines each plan's card lists, by lowercased sku, from `features` in plans.json (API-129). */
|
|
63
|
-
planFeatures?: Record<string, string[]>;
|
|
63
|
+
planFeatures?: Record<string, string[]>; /** The pricing cards list each plan's endpoints (`portal.pricing.showEndpoints`). Absent: they are left out. */
|
|
64
|
+
showEndpoints?: boolean;
|
|
64
65
|
/**
|
|
65
66
|
* The gateway checks tokens (`gateway.auth`), so Try it offers "Signed-in user". False for a gateway that checks keys,
|
|
66
67
|
* where the token only gets a 401 (API-129). Absent (an older wrapper): offered, as before.
|
package/dist/index.mjs
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { t as AccountPlansPage } from "./AccountPlansPage-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "./
|
|
5
|
-
import
|
|
1
|
+
import { t as AccountPlansPage } from "./AccountPlansPage-USlRPEhN.mjs";
|
|
2
|
+
import { n as registerDevPortalBillingOptions, r as useDevPortalBillingConfig, t as DevPortalBillingProvider } from "./DevPortalBillingContext-BUQPLoyk.mjs";
|
|
3
|
+
import { a as CREDENTIALS_PATH, c as SUBSCRIPTIONS_PATH, i as CONTACT_SALES_PATH, l as USAGE_PATH, o as LOGIN_NAV_PATH, r as CHECKOUT_PATH, s as PRICING_PATH, t as ACCOUNT_PLANS_PATH } from "./paths-DBr3Dj_q.mjs";
|
|
4
|
+
import { d as listPlanFeatureLines, f as parseManifestPlans, h as pickFeaturedPlanSku, i as formatPlanDisplayPrice, o as formatPlanPriceUnit, s as isActiveSubscription, v as resolveDevPortalApiBaseUrl } from "./useDevPortalApiBaseUrl-B7gBA5El.mjs";
|
|
5
|
+
import "./PricingCard-KDRcH2ny.mjs";
|
|
6
6
|
import { t as DEMO_GATEWAY_KEY_HEADER } from "./demo-session-yK9qEqV-.mjs";
|
|
7
|
-
import { t as useMySubscriptions } from "./useMySubscriptions-
|
|
8
|
-
import { n as startPlansPrefetch, t as usePlans } from "./usePlans-
|
|
7
|
+
import { t as useMySubscriptions } from "./useMySubscriptions-BHp7cjkN.mjs";
|
|
8
|
+
import { n as startPlansPrefetch, t as usePlans } from "./usePlans-BKT8rIgl.mjs";
|
|
9
9
|
import "./pending-checkout-DpVaNnTu.mjs";
|
|
10
|
-
import { a as playgroundKeyIdentities, i as useRevokeApiKey, n as useApiKeys, r as useCreateApiKey, t as API_KEY_CAP_REACHED } from "./useApiKeys-
|
|
11
|
-
import { n as useUsageRecent, t as useUsage } from "./useUsage-
|
|
12
|
-
import { r as ApiKeysPanel, t as accountLayoutProps } from "./account-links-
|
|
10
|
+
import { a as playgroundKeyIdentities, i as useRevokeApiKey, n as useApiKeys, r as useCreateApiKey, t as API_KEY_CAP_REACHED } from "./useApiKeys-Co1xhgcO.mjs";
|
|
11
|
+
import { n as useUsageRecent, t as useUsage } from "./useUsage-BKuMJS65.mjs";
|
|
12
|
+
import { r as ApiKeysPanel, t as accountLayoutProps } from "./account-links-DZ9i1WTa.mjs";
|
|
13
13
|
import { t as isPreviewPricingEnabled } from "./pricing-config-Bc6eWFUO.mjs";
|
|
14
14
|
import { Head, Link } from "@lukoweb/apitogo/components";
|
|
15
15
|
import { ArrowRightIcon, KeyRoundIcon, StarsIcon } from "@lukoweb/apitogo/icons";
|
|
16
16
|
import { Outlet } from "@lukoweb/apitogo/router";
|
|
17
17
|
import { Suspense, lazy } from "react";
|
|
18
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
18
19
|
import manifestCatalog from "virtual:apitogo-local-manifest";
|
|
19
20
|
import zudokuConfig from "virtual:zudoku-config";
|
|
20
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
21
21
|
import { useAuth } from "@lukoweb/apitogo/hooks";
|
|
22
22
|
import { Button as Button$1 } from "@lukoweb/apitogo/ui/Button.js";
|
|
23
23
|
import { AccountLayout } from "@lukoweb/apitogo-module-user-panel";
|
|
@@ -367,13 +367,13 @@ async function getSignedInIdentities(apiBaseUrl, fetchImpl = fetch) {
|
|
|
367
367
|
|
|
368
368
|
//#endregion
|
|
369
369
|
//#region src/DevPortalBillingPlugin.tsx
|
|
370
|
-
const AccountPlansPage$1 = lazy(() => import("./AccountPlansPage-
|
|
371
|
-
const CheckoutPage = lazy(() => import("./CheckoutPage-
|
|
372
|
-
const ContactSalesPage = lazy(() => import("./ContactSalesPage-
|
|
373
|
-
const CredentialsPage = lazy(() => import("./CredentialsPage-
|
|
374
|
-
const PricingPage = lazy(() => import("./PricingPage-
|
|
375
|
-
const SubscriptionsPage = lazy(() => import("./SubscriptionsPage-
|
|
376
|
-
const UsagePage = lazy(() => import("./UsagePage-
|
|
370
|
+
const AccountPlansPage$1 = lazy(() => import("./AccountPlansPage-USlRPEhN.mjs").then((n) => n.n));
|
|
371
|
+
const CheckoutPage = lazy(() => import("./CheckoutPage-CED9AYw0.mjs"));
|
|
372
|
+
const ContactSalesPage = lazy(() => import("./ContactSalesPage-B1qWs7UW.mjs"));
|
|
373
|
+
const CredentialsPage = lazy(() => import("./CredentialsPage-DpV3JBPM.mjs"));
|
|
374
|
+
const PricingPage = lazy(() => import("./PricingPage-CiejO1vQ.mjs"));
|
|
375
|
+
const SubscriptionsPage = lazy(() => import("./SubscriptionsPage-LvYhFxv1.mjs"));
|
|
376
|
+
const UsagePage = lazy(() => import("./UsagePage-CeUcC33p.mjs"));
|
|
377
377
|
function resolvePricingEnabled(config) {
|
|
378
378
|
if (config.__meta?.pricingEnabled !== void 0) return config.__meta.pricingEnabled;
|
|
379
379
|
return isPreviewPricingEnabled();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ACCOUNT_PLANS_PATH } from "./paths-
|
|
1
|
+
import { t as ACCOUNT_PLANS_PATH } from "./paths-DBr3Dj_q.mjs";
|
|
2
2
|
import { Link } from "@lukoweb/apitogo/router";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { Button } from "@lukoweb/apitogo/ui/Button.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as
|
|
1
|
+
import { r as useDevPortalBillingConfig } from "./DevPortalBillingContext-BUQPLoyk.mjs";
|
|
2
|
+
import { n as useDevPortalPreviewMode, r as useIsDemoSession, t as useDevPortalApiBaseUrl } from "./useDevPortalApiBaseUrl-B7gBA5El.mjs";
|
|
3
3
|
import { n as readProblemDetail } from "./problem-details-n20-dy3w.mjs";
|
|
4
4
|
import { n as createDemoApiKeys, t as DEMO_GATEWAY_KEY_HEADER } from "./demo-session-yK9qEqV-.mjs";
|
|
5
5
|
import { useMutation, useQuery, useQueryClient } from "@lukoweb/apitogo/react-query";
|
|
@@ -201,7 +201,7 @@ function withPlanFeatures(catalog, planFeatures) {
|
|
|
201
201
|
})
|
|
202
202
|
};
|
|
203
203
|
}
|
|
204
|
-
function listPlanFeatureLines(plan) {
|
|
204
|
+
function listPlanFeatureLines(plan, options = {}) {
|
|
205
205
|
const lines = [];
|
|
206
206
|
if (plan.limitsJson?.trim()) try {
|
|
207
207
|
const limits = JSON.parse(plan.limitsJson);
|
|
@@ -215,7 +215,7 @@ function listPlanFeatureLines(plan) {
|
|
|
215
215
|
if (extras) {
|
|
216
216
|
for (const extra of extras) if (!lines.includes(extra)) lines.push(extra);
|
|
217
217
|
}
|
|
218
|
-
if (plan.includedActionKeys && plan.includedActionKeys.length > 0) for (const actionKey of plan.includedActionKeys) lines.push(formatActionKey(actionKey));
|
|
218
|
+
if (options.showEndpoints === true && plan.includedActionKeys && plan.includedActionKeys.length > 0) for (const actionKey of plan.includedActionKeys) lines.push(formatActionKey(actionKey));
|
|
219
219
|
if (lines.length === 0 && isPlanFree(plan)) lines.push("API access not included");
|
|
220
220
|
return lines;
|
|
221
221
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as
|
|
1
|
+
import { r as useDevPortalBillingConfig } from "./DevPortalBillingContext-BUQPLoyk.mjs";
|
|
2
|
+
import { n as useDevPortalPreviewMode, r as useIsDemoSession, t as useDevPortalApiBaseUrl } from "./useDevPortalApiBaseUrl-B7gBA5El.mjs";
|
|
3
3
|
import { i as createDemoMeResponse } from "./demo-session-yK9qEqV-.mjs";
|
|
4
4
|
import { useQuery } from "@lukoweb/apitogo/react-query";
|
|
5
5
|
import { useAuth } from "@lukoweb/apitogo/hooks";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as
|
|
1
|
+
import { r as useDevPortalBillingConfig } from "./DevPortalBillingContext-BUQPLoyk.mjs";
|
|
2
|
+
import { c as isPlaceholderDevPortalApiUrl, f as parseManifestPlans, n as useDevPortalPreviewMode, r as useIsDemoSession, t as useDevPortalApiBaseUrl, y as withPlanFeatures } from "./useDevPortalApiBaseUrl-B7gBA5El.mjs";
|
|
3
3
|
import { useQuery } from "@lukoweb/apitogo/react-query";
|
|
4
4
|
|
|
5
5
|
//#region src/utils/plans-prefetch.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as useDevPortalPreviewMode, r as useIsDemoSession, t as useDevPortalApiBaseUrl } from "./useDevPortalApiBaseUrl-
|
|
1
|
+
import { n as useDevPortalPreviewMode, r as useIsDemoSession, t as useDevPortalApiBaseUrl } from "./useDevPortalApiBaseUrl-B7gBA5El.mjs";
|
|
2
2
|
import { useQuery } from "@lukoweb/apitogo/react-query";
|
|
3
3
|
import { useAuth } from "@lukoweb/apitogo/hooks";
|
|
4
4
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lukoweb/apitogo-plugin-dev-portal-billing",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.77",
|
|
4
4
|
"homepage": "https://docs.apitogo.com",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"react": "19.2.4",
|
|
43
43
|
"react-dom": "19.2.4",
|
|
44
44
|
"tsdown": "0.20.3",
|
|
45
|
-
"@lukoweb/apitogo": "0.2.
|
|
46
|
-
"@lukoweb/apitogo-module-user-panel": "0.2.
|
|
45
|
+
"@lukoweb/apitogo": "0.2.77",
|
|
46
|
+
"@lukoweb/apitogo-module-user-panel": "0.2.77"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"react": ">=19.2.0",
|
|
File without changes
|
|
File without changes
|