@sprig-technologies/sprig-browser 2.26.3 → 2.26.5

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/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-R4BhGZ2a.cjs");exports.DismissReason=e.DismissReason;exports.SprigAPI=e.SprigAPI;exports.SprigEvent=e.SprigEvent;exports.default=e.index;exports.sprig=e.sprig;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-1NW718SB.cjs");exports.DismissReason=e.DismissReason;exports.SprigAPI=e.SprigAPI;exports.SprigEvent=e.SprigEvent;exports.default=e.index;exports.sprig=e.sprig;
package/dist/index.d.ts CHANGED
@@ -2242,6 +2242,7 @@ declare const EVENTS: {
2242
2242
  SURVEY_DIMENSIONS: SprigEvent;
2243
2243
  SURVEY_FADING_OUT: SprigEvent;
2244
2244
  SURVEY_HEIGHT: SprigEvent;
2245
+ SURVEY_WIDTH: SprigEvent;
2245
2246
  SURVEY_PRESENTED: SprigEvent;
2246
2247
  SURVEY_LIFE_CYCLE: SprigEvent;
2247
2248
  SURVEY_WILL_CLOSE: SprigEvent;
@@ -2462,7 +2463,7 @@ declare const LogLevels: {
2462
2463
  readonly Info: 3;
2463
2464
  readonly Debug: 4;
2464
2465
  };
2465
- type LogLevel = typeof LogLevels[keyof typeof LogLevels];
2466
+ type LogLevel = (typeof LogLevels)[keyof typeof LogLevels];
2466
2467
 
2467
2468
  declare const enum FramePosition {
2468
2469
  BottomLeft = "bottomLeft",
@@ -2745,7 +2746,10 @@ declare namespace sprigConfig {
2745
2746
  ) => Promise<void>;
2746
2747
  removeSurveyListener: (listener: SprigListener) => Promise<void>;
2747
2748
  reviewSurvey: (surveyId: number) => void;
2748
- setAttribute: (attribute: string, value: string | number) => IdentifyResult;
2749
+ setAttribute: (
2750
+ attribute: string,
2751
+ value: string | number | boolean,
2752
+ ) => IdentifyResult;
2749
2753
  setAttributes: (attributes?: SprigAttributes) => IdentifyResult;
2750
2754
  setPartnerAnonymousId: (
2751
2755
  partnerAnonymousId: string,
@@ -2884,6 +2888,7 @@ declare class SprigAPI {
2884
2888
  SURVEY_DIMENSIONS: SprigEvent;
2885
2889
  SURVEY_FADING_OUT: SprigEvent;
2886
2890
  SURVEY_HEIGHT: SprigEvent;
2891
+ SURVEY_WIDTH: SprigEvent;
2887
2892
  SURVEY_PRESENTED: SprigEvent;
2888
2893
  SURVEY_LIFE_CYCLE: SprigEvent;
2889
2894
  SURVEY_WILL_CLOSE: SprigEvent;
@@ -2922,7 +2927,7 @@ declare class SprigAPI {
2922
2927
  /**
2923
2928
  * Set an arbitrary attribute on the visitor
2924
2929
  */
2925
- setAttribute(attribute: string, value: string): void;
2930
+ setAttribute(attribute: string, value: string | number | boolean): void;
2926
2931
  /**
2927
2932
  * Set attributes on visitor
2928
2933
  */
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as i, w as r, S as e, y as p, x as g } from "./index-aRW0ww4B.js";
1
+ import { D as i, w as r, S as e, y as p, x as g } from "./index-IMQ1RWe8.js";
2
2
  export {
3
3
  i as DismissReason,
4
4
  r as SprigAPI,