@sprig-technologies/sprig-bundled 2.41.3 → 2.42.1
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-B0CyeIR6.cjs → conversational-ui-7uwYiaVu.cjs} +1 -1
- package/dist/{conversational-ui-B9EjkRa_.js → conversational-ui-D-_CeIyn.js} +3 -3
- package/dist/{getAttributedUrl-CLM0mJDg.js → getAttributedUrl-CaTOVJ3H.js} +2 -2
- package/dist/{getAttributedUrl-B-1AYxHw.cjs → getAttributedUrl-K8cJRRz-.cjs} +1 -1
- package/dist/{index-C6wgrHGG.cjs → index-BntHJwKi.cjs} +1 -1
- package/dist/{index-D7MLde2-.js → index-CVv8LnEs.js} +2705 -2675
- package/dist/{index-BvjPahtn.js → index-CgPPSt6n.js} +96 -96
- package/dist/index-tNxjISKI.cjs +66 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +34 -50
- package/dist/index.js +4 -3
- package/dist/{view-DrI23Nf0.js → view-Bad4puKi.js} +410 -407
- package/dist/view-CkEj7hBw.cjs +1 -0
- package/package.json +1 -1
- package/dist/index-CozxNrEL.cjs +0 -66
- package/dist/view-CxEE_Iml.cjs +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-tNxjISKI.cjs");exports.DismissReason=i.DismissReason,exports.Sprig=i.Sprig,exports.SprigAPI=i.SprigAPI,exports.SprigEvent=i.SprigEvent,exports.sprig=i.sprig;
|
package/dist/index.d.ts
CHANGED
|
@@ -1550,7 +1550,7 @@ interface RecordedTaskResponseType {
|
|
|
1550
1550
|
value: RecordedTaskResponseValueType;
|
|
1551
1551
|
}
|
|
1552
1552
|
|
|
1553
|
-
type SurveyState = "ready" | "no survey";
|
|
1553
|
+
type SurveyState = "ready" | "no survey" | "previous survey ready";
|
|
1554
1554
|
type ReplayDurationType = "after" | "before" | "beforeAndAfter";
|
|
1555
1555
|
|
|
1556
1556
|
interface MobileReplayConfig {
|
|
@@ -1827,7 +1827,6 @@ interface Config extends MobileReplayConfig {
|
|
|
1827
1827
|
interactiveEventsHandler?: (e: MouseEvent) => void;
|
|
1828
1828
|
isConversationalUI?: boolean;
|
|
1829
1829
|
isOnQuestionsTab?: boolean;
|
|
1830
|
-
isPreview?: boolean;
|
|
1831
1830
|
launchDarklyEnabled?: boolean;
|
|
1832
1831
|
layout: StudyLayout;
|
|
1833
1832
|
locale: string;
|
|
@@ -1935,45 +1934,6 @@ type EventDigest = {
|
|
|
1935
1934
|
type: "Sprig_ReplayResumed";
|
|
1936
1935
|
};
|
|
1937
1936
|
|
|
1938
|
-
declare namespace optimizely {
|
|
1939
|
-
interface Optimizely {
|
|
1940
|
-
get?: (key: "state") => {
|
|
1941
|
-
getExperimentStates: (options: {
|
|
1942
|
-
filter?: unknown;
|
|
1943
|
-
isActive?: boolean;
|
|
1944
|
-
}) => Record<string, OptimizelyExperimentState>;
|
|
1945
|
-
};
|
|
1946
|
-
}
|
|
1947
|
-
|
|
1948
|
-
// Ref: https://docs.developers.optimizely.com/web/docs/state#return-value-2
|
|
1949
|
-
interface OptimizelyExperimentState {
|
|
1950
|
-
/** Audiences the visitor was in when the experiment was activated.
|
|
1951
|
-
* @example { "id": "6672770135", "name": "Chrome users" }
|
|
1952
|
-
*/
|
|
1953
|
-
audiences: { id: number; name: string }[];
|
|
1954
|
-
/** The name of the experiment
|
|
1955
|
-
* @example OptimizelyExperimentState
|
|
1956
|
-
* */
|
|
1957
|
-
experimentName: string;
|
|
1958
|
-
/** The ID of the experiment
|
|
1959
|
-
* @example OptimizelyExperimentState
|
|
1960
|
-
* */
|
|
1961
|
-
id: string;
|
|
1962
|
-
/** Indicates if the experiment is currently active */
|
|
1963
|
-
isActive: boolean;
|
|
1964
|
-
/** Indicates if the visitor is in the holdback (i.e., is excluded due traffic allocation) */
|
|
1965
|
-
isInExperimentHoldback: boolean;
|
|
1966
|
-
/** The name of the object. Required */
|
|
1967
|
-
name: string;
|
|
1968
|
-
/** An object with the name and the ID of the variation the visitor is bucketed in, or null if the visitor was not bucketed
|
|
1969
|
-
* @example { "id": "6626731852", "name": "Variation #1" }
|
|
1970
|
-
*/
|
|
1971
|
-
variation: { id: number; name: string } | null;
|
|
1972
|
-
/** Indicates if the visitor was redirected due to this experiment */
|
|
1973
|
-
visitorRedirected: boolean;
|
|
1974
|
-
}
|
|
1975
|
-
}
|
|
1976
|
-
|
|
1977
1937
|
declare namespace sprigConfig {
|
|
1978
1938
|
type IdentifyResult = Promise<
|
|
1979
1939
|
| {
|
|
@@ -2170,6 +2130,33 @@ declare global {
|
|
|
2170
2130
|
SprigLoggerCallback?: (message: string) => void;
|
|
2171
2131
|
}
|
|
2172
2132
|
|
|
2133
|
+
/* eslint-disable no-var */
|
|
2134
|
+
var __cfg: Config;
|
|
2135
|
+
var _sprigReinitialize: () => void;
|
|
2136
|
+
var attachEvent: typeof window.addEventListener | undefined;
|
|
2137
|
+
var Backbone: {
|
|
2138
|
+
history: typeof window.history;
|
|
2139
|
+
};
|
|
2140
|
+
var Intercom: { ul_wasVisible?: boolean } & ((
|
|
2141
|
+
method: string,
|
|
2142
|
+
data?: unknown,
|
|
2143
|
+
) => void);
|
|
2144
|
+
var optimizely: optimizely.Optimizely;
|
|
2145
|
+
var optimizelyDatafile: object;
|
|
2146
|
+
var previewMode: unknown;
|
|
2147
|
+
var UpChunk: {
|
|
2148
|
+
createUpload: typeof createUpload;
|
|
2149
|
+
};
|
|
2150
|
+
var _Sprig: sprigConfig.WindowSprig | undefined;
|
|
2151
|
+
var Sprig: sprigConfig.WindowSprig;
|
|
2152
|
+
var UserLeap: sprigConfig.WindowSprig & {
|
|
2153
|
+
windowDimensions?: { height: number; width: number };
|
|
2154
|
+
};
|
|
2155
|
+
var rrwebRecord: (typeof _rrweb_record)["record"] | undefined;
|
|
2156
|
+
var sprigAPI: { openUrl: (url: string) => void } | undefined;
|
|
2157
|
+
var SprigLoggerCallback: (message: string) => void | undefined;
|
|
2158
|
+
/* eslint-enable no-var */
|
|
2159
|
+
|
|
2173
2160
|
type WindowSprig = sprigConfig.WindowSprig;
|
|
2174
2161
|
type SprigAttributes = Record<string, boolean | number | string>;
|
|
2175
2162
|
type SprigListener = Listener<unknown[]>;
|
|
@@ -2216,17 +2203,12 @@ declare class SprigAPI {
|
|
|
2216
2203
|
SURVEY_WILL_PRESENT: SprigEvent;
|
|
2217
2204
|
QUESTION_ANSWERED: SprigEvent;
|
|
2218
2205
|
REPLAY_CAPTURE: SprigEvent;
|
|
2219
|
-
CLOSE_SURVEY_ON_OVERLAY_CLICK: SprigEvent;
|
|
2220
|
-
* Tracks a page view with the provided URL and additional event properties.
|
|
2221
|
-
*/
|
|
2206
|
+
CLOSE_SURVEY_ON_OVERLAY_CLICK: SprigEvent;
|
|
2222
2207
|
VISITOR_ID_UPDATED: SprigEvent;
|
|
2223
2208
|
DATA: {
|
|
2224
2209
|
DISMISS_REASONS: {
|
|
2225
2210
|
API: DismissReason;
|
|
2226
2211
|
CLOSED: DismissReason;
|
|
2227
|
-
/**
|
|
2228
|
-
* Apply a css string representing the customized styles
|
|
2229
|
-
*/
|
|
2230
2212
|
COMPLETE: DismissReason;
|
|
2231
2213
|
PAGE_CHANGE: DismissReason;
|
|
2232
2214
|
OVERRIDE: DismissReason;
|
|
@@ -2325,7 +2307,7 @@ declare class SprigAPI {
|
|
|
2325
2307
|
*/
|
|
2326
2308
|
logoutUser(): void;
|
|
2327
2309
|
/**
|
|
2328
|
-
* Clears Sprig from
|
|
2310
|
+
* Clears Sprig from globalThis
|
|
2329
2311
|
*/
|
|
2330
2312
|
teardown(): void;
|
|
2331
2313
|
/**
|
|
@@ -2350,6 +2332,8 @@ declare const sprig: {
|
|
|
2350
2332
|
*/
|
|
2351
2333
|
configure: (config: NpmConfig) => sprigConfig.WindowSprig;
|
|
2352
2334
|
};
|
|
2353
|
-
type WindowSprig$1 = typeof
|
|
2335
|
+
type WindowSprig$1 = typeof globalThis.Sprig;
|
|
2336
|
+
|
|
2337
|
+
declare const Sprig: SprigAPI;
|
|
2354
2338
|
|
|
2355
|
-
export { DismissReason, SprigAPI, SprigEvent, type WindowSprig$1 as WindowSprig, sprig };
|
|
2339
|
+
export { DismissReason, Sprig, SprigAPI, SprigEvent, type WindowSprig$1 as WindowSprig, sprig };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { d as i, n as r, S as
|
|
1
|
+
import { d as i, n as p, o as r, S as g, p as o } from "./index-CVv8LnEs.js";
|
|
2
2
|
export {
|
|
3
3
|
i as DismissReason,
|
|
4
|
+
p as Sprig,
|
|
4
5
|
r as SprigAPI,
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
g as SprigEvent,
|
|
7
|
+
o as sprig
|
|
7
8
|
};
|