@mushi-mushi/web 1.28.0 → 1.30.0

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.
@@ -1,63 +0,0 @@
1
- import { MushiConsoleEntry, MushiNetworkEntry, MushiUrlMatcher, MushiTracePropagationConfig, MushiPrivacyConfig, MushiPerformanceMetrics, MushiSelectedElement, MushiTimelineEntry } from '@mushi-mushi/core';
2
-
3
- interface ConsoleCapture {
4
- getEntries(): MushiConsoleEntry[];
5
- clear(): void;
6
- destroy(): void;
7
- }
8
- declare function createConsoleCapture(): ConsoleCapture;
9
-
10
- interface NetworkCapture {
11
- getEntries(): MushiNetworkEntry[];
12
- clear(): void;
13
- updateOptions(options: NetworkCaptureOptions): void;
14
- destroy(): void;
15
- }
16
- interface NetworkCaptureOptions {
17
- apiEndpoint?: string;
18
- ignoreUrls?: MushiUrlMatcher[];
19
- tracePropagation?: MushiTracePropagationConfig;
20
- sessionId?: string;
21
- }
22
- declare function createNetworkCapture(options?: NetworkCaptureOptions): NetworkCapture;
23
-
24
- interface ScreenshotCapture {
25
- take(): Promise<string | null>;
26
- updateOptions(options: ScreenshotCaptureOptions): void;
27
- }
28
- interface ScreenshotCaptureOptions {
29
- privacy?: MushiPrivacyConfig;
30
- /** Callback invoked when capture fails (taint, security policy, etc.). */
31
- onFailed?: (reason: 'taint' | 'error') => void;
32
- }
33
- declare function createScreenshotCapture(options?: ScreenshotCaptureOptions): ScreenshotCapture;
34
-
35
- interface PerformanceCapture {
36
- getMetrics(): MushiPerformanceMetrics;
37
- destroy(): void;
38
- }
39
- declare function createPerformanceCapture(): PerformanceCapture;
40
-
41
- interface ElementSelector {
42
- activate(): Promise<MushiSelectedElement | null>;
43
- deactivate(): void;
44
- isActive(): boolean;
45
- }
46
- declare function createElementSelector(): ElementSelector;
47
-
48
- interface TimelineCapture {
49
- setScreen(screen: {
50
- name: string;
51
- route?: string;
52
- feature?: string;
53
- }): void;
54
- getEntries(input?: {
55
- consoleLogs?: MushiConsoleEntry[] | null;
56
- networkLogs?: MushiNetworkEntry[] | null;
57
- }): MushiTimelineEntry[];
58
- clear(): void;
59
- destroy(): void;
60
- }
61
- declare function createTimelineCapture(): TimelineCapture;
62
-
63
- export { type ConsoleCapture as C, type ElementSelector as E, type NetworkCapture as N, type PerformanceCapture as P, type ScreenshotCapture as S, type TimelineCapture as T, createElementSelector as a, createNetworkCapture as b, createConsoleCapture as c, createPerformanceCapture as d, createScreenshotCapture as e, createTimelineCapture as f };