@sprig-technologies/sprig-bundled 2.40.3 → 2.41.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.40.3", "x-ul-installation-method": Tf(e), "sprig-modules": Mf(), "x-ul-package-version": "2.40.3" };
6032
+ const t = { "Content-Type": "application/json", "userleap-platform": "web", "x-ul-sdk-version": "2.41.0", "x-ul-installation-method": Tf(e), "sprig-modules": Mf(), "x-ul-package-version": "2.41.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-CwyS6VJ8.js").then((ge) => ge.v);
6161
+ const { default: V } = await import("./view-BHOd3THT.js").then((ge) => ge.z);
6162
6162
  V.configure(w), S && window.UserLeap.container && O();
6163
6163
  } else U && (j.src = `${U}${window.UserLeap.isMobileSDK ? "" : `?t=${Date.now()}`}`, S && j.addEventListener("load", () => {
6164
6164
  window.UserLeap.container && O();
@@ -6979,7 +6979,7 @@ function og(e = {}) {
6979
6979
  var m;
6980
6980
  await ze(Me("1", [ot], "metrics"), { body: I, method: "POST", headers: { "x-ul-replay-enabled": `${!!((m = re.replay) != null && m.isReplayRecording())}` }, shouldDropOnRateLimit: !0 });
6981
6981
  } }), !c) {
6982
- const I = u.alwaysOnReplay ? { userAgent: window.navigator.userAgent, surveyId: u.alwaysOnReplay.surveyId, responseGroupUuid: u.alwaysOnReplay.responseGroupUuid, sdkVersion: "2.40.3", maxDurationSeconds: u.alwaysOnReplay.maxDurationSeconds } : void 0;
6982
+ const I = u.alwaysOnReplay ? { userAgent: window.navigator.userAgent, surveyId: u.alwaysOnReplay.surveyId, responseGroupUuid: u.alwaysOnReplay.responseGroupUuid, sdkVersion: "2.41.0", maxDurationSeconds: u.alwaysOnReplay.maxDurationSeconds } : void 0;
6983
6983
  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;
6984
6984
  }
6985
6985
  sg(u), await ng(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, () => {