@sentry/react-native 6.13.0 → 7.0.0-alpha.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.
Files changed (188) hide show
  1. package/RNSentry.podspec +1 -1
  2. package/android/build.gradle +1 -1
  3. package/android/src/main/java/io/sentry/react/RNSentryModuleImpl.java +11 -14
  4. package/android/src/main/java/io/sentry/react/RNSentryVersion.java +1 -1
  5. package/dist/js/client.d.ts +12 -0
  6. package/dist/js/client.d.ts.map +1 -1
  7. package/dist/js/client.js +24 -1
  8. package/dist/js/client.js.map +1 -1
  9. package/dist/js/feedback/FeedbackWidget.d.ts +1 -1
  10. package/dist/js/feedback/FeedbackWidget.d.ts.map +1 -1
  11. package/dist/js/feedback/FeedbackWidget.js +18 -17
  12. package/dist/js/feedback/FeedbackWidget.js.map +1 -1
  13. package/dist/js/feedback/FeedbackWidget.types.d.ts +29 -29
  14. package/dist/js/feedback/FeedbackWidget.types.d.ts.map +1 -1
  15. package/dist/js/feedback/FeedbackWidget.types.js.map +1 -1
  16. package/dist/js/feedback/FeedbackWidgetManager.d.ts.map +1 -1
  17. package/dist/js/feedback/FeedbackWidgetManager.js +10 -6
  18. package/dist/js/feedback/FeedbackWidgetManager.js.map +1 -1
  19. package/dist/js/feedback/defaults.d.ts +1 -1
  20. package/dist/js/feedback/defaults.d.ts.map +1 -1
  21. package/dist/js/feedback/defaults.js.map +1 -1
  22. package/dist/js/feedback/integration.d.ts +1 -1
  23. package/dist/js/feedback/integration.d.ts.map +1 -1
  24. package/dist/js/feedback/integration.js.map +1 -1
  25. package/dist/js/feedback/utils.d.ts +5 -0
  26. package/dist/js/feedback/utils.d.ts.map +1 -1
  27. package/dist/js/feedback/utils.js +10 -1
  28. package/dist/js/feedback/utils.js.map +1 -1
  29. package/dist/js/index.d.ts +2 -2
  30. package/dist/js/index.d.ts.map +1 -1
  31. package/dist/js/index.js +1 -1
  32. package/dist/js/index.js.map +1 -1
  33. package/dist/js/integrations/debugsymbolicator.js +2 -1
  34. package/dist/js/integrations/debugsymbolicator.js.map +1 -1
  35. package/dist/js/integrations/debugsymbolicatorutils.d.ts.map +1 -1
  36. package/dist/js/integrations/debugsymbolicatorutils.js +12 -2
  37. package/dist/js/integrations/debugsymbolicatorutils.js.map +1 -1
  38. package/dist/js/integrations/default.d.ts.map +1 -1
  39. package/dist/js/integrations/default.js +9 -5
  40. package/dist/js/integrations/default.js.map +1 -1
  41. package/dist/js/integrations/expocontext.d.ts +18 -0
  42. package/dist/js/integrations/expocontext.d.ts.map +1 -1
  43. package/dist/js/integrations/expocontext.js +20 -12
  44. package/dist/js/integrations/expocontext.js.map +1 -1
  45. package/dist/js/integrations/nativelinkederrors.js +4 -3
  46. package/dist/js/integrations/nativelinkederrors.js.map +1 -1
  47. package/dist/js/integrations/reactnativeerrorhandlers.d.ts.map +1 -1
  48. package/dist/js/integrations/reactnativeerrorhandlers.js +2 -1
  49. package/dist/js/integrations/reactnativeerrorhandlers.js.map +1 -1
  50. package/dist/js/integrations/screenshot.js +3 -3
  51. package/dist/js/integrations/screenshot.js.map +1 -1
  52. package/dist/js/integrations/spotlight.d.ts.map +1 -1
  53. package/dist/js/integrations/spotlight.js +8 -4
  54. package/dist/js/integrations/spotlight.js.map +1 -1
  55. package/dist/js/integrations/viewhierarchy.js +2 -1
  56. package/dist/js/integrations/viewhierarchy.js.map +1 -1
  57. package/dist/js/options.d.ts +8 -1
  58. package/dist/js/options.d.ts.map +1 -1
  59. package/dist/js/options.js.map +1 -1
  60. package/dist/js/profiling/cache.d.ts +1 -1
  61. package/dist/js/profiling/convertHermesProfile.d.ts.map +1 -1
  62. package/dist/js/profiling/convertHermesProfile.js +18 -5
  63. package/dist/js/profiling/convertHermesProfile.js.map +1 -1
  64. package/dist/js/profiling/debugid.d.ts.map +1 -1
  65. package/dist/js/profiling/debugid.js +9 -1
  66. package/dist/js/profiling/debugid.js.map +1 -1
  67. package/dist/js/profiling/hermes.d.ts +1 -1
  68. package/dist/js/profiling/hermes.d.ts.map +1 -1
  69. package/dist/js/profiling/integration.js +2 -1
  70. package/dist/js/profiling/integration.js.map +1 -1
  71. package/dist/js/profiling/utils.d.ts.map +1 -1
  72. package/dist/js/profiling/utils.js +15 -17
  73. package/dist/js/profiling/utils.js.map +1 -1
  74. package/dist/js/replay/CustomMask.js +1 -1
  75. package/dist/js/replay/CustomMask.js.map +1 -1
  76. package/dist/js/replay/mobilereplay.js +2 -1
  77. package/dist/js/replay/mobilereplay.js.map +1 -1
  78. package/dist/js/scopeSync.d.ts.map +1 -1
  79. package/dist/js/scopeSync.js +7 -1
  80. package/dist/js/scopeSync.js.map +1 -1
  81. package/dist/js/sdk.d.ts.map +1 -1
  82. package/dist/js/sdk.js +2 -2
  83. package/dist/js/sdk.js.map +1 -1
  84. package/dist/js/tools/ModulesCollector.js +1 -0
  85. package/dist/js/tools/ModulesCollector.js.map +1 -1
  86. package/dist/js/tools/collectModules.js +1 -0
  87. package/dist/js/tools/collectModules.js.map +1 -1
  88. package/dist/js/tools/enableLogger.js +1 -0
  89. package/dist/js/tools/enableLogger.js.map +1 -1
  90. package/dist/js/tools/metroMiddleware.js +2 -1
  91. package/dist/js/tools/metroMiddleware.js.map +1 -1
  92. package/dist/js/tools/metroconfig.js +5 -3
  93. package/dist/js/tools/metroconfig.js.map +1 -1
  94. package/dist/js/tools/sentryBabelTransformer.js +1 -0
  95. package/dist/js/tools/sentryBabelTransformer.js.map +1 -1
  96. package/dist/js/tools/sentryBabelTransformerUtils.js +1 -0
  97. package/dist/js/tools/sentryBabelTransformerUtils.js.map +1 -1
  98. package/dist/js/tools/sentryMetroSerializer.js +1 -0
  99. package/dist/js/tools/sentryMetroSerializer.js.map +1 -1
  100. package/dist/js/tools/utils.js +1 -0
  101. package/dist/js/tools/utils.js.map +1 -1
  102. package/dist/js/tools/vendor/expo/expoconfig.js +1 -0
  103. package/dist/js/tools/vendor/expo/expoconfig.js.map +1 -1
  104. package/dist/js/tools/vendor/metro/metroBabelTransformer.js +1 -0
  105. package/dist/js/tools/vendor/metro/metroBabelTransformer.js.map +1 -1
  106. package/dist/js/tools/vendor/metro/utils.js +1 -0
  107. package/dist/js/tools/vendor/metro/utils.js.map +1 -1
  108. package/dist/js/touchevents.d.ts.map +1 -1
  109. package/dist/js/touchevents.js +4 -0
  110. package/dist/js/touchevents.js.map +1 -1
  111. package/dist/js/tracing/integrations/appStart.d.ts +1 -1
  112. package/dist/js/tracing/integrations/appStart.d.ts.map +1 -1
  113. package/dist/js/tracing/integrations/appStart.js +9 -2
  114. package/dist/js/tracing/integrations/appStart.js.map +1 -1
  115. package/dist/js/tracing/integrations/nativeFrames.js.map +1 -1
  116. package/dist/js/tracing/integrations/stalltracking.d.ts +1 -1
  117. package/dist/js/tracing/integrations/stalltracking.d.ts.map +1 -1
  118. package/dist/js/tracing/integrations/timeToDisplayIntegration.d.ts.map +1 -1
  119. package/dist/js/tracing/integrations/timeToDisplayIntegration.js +14 -10
  120. package/dist/js/tracing/integrations/timeToDisplayIntegration.js.map +1 -1
  121. package/dist/js/tracing/onSpanEndUtils.d.ts +1 -1
  122. package/dist/js/tracing/onSpanEndUtils.d.ts.map +1 -1
  123. package/dist/js/tracing/onSpanEndUtils.js +2 -1
  124. package/dist/js/tracing/onSpanEndUtils.js.map +1 -1
  125. package/dist/js/tracing/reactnativenavigation.js +1 -1
  126. package/dist/js/tracing/reactnativenavigation.js.map +1 -1
  127. package/dist/js/tracing/reactnativeprofiler.d.ts +3 -1
  128. package/dist/js/tracing/reactnativeprofiler.d.ts.map +1 -1
  129. package/dist/js/tracing/reactnativeprofiler.js +2 -1
  130. package/dist/js/tracing/reactnativeprofiler.js.map +1 -1
  131. package/dist/js/tracing/reactnativetracing.d.ts +4 -1
  132. package/dist/js/tracing/reactnativetracing.d.ts.map +1 -1
  133. package/dist/js/tracing/reactnativetracing.js +5 -1
  134. package/dist/js/tracing/reactnativetracing.js.map +1 -1
  135. package/dist/js/tracing/reactnavigation.d.ts.map +1 -1
  136. package/dist/js/tracing/reactnavigation.js +5 -4
  137. package/dist/js/tracing/reactnavigation.js.map +1 -1
  138. package/dist/js/tracing/span.js +3 -3
  139. package/dist/js/tracing/span.js.map +1 -1
  140. package/dist/js/tracing/timeToDisplayFallback.d.ts +1 -1
  141. package/dist/js/tracing/timeToDisplayFallback.d.ts.map +1 -1
  142. package/dist/js/tracing/timeToDisplayFallback.js.map +1 -1
  143. package/dist/js/transports/encodePolyfill.d.ts.map +1 -1
  144. package/dist/js/transports/encodePolyfill.js +5 -5
  145. package/dist/js/transports/encodePolyfill.js.map +1 -1
  146. package/dist/js/utils/AsyncExpiringMap.d.ts.map +1 -1
  147. package/dist/js/utils/AsyncExpiringMap.js +8 -4
  148. package/dist/js/utils/AsyncExpiringMap.js.map +1 -1
  149. package/dist/js/utils/envelope.d.ts.map +1 -1
  150. package/dist/js/utils/envelope.js +1 -2
  151. package/dist/js/utils/envelope.js.map +1 -1
  152. package/dist/js/utils/environment.d.ts.map +1 -1
  153. package/dist/js/utils/environment.js +5 -6
  154. package/dist/js/utils/environment.js.map +1 -1
  155. package/dist/js/utils/rnlibraries.d.ts.map +1 -1
  156. package/dist/js/utils/rnlibraries.js +24 -0
  157. package/dist/js/utils/rnlibraries.js.map +1 -1
  158. package/dist/js/vendor/base64-js/fromByteArray.d.ts.map +1 -1
  159. package/dist/js/vendor/base64-js/fromByteArray.js +6 -0
  160. package/dist/js/vendor/base64-js/fromByteArray.js.map +1 -1
  161. package/dist/js/version.d.ts +1 -1
  162. package/dist/js/version.d.ts.map +1 -1
  163. package/dist/js/version.js +1 -1
  164. package/dist/js/version.js.map +1 -1
  165. package/dist/js/wrapper.js +3 -2
  166. package/dist/js/wrapper.js.map +1 -1
  167. package/ios/RNSentryVersion.m +1 -1
  168. package/package.json +12 -13
  169. package/plugin/build/withSentry.js +1 -1
  170. package/plugin/build/withSentryAndroidGradlePlugin.js +1 -1
  171. package/ts3.8/dist/js/client.d.ts +12 -0
  172. package/ts3.8/dist/js/feedback/FeedbackWidget.d.ts +1 -1
  173. package/ts3.8/dist/js/feedback/FeedbackWidget.types.d.ts +29 -29
  174. package/ts3.8/dist/js/feedback/defaults.d.ts +1 -1
  175. package/ts3.8/dist/js/feedback/integration.d.ts +1 -1
  176. package/ts3.8/dist/js/feedback/utils.d.ts +5 -0
  177. package/ts3.8/dist/js/index.d.ts +2 -2
  178. package/ts3.8/dist/js/integrations/expocontext.d.ts +18 -0
  179. package/ts3.8/dist/js/options.d.ts +8 -1
  180. package/ts3.8/dist/js/profiling/cache.d.ts +1 -1
  181. package/ts3.8/dist/js/profiling/hermes.d.ts +1 -1
  182. package/ts3.8/dist/js/tracing/integrations/appStart.d.ts +1 -1
  183. package/ts3.8/dist/js/tracing/integrations/stalltracking.d.ts +1 -1
  184. package/ts3.8/dist/js/tracing/onSpanEndUtils.d.ts +1 -1
  185. package/ts3.8/dist/js/tracing/reactnativeprofiler.d.ts +3 -1
  186. package/ts3.8/dist/js/tracing/reactnativetracing.d.ts +4 -1
  187. package/ts3.8/dist/js/tracing/timeToDisplayFallback.d.ts +1 -1
  188. package/ts3.8/dist/js/version.d.ts +1 -1
@@ -8,7 +8,7 @@ const withSentryAndroidGradlePlugin_1 = require("./withSentryAndroidGradlePlugin
8
8
  const withSentryIOS_1 = require("./withSentryIOS");
9
9
  const withSentryPlugin = (config, props) => {
10
10
  const sentryProperties = getSentryProperties(props);
11
- if (props && props.authToken) {
11
+ if (props?.authToken) {
12
12
  // If not removed, the plugin config with the authToken will be written to the application package
13
13
  delete props.authToken;
14
14
  }
@@ -13,7 +13,7 @@ function withSentryAndroidGradlePlugin(config, { includeProguardMapping = true,
13
13
  const withSentryProjectBuildGradle = (config) => {
14
14
  return (0, config_plugins_1.withProjectBuildGradle)(config, (projectBuildGradle) => {
15
15
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
16
- if (!projectBuildGradle.modResults || !projectBuildGradle.modResults.contents) {
16
+ if (!projectBuildGradle.modResults?.contents) {
17
17
  (0, utils_1.warnOnce)('android/build.gradle content is missing or undefined.');
18
18
  return config;
19
19
  }
@@ -44,6 +44,18 @@ export declare class ReactNativeClient extends BaseClient<ReactNativeClientOptio
44
44
  * @inheritDoc
45
45
  */
46
46
  init(): void;
47
+ /**
48
+ * Register a hook on this client.
49
+ *
50
+ * (Generic method signature to allow for custom React Native Client events.)
51
+ */
52
+ on(hook: string, callback: unknown): () => void;
53
+ /**
54
+ * Emit a hook that was previously registered via `on()`.
55
+ *
56
+ * (Generic method signature to allow for custom React Native Client events.)
57
+ */
58
+ emit(hook: string, ...rest: unknown[]): void;
47
59
  /**
48
60
  * Starts native client with dsn and options
49
61
  */
@@ -5,7 +5,7 @@ import type { FeedbackWidgetProps, FeedbackWidgetState } from './FeedbackWidget.
5
5
  * Implements a feedback form screen that sends feedback to Sentry using Sentry.captureFeedback.
6
6
  */
7
7
  export declare class FeedbackWidget extends React.Component<FeedbackWidgetProps, FeedbackWidgetState> {
8
- static defaultProps: Partial<FeedbackWidgetProps>;
8
+ static defaultProps: FeedbackWidgetProps;
9
9
  private static _savedState;
10
10
  private _didSubmitForm;
11
11
  constructor(props: FeedbackWidgetProps);
@@ -15,32 +15,32 @@ export interface FeedbackGeneralConfiguration {
15
15
  *
16
16
  * @default true
17
17
  */
18
- showBranding?: boolean;
18
+ showBranding: boolean;
19
19
  /**
20
20
  * Should the email field be required?
21
21
  */
22
- isEmailRequired?: boolean;
22
+ isEmailRequired: boolean;
23
23
  /**
24
24
  * Should the email field be validated?
25
25
  */
26
- shouldValidateEmail?: boolean;
26
+ shouldValidateEmail: boolean;
27
27
  /**
28
28
  * Should the name field be required?
29
29
  */
30
- isNameRequired?: boolean;
30
+ isNameRequired: boolean;
31
31
  /**
32
32
  * Should the email input field be visible? Note: email will still be collected if set via `Sentry.setUser()`
33
33
  */
34
- showEmail?: boolean;
34
+ showEmail: boolean;
35
35
  /**
36
36
  * Should the name input field be visible? Note: name will still be collected if set via `Sentry.setUser()`
37
37
  */
38
- showName?: boolean;
38
+ showName: boolean;
39
39
  /**
40
40
  * This flag determines whether the "Add Screenshot" button is displayed
41
41
  * @default false
42
42
  */
43
- enableScreenshot?: boolean;
43
+ enableScreenshot: boolean;
44
44
  /**
45
45
  * Fill in email/name input fields with Sentry user context if it exists.
46
46
  * The value of the email/name keys represent the properties of your user context.
@@ -57,27 +57,27 @@ export interface FeedbackTextConfiguration {
57
57
  /**
58
58
  * The label for the Feedback form cancel button that closes dialog
59
59
  */
60
- cancelButtonLabel?: string;
60
+ cancelButtonLabel: string;
61
61
  /**
62
62
  * The label for the Feedback form submit button that sends feedback
63
63
  */
64
- submitButtonLabel?: string;
64
+ submitButtonLabel: string;
65
65
  /**
66
66
  * The title of the Feedback form
67
67
  */
68
- formTitle?: string;
68
+ formTitle: string;
69
69
  /**
70
70
  * Label for the email input
71
71
  */
72
- emailLabel?: string;
72
+ emailLabel: string;
73
73
  /**
74
74
  * Placeholder text for Feedback email input
75
75
  */
76
- emailPlaceholder?: string;
76
+ emailPlaceholder: string;
77
77
  /**
78
78
  * Label for the message input
79
79
  */
80
- messageLabel?: string;
80
+ messageLabel: string;
81
81
  /**
82
82
  * Placeholder text for Feedback message input
83
83
  */
@@ -85,43 +85,43 @@ export interface FeedbackTextConfiguration {
85
85
  /**
86
86
  * Label for the name input
87
87
  */
88
- nameLabel?: string;
88
+ nameLabel: string;
89
89
  /**
90
90
  * Message after feedback was sent successfully
91
91
  */
92
- successMessageText?: string;
92
+ successMessageText: string;
93
93
  /**
94
94
  * Placeholder text for Feedback name input
95
95
  */
96
- namePlaceholder?: string;
96
+ namePlaceholder: string;
97
97
  /**
98
98
  * Text which indicates that a field is required
99
99
  */
100
- isRequiredLabel?: string;
100
+ isRequiredLabel: string;
101
101
  /**
102
102
  * The label for the button that adds a screenshot and renders the image editor
103
103
  */
104
- addScreenshotButtonLabel?: string;
104
+ addScreenshotButtonLabel: string;
105
105
  /**
106
106
  * The label for the button that removes a screenshot and hides the image editor
107
107
  */
108
- removeScreenshotButtonLabel?: string;
108
+ removeScreenshotButtonLabel: string;
109
109
  /**
110
110
  * The title of the error dialog
111
111
  */
112
- errorTitle?: string;
112
+ errorTitle: string;
113
113
  /**
114
114
  * The error message when the form is invalid
115
115
  */
116
- formError?: string;
116
+ formError: string;
117
117
  /**
118
118
  * The error message when the email is invalid
119
119
  */
120
- emailError?: string;
120
+ emailError: string;
121
121
  /**
122
122
  * Message when there is a generic error
123
123
  */
124
- genericError?: string;
124
+ genericError: string;
125
125
  }
126
126
  /**
127
127
  * The public callbacks available for the feedback integration
@@ -130,29 +130,29 @@ export interface FeedbackCallbacks {
130
130
  /**
131
131
  * Callback when form is opened
132
132
  */
133
- onFormOpen?: () => void;
133
+ onFormOpen: () => void;
134
134
  /**
135
135
  * Callback when form is closed and not submitted
136
136
  */
137
- onFormClose?: () => void;
137
+ onFormClose: () => void;
138
138
  /**
139
139
  * Callback when a screenshot is added
140
140
  */
141
- onAddScreenshot?: (addScreenshot: (uri: string) => void) => void;
141
+ onAddScreenshot: (addScreenshot: (uri: string) => void) => void;
142
142
  /**
143
143
  * Callback when feedback is successfully submitted
144
144
  *
145
145
  * After this you'll see a SuccessMessage on the screen for a moment.
146
146
  */
147
- onSubmitSuccess?: (data: FeedbackFormData) => void;
147
+ onSubmitSuccess: (data: FeedbackFormData) => void;
148
148
  /**
149
149
  * Callback when feedback is unsuccessfully submitted
150
150
  */
151
- onSubmitError?: (error: Error) => void;
151
+ onSubmitError: (error: Error) => void;
152
152
  /**
153
153
  * Callback when the feedback form is submitted successfully, and the SuccessMessage is complete, or dismissed
154
154
  */
155
- onFormSubmitted?: () => void;
155
+ onFormSubmitted: () => void;
156
156
  }
157
157
  /**
158
158
  * Image Picker configuration interface compatible with:
@@ -1,3 +1,3 @@
1
1
  import type { FeedbackWidgetProps } from './FeedbackWidget.types';
2
- export declare const defaultConfiguration: Partial<FeedbackWidgetProps>;
2
+ export declare const defaultConfiguration: FeedbackWidgetProps;
3
3
  //# sourceMappingURL=defaults.d.ts.map
@@ -4,7 +4,7 @@ export declare const MOBILE_FEEDBACK_INTEGRATION_NAME = "MobileFeedback";
4
4
  type FeedbackIntegration = Integration & {
5
5
  options: Partial<FeedbackWidgetProps>;
6
6
  };
7
- export declare const feedbackIntegration: (initOptions?: FeedbackWidgetProps) => FeedbackIntegration;
7
+ export declare const feedbackIntegration: (initOptions?: Partial<FeedbackWidgetProps>) => FeedbackIntegration;
8
8
  export declare const getFeedbackOptions: () => Partial<FeedbackWidgetProps>;
9
9
  export {};
10
10
  //# sourceMappingURL=integration.d.ts.map
@@ -6,6 +6,11 @@ declare global {
6
6
  * ref: https://github.com/facebook/react-native/issues/33652
7
7
  */
8
8
  export declare function isModalSupported(): boolean;
9
+ /**
10
+ * The native driver supports color animations since React Native 0.69.
11
+ * ref: https://github.com/facebook/react-native/commit/201f355479cafbcece3d9eb40a52bae003da3e5c
12
+ */
13
+ export declare function isNativeDriverSupportedForColorAnimations(): boolean;
9
14
  export declare const isValidEmail: (email: string) => boolean;
10
15
  /**
11
16
  * Converts base64 string to Uint8Array on the web
@@ -1,5 +1,5 @@
1
- export type { Breadcrumb, Request, SdkInfo, Event, Exception, SendFeedbackParams, SeverityLevel, Span, StackFrame, Stacktrace, Thread, User, UserFeedback, } from '@sentry/core';
2
- export { addBreadcrumb, captureException, captureEvent, captureFeedback, captureMessage, Scope, setContext, setExtra, setExtras, setTag, setTags, setUser, startInactiveSpan, startSpan, startSpanManual, getActiveSpan, getRootSpan, withActiveSpan, suppressTracing, spanToJSON, spanIsSampled, setMeasurement, getCurrentScope, getGlobalScope, getIsolationScope, getClient, setCurrentClient, addEventProcessor, metricsDefault as metrics, lastEventId, } from '@sentry/core';
1
+ export type { Breadcrumb, SdkInfo, Event, Exception, SendFeedbackParams, SeverityLevel, Span, StackFrame, Stacktrace, Thread, User, UserFeedback, } from '@sentry/core';
2
+ export { addBreadcrumb, captureException, captureEvent, captureFeedback, captureMessage, Scope, setContext, setExtra, setExtras, setTag, setTags, setUser, startInactiveSpan, startSpan, startSpanManual, getActiveSpan, getRootSpan, withActiveSpan, suppressTracing, spanToJSON, spanIsSampled, setMeasurement, getCurrentScope, getGlobalScope, getIsolationScope, getClient, setCurrentClient, addEventProcessor, lastEventId, } from '@sentry/core';
3
3
  export { ErrorBoundary, withErrorBoundary, createReduxEnhancer, Profiler, useProfiler, withProfiler, } from '@sentry/react';
4
4
  export * from './integrations/exports';
5
5
  export { SDK_NAME, SDK_VERSION } from './version';
@@ -2,4 +2,22 @@ import type { Integration } from '@sentry/core';
2
2
  export declare const OTA_UPDATES_CONTEXT_KEY = "ota_updates";
3
3
  /** Load device context from expo modules. */
4
4
  export declare const expoContextIntegration: () => Integration;
5
+ /**
6
+ * @internal Exposed for testing purposes
7
+ */
8
+ export declare function getExpoUpdatesContext(): ExpoUpdatesContext;
9
+ type ExpoUpdatesContext = Partial<{
10
+ is_enabled: boolean;
11
+ is_embedded_launch: boolean;
12
+ is_emergency_launch: boolean;
13
+ is_using_embedded_assets: boolean;
14
+ update_id: string;
15
+ channel: string;
16
+ runtime_version: string;
17
+ check_automatically: string;
18
+ emergency_launch_reason: string;
19
+ launch_duration: number;
20
+ created_at: string;
21
+ }>;
22
+ export {};
5
23
  //# sourceMappingURL=expocontext.d.ts.map
@@ -198,6 +198,13 @@ export interface BaseReactNativeOptions {
198
198
  * 1.0 will record all sessions and 0 will record none.
199
199
  */
200
200
  replaysOnErrorSampleRate?: number;
201
+ /**
202
+ * Controls how many milliseconds to wait before shutting down. The default is 2 seconds. Setting this too low can cause
203
+ * problems for sending events from command line applications. Setting it too
204
+ * high can cause the application to block for users with network connectivity
205
+ * problems.
206
+ */
207
+ shutdownTimeout?: number;
201
208
  /**
202
209
  * Options which are in beta, or otherwise not guaranteed to be stable.
203
210
  */
@@ -240,7 +247,7 @@ export interface ReactNativeClientOptions extends Omit<ClientOptions<ReactNative
240
247
  }
241
248
  export interface ReactNativeWrapperOptions {
242
249
  /** Props for the root React profiler */
243
- profilerProps?: ProfilerProps;
250
+ profilerProps?: Omit<ProfilerProps, 'updateProps' | 'children' | 'name'>;
244
251
  /** Props for the root touch event boundary */
245
252
  touchEventBoundaryProps?: TouchEventBoundaryProps;
246
253
  }
@@ -1,6 +1,6 @@
1
1
  import type { AndroidCombinedProfileEvent, CombinedProfileEvent } from './types';
2
2
  export declare const PROFILE_QUEUE: {
3
- get: (key: string) => AndroidCombinedProfileEvent | CombinedProfileEvent;
3
+ get: (key: string) => AndroidCombinedProfileEvent | CombinedProfileEvent | undefined;
4
4
  add: (key: string, value: AndroidCombinedProfileEvent | CombinedProfileEvent) => void;
5
5
  delete: (key: string) => boolean;
6
6
  clear: () => void;
@@ -36,5 +36,5 @@ export interface Profile {
36
36
  samples: Sample[];
37
37
  stackFrames: Record<string, StackFrame>;
38
38
  }
39
- export declare const DEFAULT_BUNDLE_NAME: string;
39
+ export declare const DEFAULT_BUNDLE_NAME: string | undefined;
40
40
  //# sourceMappingURL=hermes.d.ts.map
@@ -48,6 +48,6 @@ export declare const appStartIntegration: ({ standalone, }?: {
48
48
  *
49
49
  * @default false
50
50
  */
51
- standalone?: boolean;
51
+ standalone?: boolean | undefined;
52
52
  }) => AppStartIntegration;
53
53
  //# sourceMappingURL=appStart.d.ts.map
@@ -26,6 +26,6 @@ export declare const stallTrackingIntegration: ({ minimumStallThresholdMs, }?: {
26
26
  * How long in milliseconds an event loop iteration can be delayed for before being considered a "stall."
27
27
  * @default 50
28
28
  */
29
- minimumStallThresholdMs?: number;
29
+ minimumStallThresholdMs?: number | undefined;
30
30
  }) => Integration;
31
31
  //# sourceMappingURL=stalltracking.d.ts.map
@@ -4,7 +4,7 @@ import type { Client, Span } from '@sentry/core';
4
4
  */
5
5
  export declare function onThisSpanEnd(client: Client, span: Span, callback: (span: Span) => void): void;
6
6
  export declare const adjustTransactionDuration: (client: Client, span: Span, maxDurationMs: number) => void;
7
- export declare const ignoreEmptyBackNavigation: (client: Client | undefined, span: Span) => void;
7
+ export declare const ignoreEmptyBackNavigation: (client: Client | undefined, span: Span | undefined) => void;
8
8
  /**
9
9
  * Idle Transaction callback to only sample transactions with child spans.
10
10
  * To avoid side effects of other callbacks this should be hooked as the last callback.
@@ -1,10 +1,11 @@
1
1
  import { Profiler } from '@sentry/react';
2
+ type ProfilerConstructorProps = ConstructorParameters<typeof Profiler>[0];
2
3
  /**
3
4
  * Custom profiler for the React Native app root.
4
5
  */
5
6
  export declare class ReactNativeProfiler extends Profiler {
6
7
  readonly name: string;
7
- constructor(props: ConstructorParameters<typeof Profiler>[0]);
8
+ constructor(props: ProfilerConstructorProps);
8
9
  /**
9
10
  * Get the app root mount time.
10
11
  */
@@ -14,4 +15,5 @@ export declare class ReactNativeProfiler extends Profiler {
14
15
  */
15
16
  private _reportAppStart;
16
17
  }
18
+ export {};
17
19
  //# sourceMappingURL=reactnativeprofiler.d.ts.map
@@ -18,7 +18,10 @@ export interface ReactNativeTracingOptions {
18
18
  /**
19
19
  * Flag to disable patching all together for fetch requests.
20
20
  *
21
- * @default true
21
+ * Fetch in React Native is a `whatwg-fetch` polyfill which uses XHR under the hood.
22
+ * This causes duplicates when both `traceFetch` and `traceXHR` are enabled at the same time.
23
+ *
24
+ * @default false
22
25
  */
23
26
  traceFetch: boolean;
24
27
  /**
@@ -1,3 +1,3 @@
1
1
  export declare const addTimeToInitialDisplayFallback: (spanId: string, timestampSeconds: Promise<number | undefined | null>) => void;
2
- export declare const getTimeToInitialDisplayFallback: (spanId: string) => Promise<number | undefined>;
2
+ export declare const getTimeToInitialDisplayFallback: (spanId: string) => Promise<number | undefined | null>;
3
3
  //# sourceMappingURL=timeToDisplayFallback.d.ts.map
@@ -1,4 +1,4 @@
1
1
  export declare const SDK_PACKAGE_NAME = "npm:@sentry/react-native";
2
2
  export declare const SDK_NAME = "sentry.javascript.react-native";
3
- export declare const SDK_VERSION = "6.13.0";
3
+ export declare const SDK_VERSION = "7.0.0-alpha.0";
4
4
  //# sourceMappingURL=version.d.ts.map