@sprig-technologies/sprig-browser 2.26.0 → 2.26.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/electron.js CHANGED
@@ -1,5 +1,4 @@
1
- const o = () => !!(typeof window < "u" && typeof window.process == "object" && // eslint-disable-next-line @typescript-eslint/no-explicit-any
2
- window.process.type === "renderer" || typeof process < "u" && typeof process.versions == "object" && process.versions.electron || typeof navigator == "object" && typeof navigator.userAgent == "string" && navigator.userAgent.indexOf("Electron") >= 0);
1
+ const o = () => typeof window < "u" && typeof window.process == "object" && window.process.type === "renderer" || typeof process < "u" && typeof process.versions == "object" && !!process.versions.electron || typeof navigator == "object" && typeof navigator.userAgent == "string" && navigator.userAgent.indexOf("Electron") >= 0;
3
2
  function i() {
4
3
  if (!o())
5
4
  throw new Error("Only can preload contextBridge within Electron apps.");
package/dist/index.d.ts CHANGED
@@ -992,7 +992,38 @@ declare const utils_d_shadowHostInDom: typeof shadowHostInDom;
992
992
  declare const utils_d_throttle: typeof throttle;
993
993
  declare const utils_d_uniqueTextMutations: typeof uniqueTextMutations;
994
994
  declare namespace utils_d {
995
- export { type utils_d_AppendedIframe as AppendedIframe, utils_d_StyleSheetMirror as StyleSheetMirror, utils_d__mirror as _mirror, utils_d_getBaseDimension as getBaseDimension, utils_d_getNestedRule as getNestedRule, utils_d_getPositionsAndIndex as getPositionsAndIndex, utils_d_getRootShadowHost as getRootShadowHost, utils_d_getShadowHost as getShadowHost, utils_d_getWindowHeight as getWindowHeight, utils_d_getWindowScroll as getWindowScroll, utils_d_getWindowWidth as getWindowWidth, utils_d_hasShadowRoot as hasShadowRoot, utils_d_hookSetter as hookSetter, utils_d_inDom as inDom, utils_d_isAncestorRemoved as isAncestorRemoved, utils_d_isBlocked as isBlocked, utils_d_isIgnored as isIgnored, utils_d_isSerialized as isSerialized, utils_d_isSerializedIframe as isSerializedIframe, utils_d_isSerializedStylesheet as isSerializedStylesheet, utils_d_iterateResolveTree as iterateResolveTree, utils_d_legacy_isTouchEvent as legacy_isTouchEvent, utils_d_nowTimestamp as nowTimestamp, utils_d_on as on, utils_d_patch as patch, utils_d_polyfill as polyfill, utils_d_queueToResolveTrees as queueToResolveTrees, utils_d_shadowHostInDom as shadowHostInDom, utils_d_throttle as throttle, utils_d_uniqueTextMutations as uniqueTextMutations };
995
+ export {
996
+ utils_d_AppendedIframe as AppendedIframe,
997
+ utils_d_StyleSheetMirror as StyleSheetMirror,
998
+ utils_d__mirror as _mirror,
999
+ utils_d_getBaseDimension as getBaseDimension,
1000
+ utils_d_getNestedRule as getNestedRule,
1001
+ utils_d_getPositionsAndIndex as getPositionsAndIndex,
1002
+ utils_d_getRootShadowHost as getRootShadowHost,
1003
+ utils_d_getShadowHost as getShadowHost,
1004
+ utils_d_getWindowHeight as getWindowHeight,
1005
+ utils_d_getWindowScroll as getWindowScroll,
1006
+ utils_d_getWindowWidth as getWindowWidth,
1007
+ utils_d_hasShadowRoot as hasShadowRoot,
1008
+ utils_d_hookSetter as hookSetter,
1009
+ utils_d_inDom as inDom,
1010
+ utils_d_isAncestorRemoved as isAncestorRemoved,
1011
+ utils_d_isBlocked as isBlocked,
1012
+ utils_d_isIgnored as isIgnored,
1013
+ utils_d_isSerialized as isSerialized,
1014
+ utils_d_isSerializedIframe as isSerializedIframe,
1015
+ utils_d_isSerializedStylesheet as isSerializedStylesheet,
1016
+ utils_d_iterateResolveTree as iterateResolveTree,
1017
+ utils_d_legacy_isTouchEvent as legacy_isTouchEvent,
1018
+ utils_d_nowTimestamp as nowTimestamp,
1019
+ utils_d_on as on,
1020
+ utils_d_patch as patch,
1021
+ utils_d_polyfill as polyfill,
1022
+ utils_d_queueToResolveTrees as queueToResolveTrees,
1023
+ utils_d_shadowHostInDom as shadowHostInDom,
1024
+ utils_d_throttle as throttle,
1025
+ utils_d_uniqueTextMutations as uniqueTextMutations,
1026
+ };
996
1027
  }
997
1028
 
998
1029
  declare class Timer {
@@ -1427,7 +1458,28 @@ declare const rrweb_record: typeof record;
1427
1458
  type rrweb_recordOptions<T> = recordOptions<T>;
1428
1459
  declare const rrweb_unpack: typeof unpack;
1429
1460
  declare namespace rrweb {
1430
- export { rrweb_EventType as EventType, rrweb_IncrementalSource as IncrementalSource, type rrweb_LogData as LogData, type rrweb_LogLevel as LogLevel, type rrweb_Logger as Logger, rrweb_MouseInteractions as MouseInteractions, rrweb_PLUGIN_NAME as PLUGIN_NAME, rrweb_Replayer as Replayer, rrweb_ReplayerEvents as ReplayerEvents, type rrweb_StringifyOptions as StringifyOptions, rrweb_addCustomEvent as addCustomEvent, rrweb_freezePage as freezePage, rrweb_getRecordConsolePlugin as getRecordConsolePlugin, rrweb_getReplayConsolePlugin as getReplayConsolePlugin, _mirror as mirror, rrweb_pack as pack, rrweb_record as record, type rrweb_recordOptions as recordOptions, rrweb_unpack as unpack, utils_d as utils };
1461
+ export {
1462
+ rrweb_EventType as EventType,
1463
+ rrweb_IncrementalSource as IncrementalSource,
1464
+ rrweb_LogData as LogData,
1465
+ rrweb_LogLevel as LogLevel,
1466
+ rrweb_Logger as Logger,
1467
+ rrweb_MouseInteractions as MouseInteractions,
1468
+ rrweb_PLUGIN_NAME as PLUGIN_NAME,
1469
+ rrweb_Replayer as Replayer,
1470
+ rrweb_ReplayerEvents as ReplayerEvents,
1471
+ rrweb_StringifyOptions as StringifyOptions,
1472
+ rrweb_addCustomEvent as addCustomEvent,
1473
+ rrweb_freezePage as freezePage,
1474
+ rrweb_getRecordConsolePlugin as getRecordConsolePlugin,
1475
+ rrweb_getReplayConsolePlugin as getReplayConsolePlugin,
1476
+ _mirror as mirror,
1477
+ rrweb_pack as pack,
1478
+ rrweb_record as record,
1479
+ rrweb_recordOptions as recordOptions,
1480
+ rrweb_unpack as unpack,
1481
+ utils_d as utils,
1482
+ };
1431
1483
  }
1432
1484
 
1433
1485
  interface XhrResponse {
@@ -1556,7 +1608,7 @@ declare class UpChunk {
1556
1608
  */
1557
1609
  private sendChunks;
1558
1610
  }
1559
- declare function createUpload$1(options: UpChunkOptions): UpChunk;
1611
+ declare const createUpload$1: typeof UpChunk.createUpload;
1560
1612
 
1561
1613
  type _mux_upchunk_ChunkedStreamIterable = ChunkedStreamIterable;
1562
1614
  declare const _mux_upchunk_ChunkedStreamIterable: typeof ChunkedStreamIterable;
@@ -1567,7 +1619,15 @@ type _mux_upchunk_UpChunkOptions = UpChunkOptions;
1567
1619
  declare const _mux_upchunk_getChunkSizeError: typeof getChunkSizeError;
1568
1620
  declare const _mux_upchunk_isValidChunkSize: typeof isValidChunkSize;
1569
1621
  declare namespace _mux_upchunk {
1570
- export { _mux_upchunk_ChunkedStreamIterable as ChunkedStreamIterable, type _mux_upchunk_ChunkedStreamIterableOptions as ChunkedStreamIterableOptions, _mux_upchunk_UpChunk as UpChunk, type _mux_upchunk_UpChunkOptions as UpChunkOptions, createUpload$1 as createUpload, _mux_upchunk_getChunkSizeError as getChunkSizeError, _mux_upchunk_isValidChunkSize as isValidChunkSize };
1622
+ export {
1623
+ _mux_upchunk_ChunkedStreamIterable as ChunkedStreamIterable,
1624
+ _mux_upchunk_ChunkedStreamIterableOptions as ChunkedStreamIterableOptions,
1625
+ _mux_upchunk_UpChunk as UpChunk,
1626
+ _mux_upchunk_UpChunkOptions as UpChunkOptions,
1627
+ createUpload$1 as createUpload,
1628
+ _mux_upchunk_getChunkSizeError as getChunkSizeError,
1629
+ _mux_upchunk_isValidChunkSize as isValidChunkSize,
1630
+ };
1571
1631
  }
1572
1632
 
1573
1633
  declare enum NOTIFICATION_TYPES {
@@ -1816,6 +1876,74 @@ declare class Emitter<Events extends EventMap> {
1816
1876
  rawListeners<EventName extends keyof Events>(eventName: EventName): Array<Listener<Events[EventName]>>;
1817
1877
  }
1818
1878
 
1879
+ declare enum DismissReason {
1880
+ Closed = "close.click",
1881
+ Complete = "survey.completed",
1882
+ PageChange = "page.change",
1883
+ API = "api",
1884
+ Override = "override"
1885
+ }
1886
+ declare enum SprigEvent {
1887
+ ReplayCapture = "replay.capture",
1888
+ SDKReady = "sdk.ready",
1889
+ SurveyAppeared = "survey.appeared",
1890
+ SurveyClosed = "survey.closed",
1891
+ SurveyDimensions = "survey.dimensions",
1892
+ SurveyFadingOut = "survey.fadingOut",
1893
+ SurveyHeight = "survey.height",
1894
+ SurveyPresented = "survey.presented",
1895
+ SurveyLifeCycle = "survey.lifeCycle",
1896
+ SurveyWidth = "survey.width",
1897
+ SurveyWillClose = "survey.willClose",
1898
+ SurveyWillPresent = "survey.will.present",
1899
+ CloseSurveyOnOverlayClick = "close.survey.overlayClick",
1900
+ VisitorIDUpdated = "visitor.id.updated",
1901
+ QuestionAnswered = "question.answered"
1902
+ }
1903
+ declare enum SprigEventData {
1904
+ SurveyId = "survey.id"
1905
+ }
1906
+ declare const EVENTS: {
1907
+ SDK_READY: SprigEvent;
1908
+ SURVEY_APPEARED: SprigEvent;
1909
+ SURVEY_CLOSED: SprigEvent;
1910
+ SURVEY_DIMENSIONS: SprigEvent;
1911
+ SURVEY_FADING_OUT: SprigEvent;
1912
+ SURVEY_HEIGHT: SprigEvent;
1913
+ SURVEY_PRESENTED: SprigEvent;
1914
+ SURVEY_LIFE_CYCLE: SprigEvent;
1915
+ SURVEY_WILL_CLOSE: SprigEvent;
1916
+ SURVEY_WILL_PRESENT: SprigEvent;
1917
+ QUESTION_ANSWERED: SprigEvent;
1918
+ REPLAY_CAPTURE: SprigEvent;
1919
+ CLOSE_SURVEY_ON_OVERLAY_CLICK: SprigEvent;
1920
+ VISITOR_ID_UPDATED: SprigEvent;
1921
+ DATA: {
1922
+ DISMISS_REASONS: {
1923
+ API: DismissReason;
1924
+ CLOSED: DismissReason;
1925
+ COMPLETE: DismissReason;
1926
+ PAGE_CHANGE: DismissReason;
1927
+ OVERRIDE: DismissReason;
1928
+ };
1929
+ SURVEY_ID: SprigEventData;
1930
+ };
1931
+ };
1932
+ declare const enum InternalEventName {
1933
+ VerifyViewVersion = "verify.view.version",
1934
+ CurrentQuestion = "survey.question",
1935
+ ViewPrototypeClick = "question.prototype.click",
1936
+ ViewAgreementClick = "question.agreement.click",
1937
+ RecordedTaskStart = "recorded.task.start",
1938
+ RecordedTaskPermissionScreen = "recorded.task.permission.screen",
1939
+ SurveyComplete = "survey.complete"
1940
+ }
1941
+ declare const enum InternalEventData {
1942
+ ViewVersion = "view.version",
1943
+ QuestionId = "qid",
1944
+ Props = "props"
1945
+ }
1946
+
1819
1947
  declare const enum MediaType {
1820
1948
  Video = "video",
1821
1949
  Audio = "audio",
@@ -1858,6 +1986,34 @@ interface PassthroughData {
1858
1986
  responseGroupUid: UUID;
1859
1987
  }
1860
1988
 
1989
+ interface Experiment {
1990
+ id: string;
1991
+ variation?: string;
1992
+ }
1993
+
1994
+ type QueueItem = [string, ...unknown[]] | (() => void);
1995
+ declare class SprigQueue {
1996
+ paused: boolean;
1997
+ queue: QueueItem[];
1998
+ ul: WindowSprig;
1999
+ constructor(ul: WindowSprig, queue: QueueItem[]);
2000
+ flush(queue: QueueItem[]): void;
2001
+ isPaused(): boolean;
2002
+ pause(): void;
2003
+ unpause(): void;
2004
+ push(action: QueueItem): void;
2005
+ perform(func: () => void): void | Promise<unknown>;
2006
+ /**
2007
+ * Removes all queued items
2008
+ */
2009
+ empty(): void;
2010
+ }
2011
+
2012
+ declare enum SurveyState {
2013
+ Ready = "ready",
2014
+ NoSurvey = "no survey"
2015
+ }
2016
+
1861
2017
  interface RecordedTaskResponseValueType {
1862
2018
  mediaRecordingUids?: string[] | null;
1863
2019
  taskDurationMillisecond?: number;
@@ -2189,132 +2345,12 @@ interface VideoVoiceCard extends BaseCard {
2189
2345
  }
2190
2346
  type Card = TextUrlPromptCard | ConsentLegalCard | RecordedTaskCard | LikertCard | OpenTextCard | MatrixCard | MultipleChoiceSingleSelectCard | MultipleChoiceMultiSelectCard | NPSCard | VideoVoiceCard;
2191
2347
 
2192
- type MatchType = "exactly" | "legacy";
2193
- interface InteractiveEvent {
2194
- id: number;
2195
- matchType: MatchType;
2196
- name: string;
2197
- pattern: string;
2198
- properties: {
2199
- innerText: string;
2200
- selector?: string;
2201
- type?: "click";
2202
- };
2203
- }
2204
- interface PageUrlEvent {
2205
- id: number;
2206
- matchType: MatchType | "contains" | "notContains" | "regex" | "startsWith";
2207
- pattern: string;
2208
- }
2209
-
2210
- declare enum DismissReason {
2211
- Closed = "close.click",
2212
- Complete = "survey.completed",
2213
- PageChange = "page.change",
2214
- API = "api",
2215
- Override = "override"
2216
- }
2217
- declare enum SprigEvent {
2218
- ReplayCapture = "replay.capture",
2219
- SDKReady = "sdk.ready",
2220
- SurveyAppeared = "survey.appeared",
2221
- SurveyClosed = "survey.closed",
2222
- SurveyDimensions = "survey.dimensions",
2223
- SurveyFadingOut = "survey.fadingOut",
2224
- SurveyHeight = "survey.height",
2225
- SurveyPresented = "survey.presented",
2226
- SurveyLifeCycle = "survey.lifeCycle",
2227
- SurveyWidth = "survey.width",
2228
- SurveyWillClose = "survey.willClose",
2229
- SurveyWillPresent = "survey.will.present",
2230
- CloseSurveyOnOverlayClick = "close.survey.overlayClick",
2231
- VisitorIDUpdated = "visitor.id.updated",
2232
- QuestionAnswered = "question.answered"
2233
- }
2234
- declare enum SprigEventData {
2235
- SurveyId = "survey.id"
2236
- }
2237
- declare const EVENTS: {
2238
- SDK_READY: SprigEvent;
2239
- SURVEY_APPEARED: SprigEvent;
2240
- SURVEY_CLOSED: SprigEvent;
2241
- SURVEY_DIMENSIONS: SprigEvent;
2242
- SURVEY_FADING_OUT: SprigEvent;
2243
- SURVEY_HEIGHT: SprigEvent;
2244
- SURVEY_PRESENTED: SprigEvent;
2245
- SURVEY_LIFE_CYCLE: SprigEvent;
2246
- SURVEY_WILL_CLOSE: SprigEvent;
2247
- SURVEY_WILL_PRESENT: SprigEvent;
2248
- QUESTION_ANSWERED: SprigEvent;
2249
- REPLAY_CAPTURE: SprigEvent;
2250
- CLOSE_SURVEY_ON_OVERLAY_CLICK: SprigEvent;
2251
- VISITOR_ID_UPDATED: SprigEvent;
2252
- DATA: {
2253
- DISMISS_REASONS: {
2254
- API: DismissReason;
2255
- CLOSED: DismissReason;
2256
- COMPLETE: DismissReason;
2257
- PAGE_CHANGE: DismissReason;
2258
- OVERRIDE: DismissReason;
2259
- };
2260
- SURVEY_ID: SprigEventData;
2261
- };
2262
- };
2263
- declare const enum InternalEventName {
2264
- VerifyViewVersion = "verify.view.version",
2265
- CurrentQuestion = "survey.question",
2266
- ViewPrototypeClick = "question.prototype.click",
2267
- ViewAgreementClick = "question.agreement.click",
2268
- RecordedTaskStart = "recorded.task.start",
2269
- RecordedTaskPermissionScreen = "recorded.task.permission.screen",
2270
- SurveyComplete = "survey.complete"
2271
- }
2272
- declare const enum InternalEventData {
2273
- ViewVersion = "view.version",
2274
- QuestionId = "qid",
2275
- Props = "props"
2276
- }
2277
-
2278
2348
  interface RecordedTaskResponseType {
2279
2349
  questionId: number;
2280
2350
  type: CardType;
2281
2351
  value: RecordedTaskResponseValueType;
2282
2352
  }
2283
2353
 
2284
- declare enum ReplayDurationType {
2285
- After = "after",
2286
- Before = "before",
2287
- BeforeAndAfter = "beforeAndAfter"
2288
- }
2289
- declare enum ReplayEventType {
2290
- Click = "Sprig_Click",
2291
- Event = "Sprig_TrackEvent",
2292
- PageView = "Sprig_PageView",
2293
- SurveyShown = "Sprig_ShowSurvey",
2294
- SurveySubmitted = "Sprig_SubmitSurvey",
2295
- Noop = "Sprig_Noop"
2296
- }
2297
- type EventDigest = {
2298
- timestamp: number;
2299
- type: ReplayEventType.Click;
2300
- } | {
2301
- timestamp: number;
2302
- name: string;
2303
- type: ReplayEventType.Event;
2304
- } | {
2305
- timestamp: number;
2306
- type: ReplayEventType.PageView;
2307
- url: string;
2308
- } | {
2309
- timestamp: number;
2310
- surveyId: string;
2311
- type: ReplayEventType.SurveyShown;
2312
- } | {
2313
- timestamp: number;
2314
- surveyId: string;
2315
- type: ReplayEventType.SurveySubmitted;
2316
- };
2317
-
2318
2354
  interface MobileReplayConfig {
2319
2355
  maxMobileReplayDurationSeconds?: number;
2320
2356
  mobileReplaySettings?: {
@@ -2455,6 +2491,24 @@ type SprigEventMap = {
2455
2491
  declare const eventEmitter: Emitter<SprigEventMap>;
2456
2492
  type SprigEventEmitter = typeof eventEmitter;
2457
2493
 
2494
+ type MatchType = "exactly" | "legacy";
2495
+ interface InteractiveEvent {
2496
+ id: number;
2497
+ matchType: MatchType;
2498
+ name: string;
2499
+ pattern: string;
2500
+ properties: {
2501
+ innerText: string;
2502
+ selector?: string;
2503
+ type?: "click";
2504
+ };
2505
+ }
2506
+ interface PageUrlEvent {
2507
+ id: number;
2508
+ matchType: MatchType | "contains" | "notContains" | "regex" | "startsWith";
2509
+ pattern: string;
2510
+ }
2511
+
2458
2512
  declare const enum FramePosition {
2459
2513
  BottomLeft = "bottomLeft",
2460
2514
  BottomRight = "bottomRight",
@@ -2544,7 +2598,7 @@ interface Config extends MobileReplayConfig {
2544
2598
  /** @example "2.18.0" */
2545
2599
  "x-ul-sdk-version": string;
2546
2600
  /** For web-bundled sdk */
2547
- "x-ul-package-version"?: string;
2601
+ "x-ul-bundled-sdk-version"?: string;
2548
2602
  [HttpHeader.UserID]?: string;
2549
2603
  [HttpHeader.VisitorID]?: UUID;
2550
2604
  };
@@ -2597,33 +2651,39 @@ interface Config extends MobileReplayConfig {
2597
2651
  };
2598
2652
  }
2599
2653
 
2600
- interface Experiment {
2601
- id: string;
2602
- variation?: string;
2603
- }
2604
-
2605
- type QueueItem = [string, ...unknown[]] | (() => void);
2606
- declare class SprigQueue {
2607
- paused: boolean;
2608
- queue: QueueItem[];
2609
- ul: WindowSprig;
2610
- constructor(ul: WindowSprig, queue: QueueItem[]);
2611
- flush(queue: QueueItem[]): void;
2612
- isPaused(): boolean;
2613
- pause(): void;
2614
- unpause(): void;
2615
- push(action: QueueItem): void;
2616
- perform(func: () => void): void | Promise<unknown>;
2617
- /**
2618
- * Removes all queued items
2619
- */
2620
- empty(): void;
2654
+ declare enum ReplayDurationType {
2655
+ After = "after",
2656
+ Before = "before",
2657
+ BeforeAndAfter = "beforeAndAfter"
2621
2658
  }
2622
-
2623
- declare enum SurveyState {
2624
- Ready = "ready",
2625
- NoSurvey = "no survey"
2659
+ declare enum ReplayEventType {
2660
+ Click = "Sprig_Click",
2661
+ Event = "Sprig_TrackEvent",
2662
+ PageView = "Sprig_PageView",
2663
+ SurveyShown = "Sprig_ShowSurvey",
2664
+ SurveySubmitted = "Sprig_SubmitSurvey",
2665
+ Noop = "Sprig_Noop"
2626
2666
  }
2667
+ type EventDigest = {
2668
+ timestamp: number;
2669
+ type: ReplayEventType.Click;
2670
+ } | {
2671
+ timestamp: number;
2672
+ name: string;
2673
+ type: ReplayEventType.Event;
2674
+ } | {
2675
+ timestamp: number;
2676
+ type: ReplayEventType.PageView;
2677
+ url: string;
2678
+ } | {
2679
+ timestamp: number;
2680
+ surveyId: string;
2681
+ type: ReplayEventType.SurveyShown;
2682
+ } | {
2683
+ timestamp: number;
2684
+ surveyId: string;
2685
+ type: ReplayEventType.SurveySubmitted;
2686
+ };
2627
2687
 
2628
2688
  declare namespace optimizely {
2629
2689
  interface Optimizely {
@@ -2720,7 +2780,7 @@ declare namespace sprigConfig {
2720
2780
  importLaunchDarklyData: (data: Record<string, number | undefined>) => void;
2721
2781
  integrateOptimizely: (
2722
2782
  strData: string | { experiments: Experiment[] },
2723
- isOverride?: boolean,
2783
+ isOverride?: boolean
2724
2784
  ) => void;
2725
2785
  integrateOptimizelyClient: (client: Client) => void;
2726
2786
  logoutUser: () => void;
@@ -2730,22 +2790,22 @@ declare namespace sprigConfig {
2730
2790
  removeAttributes: (attributes: SprigAttributes) => IdentifyResult;
2731
2791
  removeListener: (
2732
2792
  event: SprigEvent,
2733
- listener: SprigListener,
2793
+ listener: SprigListener
2734
2794
  ) => Promise<void>;
2735
2795
  removeSurveyListener: (listener: SprigListener) => Promise<void>;
2736
2796
  reviewSurvey: (surveyId: number) => void;
2737
2797
  setAttribute: (attribute: string, value: string | number) => IdentifyResult;
2738
2798
  setAttributes: (attributes?: SprigAttributes) => IdentifyResult;
2739
2799
  setPartnerAnonymousId: (
2740
- partnerAnonymousId: string,
2800
+ partnerAnonymousId: string
2741
2801
  ) => Promise<{ success: boolean; message?: string }>;
2742
2802
  setVisitorAttribute: (
2743
2803
  attribute: string,
2744
- value: string | number,
2804
+ value: string | number
2745
2805
  ) => IdentifyResult;
2746
2806
  setWindowDimensions: (
2747
2807
  width: number | string,
2748
- height: number | string,
2808
+ height: number | string
2749
2809
  ) => void;
2750
2810
  setEmail: (email: string) => IdentifyResult;
2751
2811
  setPreviewKey: (previewKey: string) => void;
@@ -2757,12 +2817,12 @@ declare namespace sprigConfig {
2757
2817
  eventName: string,
2758
2818
  properties?: TrackPayload["properties"],
2759
2819
  metadata?: SprigMetadata,
2760
- showSurveyCallback?: (surveyId?: number) => Promise<boolean>,
2820
+ showSurveyCallback?: (surveyId?: number) => Promise<boolean>
2761
2821
  ) => IdentifyResult;
2762
2822
  trackPageView: (
2763
2823
  url: string,
2764
2824
  properties?: SprigProperties,
2765
- showSurveyCallback?: (surveyId?: number) => Promise<boolean>,
2825
+ showSurveyCallback?: (surveyId?: number) => Promise<boolean>
2766
2826
  ) => void;
2767
2827
  unmute: () => void;
2768
2828
  }
@@ -2814,19 +2874,16 @@ type ArgumentType<T> = T extends (arg1: infer U, ...args: unknown[]) => unknown
2814
2874
  ? U
2815
2875
  : unknown;
2816
2876
  type PublicOf<T> = { [K in keyof T]: T[K] };
2817
- type createUpload = (typeof _mux_upchunk)["createUpload"];
2818
- type rrwebRecord = (typeof rrweb)["record"];
2819
- type rrwebCustomEvent = (typeof rrweb)["record"]["addCustomEvent"];
2877
+ type createUpload = typeof _mux_upchunk["createUpload"];
2878
+ type rrwebRecord = typeof rrweb["record"];
2879
+ type rrwebCustomEvent = typeof rrweb["record"]["addCustomEvent"];
2820
2880
  declare global {
2821
2881
  interface Window {
2822
2882
  __cfg: Config;
2823
2883
  attachEvent?: typeof window.addEventListener;
2824
- Backbone: {
2825
- history: typeof window.history;
2826
- };
2827
2884
  Intercom: { ul_wasVisible?: boolean } & ((
2828
2885
  method: string,
2829
- data: unknown,
2886
+ data: unknown
2830
2887
  ) => void);
2831
2888
  optimizely?: optimizely.Optimizely;
2832
2889
  optimizelyDatafile?: object;
@@ -2844,7 +2901,7 @@ declare global {
2844
2901
  ...args: ArgumentTypes<rrwebCustomEvent>
2845
2902
  ) => PublicOf<ReturnType<rrwebCustomEvent>>;
2846
2903
  } & ((
2847
- arg: Omit<ArgumentType<rrwebRecord>, "hooks">,
2904
+ arg: Omit<ArgumentType<rrwebRecord>, "hooks">
2848
2905
  ) => PublicOf<ReturnType<rrwebRecord>>);
2849
2906
  sprigAPI?: object;
2850
2907
  }
@@ -3015,4 +3072,4 @@ declare const _default: {
3015
3072
  configure: (config: NpmConfig) => sprigConfig.WindowSprig;
3016
3073
  };
3017
3074
 
3018
- export { DismissReason, SprigAPI, SprigEvent, type WindowSprig$1 as WindowSprig, _default as default, sprig };
3075
+ export { DismissReason, SprigAPI, SprigEvent, WindowSprig$1 as WindowSprig, _default as default, sprig };