@mushi-mushi/web 1.27.0 → 1.29.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/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { MushiConfig, MushiSDKInstance, MushiDiagnosticsResult, MushiReportCategory, MushiReporterReport, MushiReporterComment, MushiAssistantReply, MushiWidgetConfig, MushiLeaderboardEntry, MushiCrossAppReport, MushiTesterReputation, MushiApiCascadeConfig } from '@mushi-mushi/core';
1
+ import { MushiConfig, MushiSDKInstance, MushiDiagnosticsResult, MushiReportCategory, MushiReporterReport, MushiReporterComment, MushiAssistantReply, MushiWidgetConfig, MushiLeaderboardEntry, MushiCrossAppReport, MushiTesterReputation, MushiApiCascadeConfig, MushiErrorFilter } from '@mushi-mushi/core';
2
2
  export { MushiApiCascadeConfig, MushiConfig, MushiConsoleEntry, MushiDiagnosticsResult, MushiEnvironment, MushiEventHandler, MushiEventType, MushiNetworkEntry, MushiPerformanceMetrics, MushiReport, MushiReportCategory, MushiSDKInstance, MushiTimelineEntry, MushiTimelineKind, MushiUrlMatcher, MushiWidgetConfig } from '@mushi-mushi/core';
3
3
  export { C as ConsoleCapture, E as ElementSelector, N as NetworkCapture, P as PerformanceCapture, S as ScreenshotCapture, T as TimelineCapture, c as createConsoleCapture, a as createElementSelector, b as createNetworkCapture, d as createPerformanceCapture, e as createScreenshotCapture, f as createTimelineCapture } from './timeline-BuqAn2FH.cjs';
4
4
  export { MushiLocale, getAvailableLocales, getLocale } from './i18n/index.cjs';
@@ -92,6 +92,9 @@ interface WidgetCallbacks {
92
92
  }): void | Promise<WidgetSubmitOutcome | void>;
93
93
  onOpen(): void;
94
94
  onClose(): void;
95
+ /** "Bug reports by Mushi" mark: impression once per widget instance, click per activation → loop_* events. */
96
+ onBrandFooterImpression?(): void;
97
+ onBrandFooterClick?(): void;
95
98
  onScreenshotRequest(): void;
96
99
  onScreenshotRemove?(): void;
97
100
  /** Optional markup pass (highlight / blur / arrow) before submit. */
@@ -202,6 +205,9 @@ declare class MushiWidget {
202
205
  private nudgeEl;
203
206
  private nudgeTimer;
204
207
  private sdkFreshness;
208
+ /** Brand-footer ref (SDK sets it once hashed) + once-per-instance impression latch. */
209
+ private brandRef;
210
+ private brandImpressionSent;
205
211
  private reporterReports;
206
212
  private featureBoard;
207
213
  private reporterComments;
@@ -352,6 +358,7 @@ declare class MushiWidget {
352
358
  deprecated: boolean;
353
359
  message?: string | null;
354
360
  }): void;
361
+ setBrandRef(ref: string | null): void;
355
362
  setRewardsState(state: WidgetRewardsState | null): void;
356
363
  setLeaderboard(entries: Array<{
357
364
  display_name: string;
@@ -678,6 +685,9 @@ interface ProactiveTriggerConfig {
678
685
  * projects. Sourced from `MushiConfig.projectId` by the SDK.
679
686
  */
680
687
  projectId?: string;
688
+ ignoreErrors?: readonly MushiErrorFilter[];
689
+ denyUrls?: readonly MushiErrorFilter[];
690
+ allowUrls?: readonly MushiErrorFilter[];
681
691
  }
682
692
  interface ProactiveTriggerCallbacks {
683
693
  onTrigger: (type: string, context: Record<string, unknown>) => void;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { MushiConfig, MushiSDKInstance, MushiDiagnosticsResult, MushiReportCategory, MushiReporterReport, MushiReporterComment, MushiAssistantReply, MushiWidgetConfig, MushiLeaderboardEntry, MushiCrossAppReport, MushiTesterReputation, MushiApiCascadeConfig } from '@mushi-mushi/core';
1
+ import { MushiConfig, MushiSDKInstance, MushiDiagnosticsResult, MushiReportCategory, MushiReporterReport, MushiReporterComment, MushiAssistantReply, MushiWidgetConfig, MushiLeaderboardEntry, MushiCrossAppReport, MushiTesterReputation, MushiApiCascadeConfig, MushiErrorFilter } from '@mushi-mushi/core';
2
2
  export { MushiApiCascadeConfig, MushiConfig, MushiConsoleEntry, MushiDiagnosticsResult, MushiEnvironment, MushiEventHandler, MushiEventType, MushiNetworkEntry, MushiPerformanceMetrics, MushiReport, MushiReportCategory, MushiSDKInstance, MushiTimelineEntry, MushiTimelineKind, MushiUrlMatcher, MushiWidgetConfig } from '@mushi-mushi/core';
3
3
  export { C as ConsoleCapture, E as ElementSelector, N as NetworkCapture, P as PerformanceCapture, S as ScreenshotCapture, T as TimelineCapture, c as createConsoleCapture, a as createElementSelector, b as createNetworkCapture, d as createPerformanceCapture, e as createScreenshotCapture, f as createTimelineCapture } from './timeline-BuqAn2FH.js';
4
4
  export { MushiLocale, getAvailableLocales, getLocale } from './i18n/index.js';
@@ -92,6 +92,9 @@ interface WidgetCallbacks {
92
92
  }): void | Promise<WidgetSubmitOutcome | void>;
93
93
  onOpen(): void;
94
94
  onClose(): void;
95
+ /** "Bug reports by Mushi" mark: impression once per widget instance, click per activation → loop_* events. */
96
+ onBrandFooterImpression?(): void;
97
+ onBrandFooterClick?(): void;
95
98
  onScreenshotRequest(): void;
96
99
  onScreenshotRemove?(): void;
97
100
  /** Optional markup pass (highlight / blur / arrow) before submit. */
@@ -202,6 +205,9 @@ declare class MushiWidget {
202
205
  private nudgeEl;
203
206
  private nudgeTimer;
204
207
  private sdkFreshness;
208
+ /** Brand-footer ref (SDK sets it once hashed) + once-per-instance impression latch. */
209
+ private brandRef;
210
+ private brandImpressionSent;
205
211
  private reporterReports;
206
212
  private featureBoard;
207
213
  private reporterComments;
@@ -352,6 +358,7 @@ declare class MushiWidget {
352
358
  deprecated: boolean;
353
359
  message?: string | null;
354
360
  }): void;
361
+ setBrandRef(ref: string | null): void;
355
362
  setRewardsState(state: WidgetRewardsState | null): void;
356
363
  setLeaderboard(entries: Array<{
357
364
  display_name: string;
@@ -678,6 +685,9 @@ interface ProactiveTriggerConfig {
678
685
  * projects. Sourced from `MushiConfig.projectId` by the SDK.
679
686
  */
680
687
  projectId?: string;
688
+ ignoreErrors?: readonly MushiErrorFilter[];
689
+ denyUrls?: readonly MushiErrorFilter[];
690
+ allowUrls?: readonly MushiErrorFilter[];
681
691
  }
682
692
  interface ProactiveTriggerCallbacks {
683
693
  onTrigger: (type: string, context: Record<string, unknown>) => void;