@mushi-mushi/web 1.19.2 → 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 +14 -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 +990 -312
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +89 -41
- package/dist/index.d.ts +89 -41
- package/dist/index.js +990 -314
- package/dist/index.js.map +1 -1
- package/dist/mushi.loader.global.js +529 -524
- package/dist/mushi.loader.global.js.map +1 -1
- package/package.json +16 -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;
|
|
@@ -199,6 +202,13 @@ declare class MushiWidget {
|
|
|
199
202
|
private fabPos;
|
|
200
203
|
/** Cleanup fn for visualViewport keyboard listener. */
|
|
201
204
|
private vvCleanup;
|
|
205
|
+
/**
|
|
206
|
+
* Host-app user identity forwarded via `Mushi.identify()` or
|
|
207
|
+
* `Mushi.identifyWithToken()`. Used to show "Reporting as <name>"
|
|
208
|
+
* in the details step so logged-in users know their report is linked.
|
|
209
|
+
* Independent of the Mushi tester magic-link session below.
|
|
210
|
+
*/
|
|
211
|
+
private identifiedUser;
|
|
202
212
|
/** Mushi tester session JWT — set after in-widget sign-in or by mushi.ts. */
|
|
203
213
|
private testerJwt;
|
|
204
214
|
/** Tester identity (public_handle, display_name). */
|
|
@@ -294,6 +304,10 @@ declare class MushiWidget {
|
|
|
294
304
|
total_points: number;
|
|
295
305
|
points_30d: number;
|
|
296
306
|
}> | null, loading?: boolean): void;
|
|
307
|
+
setIdentifiedUser(user: {
|
|
308
|
+
name?: string;
|
|
309
|
+
email?: string;
|
|
310
|
+
} | null): void;
|
|
297
311
|
setTesterSession(jwt: string | null, info: {
|
|
298
312
|
id: string;
|
|
299
313
|
public_handle: string | null;
|
|
@@ -407,12 +421,20 @@ declare class MushiWidget {
|
|
|
407
421
|
private loadFeatureBoard;
|
|
408
422
|
private voteFeatureBoard;
|
|
409
423
|
private submitReporterReopen;
|
|
424
|
+
/** Refresh My Reports data for unread badges without opening the inbox panel. */
|
|
425
|
+
refreshReporterInboxQuiet(): Promise<void>;
|
|
410
426
|
private loadReporterReports;
|
|
411
427
|
private loadReporterComments;
|
|
412
428
|
private submitReporterFeedback;
|
|
413
429
|
private submitReporterReply;
|
|
414
430
|
private handleMagicLinkSend;
|
|
415
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
|
+
};
|
|
416
438
|
getRecorderTrigger(): Element | null;
|
|
417
439
|
getRecorderCategoryButton(category: MushiReportCategory): Element | null;
|
|
418
440
|
getRecorderIntentButton(label: string): Element | null;
|
|
@@ -491,51 +513,77 @@ interface TimelineCapture {
|
|
|
491
513
|
}
|
|
492
514
|
declare function createTimelineCapture(): TimelineCapture;
|
|
493
515
|
|
|
494
|
-
interface
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
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;
|
|
504
542
|
};
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
543
|
+
statusReview: {
|
|
544
|
+
fg: string;
|
|
545
|
+
bg: string;
|
|
546
|
+
border: string;
|
|
509
547
|
};
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
548
|
+
statusFixing: {
|
|
549
|
+
fg: string;
|
|
550
|
+
bg: string;
|
|
551
|
+
border: string;
|
|
513
552
|
};
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
screenshotAttached: string;
|
|
519
|
-
screenshotCapturing: string;
|
|
520
|
-
screenshotFailed: string;
|
|
521
|
-
/** Alt text for the attached-screenshot preview image. */
|
|
522
|
-
screenshotPreviewAlt: string;
|
|
523
|
-
/** Default privacy caption shown beside the screenshot preview. */
|
|
524
|
-
screenshotSensitiveHint: string;
|
|
525
|
-
elementButton: string;
|
|
526
|
-
elementSelected: string;
|
|
527
|
-
elementCapturing: string;
|
|
528
|
-
elementSelectorHint: string;
|
|
529
|
-
optional: string;
|
|
530
|
-
/** Inline validation: description is below the minimum length. */
|
|
531
|
-
tooShort: string;
|
|
532
|
-
/** Example starter chips rendered above the textarea to lower the barrier. */
|
|
533
|
-
examplePrompts: string[];
|
|
553
|
+
statusFixed: {
|
|
554
|
+
fg: string;
|
|
555
|
+
bg: string;
|
|
556
|
+
border: string;
|
|
534
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;
|
|
535
569
|
}
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
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
|
+
};
|
|
539
587
|
|
|
540
588
|
interface ProactiveConfig {
|
|
541
589
|
maxProactivePerSession: number;
|
|
@@ -607,4 +655,4 @@ interface ProactiveTriggerCleanup {
|
|
|
607
655
|
}
|
|
608
656
|
declare function setupProactiveTriggers(callbacks: ProactiveTriggerCallbacks, config?: ProactiveTriggerConfig): ProactiveTriggerCleanup;
|
|
609
657
|
|
|
610
|
-
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;
|
|
@@ -199,6 +202,13 @@ declare class MushiWidget {
|
|
|
199
202
|
private fabPos;
|
|
200
203
|
/** Cleanup fn for visualViewport keyboard listener. */
|
|
201
204
|
private vvCleanup;
|
|
205
|
+
/**
|
|
206
|
+
* Host-app user identity forwarded via `Mushi.identify()` or
|
|
207
|
+
* `Mushi.identifyWithToken()`. Used to show "Reporting as <name>"
|
|
208
|
+
* in the details step so logged-in users know their report is linked.
|
|
209
|
+
* Independent of the Mushi tester magic-link session below.
|
|
210
|
+
*/
|
|
211
|
+
private identifiedUser;
|
|
202
212
|
/** Mushi tester session JWT — set after in-widget sign-in or by mushi.ts. */
|
|
203
213
|
private testerJwt;
|
|
204
214
|
/** Tester identity (public_handle, display_name). */
|
|
@@ -294,6 +304,10 @@ declare class MushiWidget {
|
|
|
294
304
|
total_points: number;
|
|
295
305
|
points_30d: number;
|
|
296
306
|
}> | null, loading?: boolean): void;
|
|
307
|
+
setIdentifiedUser(user: {
|
|
308
|
+
name?: string;
|
|
309
|
+
email?: string;
|
|
310
|
+
} | null): void;
|
|
297
311
|
setTesterSession(jwt: string | null, info: {
|
|
298
312
|
id: string;
|
|
299
313
|
public_handle: string | null;
|
|
@@ -407,12 +421,20 @@ declare class MushiWidget {
|
|
|
407
421
|
private loadFeatureBoard;
|
|
408
422
|
private voteFeatureBoard;
|
|
409
423
|
private submitReporterReopen;
|
|
424
|
+
/** Refresh My Reports data for unread badges without opening the inbox panel. */
|
|
425
|
+
refreshReporterInboxQuiet(): Promise<void>;
|
|
410
426
|
private loadReporterReports;
|
|
411
427
|
private loadReporterComments;
|
|
412
428
|
private submitReporterFeedback;
|
|
413
429
|
private submitReporterReply;
|
|
414
430
|
private handleMagicLinkSend;
|
|
415
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
|
+
};
|
|
416
438
|
getRecorderTrigger(): Element | null;
|
|
417
439
|
getRecorderCategoryButton(category: MushiReportCategory): Element | null;
|
|
418
440
|
getRecorderIntentButton(label: string): Element | null;
|
|
@@ -491,51 +513,77 @@ interface TimelineCapture {
|
|
|
491
513
|
}
|
|
492
514
|
declare function createTimelineCapture(): TimelineCapture;
|
|
493
515
|
|
|
494
|
-
interface
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
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;
|
|
504
542
|
};
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
543
|
+
statusReview: {
|
|
544
|
+
fg: string;
|
|
545
|
+
bg: string;
|
|
546
|
+
border: string;
|
|
509
547
|
};
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
548
|
+
statusFixing: {
|
|
549
|
+
fg: string;
|
|
550
|
+
bg: string;
|
|
551
|
+
border: string;
|
|
513
552
|
};
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
screenshotAttached: string;
|
|
519
|
-
screenshotCapturing: string;
|
|
520
|
-
screenshotFailed: string;
|
|
521
|
-
/** Alt text for the attached-screenshot preview image. */
|
|
522
|
-
screenshotPreviewAlt: string;
|
|
523
|
-
/** Default privacy caption shown beside the screenshot preview. */
|
|
524
|
-
screenshotSensitiveHint: string;
|
|
525
|
-
elementButton: string;
|
|
526
|
-
elementSelected: string;
|
|
527
|
-
elementCapturing: string;
|
|
528
|
-
elementSelectorHint: string;
|
|
529
|
-
optional: string;
|
|
530
|
-
/** Inline validation: description is below the minimum length. */
|
|
531
|
-
tooShort: string;
|
|
532
|
-
/** Example starter chips rendered above the textarea to lower the barrier. */
|
|
533
|
-
examplePrompts: string[];
|
|
553
|
+
statusFixed: {
|
|
554
|
+
fg: string;
|
|
555
|
+
bg: string;
|
|
556
|
+
border: string;
|
|
534
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;
|
|
535
569
|
}
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
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
|
+
};
|
|
539
587
|
|
|
540
588
|
interface ProactiveConfig {
|
|
541
589
|
maxProactivePerSession: number;
|
|
@@ -607,4 +655,4 @@ interface ProactiveTriggerCleanup {
|
|
|
607
655
|
}
|
|
608
656
|
declare function setupProactiveTriggers(callbacks: ProactiveTriggerCallbacks, config?: ProactiveTriggerConfig): ProactiveTriggerCleanup;
|
|
609
657
|
|
|
610
|
-
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 };
|