@sprig-technologies/sprig-browser 2.40.0 → 2.40.1

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 (33) hide show
  1. package/dist/conversational-styles-BiL7hMhj.js +4 -0
  2. package/dist/conversational-styles-DlhTFTL6.cjs +1 -0
  3. package/dist/conversational-ui-DWOygt3h.cjs +1 -0
  4. package/dist/conversational-ui-Qad4jSLB.js +579 -0
  5. package/dist/{core-CvM2f3CD.cjs → core-oShYwNGS.cjs} +3 -3
  6. package/dist/{core-CzqULo6b.js → core-swSxd_ys.js} +447 -454
  7. package/dist/core.cjs +1 -1
  8. package/dist/core.d.ts +11 -0
  9. package/dist/core.js +2 -2
  10. package/dist/debounce-CMb8f7wh.js +9 -0
  11. package/dist/debounce-DsC7462b.cjs +1 -0
  12. package/dist/{getAttributedUrl-DUesmkhh.js → getAttributedUrl-C8OLV7E9.js} +241 -244
  13. package/dist/{getAttributedUrl-C1AsMcwH.cjs → getAttributedUrl-DuHEi0A7.cjs} +6 -6
  14. package/dist/index-DCMlaRyW.cjs +1 -0
  15. package/dist/index-Zzh93qL6.js +695 -0
  16. package/dist/index.cjs +1 -1
  17. package/dist/index.d.ts +11 -0
  18. package/dist/index.js +2 -2
  19. package/dist/{metricsReporter-BChkCOLD.js → metricsReporter-D0NmprYW.js} +1 -1
  20. package/dist/{metricsReporter-Bqy_vLyq.cjs → metricsReporter-DC-3J5Sa.cjs} +1 -1
  21. package/dist/replay.cjs +1 -1
  22. package/dist/replay.js +134 -138
  23. package/dist/view-Cu1EeVuN.js +1503 -0
  24. package/dist/view-DAxlTNxd.cjs +1 -0
  25. package/package.json +1 -1
  26. package/dist/conversational-styles-CWNea3pP.js +0 -4
  27. package/dist/conversational-styles-CzhxRRD3.cjs +0 -1
  28. package/dist/conversational-ui-D2Y5H9To.js +0 -610
  29. package/dist/conversational-ui-DJlCFQ-6.cjs +0 -1
  30. package/dist/index-D1_q2uph.cjs +0 -1
  31. package/dist/index-mshAF3wp.js +0 -709
  32. package/dist/view-C7XtFlCN.cjs +0 -1
  33. package/dist/view-afp9mz2J.js +0 -1491
package/dist/core.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("./metricsReporter-Bqy_vLyq.cjs"),e=require("./core-CvM2f3CD.cjs");exports.DismissReason=i.DismissReason,exports.SprigEvent=i.SprigEvent,exports.SprigAPI=e.SprigAPI,exports.default=e.core,exports.sprig=e.sprig;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("./metricsReporter-DC-3J5Sa.cjs"),e=require("./core-oShYwNGS.cjs");exports.DismissReason=i.DismissReason,exports.SprigEvent=i.SprigEvent,exports.SprigAPI=e.SprigAPI,exports.default=e.core,exports.sprig=e.sprig;
package/dist/core.d.ts CHANGED
@@ -1081,6 +1081,7 @@ interface TextUrlPromptCard extends BaseCard {
1081
1081
  richTextBody: RichTextBody;
1082
1082
  questionHtml?: string;
1083
1083
  };
1084
+ displayLogic: RoutingOptions;
1084
1085
  routingOptions: RoutingOptions;
1085
1086
  };
1086
1087
  type: "texturlprompt";
@@ -1107,6 +1108,7 @@ interface ConsentLegalCard extends BaseCard {
1107
1108
  submitButtonText: string;
1108
1109
  questionHtml?: string;
1109
1110
  };
1111
+ displayLogic: RoutingOptions;
1110
1112
  routingOptions: RoutingOptions;
1111
1113
  };
1112
1114
  type: "consentlegal";
@@ -1164,6 +1166,7 @@ interface RecordedTaskCard extends BaseCard {
1164
1166
  message: string;
1165
1167
  options: [];
1166
1168
  properties: RecordedTaskCardProperties;
1169
+ displayLogic: RoutingOptions;
1167
1170
  routingOptions: RoutingOptions<"given_up">;
1168
1171
  };
1169
1172
  type: "recordedtask";
@@ -1192,6 +1195,7 @@ interface LikertCard extends BaseCard {
1192
1195
  scaleLabelType: ScaleLabelType;
1193
1196
  required: boolean;
1194
1197
  };
1198
+ displayLogic: RoutingOptions;
1195
1199
  routingOptions: RoutingOptions<"eq" | "given_up" | "gt" | "gte" | "lt" | "lte" | "neq">;
1196
1200
  };
1197
1201
  type: "likert";
@@ -1211,6 +1215,7 @@ interface OpenTextCard extends BaseCard {
1211
1215
  richTextBody: RichTextBody;
1212
1216
  skipButtonText?: string;
1213
1217
  };
1218
+ displayLogic: RoutingOptions;
1214
1219
  routingOptions: RoutingOptions<"contains" | "notcontains">;
1215
1220
  };
1216
1221
  type: "open";
@@ -1262,6 +1267,7 @@ declare enum MaxSelectModes {
1262
1267
  }
1263
1268
  interface MultiChoiceCard<C extends Comparator = DefaultComparator> extends BaseCard {
1264
1269
  props: CommonMultipleChoiceProps & {
1270
+ displayLogic: RoutingOptions;
1265
1271
  routingOptions: RoutingOptions<C>;
1266
1272
  };
1267
1273
  }
@@ -1276,6 +1282,7 @@ interface MatrixCard extends BaseCard {
1276
1282
  options: MultipleChoiceOption[];
1277
1283
  message: string;
1278
1284
  routingOptions: RoutingOptions<"skipped" | "partial" | "answered">;
1285
+ displayLogic: RoutingOptions;
1279
1286
  properties: {
1280
1287
  buttonText?: string;
1281
1288
  captionText: string;
@@ -1303,6 +1310,7 @@ interface NPSCard extends BaseCard {
1303
1310
  labels: Labels;
1304
1311
  required: boolean;
1305
1312
  };
1313
+ displayLogic: RoutingOptions;
1306
1314
  routingOptions: RoutingOptions<"eq" | "gt" | "gte" | "lt" | "lte" | "neq">;
1307
1315
  };
1308
1316
  type: "nps";
@@ -1332,6 +1340,7 @@ interface RankOrderType extends BaseCard {
1332
1340
  required: boolean;
1333
1341
  randomize: Randomize;
1334
1342
  };
1343
+ displayLogic: RoutingOptions;
1335
1344
  routingOptions: RoutingOptions<"eq" | "gt" | "gte" | "lt" | "lte" | "neq">;
1336
1345
  };
1337
1346
  type: "rankorder";
@@ -1348,6 +1357,7 @@ interface MaxDiffType extends BaseCard {
1348
1357
  };
1349
1358
  message: string;
1350
1359
  options: MaxDiffOption[];
1360
+ displayLogic: RoutingOptions;
1351
1361
  routingOptions: RoutingOptions<"skipped" | "answered">;
1352
1362
  properties: {
1353
1363
  ratingIcons?: {
@@ -1388,6 +1398,7 @@ interface VideoVoiceCard extends BaseCard {
1388
1398
  videoUrl: string;
1389
1399
  };
1390
1400
  routingOptions: RoutingOptions;
1401
+ displayLogic: RoutingOptions;
1391
1402
  };
1392
1403
  type: "videovoice";
1393
1404
  }
package/dist/core.js CHANGED
@@ -1,5 +1,5 @@
1
- import { D as r, S as e } from "./metricsReporter-BChkCOLD.js";
2
- import { S as o, c as p, s as t } from "./core-CzqULo6b.js";
1
+ import { D as r, S as e } from "./metricsReporter-D0NmprYW.js";
2
+ import { S as o, c as p, s as t } from "./core-swSxd_ys.js";
3
3
  export {
4
4
  r as DismissReason,
5
5
  o as SprigAPI,
@@ -0,0 +1,9 @@
1
+ const i = (t, o) => {
2
+ let e;
3
+ return (r) => {
4
+ clearTimeout(e), e = window.setTimeout(() => t(r), o);
5
+ };
6
+ };
7
+ export {
8
+ i as d
9
+ };
@@ -0,0 +1 @@
1
+ "use strict";exports.debounce=(t,o)=>{let e;return u=>{clearTimeout(e),e=window.setTimeout(()=>t(u),o)}};