@sprig-technologies/sprig-bundled 1.1.6 → 1.1.7

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.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CY2H9MX9.cjs");exports.DismissReason=e.DismissReason,exports.SprigAPI=e.SprigAPI,exports.SprigEvent=e.SprigEvent,exports.sprig=e.sprig;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-C7xpx0J5.cjs");exports.DismissReason=e.DismissReason,exports.SprigAPI=e.SprigAPI,exports.SprigEvent=e.SprigEvent,exports.sprig=e.sprig;
package/dist/index.d.ts CHANGED
@@ -1346,6 +1346,7 @@ declare enum SprigEvent {
1346
1346
  FeedbackButtonLoaded = "feedback.button.loaded",
1347
1347
  SDKReady = "sdk.ready",
1348
1348
  SurveyAppeared = "survey.appeared",
1349
+ SurveyCloseRequested = "survey.closeRequested",//This event signals to mobile the survey overlay can close
1349
1350
  SurveyClosed = "survey.closed",
1350
1351
  SurveyDimensions = "survey.dimensions",
1351
1352
  SurveyFadingOut = "survey.fadingOut",
@@ -1485,6 +1486,14 @@ type SprigEventMap = {
1485
1486
  "survey.id": number;
1486
1487
  }
1487
1488
  ];
1489
+ [SprigEvent.SurveyCloseRequested]: [
1490
+ {
1491
+ initiator: DismissReason;
1492
+ name?: string;
1493
+ studyType?: StudyType;
1494
+ "survey.id": number;
1495
+ }
1496
+ ];
1488
1497
  [SprigEvent.SurveyWillClose]: [
1489
1498
  {
1490
1499
  initiator: DismissReason;
@@ -2003,10 +2012,7 @@ declare class SprigAPI {
2003
2012
  SURVEY_DIMENSIONS: SprigEvent;
2004
2013
  SURVEY_FADING_OUT: SprigEvent;
2005
2014
  SURVEY_HEIGHT: SprigEvent;
2006
- SURVEY_WIDTH: SprigEvent; /**
2007
- * Track an event to show survey if eligible
2008
- * @param eventName name of event to track
2009
- */
2015
+ SURVEY_WIDTH: SprigEvent;
2010
2016
  SURVEY_PRESENTED: SprigEvent;
2011
2017
  SURVEY_LIFE_CYCLE: SprigEvent;
2012
2018
  SURVEY_WILL_CLOSE: SprigEvent;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as i, j as r, S as p, k as e } from "./index-_6NzDQiF.js";
1
+ import { D as i, j as r, S as p, k as e } from "./index-DvS_ADe1.js";
2
2
  export {
3
3
  i as DismissReason,
4
4
  r as SprigAPI,