@appcues/web-sdk 7.17.10 → 7.19.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 (18) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/{index.0Hlsj2U1.js → bootstrap.npm.BcMkXW72.js} +6149 -5441
  3. package/build/{index.DoNl6GCb.js → index.D02rhHq_.js} +1 -1
  4. package/build/{index.npm.B0Id_5An.js → index.npm.Bv0Pqt02.js} +111 -110
  5. package/build/index.npm.d.ts.map +1 -1
  6. package/build/index.npm.js +1 -1
  7. package/build/{open-builder.B0jaaeT_.js → open-builder.uMCCf8o7.js} +1828 -1811
  8. package/build/types.d.ts +9 -1
  9. package/build/types.d.ts.map +1 -1
  10. package/package.json +2 -1
  11. /package/build/{checklist.8ea3e5ffb0e82e3c0f20759740c84621912b3a42.css → checklist.1bd2b1c6e10440abfc34570b8c917b9b2ec7a3a7.css} +0 -0
  12. /package/build/{container.8ea3e5ffb0e82e3c0f20759740c84621912b3a42.css → container.1bd2b1c6e10440abfc34570b8c917b9b2ec7a3a7.css} +0 -0
  13. /package/build/{debugger.8ea3e5ffb0e82e3c0f20759740c84621912b3a42.css → debugger.1bd2b1c6e10440abfc34570b8c917b9b2ec7a3a7.css} +0 -0
  14. /package/build/{modal-step-legacy-render.8ea3e5ffb0e82e3c0f20759740c84621912b3a42.css → modal-step-legacy-render.1bd2b1c6e10440abfc34570b8c917b9b2ec7a3a7.css} +0 -0
  15. /package/build/{modal.8ea3e5ffb0e82e3c0f20759740c84621912b3a42.css → modal.1bd2b1c6e10440abfc34570b8c917b9b2ec7a3a7.css} +0 -0
  16. /package/build/{satisfaction-survey.8ea3e5ffb0e82e3c0f20759740c84621912b3a42.css → satisfaction-survey.1bd2b1c6e10440abfc34570b8c917b9b2ec7a3a7.css} +0 -0
  17. /package/build/{test-mode.8ea3e5ffb0e82e3c0f20759740c84621912b3a42.css → test-mode.1bd2b1c6e10440abfc34570b8c917b9b2ec7a3a7.css} +0 -0
  18. /package/build/{tooltip.8ea3e5ffb0e82e3c0f20759740c84621912b3a42.css → tooltip.1bd2b1c6e10440abfc34570b8c917b9b2ec7a3a7.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 "./index.0Hlsj2U1.js";
1
+ import { c as ut, g as Ve, o as We, a as Ze, n as te, b as Fe } from "./bootstrap.npm.BcMkXW72.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 a(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 N = [
7
+ const L = [
8
8
  "_hostname",
9
9
  "_lastBrowserLanguage",
10
10
  "_lastPageTitle",
@@ -24,7 +24,7 @@ const N = [
24
24
  "_timezoneCode",
25
25
  "_timezoneOffset",
26
26
  "_appId"
27
- ], L = [
27
+ ], R = [
28
28
  "flow_started",
29
29
  "flow_completed",
30
30
  "flow_skipped",
@@ -54,16 +54,16 @@ const N = [
54
54
  "v2:icon_seen",
55
55
  "v2:step_interaction",
56
56
  "v2:button_pin_seen"
57
- ], R = "_appcuesForm_", C = "_appcuesSatisfaction_", P = "AppcuesSettings", D = "apc_user_id", w = "apc_group_id", f = "apc_local_id", h = "apc_next_content_id", U = "apc_user", H = "apc_debug_enabled", m = "apc_debug_url", g = "apc_ann_errors", M = "apc_curr_flow", W = "apc_curr_checklist", k = "apc_cl:", F = "apc_followed_test_link", G = "localStorage", v = "sessionStorage", y = 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", 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 = {
58
58
  PAGE_VIEW: "appcues:page_view"
59
- }, b = {
59
+ }, B = {
60
60
  NPS: "nps",
61
61
  FLOW: "flow"
62
- }, B = [
62
+ }, K = [
63
63
  "v2:experience_completed",
64
64
  "v2:experience_skipped",
65
65
  "v2:experience_snoozed"
66
- ], c = a([
66
+ ], a = E([
67
67
  "PENDING",
68
68
  "STARTED",
69
69
  "CALCULATING_POSITIONS",
@@ -76,20 +76,20 @@ const N = [
76
76
  "RUNNING",
77
77
  "DISMISSED",
78
78
  "HIDING"
79
- ]), K = [
80
- c.READY,
81
- c.WILL_SHOW,
82
- c.SHOWING,
83
- c.WILL_CLOSE
84
- ], V = a([
79
+ ]), V = [
80
+ a.READY,
81
+ a.WILL_SHOW,
82
+ a.SHOWING,
83
+ a.WILL_CLOSE
84
+ ], X = E([
85
85
  "COMPLETED",
86
86
  "SKIPPED",
87
87
  "SHOWING_OTHER_CONTENT",
88
88
  "CLEAR"
89
- ]), X = {
89
+ ]), x = {
90
90
  EVENT_TRIGGER: "event_trigger",
91
91
  PAGE_VIEW: "page_view"
92
- }, x = {
92
+ }, j = {
93
93
  MODAL: "modal",
94
94
  HOTSPOTS: "hotspot-group",
95
95
  SEQUENTIAL_HOTSPOTS: "hotspot-group-sequential",
@@ -101,23 +101,23 @@ const N = [
101
101
  TEST_MODE: "test-mode",
102
102
  WIDGET: "widget",
103
103
  ANNOTATION: ["hotspot-group"]
104
- }, j = {
104
+ }, z = {
105
105
  REDIRECT: "redirect",
106
106
  WAIT_FOR_PAGE: "wait-for-page",
107
107
  SHOW_FLOW: "show_flow"
108
- }, z = 2, Q = {
108
+ }, Q = 2, $ = {
109
109
  COMPLETED: "completed",
110
110
  DISMISSED: "dismissed",
111
111
  SHOWN_MANUALLY: "shown_manually"
112
- }, $ = {
112
+ }, q = {
113
113
  EXPANDED: "expanded",
114
114
  COLLAPSED: "collapsed",
115
115
  FIRSTVIEW: "first_view"
116
- }, q = {
116
+ }, J = {
117
117
  OPENED: "opened",
118
118
  CLOSED: "closed",
119
119
  OPEN_ONCE: "open_once"
120
- }, I = [
120
+ }, r = [
121
121
  "identify",
122
122
  "track",
123
123
  "page",
@@ -156,12 +156,12 @@ const N = [
156
156
  "initLogRocket",
157
157
  "loadLaunchpad",
158
158
  "group"
159
- ], T = ["user"], J = 20, Z = 300, ee = 700, te = 2147483647, se = 24, ne = 20, oe = 10, _e = 1, ce = 3, ae = {
159
+ ], p = ["user"], Z = 20, ee = 300, te = 700, se = 2147483647, ne = 24, oe = 20, _e = 10, ce = 1, ae = 3, Ee = {
160
160
  CALCULATE: "CALCULATE"
161
- }, ie = a([
161
+ }, ie = E([
162
162
  "WAIT_FOR_ONE_ELEMENT",
163
163
  "WAIT_FOR_MOUSE_EVENT"
164
- ]), Ee = 200, Te = a([
164
+ ]), Te = 200, pe = E([
165
165
  "STEP_ATTEMPTED",
166
166
  "STEP_SHOWN",
167
167
  "STEP_COMPLETED",
@@ -177,35 +177,36 @@ const N = [
177
177
  "CHILD_RUN",
178
178
  "CSS_LOADED",
179
179
  "STEP_REVEALED"
180
- ]), pe = 1e3, Ie = 300, re = 500, Se = 50, Ae = 3e3, Oe = {
180
+ ]), Ie = 1e3, re = 300, Se = 500, Ae = 50, Oe = 3e3, ue = {
181
181
  TEXT: "text",
182
182
  EXIT_SYMBOL: "exit-symbol"
183
- }, ue = {
183
+ }, de = {
184
184
  LABEL_TOOLTIP: "Tooltip",
185
185
  LABEL_CHECKLIST: "Contextual help checklist present on screen",
186
186
  ROLE_CONTAINER: "alert",
187
187
  ROLE_TOOLTIP: "alertdialog",
188
188
  HASPOPUP_TOOLTIP: "dialog"
189
- }, de = 6e4, le = "apc_session", Ne = 30, Le = "launchpad_kb_search", r = "https://fast.appcues.com", S = "api.appcues.net";
190
- let E = !1;
191
- window.Appcues = window.Appcues || [];
192
- function A(s) {
189
+ }, le = 6e4, Ne = "apc_session", Le = 30, Re = "launchpad_kb_search", S = "https://fast.appcues.com", A = "api.appcues.net";
190
+ let T = !1;
191
+ const c = window.Appcues || [];
192
+ window.Appcues = c;
193
+ function O(s) {
193
194
  return function(...t) {
194
- return E ? window.Appcues[s](...t) : (t.unshift(s), window.Appcues.push(t)), window.Appcues;
195
+ return T ? window.Appcues[s](...t) : (t.unshift(s), c.push(t)), window.Appcues;
195
196
  };
196
197
  }
197
198
  (function() {
198
- window.Appcues.invoked || window.Appcues.identify || (window.Appcues.invoked = !0, I.forEach((e) => {
199
- window.Appcues[e] = A(e);
200
- }), T.forEach((e) => {
201
- window.Appcues[e] = function(...n) {
202
- return E ? window.Appcues[e](...n) : new Promise((o, _) => {
203
- n.unshift(_), n.unshift(o), n.unshift(e), window.Appcues.push(n);
199
+ window.Appcues.invoked || window.Appcues.identify || (window.Appcues.invoked = !0, r.forEach((e) => {
200
+ c[e] = O(e);
201
+ }), p.forEach((e) => {
202
+ c[e] = function(...n) {
203
+ return T ? window.Appcues[e](...n) : new Promise((o, _) => {
204
+ n.unshift(_), n.unshift(o), n.unshift(e), c.push(n);
204
205
  });
205
206
  };
206
207
  }));
207
208
  })();
208
- function O(s, e, t) {
209
+ function u(s, e, t) {
209
210
  window.Appcues.SNIPPET_VERSION = e.version, window.AppcuesBundleSettings = {
210
211
  accountId: s,
211
212
  VERSION: e.version,
@@ -213,7 +214,7 @@ function O(s, e, t) {
213
214
  GENERIC_BUNDLE_DOMAIN: t.bundleDomain,
214
215
  GENERIC_BUNDLE_PATH: e.generic_bundle_path,
215
216
  GENERIC_BUNDLE_INTEGRITY: e.generic_bundle_integrity,
216
- API_HOSTNAME: t.apiHostName ?? e.api_hostname ?? S,
217
+ API_HOSTNAME: t.apiHostName ?? e.api_hostname ?? A,
217
218
  styling: e.styling,
218
219
  integrations: e.integrations,
219
220
  account: e.account,
@@ -221,13 +222,14 @@ function O(s, e, t) {
221
222
  ...t.assetsPath && { ASSETS_PATH: t.assetsPath }
222
223
  };
223
224
  }
224
- async function u() {
225
- await import("./index.0Hlsj2U1.js").then((s) => s.i), E = !0;
225
+ async function d() {
226
+ const { default: s } = await import("./bootstrap.npm.BcMkXW72.js").then((e) => e.d);
227
+ window.Appcues = s, T = !0;
226
228
  }
227
- async function d(s) {
229
+ async function l(s) {
228
230
  const e = window.Appcues;
229
231
  s.forEach(([t, ...n]) => {
230
- if (!T.includes(t))
232
+ if (!p.includes(t))
231
233
  e[t]?.(...n);
232
234
  else {
233
235
  const [o, _, ...i] = n;
@@ -235,7 +237,7 @@ async function d(s) {
235
237
  }
236
238
  });
237
239
  }
238
- async function p(s, e, t = 0) {
240
+ async function I(s, e, t = 0) {
239
241
  const n = `${e.bundleDomain}/bundle/accounts/${s}/settings`;
240
242
  try {
241
243
  const o = await fetch(n);
@@ -248,89 +250,88 @@ async function p(s, e, t = 0) {
248
250
  const o = window.Math.random() * 100, _ = t * 500 + o;
249
251
  return await new Promise((i) => {
250
252
  window.setTimeout(i, _);
251
- }), p(s, e, t + 0.5);
253
+ }), I(s, e, t + 0.5);
252
254
  }
253
255
  throw new Error("Failed to load account settings");
254
256
  }
255
257
  }
256
- async function l(s, e) {
258
+ async function N(s, e) {
257
259
  const t = {
258
- bundleDomain: r,
260
+ bundleDomain: S,
259
261
  ...e
260
262
  };
261
263
  try {
262
- const { accountId: n, settings: o } = await p(s, t);
263
- await O(n, o, t);
264
+ const { accountId: n, settings: o } = await I(s, t);
265
+ await u(n, o, t);
264
266
  const _ = window.Appcues;
265
- await u(), await d([..._]);
267
+ await d(), await l([..._]);
266
268
  } catch (n) {
267
269
  throw n;
268
270
  }
269
271
  }
270
- const Re = {
271
- setup: l,
272
+ const Ce = {
273
+ setup: N,
272
274
  ...window.Appcues
273
275
  };
274
276
  export {
275
- Q as $,
276
- j as A,
277
- se as B,
278
- x as C,
279
- Ie as D,
280
- Ee as E,
281
- Te as F,
282
- P as G,
283
- Se as H,
284
- R as I,
285
- k as J,
286
- U as K,
287
- G as L,
288
- ee as M,
289
- h as N,
290
- f as O,
291
- w as P,
292
- W as Q,
293
- L as R,
294
- J as S,
295
- ce as T,
296
- D as U,
297
- K as V,
298
- N as W,
299
- H as X,
300
- m as Y,
301
- C as Z,
302
- q as _,
277
+ $,
278
+ z as A,
279
+ ne as B,
280
+ j as C,
281
+ re as D,
282
+ Te as E,
283
+ pe as F,
284
+ D as G,
285
+ Ae as H,
286
+ C as I,
287
+ F as J,
288
+ H as K,
289
+ v as L,
290
+ te as M,
291
+ U as N,
292
+ h as O,
293
+ f as P,
294
+ k as Q,
295
+ R,
296
+ Z as S,
297
+ ae as T,
298
+ w as U,
299
+ V,
300
+ L as W,
301
+ m as X,
302
+ g as Y,
303
+ P as Z,
304
+ J as _,
303
305
  ie as a,
304
- Le as a0,
305
- X as a1,
306
- b as a2,
307
- B as a3,
308
- I as a4,
309
- l as a5,
310
- Re as a6,
311
- Z as b,
312
- c,
313
- $ as d,
314
- ue as e,
315
- a as f,
316
- V as g,
317
- _e as h,
318
- ne as i,
319
- oe as j,
320
- Oe as k,
321
- te as l,
322
- ae as m,
323
- pe as n,
324
- y as o,
325
- g as p,
326
- z as q,
327
- v as r,
328
- M as s,
329
- Ae as t,
330
- de as u,
331
- re as v,
332
- F as w,
333
- le as x,
334
- Ne as y,
306
+ Re as a0,
307
+ x as a1,
308
+ B as a2,
309
+ K as a3,
310
+ N as a4,
311
+ Ce as a5,
312
+ ee as b,
313
+ a as c,
314
+ q as d,
315
+ de as e,
316
+ E as f,
317
+ X as g,
318
+ ce as h,
319
+ oe as i,
320
+ _e as j,
321
+ ue as k,
322
+ se as l,
323
+ Ee as m,
324
+ Ie as n,
325
+ b as o,
326
+ M as p,
327
+ Q as q,
328
+ y as r,
329
+ W as s,
330
+ Oe as t,
331
+ le as u,
332
+ Se as v,
333
+ G as w,
334
+ Ne as x,
335
+ Le as y,
335
336
  Y as z
336
337
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.npm.d.ts","sourceRoot":"","sources":["../src/scripts/index.npm.ts"],"names":[],"mappings":"AAOA,OAAO,EAIL,YAAY,EACZ,UAAU,EACX,MAAM,SAAS,CAAC;AAuIjB,wBAAsB,KAAK,CACzB,SAAS,EAAE,MAAM,EACjB,IAAI,CAAC,EAAE,YAAY,GAClB,OAAO,CAAC,IAAI,CAAC,CAqBf;AAED,QAAA,MAAM,OAAO,EAAE,UAGA,CAAC;AAEhB,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"index.npm.d.ts","sourceRoot":"","sources":["../src/scripts/index.npm.ts"],"names":[],"mappings":"AAOA,OAAO,EAKL,YAAY,EACZ,UAAU,EACX,MAAM,SAAS,CAAC;AAkJjB,wBAAsB,KAAK,CACzB,SAAS,EAAE,MAAM,EACjB,IAAI,CAAC,EAAE,YAAY,GAClB,OAAO,CAAC,IAAI,CAAC,CAqBf;AAED,QAAA,MAAM,OAAO,EAAE,UAGA,CAAC;AAEhB,eAAe,OAAO,CAAC"}
@@ -1,4 +1,4 @@
1
- import { a6 as s, a5 as t } from "./index.npm.B0Id_5An.js";
1
+ import { a5 as s, a4 as t } from "./index.npm.Bv0Pqt02.js";
2
2
  export {
3
3
  s as default,
4
4
  t as setup