@sprig-technologies/sprig-bundled 2.39.4 → 2.40.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.
@@ -6029,7 +6029,7 @@ const Tf = (e) => e._config && e._config.installationMethod ? e._config.installa
6029
6029
  ru = !0, nu = e;
6030
6030
  };
6031
6031
  function Te(e = {}) {
6032
- const t = { "Content-Type": "application/json", "userleap-platform": "web", "x-ul-sdk-version": "2.39.4", "x-ul-installation-method": Tf(e), "sprig-modules": Mf(), "x-ul-package-version": "2.39.4" };
6032
+ const t = { "Content-Type": "application/json", "userleap-platform": "web", "x-ul-sdk-version": "2.40.0", "x-ul-installation-method": Tf(e), "sprig-modules": Mf(), "x-ul-package-version": "2.40.0" };
6033
6033
  if (e.envId && (t["x-ul-environment-id"] = e.envId), e.token && (t.Authorization = "Bearer " + e.token), e.userId && (t["x-ul-user-id"] = e.userId), e.visitorId && (t["x-ul-visitor-id"] = e.visitorId), e.partnerAnonymousId && (t["x-ul-anonymous-id"] = e.partnerAnonymousId), e.mobileHeadersJSON) {
6034
6034
  const r = JSON.parse(e.mobileHeadersJSON);
6035
6035
  Object.assign(t, r);
@@ -6158,7 +6158,7 @@ const tr = async (e, t, r) => {
6158
6158
  window.UserLeap.container && Object.assign(window.UserLeap.container.style, { display: "flex" });
6159
6159
  };
6160
6160
  if (w.installationMethod === "web-npm" || w.installationMethod === "web-npm-bundled") {
6161
- const { default: V } = await import("./view-3iDgUEdt.js").then((ge) => ge.v);
6161
+ const { default: V } = await import("./view-BjWfEnbU.js").then((ge) => ge.v);
6162
6162
  V.configure(w), S && window.UserLeap.container && O();
6163
6163
  } else U && (j.src = `${U}?t=${Date.now()}`, S && j.addEventListener("load", () => {
6164
6164
  window.UserLeap.container && O();
@@ -6328,7 +6328,7 @@ const cu = (e) => {
6328
6328
  c && s.style.removeProperty("width");
6329
6329
  }
6330
6330
  }
6331
- return [i + 1, a, jf(o, e)];
6331
+ return [i + 2, a, jf(o, e)];
6332
6332
  }, Qg = (e) => {
6333
6333
  const t = e.querySelector(".ul-card__container");
6334
6334
  t && (t.scrollTop = 0);
@@ -6986,7 +6986,7 @@ function ag(e = {}) {
6986
6986
  var m;
6987
6987
  await ze(Me("1", [ot], "metrics"), { body: I, method: "POST", headers: { "x-ul-replay-enabled": `${!!((m = re.replay) != null && m.isReplayRecording())}` }, shouldDropOnRateLimit: !0 });
6988
6988
  } }), !c) {
6989
- const I = u.alwaysOnReplay ? { userAgent: window.navigator.userAgent, surveyId: u.alwaysOnReplay.surveyId, responseGroupUuid: u.alwaysOnReplay.responseGroupUuid, sdkVersion: "2.39.4", maxDurationSeconds: u.alwaysOnReplay.maxDurationSeconds } : void 0;
6989
+ const I = u.alwaysOnReplay ? { userAgent: window.navigator.userAgent, surveyId: u.alwaysOnReplay.surveyId, responseGroupUuid: u.alwaysOnReplay.responseGroupUuid, sdkVersion: "2.40.0", maxDurationSeconds: u.alwaysOnReplay.maxDurationSeconds } : void 0;
6990
6990
  await ((v = re.replay) == null ? void 0 : v.initializeReplay({ maxReplayDurationSeconds: u.maxReplayDurationSeconds, maxInflightRequests: window.UserLeap.maxInflightReplayRequests ?? 2, replaySettings: u.replaySettings, apiUrl: window.UserLeap._API_URL, alwaysOnConfig: I })), so = u.replaySettings;
6991
6991
  }
6992
6992
  ig(u), await sg(u), window.UserLeap._queue.unpause(), (p = window.SprigLoggerCallback) == null || p.call(window, "SdkReady"), z.emit(B.SDKReady, { mobileMetricsReportingEnabled: !!u.mobileMetricsReportingEnabled, metricsReportingInterval: u.metricsReportingIntervalSeconds || 0, metricsThresholds: u.metricThresholds || [], maxMobileReplayDurationSeconds: u.maxMobileReplayDurationSeconds, mobileReplaySettings: u.mobileReplaySettings }), z.emit(B.VisitorIDUpdated, { visitorId: window.UserLeap.visitorId }), z.on(B.VisitorIDUpdated, () => {