@sprig-technologies/sprig-bundled 1.1.1 → 1.1.2
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-BuamjNZy.js → index-2R2XP7B7.js} +3449 -3146
- package/dist/index.d.ts +21 -10
- package/dist/index.js +1 -1
- package/dist/{view-e6qhXinS.js → view-MqQxb9ia.js} +1001 -983
- package/package.json +1 -1
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 {
|
|
@@ -2097,7 +2096,9 @@ interface MultipleChoiceOption {
|
|
|
2097
2096
|
id: number;
|
|
2098
2097
|
label: string;
|
|
2099
2098
|
optionProperties: null | {
|
|
2100
|
-
allowsTextEntry
|
|
2099
|
+
allowsTextEntry?: boolean;
|
|
2100
|
+
noneOfTheAbove?: boolean;
|
|
2101
|
+
isPinned?: boolean;
|
|
2101
2102
|
};
|
|
2102
2103
|
order: number;
|
|
2103
2104
|
productId: number;
|
|
@@ -2113,7 +2114,7 @@ interface CommonMultipleChoiceProps {
|
|
|
2113
2114
|
buttonText?: string;
|
|
2114
2115
|
captionText: string;
|
|
2115
2116
|
conceptUrl: ConceptUrl;
|
|
2116
|
-
randomize: "none" | "
|
|
2117
|
+
randomize: "none" | "all";
|
|
2117
2118
|
required: boolean;
|
|
2118
2119
|
};
|
|
2119
2120
|
}
|
|
@@ -2455,6 +2456,14 @@ type SprigEventMap = {
|
|
|
2455
2456
|
declare const eventEmitter: Emitter<SprigEventMap>;
|
|
2456
2457
|
type SprigEventEmitter = typeof eventEmitter;
|
|
2457
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
|
+
|
|
2458
2467
|
declare const enum FramePosition {
|
|
2459
2468
|
BottomLeft = "bottomLeft",
|
|
2460
2469
|
BottomRight = "bottomRight",
|
|
@@ -2554,6 +2563,8 @@ interface Config extends MobileReplayConfig {
|
|
|
2554
2563
|
isPreview?: boolean;
|
|
2555
2564
|
launchDarklyEnabled?: boolean;
|
|
2556
2565
|
locale: string;
|
|
2566
|
+
logLevel?: LogLevel;
|
|
2567
|
+
logBufferLimit?: number;
|
|
2557
2568
|
marketingUrl?: string;
|
|
2558
2569
|
maxAttrNameLength: number;
|
|
2559
2570
|
maxAttrValueLength: number;
|
|
@@ -2691,7 +2702,7 @@ declare namespace sprigConfig {
|
|
|
2691
2702
|
surveyId: number;
|
|
2692
2703
|
responseGroupUuid: string;
|
|
2693
2704
|
eventDigest?: EventDigest[];
|
|
2694
|
-
}) => Promise<
|
|
2705
|
+
}) => Promise<boolean>;
|
|
2695
2706
|
_generateVideoUploadUrl: (body: {
|
|
2696
2707
|
mediaRecordingUid?: string;
|
|
2697
2708
|
mediaType?: MediaType;
|
package/dist/index.js
CHANGED