@survicate/survicate-web-package 28.18.0-npm → 28.19.4-npm
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
|
@@ -226,6 +226,14 @@ export interface SurveyApi {
|
|
|
226
226
|
*/
|
|
227
227
|
addEventListener: (event: typeof ApiEvents, callback: CallbackTypes) => number | void;
|
|
228
228
|
|
|
229
|
+
/**
|
|
230
|
+
* Close the currently displayed survey (widget or feedback).
|
|
231
|
+
* Fires the same close flow as when the user clicks the close button, including survey_closed event and integrations.
|
|
232
|
+
* @param surveyId - Optional. If provided, only the survey with that ID is closed (if open).
|
|
233
|
+
* If omitted, all open surveys are closed. Use survey ID for multiple widgets on one site.
|
|
234
|
+
*/
|
|
235
|
+
closeSurvey: (surveyId?: string) => void;
|
|
236
|
+
|
|
229
237
|
/**
|
|
230
238
|
* Destroy the current visitor session and reset all data
|
|
231
239
|
* @param callback - Optional callback to execute after destruction
|