@appcues/web-sdk 7.14.0 → 7.16.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 +28 -0
- package/build/{checklist.99c3b93c77d3842606e558b25b9d34cb5d02d069.css → checklist.a0b7e349e1a159607acbf9b5971768dff6aa9888.css} +1 -1
- package/build/{index.CNTsRt0K.js → index.COmFqR_V.js} +1 -1
- package/build/{index.DrCNsfZm.js → index.MoDAiKcs.js} +2163 -2122
- package/build/{index.npm.CPoOsJAY.js → index.npm.CfzLoV--.js} +42 -41
- package/build/index.npm.d.ts.map +1 -1
- package/build/index.npm.js +1 -1
- package/build/{open-builder.UVoUZZqH.js → open-builder.C3kA6hYi.js} +1261 -1222
- package/build/types.d.ts +4 -1
- package/build/types.d.ts.map +1 -1
- package/package.json +1 -5
- /package/build/{container.99c3b93c77d3842606e558b25b9d34cb5d02d069.css → container.a0b7e349e1a159607acbf9b5971768dff6aa9888.css} +0 -0
- /package/build/{debugger.99c3b93c77d3842606e558b25b9d34cb5d02d069.css → debugger.a0b7e349e1a159607acbf9b5971768dff6aa9888.css} +0 -0
- /package/build/{modal-step-legacy-render.99c3b93c77d3842606e558b25b9d34cb5d02d069.css → modal-step-legacy-render.a0b7e349e1a159607acbf9b5971768dff6aa9888.css} +0 -0
- /package/build/{modal.99c3b93c77d3842606e558b25b9d34cb5d02d069.css → modal.a0b7e349e1a159607acbf9b5971768dff6aa9888.css} +0 -0
- /package/build/{satisfaction-survey.99c3b93c77d3842606e558b25b9d34cb5d02d069.css → satisfaction-survey.a0b7e349e1a159607acbf9b5971768dff6aa9888.css} +0 -0
- /package/build/{test-mode.99c3b93c77d3842606e558b25b9d34cb5d02d069.css → test-mode.a0b7e349e1a159607acbf9b5971768dff6aa9888.css} +0 -0
- /package/build/{tooltip.99c3b93c77d3842606e558b25b9d34cb5d02d069.css → tooltip.a0b7e349e1a159607acbf9b5971768dff6aa9888.css} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
function i(
|
|
2
|
-
return
|
|
3
|
-
(e,
|
|
1
|
+
function i(t) {
|
|
2
|
+
return t.reduce(
|
|
3
|
+
(e, s) => Object.assign(e, { [s]: s }),
|
|
4
4
|
{}
|
|
5
5
|
);
|
|
6
6
|
}
|
|
@@ -54,12 +54,12 @@ const N = [
|
|
|
54
54
|
"v2:icon_seen",
|
|
55
55
|
"v2:step_interaction",
|
|
56
56
|
"v2:button_pin_seen"
|
|
57
|
-
], R = "_appcuesForm_", C = "_appcuesSatisfaction_",
|
|
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", m = "apc_debug_enabled", H = "apc_debug_url", g = "apc_ann_errors", M = "apc_curr_flow", W = "apc_curr_checklist", F = "apc_cl:", G = "apc_followed_test_link", k = "localStorage", y = "sessionStorage", v = 720 * 60 * 60, Y = {
|
|
58
58
|
PAGE_VIEW: "appcues:page_view"
|
|
59
|
-
},
|
|
59
|
+
}, b = {
|
|
60
60
|
NPS: "nps",
|
|
61
61
|
FLOW: "flow"
|
|
62
|
-
},
|
|
62
|
+
}, B = [
|
|
63
63
|
"v2:experience_completed",
|
|
64
64
|
"v2:experience_skipped",
|
|
65
65
|
"v2:experience_snoozed"
|
|
@@ -76,7 +76,7 @@ const N = [
|
|
|
76
76
|
"RUNNING",
|
|
77
77
|
"DISMISSED",
|
|
78
78
|
"HIDING"
|
|
79
|
-
]),
|
|
79
|
+
]), K = [
|
|
80
80
|
a.READY,
|
|
81
81
|
a.WILL_SHOW,
|
|
82
82
|
a.SHOWING,
|
|
@@ -117,7 +117,7 @@ const N = [
|
|
|
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",
|
|
@@ -186,16 +186,16 @@ const N = [
|
|
|
186
186
|
ROLE_CONTAINER: "alert",
|
|
187
187
|
ROLE_TOOLTIP: "alertdialog",
|
|
188
188
|
HASPOPUP_TOOLTIP: "dialog"
|
|
189
|
-
}, ue = 6e4, le = "apc_session", Ne = 30, Le = "launchpad_kb_search",
|
|
189
|
+
}, ue = 6e4, le = "apc_session", Ne = 30, Le = "launchpad_kb_search", S = "https://fast.appcues.com", p = "api.appcues.net";
|
|
190
190
|
let E = !1;
|
|
191
191
|
window.Appcues = window.Appcues || [];
|
|
192
|
-
function A(
|
|
193
|
-
return function(...
|
|
194
|
-
return E ? window.Appcues[
|
|
192
|
+
function A(t) {
|
|
193
|
+
return function(...s) {
|
|
194
|
+
return E ? window.Appcues[t](...s) : (s.unshift(t), window.Appcues.push(s)), window.Appcues;
|
|
195
195
|
};
|
|
196
196
|
}
|
|
197
197
|
(function() {
|
|
198
|
-
window.Appcues.invoked || window.Appcues.identify || (window.Appcues.invoked = !0,
|
|
198
|
+
window.Appcues.invoked || window.Appcues.identify || (window.Appcues.invoked = !0, r.forEach((e) => {
|
|
199
199
|
window.Appcues[e] = A(e);
|
|
200
200
|
}), T.forEach((e) => {
|
|
201
201
|
window.Appcues[e] = function(...n) {
|
|
@@ -205,54 +205,55 @@ function A(s) {
|
|
|
205
205
|
};
|
|
206
206
|
}));
|
|
207
207
|
})();
|
|
208
|
-
function O(
|
|
208
|
+
function O(t, e, s) {
|
|
209
209
|
window.Appcues.SNIPPET_VERSION = e.version, window.AppcuesBundleSettings = {
|
|
210
|
-
accountId:
|
|
210
|
+
accountId: t,
|
|
211
211
|
VERSION: e.version,
|
|
212
212
|
RELEASE_ID: e.release_id,
|
|
213
|
-
GENERIC_BUNDLE_DOMAIN:
|
|
213
|
+
GENERIC_BUNDLE_DOMAIN: s.bundleDomain,
|
|
214
214
|
GENERIC_BUNDLE_PATH: e.generic_bundle_path,
|
|
215
215
|
GENERIC_BUNDLE_INTEGRITY: e.generic_bundle_integrity,
|
|
216
|
-
API_HOSTNAME: e.api_hostname ??
|
|
216
|
+
API_HOSTNAME: e.api_hostname ?? p,
|
|
217
217
|
styling: e.styling,
|
|
218
218
|
integrations: e.integrations,
|
|
219
219
|
account: e.account,
|
|
220
|
-
events: e.custom_events
|
|
220
|
+
events: e.custom_events,
|
|
221
|
+
...s.assetsPath && { ASSETS_PATH: s.assetsPath }
|
|
221
222
|
};
|
|
222
223
|
}
|
|
223
224
|
async function d() {
|
|
224
|
-
await import("./index.
|
|
225
|
+
await import("./index.MoDAiKcs.js").then((t) => t.i), E = !0;
|
|
225
226
|
}
|
|
226
227
|
async function u() {
|
|
227
|
-
window.Appcues.forEach((
|
|
228
|
-
const e =
|
|
228
|
+
window.Appcues.forEach((t) => {
|
|
229
|
+
const e = t[0], s = t.slice(1);
|
|
229
230
|
if (T.includes(e)) {
|
|
230
|
-
const n =
|
|
231
|
+
const n = s[0], _ = s.slice(1), o = window.Appcues?.[e];
|
|
231
232
|
o && o(..._).then((...c) => {
|
|
232
233
|
n(c[0]);
|
|
233
234
|
});
|
|
234
235
|
} else {
|
|
235
236
|
const n = window.Appcues?.[e];
|
|
236
|
-
n && n(...
|
|
237
|
+
n && n(...s);
|
|
237
238
|
}
|
|
238
239
|
});
|
|
239
240
|
}
|
|
240
|
-
async function
|
|
241
|
+
async function I(t, e, s = 0) {
|
|
241
242
|
return new Promise((n) => {
|
|
242
243
|
(async () => {
|
|
243
|
-
const _ = `${e.bundleDomain}/bundle/accounts/${
|
|
244
|
+
const _ = `${e.bundleDomain}/bundle/accounts/${t}/settings`;
|
|
244
245
|
try {
|
|
245
246
|
const o = await fetch(_);
|
|
246
247
|
if (o.ok) {
|
|
247
248
|
const c = await o.json();
|
|
248
|
-
n({ accountId:
|
|
249
|
+
n({ accountId: t, settings: c });
|
|
249
250
|
} else
|
|
250
251
|
throw new Error(`HTTP error! status: ${o.status}`);
|
|
251
252
|
} catch {
|
|
252
|
-
if (
|
|
253
|
-
const o = window.Math.random() * 100, c =
|
|
253
|
+
if (s <= 3) {
|
|
254
|
+
const o = window.Math.random() * 100, c = s * 500 + o;
|
|
254
255
|
window.setTimeout(() => {
|
|
255
|
-
|
|
256
|
+
I(t, e, s + 0.5);
|
|
256
257
|
}, c);
|
|
257
258
|
} else
|
|
258
259
|
throw new Error("Failed to load account settings");
|
|
@@ -260,15 +261,15 @@ async function r(s, e, t = 0) {
|
|
|
260
261
|
})();
|
|
261
262
|
});
|
|
262
263
|
}
|
|
263
|
-
async function l(
|
|
264
|
-
const
|
|
265
|
-
bundleDomain:
|
|
266
|
-
apiHostName:
|
|
264
|
+
async function l(t, e) {
|
|
265
|
+
const s = {
|
|
266
|
+
bundleDomain: S,
|
|
267
|
+
apiHostName: p,
|
|
267
268
|
...e
|
|
268
269
|
};
|
|
269
270
|
try {
|
|
270
|
-
const { accountId: n, settings: _ } = await
|
|
271
|
-
await O(n, _), await d(), await u();
|
|
271
|
+
const { accountId: n, settings: _ } = await I(t, s);
|
|
272
|
+
await O(n, _, s), await d(), await u();
|
|
272
273
|
} catch {
|
|
273
274
|
}
|
|
274
275
|
}
|
|
@@ -284,7 +285,7 @@ export {
|
|
|
284
285
|
Ie as D,
|
|
285
286
|
Ee as E,
|
|
286
287
|
Te as F,
|
|
287
|
-
|
|
288
|
+
P as G,
|
|
288
289
|
Se as H,
|
|
289
290
|
R as I,
|
|
290
291
|
F as J,
|
|
@@ -298,8 +299,8 @@ export {
|
|
|
298
299
|
L as R,
|
|
299
300
|
J as S,
|
|
300
301
|
ce as T,
|
|
301
|
-
|
|
302
|
-
|
|
302
|
+
D as U,
|
|
303
|
+
K as V,
|
|
303
304
|
N as W,
|
|
304
305
|
m as X,
|
|
305
306
|
H as Y,
|
|
@@ -308,9 +309,9 @@ export {
|
|
|
308
309
|
ie as a,
|
|
309
310
|
Le as a0,
|
|
310
311
|
X as a1,
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
312
|
+
b as a2,
|
|
313
|
+
B as a3,
|
|
314
|
+
r as a4,
|
|
314
315
|
l as a5,
|
|
315
316
|
Re as a6,
|
|
316
317
|
Z as b,
|
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":"AAKA,OAAO,EAIL,YAAY,EACZ,UAAU,EACX,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.npm.d.ts","sourceRoot":"","sources":["../src/scripts/index.npm.ts"],"names":[],"mappings":"AAKA,OAAO,EAIL,YAAY,EACZ,UAAU,EACX,MAAM,SAAS,CAAC;AAwJjB,wBAAsB,KAAK,CACzB,SAAS,EAAE,MAAM,EACjB,IAAI,CAAC,EAAE,YAAY,GAClB,OAAO,CAAC,IAAI,CAAC,CAkBf;AAED,QAAA,MAAM,OAAO,EAAE,UAGA,CAAC;AAEhB,eAAe,OAAO,CAAC"}
|
package/build/index.npm.js
CHANGED