@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.
- package/RNSentry.podspec +1 -1
- package/android/build.gradle +1 -1
- package/android/src/main/java/io/sentry/react/RNSentryModuleImpl.java +11 -14
- package/android/src/main/java/io/sentry/react/RNSentryVersion.java +1 -1
- package/dist/js/client.d.ts +12 -0
- package/dist/js/client.d.ts.map +1 -1
- package/dist/js/client.js +24 -1
- package/dist/js/client.js.map +1 -1
- package/dist/js/feedback/FeedbackWidget.d.ts +1 -1
- package/dist/js/feedback/FeedbackWidget.d.ts.map +1 -1
- package/dist/js/feedback/FeedbackWidget.js +18 -17
- package/dist/js/feedback/FeedbackWidget.js.map +1 -1
- package/dist/js/feedback/FeedbackWidget.types.d.ts +29 -29
- package/dist/js/feedback/FeedbackWidget.types.d.ts.map +1 -1
- package/dist/js/feedback/FeedbackWidget.types.js.map +1 -1
- package/dist/js/feedback/FeedbackWidgetManager.d.ts.map +1 -1
- package/dist/js/feedback/FeedbackWidgetManager.js +10 -6
- package/dist/js/feedback/FeedbackWidgetManager.js.map +1 -1
- package/dist/js/feedback/defaults.d.ts +1 -1
- package/dist/js/feedback/defaults.d.ts.map +1 -1
- package/dist/js/feedback/defaults.js.map +1 -1
- package/dist/js/feedback/integration.d.ts +1 -1
- package/dist/js/feedback/integration.d.ts.map +1 -1
- package/dist/js/feedback/integration.js.map +1 -1
- package/dist/js/feedback/utils.d.ts +5 -0
- package/dist/js/feedback/utils.d.ts.map +1 -1
- package/dist/js/feedback/utils.js +10 -1
- package/dist/js/feedback/utils.js.map +1 -1
- package/dist/js/index.d.ts +2 -2
- package/dist/js/index.d.ts.map +1 -1
- package/dist/js/index.js +1 -1
- package/dist/js/index.js.map +1 -1
- package/dist/js/integrations/debugsymbolicator.js +2 -1
- package/dist/js/integrations/debugsymbolicator.js.map +1 -1
- package/dist/js/integrations/debugsymbolicatorutils.d.ts.map +1 -1
- package/dist/js/integrations/debugsymbolicatorutils.js +12 -2
- package/dist/js/integrations/debugsymbolicatorutils.js.map +1 -1
- package/dist/js/integrations/default.d.ts.map +1 -1
- package/dist/js/integrations/default.js +9 -5
- package/dist/js/integrations/default.js.map +1 -1
- package/dist/js/integrations/expocontext.d.ts +18 -0
- package/dist/js/integrations/expocontext.d.ts.map +1 -1
- package/dist/js/integrations/expocontext.js +20 -12
- package/dist/js/integrations/expocontext.js.map +1 -1
- package/dist/js/integrations/nativelinkederrors.js +4 -3
- package/dist/js/integrations/nativelinkederrors.js.map +1 -1
- package/dist/js/integrations/reactnativeerrorhandlers.d.ts.map +1 -1
- package/dist/js/integrations/reactnativeerrorhandlers.js +2 -1
- package/dist/js/integrations/reactnativeerrorhandlers.js.map +1 -1
- package/dist/js/integrations/screenshot.js +3 -3
- package/dist/js/integrations/screenshot.js.map +1 -1
- package/dist/js/integrations/spotlight.d.ts.map +1 -1
- package/dist/js/integrations/spotlight.js +8 -4
- package/dist/js/integrations/spotlight.js.map +1 -1
- package/dist/js/integrations/viewhierarchy.js +2 -1
- package/dist/js/integrations/viewhierarchy.js.map +1 -1
- package/dist/js/options.d.ts +8 -1
- package/dist/js/options.d.ts.map +1 -1
- package/dist/js/options.js.map +1 -1
- package/dist/js/profiling/cache.d.ts +1 -1
- package/dist/js/profiling/convertHermesProfile.d.ts.map +1 -1
- package/dist/js/profiling/convertHermesProfile.js +18 -5
- package/dist/js/profiling/convertHermesProfile.js.map +1 -1
- package/dist/js/profiling/debugid.d.ts.map +1 -1
- package/dist/js/profiling/debugid.js +9 -1
- package/dist/js/profiling/debugid.js.map +1 -1
- package/dist/js/profiling/hermes.d.ts +1 -1
- package/dist/js/profiling/hermes.d.ts.map +1 -1
- package/dist/js/profiling/integration.js +2 -1
- package/dist/js/profiling/integration.js.map +1 -1
- package/dist/js/profiling/utils.d.ts.map +1 -1
- package/dist/js/profiling/utils.js +15 -17
- package/dist/js/profiling/utils.js.map +1 -1
- package/dist/js/replay/CustomMask.js +1 -1
- package/dist/js/replay/CustomMask.js.map +1 -1
- package/dist/js/replay/mobilereplay.js +2 -1
- package/dist/js/replay/mobilereplay.js.map +1 -1
- package/dist/js/scopeSync.d.ts.map +1 -1
- package/dist/js/scopeSync.js +7 -1
- package/dist/js/scopeSync.js.map +1 -1
- package/dist/js/sdk.d.ts.map +1 -1
- package/dist/js/sdk.js +2 -2
- package/dist/js/sdk.js.map +1 -1
- package/dist/js/tools/ModulesCollector.js +1 -0
- package/dist/js/tools/ModulesCollector.js.map +1 -1
- package/dist/js/tools/collectModules.js +1 -0
- package/dist/js/tools/collectModules.js.map +1 -1
- package/dist/js/tools/enableLogger.js +1 -0
- package/dist/js/tools/enableLogger.js.map +1 -1
- package/dist/js/tools/metroMiddleware.js +2 -1
- package/dist/js/tools/metroMiddleware.js.map +1 -1
- package/dist/js/tools/metroconfig.js +5 -3
- package/dist/js/tools/metroconfig.js.map +1 -1
- package/dist/js/tools/sentryBabelTransformer.js +1 -0
- package/dist/js/tools/sentryBabelTransformer.js.map +1 -1
- package/dist/js/tools/sentryBabelTransformerUtils.js +1 -0
- package/dist/js/tools/sentryBabelTransformerUtils.js.map +1 -1
- package/dist/js/tools/sentryMetroSerializer.js +1 -0
- package/dist/js/tools/sentryMetroSerializer.js.map +1 -1
- package/dist/js/tools/utils.js +1 -0
- package/dist/js/tools/utils.js.map +1 -1
- package/dist/js/tools/vendor/expo/expoconfig.js +1 -0
- package/dist/js/tools/vendor/expo/expoconfig.js.map +1 -1
- package/dist/js/tools/vendor/metro/metroBabelTransformer.js +1 -0
- package/dist/js/tools/vendor/metro/metroBabelTransformer.js.map +1 -1
- package/dist/js/tools/vendor/metro/utils.js +1 -0
- package/dist/js/tools/vendor/metro/utils.js.map +1 -1
- package/dist/js/touchevents.d.ts.map +1 -1
- package/dist/js/touchevents.js +4 -0
- package/dist/js/touchevents.js.map +1 -1
- package/dist/js/tracing/integrations/appStart.d.ts +1 -1
- package/dist/js/tracing/integrations/appStart.d.ts.map +1 -1
- package/dist/js/tracing/integrations/appStart.js +9 -2
- package/dist/js/tracing/integrations/appStart.js.map +1 -1
- package/dist/js/tracing/integrations/nativeFrames.js.map +1 -1
- package/dist/js/tracing/integrations/stalltracking.d.ts +1 -1
- package/dist/js/tracing/integrations/stalltracking.d.ts.map +1 -1
- package/dist/js/tracing/integrations/timeToDisplayIntegration.d.ts.map +1 -1
- package/dist/js/tracing/integrations/timeToDisplayIntegration.js +14 -10
- package/dist/js/tracing/integrations/timeToDisplayIntegration.js.map +1 -1
- package/dist/js/tracing/onSpanEndUtils.d.ts +1 -1
- package/dist/js/tracing/onSpanEndUtils.d.ts.map +1 -1
- package/dist/js/tracing/onSpanEndUtils.js +2 -1
- package/dist/js/tracing/onSpanEndUtils.js.map +1 -1
- package/dist/js/tracing/reactnativenavigation.js +1 -1
- package/dist/js/tracing/reactnativenavigation.js.map +1 -1
- package/dist/js/tracing/reactnativeprofiler.d.ts +3 -1
- package/dist/js/tracing/reactnativeprofiler.d.ts.map +1 -1
- package/dist/js/tracing/reactnativeprofiler.js +2 -1
- package/dist/js/tracing/reactnativeprofiler.js.map +1 -1
- package/dist/js/tracing/reactnativetracing.d.ts +4 -1
- package/dist/js/tracing/reactnativetracing.d.ts.map +1 -1
- package/dist/js/tracing/reactnativetracing.js +5 -1
- package/dist/js/tracing/reactnativetracing.js.map +1 -1
- package/dist/js/tracing/reactnavigation.d.ts.map +1 -1
- package/dist/js/tracing/reactnavigation.js +5 -4
- package/dist/js/tracing/reactnavigation.js.map +1 -1
- package/dist/js/tracing/span.js +3 -3
- package/dist/js/tracing/span.js.map +1 -1
- package/dist/js/tracing/timeToDisplayFallback.d.ts +1 -1
- package/dist/js/tracing/timeToDisplayFallback.d.ts.map +1 -1
- package/dist/js/tracing/timeToDisplayFallback.js.map +1 -1
- package/dist/js/transports/encodePolyfill.d.ts.map +1 -1
- package/dist/js/transports/encodePolyfill.js +5 -5
- package/dist/js/transports/encodePolyfill.js.map +1 -1
- package/dist/js/utils/AsyncExpiringMap.d.ts.map +1 -1
- package/dist/js/utils/AsyncExpiringMap.js +8 -4
- package/dist/js/utils/AsyncExpiringMap.js.map +1 -1
- package/dist/js/utils/envelope.d.ts.map +1 -1
- package/dist/js/utils/envelope.js +1 -2
- package/dist/js/utils/envelope.js.map +1 -1
- package/dist/js/utils/environment.d.ts.map +1 -1
- package/dist/js/utils/environment.js +5 -6
- package/dist/js/utils/environment.js.map +1 -1
- package/dist/js/utils/rnlibraries.d.ts.map +1 -1
- package/dist/js/utils/rnlibraries.js +24 -0
- package/dist/js/utils/rnlibraries.js.map +1 -1
- package/dist/js/vendor/base64-js/fromByteArray.d.ts.map +1 -1
- package/dist/js/vendor/base64-js/fromByteArray.js +6 -0
- package/dist/js/vendor/base64-js/fromByteArray.js.map +1 -1
- package/dist/js/version.d.ts +1 -1
- package/dist/js/version.d.ts.map +1 -1
- package/dist/js/version.js +1 -1
- package/dist/js/version.js.map +1 -1
- package/dist/js/wrapper.js +3 -2
- package/dist/js/wrapper.js.map +1 -1
- package/ios/RNSentryVersion.m +1 -1
- package/package.json +12 -13
- package/plugin/build/withSentry.js +1 -1
- package/plugin/build/withSentryAndroidGradlePlugin.js +1 -1
- package/ts3.8/dist/js/client.d.ts +12 -0
- package/ts3.8/dist/js/feedback/FeedbackWidget.d.ts +1 -1
- package/ts3.8/dist/js/feedback/FeedbackWidget.types.d.ts +29 -29
- package/ts3.8/dist/js/feedback/defaults.d.ts +1 -1
- package/ts3.8/dist/js/feedback/integration.d.ts +1 -1
- package/ts3.8/dist/js/feedback/utils.d.ts +5 -0
- package/ts3.8/dist/js/index.d.ts +2 -2
- package/ts3.8/dist/js/integrations/expocontext.d.ts +18 -0
- package/ts3.8/dist/js/options.d.ts +8 -1
- package/ts3.8/dist/js/profiling/cache.d.ts +1 -1
- package/ts3.8/dist/js/profiling/hermes.d.ts +1 -1
- package/ts3.8/dist/js/tracing/integrations/appStart.d.ts +1 -1
- package/ts3.8/dist/js/tracing/integrations/stalltracking.d.ts +1 -1
- package/ts3.8/dist/js/tracing/onSpanEndUtils.d.ts +1 -1
- package/ts3.8/dist/js/tracing/reactnativeprofiler.d.ts +3 -1
- package/ts3.8/dist/js/tracing/reactnativetracing.d.ts +4 -1
- package/ts3.8/dist/js/tracing/timeToDisplayFallback.d.ts +1 -1
- 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
|
|
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
|
|
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:
|
|
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
|
|
18
|
+
showBranding: boolean;
|
|
19
19
|
/**
|
|
20
20
|
* Should the email field be required?
|
|
21
21
|
*/
|
|
22
|
-
isEmailRequired
|
|
22
|
+
isEmailRequired: boolean;
|
|
23
23
|
/**
|
|
24
24
|
* Should the email field be validated?
|
|
25
25
|
*/
|
|
26
|
-
shouldValidateEmail
|
|
26
|
+
shouldValidateEmail: boolean;
|
|
27
27
|
/**
|
|
28
28
|
* Should the name field be required?
|
|
29
29
|
*/
|
|
30
|
-
isNameRequired
|
|
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
|
|
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
|
|
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
|
|
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
|
|
60
|
+
cancelButtonLabel: string;
|
|
61
61
|
/**
|
|
62
62
|
* The label for the Feedback form submit button that sends feedback
|
|
63
63
|
*/
|
|
64
|
-
submitButtonLabel
|
|
64
|
+
submitButtonLabel: string;
|
|
65
65
|
/**
|
|
66
66
|
* The title of the Feedback form
|
|
67
67
|
*/
|
|
68
|
-
formTitle
|
|
68
|
+
formTitle: string;
|
|
69
69
|
/**
|
|
70
70
|
* Label for the email input
|
|
71
71
|
*/
|
|
72
|
-
emailLabel
|
|
72
|
+
emailLabel: string;
|
|
73
73
|
/**
|
|
74
74
|
* Placeholder text for Feedback email input
|
|
75
75
|
*/
|
|
76
|
-
emailPlaceholder
|
|
76
|
+
emailPlaceholder: string;
|
|
77
77
|
/**
|
|
78
78
|
* Label for the message input
|
|
79
79
|
*/
|
|
80
|
-
messageLabel
|
|
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
|
|
88
|
+
nameLabel: string;
|
|
89
89
|
/**
|
|
90
90
|
* Message after feedback was sent successfully
|
|
91
91
|
*/
|
|
92
|
-
successMessageText
|
|
92
|
+
successMessageText: string;
|
|
93
93
|
/**
|
|
94
94
|
* Placeholder text for Feedback name input
|
|
95
95
|
*/
|
|
96
|
-
namePlaceholder
|
|
96
|
+
namePlaceholder: string;
|
|
97
97
|
/**
|
|
98
98
|
* Text which indicates that a field is required
|
|
99
99
|
*/
|
|
100
|
-
isRequiredLabel
|
|
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
|
|
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
|
|
108
|
+
removeScreenshotButtonLabel: string;
|
|
109
109
|
/**
|
|
110
110
|
* The title of the error dialog
|
|
111
111
|
*/
|
|
112
|
-
errorTitle
|
|
112
|
+
errorTitle: string;
|
|
113
113
|
/**
|
|
114
114
|
* The error message when the form is invalid
|
|
115
115
|
*/
|
|
116
|
-
formError
|
|
116
|
+
formError: string;
|
|
117
117
|
/**
|
|
118
118
|
* The error message when the email is invalid
|
|
119
119
|
*/
|
|
120
|
-
emailError
|
|
120
|
+
emailError: string;
|
|
121
121
|
/**
|
|
122
122
|
* Message when there is a generic error
|
|
123
123
|
*/
|
|
124
|
-
genericError
|
|
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
|
|
133
|
+
onFormOpen: () => void;
|
|
134
134
|
/**
|
|
135
135
|
* Callback when form is closed and not submitted
|
|
136
136
|
*/
|
|
137
|
-
onFormClose
|
|
137
|
+
onFormClose: () => void;
|
|
138
138
|
/**
|
|
139
139
|
* Callback when a screenshot is added
|
|
140
140
|
*/
|
|
141
|
-
onAddScreenshot
|
|
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
|
|
147
|
+
onSubmitSuccess: (data: FeedbackFormData) => void;
|
|
148
148
|
/**
|
|
149
149
|
* Callback when feedback is unsuccessfully submitted
|
|
150
150
|
*/
|
|
151
|
-
onSubmitError
|
|
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
|
|
155
|
+
onFormSubmitted: () => void;
|
|
156
156
|
}
|
|
157
157
|
/**
|
|
158
158
|
* Image Picker configuration interface compatible with:
|
|
@@ -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
|
package/ts3.8/dist/js/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type { Breadcrumb,
|
|
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,
|
|
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;
|
|
@@ -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:
|
|
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
|
-
*
|
|
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 = "
|
|
3
|
+
export declare const SDK_VERSION = "7.0.0-alpha.0";
|
|
4
4
|
//# sourceMappingURL=version.d.ts.map
|