@mushi-mushi/web 1.26.0 → 1.28.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,5 +1,6 @@
1
- import { MushiConfig, MushiSDKInstance, MushiDiagnosticsResult, MushiReportCategory, MushiReporterReport, MushiReporterComment, MushiAssistantReply, MushiWidgetConfig, MushiLeaderboardEntry, MushiCrossAppReport, MushiTesterReputation, MushiConsoleEntry, MushiNetworkEntry, MushiUrlMatcher, MushiTracePropagationConfig, MushiPrivacyConfig, MushiPerformanceMetrics, MushiSelectedElement, MushiTimelineEntry, 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
+ 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';
3
4
  export { MushiLocale, getAvailableLocales, getLocale } from './i18n/index.cjs';
4
5
 
5
6
  declare class Mushi {
@@ -517,66 +518,6 @@ declare class MushiWidget {
517
518
  recorderOpenMyReports(): void;
518
519
  }
519
520
 
520
- interface ConsoleCapture {
521
- getEntries(): MushiConsoleEntry[];
522
- clear(): void;
523
- destroy(): void;
524
- }
525
- declare function createConsoleCapture(): ConsoleCapture;
526
-
527
- interface NetworkCapture {
528
- getEntries(): MushiNetworkEntry[];
529
- clear(): void;
530
- updateOptions(options: NetworkCaptureOptions): void;
531
- destroy(): void;
532
- }
533
- interface NetworkCaptureOptions {
534
- apiEndpoint?: string;
535
- ignoreUrls?: MushiUrlMatcher[];
536
- tracePropagation?: MushiTracePropagationConfig;
537
- sessionId?: string;
538
- }
539
- declare function createNetworkCapture(options?: NetworkCaptureOptions): NetworkCapture;
540
-
541
- interface ScreenshotCapture {
542
- take(): Promise<string | null>;
543
- updateOptions(options: ScreenshotCaptureOptions): void;
544
- }
545
- interface ScreenshotCaptureOptions {
546
- privacy?: MushiPrivacyConfig;
547
- /** Callback invoked when capture fails (taint, security policy, etc.). */
548
- onFailed?: (reason: 'taint' | 'error') => void;
549
- }
550
- declare function createScreenshotCapture(options?: ScreenshotCaptureOptions): ScreenshotCapture;
551
-
552
- interface PerformanceCapture {
553
- getMetrics(): MushiPerformanceMetrics;
554
- destroy(): void;
555
- }
556
- declare function createPerformanceCapture(): PerformanceCapture;
557
-
558
- interface ElementSelector {
559
- activate(): Promise<MushiSelectedElement | null>;
560
- deactivate(): void;
561
- isActive(): boolean;
562
- }
563
- declare function createElementSelector(): ElementSelector;
564
-
565
- interface TimelineCapture {
566
- setScreen(screen: {
567
- name: string;
568
- route?: string;
569
- feature?: string;
570
- }): void;
571
- getEntries(input?: {
572
- consoleLogs?: MushiConsoleEntry[] | null;
573
- networkLogs?: MushiNetworkEntry[] | null;
574
- }): MushiTimelineEntry[];
575
- clear(): void;
576
- destroy(): void;
577
- }
578
- declare function createTimelineCapture(): TimelineCapture;
579
-
580
521
  /**
581
522
  * FILE: packages/web/src/build-widget-theme.ts
582
523
  * PURPOSE: Resolve Shadow-DOM CSS variables from @mushi-mushi/core tokens.
@@ -737,6 +678,9 @@ interface ProactiveTriggerConfig {
737
678
  * projects. Sourced from `MushiConfig.projectId` by the SDK.
738
679
  */
739
680
  projectId?: string;
681
+ ignoreErrors?: readonly MushiErrorFilter[];
682
+ denyUrls?: readonly MushiErrorFilter[];
683
+ allowUrls?: readonly MushiErrorFilter[];
740
684
  }
741
685
  interface ProactiveTriggerCallbacks {
742
686
  onTrigger: (type: string, context: Record<string, unknown>) => void;
@@ -746,4 +690,4 @@ interface ProactiveTriggerCleanup {
746
690
  }
747
691
  declare function setupProactiveTriggers(callbacks: ProactiveTriggerCallbacks, config?: ProactiveTriggerConfig): ProactiveTriggerCleanup;
748
692
 
749
- export { type ConsoleCapture, type ElementSelector, Mushi, MushiWidget, type NetworkCapture, type PerformanceCapture, type ProactiveConfig, type ProactiveManager, type ProactiveTriggerCallbacks, type ProactiveTriggerCleanup, type ScreenshotCapture, type TimelineCapture, type WidgetThemeVars, createConsoleCapture, createElementSelector, createNetworkCapture, createPerformanceCapture, createProactiveManager, createScreenshotCapture, createTimelineCapture, getWidgetPreviewTokens, getWidgetThemeVars, setupProactiveTriggers };
693
+ export { Mushi, MushiWidget, type ProactiveConfig, type ProactiveManager, type ProactiveTriggerCallbacks, type ProactiveTriggerCleanup, type WidgetThemeVars, createProactiveManager, getWidgetPreviewTokens, getWidgetThemeVars, setupProactiveTriggers };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- import { MushiConfig, MushiSDKInstance, MushiDiagnosticsResult, MushiReportCategory, MushiReporterReport, MushiReporterComment, MushiAssistantReply, MushiWidgetConfig, MushiLeaderboardEntry, MushiCrossAppReport, MushiTesterReputation, MushiConsoleEntry, MushiNetworkEntry, MushiUrlMatcher, MushiTracePropagationConfig, MushiPrivacyConfig, MushiPerformanceMetrics, MushiSelectedElement, MushiTimelineEntry, 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
+ 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';
3
4
  export { MushiLocale, getAvailableLocales, getLocale } from './i18n/index.js';
4
5
 
5
6
  declare class Mushi {
@@ -517,66 +518,6 @@ declare class MushiWidget {
517
518
  recorderOpenMyReports(): void;
518
519
  }
519
520
 
520
- interface ConsoleCapture {
521
- getEntries(): MushiConsoleEntry[];
522
- clear(): void;
523
- destroy(): void;
524
- }
525
- declare function createConsoleCapture(): ConsoleCapture;
526
-
527
- interface NetworkCapture {
528
- getEntries(): MushiNetworkEntry[];
529
- clear(): void;
530
- updateOptions(options: NetworkCaptureOptions): void;
531
- destroy(): void;
532
- }
533
- interface NetworkCaptureOptions {
534
- apiEndpoint?: string;
535
- ignoreUrls?: MushiUrlMatcher[];
536
- tracePropagation?: MushiTracePropagationConfig;
537
- sessionId?: string;
538
- }
539
- declare function createNetworkCapture(options?: NetworkCaptureOptions): NetworkCapture;
540
-
541
- interface ScreenshotCapture {
542
- take(): Promise<string | null>;
543
- updateOptions(options: ScreenshotCaptureOptions): void;
544
- }
545
- interface ScreenshotCaptureOptions {
546
- privacy?: MushiPrivacyConfig;
547
- /** Callback invoked when capture fails (taint, security policy, etc.). */
548
- onFailed?: (reason: 'taint' | 'error') => void;
549
- }
550
- declare function createScreenshotCapture(options?: ScreenshotCaptureOptions): ScreenshotCapture;
551
-
552
- interface PerformanceCapture {
553
- getMetrics(): MushiPerformanceMetrics;
554
- destroy(): void;
555
- }
556
- declare function createPerformanceCapture(): PerformanceCapture;
557
-
558
- interface ElementSelector {
559
- activate(): Promise<MushiSelectedElement | null>;
560
- deactivate(): void;
561
- isActive(): boolean;
562
- }
563
- declare function createElementSelector(): ElementSelector;
564
-
565
- interface TimelineCapture {
566
- setScreen(screen: {
567
- name: string;
568
- route?: string;
569
- feature?: string;
570
- }): void;
571
- getEntries(input?: {
572
- consoleLogs?: MushiConsoleEntry[] | null;
573
- networkLogs?: MushiNetworkEntry[] | null;
574
- }): MushiTimelineEntry[];
575
- clear(): void;
576
- destroy(): void;
577
- }
578
- declare function createTimelineCapture(): TimelineCapture;
579
-
580
521
  /**
581
522
  * FILE: packages/web/src/build-widget-theme.ts
582
523
  * PURPOSE: Resolve Shadow-DOM CSS variables from @mushi-mushi/core tokens.
@@ -737,6 +678,9 @@ interface ProactiveTriggerConfig {
737
678
  * projects. Sourced from `MushiConfig.projectId` by the SDK.
738
679
  */
739
680
  projectId?: string;
681
+ ignoreErrors?: readonly MushiErrorFilter[];
682
+ denyUrls?: readonly MushiErrorFilter[];
683
+ allowUrls?: readonly MushiErrorFilter[];
740
684
  }
741
685
  interface ProactiveTriggerCallbacks {
742
686
  onTrigger: (type: string, context: Record<string, unknown>) => void;
@@ -746,4 +690,4 @@ interface ProactiveTriggerCleanup {
746
690
  }
747
691
  declare function setupProactiveTriggers(callbacks: ProactiveTriggerCallbacks, config?: ProactiveTriggerConfig): ProactiveTriggerCleanup;
748
692
 
749
- export { type ConsoleCapture, type ElementSelector, Mushi, MushiWidget, type NetworkCapture, type PerformanceCapture, type ProactiveConfig, type ProactiveManager, type ProactiveTriggerCallbacks, type ProactiveTriggerCleanup, type ScreenshotCapture, type TimelineCapture, type WidgetThemeVars, createConsoleCapture, createElementSelector, createNetworkCapture, createPerformanceCapture, createProactiveManager, createScreenshotCapture, createTimelineCapture, getWidgetPreviewTokens, getWidgetThemeVars, setupProactiveTriggers };
693
+ export { Mushi, MushiWidget, type ProactiveConfig, type ProactiveManager, type ProactiveTriggerCallbacks, type ProactiveTriggerCleanup, type WidgetThemeVars, createProactiveManager, getWidgetPreviewTokens, getWidgetThemeVars, setupProactiveTriggers };