@sprig-technologies/sprig-bundled 1.1.7 → 1.1.8
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/{index-DvS_ADe1.js → index-BnOajwL7.js} +3132 -3843
- package/dist/index-BnOajwL7.js.map +1 -0
- package/dist/index-MkVSshrN.cjs +67 -0
- package/dist/index-MkVSshrN.cjs.map +1 -0
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +31 -2
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -0
- package/dist/view-UeZsENA_.js +1960 -0
- package/dist/view-UeZsENA_.js.map +1 -0
- package/dist/view-VQ3LPBC1.cjs +13 -0
- package/dist/view-VQ3LPBC1.cjs.map +1 -0
- package/package.json +1 -1
- package/dist/index-C7xpx0J5.cjs +0 -66
- package/dist/view-BTlAJUks.js +0 -1927
- package/dist/view-CDCFNST3.cjs +0 -12
package/dist/index.cjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-MkVSshrN.cjs");exports.DismissReason=e.DismissReason,exports.SprigAPI=e.SprigAPI,exports.SprigEvent=e.SprigEvent,exports.sprig=e.sprig;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.d.ts
CHANGED
|
@@ -1028,6 +1028,7 @@ interface BaseCard {
|
|
|
1028
1028
|
updatedAt: string;
|
|
1029
1029
|
value?: unknown;
|
|
1030
1030
|
type: CardType;
|
|
1031
|
+
groupId?: number;
|
|
1031
1032
|
}
|
|
1032
1033
|
type Comparator = "answered" | "contains" | "notcontains" | "list_dni" | "eq" | "given_up" | "gt" | "gte" | "lt" | "lte" | "list_all" | "list_alo" | "list_exact" | "neq" | "partial" | "skipped";
|
|
1033
1034
|
type DefaultComparator = Extract<Comparator, "answered" | "skipped">;
|
|
@@ -1340,9 +1341,11 @@ declare enum DismissReason {
|
|
|
1340
1341
|
API = "api",// JS called Sprig('dismissActiveSurvey')
|
|
1341
1342
|
Override = "override"
|
|
1342
1343
|
}
|
|
1343
|
-
type StudyType = "feedbackButton" | "inProductSurvey";
|
|
1344
|
+
type StudyType = "feedbackButton" | "inProductSurvey" | "longFormSurvey";
|
|
1344
1345
|
declare enum SprigEvent {
|
|
1345
1346
|
ReplayCapture = "replay.capture",
|
|
1347
|
+
ReplayPaused = "replay.paused",
|
|
1348
|
+
ReplayResumed = "replay.resumed",
|
|
1346
1349
|
FeedbackButtonLoaded = "feedback.button.loaded",
|
|
1347
1350
|
SDKReady = "sdk.ready",
|
|
1348
1351
|
SurveyAppeared = "survey.appeared",
|
|
@@ -1539,6 +1542,8 @@ type SprigEventMap = {
|
|
|
1539
1542
|
surveyId: number;
|
|
1540
1543
|
}
|
|
1541
1544
|
];
|
|
1545
|
+
[SprigEvent.ReplayPaused]: [];
|
|
1546
|
+
[SprigEvent.ReplayResumed]: [];
|
|
1542
1547
|
"av.permission": [
|
|
1543
1548
|
{
|
|
1544
1549
|
"stream.ready": (avStream: MediaStream | null, captureStream?: MediaStream | null) => void;
|
|
@@ -1672,6 +1677,7 @@ interface Config extends MobileReplayConfig {
|
|
|
1672
1677
|
mode?: string;
|
|
1673
1678
|
mute?: boolean;
|
|
1674
1679
|
optimizelyEnabled?: boolean;
|
|
1680
|
+
outstandingTransactionLimit?: number | null;
|
|
1675
1681
|
overlayStyle: "light";
|
|
1676
1682
|
overlayStyleMobile: "none";
|
|
1677
1683
|
pageUrlEvents: PageUrlEvent[];
|
|
@@ -1749,6 +1755,12 @@ type EventDigest = {
|
|
|
1749
1755
|
timestamp: number;
|
|
1750
1756
|
surveyId: string;
|
|
1751
1757
|
type: "Sprig_SubmitSurvey";
|
|
1758
|
+
} | {
|
|
1759
|
+
timestamp: number;
|
|
1760
|
+
type: "Sprig_ReplayPaused";
|
|
1761
|
+
} | {
|
|
1762
|
+
timestamp: number;
|
|
1763
|
+
type: "Sprig_ReplayResumed";
|
|
1752
1764
|
};
|
|
1753
1765
|
|
|
1754
1766
|
declare namespace optimizely {
|
|
@@ -1897,7 +1909,10 @@ declare namespace sprigConfig {
|
|
|
1897
1909
|
showSurveyCallback?: (surveyId?: number) => Promise<boolean>,
|
|
1898
1910
|
calledFromApi?: boolean,
|
|
1899
1911
|
) => void;
|
|
1912
|
+
trackHistory?: ({ event: string }) => void;
|
|
1900
1913
|
unmute: () => void;
|
|
1914
|
+
pauseReplayRecording: () => void;
|
|
1915
|
+
resumeReplayRecording: () => void;
|
|
1901
1916
|
}
|
|
1902
1917
|
|
|
1903
1918
|
type SprigCommand = keyof SprigAPIActions;
|
|
@@ -1933,6 +1948,7 @@ declare namespace sprigConfig {
|
|
|
1933
1948
|
locale?: string;
|
|
1934
1949
|
maxHeight?: number | string;
|
|
1935
1950
|
maxInflightReplayRequests?: number;
|
|
1951
|
+
outstandingTransactionLimit?: number | null;
|
|
1936
1952
|
mobileHeadersJSON?: string;
|
|
1937
1953
|
nonce?: string;
|
|
1938
1954
|
partnerAnonymousId: string | null;
|
|
@@ -2019,12 +2035,17 @@ declare class SprigAPI {
|
|
|
2019
2035
|
SURVEY_WILL_PRESENT: SprigEvent;
|
|
2020
2036
|
QUESTION_ANSWERED: SprigEvent;
|
|
2021
2037
|
REPLAY_CAPTURE: SprigEvent;
|
|
2022
|
-
CLOSE_SURVEY_ON_OVERLAY_CLICK: SprigEvent;
|
|
2038
|
+
CLOSE_SURVEY_ON_OVERLAY_CLICK: SprigEvent; /**
|
|
2039
|
+
* Tracks a page view with the provided URL and additional event properties.
|
|
2040
|
+
*/
|
|
2023
2041
|
VISITOR_ID_UPDATED: SprigEvent;
|
|
2024
2042
|
DATA: {
|
|
2025
2043
|
DISMISS_REASONS: {
|
|
2026
2044
|
API: DismissReason;
|
|
2027
2045
|
CLOSED: DismissReason;
|
|
2046
|
+
/**
|
|
2047
|
+
* Apply a css string representing the customized styles
|
|
2048
|
+
*/
|
|
2028
2049
|
COMPLETE: DismissReason;
|
|
2029
2050
|
PAGE_CHANGE: DismissReason;
|
|
2030
2051
|
OVERRIDE: DismissReason;
|
|
@@ -2126,6 +2147,14 @@ declare class SprigAPI {
|
|
|
2126
2147
|
* Clears Sprig from window
|
|
2127
2148
|
*/
|
|
2128
2149
|
teardown(): void;
|
|
2150
|
+
/**
|
|
2151
|
+
* Pause replay recording
|
|
2152
|
+
*/
|
|
2153
|
+
pauseReplayRecording(): void;
|
|
2154
|
+
/**
|
|
2155
|
+
* Resume replay recording
|
|
2156
|
+
*/
|
|
2157
|
+
resumeReplayRecording(): void;
|
|
2129
2158
|
}
|
|
2130
2159
|
type NpmConfig = {
|
|
2131
2160
|
envId?: string;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as i, l as r, S as p, m as e } from "./index-BnOajwL7.js";
|
|
2
2
|
export {
|
|
3
3
|
i as DismissReason,
|
|
4
4
|
r as SprigAPI,
|
|
5
5
|
p as SprigEvent,
|
|
6
6
|
e as sprig
|
|
7
7
|
};
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|