@sprig-technologies/sprig-bundled 2.40.4 → 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.
- package/dist/{conversational-ui-C-I8GVlp.js → conversational-ui-BMaVlQM7.js} +604 -590
- package/dist/{conversational-ui-BS87GglU.cjs → conversational-ui-Dfwwfe2B.cjs} +2 -2
- package/dist/getAttributedUrl-BI712lA1.js +195 -0
- package/dist/getAttributedUrl-CuAx8r1V.cjs +12 -0
- package/dist/index-CEpl_fRY.cjs +1 -0
- package/dist/{index-m2P75rlk.cjs → index-DZZhe9UA.cjs} +2 -2
- package/dist/{index-BOM0UM95.js → index-YBebm7NT.js} +3 -3
- package/dist/index-cT-GmgDY.js +712 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +63 -5
- package/dist/index.js +1 -1
- package/dist/view-BHOd3THT.js +1713 -0
- package/dist/view-Btk1gSAI.cjs +1 -0
- package/package.json +1 -1
- package/dist/getAttributedUrl-DrWRiV-q.cjs +0 -12
- package/dist/getAttributedUrl-JvKOyftG.js +0 -188
- package/dist/index-DPFrX24P.js +0 -658
- package/dist/index-rTvENecC.cjs +0 -1
- package/dist/view-DBZAWIZk.js +0 -1496
- package/dist/view-qSJv2aM9.cjs +0 -1
|
@@ -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.
|
|
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-
|
|
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.
|
|
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, () => {
|