@stigg/react-sdk 3.0.0 → 3.0.2
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 +4 -4
- package/dist/components/paywall/PlanEntitlements.d.ts +3 -1
- package/dist/react-sdk.cjs.development.js +20 -14
- package/dist/react-sdk.cjs.development.js.map +1 -1
- package/dist/react-sdk.cjs.production.min.js +1 -1
- package/dist/react-sdk.cjs.production.min.js.map +1 -1
- package/dist/react-sdk.esm.js +20 -14
- package/dist/react-sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/paywall/PlanEntitlements.tsx +11 -3
- package/src/components/paywall/PlanOffering.tsx +1 -1
package/README.md
CHANGED
|
@@ -5,9 +5,9 @@ Stigg SDK for React single page applications (SPA).
|
|
|
5
5
|
## Table of contents
|
|
6
6
|
|
|
7
7
|
- [Installation](#installation)
|
|
8
|
-
- [Paywall](#
|
|
9
|
-
- [Hooks](#
|
|
10
|
-
- [Customization](#
|
|
8
|
+
- [Paywall](#paywall)
|
|
9
|
+
- [Hooks](#hooks)
|
|
10
|
+
- [Customization](#customization)
|
|
11
11
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
@@ -78,7 +78,7 @@ function App() {
|
|
|
78
78
|
}
|
|
79
79
|
```
|
|
80
80
|
|
|
81
|
-
## Customization
|
|
81
|
+
## Customization
|
|
82
82
|
|
|
83
83
|
The components included in of this package comes with default styling, and you can customize and change the appearance:
|
|
84
84
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { BillingPeriod } from '@stigg/js-client-sdk';
|
|
2
3
|
import { PaywallPlan } from './types';
|
|
3
4
|
import { PaywallLocalization } from './paywallTextOverrides';
|
|
4
|
-
export declare function PlanEntitlements({ plan, paywallLocale }: {
|
|
5
|
+
export declare function PlanEntitlements({ plan, billingPeriod, paywallLocale, }: {
|
|
5
6
|
plan: PaywallPlan;
|
|
7
|
+
billingPeriod: BillingPeriod;
|
|
6
8
|
paywallLocale: PaywallLocalization;
|
|
7
9
|
}): JSX.Element;
|