@stigg/react-sdk 4.4.0-beta.2 → 4.4.0-beta.4

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.
Files changed (60) hide show
  1. package/dist/components/checkout/Checkout.d.ts +1 -1
  2. package/dist/components/checkout/CheckoutContainer.d.ts +6 -2
  3. package/dist/components/checkout/CheckoutProvider.d.ts +3 -1
  4. package/dist/components/checkout/components/DowngradeToFreeContainer.d.ts +28 -0
  5. package/dist/components/checkout/hooks/usePaymentStepModel.d.ts +8 -2
  6. package/dist/components/checkout/hooks/useProgressBarModel.d.ts +3 -0
  7. package/dist/components/checkout/hooks/useSubscriptionModel.d.ts +2 -1
  8. package/dist/components/checkout/index.d.ts +1 -0
  9. package/dist/components/checkout/steps/payment/PaymentMethods.d.ts +3 -2
  10. package/dist/components/checkout/steps/payment/PaymentStep.d.ts +2 -1
  11. package/dist/components/checkout/steps/payment/stripe/StripePaymentForm.d.ts +2 -1
  12. package/dist/components/checkout/steps/payment/stripe/stripe.utils.d.ts +4 -0
  13. package/dist/components/checkout/steps/payment/stripe/useSubmit.d.ts +2 -1
  14. package/dist/components/checkout/steps/plan/CheckoutChargeList.d.ts +5 -1
  15. package/dist/components/checkout/summary/CheckoutSummary.d.ts +3 -1
  16. package/dist/components/checkout/summary/components/LineItems.d.ts +2 -2
  17. package/dist/components/checkout/textOverrides.d.ts +4 -1
  18. package/dist/components/checkout/types.d.ts +7 -0
  19. package/dist/components/customerPortal/subscriptionOverview/subscriptionView/SubscriptionView.style.d.ts +1 -1
  20. package/dist/components/paywall/paywallTextOverrides.d.ts +4 -0
  21. package/dist/components/utils/getPaidPriceText.d.ts +3 -1
  22. package/dist/react-sdk.cjs.development.js +583 -263
  23. package/dist/react-sdk.cjs.development.js.map +1 -1
  24. package/dist/react-sdk.cjs.production.min.js +1 -1
  25. package/dist/react-sdk.cjs.production.min.js.map +1 -1
  26. package/dist/react-sdk.esm.js +595 -263
  27. package/dist/react-sdk.esm.js.map +1 -1
  28. package/package.json +2 -2
  29. package/src/assets/payment-method.svg +3 -10
  30. package/src/components/checkout/Checkout.tsx +3 -1
  31. package/src/components/checkout/CheckoutContainer.tsx +54 -28
  32. package/src/components/checkout/CheckoutProvider.tsx +8 -4
  33. package/src/components/checkout/components/DowngradeToFreeContainer.tsx +98 -0
  34. package/src/components/checkout/hooks/usePaymentStepModel.ts +22 -3
  35. package/src/components/checkout/hooks/usePlanStepModel.ts +5 -5
  36. package/src/components/checkout/hooks/usePreviewSubscription.ts +26 -3
  37. package/src/components/checkout/hooks/useProgressBarModel.ts +18 -0
  38. package/src/components/checkout/hooks/useSubscriptionModel.ts +8 -2
  39. package/src/components/checkout/hooks/useSubscriptionState.ts +2 -1
  40. package/src/components/checkout/index.ts +1 -0
  41. package/src/components/checkout/progressBar/CheckoutProgressBar.tsx +3 -2
  42. package/src/components/checkout/steps/payment/PaymentMethods.tsx +13 -6
  43. package/src/components/checkout/steps/payment/PaymentStep.tsx +3 -1
  44. package/src/components/checkout/steps/payment/stripe/StripePaymentForm.tsx +35 -4
  45. package/src/components/checkout/steps/payment/stripe/stripe.utils.ts +4 -3
  46. package/src/components/checkout/steps/payment/stripe/useSubmit.ts +54 -45
  47. package/src/components/checkout/steps/plan/CheckoutChargeList.tsx +42 -10
  48. package/src/components/checkout/summary/CheckoutSuccess.tsx +1 -1
  49. package/src/components/checkout/summary/CheckoutSummary.tsx +24 -19
  50. package/src/components/checkout/summary/components/LineItems.tsx +8 -16
  51. package/src/components/checkout/textOverrides.ts +5 -4
  52. package/src/components/checkout/types.ts +9 -0
  53. package/src/components/paywall/PlanPrice.tsx +10 -2
  54. package/src/components/paywall/paywallTextOverrides.ts +3 -0
  55. package/src/components/utils/getPaidPriceText.ts +8 -2
  56. package/src/components/utils/getPlanPrice.ts +1 -1
  57. package/src/stories/Checkout.stories.tsx +4 -5
  58. package/dist/components/checkout/steps/surprise/SurpriseStep.d.ts +0 -2
  59. package/src/assets/nyancat.svg +0 -634
  60. package/src/components/checkout/steps/surprise/SurpriseStep.tsx +0 -27
@@ -55,9 +55,8 @@ export const DefaultCheckout = Template.bind({});
55
55
  DefaultCheckout.args = {
56
56
  ...defaultArgsWithCustomer,
57
57
  planId: 'plan-revvenu-essentials',
58
- // baseUri: 'http://localhost:4000',
59
- // apiKey: 'client-72b058a6-0f22-4c86-adce-bf266d12e12e:9f356ceb-c94c-42a4-9572-10b12824da81',
60
- // disableEdge: false,
61
- baseUri: 'https://api-staging.stigg.io',
62
- 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',
63
62
  };
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const SurpriseStep: () => JSX.Element;