@survicate/survicate-web-package 28.31.24 → 28.32.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 +1 -1
- package/survicate_widget.d.ts +8 -0
- package/survicate_widget.js +1 -1
package/package.json
CHANGED
package/survicate_widget.d.ts
CHANGED
|
@@ -137,6 +137,11 @@ export interface ConfigModel {
|
|
|
137
137
|
disableSensitiveDataPersistence?: boolean;
|
|
138
138
|
/** Force surveys to display in a specific language (IETF language tag, e.g., "en", "fr", "pt-BR") */
|
|
139
139
|
forcedLanguage?: string;
|
|
140
|
+
/**
|
|
141
|
+
* Use the page's `<html lang>` attribute as a language detection source (checked before URL and browser language).
|
|
142
|
+
* Opt-in only: passing `false` does not clear a value already set on `window._sva.useHtmlLangAttribute`.
|
|
143
|
+
*/
|
|
144
|
+
useHtmlLangAttribute?: boolean;
|
|
140
145
|
/** Force initial theme mode: "light", "dark", or "auto" (follow system). Same as setThemeMode() but applied on init */
|
|
141
146
|
themeMode?: string;
|
|
142
147
|
/** Array of survey IDs to hide from targeting */
|
|
@@ -246,6 +251,9 @@ export interface SurveyApi {
|
|
|
246
251
|
/** Whether sensitive data persistence is disabled */
|
|
247
252
|
disableSensitiveDataPersistence?: boolean;
|
|
248
253
|
|
|
254
|
+
/** Whether the page's `<html lang>` attribute is used as a language detection source */
|
|
255
|
+
useHtmlLangAttribute?: boolean;
|
|
256
|
+
|
|
249
257
|
/** Array of survey IDs to hide from targeting */
|
|
250
258
|
hiddenSurveys?: string[];
|
|
251
259
|
|