@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.
- package/CHANGELOG.md +12 -0
- package/build/{index.0Hlsj2U1.js → bootstrap.npm.BcMkXW72.js} +6149 -5441
- package/build/{index.DoNl6GCb.js → index.D02rhHq_.js} +1 -1
- package/build/{index.npm.B0Id_5An.js → index.npm.Bv0Pqt02.js} +111 -110
- package/build/index.npm.d.ts.map +1 -1
- package/build/index.npm.js +1 -1
- package/build/{open-builder.B0jaaeT_.js → open-builder.uMCCf8o7.js} +1828 -1811
- package/build/types.d.ts +9 -1
- package/build/types.d.ts.map +1 -1
- package/package.json +2 -1
- /package/build/{checklist.8ea3e5ffb0e82e3c0f20759740c84621912b3a42.css → checklist.1bd2b1c6e10440abfc34570b8c917b9b2ec7a3a7.css} +0 -0
- /package/build/{container.8ea3e5ffb0e82e3c0f20759740c84621912b3a42.css → container.1bd2b1c6e10440abfc34570b8c917b9b2ec7a3a7.css} +0 -0
- /package/build/{debugger.8ea3e5ffb0e82e3c0f20759740c84621912b3a42.css → debugger.1bd2b1c6e10440abfc34570b8c917b9b2ec7a3a7.css} +0 -0
- /package/build/{modal-step-legacy-render.8ea3e5ffb0e82e3c0f20759740c84621912b3a42.css → modal-step-legacy-render.1bd2b1c6e10440abfc34570b8c917b9b2ec7a3a7.css} +0 -0
- /package/build/{modal.8ea3e5ffb0e82e3c0f20759740c84621912b3a42.css → modal.1bd2b1c6e10440abfc34570b8c917b9b2ec7a3a7.css} +0 -0
- /package/build/{satisfaction-survey.8ea3e5ffb0e82e3c0f20759740c84621912b3a42.css → satisfaction-survey.1bd2b1c6e10440abfc34570b8c917b9b2ec7a3a7.css} +0 -0
- /package/build/{test-mode.8ea3e5ffb0e82e3c0f20759740c84621912b3a42.css → test-mode.1bd2b1c6e10440abfc34570b8c917b9b2ec7a3a7.css} +0 -0
- /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 "./
|
|
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
|
|
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 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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
},
|
|
59
|
+
}, B = {
|
|
60
60
|
NPS: "nps",
|
|
61
61
|
FLOW: "flow"
|
|
62
|
-
},
|
|
62
|
+
}, K = [
|
|
63
63
|
"v2:experience_completed",
|
|
64
64
|
"v2:experience_skipped",
|
|
65
65
|
"v2:experience_snoozed"
|
|
66
|
-
],
|
|
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
|
-
]),
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
],
|
|
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
|
-
]),
|
|
89
|
+
]), x = {
|
|
90
90
|
EVENT_TRIGGER: "event_trigger",
|
|
91
91
|
PAGE_VIEW: "page_view"
|
|
92
|
-
},
|
|
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
|
-
},
|
|
104
|
+
}, z = {
|
|
105
105
|
REDIRECT: "redirect",
|
|
106
106
|
WAIT_FOR_PAGE: "wait-for-page",
|
|
107
107
|
SHOW_FLOW: "show_flow"
|
|
108
|
-
},
|
|
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
|
-
},
|
|
116
|
+
}, J = {
|
|
117
117
|
OPENED: "opened",
|
|
118
118
|
CLOSED: "closed",
|
|
119
119
|
OPEN_ONCE: "open_once"
|
|
120
|
-
},
|
|
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
|
-
],
|
|
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 =
|
|
161
|
+
}, ie = E([
|
|
162
162
|
"WAIT_FOR_ONE_ELEMENT",
|
|
163
163
|
"WAIT_FOR_MOUSE_EVENT"
|
|
164
|
-
]),
|
|
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
|
-
]),
|
|
180
|
+
]), Ie = 1e3, re = 300, Se = 500, Ae = 50, Oe = 3e3, ue = {
|
|
181
181
|
TEXT: "text",
|
|
182
182
|
EXIT_SYMBOL: "exit-symbol"
|
|
183
|
-
},
|
|
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
|
-
},
|
|
190
|
-
let
|
|
191
|
-
|
|
192
|
-
|
|
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
|
|
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,
|
|
199
|
-
|
|
200
|
-
}),
|
|
201
|
-
|
|
202
|
-
return
|
|
203
|
-
n.unshift(_), n.unshift(o), n.unshift(e),
|
|
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
|
|
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 ??
|
|
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
|
|
225
|
-
await import("./
|
|
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
|
|
229
|
+
async function l(s) {
|
|
228
230
|
const e = window.Appcues;
|
|
229
231
|
s.forEach(([t, ...n]) => {
|
|
230
|
-
if (!
|
|
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
|
|
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
|
-
}),
|
|
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
|
|
258
|
+
async function N(s, e) {
|
|
257
259
|
const t = {
|
|
258
|
-
bundleDomain:
|
|
260
|
+
bundleDomain: S,
|
|
259
261
|
...e
|
|
260
262
|
};
|
|
261
263
|
try {
|
|
262
|
-
const { accountId: n, settings: o } = await
|
|
263
|
-
await
|
|
264
|
+
const { accountId: n, settings: o } = await I(s, t);
|
|
265
|
+
await u(n, o, t);
|
|
264
266
|
const _ = window.Appcues;
|
|
265
|
-
await
|
|
267
|
+
await d(), await l([..._]);
|
|
266
268
|
} catch (n) {
|
|
267
269
|
throw n;
|
|
268
270
|
}
|
|
269
271
|
}
|
|
270
|
-
const
|
|
271
|
-
setup:
|
|
272
|
+
const Ce = {
|
|
273
|
+
setup: N,
|
|
272
274
|
...window.Appcues
|
|
273
275
|
};
|
|
274
276
|
export {
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
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
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
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
|
};
|
package/build/index.npm.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.npm.d.ts","sourceRoot":"","sources":["../src/scripts/index.npm.ts"],"names":[],"mappings":"AAOA,OAAO,
|
|
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"}
|
package/build/index.npm.js
CHANGED