@sprig-technologies/sprig-browser 2.21.2 → 2.21.3

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.
@@ -20,9 +20,6 @@ export declare class SprigAPI {
20
20
  DISMISS_REASONS: {
21
21
  API: import("../src/constants/sprigEvents").DismissReason;
22
22
  CLOSED: import("../src/constants/sprigEvents").DismissReason;
23
- /**
24
- * Remove all listeners set on Sprig
25
- */
26
23
  COMPLETE: import("../src/constants/sprigEvents").DismissReason;
27
24
  PAGE_CHANGE: import("../src/constants/sprigEvents").DismissReason;
28
25
  OVERRIDE: import("../src/constants/sprigEvents").DismissReason;
@@ -35,14 +32,6 @@ export declare class SprigAPI {
35
32
  * @returns
36
33
  */
37
34
  displaySurvey(surveyId: number): void;
38
- /**
39
- * Triggers displaying specified survey template. Does not submit answers
40
- */
41
- previewSurvey(surveyTemplateId: string): void;
42
- /**
43
- * Triggers displaying specified survey. Does not submit answers
44
- */
45
- reviewSurvey(surveyId: number): void;
46
35
  /**
47
36
  * pauses api interactions
48
37
  */
@@ -28,6 +28,9 @@ export declare const enum InstallationMethod {
28
28
  Npm = "web-npm",
29
29
  Gtm = "web-gtm",
30
30
  Segment = "web-segment",
31
+ SegmentAndroid = "android-segment",
32
+ SegmentReactNative = "react-native-segment",
33
+ SegmentIOS = "ios-segment",
31
34
  Snippet = "web-snippet"
32
35
  }
33
36
  interface Answer {
@@ -92,6 +92,8 @@ declare namespace sprig {
92
92
  }
93
93
 
94
94
  interface SprigAPIActions {
95
+ _previewSurvey: (surveyId: number) => void;
96
+ _reviewSurvey: (surveyId: number) => void;
95
97
  addListener: (event: SprigEvent, listener: SprigListener) => Promise<void>;
96
98
  addSurveyListener: (listener: SprigListener) => Promise<void>;
97
99
  applyStyles: (styleString: string) => void;
@@ -180,11 +182,9 @@ declare namespace sprig {
180
182
  height: number;
181
183
  width: number;
182
184
  };
183
- } & ((
184
- name: "addListener",
185
- event: string,
186
- listener: SprigListener
187
- ) => void) &
185
+ } & ((name: "_previewSurvey", surveyTemplateId: string) => void) &
186
+ ((name: "_reviewSurvey", surveyId: number) => void) &
187
+ ((name: "addListener", event: string, listener: SprigListener) => void) &
188
188
  ((name: "applyStyles", styles: string) => void) &
189
189
  ((name: "dismissActiveSurvey", reason?: string) => void) &
190
190
  ((name: "displaySurvey", surveyId: number) => void) &
package/package.json CHANGED
@@ -15,16 +15,16 @@
15
15
  },
16
16
  "repository": {
17
17
  "type": "git",
18
- "url": "git+https://github.com/UserLeap/userleap-web-sdk.git"
18
+ "url": "git+https://github.com/UserLeap/sdk.git"
19
19
  },
20
20
  "keywords": [
21
21
  "product",
22
22
  "user-research"
23
23
  ],
24
24
  "bugs": {
25
- "url": "https://github.com/UserLeap/userleap-web-sdk/issues"
25
+ "url": "https://github.com/UserLeap/sdk/issues"
26
26
  },
27
27
  "homepage": "https://docs.sprig.com/docs/web-javascript",
28
28
  "license": "See LICENSE file",
29
- "version": "2.21.2"
29
+ "version": "2.21.3"
30
30
  }