@tellescope/react-components 1.220.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/CLAUDE.md +47 -0
- package/lib/cjs/Forms/forms.d.ts +1 -0
- package/lib/cjs/Forms/forms.d.ts.map +1 -1
- package/lib/cjs/Forms/forms.js +6 -6
- package/lib/cjs/Forms/forms.js.map +1 -1
- package/lib/cjs/state.d.ts +12 -0
- package/lib/cjs/state.d.ts.map +1 -1
- package/lib/esm/CMS/components.d.ts +0 -1
- package/lib/esm/CMS/components.d.ts.map +1 -1
- package/lib/esm/Forms/form_responses.d.ts +0 -1
- package/lib/esm/Forms/form_responses.d.ts.map +1 -1
- package/lib/esm/Forms/forms.d.ts +4 -3
- package/lib/esm/Forms/forms.d.ts.map +1 -1
- package/lib/esm/Forms/forms.js +6 -6
- package/lib/esm/Forms/forms.js.map +1 -1
- package/lib/esm/Forms/hooks.d.ts +0 -1
- package/lib/esm/Forms/hooks.d.ts.map +1 -1
- package/lib/esm/Forms/inputs.d.ts +1 -1
- package/lib/esm/controls.d.ts +2 -2
- package/lib/esm/inputs.d.ts +1 -1
- package/lib/esm/inputs.native.d.ts +0 -1
- package/lib/esm/inputs.native.d.ts.map +1 -1
- package/lib/esm/state.d.ts +64 -52
- package/lib/esm/state.d.ts.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -9
- package/src/Forms/forms.tsx +5 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tellescope/react-components",
|
|
3
|
-
"version": "1.
|
|
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.
|
|
51
|
-
"@tellescope/sdk": "^1.
|
|
52
|
-
"@tellescope/types-client": "^1.
|
|
53
|
-
"@tellescope/types-models": "^1.
|
|
54
|
-
"@tellescope/types-utilities": "^1.
|
|
55
|
-
"@tellescope/utilities": "^1.
|
|
56
|
-
"@tellescope/validation": "^1.
|
|
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": "
|
|
86
|
+
"gitHead": "5b8ee9d4d56ac4ccdedce87e26a4534c152c44a3",
|
|
87
87
|
"publishConfig": {
|
|
88
88
|
"access": "public"
|
|
89
89
|
}
|
package/src/Forms/forms.tsx
CHANGED
|
@@ -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} />
|