@veroxm/react-sdk 1.2.0 → 1.3.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/CHANGELOG.md +4 -0
- package/dist/form.d.ts +2 -0
- package/dist/form.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.3.0
|
|
4
|
+
|
|
5
|
+
- `<VeroxmForm lang="fr" />`: show the form in one of its languages (otherwise the visitor's browser language decides).
|
|
6
|
+
|
|
3
7
|
## 1.2.0
|
|
4
8
|
|
|
5
9
|
- Forms: `<VeroxmForm baseUrl form mode />` shows a VeroXM form inline, as a popup (its children open it), full page
|
package/dist/form.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ export interface VeroxmFormOptions {
|
|
|
14
14
|
form: string;
|
|
15
15
|
mode?: VeroxmFormMode;
|
|
16
16
|
hidden?: Record<string, string>;
|
|
17
|
+
/** The language to show, when the form has it ("fr", "ar"); otherwise the visitor's browser language decides. */
|
|
18
|
+
lang?: string;
|
|
17
19
|
/** inline: height in pixels (default 520). */
|
|
18
20
|
height?: number;
|
|
19
21
|
/** inline: grow and shrink with the form. */
|
package/dist/form.js
CHANGED
|
@@ -47,7 +47,7 @@ export function useVeroxmForm(options, refs = {}) {
|
|
|
47
47
|
latest.current = options;
|
|
48
48
|
const { baseUrl, form, mode = 'inline' } = options;
|
|
49
49
|
// What the embed is made from: a change re-creates it.
|
|
50
|
-
const key = JSON.stringify([baseUrl, form, mode, options.hidden, options.height, options.autoHeight, options.size, options.position, options.openOn, options.rememberDismissDays, options.autoCloseSeconds, options.title]);
|
|
50
|
+
const key = JSON.stringify([baseUrl, form, mode, options.hidden, options.lang, options.height, options.autoHeight, options.size, options.position, options.openOn, options.rememberDismissDays, options.autoCloseSeconds, options.title]);
|
|
51
51
|
const { container, trigger } = refs;
|
|
52
52
|
const needsContainer = mode === 'inline';
|
|
53
53
|
useEffect(() => {
|
package/package.json
CHANGED