@mushi-mushi/web 1.37.0 → 1.38.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.
@@ -40,6 +40,10 @@ interface ScreenshotCaptureOptions {
40
40
  * - error: anything else
41
41
  */
42
42
  type ScreenshotFailureReason = 'taint' | 'timeout' | 'unsupported' | 'csp' | 'error';
43
+ /**
44
+ * The capture code lives in ./screenshot-dom and loads on the first
45
+ * screenshot, so a page that never takes one never downloads it.
46
+ */
43
47
  declare function createScreenshotCapture(options?: ScreenshotCaptureOptions): ScreenshotCapture;
44
48
 
45
49
  interface PerformanceCapture {
@@ -53,7 +57,13 @@ interface ElementSelector {
53
57
  deactivate(): void;
54
58
  isActive(): boolean;
55
59
  }
56
- declare function createElementSelector(): ElementSelector;
60
+ /**
61
+ * @param privateSelector CSS selector for areas whose text never leaves the
62
+ * page (the screenshot redaction list). An element inside one, or holding
63
+ * one, is reported without its text.
64
+ * @param scrubText Runs over the element text that is kept (the PII scrubber).
65
+ */
66
+ declare function createElementSelector(privateSelector?: () => string, scrubText?: (text: string) => string): ElementSelector;
57
67
 
58
68
  interface TimelineCapture {
59
69
  setScreen(screen: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mushi-mushi/web",
3
- "version": "1.37.0",
3
+ "version": "1.38.0",
4
4
  "description": "Bug report and user feedback widget for the web. One place to improve AI-built apps: fix bugs, smooth user journeys and clean up the code.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -125,7 +125,7 @@
125
125
  {
126
126
  "name": "Core SDK bundle (minified + gzipped)",
127
127
  "path": "dist/index.js",
128
- "limit": "90.5 KB",
128
+ "limit": "89.2 KB",
129
129
  "gzip": true
130
130
  },
131
131
  {
@@ -142,6 +142,12 @@
142
142
  "limit": "2.5 KB",
143
143
  "gzip": true
144
144
  },
145
+ {
146
+ "name": "On-demand chunk: DOM screenshot capture (gzipped)",
147
+ "path": "dist/chunks/screenshot-dom-*.js",
148
+ "limit": "8 KB",
149
+ "gzip": true
150
+ },
145
151
  {
146
152
  "name": "On-demand chunk: Your reports, opt-ins, overflow views (gzipped)",
147
153
  "path": "dist/chunks/widget-views-*.js",