@stigg/react-sdk 4.4.0-beta.0 → 4.4.0-beta.1
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/components/customerPortal/subscriptionOverview/subscriptionView/SubscriptionView.style.d.ts +1 -1
- package/dist/react-sdk.cjs.development.js +2 -1
- 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 +2 -1
- package/dist/react-sdk.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/checkout/summary/CheckoutSuccess.tsx +2 -4
- package/src/stories/Checkout.stories.tsx +5 -4
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "4.4.0-beta.
|
|
2
|
+
"version": "4.4.0-beta.1",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"@emotion/react": "^11.10.5",
|
|
102
102
|
"@emotion/styled": "^11.10.5",
|
|
103
103
|
"@mui/material": "^5.10.13",
|
|
104
|
-
"@stigg/js-client-sdk": "2.
|
|
104
|
+
"@stigg/js-client-sdk": "2.21.0",
|
|
105
105
|
"@stripe/react-stripe-js": "^2.1.1",
|
|
106
106
|
"@stripe/stripe-js": "^1.54.1",
|
|
107
107
|
"@types/styled-components": "^5.1.26",
|
|
@@ -7,9 +7,7 @@ import animationData from '../../../assets/lottie/checkout-success.json';
|
|
|
7
7
|
|
|
8
8
|
export const ANIMATION_DURATION = 5000;
|
|
9
9
|
|
|
10
|
-
const BACKGROUND_COLOR = Color('#0b2f7a')
|
|
11
|
-
.alpha(0.3)
|
|
12
|
-
.toString();
|
|
10
|
+
const BACKGROUND_COLOR = Color('#0b2f7a').alpha(0.3).toString();
|
|
13
11
|
|
|
14
12
|
const CheckoutSuccessContainer = styled(Box)`
|
|
15
13
|
position: absolute;
|
|
@@ -26,7 +24,7 @@ const CheckoutSuccessContainer = styled(Box)`
|
|
|
26
24
|
export function CheckoutSuccess() {
|
|
27
25
|
return (
|
|
28
26
|
<CheckoutSuccessContainer>
|
|
29
|
-
<Lottie options={{ loop: false, autoplay: true, animationData }} />
|
|
27
|
+
<Lottie width={350} options={{ loop: false, autoplay: true, animationData }} />
|
|
30
28
|
</CheckoutSuccessContainer>
|
|
31
29
|
);
|
|
32
30
|
}
|
|
@@ -46,6 +46,7 @@ const Template: ComponentStory<any> = (args) => (
|
|
|
46
46
|
onChangePlan={({ currentPlan }) => {
|
|
47
47
|
console.log('plan changed clicked!', { currentPlan });
|
|
48
48
|
}}
|
|
49
|
+
billingInformation={{ taxPercentage: 27 }}
|
|
49
50
|
/>
|
|
50
51
|
</Wrapper>
|
|
51
52
|
);
|
|
@@ -54,8 +55,8 @@ export const DefaultCheckout = Template.bind({});
|
|
|
54
55
|
DefaultCheckout.args = {
|
|
55
56
|
...defaultArgsWithCustomer,
|
|
56
57
|
planId: 'plan-revvenu-essentials',
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
baseUri: 'https://api-staging.stigg.io',
|
|
60
|
-
apiKey: 'client-79584f52-7ef9-4c58-b9ac-5080acf492e4:71f2274c-100a-4fa4-8a43-48fa3b16c627',
|
|
58
|
+
baseUri: 'http://localhost:4000',
|
|
59
|
+
apiKey: 'client-72b058a6-0f22-4c86-adce-bf266d12e12e:9f356ceb-c94c-42a4-9572-10b12824da81',
|
|
60
|
+
// baseUri: 'https://api-staging.stigg.io',
|
|
61
|
+
// apiKey: 'client-79584f52-7ef9-4c58-b9ac-5080acf492e4:71f2274c-100a-4fa4-8a43-48fa3b16c627',
|
|
61
62
|
};
|