@sprig-technologies/sprig-browser 2.44.0 → 2.45.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-Cai2CXxq.js → conversational-ui-BfsT6E2d.js} +281 -285
- package/dist/{conversational-ui-uecC--rF.cjs → conversational-ui-CeWXVRdC.cjs} +1 -1
- package/dist/conversational-v2-styles-BuQiqTAN.js +4 -0
- package/dist/conversational-v2-styles-C-AtgFtc.cjs +1 -0
- package/dist/{core-CgFFOhiH.cjs → core-DSREyRo8.cjs} +2 -2
- package/dist/{core-CWHAsU-S.js → core-YTxB8B8q.js} +3 -3
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +22 -8
- package/dist/core.js +2 -2
- package/dist/index-BH1V9tx5.js +760 -0
- package/dist/index-Cuw5vpuY.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +22 -8
- package/dist/index.js +2 -2
- package/dist/{metricsReporter-Bg5aC8mO.js → metricsReporter-0HbKrvkx.js} +1 -1
- package/dist/{metricsReporter-BGIzo9eh.cjs → metricsReporter-CIbUupJP.cjs} +1 -1
- package/dist/replay.cjs +1 -1
- package/dist/replay.js +1 -1
- package/dist/{videoPlayer-ChSRlzGk.js → videoPlayer-HNloD0SJ.js} +184 -184
- package/dist/{videoPlayer-B4YqaVpY.cjs → videoPlayer-ocnoABDk.cjs} +4 -4
- package/dist/view-BxTV1_m-.cjs +1 -0
- package/dist/{view-MpYHLeMt.js → view-CDrJuRMn.js} +689 -680
- package/package.json +1 -1
- package/dist/conversational-v2-styles-BTm-8rVB.cjs +0 -1
- package/dist/conversational-v2-styles-Bj3dBWvf.js +0 -4
- package/dist/index-CbagEkvN.js +0 -754
- package/dist/index-D2nvY-Yh.cjs +0 -1
- package/dist/view-5xam8eBF.cjs +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Ot = Object.defineProperty;
|
|
2
2
|
var Ct = (r, e, i) => e in r ? Ot(r, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[e] = i;
|
|
3
3
|
var z = (r, e, i) => Ct(r, typeof e != "symbol" ? e + "" : e, i);
|
|
4
|
-
import { l as H, g as O, s as dt, e as g, S as u, v as ct, m as S, b as P, h as pt, E as ae, a as Q, D as C, c as Pt, r as G, i as Mt, j as jt, k as Ft, n as Ke, o as Je, d as qt, p as ut, q as gt } from "./metricsReporter-
|
|
4
|
+
import { l as H, g as O, s as dt, e as g, S as u, v as ct, m as S, b as P, h as pt, E as ae, a as Q, D as C, c as Pt, r as G, i as Mt, j as jt, k as Ft, n as Ke, o as Je, d as qt, p as ut, q as gt } from "./metricsReporter-0HbKrvkx.js";
|
|
5
5
|
const gr = 360, hr = "ul-app", yr = "#e6e6e6", br = "#bd282a", mr = 1030, Qe = () => {
|
|
6
6
|
try {
|
|
7
7
|
return window.parent.Intercom;
|
|
@@ -104,7 +104,7 @@ const te = async (r, e, i) => {
|
|
|
104
104
|
window.UserLeap.container && Object.assign(window.UserLeap.container.style, { display: "flex" });
|
|
105
105
|
};
|
|
106
106
|
if (J.installationMethod === "web-npm" || J.installationMethod === "web-npm-bundled") {
|
|
107
|
-
const { default: U } = await import("./view-
|
|
107
|
+
const { default: U } = await import("./view-CDrJuRMn.js").then((N) => N.C);
|
|
108
108
|
U.configure(J), ne && window.UserLeap.container && Ve();
|
|
109
109
|
} else Le && (Ue.src = `${Le}${window.UserLeap.isMobileSDK ? "" : `?t=${Date.now()}`}`, ne && Ue.addEventListener("load", () => {
|
|
110
110
|
window.UserLeap.container && Ve();
|
|
@@ -864,7 +864,7 @@ function dr(r = {}) {
|
|
|
864
864
|
var y;
|
|
865
865
|
await D(x("1", [q], "metrics"), { body: v, method: "POST", headers: { "x-ul-replay-enabled": `${!!((y = S.replay) != null && y.isReplayRecording())}` }, shouldDropOnRateLimit: !0 });
|
|
866
866
|
} }), !c) {
|
|
867
|
-
const v = d.alwaysOnReplay ? { userAgent: globalThis.navigator.userAgent, surveyId: d.alwaysOnReplay.surveyId, responseGroupUuid: d.alwaysOnReplay.responseGroupUuid, sdkVersion: "2.
|
|
867
|
+
const v = d.alwaysOnReplay ? { userAgent: globalThis.navigator.userAgent, surveyId: d.alwaysOnReplay.surveyId, responseGroupUuid: d.alwaysOnReplay.responseGroupUuid, sdkVersion: "2.45.0", maxDurationSeconds: d.alwaysOnReplay.maxDurationSeconds } : void 0;
|
|
868
868
|
await ((h = S.replay) == null ? void 0 : h.initializeReplay({ maxReplayDurationSeconds: d.maxReplayDurationSeconds, maxInflightRequests: globalThis.UserLeap.maxInflightReplayRequests ?? 2, replaySettings: d.replaySettings, apiUrl: globalThis.UserLeap._API_URL, alwaysOnConfig: v })), Fe = d.replaySettings;
|
|
869
869
|
}
|
|
870
870
|
nr(d), await or(d), globalThis.UserLeap._queue.unpause(), (b = globalThis.SprigLoggerCallback) == null || b.call(globalThis, "SdkReady"), g.emit(u.SDKReady, { mobileMetricsReportingEnabled: !!d.mobileMetricsReportingEnabled, metricsReportingInterval: d.metricsReportingIntervalSeconds || 0, metricsThresholds: d.metricThresholds || [], maxMobileReplayDurationSeconds: d.maxMobileReplayDurationSeconds, mobileReplaySettings: d.mobileReplaySettings }), g.emit(u.VisitorIDUpdated, { visitorId: globalThis.UserLeap.visitorId }), g.on(u.VisitorIDUpdated, () => {
|
package/dist/core.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("./metricsReporter-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("./metricsReporter-CIbUupJP.cjs"),e=require("./core-DSREyRo8.cjs");exports.DismissReason=i.DismissReason,exports.SprigEvent=i.SprigEvent,exports.Sprig=e.Sprig,exports.SprigAPI=e.SprigAPI,exports.default=e.core,exports.sprig=e.sprig;
|
package/dist/core.d.ts
CHANGED
|
@@ -1041,7 +1041,7 @@ type RecordedTaskResponse = {
|
|
|
1041
1041
|
type LikertResponse = number | null;
|
|
1042
1042
|
type OpenTextResponse = string;
|
|
1043
1043
|
type AiDynamicFollowUpResponse = string;
|
|
1044
|
-
type
|
|
1044
|
+
type MultiChoiceResponse = string | undefined;
|
|
1045
1045
|
type MultiSelectResponse = string[];
|
|
1046
1046
|
type MatrixResponse = {
|
|
1047
1047
|
[rowId: number]: string | null;
|
|
@@ -1053,7 +1053,7 @@ type RankOrderResponse = {
|
|
|
1053
1053
|
type VideoVoiceResponse = {
|
|
1054
1054
|
mediaRecordingUid: string;
|
|
1055
1055
|
};
|
|
1056
|
-
type CardResponse = TextUrlPromptResponse | ConsentLegalResponse | RecordedTaskResponse | LikertResponse | OpenTextResponse | AiDynamicFollowUpResponse |
|
|
1056
|
+
type CardResponse = TextUrlPromptResponse | ConsentLegalResponse | RecordedTaskResponse | LikertResponse | OpenTextResponse | AiDynamicFollowUpResponse | MultiChoiceResponse | MultiSelectResponse | MatrixResponse | NpsResponse | RankOrderResponse | MaxDiffResponseType | VideoVoiceResponse;
|
|
1057
1057
|
|
|
1058
1058
|
declare const BOOLEAN_OPERATOR: {
|
|
1059
1059
|
readonly And: 1;
|
|
@@ -1086,17 +1086,31 @@ type OldRoutingOption<C extends Comparator = DefaultComparator> = {
|
|
|
1086
1086
|
/** @example '', 'option_2', ['option_1'] */
|
|
1087
1087
|
value: number | string | string[];
|
|
1088
1088
|
};
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1089
|
+
/**
|
|
1090
|
+
* One element in array-shaped routing `value` payloads (e.g. `list_alo`, `list_exact`),
|
|
1091
|
+
* where the wire may include placeholders.
|
|
1092
|
+
*/
|
|
1093
|
+
type RoutingListValueEntry = string | undefined | null;
|
|
1094
|
+
/** Values compared in routing / display rules */
|
|
1095
|
+
type RoutingValue = number | string | RoutingListValueEntry[];
|
|
1093
1096
|
type RoutingGroupOption = {
|
|
1094
1097
|
comparator: Comparator;
|
|
1095
|
-
|
|
1096
|
-
|
|
1098
|
+
displayLabel?: string;
|
|
1099
|
+
/** Omitted on malformed or discovery-only payloads; evaluator treats missing as non-matching. */
|
|
1100
|
+
questionIndex?: number | string;
|
|
1101
|
+
value: RoutingValue | {
|
|
1097
1102
|
skipped: true;
|
|
1098
1103
|
} | null | undefined;
|
|
1099
1104
|
};
|
|
1105
|
+
/**
|
|
1106
|
+
* One slot in a complex `group`: a condition, AND/OR (1 | 2 on the wire), or a nested sub-expression.
|
|
1107
|
+
* Nested arrays evaluate recursively and become a single boolean operand in the parent list.
|
|
1108
|
+
*/
|
|
1109
|
+
type RoutingGroupSegment = RoutingGroupOption | BooleanOperator | RoutingGroupSegment[];
|
|
1110
|
+
type GroupRoutingOption = {
|
|
1111
|
+
group: RoutingGroupSegment[];
|
|
1112
|
+
target: number;
|
|
1113
|
+
};
|
|
1100
1114
|
type RoutingOptions<C extends Comparator = DefaultComparator> = RoutingOption<C | DefaultComparator>[] | null;
|
|
1101
1115
|
/** @example <p>Body</p> */
|
|
1102
1116
|
type RichTextBody = string;
|
package/dist/core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as r, S as i } from "./metricsReporter-
|
|
2
|
-
import { S as e, a as o, c as S, s as g } from "./core-
|
|
1
|
+
import { D as r, S as i } from "./metricsReporter-0HbKrvkx.js";
|
|
2
|
+
import { S as e, a as o, c as S, s as g } from "./core-YTxB8B8q.js";
|
|
3
3
|
export {
|
|
4
4
|
r as DismissReason,
|
|
5
5
|
e as Sprig,
|