@sentry/react-native 6.15.0 → 7.0.0-beta.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 (287) hide show
  1. package/android/build.gradle +1 -1
  2. package/android/src/main/java/io/sentry/react/RNSentryModuleImpl.java +11 -14
  3. package/android/src/main/java/io/sentry/react/RNSentryVersion.java +1 -1
  4. package/dist/js/NativeRNSentry.d.ts.map +1 -1
  5. package/dist/js/NativeRNSentry.js.map +1 -1
  6. package/dist/js/client.d.ts.map +1 -1
  7. package/dist/js/client.js +5 -1
  8. package/dist/js/client.js.map +1 -1
  9. package/dist/js/feedback/FeedbackButton.d.ts.map +1 -1
  10. package/dist/js/feedback/FeedbackButton.js +1 -1
  11. package/dist/js/feedback/FeedbackButton.js.map +1 -1
  12. package/dist/js/feedback/FeedbackWidget.d.ts +1 -1
  13. package/dist/js/feedback/FeedbackWidget.d.ts.map +1 -1
  14. package/dist/js/feedback/FeedbackWidget.js +60 -46
  15. package/dist/js/feedback/FeedbackWidget.js.map +1 -1
  16. package/dist/js/feedback/FeedbackWidget.styles.d.ts.map +1 -1
  17. package/dist/js/feedback/FeedbackWidget.styles.js.map +1 -1
  18. package/dist/js/feedback/FeedbackWidget.theme.d.ts.map +1 -1
  19. package/dist/js/feedback/FeedbackWidget.theme.js.map +1 -1
  20. package/dist/js/feedback/FeedbackWidget.types.d.ts +30 -30
  21. package/dist/js/feedback/FeedbackWidget.types.d.ts.map +1 -1
  22. package/dist/js/feedback/FeedbackWidget.types.js.map +1 -1
  23. package/dist/js/feedback/FeedbackWidgetManager.d.ts.map +1 -1
  24. package/dist/js/feedback/FeedbackWidgetManager.js +6 -3
  25. package/dist/js/feedback/FeedbackWidgetManager.js.map +1 -1
  26. package/dist/js/feedback/FeedbackWidgetProvider.d.ts.map +1 -1
  27. package/dist/js/feedback/FeedbackWidgetProvider.js +9 -10
  28. package/dist/js/feedback/FeedbackWidgetProvider.js.map +1 -1
  29. package/dist/js/feedback/ScreenshotButton.d.ts.map +1 -1
  30. package/dist/js/feedback/ScreenshotButton.js.map +1 -1
  31. package/dist/js/feedback/defaults.d.ts +1 -1
  32. package/dist/js/feedback/defaults.d.ts.map +1 -1
  33. package/dist/js/feedback/defaults.js.map +1 -1
  34. package/dist/js/feedback/integration.d.ts +1 -1
  35. package/dist/js/feedback/integration.d.ts.map +1 -1
  36. package/dist/js/feedback/integration.js +1 -1
  37. package/dist/js/feedback/integration.js.map +1 -1
  38. package/dist/js/feedback/lazy.d.ts.map +1 -1
  39. package/dist/js/feedback/lazy.js.map +1 -1
  40. package/dist/js/feedback/utils.d.ts.map +1 -1
  41. package/dist/js/feedback/utils.js +2 -2
  42. package/dist/js/feedback/utils.js.map +1 -1
  43. package/dist/js/index.d.ts +3 -3
  44. package/dist/js/index.d.ts.map +1 -1
  45. package/dist/js/index.js +2 -2
  46. package/dist/js/index.js.map +1 -1
  47. package/dist/js/integrations/appRegistry.d.ts.map +1 -1
  48. package/dist/js/integrations/appRegistry.js.map +1 -1
  49. package/dist/js/integrations/breadcrumbs.d.ts +47 -0
  50. package/dist/js/integrations/breadcrumbs.d.ts.map +1 -0
  51. package/dist/js/integrations/breadcrumbs.js +15 -0
  52. package/dist/js/integrations/breadcrumbs.js.map +1 -0
  53. package/dist/js/integrations/debugsymbolicator.d.ts.map +1 -1
  54. package/dist/js/integrations/debugsymbolicator.js +2 -1
  55. package/dist/js/integrations/debugsymbolicator.js.map +1 -1
  56. package/dist/js/integrations/debugsymbolicatorutils.d.ts.map +1 -1
  57. package/dist/js/integrations/debugsymbolicatorutils.js +12 -2
  58. package/dist/js/integrations/debugsymbolicatorutils.js.map +1 -1
  59. package/dist/js/integrations/default.d.ts.map +1 -1
  60. package/dist/js/integrations/default.js +9 -5
  61. package/dist/js/integrations/default.js.map +1 -1
  62. package/dist/js/integrations/devicecontext.d.ts.map +1 -1
  63. package/dist/js/integrations/devicecontext.js.map +1 -1
  64. package/dist/js/integrations/expocontext.d.ts.map +1 -1
  65. package/dist/js/integrations/expocontext.js.map +1 -1
  66. package/dist/js/integrations/exports.d.ts +2 -1
  67. package/dist/js/integrations/exports.d.ts.map +1 -1
  68. package/dist/js/integrations/exports.js +2 -1
  69. package/dist/js/integrations/exports.js.map +1 -1
  70. package/dist/js/integrations/modulesloader.d.ts.map +1 -1
  71. package/dist/js/integrations/modulesloader.js.map +1 -1
  72. package/dist/js/integrations/nativelinkederrors.d.ts.map +1 -1
  73. package/dist/js/integrations/nativelinkederrors.js +4 -3
  74. package/dist/js/integrations/nativelinkederrors.js.map +1 -1
  75. package/dist/js/integrations/reactnativeerrorhandlers.js +2 -1
  76. package/dist/js/integrations/reactnativeerrorhandlers.js.map +1 -1
  77. package/dist/js/integrations/reactnativeerrorhandlersutils.d.ts.map +1 -1
  78. package/dist/js/integrations/reactnativeerrorhandlersutils.js.map +1 -1
  79. package/dist/js/integrations/reactnativeinfo.d.ts.map +1 -1
  80. package/dist/js/integrations/reactnativeinfo.js.map +1 -1
  81. package/dist/js/integrations/release.d.ts.map +1 -1
  82. package/dist/js/integrations/release.js.map +1 -1
  83. package/dist/js/integrations/rewriteframes.d.ts.map +1 -1
  84. package/dist/js/integrations/rewriteframes.js.map +1 -1
  85. package/dist/js/integrations/screenshot.d.ts.map +1 -1
  86. package/dist/js/integrations/screenshot.js +3 -3
  87. package/dist/js/integrations/screenshot.js.map +1 -1
  88. package/dist/js/integrations/sdkinfo.d.ts.map +1 -1
  89. package/dist/js/integrations/sdkinfo.js.map +1 -1
  90. package/dist/js/integrations/spotlight.d.ts.map +1 -1
  91. package/dist/js/integrations/spotlight.js +8 -4
  92. package/dist/js/integrations/spotlight.js.map +1 -1
  93. package/dist/js/integrations/viewhierarchy.d.ts.map +1 -1
  94. package/dist/js/integrations/viewhierarchy.js +2 -1
  95. package/dist/js/integrations/viewhierarchy.js.map +1 -1
  96. package/dist/js/options.d.ts +8 -1
  97. package/dist/js/options.d.ts.map +1 -1
  98. package/dist/js/options.js.map +1 -1
  99. package/dist/js/profiling/cache.d.ts +1 -1
  100. package/dist/js/profiling/convertHermesProfile.d.ts.map +1 -1
  101. package/dist/js/profiling/convertHermesProfile.js +18 -5
  102. package/dist/js/profiling/convertHermesProfile.js.map +1 -1
  103. package/dist/js/profiling/debugid.d.ts.map +1 -1
  104. package/dist/js/profiling/debugid.js +9 -1
  105. package/dist/js/profiling/debugid.js.map +1 -1
  106. package/dist/js/profiling/hermes.d.ts +1 -1
  107. package/dist/js/profiling/hermes.d.ts.map +1 -1
  108. package/dist/js/profiling/hermes.js.map +1 -1
  109. package/dist/js/profiling/integration.d.ts.map +1 -1
  110. package/dist/js/profiling/integration.js +2 -1
  111. package/dist/js/profiling/integration.js.map +1 -1
  112. package/dist/js/profiling/types.d.ts.map +1 -1
  113. package/dist/js/profiling/types.js.map +1 -1
  114. package/dist/js/profiling/utils.d.ts.map +1 -1
  115. package/dist/js/profiling/utils.js +15 -17
  116. package/dist/js/profiling/utils.js.map +1 -1
  117. package/dist/js/replay/CustomMask.d.ts.map +1 -1
  118. package/dist/js/replay/CustomMask.js +1 -1
  119. package/dist/js/replay/CustomMask.js.map +1 -1
  120. package/dist/js/replay/browserReplay.d.ts +13 -1
  121. package/dist/js/replay/browserReplay.d.ts.map +1 -1
  122. package/dist/js/replay/browserReplay.js +26 -0
  123. package/dist/js/replay/browserReplay.js.map +1 -1
  124. package/dist/js/replay/mobilereplay.d.ts.map +1 -1
  125. package/dist/js/replay/mobilereplay.js +2 -7
  126. package/dist/js/replay/mobilereplay.js.map +1 -1
  127. package/dist/js/replay/networkUtils.d.ts.map +1 -1
  128. package/dist/js/replay/networkUtils.js +4 -11
  129. package/dist/js/replay/networkUtils.js.map +1 -1
  130. package/dist/js/replay/replayInterface.d.ts +52 -0
  131. package/dist/js/replay/replayInterface.d.ts.map +1 -0
  132. package/dist/js/replay/replayInterface.js +2 -0
  133. package/dist/js/replay/replayInterface.js.map +1 -0
  134. package/dist/js/replay/xhrUtils.d.ts.map +1 -1
  135. package/dist/js/replay/xhrUtils.js.map +1 -1
  136. package/dist/js/scopeSync.d.ts.map +1 -1
  137. package/dist/js/scopeSync.js +7 -1
  138. package/dist/js/scopeSync.js.map +1 -1
  139. package/dist/js/sdk.d.ts +1 -6
  140. package/dist/js/sdk.d.ts.map +1 -1
  141. package/dist/js/sdk.js +3 -16
  142. package/dist/js/sdk.js.map +1 -1
  143. package/dist/js/tools/ModulesCollector.js +1 -0
  144. package/dist/js/tools/ModulesCollector.js.map +1 -1
  145. package/dist/js/tools/collectModules.js +1 -0
  146. package/dist/js/tools/collectModules.js.map +1 -1
  147. package/dist/js/tools/enableLogger.js +1 -0
  148. package/dist/js/tools/enableLogger.js.map +1 -1
  149. package/dist/js/tools/metroMiddleware.js +2 -1
  150. package/dist/js/tools/metroMiddleware.js.map +1 -1
  151. package/dist/js/tools/metroconfig.d.ts.map +1 -1
  152. package/dist/js/tools/metroconfig.js +6 -4
  153. package/dist/js/tools/metroconfig.js.map +1 -1
  154. package/dist/js/tools/sentryBabelTransformer.js +1 -0
  155. package/dist/js/tools/sentryBabelTransformer.js.map +1 -1
  156. package/dist/js/tools/sentryBabelTransformerUtils.d.ts.map +1 -1
  157. package/dist/js/tools/sentryBabelTransformerUtils.js +2 -1
  158. package/dist/js/tools/sentryBabelTransformerUtils.js.map +1 -1
  159. package/dist/js/tools/sentryMetroSerializer.d.ts.map +1 -1
  160. package/dist/js/tools/sentryMetroSerializer.js +1 -0
  161. package/dist/js/tools/sentryMetroSerializer.js.map +1 -1
  162. package/dist/js/tools/utils.js +1 -0
  163. package/dist/js/tools/utils.js.map +1 -1
  164. package/dist/js/tools/vendor/expo/expoconfig.js +1 -0
  165. package/dist/js/tools/vendor/expo/expoconfig.js.map +1 -1
  166. package/dist/js/tools/vendor/metro/metroBabelTransformer.js +1 -0
  167. package/dist/js/tools/vendor/metro/metroBabelTransformer.js.map +1 -1
  168. package/dist/js/tools/vendor/metro/utils.d.ts.map +1 -1
  169. package/dist/js/tools/vendor/metro/utils.js +1 -0
  170. package/dist/js/tools/vendor/metro/utils.js.map +1 -1
  171. package/dist/js/touchevents.d.ts.map +1 -1
  172. package/dist/js/touchevents.js +4 -0
  173. package/dist/js/touchevents.js.map +1 -1
  174. package/dist/js/tracing/gesturetracing.d.ts.map +1 -1
  175. package/dist/js/tracing/gesturetracing.js.map +1 -1
  176. package/dist/js/tracing/integrations/appStart.d.ts +1 -1
  177. package/dist/js/tracing/integrations/appStart.d.ts.map +1 -1
  178. package/dist/js/tracing/integrations/appStart.js +10 -3
  179. package/dist/js/tracing/integrations/appStart.js.map +1 -1
  180. package/dist/js/tracing/integrations/nativeFrames.d.ts.map +1 -1
  181. package/dist/js/tracing/integrations/nativeFrames.js.map +1 -1
  182. package/dist/js/tracing/integrations/stalltracking.d.ts +1 -1
  183. package/dist/js/tracing/integrations/stalltracking.d.ts.map +1 -1
  184. package/dist/js/tracing/integrations/stalltracking.js.map +1 -1
  185. package/dist/js/tracing/integrations/timeToDisplayIntegration.d.ts.map +1 -1
  186. package/dist/js/tracing/integrations/timeToDisplayIntegration.js +14 -10
  187. package/dist/js/tracing/integrations/timeToDisplayIntegration.js.map +1 -1
  188. package/dist/js/tracing/integrations/userInteraction.d.ts.map +1 -1
  189. package/dist/js/tracing/integrations/userInteraction.js.map +1 -1
  190. package/dist/js/tracing/onSpanEndUtils.d.ts +1 -1
  191. package/dist/js/tracing/onSpanEndUtils.d.ts.map +1 -1
  192. package/dist/js/tracing/onSpanEndUtils.js +2 -1
  193. package/dist/js/tracing/onSpanEndUtils.js.map +1 -1
  194. package/dist/js/tracing/reactnativenavigation.d.ts.map +1 -1
  195. package/dist/js/tracing/reactnativenavigation.js +1 -1
  196. package/dist/js/tracing/reactnativenavigation.js.map +1 -1
  197. package/dist/js/tracing/reactnativeprofiler.d.ts +3 -1
  198. package/dist/js/tracing/reactnativeprofiler.d.ts.map +1 -1
  199. package/dist/js/tracing/reactnativeprofiler.js +2 -1
  200. package/dist/js/tracing/reactnativeprofiler.js.map +1 -1
  201. package/dist/js/tracing/reactnativetracing.d.ts.map +1 -1
  202. package/dist/js/tracing/reactnativetracing.js.map +1 -1
  203. package/dist/js/tracing/reactnavigation.d.ts.map +1 -1
  204. package/dist/js/tracing/reactnavigation.js +5 -4
  205. package/dist/js/tracing/reactnavigation.js.map +1 -1
  206. package/dist/js/tracing/span.d.ts.map +1 -1
  207. package/dist/js/tracing/span.js +5 -5
  208. package/dist/js/tracing/span.js.map +1 -1
  209. package/dist/js/tracing/timeToDisplayFallback.d.ts +1 -1
  210. package/dist/js/tracing/timeToDisplayFallback.d.ts.map +1 -1
  211. package/dist/js/tracing/timeToDisplayFallback.js.map +1 -1
  212. package/dist/js/tracing/timetodisplay.d.ts.map +1 -1
  213. package/dist/js/tracing/timetodisplay.js +13 -13
  214. package/dist/js/tracing/timetodisplay.js.map +1 -1
  215. package/dist/js/tracing/timetodisplaynative.d.ts.map +1 -1
  216. package/dist/js/tracing/timetodisplaynative.js.map +1 -1
  217. package/dist/js/tracing/utils.d.ts.map +1 -1
  218. package/dist/js/tracing/utils.js.map +1 -1
  219. package/dist/js/transports/encodePolyfill.d.ts +4 -0
  220. package/dist/js/transports/encodePolyfill.d.ts.map +1 -1
  221. package/dist/js/transports/encodePolyfill.js +17 -3
  222. package/dist/js/transports/encodePolyfill.js.map +1 -1
  223. package/dist/js/transports/native.d.ts.map +1 -1
  224. package/dist/js/transports/native.js.map +1 -1
  225. package/dist/js/utils/AsyncExpiringMap.d.ts.map +1 -1
  226. package/dist/js/utils/AsyncExpiringMap.js +8 -4
  227. package/dist/js/utils/AsyncExpiringMap.js.map +1 -1
  228. package/dist/js/utils/carrier.d.ts +5 -0
  229. package/dist/js/utils/carrier.d.ts.map +1 -0
  230. package/dist/js/utils/carrier.js +11 -0
  231. package/dist/js/utils/carrier.js.map +1 -0
  232. package/dist/js/utils/encode.d.ts +5 -0
  233. package/dist/js/utils/encode.d.ts.map +1 -0
  234. package/dist/js/utils/encode.js +13 -0
  235. package/dist/js/utils/encode.js.map +1 -0
  236. package/dist/js/utils/envelope.d.ts.map +1 -1
  237. package/dist/js/utils/envelope.js +1 -2
  238. package/dist/js/utils/envelope.js.map +1 -1
  239. package/dist/js/utils/environment.d.ts.map +1 -1
  240. package/dist/js/utils/environment.js +5 -6
  241. package/dist/js/utils/environment.js.map +1 -1
  242. package/dist/js/utils/rnlibraries.d.ts.map +1 -1
  243. package/dist/js/utils/rnlibraries.js.map +1 -1
  244. package/dist/js/utils/safe.d.ts.map +1 -1
  245. package/dist/js/utils/safe.js.map +1 -1
  246. package/dist/js/utils/worldwide.d.ts +3 -2
  247. package/dist/js/utils/worldwide.d.ts.map +1 -1
  248. package/dist/js/utils/worldwide.js.map +1 -1
  249. package/dist/js/vendor/base64-js/fromByteArray.d.ts.map +1 -1
  250. package/dist/js/vendor/base64-js/fromByteArray.js +6 -0
  251. package/dist/js/vendor/base64-js/fromByteArray.js.map +1 -1
  252. package/dist/js/version.d.ts +1 -1
  253. package/dist/js/version.d.ts.map +1 -1
  254. package/dist/js/version.js +1 -1
  255. package/dist/js/version.js.map +1 -1
  256. package/dist/js/wrapper.d.ts.map +1 -1
  257. package/dist/js/wrapper.js +10 -8
  258. package/dist/js/wrapper.js.map +1 -1
  259. package/ios/RNSentryVersion.m +1 -1
  260. package/package.json +9 -10
  261. package/plugin/build/withSentry.js +3 -3
  262. package/plugin/build/withSentryAndroidGradlePlugin.js +3 -3
  263. package/scripts/expo-upload-sourcemaps.js +2 -2
  264. package/src/js/NativeRNSentry.ts +0 -1
  265. package/ts3.8/dist/js/feedback/FeedbackWidget.d.ts +1 -1
  266. package/ts3.8/dist/js/feedback/FeedbackWidget.types.d.ts +30 -30
  267. package/ts3.8/dist/js/feedback/defaults.d.ts +1 -1
  268. package/ts3.8/dist/js/feedback/integration.d.ts +1 -1
  269. package/ts3.8/dist/js/index.d.ts +3 -3
  270. package/ts3.8/dist/js/integrations/breadcrumbs.d.ts +47 -0
  271. package/ts3.8/dist/js/integrations/exports.d.ts +2 -1
  272. package/ts3.8/dist/js/options.d.ts +8 -1
  273. package/ts3.8/dist/js/profiling/cache.d.ts +1 -1
  274. package/ts3.8/dist/js/profiling/hermes.d.ts +1 -1
  275. package/ts3.8/dist/js/replay/browserReplay.d.ts +13 -1
  276. package/ts3.8/dist/js/replay/replayInterface.d.ts +52 -0
  277. package/ts3.8/dist/js/sdk.d.ts +1 -6
  278. package/ts3.8/dist/js/tracing/integrations/appStart.d.ts +1 -1
  279. package/ts3.8/dist/js/tracing/integrations/stalltracking.d.ts +1 -1
  280. package/ts3.8/dist/js/tracing/onSpanEndUtils.d.ts +1 -1
  281. package/ts3.8/dist/js/tracing/reactnativeprofiler.d.ts +3 -1
  282. package/ts3.8/dist/js/tracing/timeToDisplayFallback.d.ts +1 -1
  283. package/ts3.8/dist/js/transports/encodePolyfill.d.ts +4 -0
  284. package/ts3.8/dist/js/utils/carrier.d.ts +5 -0
  285. package/ts3.8/dist/js/utils/encode.d.ts +5 -0
  286. package/ts3.8/dist/js/utils/worldwide.d.ts +3 -2
  287. package/ts3.8/dist/js/version.d.ts +1 -1
@@ -1,11 +1,11 @@
1
- export type { Breadcrumb, Request, SdkInfo, Event, Exception, SendFeedbackParams, SeverityLevel, Span, StackFrame, Stacktrace, Thread, User, UserFeedback, ErrorEvent, TransactionEvent, } 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, ErrorEvent, TransactionEvent, } 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';
6
6
  export type { ReactNativeOptions } from './options';
7
7
  export { ReactNativeClient } from './client';
8
- export { init, wrap, nativeCrash, flush, close, captureUserFeedback, withScope, crashedLastRun } from './sdk';
8
+ export { init, wrap, nativeCrash, flush, close, withScope, crashedLastRun } from './sdk';
9
9
  export { TouchEventBoundary, withTouchEventBoundary } from './touchevents';
10
10
  export { reactNativeTracingIntegration, getCurrentReactNativeTracingIntegration, getReactNativeTracingIntegration, reactNavigationIntegration, reactNativeNavigationIntegration, sentryTraceGesture, TimeToInitialDisplay, TimeToFullDisplay, startTimeToInitialDisplaySpan, startTimeToFullDisplaySpan, startIdleNavigationSpan, startIdleSpan, getDefaultIdleNavigationSpanOptions, createTimeToFullDisplay, createTimeToInitialDisplay, } from './tracing';
11
11
  export type { TimeToDisplayProps } from './tracing';
@@ -0,0 +1,47 @@
1
+ import type { Integration } from '@sentry/core';
2
+ interface BreadcrumbsOptions {
3
+ /**
4
+ * Log calls to console.log, console.debug, and so on.
5
+ */
6
+ console: boolean;
7
+ /**
8
+ * Log all click and keypress events.
9
+ *
10
+ * Only available on web. In React Native this is a no-op.
11
+ */
12
+ dom: boolean | {
13
+ serializeAttribute?: string | string[];
14
+ maxStringLength?: number;
15
+ };
16
+ /**
17
+ * Log HTTP requests done with the global Fetch API.
18
+ *
19
+ * Disabled by default in React Native because fetch is built on XMLHttpRequest.
20
+ * Enabled by default on web.
21
+ *
22
+ * Setting `fetch: true` and `xhr: true` will cause duplicates in React Native.
23
+ */
24
+ fetch: boolean;
25
+ /**
26
+ * Log calls to history.pushState and related APIs.
27
+ *
28
+ * Only available on web. In React Native this is a no-op.
29
+ */
30
+ history: boolean;
31
+ /**
32
+ * Log whenever we send an event to the server.
33
+ */
34
+ sentry: boolean;
35
+ /**
36
+ * Log HTTP requests done with the XHR API.
37
+ *
38
+ * Because React Native global fetch is built on XMLHttpRequest,
39
+ * this will also log `fetch` network requests.
40
+ *
41
+ * Setting `fetch: true` and `xhr: true` will cause duplicates in React Native.
42
+ */
43
+ xhr: boolean;
44
+ }
45
+ export declare const breadcrumbsIntegration: (options?: Partial<BreadcrumbsOptions>) => Integration;
46
+ export {};
47
+ //# sourceMappingURL=breadcrumbs.d.ts.map
@@ -22,5 +22,6 @@ export { userInteractionIntegration } from '../tracing/integrations/userInteract
22
22
  export { createReactNativeRewriteFrames } from './rewriteframes';
23
23
  export { appRegistryIntegration } from './appRegistry';
24
24
  export { timeToDisplayIntegration } from '../tracing/integrations/timeToDisplayIntegration';
25
- export { breadcrumbsIntegration, browserApiErrorsIntegration, dedupeIntegration, functionToStringIntegration, globalHandlersIntegration as browserGlobalHandlersIntegration, httpClientIntegration, httpContextIntegration, inboundFiltersIntegration, linkedErrorsIntegration as browserLinkedErrorsIntegration, rewriteFramesIntegration, extraErrorDataIntegration, } from '@sentry/react';
25
+ export { breadcrumbsIntegration } from './breadcrumbs';
26
+ export { browserApiErrorsIntegration, dedupeIntegration, functionToStringIntegration, globalHandlersIntegration as browserGlobalHandlersIntegration, httpClientIntegration, httpContextIntegration, inboundFiltersIntegration, linkedErrorsIntegration as browserLinkedErrorsIntegration, rewriteFramesIntegration, extraErrorDataIntegration, } from '@sentry/react';
26
27
  //# sourceMappingURL=exports.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
@@ -1,4 +1,16 @@
1
1
  import { replayIntegration } from '@sentry/react';
2
- declare const browserReplayIntegration: (options?: Parameters<typeof replayIntegration>[0]) => ReturnType<typeof replayIntegration>;
2
+ import type { Replay } from './replayInterface';
3
+ /**
4
+ * ReplayConfiguration for browser replay integration.
5
+ *
6
+ * See the [Configuration documentation](https://docs.sentry.io/platforms/javascript/session-replay/configuration/) for more information.
7
+ */
8
+ type ReplayConfiguration = Parameters<typeof replayIntegration>[0];
9
+ /**
10
+ * Browser Replay integration for React Native.
11
+ *
12
+ * See the [Browser Replay documentation](https://docs.sentry.io/platforms/javascript/session-replay/) for more information.
13
+ */
14
+ declare const browserReplayIntegration: (options?: ReplayConfiguration) => Replay;
3
15
  export { browserReplayIntegration };
4
16
  //# sourceMappingURL=browserReplay.d.ts.map
@@ -0,0 +1,52 @@
1
+ import type { Integration, ReplayRecordingMode } from '@sentry/core';
2
+ /**
3
+ * Common interface for React Native Replay integrations.
4
+ *
5
+ * Both browser and mobile replay integrations should implement this interface
6
+ * to allow user manually control the replay.
7
+ */
8
+ export interface Replay extends Integration {
9
+ /**
10
+ * Start a replay regardless of sampling rate. Calling this will always
11
+ * create a new session. Will log a message if replay is already in progress.
12
+ *
13
+ * Creates or loads a session, attaches listeners to varying events (DOM,
14
+ * PerformanceObserver, Recording, Sentry SDK, etc)
15
+ */
16
+ start(): void;
17
+ /**
18
+ * Start replay buffering. Buffers until `flush()` is called or, if
19
+ * `replaysOnErrorSampleRate` > 0, until an error occurs.
20
+ */
21
+ startBuffering(): void;
22
+ /**
23
+ * Currently, this needs to be manually called (e.g. for tests). Sentry SDK
24
+ * does not support a teardown
25
+ */
26
+ stop(): Promise<void>;
27
+ /**
28
+ * If not in "session" recording mode, flush event buffer which will create a new replay.
29
+ * If replay is not enabled, a new session replay is started.
30
+ * Unless `continueRecording` is false, the replay will continue to record and
31
+ * behave as a "session"-based replay.
32
+ *
33
+ * Otherwise, queue up a flush.
34
+ */
35
+ flush(options?: {
36
+ continueRecording?: boolean;
37
+ }): Promise<void>;
38
+ /**
39
+ * Get the current session ID.
40
+ */
41
+ getReplayId(): string | undefined;
42
+ /**
43
+ * Get the current recording mode. This can be either `session` or `buffer`.
44
+ *
45
+ * `session`: Recording the whole session, sending it continuously
46
+ * `buffer`: Always keeping the last 60s of recording, requires:
47
+ * - having replaysOnErrorSampleRate > 0 to capture replay when an error occurs
48
+ * - or calling `flush()` to send the replay
49
+ */
50
+ getRecordingMode(): ReplayRecordingMode | undefined;
51
+ }
52
+ //# sourceMappingURL=replayInterface.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { Scope, UserFeedback } from '@sentry/core';
1
+ import type { Scope } from '@sentry/core';
2
2
  import * as React from 'react';
3
3
  import type { ReactNativeOptions, ReactNativeWrapperOptions } from './options';
4
4
  /**
@@ -23,11 +23,6 @@ export declare function flush(): Promise<boolean>;
23
23
  * Closes the SDK, stops sending events.
24
24
  */
25
25
  export declare function close(): Promise<void>;
26
- /**
27
- * Captures user feedback and sends it to Sentry.
28
- * @deprecated Use `Sentry.captureFeedback` instead.
29
- */
30
- export declare function captureUserFeedback(feedback: UserFeedback): void;
31
26
  /**
32
27
  * Creates a new scope with and executes the given operation within.
33
28
  * The scope is automatically removed once the operation
@@ -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
@@ -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,3 +1,7 @@
1
+ import { RN_GLOBAL_OBJ } from '../utils/worldwide';
1
2
  export declare const useEncodePolyfill: () => void;
3
+ export declare const globalEncodeFactory: (Encoder: EncoderClass) => (text: string) => Uint8Array;
4
+ type EncoderClass = Required<typeof RN_GLOBAL_OBJ>['TextEncoder'];
2
5
  export declare const encodePolyfill: (text: string) => Uint8Array;
6
+ export {};
3
7
  //# sourceMappingURL=encodePolyfill.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { getMainCarrier } from '@sentry/core';
2
+ export declare const getSentryCarrier: () => SentryCarrier;
3
+ type SentryCarrier = Required<ReturnType<typeof getMainCarrier>>['__SENTRY__'][string];
4
+ export {};
5
+ //# sourceMappingURL=carrier.d.ts.map
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Encode a string to UTF8 array.
3
+ */
4
+ export declare function encodeUTF8(input: string): Uint8Array;
5
+ //# sourceMappingURL=encode.d.ts.map
@@ -33,8 +33,9 @@ export interface ReactNativeInternalGlobal extends InternalGlobal {
33
33
  alert?: (message: string) => void;
34
34
  }
35
35
  type TextEncoder = {
36
- new (): TextEncoder;
37
- encode(input?: string): Uint8Array;
36
+ new (): {
37
+ encode(input?: string): Uint8Array;
38
+ };
38
39
  };
39
40
  /** Get's the global object for the current JavaScript runtime */
40
41
  export declare const RN_GLOBAL_OBJ: ReactNativeInternalGlobal;
@@ -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.15.0";
3
+ export declare const SDK_VERSION = "7.0.0-beta.0";
4
4
  //# sourceMappingURL=version.d.ts.map