@appcues/web-sdk 7.24.1 → 7.24.4

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 (15) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/build/{bootstrap.npm.DOAXwcKF.js → bootstrap.npm.CiSiv5u_.js} +26 -16
  3. package/build/index.npm.js +1 -1
  4. package/build/{open-builder.D0GqutyR.js → open-builder.D24FICI0.js} +768 -760
  5. package/build/sagas/sagas.d.ts.map +1 -1
  6. package/build/views/components/modal-step.d.ts.map +1 -1
  7. package/package.json +1 -1
  8. /package/build/{checklist.337650133924744b50ef043c4a91c308ad019cdb.css → checklist.83dbbf9fa2a479d079b6d58adf2b2172e8685dd4.css} +0 -0
  9. /package/build/{container.337650133924744b50ef043c4a91c308ad019cdb.css → container.83dbbf9fa2a479d079b6d58adf2b2172e8685dd4.css} +0 -0
  10. /package/build/{debugger.337650133924744b50ef043c4a91c308ad019cdb.css → debugger.83dbbf9fa2a479d079b6d58adf2b2172e8685dd4.css} +0 -0
  11. /package/build/{modal-step-legacy-render.337650133924744b50ef043c4a91c308ad019cdb.css → modal-step-legacy-render.83dbbf9fa2a479d079b6d58adf2b2172e8685dd4.css} +0 -0
  12. /package/build/{modal.337650133924744b50ef043c4a91c308ad019cdb.css → modal.83dbbf9fa2a479d079b6d58adf2b2172e8685dd4.css} +0 -0
  13. /package/build/{satisfaction-survey.337650133924744b50ef043c4a91c308ad019cdb.css → satisfaction-survey.83dbbf9fa2a479d079b6d58adf2b2172e8685dd4.css} +0 -0
  14. /package/build/{test-mode.337650133924744b50ef043c4a91c308ad019cdb.css → test-mode.83dbbf9fa2a479d079b6d58adf2b2172e8685dd4.css} +0 -0
  15. /package/build/{tooltip.337650133924744b50ef043c4a91c308ad019cdb.css → tooltip.83dbbf9fa2a479d079b6d58adf2b2172e8685dd4.css} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @appcues/web-sdk
2
2
 
3
+ ## 7.24.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 07f7c83: Fix campaign/tactic IDs being stored as the string "null" in localStorage, causing analytics events to receive "null" instead of null for flows with no campaign or tactic assigned.
8
+
9
+ ## 7.24.2
10
+
11
+ ### Patch Changes
12
+
13
+ - 57e582f: Add entrance and exit animation controls to tooltip steps, and remove the incidental first-placement slide from all anchored overlays (tooltips, pins, hotspots).
14
+
15
+ ## 7.24.1
16
+
17
+ ### Patch Changes
18
+
19
+ - 3376501: Add an "Advance if selector can't be found" option to tooltip step settings, letting a flow automatically move to the next or a chosen step when a tooltip's target element is missing.
20
+
3
21
  ## 7.24.0
4
22
 
5
23
  ### Minor Changes
@@ -1946,7 +1946,7 @@ function ys(e) {
1946
1946
  }
1947
1947
  //#endregion
1948
1948
  //#region src/styles/checklist.css?url
1949
- var bs = "/generic/main/7.24.1/checklist.337650133924744b50ef043c4a91c308ad019cdb.css", xs = "sha256-V0XysNBfj4XuJbDIW5aWcjP7IedHdnAvCi8DeLwGv2o=", Ss = ys(bs), Cs = 30, ws = -300, Ts = "//cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/", Es = null, Ds = null, Os = null, ks = null, As = (e) => {
1949
+ var bs = "/generic/main/7.24.4/checklist.83dbbf9fa2a479d079b6d58adf2b2172e8685dd4.css", xs = "sha256-V0XysNBfj4XuJbDIW5aWcjP7IedHdnAvCi8DeLwGv2o=", Ss = ys(bs), Cs = 30, ws = -300, Ts = "//cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/", Es = null, Ds = null, Os = null, ks = null, As = (e) => {
1950
1950
  let { id: t, name: n, styles: r, text_tokens: i, items: a, is_checklist_expanded: o, is_first_view: s, frameHeight: c, beaconWidth: l, onBeaconClicked: u, onItemClicked: d, onOutsideClicked: f, onDismissClicked: p, onDismissCanceled: m, onDismissConfirmed: h, onCSSLoaded: g, onMinimizedClicked: _, shouldShowConfirmDismiss: v, onExpandChecklistResize: y, onCollapseBeaconResize: b, status: x, progress_state: S, is_sequential: C, is_dismissable: ee, showBadge: te, collisionMode: ne, collisionCoordinates: re, isInjectableSDK: ie, styling: ae } = e, oe = (e) => {
1951
1951
  ie || setTimeout(() => {
1952
1952
  as(e.elm);
@@ -3782,8 +3782,8 @@ var _u = (e, t, n) => {
3782
3782
  flowVersion: e.version_id,
3783
3783
  ...a ? { workflowId: a } : {},
3784
3784
  ...o ? { workflowTaskId: o } : {},
3785
- campaignId: e.campaign_id ?? null,
3786
- tacticId: e.tactic_id ?? null,
3785
+ ...e.campaign_id != null && { campaignId: e.campaign_id },
3786
+ ...e.tactic_id != null && { tacticId: e.tactic_id },
3787
3787
  timestamp: Date.now(),
3788
3788
  sessionId: t,
3789
3789
  localeName: r,
@@ -3800,8 +3800,8 @@ function yu(e, t, n) {
3800
3800
  return {
3801
3801
  checklistId: e.id,
3802
3802
  checklistName: e.internal_name,
3803
- campaignId: e.campaign_id ?? null,
3804
- tacticId: e.tactic_id ?? null,
3803
+ ...e.campaign_id != null && { campaignId: e.campaign_id },
3804
+ ...e.tactic_id != null && { tacticId: e.tactic_id },
3805
3805
  timestamp: Date.now(),
3806
3806
  sessionId: t,
3807
3807
  ...n
@@ -3812,8 +3812,8 @@ function bu(e, t, n, r) {
3812
3812
  checklistId: e.id,
3813
3813
  checklistName: e.internal_name,
3814
3814
  checklistVersion: e.version_id,
3815
- campaignId: e.campaign_id ?? null,
3816
- tacticId: e.tactic_id ?? null,
3815
+ ...e.campaign_id != null && { campaignId: e.campaign_id },
3816
+ ...e.tactic_id != null && { tacticId: e.tactic_id },
3817
3817
  itemId: t.id,
3818
3818
  itemIndex: t.index,
3819
3819
  itemLabel: t.label,
@@ -5155,7 +5155,7 @@ function lf(e) {
5155
5155
  e.elm && e.elm.focus();
5156
5156
  })), co(n, "field-options")) {
5157
5157
  let a = ro(n, "data-type-role"), o = ro(e, "data-max-selection");
5158
- if (z(n, "role", a ?? "radiogroup"), r && (z(n, "aria-labelledby", `label-${r}`), z(n, "tabindex", "0")), t) {
5158
+ if (z(n, "role", a ?? "radiogroup"), r && z(n, "aria-labelledby", `label-${r}`), t) {
5159
5159
  let e = n.children.filter((e) => e.children && e.children.find(({ sel: e }) => e === "input"));
5160
5160
  e.forEach((e) => {
5161
5161
  ao(e, "keypress", (t) => {
@@ -5296,7 +5296,7 @@ function vf(e, t, n, r) {
5296
5296
  }
5297
5297
  //#endregion
5298
5298
  //#region src/styles/modal.css?url
5299
- var yf = "/generic/main/7.24.1/modal.337650133924744b50ef043c4a91c308ad019cdb.css", bf = "/generic/main/7.24.1/modal-step-legacy-render.337650133924744b50ef043c4a91c308ad019cdb.css", xf = "sha256-Ull2pU6HfREgLRggKNNGV6AHaWBAw5OeIuetlkHnUZY=", Sf = "sha256-Ea5gC5g6QacVSWApI6ApmuZheqr4EDl50hD7GyRsaz0=", Cf = ys(bf), wf = ys(yf), Tf = new Set(["shorty", "slideout"]);
5299
+ var yf = "/generic/main/7.24.4/modal.83dbbf9fa2a479d079b6d58adf2b2172e8685dd4.css", bf = "/generic/main/7.24.4/modal-step-legacy-render.83dbbf9fa2a479d079b6d58adf2b2172e8685dd4.css", xf = "sha256-Ull2pU6HfREgLRggKNNGV6AHaWBAw5OeIuetlkHnUZY=", Sf = "sha256-Ea5gC5g6QacVSWApI6ApmuZheqr4EDl50hD7GyRsaz0=", Cf = ys(bf), wf = ys(yf), Tf = new Set(["shorty", "slideout"]);
5300
5300
  function Ef(e) {
5301
5301
  if (!e) return;
5302
5302
  let { style: t } = e;
@@ -5493,7 +5493,7 @@ function Mf({ patternType: e, hidden: t }) {
5493
5493
  }
5494
5494
  //#endregion
5495
5495
  //#region src/styles/tooltip.css?url
5496
- var Nf = "/generic/main/7.24.1/tooltip.337650133924744b50ef043c4a91c308ad019cdb.css", Pf = "sha256-r4KmO5sl5F5wxrVA5ANjinquA8nBo4ZaSoFboEJwvzs=", Ff = ys(Nf), If = "//twemoji.maxcdn.com/2/svg/", Lf = "//cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/", Rf = "pattern-title", zf = "Hide these tips";
5496
+ var Nf = "/generic/main/7.24.4/tooltip.83dbbf9fa2a479d079b6d58adf2b2172e8685dd4.css", Pf = "sha256-r4KmO5sl5F5wxrVA5ANjinquA8nBo4ZaSoFboEJwvzs=", Ff = ys(Nf), If = "//twemoji.maxcdn.com/2/svg/", Lf = "//cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/", Rf = "pattern-title", zf = "Hide these tips";
5497
5497
  function Bf(e, t) {
5498
5498
  return {
5499
5499
  skippable: e.skippable,
@@ -6415,7 +6415,7 @@ function Ep(e) {
6415
6415
  }
6416
6416
  //#endregion
6417
6417
  //#region src/styles/satisfaction-survey.css?url
6418
- var Dp = "/generic/main/7.24.1/satisfaction-survey.337650133924744b50ef043c4a91c308ad019cdb.css", Op = "sha256-sj4TgtPXrfHc+Sox7I2a7KJr+2zaoe/PhcBrvvCXAEw=", kp = ys(Dp), Ap, jp;
6418
+ var Dp = "/generic/main/7.24.4/satisfaction-survey.83dbbf9fa2a479d079b6d58adf2b2172e8685dd4.css", Op = "sha256-sj4TgtPXrfHc+Sox7I2a7KJr+2zaoe/PhcBrvvCXAEw=", kp = ys(Dp), Ap, jp;
6419
6419
  function Mp(e) {
6420
6420
  let t = L(e), n = hr(e), r = mr(e), i = Sr(e), a = xr(e, br(e)), o = i[a], s = t.attributes.pattern_type, { position: c } = t.attributes, l = e.views.callbacks[w.SATISFACTION_SURVEY], u = n.cssLoaded, d = Ns(e.settings), f = r !== T.SHOWING, p = {}, m = u && P.inArray([T.SHOWING, T.WILL_CLOSE], r);
6421
6421
  m || (p = { display: "none" }), p = {
@@ -8291,7 +8291,7 @@ var h_ = "v2", g_ = (e) => {
8291
8291
  return window.createAppcues(n);
8292
8292
  }, __ = async () => {
8293
8293
  if (typeof window.createAppcues != "function") {
8294
- let e = await import("./open-builder.D0GqutyR.js");
8294
+ let e = await import("./open-builder.D24FICI0.js");
8295
8295
  window.createAppcues = e.default;
8296
8296
  }
8297
8297
  }, v_ = async () => (await __(), g_), y_ = "EVENTS_TRIGGERED", b_ = q(y_), x_ = q(uc.SET_SESSION), S_ = q(uc.START_SESSION), C_ = q(uc.SESSION_STARTED);
@@ -9424,7 +9424,17 @@ function* Ny() {
9424
9424
  let t, n;
9425
9425
  if (yield j(_v, "apc_next_content_id")) {
9426
9426
  let r = yield j(vv, ne);
9427
- yield j(gv, ne), e || (e = r, (yield j(_v, "apc_next_campaign_id")) && (t = yield j(vv, te)), (yield j(_v, "apc_next_tactic_id")) && (n = yield j(vv, y))), yield j(gv, te), yield j(gv, y);
9427
+ if (yield j(gv, ne), !e) {
9428
+ if (e = r, yield j(_v, "apc_next_campaign_id")) {
9429
+ let e = yield j(vv, te);
9430
+ t = e === "null" ? null : e;
9431
+ }
9432
+ if (yield j(_v, "apc_next_tactic_id")) {
9433
+ let e = yield j(vv, y);
9434
+ n = e === "null" ? null : e;
9435
+ }
9436
+ }
9437
+ yield j(gv, te), yield j(gv, y);
9428
9438
  }
9429
9439
  e && (yield A(kc(e, {
9430
9440
  ...t !== void 0 && { campaignId: t },
@@ -10468,7 +10478,7 @@ function Vb({ user: e }) {
10468
10478
  }
10469
10479
  //#endregion
10470
10480
  //#region src/styles/debugger.css?url
10471
- var Hb = "/generic/main/7.24.1/debugger.337650133924744b50ef043c4a91c308ad019cdb.css";
10481
+ var Hb = "/generic/main/7.24.4/debugger.83dbbf9fa2a479d079b6d58adf2b2172e8685dd4.css";
10472
10482
  //#endregion
10473
10483
  //#region src/scripts/views/renderers/render-debugger.jsx
10474
10484
  qa();
@@ -10551,7 +10561,7 @@ var Xb = "https://docs.appcues.com/user-experiences-faq/faq-test-mode", Zb = (e)
10551
10561
  "class-clickable": !0,
10552
10562
  "on-click": t.onCancelClicked
10553
10563
  }, "End Test"))));
10554
- }, Qb = "/generic/main/7.24.1/test-mode.337650133924744b50ef043c4a91c308ad019cdb.css";
10564
+ }, Qb = "/generic/main/7.24.4/test-mode.83dbbf9fa2a479d079b6d58adf2b2172e8685dd4.css";
10555
10565
  //#endregion
10556
10566
  //#region src/scripts/views/renderers/render-test-mode-banner.jsx
10557
10567
  qa();
@@ -11971,7 +11981,7 @@ function* jC() {
11971
11981
  }
11972
11982
  //#endregion
11973
11983
  //#region src/styles/container.css?url
11974
- var MC = "/generic/main/7.24.1/container.337650133924744b50ef043c4a91c308ad019cdb.css", NC = "sha256-lSNoLP5iR6z+5ZIuDIIBsSUCzS4XW0jHmE9J8Qsp1ao=";
11984
+ var MC = "/generic/main/7.24.4/container.83dbbf9fa2a479d079b6d58adf2b2172e8685dd4.css", NC = "sha256-lSNoLP5iR6z+5ZIuDIIBsSUCzS4XW0jHmE9J8Qsp1ao=";
11975
11985
  window.performance && window.performance.mark && window.performance.mark("apc-init"), wg();
11976
11986
  var PC = window.AppcuesBundleSettings;
11977
11987
  [...document.documentElement.querySelectorAll("link")].forEach((e) => {
@@ -35,7 +35,7 @@ function s(e, t, n) {
35
35
  };
36
36
  }
37
37
  async function c() {
38
- let { default: e } = await import("./bootstrap.npm.DOAXwcKF.js");
38
+ let { default: e } = await import("./bootstrap.npm.CiSiv5u_.js");
39
39
  window.Appcues = e, i = !0;
40
40
  }
41
41
  async function l(e) {