@stigg/react-sdk 5.15.1 → 5.16.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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.15.1",
2
+ "version": "5.16.1",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -112,7 +112,7 @@
112
112
  "@emotion/react": "^11.10.5",
113
113
  "@emotion/styled": "^11.10.5",
114
114
  "@mui/material": "^5.12.0",
115
- "@stigg/js-client-sdk": "3.17.1",
115
+ "@stigg/js-client-sdk": "3.20.0",
116
116
  "@stripe/react-stripe-js": "^2.1.1",
117
117
  "@stripe/stripe-js": "^1.54.1",
118
118
  "@types/styled-components": "^5.1.26",
@@ -119,7 +119,7 @@ export function mapPaywallConfiguration(paywallConfiguration: PaywallConfigurati
119
119
  }
120
120
 
121
121
  export function mapCheckoutConfiguration(configuration: CheckoutConfiguration): CustomizedTheme {
122
- const { palette, typography } = configuration;
122
+ const { palette, typography, customCss } = configuration;
123
123
  return {
124
124
  palette: {
125
125
  primary: palette?.primary || undefined,
@@ -131,5 +131,6 @@ export function mapCheckoutConfiguration(configuration: CheckoutConfiguration):
131
131
  backgroundHighlight: palette?.summaryBackgroundColor || undefined,
132
132
  },
133
133
  typography: mapTypography(typography, defaultCheckoutTypography),
134
+ customCss: customCss || undefined,
134
135
  };
135
136
  }