@mushi-mushi/web 1.20.0 → 1.21.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
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';
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 { MushiLocale, getAvailableLocales, getLocale } from './i18n/index.cjs';
3
4
 
4
5
  declare class Mushi {
5
6
  private constructor();
@@ -139,6 +140,8 @@ declare class MushiWidget {
139
140
  private viaFeatureRequest;
140
141
  /** Whether the category list is fully expanded (progressive disclosure). */
141
142
  private showAllCategories;
143
+ /** Secondary hub nav (inbox, assistant, community) collapsed under "More". */
144
+ private showMoreNav;
142
145
  private screenshotAttached;
143
146
  private screenshotCapturing;
144
147
  private screenshotError;
@@ -418,12 +421,20 @@ declare class MushiWidget {
418
421
  private loadFeatureBoard;
419
422
  private voteFeatureBoard;
420
423
  private submitReporterReopen;
424
+ /** Refresh My Reports data for unread badges without opening the inbox panel. */
425
+ refreshReporterInboxQuiet(): Promise<void>;
421
426
  private loadReporterReports;
422
427
  private loadReporterComments;
423
428
  private submitReporterFeedback;
424
429
  private submitReporterReply;
425
430
  private handleMagicLinkSend;
426
431
  getRecorderStep(): WidgetStep;
432
+ /** QA / Playwright: category-step IA without piercing closed shadow from page JS. */
433
+ getRecorderCategoryStepIA(): {
434
+ sectionLabel: string;
435
+ moreToggle: boolean;
436
+ footerStepIndicators: number;
437
+ };
427
438
  getRecorderTrigger(): Element | null;
428
439
  getRecorderCategoryButton(category: MushiReportCategory): Element | null;
429
440
  getRecorderIntentButton(label: string): Element | null;
@@ -502,51 +513,77 @@ interface TimelineCapture {
502
513
  }
503
514
  declare function createTimelineCapture(): TimelineCapture;
504
515
 
505
- interface MushiLocale {
506
- widget: {
507
- trigger: string;
508
- title: string;
509
- close: string;
510
- back: string;
511
- submit: string;
512
- submitting: string;
513
- submitted: string;
514
- error: string;
516
+ interface WidgetThemeVars {
517
+ isDark: boolean;
518
+ paper: string;
519
+ paperRaised: string;
520
+ ink: string;
521
+ inkMuted: string;
522
+ inkFaint: string;
523
+ inkDim: string;
524
+ rule: string;
525
+ ruleStrong: string;
526
+ widgetAccent: string;
527
+ widgetAccentWash: string;
528
+ widgetAccentInk: string;
529
+ widgetAccentShadow: string;
530
+ ok: string;
531
+ danger: string;
532
+ onAccent: string;
533
+ inverse: string;
534
+ neonBannerBg: string;
535
+ neonBannerFg: string;
536
+ neonBannerBorder: string;
537
+ brandBannerBorder: string;
538
+ statusSent: {
539
+ fg: string;
540
+ bg: string;
541
+ border: string;
515
542
  };
516
- step1: {
517
- heading: string;
518
- categories: Record<MushiReportCategory, string>;
519
- categoryDescriptions: Record<MushiReportCategory, string>;
543
+ statusReview: {
544
+ fg: string;
545
+ bg: string;
546
+ border: string;
520
547
  };
521
- step2: {
522
- heading: string;
523
- intents: Record<MushiReportCategory, string[]>;
548
+ statusFixing: {
549
+ fg: string;
550
+ bg: string;
551
+ border: string;
524
552
  };
525
- step3: {
526
- heading: string;
527
- descriptionPlaceholder: string;
528
- screenshotButton: string;
529
- screenshotAttached: string;
530
- screenshotCapturing: string;
531
- screenshotFailed: string;
532
- /** Alt text for the attached-screenshot preview image. */
533
- screenshotPreviewAlt: string;
534
- /** Default privacy caption shown beside the screenshot preview. */
535
- screenshotSensitiveHint: string;
536
- elementButton: string;
537
- elementSelected: string;
538
- elementCapturing: string;
539
- elementSelectorHint: string;
540
- optional: string;
541
- /** Inline validation: description is below the minimum length. */
542
- tooShort: string;
543
- /** Example starter chips rendered above the textarea to lower the barrier. */
544
- examplePrompts: string[];
553
+ statusFixed: {
554
+ fg: string;
555
+ bg: string;
556
+ border: string;
545
557
  };
558
+ statusClosedBg: string;
559
+ fontDisplay: string;
560
+ fontBody: string;
561
+ fontMono: string;
562
+ easeStamp: string;
563
+ zBanner: number;
564
+ zPanel: number;
565
+ zOverlay: number;
566
+ fabSize: number;
567
+ panelWidth: number;
568
+ panelSheetBreakpoint: number;
546
569
  }
547
-
548
- declare function getLocale(code?: string): MushiLocale;
549
- declare function getAvailableLocales(): string[];
570
+ declare function getWidgetThemeVars(theme: 'light' | 'dark', accent?: string, accentText?: string): WidgetThemeVars;
571
+ /** Preview subset for admin SdkInstallCard — same palette as the live widget. */
572
+ declare function getWidgetPreviewTokens(theme: 'light' | 'dark'): {
573
+ paper: string;
574
+ paperRaised: string;
575
+ ink: string;
576
+ inkMuted: string;
577
+ rule: string;
578
+ vermillion: string;
579
+ vermillionShadow: string;
580
+ accentWash: string;
581
+ onAccent: string;
582
+ neonBannerBg: string;
583
+ neonBannerFg: string;
584
+ neonBannerBorder: string;
585
+ brandBannerBorder: string;
586
+ };
550
587
 
551
588
  interface ProactiveConfig {
552
589
  maxProactivePerSession: number;
@@ -618,4 +655,4 @@ interface ProactiveTriggerCleanup {
618
655
  }
619
656
  declare function setupProactiveTriggers(callbacks: ProactiveTriggerCallbacks, config?: ProactiveTriggerConfig): ProactiveTriggerCleanup;
620
657
 
621
- export { type ConsoleCapture, type ElementSelector, Mushi, type MushiLocale, MushiWidget, type NetworkCapture, type PerformanceCapture, type ProactiveConfig, type ProactiveManager, type ProactiveTriggerCallbacks, type ProactiveTriggerCleanup, type ScreenshotCapture, type TimelineCapture, createConsoleCapture, createElementSelector, createNetworkCapture, createPerformanceCapture, createProactiveManager, createScreenshotCapture, createTimelineCapture, getAvailableLocales, getLocale, setupProactiveTriggers };
658
+ 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 };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
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';
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 { MushiLocale, getAvailableLocales, getLocale } from './i18n/index.js';
3
4
 
4
5
  declare class Mushi {
5
6
  private constructor();
@@ -139,6 +140,8 @@ declare class MushiWidget {
139
140
  private viaFeatureRequest;
140
141
  /** Whether the category list is fully expanded (progressive disclosure). */
141
142
  private showAllCategories;
143
+ /** Secondary hub nav (inbox, assistant, community) collapsed under "More". */
144
+ private showMoreNav;
142
145
  private screenshotAttached;
143
146
  private screenshotCapturing;
144
147
  private screenshotError;
@@ -418,12 +421,20 @@ declare class MushiWidget {
418
421
  private loadFeatureBoard;
419
422
  private voteFeatureBoard;
420
423
  private submitReporterReopen;
424
+ /** Refresh My Reports data for unread badges without opening the inbox panel. */
425
+ refreshReporterInboxQuiet(): Promise<void>;
421
426
  private loadReporterReports;
422
427
  private loadReporterComments;
423
428
  private submitReporterFeedback;
424
429
  private submitReporterReply;
425
430
  private handleMagicLinkSend;
426
431
  getRecorderStep(): WidgetStep;
432
+ /** QA / Playwright: category-step IA without piercing closed shadow from page JS. */
433
+ getRecorderCategoryStepIA(): {
434
+ sectionLabel: string;
435
+ moreToggle: boolean;
436
+ footerStepIndicators: number;
437
+ };
427
438
  getRecorderTrigger(): Element | null;
428
439
  getRecorderCategoryButton(category: MushiReportCategory): Element | null;
429
440
  getRecorderIntentButton(label: string): Element | null;
@@ -502,51 +513,77 @@ interface TimelineCapture {
502
513
  }
503
514
  declare function createTimelineCapture(): TimelineCapture;
504
515
 
505
- interface MushiLocale {
506
- widget: {
507
- trigger: string;
508
- title: string;
509
- close: string;
510
- back: string;
511
- submit: string;
512
- submitting: string;
513
- submitted: string;
514
- error: string;
516
+ interface WidgetThemeVars {
517
+ isDark: boolean;
518
+ paper: string;
519
+ paperRaised: string;
520
+ ink: string;
521
+ inkMuted: string;
522
+ inkFaint: string;
523
+ inkDim: string;
524
+ rule: string;
525
+ ruleStrong: string;
526
+ widgetAccent: string;
527
+ widgetAccentWash: string;
528
+ widgetAccentInk: string;
529
+ widgetAccentShadow: string;
530
+ ok: string;
531
+ danger: string;
532
+ onAccent: string;
533
+ inverse: string;
534
+ neonBannerBg: string;
535
+ neonBannerFg: string;
536
+ neonBannerBorder: string;
537
+ brandBannerBorder: string;
538
+ statusSent: {
539
+ fg: string;
540
+ bg: string;
541
+ border: string;
515
542
  };
516
- step1: {
517
- heading: string;
518
- categories: Record<MushiReportCategory, string>;
519
- categoryDescriptions: Record<MushiReportCategory, string>;
543
+ statusReview: {
544
+ fg: string;
545
+ bg: string;
546
+ border: string;
520
547
  };
521
- step2: {
522
- heading: string;
523
- intents: Record<MushiReportCategory, string[]>;
548
+ statusFixing: {
549
+ fg: string;
550
+ bg: string;
551
+ border: string;
524
552
  };
525
- step3: {
526
- heading: string;
527
- descriptionPlaceholder: string;
528
- screenshotButton: string;
529
- screenshotAttached: string;
530
- screenshotCapturing: string;
531
- screenshotFailed: string;
532
- /** Alt text for the attached-screenshot preview image. */
533
- screenshotPreviewAlt: string;
534
- /** Default privacy caption shown beside the screenshot preview. */
535
- screenshotSensitiveHint: string;
536
- elementButton: string;
537
- elementSelected: string;
538
- elementCapturing: string;
539
- elementSelectorHint: string;
540
- optional: string;
541
- /** Inline validation: description is below the minimum length. */
542
- tooShort: string;
543
- /** Example starter chips rendered above the textarea to lower the barrier. */
544
- examplePrompts: string[];
553
+ statusFixed: {
554
+ fg: string;
555
+ bg: string;
556
+ border: string;
545
557
  };
558
+ statusClosedBg: string;
559
+ fontDisplay: string;
560
+ fontBody: string;
561
+ fontMono: string;
562
+ easeStamp: string;
563
+ zBanner: number;
564
+ zPanel: number;
565
+ zOverlay: number;
566
+ fabSize: number;
567
+ panelWidth: number;
568
+ panelSheetBreakpoint: number;
546
569
  }
547
-
548
- declare function getLocale(code?: string): MushiLocale;
549
- declare function getAvailableLocales(): string[];
570
+ declare function getWidgetThemeVars(theme: 'light' | 'dark', accent?: string, accentText?: string): WidgetThemeVars;
571
+ /** Preview subset for admin SdkInstallCard — same palette as the live widget. */
572
+ declare function getWidgetPreviewTokens(theme: 'light' | 'dark'): {
573
+ paper: string;
574
+ paperRaised: string;
575
+ ink: string;
576
+ inkMuted: string;
577
+ rule: string;
578
+ vermillion: string;
579
+ vermillionShadow: string;
580
+ accentWash: string;
581
+ onAccent: string;
582
+ neonBannerBg: string;
583
+ neonBannerFg: string;
584
+ neonBannerBorder: string;
585
+ brandBannerBorder: string;
586
+ };
550
587
 
551
588
  interface ProactiveConfig {
552
589
  maxProactivePerSession: number;
@@ -618,4 +655,4 @@ interface ProactiveTriggerCleanup {
618
655
  }
619
656
  declare function setupProactiveTriggers(callbacks: ProactiveTriggerCallbacks, config?: ProactiveTriggerConfig): ProactiveTriggerCleanup;
620
657
 
621
- export { type ConsoleCapture, type ElementSelector, Mushi, type MushiLocale, MushiWidget, type NetworkCapture, type PerformanceCapture, type ProactiveConfig, type ProactiveManager, type ProactiveTriggerCallbacks, type ProactiveTriggerCleanup, type ScreenshotCapture, type TimelineCapture, createConsoleCapture, createElementSelector, createNetworkCapture, createPerformanceCapture, createProactiveManager, createScreenshotCapture, createTimelineCapture, getAvailableLocales, getLocale, setupProactiveTriggers };
658
+ 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 };