@sprig-technologies/sprig-browser 2.26.2 → 2.26.3
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.cjs +1 -0
- package/dist/index-R4BhGZ2a.cjs +8 -0
- package/dist/{index-FFayU6Cl.js → index-aRW0ww4B.js} +2080 -1959
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +17 -8
- package/dist/index.js +2 -2
- package/dist/{view-0V5XIs3c.js → view-OvpAXz1V.js} +692 -686
- package/dist/view-oIOZ7KpC.cjs +685 -0
- package/package.json +5 -3
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-R4BhGZ2a.cjs");exports.DismissReason=e.DismissReason;exports.SprigAPI=e.SprigAPI;exports.SprigEvent=e.SprigEvent;exports.default=e.index;exports.sprig=e.sprig;
|
package/dist/index.d.ts
CHANGED
|
@@ -1361,13 +1361,13 @@ type StringifyOptions = {
|
|
|
1361
1361
|
depthOfLimit: number;
|
|
1362
1362
|
};
|
|
1363
1363
|
type LogRecordOptions = {
|
|
1364
|
-
level?: LogLevel[];
|
|
1364
|
+
level?: LogLevel$1[];
|
|
1365
1365
|
lengthThreshold?: number;
|
|
1366
1366
|
stringifyOptions?: StringifyOptions;
|
|
1367
1367
|
logger?: Logger | 'console';
|
|
1368
1368
|
};
|
|
1369
1369
|
type LogData = {
|
|
1370
|
-
level: LogLevel;
|
|
1370
|
+
level: LogLevel$1;
|
|
1371
1371
|
trace: string[];
|
|
1372
1372
|
payload: string[];
|
|
1373
1373
|
};
|
|
@@ -1392,13 +1392,13 @@ type Logger = {
|
|
|
1392
1392
|
trace?: typeof console.trace;
|
|
1393
1393
|
warn?: typeof console.warn;
|
|
1394
1394
|
};
|
|
1395
|
-
type LogLevel = keyof Logger;
|
|
1395
|
+
type LogLevel$1 = keyof Logger;
|
|
1396
1396
|
declare const PLUGIN_NAME = "rrweb/console@1";
|
|
1397
1397
|
declare const getRecordConsolePlugin: (options?: LogRecordOptions) => RecordPlugin;
|
|
1398
1398
|
|
|
1399
|
-
type ReplayLogger = Partial<Record<LogLevel, (data: LogData) => void>>;
|
|
1399
|
+
type ReplayLogger = Partial<Record<LogLevel$1, (data: LogData) => void>>;
|
|
1400
1400
|
type LogReplayConfig = {
|
|
1401
|
-
level?: LogLevel[];
|
|
1401
|
+
level?: LogLevel$1[];
|
|
1402
1402
|
replayLogger?: ReplayLogger;
|
|
1403
1403
|
};
|
|
1404
1404
|
declare const getReplayConsolePlugin: (options?: LogReplayConfig) => ReplayPlugin;
|
|
@@ -1408,7 +1408,6 @@ declare const rrweb_EventType: typeof EventType;
|
|
|
1408
1408
|
type rrweb_IncrementalSource = IncrementalSource;
|
|
1409
1409
|
declare const rrweb_IncrementalSource: typeof IncrementalSource;
|
|
1410
1410
|
type rrweb_LogData = LogData;
|
|
1411
|
-
type rrweb_LogLevel = LogLevel;
|
|
1412
1411
|
type rrweb_Logger = Logger;
|
|
1413
1412
|
type rrweb_MouseInteractions = MouseInteractions;
|
|
1414
1413
|
declare const rrweb_MouseInteractions: typeof MouseInteractions;
|
|
@@ -1427,7 +1426,7 @@ declare const rrweb_record: typeof record;
|
|
|
1427
1426
|
type rrweb_recordOptions<T> = recordOptions<T>;
|
|
1428
1427
|
declare const rrweb_unpack: typeof unpack;
|
|
1429
1428
|
declare namespace rrweb {
|
|
1430
|
-
export { rrweb_EventType as EventType, rrweb_IncrementalSource as IncrementalSource, type rrweb_LogData as LogData, type
|
|
1429
|
+
export { rrweb_EventType as EventType, rrweb_IncrementalSource as IncrementalSource, type rrweb_LogData as LogData, type LogLevel$1 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 };
|
|
1431
1430
|
}
|
|
1432
1431
|
|
|
1433
1432
|
interface XhrResponse {
|
|
@@ -2457,6 +2456,14 @@ type SprigEventMap = {
|
|
|
2457
2456
|
declare const eventEmitter: Emitter<SprigEventMap>;
|
|
2458
2457
|
type SprigEventEmitter = typeof eventEmitter;
|
|
2459
2458
|
|
|
2459
|
+
declare const LogLevels: {
|
|
2460
|
+
readonly Error: 1;
|
|
2461
|
+
readonly Warn: 2;
|
|
2462
|
+
readonly Info: 3;
|
|
2463
|
+
readonly Debug: 4;
|
|
2464
|
+
};
|
|
2465
|
+
type LogLevel = typeof LogLevels[keyof typeof LogLevels];
|
|
2466
|
+
|
|
2460
2467
|
declare const enum FramePosition {
|
|
2461
2468
|
BottomLeft = "bottomLeft",
|
|
2462
2469
|
BottomRight = "bottomRight",
|
|
@@ -2556,6 +2563,8 @@ interface Config extends MobileReplayConfig {
|
|
|
2556
2563
|
isPreview?: boolean;
|
|
2557
2564
|
launchDarklyEnabled?: boolean;
|
|
2558
2565
|
locale: string;
|
|
2566
|
+
logLevel?: LogLevel;
|
|
2567
|
+
logBufferLimit?: number;
|
|
2559
2568
|
marketingUrl?: string;
|
|
2560
2569
|
maxAttrNameLength: number;
|
|
2561
2570
|
maxAttrValueLength: number;
|
|
@@ -2693,7 +2702,7 @@ declare namespace sprigConfig {
|
|
|
2693
2702
|
surveyId: number;
|
|
2694
2703
|
responseGroupUuid: string;
|
|
2695
2704
|
eventDigest?: EventDigest[];
|
|
2696
|
-
}) => Promise<
|
|
2705
|
+
}) => Promise<boolean>;
|
|
2697
2706
|
_generateVideoUploadUrl: (body: {
|
|
2698
2707
|
mediaRecordingUid?: string;
|
|
2699
2708
|
mediaType?: MediaType;
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { D as i,
|
|
1
|
+
import { D as i, w as r, S as e, y as p, x as g } from "./index-aRW0ww4B.js";
|
|
2
2
|
export {
|
|
3
3
|
i as DismissReason,
|
|
4
4
|
r as SprigAPI,
|
|
5
5
|
e as SprigEvent,
|
|
6
6
|
p as default,
|
|
7
|
-
|
|
7
|
+
g as sprig
|
|
8
8
|
};
|