@mushi-mushi/web 1.26.0 → 1.28.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 +24 -2
- package/SECURITY.md +49 -0
- package/dist/headless.cjs +1207 -0
- package/dist/headless.cjs.map +1 -0
- package/dist/headless.d.cts +88 -0
- package/dist/headless.d.ts +88 -0
- package/dist/headless.js +1195 -0
- package/dist/headless.js.map +1 -0
- package/dist/i18n/index.cjs +44 -4
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/i18n/index.d.cts +18 -0
- package/dist/i18n/index.d.ts +18 -0
- package/dist/i18n/index.js +44 -4
- package/dist/i18n/index.js.map +1 -1
- package/dist/index.cjs +321 -89
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -62
- package/dist/index.d.ts +6 -62
- package/dist/index.js +322 -90
- package/dist/index.js.map +1 -1
- package/dist/mushi.loader.global.js +555 -555
- package/dist/mushi.loader.global.js.map +1 -1
- package/dist/otel.cjs +61 -0
- package/dist/otel.cjs.map +1 -0
- package/dist/otel.d.cts +80 -0
- package/dist/otel.d.ts +80 -0
- package/dist/otel.js +59 -0
- package/dist/otel.js.map +1 -0
- package/dist/timeline-BuqAn2FH.d.cts +63 -0
- package/dist/timeline-BuqAn2FH.d.ts +63 -0
- package/package.json +27 -5
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { MushiConfig, MushiSDKInstance, MushiDiagnosticsResult, MushiReportCategory, MushiReporterReport, MushiReporterComment, MushiAssistantReply, MushiWidgetConfig, MushiLeaderboardEntry, MushiCrossAppReport, MushiTesterReputation,
|
|
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
|
+
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';
|
|
3
4
|
export { MushiLocale, getAvailableLocales, getLocale } from './i18n/index.cjs';
|
|
4
5
|
|
|
5
6
|
declare class Mushi {
|
|
@@ -517,66 +518,6 @@ declare class MushiWidget {
|
|
|
517
518
|
recorderOpenMyReports(): void;
|
|
518
519
|
}
|
|
519
520
|
|
|
520
|
-
interface ConsoleCapture {
|
|
521
|
-
getEntries(): MushiConsoleEntry[];
|
|
522
|
-
clear(): void;
|
|
523
|
-
destroy(): void;
|
|
524
|
-
}
|
|
525
|
-
declare function createConsoleCapture(): ConsoleCapture;
|
|
526
|
-
|
|
527
|
-
interface NetworkCapture {
|
|
528
|
-
getEntries(): MushiNetworkEntry[];
|
|
529
|
-
clear(): void;
|
|
530
|
-
updateOptions(options: NetworkCaptureOptions): void;
|
|
531
|
-
destroy(): void;
|
|
532
|
-
}
|
|
533
|
-
interface NetworkCaptureOptions {
|
|
534
|
-
apiEndpoint?: string;
|
|
535
|
-
ignoreUrls?: MushiUrlMatcher[];
|
|
536
|
-
tracePropagation?: MushiTracePropagationConfig;
|
|
537
|
-
sessionId?: string;
|
|
538
|
-
}
|
|
539
|
-
declare function createNetworkCapture(options?: NetworkCaptureOptions): NetworkCapture;
|
|
540
|
-
|
|
541
|
-
interface ScreenshotCapture {
|
|
542
|
-
take(): Promise<string | null>;
|
|
543
|
-
updateOptions(options: ScreenshotCaptureOptions): void;
|
|
544
|
-
}
|
|
545
|
-
interface ScreenshotCaptureOptions {
|
|
546
|
-
privacy?: MushiPrivacyConfig;
|
|
547
|
-
/** Callback invoked when capture fails (taint, security policy, etc.). */
|
|
548
|
-
onFailed?: (reason: 'taint' | 'error') => void;
|
|
549
|
-
}
|
|
550
|
-
declare function createScreenshotCapture(options?: ScreenshotCaptureOptions): ScreenshotCapture;
|
|
551
|
-
|
|
552
|
-
interface PerformanceCapture {
|
|
553
|
-
getMetrics(): MushiPerformanceMetrics;
|
|
554
|
-
destroy(): void;
|
|
555
|
-
}
|
|
556
|
-
declare function createPerformanceCapture(): PerformanceCapture;
|
|
557
|
-
|
|
558
|
-
interface ElementSelector {
|
|
559
|
-
activate(): Promise<MushiSelectedElement | null>;
|
|
560
|
-
deactivate(): void;
|
|
561
|
-
isActive(): boolean;
|
|
562
|
-
}
|
|
563
|
-
declare function createElementSelector(): ElementSelector;
|
|
564
|
-
|
|
565
|
-
interface TimelineCapture {
|
|
566
|
-
setScreen(screen: {
|
|
567
|
-
name: string;
|
|
568
|
-
route?: string;
|
|
569
|
-
feature?: string;
|
|
570
|
-
}): void;
|
|
571
|
-
getEntries(input?: {
|
|
572
|
-
consoleLogs?: MushiConsoleEntry[] | null;
|
|
573
|
-
networkLogs?: MushiNetworkEntry[] | null;
|
|
574
|
-
}): MushiTimelineEntry[];
|
|
575
|
-
clear(): void;
|
|
576
|
-
destroy(): void;
|
|
577
|
-
}
|
|
578
|
-
declare function createTimelineCapture(): TimelineCapture;
|
|
579
|
-
|
|
580
521
|
/**
|
|
581
522
|
* FILE: packages/web/src/build-widget-theme.ts
|
|
582
523
|
* PURPOSE: Resolve Shadow-DOM CSS variables from @mushi-mushi/core tokens.
|
|
@@ -737,6 +678,9 @@ interface ProactiveTriggerConfig {
|
|
|
737
678
|
* projects. Sourced from `MushiConfig.projectId` by the SDK.
|
|
738
679
|
*/
|
|
739
680
|
projectId?: string;
|
|
681
|
+
ignoreErrors?: readonly MushiErrorFilter[];
|
|
682
|
+
denyUrls?: readonly MushiErrorFilter[];
|
|
683
|
+
allowUrls?: readonly MushiErrorFilter[];
|
|
740
684
|
}
|
|
741
685
|
interface ProactiveTriggerCallbacks {
|
|
742
686
|
onTrigger: (type: string, context: Record<string, unknown>) => void;
|
|
@@ -746,4 +690,4 @@ interface ProactiveTriggerCleanup {
|
|
|
746
690
|
}
|
|
747
691
|
declare function setupProactiveTriggers(callbacks: ProactiveTriggerCallbacks, config?: ProactiveTriggerConfig): ProactiveTriggerCleanup;
|
|
748
692
|
|
|
749
|
-
export {
|
|
693
|
+
export { Mushi, MushiWidget, type ProactiveConfig, type ProactiveManager, type ProactiveTriggerCallbacks, type ProactiveTriggerCleanup, type WidgetThemeVars, createProactiveManager, getWidgetPreviewTokens, getWidgetThemeVars, setupProactiveTriggers };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { MushiConfig, MushiSDKInstance, MushiDiagnosticsResult, MushiReportCategory, MushiReporterReport, MushiReporterComment, MushiAssistantReply, MushiWidgetConfig, MushiLeaderboardEntry, MushiCrossAppReport, MushiTesterReputation,
|
|
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
|
+
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';
|
|
3
4
|
export { MushiLocale, getAvailableLocales, getLocale } from './i18n/index.js';
|
|
4
5
|
|
|
5
6
|
declare class Mushi {
|
|
@@ -517,66 +518,6 @@ declare class MushiWidget {
|
|
|
517
518
|
recorderOpenMyReports(): void;
|
|
518
519
|
}
|
|
519
520
|
|
|
520
|
-
interface ConsoleCapture {
|
|
521
|
-
getEntries(): MushiConsoleEntry[];
|
|
522
|
-
clear(): void;
|
|
523
|
-
destroy(): void;
|
|
524
|
-
}
|
|
525
|
-
declare function createConsoleCapture(): ConsoleCapture;
|
|
526
|
-
|
|
527
|
-
interface NetworkCapture {
|
|
528
|
-
getEntries(): MushiNetworkEntry[];
|
|
529
|
-
clear(): void;
|
|
530
|
-
updateOptions(options: NetworkCaptureOptions): void;
|
|
531
|
-
destroy(): void;
|
|
532
|
-
}
|
|
533
|
-
interface NetworkCaptureOptions {
|
|
534
|
-
apiEndpoint?: string;
|
|
535
|
-
ignoreUrls?: MushiUrlMatcher[];
|
|
536
|
-
tracePropagation?: MushiTracePropagationConfig;
|
|
537
|
-
sessionId?: string;
|
|
538
|
-
}
|
|
539
|
-
declare function createNetworkCapture(options?: NetworkCaptureOptions): NetworkCapture;
|
|
540
|
-
|
|
541
|
-
interface ScreenshotCapture {
|
|
542
|
-
take(): Promise<string | null>;
|
|
543
|
-
updateOptions(options: ScreenshotCaptureOptions): void;
|
|
544
|
-
}
|
|
545
|
-
interface ScreenshotCaptureOptions {
|
|
546
|
-
privacy?: MushiPrivacyConfig;
|
|
547
|
-
/** Callback invoked when capture fails (taint, security policy, etc.). */
|
|
548
|
-
onFailed?: (reason: 'taint' | 'error') => void;
|
|
549
|
-
}
|
|
550
|
-
declare function createScreenshotCapture(options?: ScreenshotCaptureOptions): ScreenshotCapture;
|
|
551
|
-
|
|
552
|
-
interface PerformanceCapture {
|
|
553
|
-
getMetrics(): MushiPerformanceMetrics;
|
|
554
|
-
destroy(): void;
|
|
555
|
-
}
|
|
556
|
-
declare function createPerformanceCapture(): PerformanceCapture;
|
|
557
|
-
|
|
558
|
-
interface ElementSelector {
|
|
559
|
-
activate(): Promise<MushiSelectedElement | null>;
|
|
560
|
-
deactivate(): void;
|
|
561
|
-
isActive(): boolean;
|
|
562
|
-
}
|
|
563
|
-
declare function createElementSelector(): ElementSelector;
|
|
564
|
-
|
|
565
|
-
interface TimelineCapture {
|
|
566
|
-
setScreen(screen: {
|
|
567
|
-
name: string;
|
|
568
|
-
route?: string;
|
|
569
|
-
feature?: string;
|
|
570
|
-
}): void;
|
|
571
|
-
getEntries(input?: {
|
|
572
|
-
consoleLogs?: MushiConsoleEntry[] | null;
|
|
573
|
-
networkLogs?: MushiNetworkEntry[] | null;
|
|
574
|
-
}): MushiTimelineEntry[];
|
|
575
|
-
clear(): void;
|
|
576
|
-
destroy(): void;
|
|
577
|
-
}
|
|
578
|
-
declare function createTimelineCapture(): TimelineCapture;
|
|
579
|
-
|
|
580
521
|
/**
|
|
581
522
|
* FILE: packages/web/src/build-widget-theme.ts
|
|
582
523
|
* PURPOSE: Resolve Shadow-DOM CSS variables from @mushi-mushi/core tokens.
|
|
@@ -737,6 +678,9 @@ interface ProactiveTriggerConfig {
|
|
|
737
678
|
* projects. Sourced from `MushiConfig.projectId` by the SDK.
|
|
738
679
|
*/
|
|
739
680
|
projectId?: string;
|
|
681
|
+
ignoreErrors?: readonly MushiErrorFilter[];
|
|
682
|
+
denyUrls?: readonly MushiErrorFilter[];
|
|
683
|
+
allowUrls?: readonly MushiErrorFilter[];
|
|
740
684
|
}
|
|
741
685
|
interface ProactiveTriggerCallbacks {
|
|
742
686
|
onTrigger: (type: string, context: Record<string, unknown>) => void;
|
|
@@ -746,4 +690,4 @@ interface ProactiveTriggerCleanup {
|
|
|
746
690
|
}
|
|
747
691
|
declare function setupProactiveTriggers(callbacks: ProactiveTriggerCallbacks, config?: ProactiveTriggerConfig): ProactiveTriggerCleanup;
|
|
748
692
|
|
|
749
|
-
export {
|
|
693
|
+
export { Mushi, MushiWidget, type ProactiveConfig, type ProactiveManager, type ProactiveTriggerCallbacks, type ProactiveTriggerCleanup, type WidgetThemeVars, createProactiveManager, getWidgetPreviewTokens, getWidgetThemeVars, setupProactiveTriggers };
|