@mushi-mushi/web 1.11.0 → 1.12.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/README.md +28 -0
- package/dist/index.cjs +526 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.js +527 -6
- package/dist/index.js.map +1 -1
- package/dist/test-utils.cjs +1 -1
- package/dist/test-utils.js +1 -1
- package/package.json +6 -3
package/dist/index.d.cts
CHANGED
|
@@ -21,7 +21,7 @@ declare class Mushi {
|
|
|
21
21
|
* user-facing ARIA / keyboard wiring.
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
type WidgetStep = 'category' | 'intent' | 'details' | 'success' | 'reports' | 'report-detail' | 'leaderboard';
|
|
24
|
+
type WidgetStep = 'category' | 'intent' | 'details' | 'success' | 'reports' | 'report-detail' | 'leaderboard' | 'roadmap';
|
|
25
25
|
interface WidgetRewardsState {
|
|
26
26
|
tier: {
|
|
27
27
|
slug: string;
|
|
@@ -61,12 +61,19 @@ interface WidgetCallbacks {
|
|
|
61
61
|
onClose(): void;
|
|
62
62
|
onScreenshotRequest(): void;
|
|
63
63
|
onScreenshotRemove?(): void;
|
|
64
|
+
/** Optional markup pass (highlight / blur / arrow) before submit. */
|
|
65
|
+
onScreenshotAnnotateRequest?(container: HTMLElement): void | Promise<void>;
|
|
64
66
|
onElementSelectorRequest?(): void;
|
|
65
67
|
onReporterReportsRequest?(): Promise<MushiReporterReport[]>;
|
|
66
68
|
onReporterCommentsRequest?(reportId: string): Promise<MushiReporterComment[]>;
|
|
67
69
|
onReporterReply?(reportId: string, body: string): Promise<void>;
|
|
68
70
|
onReporterFeedback?(reportId: string, signal: string, note?: string): Promise<Record<string, unknown> | null>;
|
|
69
71
|
onReporterReopen?(reportId: string, note?: string): Promise<Record<string, unknown> | null>;
|
|
72
|
+
onFeatureBoardRequest?(): Promise<Array<Record<string, unknown>>>;
|
|
73
|
+
onFeatureBoardVote?(requestId: string): Promise<{
|
|
74
|
+
voted: boolean;
|
|
75
|
+
action: string;
|
|
76
|
+
}>;
|
|
70
77
|
onLeaderboardOpen?(): void;
|
|
71
78
|
}
|
|
72
79
|
declare class MushiWidget {
|
|
@@ -106,6 +113,7 @@ declare class MushiWidget {
|
|
|
106
113
|
private nudgeTimer;
|
|
107
114
|
private sdkFreshness;
|
|
108
115
|
private reporterReports;
|
|
116
|
+
private featureBoard;
|
|
109
117
|
private reporterComments;
|
|
110
118
|
private selectedReportId;
|
|
111
119
|
private reporterLoading;
|
|
@@ -288,6 +296,7 @@ declare class MushiWidget {
|
|
|
288
296
|
*/
|
|
289
297
|
private renderBetaStrip;
|
|
290
298
|
private renderReportsStep;
|
|
299
|
+
private renderRoadmapStep;
|
|
291
300
|
private renderLeaderboardStep;
|
|
292
301
|
private renderReportDetailStep;
|
|
293
302
|
private renderIntentStep;
|
|
@@ -330,6 +339,9 @@ declare class MushiWidget {
|
|
|
330
339
|
private attachHandlers;
|
|
331
340
|
private trapFocus;
|
|
332
341
|
private unreadCount;
|
|
342
|
+
private loadFeatureBoard;
|
|
343
|
+
private voteFeatureBoard;
|
|
344
|
+
private submitReporterReopen;
|
|
333
345
|
private loadReporterReports;
|
|
334
346
|
private loadReporterComments;
|
|
335
347
|
private submitReporterFeedback;
|
package/dist/index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ declare class Mushi {
|
|
|
21
21
|
* user-facing ARIA / keyboard wiring.
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
type WidgetStep = 'category' | 'intent' | 'details' | 'success' | 'reports' | 'report-detail' | 'leaderboard';
|
|
24
|
+
type WidgetStep = 'category' | 'intent' | 'details' | 'success' | 'reports' | 'report-detail' | 'leaderboard' | 'roadmap';
|
|
25
25
|
interface WidgetRewardsState {
|
|
26
26
|
tier: {
|
|
27
27
|
slug: string;
|
|
@@ -61,12 +61,19 @@ interface WidgetCallbacks {
|
|
|
61
61
|
onClose(): void;
|
|
62
62
|
onScreenshotRequest(): void;
|
|
63
63
|
onScreenshotRemove?(): void;
|
|
64
|
+
/** Optional markup pass (highlight / blur / arrow) before submit. */
|
|
65
|
+
onScreenshotAnnotateRequest?(container: HTMLElement): void | Promise<void>;
|
|
64
66
|
onElementSelectorRequest?(): void;
|
|
65
67
|
onReporterReportsRequest?(): Promise<MushiReporterReport[]>;
|
|
66
68
|
onReporterCommentsRequest?(reportId: string): Promise<MushiReporterComment[]>;
|
|
67
69
|
onReporterReply?(reportId: string, body: string): Promise<void>;
|
|
68
70
|
onReporterFeedback?(reportId: string, signal: string, note?: string): Promise<Record<string, unknown> | null>;
|
|
69
71
|
onReporterReopen?(reportId: string, note?: string): Promise<Record<string, unknown> | null>;
|
|
72
|
+
onFeatureBoardRequest?(): Promise<Array<Record<string, unknown>>>;
|
|
73
|
+
onFeatureBoardVote?(requestId: string): Promise<{
|
|
74
|
+
voted: boolean;
|
|
75
|
+
action: string;
|
|
76
|
+
}>;
|
|
70
77
|
onLeaderboardOpen?(): void;
|
|
71
78
|
}
|
|
72
79
|
declare class MushiWidget {
|
|
@@ -106,6 +113,7 @@ declare class MushiWidget {
|
|
|
106
113
|
private nudgeTimer;
|
|
107
114
|
private sdkFreshness;
|
|
108
115
|
private reporterReports;
|
|
116
|
+
private featureBoard;
|
|
109
117
|
private reporterComments;
|
|
110
118
|
private selectedReportId;
|
|
111
119
|
private reporterLoading;
|
|
@@ -288,6 +296,7 @@ declare class MushiWidget {
|
|
|
288
296
|
*/
|
|
289
297
|
private renderBetaStrip;
|
|
290
298
|
private renderReportsStep;
|
|
299
|
+
private renderRoadmapStep;
|
|
291
300
|
private renderLeaderboardStep;
|
|
292
301
|
private renderReportDetailStep;
|
|
293
302
|
private renderIntentStep;
|
|
@@ -330,6 +339,9 @@ declare class MushiWidget {
|
|
|
330
339
|
private attachHandlers;
|
|
331
340
|
private trapFocus;
|
|
332
341
|
private unreadCount;
|
|
342
|
+
private loadFeatureBoard;
|
|
343
|
+
private voteFeatureBoard;
|
|
344
|
+
private submitReporterReopen;
|
|
333
345
|
private loadReporterReports;
|
|
334
346
|
private loadReporterComments;
|
|
335
347
|
private submitReporterFeedback;
|