@appcues/web-sdk 7.17.9 → 7.17.10

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @appcues/web-sdk
2
2
 
3
+ ## 7.17.9
4
+
5
+ ### Patch Changes
6
+
7
+ - 2d0acac: Update node engine requirement to v18 instead of v22
8
+
3
9
  ## 7.17.8
4
10
 
5
11
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import { C as z, a as Hn, A as Tt, M as Ld, b as xd, c as te, d as qt, V as _o, e as Ir, f as Ke, g as Nt, B as Et, T as Ki, h as Pd, i as Dd, j as Fd, k as Ko, l as Dn, F as K, G as Yo, m as Fl, E as an, n as Ud, D as zo, o as Hd, p as _i, L as Fe, S as zs, q as Xo, r as Ie, s as Kt, t as Jo, N as Fn, u as Ul, v as Md, w as Io, W as $d, x as di, y as Bd, z as An, U as Qo, H as Vd, I as Wd, J as Zo, K as un, O as Ao, P as Ii, Q as fi, R as Gd, X as Yi, Y as Hl, Z as Mn, _ as zi, $ as Ln, a0 as vo, a1 as Xs, a2 as $n, a3 as jd, a4 as qd } from "./index.npm.U3r7LHzY.js";
1
+ import { C as z, a as Hn, A as Tt, M as Ld, b as xd, c as te, d as qt, V as _o, e as Ir, f as Ke, g as Nt, B as Et, T as Ki, h as Pd, i as Dd, j as Fd, k as Ko, l as Dn, F as K, G as Yo, m as Fl, E as an, n as Ud, D as zo, o as Hd, p as _i, L as Fe, S as zs, q as Xo, r as Ie, s as Kt, t as Jo, N as Fn, u as Ul, v as Md, w as Io, W as $d, x as di, y as Bd, z as An, U as Qo, H as Vd, I as Wd, J as Zo, K as un, O as Ao, P as Ii, Q as fi, R as Gd, X as Yi, Y as Hl, Z as Mn, _ as zi, $ as Ln, a0 as vo, a1 as Xs, a2 as $n, a3 as jd, a4 as qd } from "./index.npm.B0Id_5An.js";
2
2
  var Kd = Object.assign || function(e) {
3
3
  for (var t = 1; t < arguments.length; t++) {
4
4
  var n = arguments[t];
@@ -2175,7 +2175,7 @@ function Vt(e) {
2175
2175
  }
2176
2176
  return `https://fast.appcues.com${e}`;
2177
2177
  }
2178
- const Dh = "/generic/main/7.17.9/checklist.2d0acacbe05af2460191025a1b2d317220788396.css", Fh = "sha256-B3IM66R3am8teThQaWvlSxHaPUFXo+mNdS8RK5z2nsw=", to = Vt(Dh), no = 30, Uh = -300, Hh = "//cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/";
2178
+ const Dh = "/generic/main/7.17.10/checklist.8ea3e5ffb0e82e3c0f20759740c84621912b3a42.css", Fh = "sha256-B3IM66R3am8teThQaWvlSxHaPUFXo+mNdS8RK5z2nsw=", to = Vt(Dh), no = 30, Uh = -300, Hh = "//cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/";
2179
2179
  let ur = null, dr = null, fr = null, zr = null;
2180
2180
  const Mh = (e) => {
2181
2181
  const {
@@ -6044,7 +6044,7 @@ function vs(e, t, n, r) {
6044
6044
  vh(e.defaultView, i), window.setTimeout(i, 200);
6045
6045
  }
6046
6046
  }
6047
- const Fg = "/generic/main/7.17.9/modal.2d0acacbe05af2460191025a1b2d317220788396.css", Ug = "/generic/main/7.17.9/modal-step-legacy-render.2d0acacbe05af2460191025a1b2d317220788396.css", Hg = "sha256-4/hpW9ONoiD80NHCgX4Nn/iogB1Wblm1nx1DUXqgDZk=", Mg = "sha256-Ea5gC5g6QacVSWApI6ApmuZheqr4EDl50hD7GyRsaz0=", $g = Vt(Ug), Zr = Vt(Fg), Jc = /* @__PURE__ */ new Set(["shorty", "slideout"]);
6047
+ const Fg = "/generic/main/7.17.10/modal.8ea3e5ffb0e82e3c0f20759740c84621912b3a42.css", Ug = "/generic/main/7.17.10/modal-step-legacy-render.8ea3e5ffb0e82e3c0f20759740c84621912b3a42.css", Hg = "sha256-4/hpW9ONoiD80NHCgX4Nn/iogB1Wblm1nx1DUXqgDZk=", Mg = "sha256-Ea5gC5g6QacVSWApI6ApmuZheqr4EDl50hD7GyRsaz0=", $g = Vt(Ug), Zr = Vt(Fg), Jc = /* @__PURE__ */ new Set(["shorty", "slideout"]);
6048
6048
  function Qc(e) {
6049
6049
  if (!e) return;
6050
6050
  const { style: t } = e, n = t.transform;
@@ -6316,7 +6316,7 @@ function Gg({ patternType: e, hidden: t }) {
6316
6316
  }
6317
6317
  );
6318
6318
  }
6319
- const jg = "/generic/main/7.17.9/tooltip.2d0acacbe05af2460191025a1b2d317220788396.css", qg = "sha256-9y1o/fRpWDU82ZWAjihfIJSZnx+knnDTkr5DYPSqYhg=", ei = Vt(jg), el = "//twemoji.maxcdn.com/2/svg/", Kg = "//cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/", Cr = "hs", tl = "pattern-title", nl = "Hide these tips";
6319
+ const jg = "/generic/main/7.17.10/tooltip.8ea3e5ffb0e82e3c0f20759740c84621912b3a42.css", qg = "sha256-9y1o/fRpWDU82ZWAjihfIJSZnx+knnDTkr5DYPSqYhg=", ei = Vt(jg), el = "//twemoji.maxcdn.com/2/svg/", Kg = "//cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/", Cr = "hs", tl = "pattern-title", nl = "Hide these tips";
6320
6320
  function Yg(e, t) {
6321
6321
  return {
6322
6322
  skippable: e.skippable,
@@ -7611,7 +7611,7 @@ function Sy(e) {
7611
7611
  )
7612
7612
  )));
7613
7613
  }
7614
- const Ty = "/generic/main/7.17.9/satisfaction-survey.2d0acacbe05af2460191025a1b2d317220788396.css", Cy = "sha256-sxJdJpfLXrOLqMGRB1bfYQKkawXgstmlKYOqA1Z9CPo=", po = Vt(Ty);
7614
+ const Ty = "/generic/main/7.17.10/satisfaction-survey.8ea3e5ffb0e82e3c0f20759740c84621912b3a42.css", Cy = "sha256-sxJdJpfLXrOLqMGRB1bfYQKkawXgstmlKYOqA1Z9CPo=", po = Vt(Ty);
7615
7615
  let al, ti;
7616
7616
  function _y(e) {
7617
7617
  const t = ye(e), n = xr(e), r = Ve(e), i = tt(e), o = ct(e), s = zt(e, o), c = i[s], l = t.attributes.pattern_type, { position: u } = t.attributes, d = e.views.callbacks[z.SATISFACTION_SURVEY], f = n.cssLoaded, p = Fi(e.settings), y = r !== te.SHOWING;
@@ -12974,7 +12974,7 @@ function Rl({ user: e }) {
12974
12974
  };
12975
12975
  return /* @__PURE__ */ a.html("table", null, /* @__PURE__ */ a.html("thead", null, /* @__PURE__ */ a.html("tr", null, /* @__PURE__ */ a.html("th", null, "Property"), /* @__PURE__ */ a.html("th", null, "Value"))), /* @__PURE__ */ a.html("tbody", null, n.sort(r).map((i) => /* @__PURE__ */ a.html("tr", null, /* @__PURE__ */ a.html("td", null, i.name), /* @__PURE__ */ a.html("td", null, JSON.stringify(i.value))))));
12976
12976
  }
12977
- const __ = "/generic/main/7.17.9/debugger.2d0acacbe05af2460191025a1b2d317220788396.css", I_ = "sha256-LMjol9lu4iFfr9P6lIri9GX+onG7x+pqiR+EzoaK2sU=", A_ = Vt(__), So = Qn(
12977
+ const __ = "/generic/main/7.17.10/debugger.8ea3e5ffb0e82e3c0f20759740c84621912b3a42.css", I_ = "sha256-LMjol9lu4iFfr9P6lIri9GX+onG7x+pqiR+EzoaK2sU=", A_ = Vt(__), So = Qn(
12978
12978
  [
12979
12979
  nr,
12980
12980
  tr,
@@ -13078,7 +13078,7 @@ const N_ = "https://docs.appcues.com/user-experiences-faq/faq-test-mode", k_ = (
13078
13078
  },
13079
13079
  "Restart"
13080
13080
  ), /* @__PURE__ */ a.html("div", { "class-clickable": !0, "on-click": t.onCancelClicked }, "End Test"))));
13081
- }, O_ = "/generic/main/7.17.9/test-mode.2d0acacbe05af2460191025a1b2d317220788396.css", R_ = "sha256-nd0yl8XfotWCT+9jaAUZdIayDPvnbBNhrvbhzXcWLNs=", L_ = Vt(O_), To = Qn(
13081
+ }, O_ = "/generic/main/7.17.10/test-mode.8ea3e5ffb0e82e3c0f20759740c84621912b3a42.css", R_ = "sha256-nd0yl8XfotWCT+9jaAUZdIayDPvnbBNhrvbhzXcWLNs=", L_ = Vt(O_), To = Qn(
13082
13082
  [
13083
13083
  nr,
13084
13084
  tr,
@@ -14243,7 +14243,7 @@ function* zI({ payload: e }) {
14243
14243
  (o) => o.type === "launchpad"
14244
14244
  );
14245
14245
  if (i) {
14246
- yield import("./index.4PlOFgbE.js");
14246
+ yield import("./index.DoNl6GCb.js");
14247
14247
  const o = yield v(ye);
14248
14248
  if (!(o?.type === z.HOTSPOTS) && o) {
14249
14249
  const { experiences: c, launchpads: l } = Ci(n);
@@ -14465,7 +14465,7 @@ function* pA() {
14465
14465
  )
14466
14466
  ];
14467
14467
  }
14468
- const hA = "/generic/main/7.17.9/container.2d0acacbe05af2460191025a1b2d317220788396.css", mA = "sha256-hDvMQUFhRDDvNjMfTY9We9v9kJw7VBaXX8yL5nYcIcA=";
14468
+ const hA = "/generic/main/7.17.10/container.8ea3e5ffb0e82e3c0f20759740c84621912b3a42.css", mA = "sha256-hDvMQUFhRDDvNjMfTY9We9v9kJw7VBaXX8yL5nYcIcA=";
14469
14469
  window.performance && window.performance.mark && window.performance.mark("apc-init");
14470
14470
  rT();
14471
14471
  const bt = window.AppcuesBundleSettings;
@@ -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.Cc0H27__.js";
1
+ import { c as ut, g as Ve, o as We, a as Ze, n as te, b as Fe } from "./index.0Hlsj2U1.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,6 +1,6 @@
1
- function a(t) {
2
- return t.reduce(
3
- (e, s) => Object.assign(e, { [s]: s }),
1
+ function a(s) {
2
+ return s.reduce(
3
+ (e, t) => Object.assign(e, { [t]: t }),
4
4
  {}
5
5
  );
6
6
  }
@@ -54,7 +54,7 @@ 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", 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", v = "sessionStorage", y = 720 * 60 * 60, Y = {
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 = {
58
58
  PAGE_VIEW: "appcues:page_view"
59
59
  }, b = {
60
60
  NPS: "nps",
@@ -105,15 +105,15 @@ const N = [
105
105
  REDIRECT: "redirect",
106
106
  WAIT_FOR_PAGE: "wait-for-page",
107
107
  SHOW_FLOW: "show_flow"
108
- }, z = 2, $ = {
108
+ }, z = 2, Q = {
109
109
  COMPLETED: "completed",
110
110
  DISMISSED: "dismissed",
111
111
  SHOWN_MANUALLY: "shown_manually"
112
- }, q = {
112
+ }, $ = {
113
113
  EXPANDED: "expanded",
114
114
  COLLAPSED: "collapsed",
115
115
  FIRSTVIEW: "first_view"
116
- }, Q = {
116
+ }, q = {
117
117
  OPENED: "opened",
118
118
  CLOSED: "closed",
119
119
  OPEN_ONCE: "open_once"
@@ -156,7 +156,7 @@ const N = [
156
156
  "initLogRocket",
157
157
  "loadLaunchpad",
158
158
  "group"
159
- ], T = ["user"], J = 20, Z = 300, ee = 700, se = 2147483647, te = 24, ne = 20, oe = 10, _e = 1, ce = 3, ae = {
159
+ ], T = ["user"], J = 20, Z = 300, ee = 700, te = 2147483647, se = 24, ne = 20, oe = 10, _e = 1, ce = 3, ae = {
160
160
  CALCULATE: "CALCULATE"
161
161
  }, ie = a([
162
162
  "WAIT_FOR_ONE_ELEMENT",
@@ -180,18 +180,18 @@ const N = [
180
180
  ]), pe = 1e3, Ie = 300, re = 500, Se = 50, Ae = 3e3, Oe = {
181
181
  TEXT: "text",
182
182
  EXIT_SYMBOL: "exit-symbol"
183
- }, de = {
183
+ }, ue = {
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
- }, ue = 6e4, le = "apc_session", Ne = 30, Le = "launchpad_kb_search", r = "https://fast.appcues.com", S = "api.appcues.net";
189
+ }, de = 6e4, le = "apc_session", Ne = 30, Le = "launchpad_kb_search", r = "https://fast.appcues.com", S = "api.appcues.net";
190
190
  let E = !1;
191
191
  window.Appcues = 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;
192
+ function A(s) {
193
+ return function(...t) {
194
+ return E ? window.Appcues[s](...t) : (t.unshift(s), window.Appcues.push(t)), window.Appcues;
195
195
  };
196
196
  }
197
197
  (function() {
@@ -199,71 +199,70 @@ function A(t) {
199
199
  window.Appcues[e] = A(e);
200
200
  }), T.forEach((e) => {
201
201
  window.Appcues[e] = function(...n) {
202
- return E ? window.Appcues[e](...n) : new Promise((o) => {
203
- n.unshift(o), n.unshift(e), window.Appcues.push(n);
202
+ return E ? window.Appcues[e](...n) : new Promise((o, _) => {
203
+ n.unshift(_), n.unshift(o), n.unshift(e), window.Appcues.push(n);
204
204
  });
205
205
  };
206
206
  }));
207
207
  })();
208
- function O(t, e, s) {
208
+ function O(s, e, t) {
209
209
  window.Appcues.SNIPPET_VERSION = e.version, window.AppcuesBundleSettings = {
210
- accountId: t,
210
+ accountId: s,
211
211
  VERSION: e.version,
212
212
  RELEASE_ID: e.release_id,
213
- GENERIC_BUNDLE_DOMAIN: s.bundleDomain,
213
+ GENERIC_BUNDLE_DOMAIN: t.bundleDomain,
214
214
  GENERIC_BUNDLE_PATH: e.generic_bundle_path,
215
215
  GENERIC_BUNDLE_INTEGRITY: e.generic_bundle_integrity,
216
- API_HOSTNAME: s.apiHostName ?? e.api_hostname ?? S,
216
+ API_HOSTNAME: t.apiHostName ?? e.api_hostname ?? S,
217
217
  styling: e.styling,
218
218
  integrations: e.integrations,
219
219
  account: e.account,
220
220
  events: e.custom_events,
221
- ...s.assetsPath && { ASSETS_PATH: s.assetsPath }
221
+ ...t.assetsPath && { ASSETS_PATH: t.assetsPath }
222
222
  };
223
223
  }
224
- async function d() {
225
- await import("./index.Cc0H27__.js").then((t) => t.i), E = !0;
226
- }
227
224
  async function u() {
228
- window.Appcues.forEach((t) => {
229
- const e = t[0], s = t.slice(1);
230
- if (T.includes(e)) {
231
- const n = s[0], o = s.slice(1), _ = window.Appcues?.[e];
232
- _ && _(...o).then((...i) => {
233
- n(i[0]);
234
- });
235
- } else {
236
- const n = window.Appcues?.[e];
237
- n && n(...s);
225
+ await import("./index.0Hlsj2U1.js").then((s) => s.i), E = !0;
226
+ }
227
+ async function d(s) {
228
+ const e = window.Appcues;
229
+ s.forEach(([t, ...n]) => {
230
+ if (!T.includes(t))
231
+ e[t]?.(...n);
232
+ else {
233
+ const [o, _, ...i] = n;
234
+ e[t]?.(...i)?.then(o, _);
238
235
  }
239
236
  });
240
237
  }
241
- async function p(t, e, s = 0) {
242
- const n = `${e.bundleDomain}/bundle/accounts/${t}/settings`;
238
+ async function p(s, e, t = 0) {
239
+ const n = `${e.bundleDomain}/bundle/accounts/${s}/settings`;
243
240
  try {
244
241
  const o = await fetch(n);
245
242
  if (!o.ok)
246
243
  throw new Error(`HTTP error! status: ${o.status}`);
247
244
  const _ = await o.json();
248
- return { accountId: t, settings: _ };
245
+ return { accountId: s, settings: _ };
249
246
  } catch {
250
- if (s <= 3) {
251
- const o = window.Math.random() * 100, _ = s * 500 + o;
247
+ if (t <= 3) {
248
+ const o = window.Math.random() * 100, _ = t * 500 + o;
252
249
  return await new Promise((i) => {
253
250
  window.setTimeout(i, _);
254
- }), p(t, e, s + 0.5);
251
+ }), p(s, e, t + 0.5);
255
252
  }
256
253
  throw new Error("Failed to load account settings");
257
254
  }
258
255
  }
259
- async function l(t, e) {
260
- const s = {
256
+ async function l(s, e) {
257
+ const t = {
261
258
  bundleDomain: r,
262
259
  ...e
263
260
  };
264
261
  try {
265
- const { accountId: n, settings: o } = await p(t, s);
266
- await O(n, o, s), await d(), await u();
262
+ const { accountId: n, settings: o } = await p(s, t);
263
+ await O(n, o, t);
264
+ const _ = window.Appcues;
265
+ await u(), await d([..._]);
267
266
  } catch (n) {
268
267
  throw n;
269
268
  }
@@ -273,9 +272,9 @@ const Re = {
273
272
  ...window.Appcues
274
273
  };
275
274
  export {
276
- $,
275
+ Q as $,
277
276
  j as A,
278
- te as B,
277
+ se as B,
279
278
  x as C,
280
279
  Ie as D,
281
280
  Ee as E,
@@ -283,9 +282,9 @@ export {
283
282
  P as G,
284
283
  Se as H,
285
284
  R as I,
286
- F as J,
285
+ k as J,
287
286
  U as K,
288
- k as L,
287
+ G as L,
289
288
  ee as M,
290
289
  h as N,
291
290
  f as O,
@@ -297,10 +296,10 @@ export {
297
296
  D as U,
298
297
  K as V,
299
298
  N as W,
300
- m as X,
301
- H as Y,
299
+ H as X,
300
+ m as Y,
302
301
  C as Z,
303
- Q as _,
302
+ q as _,
304
303
  ie as a,
305
304
  Le as a0,
306
305
  X as a1,
@@ -311,15 +310,15 @@ export {
311
310
  Re as a6,
312
311
  Z as b,
313
312
  c,
314
- q as d,
315
- de as e,
313
+ $ as d,
314
+ ue as e,
316
315
  a as f,
317
316
  V as g,
318
317
  _e as h,
319
318
  ne as i,
320
319
  oe as j,
321
320
  Oe as k,
322
- se as l,
321
+ te as l,
323
322
  ae as m,
324
323
  pe as n,
325
324
  y as o,
@@ -328,9 +327,9 @@ export {
328
327
  v as r,
329
328
  M as s,
330
329
  Ae as t,
331
- ue as u,
330
+ de as u,
332
331
  re as v,
333
- G as w,
332
+ F as w,
334
333
  le as x,
335
334
  Ne as y,
336
335
  Y as z
@@ -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;AAuJjB,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,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,4 +1,4 @@
1
- import { a6 as s, a5 as t } from "./index.npm.U3r7LHzY.js";
1
+ import { a6 as s, a5 as t } from "./index.npm.B0Id_5An.js";
2
2
  export {
3
3
  s as default,
4
4
  t as setup
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcues/web-sdk",
3
- "version": "7.17.9",
3
+ "version": "7.17.10",
4
4
  "description": "The Appcues Javascript SDK",
5
5
  "main": "build/index.npm.js",
6
6
  "types": "build/index.npm.d.ts",