@mushi-mushi/web 1.27.0 → 1.29.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 +57 -6
- package/dist/headless.cjs +9 -8
- package/dist/headless.cjs.map +1 -1
- package/dist/headless.d.cts +2 -2
- package/dist/headless.d.ts +2 -2
- package/dist/headless.js +10 -9
- package/dist/headless.js.map +1 -1
- package/dist/i18n/index.cjs +48 -8
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/i18n/index.d.cts +19 -0
- package/dist/i18n/index.d.ts +19 -0
- package/dist/i18n/index.js +48 -8
- package/dist/i18n/index.js.map +1 -1
- package/dist/index.cjs +239 -43
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +240 -44
- package/dist/index.js.map +1 -1
- package/dist/mushi.loader.global.js +530 -518
- package/dist/otel.cjs +7 -6
- package/dist/otel.cjs.map +1 -1
- package/dist/otel.js +7 -6
- package/dist/otel.js.map +1 -1
- package/dist/test-utils.cjs.map +1 -1
- package/dist/test-utils.js.map +1 -1
- package/package.json +75 -33
- package/CODE_OF_CONDUCT.md +0 -51
- package/CONTRIBUTING.md +0 -226
- package/SECURITY.md +0 -359
- package/dist/mushi.loader.global.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MushiConfig, MushiSDKInstance, MushiDiagnosticsResult, MushiReportCategory, MushiReporterReport, MushiReporterComment, MushiAssistantReply, MushiWidgetConfig, MushiLeaderboardEntry, MushiCrossAppReport, MushiTesterReputation, 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
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';
|
|
4
4
|
export { MushiLocale, getAvailableLocales, getLocale } from './i18n/index.cjs';
|
|
@@ -92,6 +92,9 @@ interface WidgetCallbacks {
|
|
|
92
92
|
}): void | Promise<WidgetSubmitOutcome | void>;
|
|
93
93
|
onOpen(): void;
|
|
94
94
|
onClose(): void;
|
|
95
|
+
/** "Bug reports by Mushi" mark: impression once per widget instance, click per activation → loop_* events. */
|
|
96
|
+
onBrandFooterImpression?(): void;
|
|
97
|
+
onBrandFooterClick?(): void;
|
|
95
98
|
onScreenshotRequest(): void;
|
|
96
99
|
onScreenshotRemove?(): void;
|
|
97
100
|
/** Optional markup pass (highlight / blur / arrow) before submit. */
|
|
@@ -202,6 +205,9 @@ declare class MushiWidget {
|
|
|
202
205
|
private nudgeEl;
|
|
203
206
|
private nudgeTimer;
|
|
204
207
|
private sdkFreshness;
|
|
208
|
+
/** Brand-footer ref (SDK sets it once hashed) + once-per-instance impression latch. */
|
|
209
|
+
private brandRef;
|
|
210
|
+
private brandImpressionSent;
|
|
205
211
|
private reporterReports;
|
|
206
212
|
private featureBoard;
|
|
207
213
|
private reporterComments;
|
|
@@ -352,6 +358,7 @@ declare class MushiWidget {
|
|
|
352
358
|
deprecated: boolean;
|
|
353
359
|
message?: string | null;
|
|
354
360
|
}): void;
|
|
361
|
+
setBrandRef(ref: string | null): void;
|
|
355
362
|
setRewardsState(state: WidgetRewardsState | null): void;
|
|
356
363
|
setLeaderboard(entries: Array<{
|
|
357
364
|
display_name: string;
|
|
@@ -678,6 +685,9 @@ interface ProactiveTriggerConfig {
|
|
|
678
685
|
* projects. Sourced from `MushiConfig.projectId` by the SDK.
|
|
679
686
|
*/
|
|
680
687
|
projectId?: string;
|
|
688
|
+
ignoreErrors?: readonly MushiErrorFilter[];
|
|
689
|
+
denyUrls?: readonly MushiErrorFilter[];
|
|
690
|
+
allowUrls?: readonly MushiErrorFilter[];
|
|
681
691
|
}
|
|
682
692
|
interface ProactiveTriggerCallbacks {
|
|
683
693
|
onTrigger: (type: string, context: Record<string, unknown>) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MushiConfig, MushiSDKInstance, MushiDiagnosticsResult, MushiReportCategory, MushiReporterReport, MushiReporterComment, MushiAssistantReply, MushiWidgetConfig, MushiLeaderboardEntry, MushiCrossAppReport, MushiTesterReputation, 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
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';
|
|
4
4
|
export { MushiLocale, getAvailableLocales, getLocale } from './i18n/index.js';
|
|
@@ -92,6 +92,9 @@ interface WidgetCallbacks {
|
|
|
92
92
|
}): void | Promise<WidgetSubmitOutcome | void>;
|
|
93
93
|
onOpen(): void;
|
|
94
94
|
onClose(): void;
|
|
95
|
+
/** "Bug reports by Mushi" mark: impression once per widget instance, click per activation → loop_* events. */
|
|
96
|
+
onBrandFooterImpression?(): void;
|
|
97
|
+
onBrandFooterClick?(): void;
|
|
95
98
|
onScreenshotRequest(): void;
|
|
96
99
|
onScreenshotRemove?(): void;
|
|
97
100
|
/** Optional markup pass (highlight / blur / arrow) before submit. */
|
|
@@ -202,6 +205,9 @@ declare class MushiWidget {
|
|
|
202
205
|
private nudgeEl;
|
|
203
206
|
private nudgeTimer;
|
|
204
207
|
private sdkFreshness;
|
|
208
|
+
/** Brand-footer ref (SDK sets it once hashed) + once-per-instance impression latch. */
|
|
209
|
+
private brandRef;
|
|
210
|
+
private brandImpressionSent;
|
|
205
211
|
private reporterReports;
|
|
206
212
|
private featureBoard;
|
|
207
213
|
private reporterComments;
|
|
@@ -352,6 +358,7 @@ declare class MushiWidget {
|
|
|
352
358
|
deprecated: boolean;
|
|
353
359
|
message?: string | null;
|
|
354
360
|
}): void;
|
|
361
|
+
setBrandRef(ref: string | null): void;
|
|
355
362
|
setRewardsState(state: WidgetRewardsState | null): void;
|
|
356
363
|
setLeaderboard(entries: Array<{
|
|
357
364
|
display_name: string;
|
|
@@ -678,6 +685,9 @@ interface ProactiveTriggerConfig {
|
|
|
678
685
|
* projects. Sourced from `MushiConfig.projectId` by the SDK.
|
|
679
686
|
*/
|
|
680
687
|
projectId?: string;
|
|
688
|
+
ignoreErrors?: readonly MushiErrorFilter[];
|
|
689
|
+
denyUrls?: readonly MushiErrorFilter[];
|
|
690
|
+
allowUrls?: readonly MushiErrorFilter[];
|
|
681
691
|
}
|
|
682
692
|
interface ProactiveTriggerCallbacks {
|
|
683
693
|
onTrigger: (type: string, context: Record<string, unknown>) => void;
|