@tellescope/react-components 1.221.0 → 1.222.0

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@tellescope/react-components",
3
- "version": "1.221.0",
3
+ "version": "1.222.0",
4
4
  "description": "",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",
@@ -47,13 +47,13 @@
47
47
  "@reduxjs/toolkit": "^1.6.2",
48
48
  "@stripe/react-stripe-js": "^2.9.0",
49
49
  "@stripe/stripe-js": "^1.52.1",
50
- "@tellescope/constants": "^1.221.0",
51
- "@tellescope/sdk": "^1.221.0",
52
- "@tellescope/types-client": "^1.221.0",
53
- "@tellescope/types-models": "^1.221.0",
54
- "@tellescope/types-utilities": "^1.221.0",
55
- "@tellescope/utilities": "^1.221.0",
56
- "@tellescope/validation": "^1.221.0",
50
+ "@tellescope/constants": "^1.222.0",
51
+ "@tellescope/sdk": "^1.222.0",
52
+ "@tellescope/types-client": "^1.222.0",
53
+ "@tellescope/types-models": "^1.222.0",
54
+ "@tellescope/types-utilities": "^1.222.0",
55
+ "@tellescope/utilities": "^1.222.0",
56
+ "@tellescope/validation": "^1.222.0",
57
57
  "@typescript-eslint/eslint-plugin": "^4.33.0",
58
58
  "@typescript-eslint/parser": "^4.33.0",
59
59
  "css-to-react-native": "^3.0.0",
@@ -83,7 +83,7 @@
83
83
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
84
84
  "react-native": "^0.65.0 || ^0.66.0 || ^0.67.0 || ^0.68.0 || ^0.71.0"
85
85
  },
86
- "gitHead": "9f865339ecf82005e299c61fdc6fb6dacc0a7486",
86
+ "gitHead": "5b8ee9d4d56ac4ccdedce87e26a4534c152c44a3",
87
87
  "publishConfig": {
88
88
  "access": "public"
89
89
  }
@@ -21,6 +21,7 @@ export const TellescopeFormContainer = ({ businessId, organizationIds, ...props
21
21
  language?: string,
22
22
  onChangeLanguage?: (l: string) => void,
23
23
  paperMinHeight?: React.CSSProperties['minHeight'],
24
+ maxWidth?: number,
24
25
  } & Styled) => {
25
26
  // if context already is provided, no need to duplicate
26
27
  if (props.dontAddContext) return (
@@ -34,7 +35,7 @@ export const TellescopeFormContainer = ({ businessId, organizationIds, ...props
34
35
  )
35
36
  }
36
37
 
37
- const TellescopeFormContainerWithTheme: typeof TellescopeFormContainer = ({ paperMinHeight=575, children, language, onChangeLanguage, style, hideBg, backgroundColor, hideLogo, logoHeight }) => {
38
+ const TellescopeFormContainerWithTheme: typeof TellescopeFormContainer = ({ paperMinHeight=575, children, language, onChangeLanguage, style, hideBg, backgroundColor, hideLogo, logoHeight, maxWidth }) => {
38
39
  const theme = useOrganizationTheme()
39
40
 
40
41
  const formContent = (
@@ -64,7 +65,7 @@ const TellescopeFormContainerWithTheme: typeof TellescopeFormContainer = ({ pape
64
65
  if (hideBg) {
65
66
  return (
66
67
  <Flex flex={1} alignItems="center" justifyContent="center" style={style}>
67
- <Flex flex={1} style={{ padding: 20, maxWidth: 650, minWidth: 250, minHeight: 475 }}>
68
+ <Flex flex={1} style={{ padding: 20, maxWidth: maxWidth ?? 650, minWidth: 250, minHeight: 475 }}>
68
69
  {formContent}
69
70
  </Flex>
70
71
  </Flex>
@@ -72,7 +73,7 @@ const TellescopeFormContainerWithTheme: typeof TellescopeFormContainer = ({ pape
72
73
  }
73
74
  return (
74
75
  <Flex flex={1} alignItems="center" justifyContent="center" style={{ backgroundColor: backgroundColor ?? theme.themeColor ?? '#ffffff', ...style }}>
75
- <Paper flex elevation={3} style={{ marginTop: 50, marginBottom: 50, padding: 20, maxWidth: 650, minWidth: 250, minHeight: paperMinHeight }}>
76
+ <Paper flex elevation={3} style={{ marginTop: 50, marginBottom: 50, padding: 20, maxWidth: maxWidth ?? 650, minWidth: 250, minHeight: paperMinHeight }}>
76
77
  {formContent}
77
78
  </Paper>
78
79
  </Flex>
@@ -706,6 +707,7 @@ const TellescopeFormWithContext: typeof TellescopeForm = (props) => {
706
707
  logoHeight={props.logoHeight}
707
708
  backgroundColor={props.backgroundColor}
708
709
  hideLogo={props?.customization?.hideLogo}
710
+ maxWidth={props.form?.customization?.maxWidth}
709
711
  >
710
712
  {props.submitted
711
713
  ? <ThanksMessage {...props} showRestartAtEnd={props?.customization?.showRestartAtEnd} />