@testerpaykit/expo 0.7.2 → 0.7.5

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/CHANGELOG.md CHANGED
@@ -2,6 +2,106 @@
2
2
 
3
3
  All notable changes to `@testerpaykit/expo` are documented here.
4
4
 
5
+ ## 0.7.5 — 2026-10-24
6
+
7
+ **A spoken bug report opens on Review, ready to submit.**
8
+
9
+ ### Fixed
10
+ - After a voice report (long-press the FAB, speak, extraction returns) the
11
+ bug-report sheet opened on step 0, Bug Type. Type, title, description,
12
+ expected/actual behaviour and frequency were already filled in, but the
13
+ tester still had to tap through Bug Type, Severity, Details and Steps to
14
+ reach Submit. The Flutter SDK has always opened this path on Review.
15
+ Found in BingeBuddy (2026-10-24), compared side by side with Bonblick.
16
+
17
+ Now the voice path opens the sheet on Review (step 4) with the extracted
18
+ fields and the Submit button. Back still walks through every step, so the
19
+ tester can correct anything before sending. "Report bug" from the FAB
20
+ menu and shake-to-report open on step 0 as before.
21
+
22
+ ### Added
23
+ - `BugReportSheet` takes an optional `initialStep` (0–4, default 0) for
24
+ hosts that render the sheet themselves.
25
+
26
+ ## 0.7.4 — 2026-10-22
27
+
28
+ **A failed request is no longer a crash, and one crash is one report.**
29
+
30
+ ### Fixed
31
+ - Every unhandled promise rejection was sent as a `crash` report, including
32
+ failed requests: offline, server down, CORS, aborted. The coordinator
33
+ console (which bundles this SDK with crash capture on) sent 312 identical
34
+ reports titled "A network error occurred." in 30 days, from two testers,
35
+ up to 108 an hour. Each one was a fetch that never reached the API, not a
36
+ bug in the app.
37
+
38
+ Now an unhandled rejection whose reason is a failed request is recorded as
39
+ an `http` breadcrumb (`unhandled network error`) instead. This covers the
40
+ fetch messages of Chrome ("Failed to fetch"), Safari ("Load failed",
41
+ "A network error occurred."), Firefox and React Native, axios network,
42
+ timeout and cancel errors, and `AbortError` / `TimeoutError`. Only the
43
+ whole message counts, so an app error that merely mentions the network is
44
+ still reported. A *fatal* error is always reported.
45
+ - The same crash was reported once per occurrence. A crash in a render loop
46
+ or a polling timer sent a report every time. Now each crash signature
47
+ (title plus top stack frame) is reported once per session;
48
+ `rotateSession()` starts counting again.
49
+ - A cached crash could be sent twice. Every captured crash started its own
50
+ flush, two flushes running at once both sent the same cached crash, and
51
+ two crashes in the same tick could overwrite each other in storage (one
52
+ lost, the other sent twice). Flushes and queue writes now run one after
53
+ another.
54
+ - Each upload attempt of a crash got a new idempotency key, so the server
55
+ could not drop a repeat. The cached crash's id is now the key for every
56
+ attempt.
57
+ - Crashes an older SDK left queued are cleaned up on the next flush:
58
+ failed-request "crashes" and repeats of an already sent crash are dropped
59
+ instead of sent.
60
+
61
+ ## 0.7.3 — 2026-10-20
62
+
63
+ **An expired login no longer turns the SDK off for good.**
64
+
65
+ ### Fixed
66
+ - `TpkExpo.init()` reused the cached anonymous login (storage key `auth`)
67
+ without looking at its expiry. The JWT lives 720 h; once it had expired and
68
+ no session younger than 12 h was stored, `init()` started a server session
69
+ with it, got `401 Invalid or expired token`, and **rejected** — the provider
70
+ client stayed `null` and the report sheet said "SDK not ready — try again in
71
+ a moment." The dead login was never removed, so every later start failed
72
+ the same way. Found in umkreis (2026-10-20): no session had arrived from a
73
+ tester's iPhone since 2026-08-20.
74
+
75
+ Now a cached login with less than a day left is dropped before use, together
76
+ with its persisted session, and `init()` logs in fresh in the background like
77
+ on a first start. A 401 at session start with a cached login does the same.
78
+ Any other session-start failure (offline, 5xx) keeps the login and retries
79
+ the session in the background. `init()` no longer rejects on a network or
80
+ auth error.
81
+
82
+ Host apps that worked around this by hiding an expired `auth` from the SDK
83
+ (a custom `config.storage`) can drop the workaround.
84
+ - A bug report built before the server session existed went out with
85
+ `sessionId: ''`. The API answered 500, the offline queue keeps 5xx entries,
86
+ so the report failed again on every flush and never arrived. Found on
87
+ app.testerpaykit.com (2026-10-20): six such reports in one second.
88
+
89
+ Now `buildPayload()` gives a session that is still being created up to 3 s,
90
+ and `flushQueue()` fills an empty `sessionId` with the current session. While
91
+ there is no session yet, such an entry stays queued instead of being sent.
92
+ The API now rejects malformed ids with 400.
93
+ - **A host app missing any optional native module could not bundle** (since
94
+ 0.6.1). The dev-mode setup check probed every optional peer with
95
+ `import('<module>')` outside a `try`, so Metro treated the import as a hard
96
+ dependency and failed with `Unable to resolve module
97
+ react-native-record-screen` — although the README calls these modules
98
+ optional. Each probe now imports inside its own `try`, which is what makes
99
+ Metro treat it as optional. Found while re-vendoring the coordinator
100
+ console, which installs no screen-recording module.
101
+ - Sessions reported the wrong SDK version: `sdk_version` was a hard-coded
102
+ `@testerpaykit/expo/0.4.0` (the AI remote control even said `0.2.0`). The
103
+ version now comes from `package.json` at build time, so it can't drift.
104
+
5
105
  ## 0.7.2 — 2026-09-22
6
106
 
7
107
  Same content as 0.7.1, published correctly. **0.7.1 is unusable**: it was
package/dist/index.d.mts CHANGED
@@ -112,7 +112,10 @@ interface CrashInfo {
112
112
  declare function installCrashHandler(options: CrashHandlerOptions): () => void;
113
113
 
114
114
  interface CachedCrash {
115
- /** Local id for review / retry bookkeeping. */
115
+ /**
116
+ * Local id for review / retry bookkeeping. Also the idempotency key of
117
+ * every upload attempt, so the server drops a repeated send.
118
+ */
116
119
  id: string;
117
120
  /** ISO timestamp when the crash was captured. */
118
121
  capturedAt: string;
@@ -121,12 +124,14 @@ interface CachedCrash {
121
124
  }
122
125
  declare class CrashQueue {
123
126
  private readonly storage;
127
+ private tail;
124
128
  constructor(storage: TpkStorage);
125
129
  enqueue(info: CrashInfo): Promise<CachedCrash>;
126
130
  pending(): Promise<CachedCrash[]>;
127
131
  size(): Promise<number>;
128
132
  remove(id: string): Promise<void>;
129
133
  private read;
134
+ private exclusive;
130
135
  }
131
136
 
132
137
  interface QueuedEntry {
@@ -610,6 +615,9 @@ declare class TpkExpo {
610
615
  private readonly sessionEvents;
611
616
  private uninstallDurableSync;
612
617
  private uninstallTaskBinding;
618
+ private readonly capturedCrashes;
619
+ private readonly submittedCrashes;
620
+ private crashFlush;
613
621
  private constructor();
614
622
  /** Active server session id. Updated by init or rotate. Used to route telemetry. */
615
623
  sessionId: string;
@@ -726,8 +734,12 @@ declare class TpkExpo {
726
734
  /**
727
735
  * Try uploading cached crashes. Failed uploads remain cached so a
728
736
  * future launch can surface them for review or retry.
737
+ *
738
+ * Flushes run one after another: two at once both read the same
739
+ * cached crash and both sent it.
729
740
  */
730
741
  flushCachedCrashes(): Promise<number>;
742
+ private drainCrashQueue;
731
743
  /** Flush pending session events + breadcrumbs to timeline endpoints. */
732
744
  flushTelemetry(): Promise<FlushTelemetryResult>;
733
745
  /** End the active server-side tester session. */
@@ -1016,6 +1028,11 @@ interface BugReportSheetProps {
1016
1028
  * VoiceBugInputSheet extraction (title / description / expected
1017
1029
  * / actual / frequency / category). */
1018
1030
  initialDraft?: Partial<BugReportDraft>;
1031
+ /** Step the wizard opens on (default 0). The voice flow passes 4 so
1032
+ * the tester lands on Review with the extracted fields and can
1033
+ * submit right away; Back still walks through every step. Mirrors
1034
+ * Flutter's `BugReportDialog(initialStep: 4)`. */
1035
+ initialStep?: StepIndex;
1019
1036
  /** Max attachments + total size, mirrors Flutter's safeguards. */
1020
1037
  maxAttachments?: number;
1021
1038
  maxTotalSizeMB?: number;
@@ -1024,7 +1041,8 @@ interface BugReportSheetProps {
1024
1041
  declare function createBugReportDraft(input?: CreateBugReportDraftInput): BugReportDraft;
1025
1042
  declare function canSubmitBugReportDraft(draft: BugReportDraft): boolean;
1026
1043
  declare function submitBugReportDraft(tpk: Pick<TpkExpo, 'submitBug' | 'attachToBugReport'>, draft: BugReportDraft): Promise<SubmitBugResult>;
1027
- declare function BugReportSheet({ visible, tpk, currentScreen, captureRootRef, autoCaptureOnOpen, onOpenVoiceBug, onClose, onSubmitted, onError, defaultSeverity, initialDraft: initialDraftPatch, maxAttachments, maxTotalSizeMB, style, }: BugReportSheetProps): React.ReactElement;
1044
+ type StepIndex = 0 | 1 | 2 | 3 | 4;
1045
+ declare function BugReportSheet({ visible, tpk, currentScreen, captureRootRef, autoCaptureOnOpen, onOpenVoiceBug, onClose, onSubmitted, onError, defaultSeverity, initialDraft: initialDraftPatch, initialStep, maxAttachments, maxTotalSizeMB, style, }: BugReportSheetProps): React.ReactElement;
1028
1046
 
1029
1047
  interface DeviceSnapshot {
1030
1048
  platform: 'ios' | 'android' | 'web' | 'macos' | 'windows';
@@ -2240,4 +2258,5 @@ declare function useTpkEarnings(tpk: TpkExpo | null, options?: {
2240
2258
  payoutLimit?: number;
2241
2259
  }): UseEarningsResult;
2242
2260
 
2243
- export { ANNOTATION_PALETTE, type AnnotatedElementInfo, type AnnotatedScreenshotResult, type AnnotationColor, type AnnotationEvent, type AnnotationEventType, type AnnotationInteraction, type AnnotationListener, type AnnotationShape, type AnnotationStyle, type AnnotationTool, type AppSnapshot, type ArrowShape, AttachmentQueue, type AttachmentQueueFlushOptions, type BlurShape, type Breadcrumb, Breadcrumbs, type BugFix, type BugReportDraft, BugReportSheet, type BugReportSheetProps, type BuildInfo, type CachedCrash, type CaptureViewOptions, type CircleShape, type CompletionTrigger, type CrashHandlerOptions, type CrashInfo, CrashQueue, type CreateBugReportDraftInput, DEFAULT_STYLE, DEFAULT_TPK_THEME, type DashboardData, type DeviceSnapshot, type DiscoverOptions, type EarningsData, type EngagedMinutesInput, ExpoStorage, type FeedbackCategory, FloatingFeedbackButton, type FloatingFeedbackButtonProps, type FlushTelemetryResult, type FocusArea, GeneralFeedbackDialog, type GeneralFeedbackDialogProps, INTERACTION_NAV_WEIGHT, type InstallNetworkCaptureOptions, type InteractionBounds, type InteractionType, InviteCodeScreen, type InviteCodeScreenProps, MIN_INTERACTIONS_PER_ACTIVE_MINUTE, MyBugsSheet, type MyBugsSheetProps, NotificationsSheet, type NotificationsSheetProps, ONBOARDING_DONE_STORAGE_KEY, type OnboardingStorage, type PathShape, type PeriodFilter, type Point, type QueueFlushOptions, type QueueFlushResult, type RecordInteractionDetails, type RecordingOptions, type RecordingResult, type RecordingState, type RectShape, type RegisterAnnotationInput, type ReleaseNote, SCREENSHOT_CONSENT_STORAGE_KEY, ScreenRecorder, ScreenshotAnnotationEditor, type ScreenshotAnnotationEditorProps, type ScreenshotResult, type SensitiveMaskingMode, SessionDetailsSheet, type SessionDetailsSheetProps, SessionEndDialog, type SessionEndDialogProps, type SessionEndStats, type SessionStatsSnapshot, type StatusStyle, type SubmitBugInput, SubmitQueue, type TaskAnnotation, TaskAnnotationRegistry, type TaskInteractionSummary, type TaskProgress, TesterDashboard, type TesterDashboardProps, type TesterPayKitContextValue, TesterPayKitProvider, type TesterPayKitProviderProps, TesterPayKitWrapper, type TesterPayKitWrapperProps, type TextShape, TpkAnnotated, type TpkAnnotatedProps, TpkAnnotationOverlay, type TpkAnnotationOverlayHandle, type TpkAnnotationOverlayProps, TpkExpo, type TpkExpoConfig, TpkIcon, type TpkIconName, type TpkIconOverrideMap, type TpkIconProps, TpkIconsProvider, type TpkLogEntry, type TpkLogLevel, TpkOnboarding, type TpkOnboardingProps, TpkSensitive, type TpkSensitiveProps, type TpkStorage, TpkTalker, type TpkTalkerListener, type TpkTalkerOptions, type TpkTheme, TpkThemeProvider, TpkWelcomeSheet, type TpkWelcomeSheetProps, type UseDashboardResult, type UseEarningsResult, type UseShakeOptions, type UseTaskAnnotationOptions, type UseTaskAnnotationResult, type VersionRange, VoiceBugInputSheet, type VoiceBugInputSheetProps, type VoiceBugStrings, type VoiceClassification, type VoiceExtractAudio, type VoiceExtractResult, type VoiceNoteFileReader, VoiceNoteRecorder, type VoiceNoteRecorderLike, type VoiceNoteRecorderOptions, type VoiceNoteResult, type VoiceNoteState, WELCOME_ACK_STORAGE_KEY, WIDGET_TOUR_SEEN_STORAGE_KEY, type WelcomeAckStorage, type WelcomeBrief, type WelcomeTask, WidgetDiscovery, type WidgetInfo, WidgetTour, type WidgetTourProps, annotations, applySensitiveRedaction, arrowHeadPoints, beginNativeCapture, bugSeverityLabel, bugStatusStyle, canSubmitBugReportDraft, captureView, classificationToBugType, createBugReportDraft, deriveTaskProgress, emptyAnnotationDoc, endNativeCapture, engagedMinutes, extractVoiceBug, findAssignmentForTask, getAppSnapshot, getDeviceSnapshot, getEventCounts, getNativeCaptureMode, getSessionStats, getUniqueScreens, hasCompletedOnboarding, hasScreenshotConsent, hasSeenWidgetTour, hasWelcomeBriefBeenSeen, installCrashHandler, installNetworkCapture, markOnboardingComplete, markWelcomeBriefAsSeen, markWidgetTourSeen, mockBugFixes, mockBuildInfo, mockFocusAreas, mockWelcomeBrief, mockWelcomeTasks, mockWidgets, parseVersionRange, pathToSvgD, resetOnboardingState, resetWelcomeBriefAck, resetWidgetTourSeen, simplifyPath, submitBugReportDraft, subscribeNativeCaptureMode, uploadScreenshotAttachment, useShake, useTaskAnnotation, useTesterPayKit, useTpkDashboard, useTpkEarnings, useTpkTheme, versionSatisfies, widgetDiscovery, withNativeCapture };
2261
+ export { ANNOTATION_PALETTE, AttachmentQueue, Breadcrumbs, BugReportSheet, CrashQueue, DEFAULT_STYLE, DEFAULT_TPK_THEME, ExpoStorage, FloatingFeedbackButton, GeneralFeedbackDialog, INTERACTION_NAV_WEIGHT, InviteCodeScreen, MIN_INTERACTIONS_PER_ACTIVE_MINUTE, MyBugsSheet, NotificationsSheet, ONBOARDING_DONE_STORAGE_KEY, SCREENSHOT_CONSENT_STORAGE_KEY, ScreenRecorder, ScreenshotAnnotationEditor, SessionDetailsSheet, SessionEndDialog, SubmitQueue, TaskAnnotationRegistry, TesterDashboard, TesterPayKitProvider, TesterPayKitWrapper, TpkAnnotated, TpkAnnotationOverlay, TpkExpo, TpkIcon, TpkIconsProvider, TpkOnboarding, TpkSensitive, TpkTalker, TpkThemeProvider, TpkWelcomeSheet, VoiceBugInputSheet, VoiceNoteRecorder, WELCOME_ACK_STORAGE_KEY, WIDGET_TOUR_SEEN_STORAGE_KEY, WidgetDiscovery, WidgetTour, annotations, applySensitiveRedaction, arrowHeadPoints, beginNativeCapture, bugSeverityLabel, bugStatusStyle, canSubmitBugReportDraft, captureView, classificationToBugType, createBugReportDraft, deriveTaskProgress, emptyAnnotationDoc, endNativeCapture, engagedMinutes, extractVoiceBug, findAssignmentForTask, getAppSnapshot, getDeviceSnapshot, getEventCounts, getNativeCaptureMode, getSessionStats, getUniqueScreens, hasCompletedOnboarding, hasScreenshotConsent, hasSeenWidgetTour, hasWelcomeBriefBeenSeen, installCrashHandler, installNetworkCapture, markOnboardingComplete, markWelcomeBriefAsSeen, markWidgetTourSeen, mockBugFixes, mockBuildInfo, mockFocusAreas, mockWelcomeBrief, mockWelcomeTasks, mockWidgets, parseVersionRange, pathToSvgD, resetOnboardingState, resetWelcomeBriefAck, resetWidgetTourSeen, simplifyPath, submitBugReportDraft, subscribeNativeCaptureMode, uploadScreenshotAttachment, useShake, useTaskAnnotation, useTesterPayKit, useTpkDashboard, useTpkEarnings, useTpkTheme, versionSatisfies, widgetDiscovery, withNativeCapture };
2262
+ export type { AnnotatedElementInfo, AnnotatedScreenshotResult, AnnotationColor, AnnotationEvent, AnnotationEventType, AnnotationInteraction, AnnotationListener, AnnotationShape, AnnotationStyle, AnnotationTool, AppSnapshot, ArrowShape, AttachmentQueueFlushOptions, BlurShape, Breadcrumb, BugFix, BugReportDraft, BugReportSheetProps, BuildInfo, CachedCrash, CaptureViewOptions, CircleShape, CompletionTrigger, CrashHandlerOptions, CrashInfo, CreateBugReportDraftInput, DashboardData, DeviceSnapshot, DiscoverOptions, EarningsData, EngagedMinutesInput, FeedbackCategory, FloatingFeedbackButtonProps, FlushTelemetryResult, FocusArea, GeneralFeedbackDialogProps, InstallNetworkCaptureOptions, InteractionBounds, InteractionType, InviteCodeScreenProps, MyBugsSheetProps, NotificationsSheetProps, OnboardingStorage, PathShape, PeriodFilter, Point, QueueFlushOptions, QueueFlushResult, RecordInteractionDetails, RecordingOptions, RecordingResult, RecordingState, RectShape, RegisterAnnotationInput, ReleaseNote, ScreenshotAnnotationEditorProps, ScreenshotResult, SensitiveMaskingMode, SessionDetailsSheetProps, SessionEndDialogProps, SessionEndStats, SessionStatsSnapshot, StatusStyle, SubmitBugInput, TaskAnnotation, TaskInteractionSummary, TaskProgress, TesterDashboardProps, TesterPayKitContextValue, TesterPayKitProviderProps, TesterPayKitWrapperProps, TextShape, TpkAnnotatedProps, TpkAnnotationOverlayHandle, TpkAnnotationOverlayProps, TpkExpoConfig, TpkIconName, TpkIconOverrideMap, TpkIconProps, TpkLogEntry, TpkLogLevel, TpkOnboardingProps, TpkSensitiveProps, TpkStorage, TpkTalkerListener, TpkTalkerOptions, TpkTheme, TpkWelcomeSheetProps, UseDashboardResult, UseEarningsResult, UseShakeOptions, UseTaskAnnotationOptions, UseTaskAnnotationResult, VersionRange, VoiceBugInputSheetProps, VoiceBugStrings, VoiceClassification, VoiceExtractAudio, VoiceExtractResult, VoiceNoteFileReader, VoiceNoteRecorderLike, VoiceNoteRecorderOptions, VoiceNoteResult, VoiceNoteState, WelcomeAckStorage, WelcomeBrief, WelcomeTask, WidgetInfo, WidgetTourProps };
package/dist/index.d.ts CHANGED
@@ -112,7 +112,10 @@ interface CrashInfo {
112
112
  declare function installCrashHandler(options: CrashHandlerOptions): () => void;
113
113
 
114
114
  interface CachedCrash {
115
- /** Local id for review / retry bookkeeping. */
115
+ /**
116
+ * Local id for review / retry bookkeeping. Also the idempotency key of
117
+ * every upload attempt, so the server drops a repeated send.
118
+ */
116
119
  id: string;
117
120
  /** ISO timestamp when the crash was captured. */
118
121
  capturedAt: string;
@@ -121,12 +124,14 @@ interface CachedCrash {
121
124
  }
122
125
  declare class CrashQueue {
123
126
  private readonly storage;
127
+ private tail;
124
128
  constructor(storage: TpkStorage);
125
129
  enqueue(info: CrashInfo): Promise<CachedCrash>;
126
130
  pending(): Promise<CachedCrash[]>;
127
131
  size(): Promise<number>;
128
132
  remove(id: string): Promise<void>;
129
133
  private read;
134
+ private exclusive;
130
135
  }
131
136
 
132
137
  interface QueuedEntry {
@@ -610,6 +615,9 @@ declare class TpkExpo {
610
615
  private readonly sessionEvents;
611
616
  private uninstallDurableSync;
612
617
  private uninstallTaskBinding;
618
+ private readonly capturedCrashes;
619
+ private readonly submittedCrashes;
620
+ private crashFlush;
613
621
  private constructor();
614
622
  /** Active server session id. Updated by init or rotate. Used to route telemetry. */
615
623
  sessionId: string;
@@ -726,8 +734,12 @@ declare class TpkExpo {
726
734
  /**
727
735
  * Try uploading cached crashes. Failed uploads remain cached so a
728
736
  * future launch can surface them for review or retry.
737
+ *
738
+ * Flushes run one after another: two at once both read the same
739
+ * cached crash and both sent it.
729
740
  */
730
741
  flushCachedCrashes(): Promise<number>;
742
+ private drainCrashQueue;
731
743
  /** Flush pending session events + breadcrumbs to timeline endpoints. */
732
744
  flushTelemetry(): Promise<FlushTelemetryResult>;
733
745
  /** End the active server-side tester session. */
@@ -1016,6 +1028,11 @@ interface BugReportSheetProps {
1016
1028
  * VoiceBugInputSheet extraction (title / description / expected
1017
1029
  * / actual / frequency / category). */
1018
1030
  initialDraft?: Partial<BugReportDraft>;
1031
+ /** Step the wizard opens on (default 0). The voice flow passes 4 so
1032
+ * the tester lands on Review with the extracted fields and can
1033
+ * submit right away; Back still walks through every step. Mirrors
1034
+ * Flutter's `BugReportDialog(initialStep: 4)`. */
1035
+ initialStep?: StepIndex;
1019
1036
  /** Max attachments + total size, mirrors Flutter's safeguards. */
1020
1037
  maxAttachments?: number;
1021
1038
  maxTotalSizeMB?: number;
@@ -1024,7 +1041,8 @@ interface BugReportSheetProps {
1024
1041
  declare function createBugReportDraft(input?: CreateBugReportDraftInput): BugReportDraft;
1025
1042
  declare function canSubmitBugReportDraft(draft: BugReportDraft): boolean;
1026
1043
  declare function submitBugReportDraft(tpk: Pick<TpkExpo, 'submitBug' | 'attachToBugReport'>, draft: BugReportDraft): Promise<SubmitBugResult>;
1027
- declare function BugReportSheet({ visible, tpk, currentScreen, captureRootRef, autoCaptureOnOpen, onOpenVoiceBug, onClose, onSubmitted, onError, defaultSeverity, initialDraft: initialDraftPatch, maxAttachments, maxTotalSizeMB, style, }: BugReportSheetProps): React.ReactElement;
1044
+ type StepIndex = 0 | 1 | 2 | 3 | 4;
1045
+ declare function BugReportSheet({ visible, tpk, currentScreen, captureRootRef, autoCaptureOnOpen, onOpenVoiceBug, onClose, onSubmitted, onError, defaultSeverity, initialDraft: initialDraftPatch, initialStep, maxAttachments, maxTotalSizeMB, style, }: BugReportSheetProps): React.ReactElement;
1028
1046
 
1029
1047
  interface DeviceSnapshot {
1030
1048
  platform: 'ios' | 'android' | 'web' | 'macos' | 'windows';
@@ -2240,4 +2258,5 @@ declare function useTpkEarnings(tpk: TpkExpo | null, options?: {
2240
2258
  payoutLimit?: number;
2241
2259
  }): UseEarningsResult;
2242
2260
 
2243
- export { ANNOTATION_PALETTE, type AnnotatedElementInfo, type AnnotatedScreenshotResult, type AnnotationColor, type AnnotationEvent, type AnnotationEventType, type AnnotationInteraction, type AnnotationListener, type AnnotationShape, type AnnotationStyle, type AnnotationTool, type AppSnapshot, type ArrowShape, AttachmentQueue, type AttachmentQueueFlushOptions, type BlurShape, type Breadcrumb, Breadcrumbs, type BugFix, type BugReportDraft, BugReportSheet, type BugReportSheetProps, type BuildInfo, type CachedCrash, type CaptureViewOptions, type CircleShape, type CompletionTrigger, type CrashHandlerOptions, type CrashInfo, CrashQueue, type CreateBugReportDraftInput, DEFAULT_STYLE, DEFAULT_TPK_THEME, type DashboardData, type DeviceSnapshot, type DiscoverOptions, type EarningsData, type EngagedMinutesInput, ExpoStorage, type FeedbackCategory, FloatingFeedbackButton, type FloatingFeedbackButtonProps, type FlushTelemetryResult, type FocusArea, GeneralFeedbackDialog, type GeneralFeedbackDialogProps, INTERACTION_NAV_WEIGHT, type InstallNetworkCaptureOptions, type InteractionBounds, type InteractionType, InviteCodeScreen, type InviteCodeScreenProps, MIN_INTERACTIONS_PER_ACTIVE_MINUTE, MyBugsSheet, type MyBugsSheetProps, NotificationsSheet, type NotificationsSheetProps, ONBOARDING_DONE_STORAGE_KEY, type OnboardingStorage, type PathShape, type PeriodFilter, type Point, type QueueFlushOptions, type QueueFlushResult, type RecordInteractionDetails, type RecordingOptions, type RecordingResult, type RecordingState, type RectShape, type RegisterAnnotationInput, type ReleaseNote, SCREENSHOT_CONSENT_STORAGE_KEY, ScreenRecorder, ScreenshotAnnotationEditor, type ScreenshotAnnotationEditorProps, type ScreenshotResult, type SensitiveMaskingMode, SessionDetailsSheet, type SessionDetailsSheetProps, SessionEndDialog, type SessionEndDialogProps, type SessionEndStats, type SessionStatsSnapshot, type StatusStyle, type SubmitBugInput, SubmitQueue, type TaskAnnotation, TaskAnnotationRegistry, type TaskInteractionSummary, type TaskProgress, TesterDashboard, type TesterDashboardProps, type TesterPayKitContextValue, TesterPayKitProvider, type TesterPayKitProviderProps, TesterPayKitWrapper, type TesterPayKitWrapperProps, type TextShape, TpkAnnotated, type TpkAnnotatedProps, TpkAnnotationOverlay, type TpkAnnotationOverlayHandle, type TpkAnnotationOverlayProps, TpkExpo, type TpkExpoConfig, TpkIcon, type TpkIconName, type TpkIconOverrideMap, type TpkIconProps, TpkIconsProvider, type TpkLogEntry, type TpkLogLevel, TpkOnboarding, type TpkOnboardingProps, TpkSensitive, type TpkSensitiveProps, type TpkStorage, TpkTalker, type TpkTalkerListener, type TpkTalkerOptions, type TpkTheme, TpkThemeProvider, TpkWelcomeSheet, type TpkWelcomeSheetProps, type UseDashboardResult, type UseEarningsResult, type UseShakeOptions, type UseTaskAnnotationOptions, type UseTaskAnnotationResult, type VersionRange, VoiceBugInputSheet, type VoiceBugInputSheetProps, type VoiceBugStrings, type VoiceClassification, type VoiceExtractAudio, type VoiceExtractResult, type VoiceNoteFileReader, VoiceNoteRecorder, type VoiceNoteRecorderLike, type VoiceNoteRecorderOptions, type VoiceNoteResult, type VoiceNoteState, WELCOME_ACK_STORAGE_KEY, WIDGET_TOUR_SEEN_STORAGE_KEY, type WelcomeAckStorage, type WelcomeBrief, type WelcomeTask, WidgetDiscovery, type WidgetInfo, WidgetTour, type WidgetTourProps, annotations, applySensitiveRedaction, arrowHeadPoints, beginNativeCapture, bugSeverityLabel, bugStatusStyle, canSubmitBugReportDraft, captureView, classificationToBugType, createBugReportDraft, deriveTaskProgress, emptyAnnotationDoc, endNativeCapture, engagedMinutes, extractVoiceBug, findAssignmentForTask, getAppSnapshot, getDeviceSnapshot, getEventCounts, getNativeCaptureMode, getSessionStats, getUniqueScreens, hasCompletedOnboarding, hasScreenshotConsent, hasSeenWidgetTour, hasWelcomeBriefBeenSeen, installCrashHandler, installNetworkCapture, markOnboardingComplete, markWelcomeBriefAsSeen, markWidgetTourSeen, mockBugFixes, mockBuildInfo, mockFocusAreas, mockWelcomeBrief, mockWelcomeTasks, mockWidgets, parseVersionRange, pathToSvgD, resetOnboardingState, resetWelcomeBriefAck, resetWidgetTourSeen, simplifyPath, submitBugReportDraft, subscribeNativeCaptureMode, uploadScreenshotAttachment, useShake, useTaskAnnotation, useTesterPayKit, useTpkDashboard, useTpkEarnings, useTpkTheme, versionSatisfies, widgetDiscovery, withNativeCapture };
2261
+ export { ANNOTATION_PALETTE, AttachmentQueue, Breadcrumbs, BugReportSheet, CrashQueue, DEFAULT_STYLE, DEFAULT_TPK_THEME, ExpoStorage, FloatingFeedbackButton, GeneralFeedbackDialog, INTERACTION_NAV_WEIGHT, InviteCodeScreen, MIN_INTERACTIONS_PER_ACTIVE_MINUTE, MyBugsSheet, NotificationsSheet, ONBOARDING_DONE_STORAGE_KEY, SCREENSHOT_CONSENT_STORAGE_KEY, ScreenRecorder, ScreenshotAnnotationEditor, SessionDetailsSheet, SessionEndDialog, SubmitQueue, TaskAnnotationRegistry, TesterDashboard, TesterPayKitProvider, TesterPayKitWrapper, TpkAnnotated, TpkAnnotationOverlay, TpkExpo, TpkIcon, TpkIconsProvider, TpkOnboarding, TpkSensitive, TpkTalker, TpkThemeProvider, TpkWelcomeSheet, VoiceBugInputSheet, VoiceNoteRecorder, WELCOME_ACK_STORAGE_KEY, WIDGET_TOUR_SEEN_STORAGE_KEY, WidgetDiscovery, WidgetTour, annotations, applySensitiveRedaction, arrowHeadPoints, beginNativeCapture, bugSeverityLabel, bugStatusStyle, canSubmitBugReportDraft, captureView, classificationToBugType, createBugReportDraft, deriveTaskProgress, emptyAnnotationDoc, endNativeCapture, engagedMinutes, extractVoiceBug, findAssignmentForTask, getAppSnapshot, getDeviceSnapshot, getEventCounts, getNativeCaptureMode, getSessionStats, getUniqueScreens, hasCompletedOnboarding, hasScreenshotConsent, hasSeenWidgetTour, hasWelcomeBriefBeenSeen, installCrashHandler, installNetworkCapture, markOnboardingComplete, markWelcomeBriefAsSeen, markWidgetTourSeen, mockBugFixes, mockBuildInfo, mockFocusAreas, mockWelcomeBrief, mockWelcomeTasks, mockWidgets, parseVersionRange, pathToSvgD, resetOnboardingState, resetWelcomeBriefAck, resetWidgetTourSeen, simplifyPath, submitBugReportDraft, subscribeNativeCaptureMode, uploadScreenshotAttachment, useShake, useTaskAnnotation, useTesterPayKit, useTpkDashboard, useTpkEarnings, useTpkTheme, versionSatisfies, widgetDiscovery, withNativeCapture };
2262
+ export type { AnnotatedElementInfo, AnnotatedScreenshotResult, AnnotationColor, AnnotationEvent, AnnotationEventType, AnnotationInteraction, AnnotationListener, AnnotationShape, AnnotationStyle, AnnotationTool, AppSnapshot, ArrowShape, AttachmentQueueFlushOptions, BlurShape, Breadcrumb, BugFix, BugReportDraft, BugReportSheetProps, BuildInfo, CachedCrash, CaptureViewOptions, CircleShape, CompletionTrigger, CrashHandlerOptions, CrashInfo, CreateBugReportDraftInput, DashboardData, DeviceSnapshot, DiscoverOptions, EarningsData, EngagedMinutesInput, FeedbackCategory, FloatingFeedbackButtonProps, FlushTelemetryResult, FocusArea, GeneralFeedbackDialogProps, InstallNetworkCaptureOptions, InteractionBounds, InteractionType, InviteCodeScreenProps, MyBugsSheetProps, NotificationsSheetProps, OnboardingStorage, PathShape, PeriodFilter, Point, QueueFlushOptions, QueueFlushResult, RecordInteractionDetails, RecordingOptions, RecordingResult, RecordingState, RectShape, RegisterAnnotationInput, ReleaseNote, ScreenshotAnnotationEditorProps, ScreenshotResult, SensitiveMaskingMode, SessionDetailsSheetProps, SessionEndDialogProps, SessionEndStats, SessionStatsSnapshot, StatusStyle, SubmitBugInput, TaskAnnotation, TaskInteractionSummary, TaskProgress, TesterDashboardProps, TesterPayKitContextValue, TesterPayKitProviderProps, TesterPayKitWrapperProps, TextShape, TpkAnnotatedProps, TpkAnnotationOverlayHandle, TpkAnnotationOverlayProps, TpkExpoConfig, TpkIconName, TpkIconOverrideMap, TpkIconProps, TpkLogEntry, TpkLogLevel, TpkOnboardingProps, TpkSensitiveProps, TpkStorage, TpkTalkerListener, TpkTalkerOptions, TpkTheme, TpkWelcomeSheetProps, UseDashboardResult, UseEarningsResult, UseShakeOptions, UseTaskAnnotationOptions, UseTaskAnnotationResult, VersionRange, VoiceBugInputSheetProps, VoiceBugStrings, VoiceClassification, VoiceExtractAudio, VoiceExtractResult, VoiceNoteFileReader, VoiceNoteRecorderLike, VoiceNoteRecorderOptions, VoiceNoteResult, VoiceNoteState, WelcomeAckStorage, WelcomeBrief, WelcomeTask, WidgetInfo, WidgetTourProps };