@appcues/web-sdk 7.20.0 → 7.20.2

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 +17 -0
  2. package/build/{bootstrap.npm.C0JAoUrv.js → bootstrap.npm.Bf__ZTTS.js} +10 -10
  3. package/build/{index.CHH3C8H9.js → index.DdV7zUJk.js} +1 -1
  4. package/build/{index.npm.DnRKRzsR.js → index.npm.BwxmY3q0.js} +1 -1
  5. package/build/index.npm.js +1 -1
  6. package/build/{open-builder.CSS9totY.js → open-builder.Br1_A3fi.js} +55 -48
  7. package/package.json +1 -1
  8. /package/build/{checklist.b579c5c4483fbe7a2708442cd1a13a59ce0c2c6e.css → checklist.6a6a274575024b516c91cfd03d287c29b5744063.css} +0 -0
  9. /package/build/{container.b579c5c4483fbe7a2708442cd1a13a59ce0c2c6e.css → container.6a6a274575024b516c91cfd03d287c29b5744063.css} +0 -0
  10. /package/build/{debugger.b579c5c4483fbe7a2708442cd1a13a59ce0c2c6e.css → debugger.6a6a274575024b516c91cfd03d287c29b5744063.css} +0 -0
  11. /package/build/{modal-step-legacy-render.b579c5c4483fbe7a2708442cd1a13a59ce0c2c6e.css → modal-step-legacy-render.6a6a274575024b516c91cfd03d287c29b5744063.css} +0 -0
  12. /package/build/{modal.b579c5c4483fbe7a2708442cd1a13a59ce0c2c6e.css → modal.6a6a274575024b516c91cfd03d287c29b5744063.css} +0 -0
  13. /package/build/{satisfaction-survey.b579c5c4483fbe7a2708442cd1a13a59ce0c2c6e.css → satisfaction-survey.6a6a274575024b516c91cfd03d287c29b5744063.css} +0 -0
  14. /package/build/{test-mode.b579c5c4483fbe7a2708442cd1a13a59ce0c2c6e.css → test-mode.6a6a274575024b516c91cfd03d287c29b5744063.css} +0 -0
  15. /package/build/{tooltip.b579c5c4483fbe7a2708442cd1a13a59ce0c2c6e.css → tooltip.6a6a274575024b516c91cfd03d287c29b5744063.css} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @appcues/web-sdk
2
2
 
3
+ ## 7.20.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 926b509: Fixes transparent buttons in tooltips by skipping accessibility helper
8
+
9
+ ## 7.20.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 38a6298: Enhances dialog behavior for tooltip backdrop styles
14
+ - bf49f47: Enhances event handling to bind events to custom target elements when necessary
15
+
16
+ ### Patch Changes
17
+
18
+ - 1fdd9c3: Fix arrow rendering for experiences with overlay
19
+
3
20
  ## 7.19.4
4
21
 
5
22
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import { C as X, a as Wn, A as _t, M as zd, b as Xd, c as ie, d as zt, V as wo, e as wr, f as Xe, g as kt, B as gt, T as Qi, h as Jd, i as Qd, j as Zd, k as Qo, l as Mn, F as Y, G as Zo, m as Yl, E as fn, n as ef, D as es, o as tf, p as Ni, L as De, S as rc, q as ts, r as ve, s as Xt, t as ns, N as $n, u as zl, v as nf, w as No, W as rf, x as hi, y as of, z as wn, U as rs, H as sf, I as cf, J as is, K as pn, O as ko, P as xr, Q as mi, R as lf, X as Zi, Y as Xl, Z as Vn, _ as eo, $ as Un, a0 as Oo, a1 as ic, a2 as Gn, a3 as af } from "./index.npm.DnRKRzsR.js";
1
+ import { C as X, a as Wn, A as _t, M as zd, b as Xd, c as ie, d as zt, V as wo, e as wr, f as Xe, g as kt, B as gt, T as Qi, h as Jd, i as Qd, j as Zd, k as Qo, l as Mn, F as Y, G as Zo, m as Yl, E as fn, n as ef, D as es, o as tf, p as Ni, L as De, S as rc, q as ts, r as ve, s as Xt, t as ns, N as $n, u as zl, v as nf, w as No, W as rf, x as hi, y as of, z as wn, U as rs, H as sf, I as cf, J as is, K as pn, O as ko, P as xr, Q as mi, R as lf, X as Zi, Y as Xl, Z as Vn, _ as eo, $ as Un, a0 as Oo, a1 as ic, a2 as Gn, a3 as af } from "./index.npm.BwxmY3q0.js";
2
2
  var uf = Object.assign || function(e) {
3
3
  for (var t = 1; t < arguments.length; t++) {
4
4
  var n = arguments[t];
@@ -2175,7 +2175,7 @@ function jt(e) {
2175
2175
  }
2176
2176
  return `https://fast.appcues.com${e}`;
2177
2177
  }
2178
- const Xh = "/generic/main/7.20.0/checklist.b579c5c4483fbe7a2708442cd1a13a59ce0c2c6e.css", Jh = "sha256-B3IM66R3am8teThQaWvlSxHaPUFXo+mNdS8RK5z2nsw=", so = jt(Xh), co = 30, Qh = -300, Zh = "//cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/";
2178
+ const Xh = "/generic/main/7.20.2/checklist.6a6a274575024b516c91cfd03d287c29b5744063.css", Jh = "sha256-B3IM66R3am8teThQaWvlSxHaPUFXo+mNdS8RK5z2nsw=", so = jt(Xh), co = 30, Qh = -300, Zh = "//cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/";
2179
2179
  let pr = null, hr = null, mr = null, Qr = null;
2180
2180
  const em = (e) => {
2181
2181
  const {
@@ -6044,7 +6044,7 @@ function Os(e, t, n, r) {
6044
6044
  $h(e.defaultView, i), window.setTimeout(i, 200);
6045
6045
  }
6046
6046
  }
6047
- const Jg = "/generic/main/7.20.0/modal.b579c5c4483fbe7a2708442cd1a13a59ce0c2c6e.css", Qg = "/generic/main/7.20.0/modal-step-legacy-render.b579c5c4483fbe7a2708442cd1a13a59ce0c2c6e.css", Zg = "sha256-4/hpW9ONoiD80NHCgX4Nn/iogB1Wblm1nx1DUXqgDZk=", ey = "sha256-Ea5gC5g6QacVSWApI6ApmuZheqr4EDl50hD7GyRsaz0=", ty = jt(Qg), ni = jt(Jg), ol = /* @__PURE__ */ new Set(["shorty", "slideout"]);
6047
+ const Jg = "/generic/main/7.20.2/modal.6a6a274575024b516c91cfd03d287c29b5744063.css", Qg = "/generic/main/7.20.2/modal-step-legacy-render.6a6a274575024b516c91cfd03d287c29b5744063.css", Zg = "sha256-4/hpW9ONoiD80NHCgX4Nn/iogB1Wblm1nx1DUXqgDZk=", ey = "sha256-Ea5gC5g6QacVSWApI6ApmuZheqr4EDl50hD7GyRsaz0=", ty = jt(Qg), ni = jt(Jg), ol = /* @__PURE__ */ new Set(["shorty", "slideout"]);
6048
6048
  function sl(e) {
6049
6049
  if (!e) return;
6050
6050
  const { style: t } = e, n = t.transform;
@@ -6316,7 +6316,7 @@ function oy({ patternType: e, hidden: t }) {
6316
6316
  }
6317
6317
  );
6318
6318
  }
6319
- const sy = "/generic/main/7.20.0/tooltip.b579c5c4483fbe7a2708442cd1a13a59ce0c2c6e.css", cy = "sha256-9y1o/fRpWDU82ZWAjihfIJSZnx+knnDTkr5DYPSqYhg=", ri = jt(sy), ll = "//twemoji.maxcdn.com/2/svg/", ly = "//cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/", Ar = "hs", al = "pattern-title", ul = "Hide these tips";
6319
+ const sy = "/generic/main/7.20.2/tooltip.6a6a274575024b516c91cfd03d287c29b5744063.css", cy = "sha256-9y1o/fRpWDU82ZWAjihfIJSZnx+knnDTkr5DYPSqYhg=", ri = jt(sy), ll = "//twemoji.maxcdn.com/2/svg/", ly = "//cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/", Ar = "hs", al = "pattern-title", ul = "Hide these tips";
6320
6320
  function ay(e, t) {
6321
6321
  return {
6322
6322
  skippable: e.skippable,
@@ -7611,7 +7611,7 @@ function Py(e) {
7611
7611
  )
7612
7612
  )));
7613
7613
  }
7614
- const Dy = "/generic/main/7.20.0/satisfaction-survey.b579c5c4483fbe7a2708442cd1a13a59ce0c2c6e.css", Uy = "sha256-sxJdJpfLXrOLqMGRB1bfYQKkawXgstmlKYOqA1Z9CPo=", yo = jt(Dy);
7614
+ const Dy = "/generic/main/7.20.2/satisfaction-survey.6a6a274575024b516c91cfd03d287c29b5744063.css", Uy = "sha256-sxJdJpfLXrOLqMGRB1bfYQKkawXgstmlKYOqA1Z9CPo=", yo = jt(Dy);
7615
7615
  let gl, ii;
7616
7616
  function Fy(e) {
7617
7617
  const t = Te(e), n = Ur(e), r = je(e), i = it(e), o = at(e), s = Qt(e, o), c = i[s], l = t.attributes.pattern_type, { position: a } = t.attributes, d = e.views.callbacks[X.SATISFACTION_SURVEY], f = n.cssLoaded, m = Bi(e.settings), p = r !== ie.SHOWING;
@@ -12974,7 +12974,7 @@ function Ml({ user: e }) {
12974
12974
  };
12975
12975
  return /* @__PURE__ */ u.html("table", null, /* @__PURE__ */ u.html("thead", null, /* @__PURE__ */ u.html("tr", null, /* @__PURE__ */ u.html("th", null, "Property"), /* @__PURE__ */ u.html("th", null, "Value"))), /* @__PURE__ */ u.html("tbody", null, n.sort(r).map((i) => /* @__PURE__ */ u.html("tr", null, /* @__PURE__ */ u.html("td", null, i.name), /* @__PURE__ */ u.html("td", null, JSON.stringify(i.value))))));
12976
12976
  }
12977
- const U_ = "/generic/main/7.20.0/debugger.b579c5c4483fbe7a2708442cd1a13a59ce0c2c6e.css", F_ = "sha256-LMjol9lu4iFfr9P6lIri9GX+onG7x+pqiR+EzoaK2sU=", H_ = jt(U_), vo = tr(
12977
+ const U_ = "/generic/main/7.20.2/debugger.6a6a274575024b516c91cfd03d287c29b5744063.css", F_ = "sha256-LMjol9lu4iFfr9P6lIri9GX+onG7x+pqiR+EzoaK2sU=", H_ = jt(U_), vo = tr(
12978
12978
  [
12979
12979
  or,
12980
12980
  ir,
@@ -13078,7 +13078,7 @@ const W_ = "https://docs.appcues.com/user-experiences-faq/faq-test-mode", V_ = (
13078
13078
  },
13079
13079
  "Restart"
13080
13080
  ), /* @__PURE__ */ u.html("div", { "class-clickable": !0, "on-click": t.onCancelClicked }, "End Test"))));
13081
- }, G_ = "/generic/main/7.20.0/test-mode.b579c5c4483fbe7a2708442cd1a13a59ce0c2c6e.css", j_ = "sha256-nd0yl8XfotWCT+9jaAUZdIayDPvnbBNhrvbhzXcWLNs=", q_ = jt(G_), Ao = tr(
13081
+ }, G_ = "/generic/main/7.20.2/test-mode.6a6a274575024b516c91cfd03d287c29b5744063.css", j_ = "sha256-nd0yl8XfotWCT+9jaAUZdIayDPvnbBNhrvbhzXcWLNs=", q_ = jt(G_), Ao = tr(
13082
13082
  [
13083
13083
  or,
13084
13084
  ir,
@@ -14196,7 +14196,7 @@ const ov = "v2", sv = (e) => {
14196
14196
  return window.createAppcues(n);
14197
14197
  }, cv = async () => {
14198
14198
  {
14199
- const e = await import("./open-builder.CSS9totY.js");
14199
+ const e = await import("./open-builder.Br1_A3fi.js");
14200
14200
  window.createAppcues = e.default;
14201
14201
  }
14202
14202
  return sv;
@@ -14243,7 +14243,7 @@ function* av({ payload: e }) {
14243
14243
  (o) => o.type === "launchpad"
14244
14244
  );
14245
14245
  if (i) {
14246
- yield import("./index.CHH3C8H9.js");
14246
+ yield import("./index.DdV7zUJk.js");
14247
14247
  const o = yield A(Te);
14248
14248
  if (!(o?.type === X.HOTSPOTS) && o) {
14249
14249
  const { experiences: c, launchpads: l } = bi(n);
@@ -15182,7 +15182,7 @@ function* gA() {
15182
15182
  o.length > 0 && (yield g(jl, o)), e.close(), t.close();
15183
15183
  }
15184
15184
  }
15185
- const yA = "/generic/main/7.20.0/container.b579c5c4483fbe7a2708442cd1a13a59ce0c2c6e.css", SA = "sha256-hDvMQUFhRDDvNjMfTY9We9v9kJw7VBaXX8yL5nYcIcA=";
15185
+ const yA = "/generic/main/7.20.2/container.6a6a274575024b516c91cfd03d287c29b5744063.css", SA = "sha256-hDvMQUFhRDDvNjMfTY9We9v9kJw7VBaXX8yL5nYcIcA=";
15186
15186
  window.performance && window.performance.mark && window.performance.mark("apc-init");
15187
15187
  gT();
15188
15188
  const Tt = window.AppcuesBundleSettings;
@@ -1,4 +1,4 @@
1
- import { c as ut, g as Ve, o as We, a as Ze, n as te, b as Fe } from "./bootstrap.npm.C0JAoUrv.js";
1
+ import { c as ut, g as Ve, o as We, a as Ze, n as te, b as Fe } from "./bootstrap.npm.Bf__ZTTS.js";
2
2
  const pt = window, Vt = pt.ShadowRoot && (pt.ShadyCSS === void 0 || pt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Wt = /* @__PURE__ */ Symbol(), ee = /* @__PURE__ */ new WeakMap();
3
3
  let xe = class {
4
4
  constructor(t, i, s) {
@@ -223,7 +223,7 @@ function u(s, e, t) {
223
223
  };
224
224
  }
225
225
  async function d() {
226
- const { default: s } = await import("./bootstrap.npm.C0JAoUrv.js").then((e) => e.d);
226
+ const { default: s } = await import("./bootstrap.npm.Bf__ZTTS.js").then((e) => e.d);
227
227
  window.Appcues = s, T = !0;
228
228
  }
229
229
  async function l(s) {
@@ -1,4 +1,4 @@
1
- import { a5 as s, a4 as t } from "./index.npm.DnRKRzsR.js";
1
+ import { a5 as s, a4 as t } from "./index.npm.BwxmY3q0.js";
2
2
  export {
3
3
  s as default,
4
4
  t as setup
@@ -3046,8 +3046,8 @@ er.exports;
3046
3046
  var ri;
3047
3047
  function Ml() {
3048
3048
  return ri || (ri = 1, (function(e, t) {
3049
- var n = 200, r = "__lodash_hash_undefined__", o = 1, i = 2, a = 9007199254740991, s = "[object Arguments]", l = "[object Array]", f = "[object AsyncFunction]", g = "[object Boolean]", u = "[object Date]", c = "[object Error]", h = "[object Function]", d = "[object GeneratorFunction]", v = "[object Map]", y = "[object Number]", E = "[object Null]", m = "[object Object]", x = "[object Promise]", T = "[object Proxy]", S = "[object RegExp]", I = "[object Set]", O = "[object String]", R = "[object Symbol]", N = "[object Undefined]", D = "[object WeakMap]", H = "[object ArrayBuffer]", M = "[object DataView]", U = "[object Float32Array]", Y = "[object Float64Array]", G = "[object Int8Array]", te = "[object Int16Array]", se = "[object Int32Array]", B = "[object Uint8Array]", q = "[object Uint8ClampedArray]", pe = "[object Uint16Array]", J = "[object Uint32Array]", ue = /[\\^$.*+?()[\]{}|]/g, be = /^\[object .+?Constructor\]$/, K = /^(?:0|[1-9]\d*)$/, W = {};
3050
- W[U] = W[Y] = W[G] = W[te] = W[se] = W[B] = W[q] = W[pe] = W[J] = !0, W[s] = W[l] = W[H] = W[g] = W[M] = W[u] = W[c] = W[h] = W[v] = W[y] = W[m] = W[S] = W[I] = W[O] = W[D] = !1;
3049
+ var n = 200, r = "__lodash_hash_undefined__", o = 1, i = 2, a = 9007199254740991, s = "[object Arguments]", l = "[object Array]", f = "[object AsyncFunction]", g = "[object Boolean]", u = "[object Date]", c = "[object Error]", h = "[object Function]", d = "[object GeneratorFunction]", v = "[object Map]", y = "[object Number]", E = "[object Null]", m = "[object Object]", x = "[object Promise]", T = "[object Proxy]", S = "[object RegExp]", I = "[object Set]", O = "[object String]", R = "[object Symbol]", N = "[object Undefined]", D = "[object WeakMap]", H = "[object ArrayBuffer]", M = "[object DataView]", U = "[object Float32Array]", Y = "[object Float64Array]", G = "[object Int8Array]", te = "[object Int16Array]", se = "[object Int32Array]", B = "[object Uint8Array]", q = "[object Uint8ClampedArray]", de = "[object Uint16Array]", J = "[object Uint32Array]", ue = /[\\^$.*+?()[\]{}|]/g, be = /^\[object .+?Constructor\]$/, K = /^(?:0|[1-9]\d*)$/, W = {};
3050
+ W[U] = W[Y] = W[G] = W[te] = W[se] = W[B] = W[q] = W[de] = W[J] = !0, W[s] = W[l] = W[H] = W[g] = W[M] = W[u] = W[c] = W[h] = W[v] = W[y] = W[m] = W[S] = W[I] = W[O] = W[D] = !1;
3051
3051
  var Ne = typeof Fe == "object" && Fe && Fe.Object === Object && Fe, ee = typeof self == "object" && self && self.Object === Object && self, fe = Ne || ee || Function("return this")(), Ee = t && !t.nodeType && t, $e = Ee && !0 && e && !e.nodeType && e, Oe = $e && $e.exports === Ee, He = Oe && Ne.process, ze = (function() {
3052
3052
  try {
3053
3053
  return He && He.binding && He.binding("util");
@@ -3055,15 +3055,15 @@ function Ml() {
3055
3055
  }
3056
3056
  })(), wt = ze && ze.isTypedArray;
3057
3057
  function jt(b, _) {
3058
- for (var j = -1, z = b == null ? 0 : b.length, de = 0, Q = []; ++j < z; ) {
3058
+ for (var j = -1, z = b == null ? 0 : b.length, pe = 0, Q = []; ++j < z; ) {
3059
3059
  var ge = b[j];
3060
- _(ge, j, b) && (Q[de++] = ge);
3060
+ _(ge, j, b) && (Q[pe++] = ge);
3061
3061
  }
3062
3062
  return Q;
3063
3063
  }
3064
3064
  function lt(b, _) {
3065
- for (var j = -1, z = _.length, de = b.length; ++j < z; )
3066
- b[de + j] = _[j];
3065
+ for (var j = -1, z = _.length, pe = b.length; ++j < z; )
3066
+ b[pe + j] = _[j];
3067
3067
  return b;
3068
3068
  }
3069
3069
  function on(b, _) {
@@ -3090,8 +3090,8 @@ function Ml() {
3090
3090
  }
3091
3091
  function cn(b) {
3092
3092
  var _ = -1, j = Array(b.size);
3093
- return b.forEach(function(z, de) {
3094
- j[++_] = [de, z];
3093
+ return b.forEach(function(z, pe) {
3094
+ j[++_] = [pe, z];
3095
3095
  }), j;
3096
3096
  }
3097
3097
  function ln(b, _) {
@@ -3241,11 +3241,11 @@ function Ml() {
3241
3241
  }
3242
3242
  pt.prototype.clear = oc, pt.prototype.delete = ic, pt.prototype.get = ac, pt.prototype.has = sc, pt.prototype.set = cc;
3243
3243
  function lc(b, _) {
3244
- var j = $n(b), z = !j && _c(b), de = !j && !z && Nr(b), Q = !j && !z && !de && Bo(b), ge = j || z || de || Q, Se = ge ? an(b.length, String) : [], _e = Se.length;
3244
+ var j = $n(b), z = !j && _c(b), pe = !j && !z && Nr(b), Q = !j && !z && !pe && Bo(b), ge = j || z || pe || Q, Se = ge ? an(b.length, String) : [], _e = Se.length;
3245
3245
  for (var ve in b)
3246
3246
  k.call(b, ve) && !(ge && // Safari 9 has enumerable `arguments.length` in strict mode.
3247
3247
  (ve == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
3248
- de && (ve == "offset" || ve == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
3248
+ pe && (ve == "offset" || ve == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
3249
3249
  Q && (ve == "buffer" || ve == "byteLength" || ve == "byteOffset") || // Skip index properties.
3250
3250
  bc(ve, _e))) && Se.push(ve);
3251
3251
  return Se;
@@ -3266,10 +3266,10 @@ function Ml() {
3266
3266
  function Ho(b) {
3267
3267
  return vn(b) && hn(b) == s;
3268
3268
  }
3269
- function Lo(b, _, j, z, de) {
3270
- return b === _ ? !0 : b == null || _ == null || !vn(b) && !vn(_) ? b !== b && _ !== _ : fc(b, _, j, z, Lo, de);
3269
+ function Lo(b, _, j, z, pe) {
3270
+ return b === _ ? !0 : b == null || _ == null || !vn(b) && !vn(_) ? b !== b && _ !== _ : fc(b, _, j, z, Lo, pe);
3271
3271
  }
3272
- function fc(b, _, j, z, de, Q) {
3272
+ function fc(b, _, j, z, pe, Q) {
3273
3273
  var ge = $n(b), Se = $n(_), _e = ge ? l : ht(b), ve = Se ? l : ht(_);
3274
3274
  _e = _e == s ? m : _e, ve = ve == s ? m : ve;
3275
3275
  var De = _e == m, Ve = ve == m, Ce = _e == ve;
@@ -3279,15 +3279,15 @@ function Ml() {
3279
3279
  ge = !0, De = !1;
3280
3280
  }
3281
3281
  if (Ce && !De)
3282
- return Q || (Q = new pt()), ge || Bo(b) ? Mo(b, _, j, z, de, Q) : vc(b, _, _e, j, z, de, Q);
3282
+ return Q || (Q = new pt()), ge || Bo(b) ? Mo(b, _, j, z, pe, Q) : vc(b, _, _e, j, z, pe, Q);
3283
3283
  if (!(j & o)) {
3284
3284
  var Le = De && k.call(b, "__wrapped__"), Me = Ve && k.call(_, "__wrapped__");
3285
3285
  if (Le || Me) {
3286
3286
  var vt = Le ? b.value() : b, et = Me ? _.value() : _;
3287
- return Q || (Q = new pt()), de(vt, et, j, z, Q);
3287
+ return Q || (Q = new pt()), pe(vt, et, j, z, Q);
3288
3288
  }
3289
3289
  }
3290
- return Ce ? (Q || (Q = new pt()), gc(b, _, j, z, de, Q)) : !1;
3290
+ return Ce ? (Q || (Q = new pt()), gc(b, _, j, z, pe, Q)) : !1;
3291
3291
  }
3292
3292
  function dc(b) {
3293
3293
  if (!Uo(b) || wc(b))
@@ -3306,7 +3306,7 @@ function Ml() {
3306
3306
  k.call(b, j) && j != "constructor" && _.push(j);
3307
3307
  return _;
3308
3308
  }
3309
- function Mo(b, _, j, z, de, Q) {
3309
+ function Mo(b, _, j, z, pe, Q) {
3310
3310
  var ge = j & o, Se = b.length, _e = _.length;
3311
3311
  if (Se != _e && !(ge && _e > Se))
3312
3312
  return !1;
@@ -3326,20 +3326,20 @@ function Ml() {
3326
3326
  }
3327
3327
  if (Ce) {
3328
3328
  if (!on(_, function(et, kt) {
3329
- if (!ut(Ce, kt) && (Le === et || de(Le, et, j, z, Q)))
3329
+ if (!ut(Ce, kt) && (Le === et || pe(Le, et, j, z, Q)))
3330
3330
  return Ce.push(kt);
3331
3331
  })) {
3332
3332
  Ve = !1;
3333
3333
  break;
3334
3334
  }
3335
- } else if (!(Le === Me || de(Le, Me, j, z, Q))) {
3335
+ } else if (!(Le === Me || pe(Le, Me, j, z, Q))) {
3336
3336
  Ve = !1;
3337
3337
  break;
3338
3338
  }
3339
3339
  }
3340
3340
  return Q.delete(b), Q.delete(_), Ve;
3341
3341
  }
3342
- function vc(b, _, j, z, de, Q, ge) {
3342
+ function vc(b, _, j, z, pe, Q, ge) {
3343
3343
  switch (j) {
3344
3344
  case M:
3345
3345
  if (b.byteLength != _.byteLength || b.byteOffset != _.byteOffset)
@@ -3366,7 +3366,7 @@ function Ml() {
3366
3366
  if (ve)
3367
3367
  return ve == _;
3368
3368
  z |= i, ge.set(b, _);
3369
- var De = Mo(Se(b), Se(_), z, de, Q, ge);
3369
+ var De = Mo(Se(b), Se(_), z, pe, Q, ge);
3370
3370
  return ge.delete(b), De;
3371
3371
  case R:
3372
3372
  if (Ir)
@@ -3374,7 +3374,7 @@ function Ml() {
3374
3374
  }
3375
3375
  return !1;
3376
3376
  }
3377
- function gc(b, _, j, z, de, Q) {
3377
+ function gc(b, _, j, z, pe, Q) {
3378
3378
  var ge = j & o, Se = Wo(b), _e = Se.length, ve = Wo(_), De = ve.length;
3379
3379
  if (_e != De && !ge)
3380
3380
  return !1;
@@ -3393,7 +3393,7 @@ function Ml() {
3393
3393
  var et = b[Ce], kt = _[Ce];
3394
3394
  if (z)
3395
3395
  var qo = ge ? z(kt, et, Ce, _, b, Q) : z(et, kt, Ce, b, _, Q);
3396
- if (!(qo === void 0 ? et === kt || de(et, kt, j, z, Q) : qo)) {
3396
+ if (!(qo === void 0 ? et === kt || pe(et, kt, j, z, Q) : qo)) {
3397
3397
  Me = !1;
3398
3398
  break;
3399
3399
  }
@@ -3423,8 +3423,8 @@ function Ml() {
3423
3423
  var z = !0;
3424
3424
  } catch {
3425
3425
  }
3426
- var de = p.call(b);
3427
- return z && (_ ? b[Z] = j : delete b[Z]), de;
3426
+ var pe = p.call(b);
3427
+ return z && (_ ? b[Z] = j : delete b[Z]), pe;
3428
3428
  }
3429
3429
  var mc = X ? function(b) {
3430
3430
  return b == null ? [] : (b = Object(b), jt(X(b), function(_) {
@@ -3985,7 +3985,7 @@ function bu() {
3985
3985
  w.j(w.a);
3986
3986
  });
3987
3987
  };
3988
- function pe(p, w, A, C, P, F, V) {
3988
+ function de(p, w, A, C, P, F, V) {
3989
3989
  this.v = p, this.B = w, this.c = A, this.a = C, this.s = V || "BESbswy", this.f = {}, this.w = P || 3e3, this.u = F || null, this.m = this.j = this.h = this.g = null, this.g = new te(this.c, this.s), this.h = new te(this.c, this.s), this.j = new te(this.c, this.s), this.m = new te(this.c, this.s), p = new T(this.a.c + ",serif", O(this.a)), p = B(p), this.g.a.style.cssText = p, p = new T(this.a.c + ",sans-serif", O(this.a)), p = B(p), this.h.a.style.cssText = p, p = new T("serif", O(this.a)), p = B(p), this.j.a.style.cssText = p, p = new T("sans-serif", O(this.a)), p = B(p), this.m.a.style.cssText = p, se(this.g), se(this.h), se(this.j), se(this.m);
3990
3990
  }
3991
3991
  var J = { D: "serif", C: "sans-serif" }, ue = null;
@@ -3996,7 +3996,7 @@ function bu() {
3996
3996
  }
3997
3997
  return ue;
3998
3998
  }
3999
- pe.prototype.start = function() {
3999
+ de.prototype.start = function() {
4000
4000
  this.f.serif = this.j.a.offsetWidth, this.f["sans-serif"] = this.m.a.offsetWidth, this.A = o(), W(this);
4001
4001
  };
4002
4002
  function K(p, w, A) {
@@ -4055,7 +4055,7 @@ function bu() {
4055
4055
  var Ze = /Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent), dn = /OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent) && /Apple/.exec(window.navigator.vendor);
4056
4056
  Ee = Ze ? 42 < parseInt(Ze[1], 10) : !dn;
4057
4057
  } else Ee = !1;
4058
- Ee ? ke = new q(r(w.g, w), r(w.h, w), w.c, le, w.s, we) : ke = new pe(r(w.g, w), r(w.h, w), w.c, le, w.s, V, we), ae.push(ke);
4058
+ Ee ? ke = new q(r(w.g, w), r(w.h, w), w.c, le, w.s, we) : ke = new de(r(w.g, w), r(w.h, w), w.c, le, w.s, V, we), ae.push(ke);
4059
4059
  }
4060
4060
  for (X = 0; X < ae.length; X++) ae[X].start();
4061
4061
  }
@@ -4388,7 +4388,8 @@ const Au = _u(
4388
4388
  i?.setAttribute("themeId", n), Nu(i, a);
4389
4389
  }, Wu = (e) => me({
4390
4390
  step: ({ step: t }) => {
4391
- if (t.type !== "tooltip") return t;
4391
+ if (t.type !== "tooltip" || t.contentType === "application/json")
4392
+ return t;
4392
4393
  const n = Object.entries(t.actions).filter(
4393
4394
  ([, o]) => o.find((i) => i.on === "click")
4394
4395
  ).map(([o]) => o), r = t.traits.filter(({ config: o }) => o.targetId).map(({ config: o }) => o.targetId);
@@ -6026,7 +6027,7 @@ const Bf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6026
6027
  getRoot: R
6027
6028
  },
6028
6029
  o
6029
- ), pe = yu({
6030
+ ), de = yu({
6030
6031
  getRoot: R,
6031
6032
  getWindowReference: v
6032
6033
  }), J = Mu(o), ue = os(o), be = (K) => K.contentType === "text/html" ? a(Gf(Zf(K.content))) : s(K.content);
@@ -6122,7 +6123,7 @@ const Bf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6122
6123
  // injecting services coming from steps
6123
6124
  actionsService: B,
6124
6125
  // injecting services coming from dom
6125
- themeRemovalService: pe
6126
+ themeRemovalService: de
6126
6127
  },
6127
6128
  guards: {
6128
6129
  hasCustomContainer: O,
@@ -8299,7 +8300,7 @@ function nh() {
8299
8300
  function q(ee) {
8300
8301
  return Y = ee, M = setTimeout(ue, I), G ? B(ee) : H;
8301
8302
  }
8302
- function pe(ee) {
8303
+ function de(ee) {
8303
8304
  var fe = ee - U, Ee = ee - Y, $e = I - fe;
8304
8305
  return te ? d($e, D - Ee) : $e;
8305
8306
  }
@@ -8311,7 +8312,7 @@ function nh() {
8311
8312
  var ee = v();
8312
8313
  if (J(ee))
8313
8314
  return be(ee);
8314
- M = setTimeout(ue, pe(ee));
8315
+ M = setTimeout(ue, de(ee));
8315
8316
  }
8316
8317
  function be(ee) {
8317
8318
  return M = void 0, se && R ? B(ee) : (R = N = void 0, H);
@@ -8441,11 +8442,11 @@ function oh() {
8441
8442
  var L = this.__data__;
8442
8443
  return Y ? L[k] !== void 0 : R.call(L, k);
8443
8444
  }
8444
- function pe(k, L) {
8445
+ function de(k, L) {
8445
8446
  var p = this.__data__;
8446
8447
  return p[k] = Y && L === void 0 ? t : L, this;
8447
8448
  }
8448
- G.prototype.clear = te, G.prototype.delete = se, G.prototype.get = B, G.prototype.has = q, G.prototype.set = pe;
8449
+ G.prototype.clear = te, G.prototype.delete = se, G.prototype.get = B, G.prototype.has = q, G.prototype.set = de;
8449
8450
  function J(k) {
8450
8451
  var L = -1, p = k ? k.length : 0;
8451
8452
  for (this.clear(); ++L < p; ) {
@@ -8817,7 +8818,7 @@ const uh = (e, t) => {
8817
8818
  shouldAutoCalculateZIndex: Y = !0
8818
8819
  } = S(), G = Gi(R.selector, I), te = I.find((q) => q.type === "@appcues/toggle")?.config?.startHidden ?? !0;
8819
8820
  te || x(N, { position: "absolute" }), s = () => {
8820
- const q = m.querySelector(`#${N}`), pe = m.querySelector(`#${O}`), J = qt(
8821
+ const q = m.querySelector(`#${N}`), de = m.querySelector(`#${O}`), J = qt(
8821
8822
  y(R.selector),
8822
8823
  R.filters
8823
8824
  );
@@ -8825,12 +8826,12 @@ const uh = (e, t) => {
8825
8826
  matchingElements: J,
8826
8827
  targetEl: J[0],
8827
8828
  rootEl: q[0],
8828
- arrowEl: pe[0]
8829
+ arrowEl: de[0]
8829
8830
  };
8830
8831
  };
8831
8832
  const se = async () => {
8832
- const { targetEl: q, rootEl: pe, arrowEl: J } = s();
8833
- if (!r && q && pe) {
8833
+ const { targetEl: q, rootEl: de, arrowEl: J } = s();
8834
+ if (!r && q && de) {
8834
8835
  r = !0;
8835
8836
  const ue = lh({
8836
8837
  placement: D,
@@ -8856,7 +8857,7 @@ const uh = (e, t) => {
8856
8857
  x: Ne,
8857
8858
  y: ee,
8858
8859
  placement: fe
8859
- } = await th(q, pe, {
8860
+ } = await th(q, de, {
8860
8861
  middleware: be,
8861
8862
  placement: gh[D] ?? "auto",
8862
8863
  strategy: c
@@ -8878,7 +8879,7 @@ const uh = (e, t) => {
8878
8879
  shouldAutoCalculateZIndex: Y,
8879
8880
  getWindowReference: T
8880
8881
  });
8881
- q.style.visibility === "hidden" && (Oe.visibility = "hidden", g = q.style.visibility), Ee && pe.style.visibility !== "hidden" && (f = pe.style.visibility, u = !0, Oe.visibility = "hidden"), !Ee && u && (Oe.visibility = f ?? "visible", u = !1), !Ee && q.style.visibility !== "hidden" && q.style.visibility !== "" && g === "hidden" && (Oe.visibility = "visible"), D === "center" && (Oe.transform = "translate(-50%, 50%)"), Oe.transition = "top 200ms, left 200ms, right 200ms, bottom 200ms", x(N, Oe);
8882
+ q.style.visibility === "hidden" && (Oe.visibility = "hidden", g = q.style.visibility), Ee && de.style.visibility !== "hidden" && (f = de.style.visibility, u = !0, Oe.visibility = "hidden"), !Ee && u && (Oe.visibility = f ?? "visible", u = !1), !Ee && q.style.visibility !== "hidden" && q.style.visibility !== "" && g === "hidden" && (Oe.visibility = "visible"), D === "center" && (Oe.transform = "translate(-50%, 50%)"), Oe.transition = "top 200ms, left 200ms, right 200ms, bottom 200ms", x(N, Oe);
8882
8883
  }
8883
8884
  };
8884
8885
  h = () => {
@@ -8887,7 +8888,7 @@ const uh = (e, t) => {
8887
8888
  const B = () => qt(y(R.selector), R.filters);
8888
8889
  n = async () => {
8889
8890
  i && i(), a && a();
8890
- const { matchingElements: q, rootEl: pe } = s(), J = q.length === 1, ue = q.length > 1, be = q.length === 0, K = () => {
8891
+ const { matchingElements: q, rootEl: de } = s(), J = q.length === 1, ue = q.length > 1, be = q.length === 0, K = () => {
8891
8892
  G || (a = v({
8892
8893
  getTarget: B,
8893
8894
  onRemoved: () => {
@@ -8895,6 +8896,12 @@ const uh = (e, t) => {
8895
8896
  }
8896
8897
  }));
8897
8898
  };
8899
+ if (J && !de) {
8900
+ d = E(
8901
+ `Could not find root element #${N} for overlay positioning.`
8902
+ );
8903
+ return;
8904
+ }
8898
8905
  if (J) {
8899
8906
  const W = G ? y(G.config.target.selector) : null;
8900
8907
  if (te) {
@@ -8909,7 +8916,7 @@ const uh = (e, t) => {
8909
8916
  }
8910
8917
  await se(), K(), l.setElements(
8911
8918
  q[0],
8912
- pe,
8919
+ de,
8913
8920
  W ? W[0] : null
8914
8921
  ).start();
8915
8922
  return;
@@ -9012,12 +9019,12 @@ function Th({ addHook: e }) {
9012
9019
  if (s && (s.remove(), s = null), f(), D && m.includes("inner"))
9013
9020
  if (D === "hide") {
9014
9021
  l(y);
9015
- const { document: pe } = y();
9022
+ const { document: de } = y();
9016
9023
  Array.from(B.childNodes).forEach((J) => {
9017
9024
  if (J.nodeType === Node.ELEMENT_NODE)
9018
9025
  J.classList.add(nr), o.push(J);
9019
9026
  else if (J.nodeType === Node.TEXT_NODE && J.textContent.trim()) {
9020
- const ue = pe.createElement("span");
9027
+ const ue = de.createElement("span");
9021
9028
  ue.classList.add(nr), J.replaceWith(ue), ue.append(J), i.push(ue);
9022
9029
  }
9023
9030
  });
@@ -9045,17 +9052,17 @@ function Th({ addHook: e }) {
9045
9052
  const B = {
9046
9053
  display: N,
9047
9054
  verticalAlign: x
9048
- }, { x: q, y: pe } = _h({
9055
+ }, { x: q, y: de } = _h({
9049
9056
  distanceUnit: O,
9050
9057
  xOffset: S,
9051
9058
  yOffset: I,
9052
9059
  targetEl: H[0]
9053
9060
  });
9054
9061
  if (T)
9055
- B.position = "absolute", B.transform = `translate(${q}, ${pe})`;
9062
+ B.position = "absolute", B.transform = `translate(${q}, ${de})`;
9056
9063
  else {
9057
9064
  const J = m.includes("left") ? "right" : "left";
9058
- B[`margin-${J}`] = q, B[`margin-${x}`] = pe;
9065
+ B[`margin-${J}`] = q, B[`margin-${x}`] = de;
9059
9066
  }
9060
9067
  if (R) {
9061
9068
  B.position = "sticky";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcues/web-sdk",
3
- "version": "7.20.0",
3
+ "version": "7.20.2",
4
4
  "description": "The Appcues Javascript SDK",
5
5
  "main": "build/index.npm.js",
6
6
  "types": "build/index.npm.d.ts",