@mushi-mushi/web 1.29.0 → 1.31.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.
- package/README.md +19 -5
- package/dist/chunks/display-capture-5ZJSTBUK.js +34 -0
- package/dist/chunks/display-capture-5ZJSTBUK.js.map +1 -0
- package/dist/chunks/screenshot-annotation-IG7C5B6Z.js +132 -0
- package/dist/chunks/screenshot-annotation-IG7C5B6Z.js.map +1 -0
- package/dist/chunks/widget-views-DX3OYHGR.js +233 -0
- package/dist/chunks/widget-views-DX3OYHGR.js.map +1 -0
- package/dist/headless.cjs +39 -13
- package/dist/headless.cjs.map +1 -1
- package/dist/headless.d.cts +1 -1
- package/dist/headless.d.ts +72 -2
- package/dist/headless.js +39 -13
- package/dist/headless.js.map +1 -1
- package/dist/i18n/index.cjs +178 -234
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/i18n/index.d.cts +114 -32
- package/dist/i18n/index.d.ts +114 -32
- package/dist/i18n/index.js +178 -234
- package/dist/i18n/index.js.map +1 -1
- package/dist/index.cjs +2495 -4386
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +203 -181
- package/dist/index.d.ts +541 -183
- package/dist/index.js +2011 -4325
- package/dist/index.js.map +1 -1
- package/dist/mushi.loader.global.js +21 -2279
- package/dist/test-utils.cjs +410 -1
- package/dist/test-utils.cjs.map +1 -1
- package/dist/test-utils.js +410 -1
- package/dist/test-utils.js.map +1 -1
- package/dist/{timeline-BuqAn2FH.d.cts → timeline-B8nMyZyM.d.cts} +12 -2
- package/package.json +19 -4
- package/dist/timeline-BuqAn2FH.d.ts +0 -63
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mushi-mushi/web",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.31.0",
|
|
4
4
|
"description": "Bug report and user feedback widget for the web. The bug mediator for AI-built apps: plain-English diagnosis + a ready fix, in your editor.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -133,6 +133,21 @@
|
|
|
133
133
|
"path": "dist/index.js",
|
|
134
134
|
"limit": "105 KB"
|
|
135
135
|
},
|
|
136
|
+
{
|
|
137
|
+
"name": "On-demand chunks: screenshot markup + tab share (gzipped)",
|
|
138
|
+
"path": [
|
|
139
|
+
"dist/chunks/screenshot-annotation-*.js",
|
|
140
|
+
"dist/chunks/display-capture-*.js"
|
|
141
|
+
],
|
|
142
|
+
"limit": "2.5 KB",
|
|
143
|
+
"gzip": true
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "On-demand chunk: Your reports, opt-ins, overflow views (gzipped)",
|
|
147
|
+
"path": "dist/chunks/widget-views-*.js",
|
|
148
|
+
"limit": "5.5 KB",
|
|
149
|
+
"gzip": true
|
|
150
|
+
},
|
|
136
151
|
{
|
|
137
152
|
"name": "Headless capture bundle (no widget, gzipped)",
|
|
138
153
|
"path": "dist/headless.js",
|
|
@@ -147,7 +162,7 @@
|
|
|
147
162
|
}
|
|
148
163
|
],
|
|
149
164
|
"dependencies": {
|
|
150
|
-
"@mushi-mushi/core": "^1.
|
|
165
|
+
"@mushi-mushi/core": "^1.31.0"
|
|
151
166
|
},
|
|
152
167
|
"peerDependencies": {
|
|
153
168
|
"rrweb": "^2.0.1"
|
|
@@ -166,9 +181,9 @@
|
|
|
166
181
|
"tsup": "^8.5.1",
|
|
167
182
|
"typescript": "^6.0.3",
|
|
168
183
|
"vitest": "^4.1.9",
|
|
169
|
-
"
|
|
184
|
+
"@mushi-mushi/eslint-config": "0.0.0",
|
|
170
185
|
"@mushi-mushi/tsconfig": "0.0.0",
|
|
171
|
-
"
|
|
186
|
+
"eslint-plugin-mushi-mushi": "0.3.4"
|
|
172
187
|
},
|
|
173
188
|
"author": "Kenji Sakuramoto <kensaurus@gmail.com> (https://github.com/kensaurus)",
|
|
174
189
|
"engines": {
|
|
@@ -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 };
|