@appcues/web-sdk 7.20.11 → 7.22.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.
- package/CHANGELOG.md +36 -0
- package/build/{bootstrap.npm.BuOq6d5Q.js → bootstrap.npm.DVu00o0l.js} +4096 -3905
- package/build/{index.BU-bEDfq.js → index.C4xtQVZQ.js} +1 -1
- package/build/{index.npm.DDZN8LID.js → index.npm.B4soqbH3.js} +97 -96
- package/build/index.npm.js +1 -1
- package/build/{open-builder.T7mIrDMO.js → open-builder.CqAPcpHg.js} +3634 -3516
- package/build/utils/constants.d.ts +1 -0
- package/build/utils/constants.d.ts.map +1 -1
- package/package.json +1 -1
- /package/build/{checklist.552d75634199e931076ec618fb8c32d4353b3676.css → checklist.045d5c27f0910d4361d7c1398c89d399dee2edb5.css} +0 -0
- /package/build/{container.552d75634199e931076ec618fb8c32d4353b3676.css → container.045d5c27f0910d4361d7c1398c89d399dee2edb5.css} +0 -0
- /package/build/{debugger.552d75634199e931076ec618fb8c32d4353b3676.css → debugger.045d5c27f0910d4361d7c1398c89d399dee2edb5.css} +0 -0
- /package/build/{modal-step-legacy-render.552d75634199e931076ec618fb8c32d4353b3676.css → modal-step-legacy-render.045d5c27f0910d4361d7c1398c89d399dee2edb5.css} +0 -0
- /package/build/{modal.552d75634199e931076ec618fb8c32d4353b3676.css → modal.045d5c27f0910d4361d7c1398c89d399dee2edb5.css} +0 -0
- /package/build/{satisfaction-survey.552d75634199e931076ec618fb8c32d4353b3676.css → satisfaction-survey.045d5c27f0910d4361d7c1398c89d399dee2edb5.css} +0 -0
- /package/build/{test-mode.552d75634199e931076ec618fb8c32d4353b3676.css → test-mode.045d5c27f0910d4361d7c1398c89d399dee2edb5.css} +0 -0
- /package/build/{tooltip.552d75634199e931076ec618fb8c32d4353b3676.css → tooltip.045d5c27f0910d4361d7c1398c89d399dee2edb5.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.
|
|
1
|
+
import { c as ut, g as Ve, o as We, a as Ze, n as te, b as Fe } from "./bootstrap.npm.DVu00o0l.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
|
|
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
|
|
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
|
-
],
|
|
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:",
|
|
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
|
-
},
|
|
62
|
+
}, X = [
|
|
63
63
|
"v2:experience_completed",
|
|
64
64
|
"v2:experience_dismissed",
|
|
65
65
|
"v2:experience_skipped",
|
|
66
66
|
"v2:experience_snoozed"
|
|
67
|
-
], a =
|
|
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
|
-
],
|
|
85
|
+
], x = E([
|
|
86
86
|
"COMPLETED",
|
|
87
87
|
"SKIPPED",
|
|
88
88
|
"SHOWING_OTHER_CONTENT",
|
|
89
89
|
"CLEAR"
|
|
90
|
-
]),
|
|
90
|
+
]), j = {
|
|
91
91
|
EVENT_TRIGGER: "event_trigger",
|
|
92
92
|
PAGE_VIEW: "page_view"
|
|
93
|
-
},
|
|
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
|
-
},
|
|
105
|
+
}, Q = {
|
|
106
106
|
REDIRECT: "redirect",
|
|
107
107
|
WAIT_FOR_PAGE: "wait-for-page",
|
|
108
108
|
SHOW_FLOW: "show_flow"
|
|
109
|
-
},
|
|
109
|
+
}, $ = 2, q = {
|
|
110
110
|
COMPLETED: "completed",
|
|
111
111
|
DISMISSED: "dismissed",
|
|
112
112
|
SHOWN_MANUALLY: "shown_manually"
|
|
113
|
-
},
|
|
113
|
+
}, J = {
|
|
114
114
|
EXPANDED: "expanded",
|
|
115
115
|
COLLAPSED: "collapsed",
|
|
116
116
|
FIRSTVIEW: "first_view"
|
|
117
|
-
},
|
|
117
|
+
}, Z = {
|
|
118
118
|
OPENED: "opened",
|
|
119
119
|
CLOSED: "closed",
|
|
120
120
|
OPEN_ONCE: "open_once"
|
|
121
|
-
},
|
|
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"],
|
|
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
|
-
},
|
|
162
|
+
}, Te = E([
|
|
163
163
|
"WAIT_FOR_ONE_ELEMENT",
|
|
164
164
|
"WAIT_FOR_MOUSE_EVENT"
|
|
165
|
-
]),
|
|
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,
|
|
181
|
+
]), Ie = 1e3, Se = 300, Ae = 500, Oe = 50, ue = 3e3, de = {
|
|
182
182
|
TEXT: "text",
|
|
183
183
|
EXIT_SYMBOL: "exit-symbol"
|
|
184
|
-
},
|
|
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
|
-
},
|
|
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,
|
|
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((
|
|
205
|
-
n.unshift(
|
|
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
|
|
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
|
|
227
|
-
const { default: s } = await import("./bootstrap.npm.
|
|
226
|
+
async function d() {
|
|
227
|
+
const { default: s } = await import("./bootstrap.npm.DVu00o0l.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 [
|
|
237
|
-
e[t]?.(...
|
|
236
|
+
const [_, o, ...i] = n;
|
|
237
|
+
e[t]?.(...i)?.then(_, o);
|
|
238
238
|
}
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
|
-
async function
|
|
241
|
+
async function r(s, e, t = 0) {
|
|
242
242
|
const n = `${e.bundleDomain}/bundle/accounts/${s}/settings`;
|
|
243
243
|
try {
|
|
244
|
-
const
|
|
245
|
-
if (!
|
|
246
|
-
throw new Error(`HTTP error! status: ${
|
|
247
|
-
const
|
|
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
|
|
252
|
-
return await new Promise((
|
|
253
|
-
window.setTimeout(
|
|
254
|
-
}),
|
|
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:
|
|
266
|
-
await
|
|
267
|
-
const
|
|
268
|
-
await
|
|
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
|
|
273
|
+
const Pe = {
|
|
274
274
|
setup: N,
|
|
275
275
|
...window.Appcues
|
|
276
276
|
};
|
|
277
277
|
export {
|
|
278
|
-
$,
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
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
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
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
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
R,
|
|
297
|
-
|
|
298
|
-
|
|
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
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
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
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
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
|
-
|
|
322
|
+
ce as j,
|
|
322
323
|
de as k,
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
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
|
};
|
package/build/index.npm.js
CHANGED