@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/CONTRIBUTING.md +2 -2
- package/README.md +1 -2
- package/SECURITY.md +1 -1
- package/dist/i18n/index.cjs +690 -0
- package/dist/i18n/index.cjs.map +1 -0
- package/dist/i18n/index.d.cts +157 -0
- package/dist/i18n/index.d.ts +157 -0
- package/dist/i18n/index.js +687 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/index.cjs +935 -307
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +78 -41
- package/dist/index.d.ts +78 -41
- package/dist/index.js +935 -309
- package/dist/index.js.map +1 -1
- package/dist/mushi.loader.global.js +521 -527
- package/dist/mushi.loader.global.js.map +1 -1
- package/package.json +12 -6
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
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
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
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
543
|
+
statusReview: {
|
|
544
|
+
fg: string;
|
|
545
|
+
bg: string;
|
|
546
|
+
border: string;
|
|
520
547
|
};
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
548
|
+
statusFixing: {
|
|
549
|
+
fg: string;
|
|
550
|
+
bg: string;
|
|
551
|
+
border: string;
|
|
524
552
|
};
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
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
|
-
|
|
549
|
-
declare function
|
|
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,
|
|
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
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
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
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
543
|
+
statusReview: {
|
|
544
|
+
fg: string;
|
|
545
|
+
bg: string;
|
|
546
|
+
border: string;
|
|
520
547
|
};
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
548
|
+
statusFixing: {
|
|
549
|
+
fg: string;
|
|
550
|
+
bg: string;
|
|
551
|
+
border: string;
|
|
524
552
|
};
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
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
|
-
|
|
549
|
-
declare function
|
|
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,
|
|
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 };
|