@appcues/web-sdk 7.20.10 → 7.22.0

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/build/{bootstrap.npm.2D6fm_tg.js → bootstrap.npm.DMq-vI0T.js} +4085 -3894
  3. package/build/{index.ChefsKKV.js → index.QI4DYuGc.js} +1 -1
  4. package/build/{index.npm.CQT52v9E.js → index.npm.CfaoL5ef.js} +97 -96
  5. package/build/index.npm.js +1 -1
  6. package/build/{open-builder.CuylpKq3.js → open-builder.DsYIY7WT.js} +3550 -3424
  7. package/build/utils/constants.d.ts +1 -0
  8. package/build/utils/constants.d.ts.map +1 -1
  9. package/package.json +1 -1
  10. /package/build/{checklist.31a8708edc6483ec7e5cd9b0fd1c31b3e38360b5.css → checklist.f9681d189ecb108cc563ee5897bcd3e9689d7b07.css} +0 -0
  11. /package/build/{container.31a8708edc6483ec7e5cd9b0fd1c31b3e38360b5.css → container.f9681d189ecb108cc563ee5897bcd3e9689d7b07.css} +0 -0
  12. /package/build/{debugger.31a8708edc6483ec7e5cd9b0fd1c31b3e38360b5.css → debugger.f9681d189ecb108cc563ee5897bcd3e9689d7b07.css} +0 -0
  13. /package/build/{modal-step-legacy-render.31a8708edc6483ec7e5cd9b0fd1c31b3e38360b5.css → modal-step-legacy-render.f9681d189ecb108cc563ee5897bcd3e9689d7b07.css} +0 -0
  14. /package/build/{modal.31a8708edc6483ec7e5cd9b0fd1c31b3e38360b5.css → modal.f9681d189ecb108cc563ee5897bcd3e9689d7b07.css} +0 -0
  15. /package/build/{satisfaction-survey.31a8708edc6483ec7e5cd9b0fd1c31b3e38360b5.css → satisfaction-survey.f9681d189ecb108cc563ee5897bcd3e9689d7b07.css} +0 -0
  16. /package/build/{test-mode.31a8708edc6483ec7e5cd9b0fd1c31b3e38360b5.css → test-mode.f9681d189ecb108cc563ee5897bcd3e9689d7b07.css} +0 -0
  17. /package/build/{tooltip.31a8708edc6483ec7e5cd9b0fd1c31b3e38360b5.css → tooltip.f9681d189ecb108cc563ee5897bcd3e9689d7b07.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.2D6fm_tg.js";
1
+ import { c as ut, g as Ve, o as We, a as Ze, n as te, b as Fe } from "./bootstrap.npm.DMq-vI0T.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,10 +1,10 @@
1
- function i(s) {
1
+ function E(s) {
2
2
  return s.reduce(
3
3
  (e, t) => Object.assign(e, { [t]: t }),
4
4
  {}
5
5
  );
6
6
  }
7
- const L = [
7
+ const R = [
8
8
  "_hostname",
9
9
  "_lastBrowserLanguage",
10
10
  "_lastPageTitle",
@@ -24,7 +24,7 @@ const L = [
24
24
  "_timezoneCode",
25
25
  "_timezoneOffset",
26
26
  "_appId"
27
- ], R = [
27
+ ], L = [
28
28
  "flow_started",
29
29
  "flow_completed",
30
30
  "flow_skipped",
@@ -54,17 +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", 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 = {
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_curr_experience", G = "apc_cl:", v = "apc_followed_test_link", y = "localStorage", Y = "sessionStorage", b = 720 * 60 * 60, K = {
58
58
  PAGE_VIEW: "appcues:page_view"
59
59
  }, B = {
60
60
  NPS: "nps",
61
61
  FLOW: "flow"
62
- }, K = [
62
+ }, X = [
63
63
  "v2:experience_completed",
64
64
  "v2:experience_dismissed",
65
65
  "v2:experience_skipped",
66
66
  "v2:experience_snoozed"
67
- ], a = i([
67
+ ], a = E([
68
68
  "PENDING",
69
69
  "STARTED",
70
70
  "CALCULATING_POSITIONS",
@@ -82,15 +82,15 @@ const L = [
82
82
  a.WILL_SHOW,
83
83
  a.SHOWING,
84
84
  a.WILL_CLOSE
85
- ], X = i([
85
+ ], x = E([
86
86
  "COMPLETED",
87
87
  "SKIPPED",
88
88
  "SHOWING_OTHER_CONTENT",
89
89
  "CLEAR"
90
- ]), x = {
90
+ ]), j = {
91
91
  EVENT_TRIGGER: "event_trigger",
92
92
  PAGE_VIEW: "page_view"
93
- }, j = {
93
+ }, z = {
94
94
  MODAL: "modal",
95
95
  HOTSPOTS: "hotspot-group",
96
96
  SEQUENTIAL_HOTSPOTS: "hotspot-group-sequential",
@@ -102,23 +102,23 @@ const L = [
102
102
  TEST_MODE: "test-mode",
103
103
  WIDGET: "widget",
104
104
  ANNOTATION: ["hotspot-group"]
105
- }, z = {
105
+ }, Q = {
106
106
  REDIRECT: "redirect",
107
107
  WAIT_FOR_PAGE: "wait-for-page",
108
108
  SHOW_FLOW: "show_flow"
109
- }, Q = 2, $ = {
109
+ }, $ = 2, q = {
110
110
  COMPLETED: "completed",
111
111
  DISMISSED: "dismissed",
112
112
  SHOWN_MANUALLY: "shown_manually"
113
- }, q = {
113
+ }, J = {
114
114
  EXPANDED: "expanded",
115
115
  COLLAPSED: "collapsed",
116
116
  FIRSTVIEW: "first_view"
117
- }, J = {
117
+ }, Z = {
118
118
  OPENED: "opened",
119
119
  CLOSED: "closed",
120
120
  OPEN_ONCE: "open_once"
121
- }, r = [
121
+ }, I = [
122
122
  "identify",
123
123
  "track",
124
124
  "page",
@@ -157,12 +157,12 @@ const L = [
157
157
  "initLogRocket",
158
158
  "loadLaunchpad",
159
159
  "group"
160
- ], p = ["user"], Z = 20, ee = 300, te = 700, se = 2147483647, ne = 24, oe = 20, _e = 10, ce = 1, ae = 3, ie = {
160
+ ], p = ["user"], ee = 20, te = 300, se = 700, ne = 2147483647, _e = 24, oe = 20, ce = 10, ae = 1, Ee = 3, ie = {
161
161
  CALCULATE: "CALCULATE"
162
- }, Ee = i([
162
+ }, Te = E([
163
163
  "WAIT_FOR_ONE_ELEMENT",
164
164
  "WAIT_FOR_MOUSE_EVENT"
165
- ]), Te = 200, pe = i([
165
+ ]), pe = 200, re = E([
166
166
  "STEP_ATTEMPTED",
167
167
  "STEP_SHOWN",
168
168
  "STEP_COMPLETED",
@@ -178,16 +178,16 @@ const L = [
178
178
  "CHILD_RUN",
179
179
  "CSS_LOADED",
180
180
  "STEP_REVEALED"
181
- ]), Ie = 1e3, re = 300, Se = 500, Ae = 50, Oe = 3e3, de = {
181
+ ]), Ie = 1e3, Se = 300, Ae = 500, Oe = 50, ue = 3e3, de = {
182
182
  TEXT: "text",
183
183
  EXIT_SYMBOL: "exit-symbol"
184
- }, ue = {
184
+ }, le = {
185
185
  LABEL_TOOLTIP: "Tooltip",
186
186
  LABEL_CHECKLIST: "Contextual help checklist present on screen",
187
187
  ROLE_CONTAINER: "alert",
188
188
  ROLE_TOOLTIP: "alertdialog",
189
189
  HASPOPUP_TOOLTIP: "dialog"
190
- }, le = 6e4, Ne = "apc_session", Le = 30, Re = "launchpad_kb_search", S = "https://fast.appcues.com", A = "api.appcues.net";
190
+ }, Ne = 6e4, Re = "apc_session", Le = 30, Ce = "launchpad_kb_search", S = "https://fast.appcues.com", A = "api.appcues.net";
191
191
  let T = !1;
192
192
  const c = window.Appcues || [];
193
193
  window.Appcues = c;
@@ -197,17 +197,17 @@ function O(s) {
197
197
  };
198
198
  }
199
199
  (function() {
200
- window.Appcues.invoked || window.Appcues.identify || (window.Appcues.invoked = !0, r.forEach((e) => {
200
+ window.Appcues.invoked || window.Appcues.identify || (window.Appcues.invoked = !0, I.forEach((e) => {
201
201
  c[e] = O(e);
202
202
  }), p.forEach((e) => {
203
203
  c[e] = function(...n) {
204
- return T ? window.Appcues[e](...n) : new Promise((o, _) => {
205
- n.unshift(_), n.unshift(o), n.unshift(e), c.push(n);
204
+ return T ? window.Appcues[e](...n) : new Promise((_, o) => {
205
+ n.unshift(o), n.unshift(_), n.unshift(e), c.push(n);
206
206
  });
207
207
  };
208
208
  }));
209
209
  })();
210
- function d(s, e, t) {
210
+ function u(s, e, t) {
211
211
  window.Appcues.SNIPPET_VERSION = e.version, window.AppcuesBundleSettings = {
212
212
  accountId: s,
213
213
  VERSION: e.version,
@@ -223,8 +223,8 @@ function d(s, e, t) {
223
223
  ...t.assetsPath && { ASSETS_PATH: t.assetsPath }
224
224
  };
225
225
  }
226
- async function u() {
227
- const { default: s } = await import("./bootstrap.npm.2D6fm_tg.js").then((e) => e.d);
226
+ async function d() {
227
+ const { default: s } = await import("./bootstrap.npm.DMq-vI0T.js").then((e) => e.d);
228
228
  window.Appcues = s, T = !0;
229
229
  }
230
230
  async function l(s) {
@@ -233,25 +233,25 @@ async function l(s) {
233
233
  if (!p.includes(t))
234
234
  e[t]?.(...n);
235
235
  else {
236
- const [o, _, ...E] = n;
237
- e[t]?.(...E)?.then(o, _);
236
+ const [_, o, ...i] = n;
237
+ e[t]?.(...i)?.then(_, o);
238
238
  }
239
239
  });
240
240
  }
241
- async function I(s, e, t = 0) {
241
+ async function r(s, e, t = 0) {
242
242
  const n = `${e.bundleDomain}/bundle/accounts/${s}/settings`;
243
243
  try {
244
- const o = await fetch(n);
245
- if (!o.ok)
246
- throw new Error(`HTTP error! status: ${o.status}`);
247
- const _ = await o.json();
248
- return { accountId: s, settings: _ };
244
+ const _ = await fetch(n);
245
+ if (!_.ok)
246
+ throw new Error(`HTTP error! status: ${_.status}`);
247
+ const o = await _.json();
248
+ return { accountId: s, settings: o };
249
249
  } catch {
250
250
  if (t <= 3) {
251
- const o = window.Math.random() * 100, _ = t * 500 + o;
252
- return await new Promise((E) => {
253
- window.setTimeout(E, _);
254
- }), I(s, e, t + 0.5);
251
+ const _ = window.Math.random() * 100, o = t * 500 + _;
252
+ return await new Promise((i) => {
253
+ window.setTimeout(i, o);
254
+ }), r(s, e, t + 0.5);
255
255
  }
256
256
  throw new Error("Failed to load account settings");
257
257
  }
@@ -262,77 +262,78 @@ async function N(s, e) {
262
262
  ...e
263
263
  };
264
264
  try {
265
- const { accountId: n, settings: o } = await I(s, t);
266
- await d(n, o, t);
267
- const _ = window.Appcues;
268
- await u(), await l([..._]);
265
+ const { accountId: n, settings: _ } = await r(s, t);
266
+ await u(n, _, t);
267
+ const o = window.Appcues;
268
+ await d(), await l([...o]);
269
269
  } catch (n) {
270
270
  throw n;
271
271
  }
272
272
  }
273
- const Ce = {
273
+ const Pe = {
274
274
  setup: N,
275
275
  ...window.Appcues
276
276
  };
277
277
  export {
278
- $,
279
- z as A,
280
- ne as B,
281
- j as C,
282
- re as D,
283
- Te as E,
284
- pe as F,
278
+ g as $,
279
+ Q as A,
280
+ _e as B,
281
+ z as C,
282
+ $ as D,
283
+ pe as E,
284
+ re as F,
285
285
  D as G,
286
- Ae as H,
287
- C as I,
288
- F as J,
289
- m as K,
290
- v as L,
291
- te as M,
286
+ Re as H,
287
+ Le as I,
288
+ K as J,
289
+ Oe as K,
290
+ y as L,
291
+ se as M,
292
292
  U as N,
293
- h as O,
294
- f as P,
295
- k as Q,
296
- R,
297
- Z as S,
298
- ae as T,
293
+ C as O,
294
+ G as P,
295
+ m as Q,
296
+ h as R,
297
+ Y as S,
298
+ Ee as T,
299
299
  w as U,
300
300
  V,
301
- L as W,
302
- H as X,
303
- g as Y,
304
- P as Z,
305
- J as _,
306
- Ee as a,
307
- Re as a0,
308
- x as a1,
309
- B as a2,
310
- K as a3,
311
- N as a4,
312
- Ce as a5,
313
- ee as b,
301
+ R as W,
302
+ f as X,
303
+ k as Y,
304
+ L as Z,
305
+ H as _,
306
+ Te as a,
307
+ P as a0,
308
+ Z as a1,
309
+ q as a2,
310
+ Ce as a3,
311
+ j as a4,
312
+ N as a5,
313
+ Pe as a6,
314
+ te as b,
314
315
  a as c,
315
- q as d,
316
- ue as e,
317
- i as f,
318
- X as g,
319
- ce as h,
316
+ J as d,
317
+ le as e,
318
+ E as f,
319
+ x as g,
320
+ ae as h,
320
321
  oe as i,
321
- _e as j,
322
+ ce as j,
322
323
  de as k,
323
- se as l,
324
- ie as m,
325
- Ie as n,
326
- b as o,
327
- M as p,
328
- Q as q,
329
- y as r,
330
- W as s,
331
- Oe as t,
332
- le as u,
333
- Se as v,
334
- G as w,
335
- Ne as x,
336
- Le as y,
337
- Y as z
324
+ ne as l,
325
+ F as m,
326
+ ie as n,
327
+ Ie as o,
328
+ Se as p,
329
+ b as q,
330
+ M as r,
331
+ ee as s,
332
+ W as t,
333
+ ue as u,
334
+ Ne as v,
335
+ Ae as w,
336
+ B as x,
337
+ X as y,
338
+ v as z
338
339
  };
@@ -1,4 +1,4 @@
1
- import { a5 as s, a4 as t } from "./index.npm.CQT52v9E.js";
1
+ import { a6 as s, a5 as t } from "./index.npm.CfaoL5ef.js";
2
2
  export {
3
3
  s as default,
4
4
  t as setup