@sprig-technologies/sprig-browser 2.15.10 → 2.15.15

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.
Files changed (3) hide show
  1. package/index.d.ts +14 -2
  2. package/index.js +4 -4
  3. package/package.json +1 -8
package/index.d.ts CHANGED
@@ -18,6 +18,19 @@ export class SprigAPI {
18
18
  * @param {Number} surveyId
19
19
  */
20
20
  VISITOR_ID_UPDATED: string;
21
+ DATA: {
22
+ DISMISS_REASONS: {
23
+ CLOSED: string;
24
+ COMPLETE: string;
25
+ PAGE_CHANGE: string;
26
+ API: string; /**
27
+ * Set attributes on visitor
28
+ * @param {Object} attributes
29
+ */
30
+ OVERRIDE: string;
31
+ };
32
+ SURVEY_ID: string;
33
+ };
21
34
  };
22
35
  /**
23
36
  * Triggers displaying specified survey. Does submit answers!
@@ -144,7 +157,6 @@ export class SprigAPI {
144
157
  */
145
158
  teardown(): void;
146
159
  }
147
- declare namespace _default {
160
+ export namespace sprig {
148
161
  function configure(config: any): SprigAPI;
149
162
  }
150
- export default _default;