@appcues/web-sdk 7.20.5 → 7.20.9

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 (17) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +1 -1
  3. package/build/{bootstrap.npm.BzMfG0gZ.js → bootstrap.npm.0BpDz3je.js} +2825 -2809
  4. package/build/{index.DMYl6zRT.js → index.DmpJImPS.js} +1 -1
  5. package/build/{index.npm.BOVoqi5a.js → index.npm.EmMZejXZ.js} +26 -25
  6. package/build/index.npm.js +1 -1
  7. package/build/{open-builder.BiuFpS3-.js → open-builder.Ba2IPzy6.js} +3320 -3327
  8. package/build/utils/constants.d.ts.map +1 -1
  9. package/package.json +1 -1
  10. /package/build/{checklist.7a2c18aec9182dc963b6066f76aa88ba9a976026.css → checklist.d67f155f5f3e33517ec0833f5d3413f4ec2a5252.css} +0 -0
  11. /package/build/{container.7a2c18aec9182dc963b6066f76aa88ba9a976026.css → container.d67f155f5f3e33517ec0833f5d3413f4ec2a5252.css} +0 -0
  12. /package/build/{debugger.7a2c18aec9182dc963b6066f76aa88ba9a976026.css → debugger.d67f155f5f3e33517ec0833f5d3413f4ec2a5252.css} +0 -0
  13. /package/build/{modal-step-legacy-render.7a2c18aec9182dc963b6066f76aa88ba9a976026.css → modal-step-legacy-render.d67f155f5f3e33517ec0833f5d3413f4ec2a5252.css} +0 -0
  14. /package/build/{modal.7a2c18aec9182dc963b6066f76aa88ba9a976026.css → modal.d67f155f5f3e33517ec0833f5d3413f4ec2a5252.css} +0 -0
  15. /package/build/{satisfaction-survey.7a2c18aec9182dc963b6066f76aa88ba9a976026.css → satisfaction-survey.d67f155f5f3e33517ec0833f5d3413f4ec2a5252.css} +0 -0
  16. /package/build/{test-mode.7a2c18aec9182dc963b6066f76aa88ba9a976026.css → test-mode.d67f155f5f3e33517ec0833f5d3413f4ec2a5252.css} +0 -0
  17. /package/build/{tooltip.7a2c18aec9182dc963b6066f76aa88ba9a976026.css → tooltip.d67f155f5f3e33517ec0833f5d3413f4ec2a5252.css} +0 -0
@@ -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.BzMfG0gZ.js";
1
+ import { c as ut, g as Ve, o as We, a as Ze, n as te, b as Fe } from "./bootstrap.npm.0BpDz3je.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) {
@@ -1,4 +1,4 @@
1
- function E(s) {
1
+ function i(s) {
2
2
  return s.reduce(
3
3
  (e, t) => Object.assign(e, { [t]: t }),
4
4
  {}
@@ -54,16 +54,17 @@ const L = [
54
54
  "v2:icon_seen",
55
55
  "v2:step_interaction",
56
56
  "v2:button_pin_seen"
57
- ], C = "_appcuesForm_", P = "_appcuesSatisfaction_", D = "AppcuesSettings", w = "apc_user_id", f = "apc_group_id", h = "apc_local_id", U = "apc_next_content_id", H = "apc_user", m = "apc_debug_enabled", g = "apc_debug_url", M = "apc_ann_errors", W = "apc_curr_flow", k = "apc_curr_checklist", F = "apc_cl:", G = "apc_followed_test_link", v = "localStorage", y = "sessionStorage", b = 720 * 60 * 60, Y = {
57
+ ], C = "_appcuesForm_", P = "_appcuesSatisfaction_", D = "AppcuesSettings", w = "apc_user_id", f = "apc_group_id", h = "apc_local_id", U = "apc_next_content_id", m = "apc_user", H = "apc_debug_enabled", g = "apc_debug_url", M = "apc_ann_errors", W = "apc_curr_flow", k = "apc_curr_checklist", F = "apc_cl:", G = "apc_followed_test_link", v = "localStorage", y = "sessionStorage", b = 720 * 60 * 60, Y = {
58
58
  PAGE_VIEW: "appcues:page_view"
59
59
  }, B = {
60
60
  NPS: "nps",
61
61
  FLOW: "flow"
62
62
  }, K = [
63
63
  "v2:experience_completed",
64
+ "v2:experience_dismissed",
64
65
  "v2:experience_skipped",
65
66
  "v2:experience_snoozed"
66
- ], a = E([
67
+ ], a = i([
67
68
  "PENDING",
68
69
  "STARTED",
69
70
  "CALCULATING_POSITIONS",
@@ -81,7 +82,7 @@ const L = [
81
82
  a.WILL_SHOW,
82
83
  a.SHOWING,
83
84
  a.WILL_CLOSE
84
- ], X = E([
85
+ ], X = i([
85
86
  "COMPLETED",
86
87
  "SKIPPED",
87
88
  "SHOWING_OTHER_CONTENT",
@@ -156,12 +157,12 @@ const L = [
156
157
  "initLogRocket",
157
158
  "loadLaunchpad",
158
159
  "group"
159
- ], p = ["user"], Z = 20, ee = 300, te = 700, se = 2147483647, ne = 24, oe = 20, _e = 10, ce = 1, ae = 3, Ee = {
160
+ ], p = ["user"], Z = 20, ee = 300, te = 700, se = 2147483647, ne = 24, oe = 20, _e = 10, ce = 1, ae = 3, ie = {
160
161
  CALCULATE: "CALCULATE"
161
- }, ie = E([
162
+ }, Ee = i([
162
163
  "WAIT_FOR_ONE_ELEMENT",
163
164
  "WAIT_FOR_MOUSE_EVENT"
164
- ]), Te = 200, pe = E([
165
+ ]), Te = 200, pe = i([
165
166
  "STEP_ATTEMPTED",
166
167
  "STEP_SHOWN",
167
168
  "STEP_COMPLETED",
@@ -177,10 +178,10 @@ const L = [
177
178
  "CHILD_RUN",
178
179
  "CSS_LOADED",
179
180
  "STEP_REVEALED"
180
- ]), Ie = 1e3, re = 300, Se = 500, Ae = 50, Oe = 3e3, ue = {
181
+ ]), Ie = 1e3, re = 300, Se = 500, Ae = 50, Oe = 3e3, de = {
181
182
  TEXT: "text",
182
183
  EXIT_SYMBOL: "exit-symbol"
183
- }, de = {
184
+ }, ue = {
184
185
  LABEL_TOOLTIP: "Tooltip",
185
186
  LABEL_CHECKLIST: "Contextual help checklist present on screen",
186
187
  ROLE_CONTAINER: "alert",
@@ -206,7 +207,7 @@ function O(s) {
206
207
  };
207
208
  }));
208
209
  })();
209
- function u(s, e, t) {
210
+ function d(s, e, t) {
210
211
  window.Appcues.SNIPPET_VERSION = e.version, window.AppcuesBundleSettings = {
211
212
  accountId: s,
212
213
  VERSION: e.version,
@@ -222,8 +223,8 @@ function u(s, e, t) {
222
223
  ...t.assetsPath && { ASSETS_PATH: t.assetsPath }
223
224
  };
224
225
  }
225
- async function d() {
226
- const { default: s } = await import("./bootstrap.npm.BzMfG0gZ.js").then((e) => e.d);
226
+ async function u() {
227
+ const { default: s } = await import("./bootstrap.npm.0BpDz3je.js").then((e) => e.d);
227
228
  window.Appcues = s, T = !0;
228
229
  }
229
230
  async function l(s) {
@@ -232,8 +233,8 @@ async function l(s) {
232
233
  if (!p.includes(t))
233
234
  e[t]?.(...n);
234
235
  else {
235
- const [o, _, ...i] = n;
236
- e[t]?.(...i)?.then(o, _);
236
+ const [o, _, ...E] = n;
237
+ e[t]?.(...E)?.then(o, _);
237
238
  }
238
239
  });
239
240
  }
@@ -248,8 +249,8 @@ async function I(s, e, t = 0) {
248
249
  } catch {
249
250
  if (t <= 3) {
250
251
  const o = window.Math.random() * 100, _ = t * 500 + o;
251
- return await new Promise((i) => {
252
- window.setTimeout(i, _);
252
+ return await new Promise((E) => {
253
+ window.setTimeout(E, _);
253
254
  }), I(s, e, t + 0.5);
254
255
  }
255
256
  throw new Error("Failed to load account settings");
@@ -262,9 +263,9 @@ async function N(s, e) {
262
263
  };
263
264
  try {
264
265
  const { accountId: n, settings: o } = await I(s, t);
265
- await u(n, o, t);
266
+ await d(n, o, t);
266
267
  const _ = window.Appcues;
267
- await d(), await l([..._]);
268
+ await u(), await l([..._]);
268
269
  } catch (n) {
269
270
  throw n;
270
271
  }
@@ -285,7 +286,7 @@ export {
285
286
  Ae as H,
286
287
  C as I,
287
288
  F as J,
288
- H as K,
289
+ m as K,
289
290
  v as L,
290
291
  te as M,
291
292
  U as N,
@@ -298,11 +299,11 @@ export {
298
299
  w as U,
299
300
  V,
300
301
  L as W,
301
- m as X,
302
+ H as X,
302
303
  g as Y,
303
304
  P as Z,
304
305
  J as _,
305
- ie as a,
306
+ Ee as a,
306
307
  Re as a0,
307
308
  x as a1,
308
309
  B as a2,
@@ -312,15 +313,15 @@ export {
312
313
  ee as b,
313
314
  a as c,
314
315
  q as d,
315
- de as e,
316
- E as f,
316
+ ue as e,
317
+ i as f,
317
318
  X as g,
318
319
  ce as h,
319
320
  oe as i,
320
321
  _e as j,
321
- ue as k,
322
+ de as k,
322
323
  se as l,
323
- Ee as m,
324
+ ie as m,
324
325
  Ie as n,
325
326
  b as o,
326
327
  M as p,
@@ -1,4 +1,4 @@
1
- import { a5 as s, a4 as t } from "./index.npm.BOVoqi5a.js";
1
+ import { a5 as s, a4 as t } from "./index.npm.EmMZejXZ.js";
2
2
  export {
3
3
  s as default,
4
4
  t as setup