@mushi-mushi/core 1.25.0 → 1.26.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 +1 -1
- package/dist/index.cjs +54 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +52 -1
- package/dist/index.d.ts +52 -1
- package/dist/index.js +49 -5
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -2270,6 +2270,13 @@ declare const MUSHI_BANNER_NEON: {
|
|
|
2270
2270
|
declare const MUSHI_ON_ACCENT = "#FAF7F0";
|
|
2271
2271
|
/** Pure white for assistant bubbles on accent backgrounds. */
|
|
2272
2272
|
declare const MUSHI_INVERSE = "#ffffff";
|
|
2273
|
+
/** Disabled control fill (inactive category chips, muted buttons). */
|
|
2274
|
+
declare const MUSHI_CONTROL_DISABLED: {
|
|
2275
|
+
readonly light: "#d1d1d6";
|
|
2276
|
+
readonly dark: "#3a3a3c";
|
|
2277
|
+
};
|
|
2278
|
+
/** Drop-shadow ink for RN shadowColor (sumi black). */
|
|
2279
|
+
declare const MUSHI_SHADOW_INK = "#000000";
|
|
2273
2280
|
/** Submit-button depth shadow (accent ink, mode-specific). */
|
|
2274
2281
|
declare const MUSHI_ACCENT_SHADOW: {
|
|
2275
2282
|
readonly light: "#9A2A1E";
|
|
@@ -2340,6 +2347,48 @@ declare const MUSHI_MOTION: {
|
|
|
2340
2347
|
readonly durationFast: 200;
|
|
2341
2348
|
readonly durationPanel: 300;
|
|
2342
2349
|
};
|
|
2350
|
+
/**
|
|
2351
|
+
* Full duration vocabulary (ms). MUSHI_MOTION retains its two values for
|
|
2352
|
+
* back-compat; this set adds the missing steps for micro-interactions and
|
|
2353
|
+
* expressive animations without changing the RN / Capacitor snapshot.
|
|
2354
|
+
*/
|
|
2355
|
+
declare const MUSHI_DURATION: {
|
|
2356
|
+
/** Fastest — tooltip show, chip hover tint */
|
|
2357
|
+
readonly instant: 120;
|
|
2358
|
+
/** Default micro-interaction — most hover / focus transitions */
|
|
2359
|
+
readonly fast: 200;
|
|
2360
|
+
/** Button bloom, option-row wipe */
|
|
2361
|
+
readonly base: 220;
|
|
2362
|
+
/** Panel enter / exit */
|
|
2363
|
+
readonly panel: 300;
|
|
2364
|
+
/** Deliberate — success stamp press, page-level transitions */
|
|
2365
|
+
readonly slow: 420;
|
|
2366
|
+
/** Stamp ring draw, long ambient animations */
|
|
2367
|
+
readonly ring: 700;
|
|
2368
|
+
};
|
|
2369
|
+
/** Border widths (px) — editorial weight scale. */
|
|
2370
|
+
declare const MUSHI_BORDER: {
|
|
2371
|
+
readonly hairline: 1;
|
|
2372
|
+
readonly regular: 1.5;
|
|
2373
|
+
readonly strong: 2;
|
|
2374
|
+
/** Hanko stamp border (FAB inset accent stripe, stamp ring) */
|
|
2375
|
+
readonly stamp: 3;
|
|
2376
|
+
};
|
|
2377
|
+
/** Opacity scale — disabled, muted, scrim, overlay states. */
|
|
2378
|
+
declare const MUSHI_OPACITY: {
|
|
2379
|
+
readonly disabled: 0.4;
|
|
2380
|
+
readonly muted: 0.6;
|
|
2381
|
+
readonly scrim: 0.72;
|
|
2382
|
+
readonly overlay: 0.88;
|
|
2383
|
+
};
|
|
2384
|
+
/** Letter-spacing scale — mono captions to wide stamp labels. */
|
|
2385
|
+
declare const MUSHI_LETTER_SPACING: {
|
|
2386
|
+
readonly tight: "-0.01em";
|
|
2387
|
+
readonly normal: "0";
|
|
2388
|
+
readonly label: "0.02em";
|
|
2389
|
+
readonly stamp: "0.08em";
|
|
2390
|
+
readonly wide: "0.16em";
|
|
2391
|
+
};
|
|
2343
2392
|
/**
|
|
2344
2393
|
* Launcher geometry — the numbers that previously diverged between platforms
|
|
2345
2394
|
* (banner height, FAB size, default gutter, panel width). Centralising them
|
|
@@ -2393,6 +2442,8 @@ interface MushiTokenSnapshot {
|
|
|
2393
2442
|
type: typeof MUSHI_TYPE;
|
|
2394
2443
|
z: typeof MUSHI_Z;
|
|
2395
2444
|
motion: typeof MUSHI_MOTION;
|
|
2445
|
+
/** Full duration vocabulary — complements `motion` for micro / stamp steps. */
|
|
2446
|
+
duration: typeof MUSHI_DURATION;
|
|
2396
2447
|
geometry: typeof MUSHI_GEOMETRY;
|
|
2397
2448
|
copy: typeof MUSHI_COPY;
|
|
2398
2449
|
}
|
|
@@ -2503,4 +2554,4 @@ declare function projectInitialsThemeIndex(projectId: string): number;
|
|
|
2503
2554
|
*/
|
|
2504
2555
|
declare function readPageFaviconHref(): string | null;
|
|
2505
2556
|
|
|
2506
|
-
export { type ApiClientOptions, type BreadcrumbBuffer, type BreadcrumbBufferOptions, DEFAULT_API_ENDPOINT, DEFAULT_MAX_RETRIES, DEFAULT_TIMEOUT, type EnvConfigDiagnostics, type EnvNearMiss, type LogEntry, type LogFormat, type LogLevel, type Logger, type LoggerOptions, MAX_REPORT_PAYLOAD_BYTES, MAX_SCREENSHOT_DATA_URL_BYTES, MUSHI_ACCENT_SHADOW, MUSHI_BANNER_BRAND_BORDER, MUSHI_BANNER_NEON, MUSHI_COLORS_DARK, MUSHI_COLORS_LIGHT, MUSHI_COPY, MUSHI_GEOMETRY, MUSHI_IDENTITY_TOKEN_PREFIX, MUSHI_INTERNAL_HEADER, MUSHI_INTERNAL_INIT_MARKER, MUSHI_INVERSE, MUSHI_MOTION, MUSHI_ON_ACCENT, MUSHI_PROJECT_HEADER, MUSHI_RADIUS, MUSHI_REPORTER_STATUS, MUSHI_SDK_PACKAGE_HEADER, MUSHI_SDK_VERSION_HEADER, MUSHI_SPACING, MUSHI_TIER_COLORS, MUSHI_TYPE, MUSHI_USER_TOKEN_HEADER, MUSHI_Z, type MushiActivityEvent, type MushiApiCascadeConfig, type MushiApiClient, type MushiApiResponse, type MushiAssistantConfig, type MushiAssistantReply, type MushiAssistantStep, type MushiBannerConfig, type MushiBannerLink, type MushiBetaChangelogEntry, type MushiBetaModeConfig, type MushiBreadcrumb, type MushiCaptureConfig, type MushiCaptureEventInput, type MushiCaptureExceptionOptions, type MushiColorPalette, type MushiConfig, type MushiConsoleEntry, type MushiCooldownConfig, type MushiCrossAppReport, type MushiCustomCategory, type MushiDiagnosticsResult, type MushiDiscoverInventoryConfig, type MushiDiscoveryEventPayload, type MushiEnvironment, type MushiEventHandler, type MushiEventType, type MushiHallOfFameEntry, type MushiIdentityClaims, type MushiIntegrationsConfig, type MushiInternalRequestKind, type MushiLeaderboardEntry, type MushiNetworkEntry, type MushiOfflineConfig, type MushiOnDeviceClassifier, type MushiOnDeviceClassifierInput, type MushiOnDeviceClassifierResult, type MushiPageContext, type MushiPerformanceMetrics, type MushiPreFilterConfig, type MushiPreset, type MushiPrivacyConfig, type MushiProactiveConfig, type MushiRegion, type MushiReport, type MushiReportBuilder, type MushiReportCategory, type MushiReportStatus, type MushiReporterComment, type MushiReporterReport, type MushiReputationResult, type MushiRewardsConfig, type MushiRuntimeSdkConfig, type MushiSDKInstance, type MushiSdkVersionInfo, type MushiSelectedElement, type MushiSentryConfig, type MushiSentryContext, type MushiSessionEventPayload, type MushiTesterReputation, type MushiThemeMode, type MushiTierResult, type MushiTimelineEntry, type MushiTimelineKind, type MushiTokenSnapshot, type MushiTracePropagationConfig, type MushiUrlMatcher, type MushiWidgetAnchor, type MushiWidgetConfig, type NormalisedException, type OfflineQueue, type PayloadGuardResult, type PiiScrubberConfig, type PreFilterResult, type ProjectFaviconSource, REGION_ENDPOINTS, type RateLimiter, type RateLimiterConfig, type ResolvedEnvConfig, type SessionTrackerOptions, buildIdentityClaims, buildSdkIngestHeaders, captureEnvironment, checkReportPayloadSize, createApiClient, createBreadcrumbBuffer, createLogger, createOfflineQueue, createPiiScrubber, createPreFilter, createRateLimiter, destroySessionTracker, diagnoseEnvConfig, estimateJsonBytes, expandPreset, faviconUrlCandidates, formatBytes, getDeviceFingerprintHash, getReporterToken, getSessionId, githubRepoDomainHint, hmacSha256Hex, initSessionTracker, isLikelyGenericFavicon, isUntrustedFaviconUrl, mushiPalette, mushiTokens, newUuid, noopLogger, normaliseThrown, originToDomain, parseIdentityToken, projectFaviconUrlCandidates, projectInitials, projectInitialsThemeIndex, readPageFaviconHref, resolveEnvConfig, resolveProjectDomain, resolveProjectFaviconDomains, resolveRegionEndpoint, resolveWidgetAccent, safeWidgetHex, scrubPii, sha256Hex, trackPageView, updateSessionIdentity, validateConfig };
|
|
2557
|
+
export { type ApiClientOptions, type BreadcrumbBuffer, type BreadcrumbBufferOptions, DEFAULT_API_ENDPOINT, DEFAULT_MAX_RETRIES, DEFAULT_TIMEOUT, type EnvConfigDiagnostics, type EnvNearMiss, type LogEntry, type LogFormat, type LogLevel, type Logger, type LoggerOptions, MAX_REPORT_PAYLOAD_BYTES, MAX_SCREENSHOT_DATA_URL_BYTES, MUSHI_ACCENT_SHADOW, MUSHI_BANNER_BRAND_BORDER, MUSHI_BANNER_NEON, MUSHI_BORDER, MUSHI_COLORS_DARK, MUSHI_COLORS_LIGHT, MUSHI_CONTROL_DISABLED, MUSHI_COPY, MUSHI_DURATION, MUSHI_GEOMETRY, MUSHI_IDENTITY_TOKEN_PREFIX, MUSHI_INTERNAL_HEADER, MUSHI_INTERNAL_INIT_MARKER, MUSHI_INVERSE, MUSHI_LETTER_SPACING, MUSHI_MOTION, MUSHI_ON_ACCENT, MUSHI_OPACITY, MUSHI_PROJECT_HEADER, MUSHI_RADIUS, MUSHI_REPORTER_STATUS, MUSHI_SDK_PACKAGE_HEADER, MUSHI_SDK_VERSION_HEADER, MUSHI_SHADOW_INK, MUSHI_SPACING, MUSHI_TIER_COLORS, MUSHI_TYPE, MUSHI_USER_TOKEN_HEADER, MUSHI_Z, type MushiActivityEvent, type MushiApiCascadeConfig, type MushiApiClient, type MushiApiResponse, type MushiAssistantConfig, type MushiAssistantReply, type MushiAssistantStep, type MushiBannerConfig, type MushiBannerLink, type MushiBetaChangelogEntry, type MushiBetaModeConfig, type MushiBreadcrumb, type MushiCaptureConfig, type MushiCaptureEventInput, type MushiCaptureExceptionOptions, type MushiColorPalette, type MushiConfig, type MushiConsoleEntry, type MushiCooldownConfig, type MushiCrossAppReport, type MushiCustomCategory, type MushiDiagnosticsResult, type MushiDiscoverInventoryConfig, type MushiDiscoveryEventPayload, type MushiEnvironment, type MushiEventHandler, type MushiEventType, type MushiHallOfFameEntry, type MushiIdentityClaims, type MushiIntegrationsConfig, type MushiInternalRequestKind, type MushiLeaderboardEntry, type MushiNetworkEntry, type MushiOfflineConfig, type MushiOnDeviceClassifier, type MushiOnDeviceClassifierInput, type MushiOnDeviceClassifierResult, type MushiPageContext, type MushiPerformanceMetrics, type MushiPreFilterConfig, type MushiPreset, type MushiPrivacyConfig, type MushiProactiveConfig, type MushiRegion, type MushiReport, type MushiReportBuilder, type MushiReportCategory, type MushiReportStatus, type MushiReporterComment, type MushiReporterReport, type MushiReputationResult, type MushiRewardsConfig, type MushiRuntimeSdkConfig, type MushiSDKInstance, type MushiSdkVersionInfo, type MushiSelectedElement, type MushiSentryConfig, type MushiSentryContext, type MushiSessionEventPayload, type MushiTesterReputation, type MushiThemeMode, type MushiTierResult, type MushiTimelineEntry, type MushiTimelineKind, type MushiTokenSnapshot, type MushiTracePropagationConfig, type MushiUrlMatcher, type MushiWidgetAnchor, type MushiWidgetConfig, type NormalisedException, type OfflineQueue, type PayloadGuardResult, type PiiScrubberConfig, type PreFilterResult, type ProjectFaviconSource, REGION_ENDPOINTS, type RateLimiter, type RateLimiterConfig, type ResolvedEnvConfig, type SessionTrackerOptions, buildIdentityClaims, buildSdkIngestHeaders, captureEnvironment, checkReportPayloadSize, createApiClient, createBreadcrumbBuffer, createLogger, createOfflineQueue, createPiiScrubber, createPreFilter, createRateLimiter, destroySessionTracker, diagnoseEnvConfig, estimateJsonBytes, expandPreset, faviconUrlCandidates, formatBytes, getDeviceFingerprintHash, getReporterToken, getSessionId, githubRepoDomainHint, hmacSha256Hex, initSessionTracker, isLikelyGenericFavicon, isUntrustedFaviconUrl, mushiPalette, mushiTokens, newUuid, noopLogger, normaliseThrown, originToDomain, parseIdentityToken, projectFaviconUrlCandidates, projectInitials, projectInitialsThemeIndex, readPageFaviconHref, resolveEnvConfig, resolveProjectDomain, resolveProjectFaviconDomains, resolveRegionEndpoint, resolveWidgetAccent, safeWidgetHex, scrubPii, sha256Hex, trackPageView, updateSessionIdentity, validateConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -2270,6 +2270,13 @@ declare const MUSHI_BANNER_NEON: {
|
|
|
2270
2270
|
declare const MUSHI_ON_ACCENT = "#FAF7F0";
|
|
2271
2271
|
/** Pure white for assistant bubbles on accent backgrounds. */
|
|
2272
2272
|
declare const MUSHI_INVERSE = "#ffffff";
|
|
2273
|
+
/** Disabled control fill (inactive category chips, muted buttons). */
|
|
2274
|
+
declare const MUSHI_CONTROL_DISABLED: {
|
|
2275
|
+
readonly light: "#d1d1d6";
|
|
2276
|
+
readonly dark: "#3a3a3c";
|
|
2277
|
+
};
|
|
2278
|
+
/** Drop-shadow ink for RN shadowColor (sumi black). */
|
|
2279
|
+
declare const MUSHI_SHADOW_INK = "#000000";
|
|
2273
2280
|
/** Submit-button depth shadow (accent ink, mode-specific). */
|
|
2274
2281
|
declare const MUSHI_ACCENT_SHADOW: {
|
|
2275
2282
|
readonly light: "#9A2A1E";
|
|
@@ -2340,6 +2347,48 @@ declare const MUSHI_MOTION: {
|
|
|
2340
2347
|
readonly durationFast: 200;
|
|
2341
2348
|
readonly durationPanel: 300;
|
|
2342
2349
|
};
|
|
2350
|
+
/**
|
|
2351
|
+
* Full duration vocabulary (ms). MUSHI_MOTION retains its two values for
|
|
2352
|
+
* back-compat; this set adds the missing steps for micro-interactions and
|
|
2353
|
+
* expressive animations without changing the RN / Capacitor snapshot.
|
|
2354
|
+
*/
|
|
2355
|
+
declare const MUSHI_DURATION: {
|
|
2356
|
+
/** Fastest — tooltip show, chip hover tint */
|
|
2357
|
+
readonly instant: 120;
|
|
2358
|
+
/** Default micro-interaction — most hover / focus transitions */
|
|
2359
|
+
readonly fast: 200;
|
|
2360
|
+
/** Button bloom, option-row wipe */
|
|
2361
|
+
readonly base: 220;
|
|
2362
|
+
/** Panel enter / exit */
|
|
2363
|
+
readonly panel: 300;
|
|
2364
|
+
/** Deliberate — success stamp press, page-level transitions */
|
|
2365
|
+
readonly slow: 420;
|
|
2366
|
+
/** Stamp ring draw, long ambient animations */
|
|
2367
|
+
readonly ring: 700;
|
|
2368
|
+
};
|
|
2369
|
+
/** Border widths (px) — editorial weight scale. */
|
|
2370
|
+
declare const MUSHI_BORDER: {
|
|
2371
|
+
readonly hairline: 1;
|
|
2372
|
+
readonly regular: 1.5;
|
|
2373
|
+
readonly strong: 2;
|
|
2374
|
+
/** Hanko stamp border (FAB inset accent stripe, stamp ring) */
|
|
2375
|
+
readonly stamp: 3;
|
|
2376
|
+
};
|
|
2377
|
+
/** Opacity scale — disabled, muted, scrim, overlay states. */
|
|
2378
|
+
declare const MUSHI_OPACITY: {
|
|
2379
|
+
readonly disabled: 0.4;
|
|
2380
|
+
readonly muted: 0.6;
|
|
2381
|
+
readonly scrim: 0.72;
|
|
2382
|
+
readonly overlay: 0.88;
|
|
2383
|
+
};
|
|
2384
|
+
/** Letter-spacing scale — mono captions to wide stamp labels. */
|
|
2385
|
+
declare const MUSHI_LETTER_SPACING: {
|
|
2386
|
+
readonly tight: "-0.01em";
|
|
2387
|
+
readonly normal: "0";
|
|
2388
|
+
readonly label: "0.02em";
|
|
2389
|
+
readonly stamp: "0.08em";
|
|
2390
|
+
readonly wide: "0.16em";
|
|
2391
|
+
};
|
|
2343
2392
|
/**
|
|
2344
2393
|
* Launcher geometry — the numbers that previously diverged between platforms
|
|
2345
2394
|
* (banner height, FAB size, default gutter, panel width). Centralising them
|
|
@@ -2393,6 +2442,8 @@ interface MushiTokenSnapshot {
|
|
|
2393
2442
|
type: typeof MUSHI_TYPE;
|
|
2394
2443
|
z: typeof MUSHI_Z;
|
|
2395
2444
|
motion: typeof MUSHI_MOTION;
|
|
2445
|
+
/** Full duration vocabulary — complements `motion` for micro / stamp steps. */
|
|
2446
|
+
duration: typeof MUSHI_DURATION;
|
|
2396
2447
|
geometry: typeof MUSHI_GEOMETRY;
|
|
2397
2448
|
copy: typeof MUSHI_COPY;
|
|
2398
2449
|
}
|
|
@@ -2503,4 +2554,4 @@ declare function projectInitialsThemeIndex(projectId: string): number;
|
|
|
2503
2554
|
*/
|
|
2504
2555
|
declare function readPageFaviconHref(): string | null;
|
|
2505
2556
|
|
|
2506
|
-
export { type ApiClientOptions, type BreadcrumbBuffer, type BreadcrumbBufferOptions, DEFAULT_API_ENDPOINT, DEFAULT_MAX_RETRIES, DEFAULT_TIMEOUT, type EnvConfigDiagnostics, type EnvNearMiss, type LogEntry, type LogFormat, type LogLevel, type Logger, type LoggerOptions, MAX_REPORT_PAYLOAD_BYTES, MAX_SCREENSHOT_DATA_URL_BYTES, MUSHI_ACCENT_SHADOW, MUSHI_BANNER_BRAND_BORDER, MUSHI_BANNER_NEON, MUSHI_COLORS_DARK, MUSHI_COLORS_LIGHT, MUSHI_COPY, MUSHI_GEOMETRY, MUSHI_IDENTITY_TOKEN_PREFIX, MUSHI_INTERNAL_HEADER, MUSHI_INTERNAL_INIT_MARKER, MUSHI_INVERSE, MUSHI_MOTION, MUSHI_ON_ACCENT, MUSHI_PROJECT_HEADER, MUSHI_RADIUS, MUSHI_REPORTER_STATUS, MUSHI_SDK_PACKAGE_HEADER, MUSHI_SDK_VERSION_HEADER, MUSHI_SPACING, MUSHI_TIER_COLORS, MUSHI_TYPE, MUSHI_USER_TOKEN_HEADER, MUSHI_Z, type MushiActivityEvent, type MushiApiCascadeConfig, type MushiApiClient, type MushiApiResponse, type MushiAssistantConfig, type MushiAssistantReply, type MushiAssistantStep, type MushiBannerConfig, type MushiBannerLink, type MushiBetaChangelogEntry, type MushiBetaModeConfig, type MushiBreadcrumb, type MushiCaptureConfig, type MushiCaptureEventInput, type MushiCaptureExceptionOptions, type MushiColorPalette, type MushiConfig, type MushiConsoleEntry, type MushiCooldownConfig, type MushiCrossAppReport, type MushiCustomCategory, type MushiDiagnosticsResult, type MushiDiscoverInventoryConfig, type MushiDiscoveryEventPayload, type MushiEnvironment, type MushiEventHandler, type MushiEventType, type MushiHallOfFameEntry, type MushiIdentityClaims, type MushiIntegrationsConfig, type MushiInternalRequestKind, type MushiLeaderboardEntry, type MushiNetworkEntry, type MushiOfflineConfig, type MushiOnDeviceClassifier, type MushiOnDeviceClassifierInput, type MushiOnDeviceClassifierResult, type MushiPageContext, type MushiPerformanceMetrics, type MushiPreFilterConfig, type MushiPreset, type MushiPrivacyConfig, type MushiProactiveConfig, type MushiRegion, type MushiReport, type MushiReportBuilder, type MushiReportCategory, type MushiReportStatus, type MushiReporterComment, type MushiReporterReport, type MushiReputationResult, type MushiRewardsConfig, type MushiRuntimeSdkConfig, type MushiSDKInstance, type MushiSdkVersionInfo, type MushiSelectedElement, type MushiSentryConfig, type MushiSentryContext, type MushiSessionEventPayload, type MushiTesterReputation, type MushiThemeMode, type MushiTierResult, type MushiTimelineEntry, type MushiTimelineKind, type MushiTokenSnapshot, type MushiTracePropagationConfig, type MushiUrlMatcher, type MushiWidgetAnchor, type MushiWidgetConfig, type NormalisedException, type OfflineQueue, type PayloadGuardResult, type PiiScrubberConfig, type PreFilterResult, type ProjectFaviconSource, REGION_ENDPOINTS, type RateLimiter, type RateLimiterConfig, type ResolvedEnvConfig, type SessionTrackerOptions, buildIdentityClaims, buildSdkIngestHeaders, captureEnvironment, checkReportPayloadSize, createApiClient, createBreadcrumbBuffer, createLogger, createOfflineQueue, createPiiScrubber, createPreFilter, createRateLimiter, destroySessionTracker, diagnoseEnvConfig, estimateJsonBytes, expandPreset, faviconUrlCandidates, formatBytes, getDeviceFingerprintHash, getReporterToken, getSessionId, githubRepoDomainHint, hmacSha256Hex, initSessionTracker, isLikelyGenericFavicon, isUntrustedFaviconUrl, mushiPalette, mushiTokens, newUuid, noopLogger, normaliseThrown, originToDomain, parseIdentityToken, projectFaviconUrlCandidates, projectInitials, projectInitialsThemeIndex, readPageFaviconHref, resolveEnvConfig, resolveProjectDomain, resolveProjectFaviconDomains, resolveRegionEndpoint, resolveWidgetAccent, safeWidgetHex, scrubPii, sha256Hex, trackPageView, updateSessionIdentity, validateConfig };
|
|
2557
|
+
export { type ApiClientOptions, type BreadcrumbBuffer, type BreadcrumbBufferOptions, DEFAULT_API_ENDPOINT, DEFAULT_MAX_RETRIES, DEFAULT_TIMEOUT, type EnvConfigDiagnostics, type EnvNearMiss, type LogEntry, type LogFormat, type LogLevel, type Logger, type LoggerOptions, MAX_REPORT_PAYLOAD_BYTES, MAX_SCREENSHOT_DATA_URL_BYTES, MUSHI_ACCENT_SHADOW, MUSHI_BANNER_BRAND_BORDER, MUSHI_BANNER_NEON, MUSHI_BORDER, MUSHI_COLORS_DARK, MUSHI_COLORS_LIGHT, MUSHI_CONTROL_DISABLED, MUSHI_COPY, MUSHI_DURATION, MUSHI_GEOMETRY, MUSHI_IDENTITY_TOKEN_PREFIX, MUSHI_INTERNAL_HEADER, MUSHI_INTERNAL_INIT_MARKER, MUSHI_INVERSE, MUSHI_LETTER_SPACING, MUSHI_MOTION, MUSHI_ON_ACCENT, MUSHI_OPACITY, MUSHI_PROJECT_HEADER, MUSHI_RADIUS, MUSHI_REPORTER_STATUS, MUSHI_SDK_PACKAGE_HEADER, MUSHI_SDK_VERSION_HEADER, MUSHI_SHADOW_INK, MUSHI_SPACING, MUSHI_TIER_COLORS, MUSHI_TYPE, MUSHI_USER_TOKEN_HEADER, MUSHI_Z, type MushiActivityEvent, type MushiApiCascadeConfig, type MushiApiClient, type MushiApiResponse, type MushiAssistantConfig, type MushiAssistantReply, type MushiAssistantStep, type MushiBannerConfig, type MushiBannerLink, type MushiBetaChangelogEntry, type MushiBetaModeConfig, type MushiBreadcrumb, type MushiCaptureConfig, type MushiCaptureEventInput, type MushiCaptureExceptionOptions, type MushiColorPalette, type MushiConfig, type MushiConsoleEntry, type MushiCooldownConfig, type MushiCrossAppReport, type MushiCustomCategory, type MushiDiagnosticsResult, type MushiDiscoverInventoryConfig, type MushiDiscoveryEventPayload, type MushiEnvironment, type MushiEventHandler, type MushiEventType, type MushiHallOfFameEntry, type MushiIdentityClaims, type MushiIntegrationsConfig, type MushiInternalRequestKind, type MushiLeaderboardEntry, type MushiNetworkEntry, type MushiOfflineConfig, type MushiOnDeviceClassifier, type MushiOnDeviceClassifierInput, type MushiOnDeviceClassifierResult, type MushiPageContext, type MushiPerformanceMetrics, type MushiPreFilterConfig, type MushiPreset, type MushiPrivacyConfig, type MushiProactiveConfig, type MushiRegion, type MushiReport, type MushiReportBuilder, type MushiReportCategory, type MushiReportStatus, type MushiReporterComment, type MushiReporterReport, type MushiReputationResult, type MushiRewardsConfig, type MushiRuntimeSdkConfig, type MushiSDKInstance, type MushiSdkVersionInfo, type MushiSelectedElement, type MushiSentryConfig, type MushiSentryContext, type MushiSessionEventPayload, type MushiTesterReputation, type MushiThemeMode, type MushiTierResult, type MushiTimelineEntry, type MushiTimelineKind, type MushiTokenSnapshot, type MushiTracePropagationConfig, type MushiUrlMatcher, type MushiWidgetAnchor, type MushiWidgetConfig, type NormalisedException, type OfflineQueue, type PayloadGuardResult, type PiiScrubberConfig, type PreFilterResult, type ProjectFaviconSource, REGION_ENDPOINTS, type RateLimiter, type RateLimiterConfig, type ResolvedEnvConfig, type SessionTrackerOptions, buildIdentityClaims, buildSdkIngestHeaders, captureEnvironment, checkReportPayloadSize, createApiClient, createBreadcrumbBuffer, createLogger, createOfflineQueue, createPiiScrubber, createPreFilter, createRateLimiter, destroySessionTracker, diagnoseEnvConfig, estimateJsonBytes, expandPreset, faviconUrlCandidates, formatBytes, getDeviceFingerprintHash, getReporterToken, getSessionId, githubRepoDomainHint, hmacSha256Hex, initSessionTracker, isLikelyGenericFavicon, isUntrustedFaviconUrl, mushiPalette, mushiTokens, newUuid, noopLogger, normaliseThrown, originToDomain, parseIdentityToken, projectFaviconUrlCandidates, projectInitials, projectInitialsThemeIndex, readPageFaviconHref, resolveEnvConfig, resolveProjectDomain, resolveProjectFaviconDomains, resolveRegionEndpoint, resolveWidgetAccent, safeWidgetHex, scrubPii, sha256Hex, trackPageView, updateSessionIdentity, validateConfig };
|
package/dist/index.js
CHANGED
|
@@ -2117,8 +2117,10 @@ var MUSHI_COLORS_LIGHT = {
|
|
|
2117
2117
|
accent: "#E03C2C",
|
|
2118
2118
|
accentWash: "rgba(224,60,44,0.08)",
|
|
2119
2119
|
accentInk: "#7A1F15",
|
|
2120
|
-
|
|
2121
|
-
|
|
2120
|
+
/** Aligned with brand.tokens.json `jade` (was Tailwind green-600 — drifted). */
|
|
2121
|
+
ok: "#2D7A55",
|
|
2122
|
+
/** Aligned with brand.tokens.json `viz-danger` (was Tailwind red-600 — drifted). */
|
|
2123
|
+
danger: "#B83232"
|
|
2122
2124
|
};
|
|
2123
2125
|
var MUSHI_COLORS_DARK = {
|
|
2124
2126
|
paper: "#0F0E0C",
|
|
@@ -2132,8 +2134,10 @@ var MUSHI_COLORS_DARK = {
|
|
|
2132
2134
|
accent: "#FF5A47",
|
|
2133
2135
|
accentWash: "rgba(255,90,71,0.12)",
|
|
2134
2136
|
accentInk: "#FFE5E0",
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
+
/** Aligned with brand.tokens.json `dark-jade`. */
|
|
2138
|
+
ok: "#3A9E6E",
|
|
2139
|
+
/** Aligned with brand.tokens.json `dark-viz-danger`. */
|
|
2140
|
+
danger: "#E05555"
|
|
2137
2141
|
};
|
|
2138
2142
|
var MUSHI_TIER_COLORS = {
|
|
2139
2143
|
free: MUSHI_COLORS_LIGHT.inkMuted,
|
|
@@ -2149,6 +2153,11 @@ var MUSHI_BANNER_NEON = {
|
|
|
2149
2153
|
};
|
|
2150
2154
|
var MUSHI_ON_ACCENT = "#FAF7F0";
|
|
2151
2155
|
var MUSHI_INVERSE = "#ffffff";
|
|
2156
|
+
var MUSHI_CONTROL_DISABLED = {
|
|
2157
|
+
light: "#d1d1d6",
|
|
2158
|
+
dark: "#3a3a3c"
|
|
2159
|
+
};
|
|
2160
|
+
var MUSHI_SHADOW_INK = "#000000";
|
|
2152
2161
|
var MUSHI_ACCENT_SHADOW = {
|
|
2153
2162
|
light: "#9A2A1E",
|
|
2154
2163
|
dark: "#7A1F15"
|
|
@@ -2214,6 +2223,40 @@ var MUSHI_MOTION = {
|
|
|
2214
2223
|
durationFast: 200,
|
|
2215
2224
|
durationPanel: 300
|
|
2216
2225
|
};
|
|
2226
|
+
var MUSHI_DURATION = {
|
|
2227
|
+
/** Fastest — tooltip show, chip hover tint */
|
|
2228
|
+
instant: 120,
|
|
2229
|
+
/** Default micro-interaction — most hover / focus transitions */
|
|
2230
|
+
fast: 200,
|
|
2231
|
+
/** Button bloom, option-row wipe */
|
|
2232
|
+
base: 220,
|
|
2233
|
+
/** Panel enter / exit */
|
|
2234
|
+
panel: 300,
|
|
2235
|
+
/** Deliberate — success stamp press, page-level transitions */
|
|
2236
|
+
slow: 420,
|
|
2237
|
+
/** Stamp ring draw, long ambient animations */
|
|
2238
|
+
ring: 700
|
|
2239
|
+
};
|
|
2240
|
+
var MUSHI_BORDER = {
|
|
2241
|
+
hairline: 1,
|
|
2242
|
+
regular: 1.5,
|
|
2243
|
+
strong: 2,
|
|
2244
|
+
/** Hanko stamp border (FAB inset accent stripe, stamp ring) */
|
|
2245
|
+
stamp: 3
|
|
2246
|
+
};
|
|
2247
|
+
var MUSHI_OPACITY = {
|
|
2248
|
+
disabled: 0.4,
|
|
2249
|
+
muted: 0.6,
|
|
2250
|
+
scrim: 0.72,
|
|
2251
|
+
overlay: 0.88
|
|
2252
|
+
};
|
|
2253
|
+
var MUSHI_LETTER_SPACING = {
|
|
2254
|
+
tight: "-0.01em",
|
|
2255
|
+
normal: "0",
|
|
2256
|
+
label: "0.02em",
|
|
2257
|
+
stamp: "0.08em",
|
|
2258
|
+
wide: "0.16em"
|
|
2259
|
+
};
|
|
2217
2260
|
var MUSHI_GEOMETRY = {
|
|
2218
2261
|
bannerHeight: 36,
|
|
2219
2262
|
fabSize: 52,
|
|
@@ -2259,6 +2302,7 @@ function mushiTokens(mode) {
|
|
|
2259
2302
|
type: MUSHI_TYPE,
|
|
2260
2303
|
z: MUSHI_Z,
|
|
2261
2304
|
motion: MUSHI_MOTION,
|
|
2305
|
+
duration: MUSHI_DURATION,
|
|
2262
2306
|
geometry: MUSHI_GEOMETRY,
|
|
2263
2307
|
copy: MUSHI_COPY
|
|
2264
2308
|
};
|
|
@@ -2493,6 +2537,6 @@ function isSafeFaviconHref(href) {
|
|
|
2493
2537
|
}
|
|
2494
2538
|
}
|
|
2495
2539
|
|
|
2496
|
-
export { DEFAULT_API_ENDPOINT, DEFAULT_MAX_RETRIES, DEFAULT_TIMEOUT, MAX_REPORT_PAYLOAD_BYTES, MAX_SCREENSHOT_DATA_URL_BYTES, MUSHI_ACCENT_SHADOW, MUSHI_BANNER_BRAND_BORDER, MUSHI_BANNER_NEON, MUSHI_COLORS_DARK, MUSHI_COLORS_LIGHT, MUSHI_COPY, MUSHI_GEOMETRY, MUSHI_IDENTITY_TOKEN_PREFIX, MUSHI_INTERNAL_HEADER, MUSHI_INTERNAL_INIT_MARKER, MUSHI_INVERSE, MUSHI_MOTION, MUSHI_ON_ACCENT, MUSHI_PROJECT_HEADER, MUSHI_RADIUS, MUSHI_REPORTER_STATUS, MUSHI_SDK_PACKAGE_HEADER, MUSHI_SDK_VERSION_HEADER, MUSHI_SPACING, MUSHI_TIER_COLORS, MUSHI_TYPE, MUSHI_USER_TOKEN_HEADER, MUSHI_Z, REGION_ENDPOINTS, buildIdentityClaims, buildSdkIngestHeaders, captureEnvironment, checkReportPayloadSize, createApiClient, createBreadcrumbBuffer, createLogger, createOfflineQueue, createPiiScrubber, createPreFilter, createRateLimiter, destroySessionTracker, diagnoseEnvConfig, estimateJsonBytes, expandPreset, faviconUrlCandidates, formatBytes, getDeviceFingerprintHash, getReporterToken, getSessionId, githubRepoDomainHint, hmacSha256Hex, initSessionTracker, isLikelyGenericFavicon, isUntrustedFaviconUrl, mushiPalette, mushiTokens, newUuid, noopLogger, normaliseThrown, originToDomain, parseIdentityToken, projectFaviconUrlCandidates, projectInitials, projectInitialsThemeIndex, readPageFaviconHref, resolveEnvConfig, resolveProjectDomain, resolveProjectFaviconDomains, resolveRegionEndpoint, resolveWidgetAccent, safeWidgetHex, scrubPii, sha256Hex, trackPageView, updateSessionIdentity, validateConfig };
|
|
2540
|
+
export { DEFAULT_API_ENDPOINT, DEFAULT_MAX_RETRIES, DEFAULT_TIMEOUT, MAX_REPORT_PAYLOAD_BYTES, MAX_SCREENSHOT_DATA_URL_BYTES, MUSHI_ACCENT_SHADOW, MUSHI_BANNER_BRAND_BORDER, MUSHI_BANNER_NEON, MUSHI_BORDER, MUSHI_COLORS_DARK, MUSHI_COLORS_LIGHT, MUSHI_CONTROL_DISABLED, MUSHI_COPY, MUSHI_DURATION, MUSHI_GEOMETRY, MUSHI_IDENTITY_TOKEN_PREFIX, MUSHI_INTERNAL_HEADER, MUSHI_INTERNAL_INIT_MARKER, MUSHI_INVERSE, MUSHI_LETTER_SPACING, MUSHI_MOTION, MUSHI_ON_ACCENT, MUSHI_OPACITY, MUSHI_PROJECT_HEADER, MUSHI_RADIUS, MUSHI_REPORTER_STATUS, MUSHI_SDK_PACKAGE_HEADER, MUSHI_SDK_VERSION_HEADER, MUSHI_SHADOW_INK, MUSHI_SPACING, MUSHI_TIER_COLORS, MUSHI_TYPE, MUSHI_USER_TOKEN_HEADER, MUSHI_Z, REGION_ENDPOINTS, buildIdentityClaims, buildSdkIngestHeaders, captureEnvironment, checkReportPayloadSize, createApiClient, createBreadcrumbBuffer, createLogger, createOfflineQueue, createPiiScrubber, createPreFilter, createRateLimiter, destroySessionTracker, diagnoseEnvConfig, estimateJsonBytes, expandPreset, faviconUrlCandidates, formatBytes, getDeviceFingerprintHash, getReporterToken, getSessionId, githubRepoDomainHint, hmacSha256Hex, initSessionTracker, isLikelyGenericFavicon, isUntrustedFaviconUrl, mushiPalette, mushiTokens, newUuid, noopLogger, normaliseThrown, originToDomain, parseIdentityToken, projectFaviconUrlCandidates, projectInitials, projectInitialsThemeIndex, readPageFaviconHref, resolveEnvConfig, resolveProjectDomain, resolveProjectFaviconDomains, resolveRegionEndpoint, resolveWidgetAccent, safeWidgetHex, scrubPii, sha256Hex, trackPageView, updateSessionIdentity, validateConfig };
|
|
2497
2541
|
//# sourceMappingURL=index.js.map
|
|
2498
2542
|
//# sourceMappingURL=index.js.map
|