@metrifox/react-sdk 0.0.9 → 0.0.10
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/README.md +148 -4
- package/dist/index.cjs +47 -24
- package/dist/index.d.ts +21 -1
- package/dist/index.js +46 -23
- package/dist/styles.css +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { PricingTableTheme } from 'src/modules/pricing-table/types/interface';
|
|
1
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
3
|
import { ComponentType } from 'react';
|
|
3
4
|
|
|
4
5
|
interface MetrifoxInitConfig {
|
|
5
6
|
clientKey: string;
|
|
6
7
|
baseUrl?: string;
|
|
8
|
+
pricingTableTheme?: PricingTableTheme;
|
|
7
9
|
}
|
|
8
10
|
declare const metrifoxInit: (config: MetrifoxInitConfig) => void;
|
|
9
11
|
|
|
@@ -353,5 +355,23 @@ declare const PriceCard: ({ plan, interval, featureOrderMap, isPricePage, isCust
|
|
|
353
355
|
buttonAction?: () => void;
|
|
354
356
|
}) => react_jsx_runtime.JSX.Element | null;
|
|
355
357
|
|
|
356
|
-
|
|
358
|
+
declare const PricingTable: ({ checkoutUsername, productKey, plansOnly, singlePurchasesOnly, showTabHeader, }: {
|
|
359
|
+
checkoutUsername: string;
|
|
360
|
+
productKey: string;
|
|
361
|
+
plansOnly?: boolean;
|
|
362
|
+
singlePurchasesOnly?: boolean;
|
|
363
|
+
showTabHeader?: boolean;
|
|
364
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
365
|
+
|
|
366
|
+
declare const useGetCheckoutUrl: ({ offeringKey, billingInterval, customerKey, }: {
|
|
367
|
+
offeringKey: string;
|
|
368
|
+
billingInterval?: "monthly" | "yearly";
|
|
369
|
+
customerKey?: string;
|
|
370
|
+
}) => {
|
|
371
|
+
checkoutUrl: string | null;
|
|
372
|
+
loading: boolean;
|
|
373
|
+
error: unknown;
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
export { CustomerPortal, PriceCard, PricingTable, metrifoxInit, useGetCheckoutUrl };
|
|
357
377
|
export type { Offering as ProductOffering };
|