@sentry/react-native 8.5.0 → 8.7.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 +2 -2
- package/android/expo-handler/build.gradle +20 -0
- package/android/expo-handler/src/main/java/io/sentry/react/expo/SentryExpoPackage.java +22 -0
- package/android/expo-handler/src/main/java/io/sentry/react/expo/SentryReactNativeHostHandler.java +48 -0
- package/android/expo-stubs/README.md +7 -0
- package/android/expo-stubs/build.gradle +23 -0
- package/android/expo-stubs/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/expo-stubs/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/android/expo-stubs/gradlew +251 -0
- package/android/expo-stubs/gradlew.bat +94 -0
- package/android/expo-stubs/settings.gradle +1 -0
- package/android/expo-stubs/src/main/java/expo/modules/core/interfaces/Package.java +11 -0
- package/android/expo-stubs/src/main/java/expo/modules/core/interfaces/ReactNativeHostHandler.java +7 -0
- package/android/libs/expo-stubs.jar +0 -0
- package/android/libs/replay-stubs.jar +0 -0
- package/android/replay-stubs/build.gradle +1 -1
- package/android/src/main/java/io/sentry/react/RNSentryFrameDelayCollector.java +128 -0
- package/android/src/main/java/io/sentry/react/RNSentryModuleImpl.java +63 -11
- package/android/src/main/java/io/sentry/react/RNSentryVersion.java +1 -1
- package/android/src/newarch/java/io/sentry/react/RNSentryModule.java +6 -0
- package/android/src/oldarch/java/io/sentry/react/RNSentryModule.java +6 -0
- package/dist/js/NativeLogListener.d.ts.map +1 -1
- package/dist/js/NativeLogListener.js.map +1 -1
- package/dist/js/NativeRNSentry.d.ts +1 -0
- package/dist/js/NativeRNSentry.d.ts.map +1 -1
- package/dist/js/NativeRNSentry.js.map +1 -1
- package/dist/js/RNSentryReplayMaskNativeComponent.d.ts.map +1 -1
- package/dist/js/RNSentryReplayMaskNativeComponent.js +1 -2
- package/dist/js/RNSentryReplayMaskNativeComponent.js.map +1 -1
- package/dist/js/RNSentryReplayUnmaskNativeComponent.d.ts.map +1 -1
- package/dist/js/RNSentryReplayUnmaskNativeComponent.js +1 -2
- package/dist/js/RNSentryReplayUnmaskNativeComponent.js.map +1 -1
- package/dist/js/breadcrumb.d.ts.map +1 -1
- package/dist/js/breadcrumb.js.map +1 -1
- package/dist/js/client.d.ts.map +1 -1
- package/dist/js/client.js +1 -1
- package/dist/js/client.js.map +1 -1
- package/dist/js/feedback/FeedbackButton.d.ts +2 -1
- package/dist/js/feedback/FeedbackButton.d.ts.map +1 -1
- package/dist/js/feedback/FeedbackButton.js +5 -4
- package/dist/js/feedback/FeedbackButton.js.map +1 -1
- package/dist/js/feedback/{FeedbackWidget.d.ts → FeedbackForm.d.ts} +5 -5
- package/dist/js/feedback/FeedbackForm.d.ts.map +1 -0
- package/dist/js/feedback/{FeedbackWidget.js → FeedbackForm.js} +32 -30
- package/dist/js/feedback/FeedbackForm.js.map +1 -0
- package/dist/js/feedback/FeedbackForm.styles.d.ts +11 -0
- package/dist/js/feedback/FeedbackForm.styles.d.ts.map +1 -0
- package/dist/js/feedback/{FeedbackWidget.styles.js → FeedbackForm.styles.js} +1 -1
- package/dist/js/feedback/FeedbackForm.styles.js.map +1 -0
- package/dist/js/feedback/{FeedbackWidget.theme.d.ts → FeedbackForm.theme.d.ts} +7 -5
- package/dist/js/feedback/FeedbackForm.theme.d.ts.map +1 -0
- package/dist/js/feedback/{FeedbackWidget.theme.js → FeedbackForm.theme.js} +1 -1
- package/dist/js/feedback/FeedbackForm.theme.js.map +1 -0
- package/{ts3.8/dist/js/feedback/FeedbackWidget.types.d.ts → dist/js/feedback/FeedbackForm.types.d.ts} +305 -299
- package/dist/js/feedback/FeedbackForm.types.d.ts.map +1 -0
- package/dist/js/feedback/FeedbackForm.types.js +2 -0
- package/dist/js/feedback/FeedbackForm.types.js.map +1 -0
- package/dist/js/feedback/{FeedbackWidgetManager.d.ts → FeedbackFormManager.d.ts} +12 -4
- package/dist/js/feedback/FeedbackFormManager.d.ts.map +1 -0
- package/dist/js/feedback/{FeedbackWidgetManager.js → FeedbackFormManager.js} +22 -13
- package/dist/js/feedback/FeedbackFormManager.js.map +1 -0
- package/dist/js/feedback/{FeedbackWidgetProvider.d.ts → FeedbackFormProvider.d.ts} +10 -10
- package/dist/js/feedback/FeedbackFormProvider.d.ts.map +1 -0
- package/dist/js/feedback/{FeedbackWidgetProvider.js → FeedbackFormProvider.js} +18 -15
- package/dist/js/feedback/FeedbackFormProvider.js.map +1 -0
- package/dist/js/feedback/ScreenshotButton.d.ts +2 -2
- package/dist/js/feedback/ScreenshotButton.d.ts.map +1 -1
- package/dist/js/feedback/ScreenshotButton.js +6 -5
- package/dist/js/feedback/ScreenshotButton.js.map +1 -1
- package/dist/js/feedback/ShakeToReportBug.d.ts.map +1 -1
- package/dist/js/feedback/ShakeToReportBug.js.map +1 -1
- package/dist/js/feedback/defaults.d.ts +2 -2
- 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 +13 -13
- package/dist/js/feedback/integration.d.ts.map +1 -1
- package/dist/js/feedback/integration.js.map +1 -1
- package/dist/js/feedback/lazy.d.ts +5 -0
- package/dist/js/feedback/lazy.d.ts.map +1 -1
- package/dist/js/feedback/lazy.js +12 -0
- package/dist/js/feedback/lazy.js.map +1 -1
- package/dist/js/feedback/utils.d.ts.map +1 -1
- package/dist/js/feedback/utils.js +1 -0
- package/dist/js/feedback/utils.js.map +1 -1
- package/dist/js/index.d.ts +12 -3
- package/dist/js/index.d.ts.map +1 -1
- package/dist/js/index.js +12 -3
- package/dist/js/index.js.map +1 -1
- package/dist/js/integrations/appRegistry.d.ts.map +1 -1
- package/dist/js/integrations/appRegistry.js.map +1 -1
- package/dist/js/integrations/breadcrumbs.d.ts.map +1 -1
- package/dist/js/integrations/breadcrumbs.js +1 -1
- package/dist/js/integrations/breadcrumbs.js.map +1 -1
- package/dist/js/integrations/debugsymbolicator.d.ts.map +1 -1
- package/dist/js/integrations/debugsymbolicator.js +4 -5
- 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.map +1 -1
- package/dist/js/integrations/default.d.ts.map +1 -1
- package/dist/js/integrations/default.js +1 -2
- package/dist/js/integrations/default.js.map +1 -1
- package/dist/js/integrations/devicecontext.d.ts.map +1 -1
- package/dist/js/integrations/devicecontext.js +1 -1
- package/dist/js/integrations/devicecontext.js.map +1 -1
- package/dist/js/integrations/expoconstants.d.ts.map +1 -1
- package/dist/js/integrations/expoconstants.js.map +1 -1
- package/dist/js/integrations/expocontext.d.ts.map +1 -1
- package/dist/js/integrations/expocontext.js.map +1 -1
- package/dist/js/integrations/expoupdateslistener.d.ts.map +1 -1
- package/dist/js/integrations/expoupdateslistener.js +0 -1
- package/dist/js/integrations/expoupdateslistener.js.map +1 -1
- package/dist/js/integrations/graphql.d.ts.map +1 -1
- package/dist/js/integrations/graphql.js.map +1 -1
- package/dist/js/integrations/logEnricherIntegration.d.ts.map +1 -1
- package/dist/js/integrations/logEnricherIntegration.js +1 -1
- package/dist/js/integrations/logEnricherIntegration.js.map +1 -1
- package/dist/js/integrations/modulesloader.d.ts.map +1 -1
- package/dist/js/integrations/modulesloader.js.map +1 -1
- package/dist/js/integrations/nativelinkederrors.d.ts.map +1 -1
- package/dist/js/integrations/nativelinkederrors.js +1 -0
- package/dist/js/integrations/nativelinkederrors.js.map +1 -1
- package/dist/js/integrations/primitiveTagIntegration.d.ts.map +1 -1
- package/dist/js/integrations/primitiveTagIntegration.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/reactnativeerrorhandlersutils.d.ts.map +1 -1
- package/dist/js/integrations/reactnativeerrorhandlersutils.js +0 -5
- package/dist/js/integrations/reactnativeerrorhandlersutils.js.map +1 -1
- package/dist/js/integrations/reactnativeinfo.d.ts.map +1 -1
- package/dist/js/integrations/reactnativeinfo.js.map +1 -1
- package/dist/js/integrations/release.d.ts.map +1 -1
- package/dist/js/integrations/release.js +1 -1
- package/dist/js/integrations/release.js.map +1 -1
- package/dist/js/integrations/rewriteframes.d.ts.map +1 -1
- package/dist/js/integrations/rewriteframes.js.map +1 -1
- package/dist/js/integrations/screenshot.d.ts.map +1 -1
- package/dist/js/integrations/screenshot.js +1 -1
- package/dist/js/integrations/screenshot.js.map +1 -1
- package/dist/js/integrations/sdkinfo.d.ts.map +1 -1
- package/dist/js/integrations/sdkinfo.js.map +1 -1
- package/dist/js/integrations/spotlight.d.ts.map +1 -1
- package/dist/js/integrations/spotlight.js.map +1 -1
- package/dist/js/integrations/supabase.d.ts.map +1 -1
- package/dist/js/integrations/supabase.js.map +1 -1
- package/dist/js/integrations/viewhierarchy.d.ts.map +1 -1
- package/dist/js/integrations/viewhierarchy.js +1 -1
- package/dist/js/integrations/viewhierarchy.js.map +1 -1
- package/dist/js/misc.js.map +1 -1
- package/dist/js/options.d.ts +1 -1
- package/dist/js/options.d.ts.map +1 -1
- package/dist/js/options.js.map +1 -1
- package/dist/js/playground/examples.d.ts.map +1 -1
- package/dist/js/playground/examples.js.map +1 -1
- package/dist/js/playground/modal.d.ts +2 -2
- package/dist/js/playground/modal.d.ts.map +1 -1
- package/dist/js/playground/modal.js +5 -103
- package/dist/js/playground/modal.js.map +1 -1
- package/dist/js/playground/modal.styles.d.ts +100 -0
- package/dist/js/playground/modal.styles.d.ts.map +1 -0
- package/dist/js/playground/modal.styles.js +98 -0
- package/dist/js/playground/modal.styles.js.map +1 -0
- package/dist/js/profiling/cache.js +2 -2
- package/dist/js/profiling/cache.js.map +1 -1
- package/dist/js/profiling/convertHermesProfile.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/js/profiling/hermes.d.ts.map +1 -1
- package/dist/js/profiling/hermes.js.map +1 -1
- package/dist/js/profiling/integration.d.ts.map +1 -1
- package/dist/js/profiling/integration.js.map +1 -1
- package/dist/js/profiling/types.d.ts.map +1 -1
- package/dist/js/profiling/types.js.map +1 -1
- package/dist/js/profiling/utils.d.ts.map +1 -1
- package/dist/js/profiling/utils.js +1 -1
- package/dist/js/profiling/utils.js.map +1 -1
- package/dist/js/replay/CustomMask.d.ts +1 -1
- package/dist/js/replay/CustomMask.d.ts.map +1 -1
- package/dist/js/replay/CustomMask.js +1 -1
- package/dist/js/replay/CustomMask.js.map +1 -1
- package/dist/js/replay/CustomMask.web.d.ts +1 -1
- package/dist/js/replay/CustomMask.web.d.ts.map +1 -1
- package/dist/js/replay/CustomMask.web.js +2 -2
- package/dist/js/replay/CustomMask.web.js.map +1 -1
- package/dist/js/replay/browserReplay.d.ts.map +1 -1
- package/dist/js/replay/browserReplay.js +0 -2
- package/dist/js/replay/browserReplay.js.map +1 -1
- package/dist/js/replay/mobilereplay.d.ts.map +1 -1
- package/dist/js/replay/mobilereplay.js +21 -2
- package/dist/js/replay/mobilereplay.js.map +1 -1
- package/dist/js/replay/networkUtils.d.ts +0 -1
- package/dist/js/replay/networkUtils.d.ts.map +1 -1
- package/dist/js/replay/networkUtils.js.map +1 -1
- package/dist/js/replay/xhrUtils.d.ts.map +1 -1
- package/dist/js/replay/xhrUtils.js.map +1 -1
- package/dist/js/scopeSync.d.ts.map +1 -1
- package/dist/js/scopeSync.js +1 -1
- package/dist/js/scopeSync.js.map +1 -1
- package/dist/js/sdk.d.ts +21 -0
- package/dist/js/sdk.d.ts.map +1 -1
- package/dist/js/sdk.js +42 -18
- package/dist/js/sdk.js.map +1 -1
- package/dist/js/tools/ModulesCollector.js +1 -1
- package/dist/js/tools/ModulesCollector.js.map +1 -1
- package/dist/js/tools/collectModules.js +0 -1
- package/dist/js/tools/collectModules.js.map +1 -1
- package/dist/js/tools/easBuildHooks.d.ts.map +1 -1
- package/dist/js/tools/easBuildHooks.js +13 -14
- package/dist/js/tools/easBuildHooks.js.map +1 -1
- package/dist/js/tools/enableLogger.js +1 -2
- package/dist/js/tools/enableLogger.js.map +1 -1
- package/dist/js/tools/metroMiddleware.d.ts.map +1 -1
- package/dist/js/tools/metroMiddleware.js.map +1 -1
- package/dist/js/tools/metroconfig.d.ts.map +1 -1
- package/dist/js/tools/metroconfig.js +10 -12
- package/dist/js/tools/metroconfig.js.map +1 -1
- package/dist/js/tools/sentryBabelTransformerUtils.d.ts.map +1 -1
- package/dist/js/tools/sentryBabelTransformerUtils.js +9 -10
- package/dist/js/tools/sentryBabelTransformerUtils.js.map +1 -1
- package/dist/js/tools/sentryMetroSerializer.d.ts.map +1 -1
- package/dist/js/tools/sentryMetroSerializer.js +6 -7
- package/dist/js/tools/sentryMetroSerializer.js.map +1 -1
- package/dist/js/tools/sentryOptionsSerializer.d.ts.map +1 -1
- package/dist/js/tools/sentryOptionsSerializer.js +3 -5
- package/dist/js/tools/sentryOptionsSerializer.js.map +1 -1
- package/dist/js/tools/sentryReleaseInjector.d.ts +1 -1
- package/dist/js/tools/sentryReleaseInjector.d.ts.map +1 -1
- package/dist/js/tools/sentryReleaseInjector.js.map +1 -1
- package/dist/js/tools/utils.d.ts.map +1 -1
- package/dist/js/tools/utils.js +7 -10
- package/dist/js/tools/utils.js.map +1 -1
- package/dist/js/tools/vendor/metro/countLines.d.ts.map +1 -1
- package/dist/js/tools/vendor/metro/utils.d.ts.map +1 -1
- package/dist/js/tools/vendor/metro/utils.js +5 -5
- 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 +19 -19
- package/dist/js/touchevents.js.map +1 -1
- package/dist/js/tracing/expoAsset.js.map +1 -1
- package/dist/js/tracing/expoImage.d.ts.map +1 -1
- package/dist/js/tracing/expoImage.js +1 -1
- package/dist/js/tracing/expoImage.js.map +1 -1
- package/dist/js/tracing/expoRouter.d.ts.map +1 -1
- package/dist/js/tracing/expoRouter.js.map +1 -1
- package/dist/js/tracing/gesturetracing.d.ts.map +1 -1
- package/dist/js/tracing/gesturetracing.js.map +1 -1
- package/dist/js/tracing/integrations/appStart.d.ts +19 -1
- package/dist/js/tracing/integrations/appStart.d.ts.map +1 -1
- package/dist/js/tracing/integrations/appStart.js +144 -9
- package/dist/js/tracing/integrations/appStart.js.map +1 -1
- package/dist/js/tracing/integrations/nativeFrames.d.ts.map +1 -1
- package/dist/js/tracing/integrations/nativeFrames.js +47 -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/stalltracking.js +4 -2
- package/dist/js/tracing/integrations/stalltracking.js.map +1 -1
- package/dist/js/tracing/integrations/timeToDisplayIntegration.d.ts.map +1 -1
- package/dist/js/tracing/integrations/timeToDisplayIntegration.js +15 -15
- package/dist/js/tracing/integrations/timeToDisplayIntegration.js.map +1 -1
- package/dist/js/tracing/integrations/userInteraction.d.ts.map +1 -1
- package/dist/js/tracing/integrations/userInteraction.js.map +1 -1
- package/dist/js/tracing/onSpanEndUtils.d.ts.map +1 -1
- package/dist/js/tracing/onSpanEndUtils.js +43 -14
- package/dist/js/tracing/onSpanEndUtils.js.map +1 -1
- package/dist/js/tracing/reactnativenavigation.d.ts.map +1 -1
- package/dist/js/tracing/reactnativenavigation.js.map +1 -1
- package/dist/js/tracing/reactnativeprofiler.d.ts.map +1 -1
- package/dist/js/tracing/reactnativeprofiler.js +2 -2
- package/dist/js/tracing/reactnativeprofiler.js.map +1 -1
- package/dist/js/tracing/reactnativetracing.d.ts.map +1 -1
- package/dist/js/tracing/reactnativetracing.js +0 -1
- package/dist/js/tracing/reactnativetracing.js.map +1 -1
- package/dist/js/tracing/reactnavigation.d.ts +3 -0
- package/dist/js/tracing/reactnavigation.d.ts.map +1 -1
- package/dist/js/tracing/reactnavigation.js +6 -4
- package/dist/js/tracing/reactnavigation.js.map +1 -1
- package/dist/js/tracing/span.d.ts +2 -17
- package/dist/js/tracing/span.d.ts.map +1 -1
- package/dist/js/tracing/span.js +1 -1
- package/dist/js/tracing/span.js.map +1 -1
- package/dist/js/tracing/timeToDisplayFallback.d.ts.map +1 -1
- package/dist/js/tracing/timetodisplay.d.ts.map +1 -1
- package/dist/js/tracing/timetodisplay.js +42 -19
- package/dist/js/tracing/timetodisplay.js.map +1 -1
- package/dist/js/tracing/timetodisplaynative.d.ts +1 -1
- package/dist/js/tracing/timetodisplaynative.d.ts.map +1 -1
- package/dist/js/tracing/timetodisplaynative.js +5 -4
- package/dist/js/tracing/timetodisplaynative.js.map +1 -1
- package/dist/js/tracing/types.js.map +1 -1
- package/dist/js/tracing/utils.d.ts.map +1 -1
- package/dist/js/tracing/utils.js.map +1 -1
- package/dist/js/transports/encodePolyfill.d.ts +1 -1
- package/dist/js/transports/encodePolyfill.d.ts.map +1 -1
- package/dist/js/transports/encodePolyfill.js.map +1 -1
- package/dist/js/transports/native.d.ts.map +1 -1
- package/dist/js/transports/native.js.map +1 -1
- package/dist/js/utils/AsyncExpiringMap.js.map +1 -1
- package/dist/js/utils/encode.js.map +1 -1
- package/dist/js/utils/envelope.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/js/utils/expomodules.d.ts.map +1 -1
- package/dist/js/utils/expomodules.js.map +1 -1
- package/dist/js/utils/fill.js +1 -1
- package/dist/js/utils/fill.js.map +1 -1
- package/dist/js/utils/ignorerequirecyclelogs.js.map +1 -1
- package/dist/js/utils/normalize.js +2 -2
- package/dist/js/utils/normalize.js.map +1 -1
- package/dist/js/utils/outcome.js.map +1 -1
- package/dist/js/utils/primitiveConverter.js.map +1 -1
- package/dist/js/utils/release.js.map +1 -1
- package/dist/js/utils/rnlibraries.d.ts.map +1 -1
- package/dist/js/utils/rnlibraries.js +1 -7
- package/dist/js/utils/rnlibraries.js.map +1 -1
- package/dist/js/utils/safe.d.ts.map +1 -1
- package/dist/js/utils/safe.js.map +1 -1
- package/dist/js/utils/span.d.ts.map +1 -1
- package/dist/js/utils/span.js.map +1 -1
- package/dist/js/utils/worldwide.d.ts +0 -1
- package/dist/js/utils/worldwide.d.ts.map +1 -1
- package/dist/js/utils/worldwide.js.map +1 -1
- package/dist/js/utils/xhr.d.ts +0 -1
- package/dist/js/utils/xhr.d.ts.map +1 -1
- package/dist/js/utils/xhr.js.map +1 -1
- package/dist/js/vendor/base64-js/fromByteArray.js +1 -1
- package/dist/js/vendor/base64-js/fromByteArray.js.map +1 -1
- package/dist/js/vendor/buffer/utf8ToBytes.js +1 -1
- package/dist/js/vendor/buffer/utf8ToBytes.js.map +1 -1
- package/dist/js/vendor/react-native/index.d.ts.map +1 -1
- package/dist/js/vendor/react-native/index.js.map +1 -1
- package/dist/js/version.d.ts +1 -1
- package/dist/js/version.js +1 -1
- package/dist/js/version.js.map +1 -1
- package/dist/js/wrapper.d.ts +1 -0
- package/dist/js/wrapper.d.ts.map +1 -1
- package/dist/js/wrapper.js +20 -9
- package/dist/js/wrapper.js.map +1 -1
- package/expo-module.config.json +7 -0
- package/ios/RNSentry.mm +18 -1
- package/ios/RNSentryReplay.mm +1 -1
- package/ios/RNSentrySDK.m +1 -1
- package/ios/RNSentryStart.m +4 -1
- package/ios/RNSentryTimeToDisplay.m +48 -32
- package/ios/RNSentryVersion.m +1 -1
- package/ios/SentryScreenFramesWrapper.h +2 -0
- package/ios/SentryScreenFramesWrapper.m +35 -0
- package/package.json +18 -22
- package/plugin/build/logger.js +1 -1
- package/plugin/build/utils.js +2 -0
- package/plugin/build/withSentry.js +1 -2
- package/plugin/build/withSentryAndroid.js +2 -0
- package/plugin/build/withSentryAndroidGradlePlugin.d.ts +1 -1
- package/plugin/build/withSentryAndroidGradlePlugin.js +1 -1
- package/plugin/build/withSentryIOS.js +1 -3
- package/scripts/eas-build-hook.js +0 -2
- package/scripts/expo-upload-sourcemaps.js +0 -1
- package/src/js/NativeRNSentry.ts +3 -0
- package/src/js/RNSentryReplayMaskNativeComponent.ts +2 -3
- package/src/js/RNSentryReplayUnmaskNativeComponent.ts +2 -3
- package/ts3.8/dist/js/NativeRNSentry.d.ts +1 -0
- package/ts3.8/dist/js/feedback/FeedbackButton.d.ts +2 -1
- package/ts3.8/dist/js/feedback/{FeedbackWidget.d.ts → FeedbackForm.d.ts} +5 -5
- package/ts3.8/dist/js/feedback/FeedbackForm.styles.d.ts +11 -0
- package/ts3.8/dist/js/feedback/{FeedbackWidget.theme.d.ts → FeedbackForm.theme.d.ts} +7 -5
- package/{dist/js/feedback/FeedbackWidget.types.d.ts → ts3.8/dist/js/feedback/FeedbackForm.types.d.ts} +305 -299
- package/ts3.8/dist/js/feedback/{FeedbackWidgetManager.d.ts → FeedbackFormManager.d.ts} +12 -4
- package/ts3.8/dist/js/feedback/{FeedbackWidgetProvider.d.ts → FeedbackFormProvider.d.ts} +10 -10
- package/ts3.8/dist/js/feedback/ScreenshotButton.d.ts +2 -2
- package/ts3.8/dist/js/feedback/defaults.d.ts +2 -2
- package/ts3.8/dist/js/feedback/integration.d.ts +13 -13
- package/ts3.8/dist/js/feedback/lazy.d.ts +5 -0
- package/ts3.8/dist/js/index.d.ts +12 -3
- package/ts3.8/dist/js/options.d.ts +1 -1
- package/ts3.8/dist/js/playground/modal.d.ts +2 -2
- package/ts3.8/dist/js/playground/modal.styles.d.ts +100 -0
- package/ts3.8/dist/js/replay/CustomMask.d.ts +1 -1
- package/ts3.8/dist/js/replay/CustomMask.web.d.ts +1 -1
- package/ts3.8/dist/js/replay/networkUtils.d.ts +0 -1
- package/ts3.8/dist/js/sdk.d.ts +21 -0
- package/ts3.8/dist/js/tracing/integrations/appStart.d.ts +19 -1
- package/ts3.8/dist/js/tracing/integrations/stalltracking.d.ts +1 -1
- package/ts3.8/dist/js/tracing/reactnavigation.d.ts +3 -0
- package/ts3.8/dist/js/tracing/span.d.ts +2 -17
- package/ts3.8/dist/js/tracing/timetodisplaynative.d.ts +1 -1
- package/ts3.8/dist/js/transports/encodePolyfill.d.ts +1 -1
- package/ts3.8/dist/js/utils/worldwide.d.ts +0 -1
- package/ts3.8/dist/js/utils/xhr.d.ts +0 -1
- package/ts3.8/dist/js/version.d.ts +1 -1
- package/ts3.8/dist/js/wrapper.d.ts +1 -0
- package/dist/js/feedback/FeedbackWidget.d.ts.map +0 -1
- package/dist/js/feedback/FeedbackWidget.js.map +0 -1
- package/dist/js/feedback/FeedbackWidget.styles.d.ts +0 -11
- package/dist/js/feedback/FeedbackWidget.styles.d.ts.map +0 -1
- package/dist/js/feedback/FeedbackWidget.styles.js.map +0 -1
- package/dist/js/feedback/FeedbackWidget.theme.d.ts.map +0 -1
- package/dist/js/feedback/FeedbackWidget.theme.js.map +0 -1
- package/dist/js/feedback/FeedbackWidget.types.d.ts.map +0 -1
- package/dist/js/feedback/FeedbackWidget.types.js +0 -2
- package/dist/js/feedback/FeedbackWidget.types.js.map +0 -1
- package/dist/js/feedback/FeedbackWidgetManager.d.ts.map +0 -1
- package/dist/js/feedback/FeedbackWidgetManager.js.map +0 -1
- package/dist/js/feedback/FeedbackWidgetProvider.d.ts.map +0 -1
- package/dist/js/feedback/FeedbackWidgetProvider.js.map +0 -1
- package/ts3.8/dist/js/feedback/FeedbackWidget.styles.d.ts +0 -11
|
@@ -1,299 +1,305 @@
|
|
|
1
|
-
import type { FeedbackFormData } from '@sentry/core';
|
|
2
|
-
import type { ImageStyle, TextStyle, ViewStyle } from 'react-native';
|
|
3
|
-
/**
|
|
4
|
-
* The props for the feedback form
|
|
5
|
-
*/
|
|
6
|
-
export interface
|
|
7
|
-
styles?:
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* General feedback configuration
|
|
11
|
-
*/
|
|
12
|
-
export interface FeedbackGeneralConfiguration {
|
|
13
|
-
/**
|
|
14
|
-
* Show the Sentry branding
|
|
15
|
-
*
|
|
16
|
-
* @default true
|
|
17
|
-
*/
|
|
18
|
-
showBranding: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Should the email field be required?
|
|
21
|
-
*/
|
|
22
|
-
isEmailRequired: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Should the email field be validated?
|
|
25
|
-
*/
|
|
26
|
-
shouldValidateEmail: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Should the name field be required?
|
|
29
|
-
*/
|
|
30
|
-
isNameRequired: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Should the email input field be visible? Note: email will still be collected if set via `Sentry.setUser()`
|
|
33
|
-
*/
|
|
34
|
-
showEmail: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Should the name input field be visible? Note: name will still be collected if set via `Sentry.setUser()`
|
|
37
|
-
*/
|
|
38
|
-
showName: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* This flag determines whether the "Add Screenshot" button is displayed
|
|
41
|
-
* @default false
|
|
42
|
-
*/
|
|
43
|
-
enableScreenshot: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* This flag determines whether the "Take Screenshot" button is displayed
|
|
46
|
-
* @default false
|
|
47
|
-
*/
|
|
48
|
-
enableTakeScreenshot?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Enable auto-correct for text inputs.
|
|
51
|
-
*
|
|
52
|
-
* @default true
|
|
53
|
-
*/
|
|
54
|
-
autoCorrect?: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* Enable spell check for text inputs.
|
|
57
|
-
*
|
|
58
|
-
* @default true
|
|
59
|
-
*/
|
|
60
|
-
spellCheck?: boolean;
|
|
61
|
-
/**
|
|
62
|
-
* Fill in email/name input fields with Sentry user context if it exists.
|
|
63
|
-
* The value of the email/name keys represent the properties of your user context.
|
|
64
|
-
*/
|
|
65
|
-
useSentryUser?: {
|
|
66
|
-
email: string;
|
|
67
|
-
name: string;
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* All of the different text labels that can be customized
|
|
72
|
-
*/
|
|
73
|
-
export interface FeedbackTextConfiguration {
|
|
74
|
-
/**
|
|
75
|
-
* The label for the Feedback form cancel button that closes dialog
|
|
76
|
-
*/
|
|
77
|
-
cancelButtonLabel: string;
|
|
78
|
-
/**
|
|
79
|
-
* The label for the Feedback form submit button that sends feedback
|
|
80
|
-
*/
|
|
81
|
-
submitButtonLabel: string;
|
|
82
|
-
/**
|
|
83
|
-
* The title of the Feedback form
|
|
84
|
-
*/
|
|
85
|
-
formTitle: string;
|
|
86
|
-
/**
|
|
87
|
-
* Label for the email input
|
|
88
|
-
*/
|
|
89
|
-
emailLabel: string;
|
|
90
|
-
/**
|
|
91
|
-
* Placeholder text for Feedback email input
|
|
92
|
-
*/
|
|
93
|
-
emailPlaceholder: string;
|
|
94
|
-
/**
|
|
95
|
-
* Label for the message input
|
|
96
|
-
*/
|
|
97
|
-
messageLabel: string;
|
|
98
|
-
/**
|
|
99
|
-
* Placeholder text for Feedback message input
|
|
100
|
-
*/
|
|
101
|
-
messagePlaceholder?: string;
|
|
102
|
-
/**
|
|
103
|
-
* Label for the name input
|
|
104
|
-
*/
|
|
105
|
-
nameLabel: string;
|
|
106
|
-
/**
|
|
107
|
-
* Message after feedback was sent successfully
|
|
108
|
-
*/
|
|
109
|
-
successMessageText: string;
|
|
110
|
-
/**
|
|
111
|
-
* Placeholder text for Feedback name input
|
|
112
|
-
*/
|
|
113
|
-
namePlaceholder: string;
|
|
114
|
-
/**
|
|
115
|
-
* Text which indicates that a field is required
|
|
116
|
-
*/
|
|
117
|
-
isRequiredLabel: string;
|
|
118
|
-
/**
|
|
119
|
-
* The label for the button that adds a screenshot
|
|
120
|
-
*/
|
|
121
|
-
addScreenshotButtonLabel: string;
|
|
122
|
-
/**
|
|
123
|
-
* The label for the button that removes a screenshot
|
|
124
|
-
*/
|
|
125
|
-
removeScreenshotButtonLabel: string;
|
|
126
|
-
/**
|
|
127
|
-
* The label for the button that shows the capture screenshot button
|
|
128
|
-
*/
|
|
129
|
-
captureScreenshotButtonLabel?: string;
|
|
130
|
-
/**
|
|
131
|
-
* The title of the error dialog
|
|
132
|
-
*/
|
|
133
|
-
errorTitle: string;
|
|
134
|
-
/**
|
|
135
|
-
* The error message when the form is invalid
|
|
136
|
-
*/
|
|
137
|
-
formError: string;
|
|
138
|
-
/**
|
|
139
|
-
* The error message when the email is invalid
|
|
140
|
-
*/
|
|
141
|
-
emailError: string;
|
|
142
|
-
/**
|
|
143
|
-
* The error message when the capture screenshot fails
|
|
144
|
-
*/
|
|
145
|
-
captureScreenshotError: string;
|
|
146
|
-
/**
|
|
147
|
-
* Message when there is a generic error
|
|
148
|
-
*/
|
|
149
|
-
genericError: string;
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* The FeedbackButton text labels that can be customized
|
|
153
|
-
*/
|
|
154
|
-
export interface FeedbackButtonTextConfiguration {
|
|
155
|
-
/**
|
|
156
|
-
* The label for the Feedback widget button that opens the dialog
|
|
157
|
-
*/
|
|
158
|
-
triggerLabel?: string;
|
|
159
|
-
/**
|
|
160
|
-
* The aria label for the Feedback widget button that opens the dialog
|
|
161
|
-
*/
|
|
162
|
-
triggerAriaLabel?: string;
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* The ScreenshotButton text labels that can be customized
|
|
166
|
-
*/
|
|
167
|
-
export interface ScreenshotButtonTextConfiguration {
|
|
168
|
-
/**
|
|
169
|
-
* The label for the Screenshot button
|
|
170
|
-
*/
|
|
171
|
-
triggerLabel?: string;
|
|
172
|
-
/**
|
|
173
|
-
* The aria label for the Screenshot button
|
|
174
|
-
*/
|
|
175
|
-
triggerAriaLabel?: string;
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
* The public callbacks available for the feedback integration
|
|
179
|
-
*/
|
|
180
|
-
export interface FeedbackCallbacks {
|
|
181
|
-
/**
|
|
182
|
-
* Callback when form is opened
|
|
183
|
-
*/
|
|
184
|
-
onFormOpen: () => void;
|
|
185
|
-
/**
|
|
186
|
-
* Callback when form is closed and not submitted
|
|
187
|
-
*/
|
|
188
|
-
onFormClose: () => void;
|
|
189
|
-
/**
|
|
190
|
-
* Callback when a screenshot is added
|
|
191
|
-
*/
|
|
192
|
-
onAddScreenshot: (addScreenshot: (uri: string) => void) => void;
|
|
193
|
-
/**
|
|
194
|
-
* Callback when feedback is successfully submitted
|
|
195
|
-
*
|
|
196
|
-
* After this you'll see a SuccessMessage on the screen for a moment.
|
|
197
|
-
*/
|
|
198
|
-
onSubmitSuccess: (data: FeedbackFormData) => void;
|
|
199
|
-
/**
|
|
200
|
-
* Callback when feedback is unsuccessfully submitted
|
|
201
|
-
*/
|
|
202
|
-
onSubmitError: (error: Error) => void;
|
|
203
|
-
/**
|
|
204
|
-
* Callback when the feedback form is submitted successfully, and the SuccessMessage is complete, or dismissed
|
|
205
|
-
*/
|
|
206
|
-
onFormSubmitted: () => void;
|
|
207
|
-
}
|
|
208
|
-
/**
|
|
209
|
-
* Image Picker configuration interface compatible with:
|
|
210
|
-
* - `react-native-image-picker`: 7.2, 8.0
|
|
211
|
-
* - `expo-image-picker`: 16.0`
|
|
212
|
-
*/
|
|
213
|
-
export interface ImagePickerConfiguration {
|
|
214
|
-
imagePicker?: ImagePicker;
|
|
215
|
-
}
|
|
216
|
-
interface ImagePickerResponse {
|
|
217
|
-
assets?: ImagePickerAsset[];
|
|
218
|
-
}
|
|
219
|
-
interface ImagePickerAsset {
|
|
220
|
-
fileName?: string;
|
|
221
|
-
uri?: string;
|
|
222
|
-
base64?: string;
|
|
223
|
-
}
|
|
224
|
-
interface ExpoImageLibraryOptions {
|
|
225
|
-
mediaTypes?: 'images'[];
|
|
226
|
-
base64?: boolean;
|
|
227
|
-
}
|
|
228
|
-
interface ReactNativeImageLibraryOptions {
|
|
229
|
-
mediaType: 'photo';
|
|
230
|
-
includeBase64?: boolean;
|
|
231
|
-
}
|
|
232
|
-
export interface ImagePicker {
|
|
233
|
-
launchImageLibraryAsync?: (options?: ExpoImageLibraryOptions) => Promise<ImagePickerResponse>;
|
|
234
|
-
launchImageLibrary?: (options: ReactNativeImageLibraryOptions) => Promise<ImagePickerResponse>;
|
|
235
|
-
}
|
|
236
|
-
/**
|
|
237
|
-
* The styles for the feedback form
|
|
238
|
-
*/
|
|
239
|
-
export interface
|
|
240
|
-
container?: ViewStyle;
|
|
241
|
-
title?: TextStyle;
|
|
242
|
-
label?: TextStyle;
|
|
243
|
-
input?: TextStyle;
|
|
244
|
-
textArea?: TextStyle;
|
|
245
|
-
submitButton?: ViewStyle;
|
|
246
|
-
submitText?: TextStyle;
|
|
247
|
-
cancelButton?: ViewStyle;
|
|
248
|
-
cancelText?: TextStyle;
|
|
249
|
-
screenshotButton?: ViewStyle;
|
|
250
|
-
screenshotContainer?: ViewStyle;
|
|
251
|
-
screenshotThumbnail?: ImageStyle;
|
|
252
|
-
screenshotText?: TextStyle;
|
|
253
|
-
takeScreenshotButton?: ViewStyle;
|
|
254
|
-
takeScreenshotText?: TextStyle;
|
|
255
|
-
titleContainer?: ViewStyle;
|
|
256
|
-
sentryLogo?: ImageStyle;
|
|
257
|
-
}
|
|
258
|
-
/**
|
|
259
|
-
* The props for the feedback button
|
|
260
|
-
*/
|
|
261
|
-
export interface FeedbackButtonProps extends FeedbackButtonTextConfiguration {
|
|
262
|
-
styles?: FeedbackButtonStyles;
|
|
263
|
-
}
|
|
264
|
-
/**
|
|
265
|
-
* The styles for the feedback button
|
|
266
|
-
*/
|
|
267
|
-
export interface FeedbackButtonStyles {
|
|
268
|
-
triggerButton?: ViewStyle;
|
|
269
|
-
triggerText?: TextStyle;
|
|
270
|
-
triggerIcon?: ImageStyle;
|
|
271
|
-
}
|
|
272
|
-
/**
|
|
273
|
-
* The props for the screenshot button
|
|
274
|
-
*/
|
|
275
|
-
export interface ScreenshotButtonProps extends ScreenshotButtonTextConfiguration {
|
|
276
|
-
styles?: ScreenshotButtonStyles;
|
|
277
|
-
}
|
|
278
|
-
/**
|
|
279
|
-
* The styles for the screenshot button
|
|
280
|
-
*/
|
|
281
|
-
export interface ScreenshotButtonStyles {
|
|
282
|
-
triggerButton?: ViewStyle;
|
|
283
|
-
triggerText?: TextStyle;
|
|
284
|
-
triggerIcon?: ImageStyle;
|
|
285
|
-
}
|
|
286
|
-
/**
|
|
287
|
-
* The state of the feedback form
|
|
288
|
-
*/
|
|
289
|
-
export interface
|
|
290
|
-
isVisible: boolean;
|
|
291
|
-
name: string;
|
|
292
|
-
email: string;
|
|
293
|
-
description: string;
|
|
294
|
-
filename?: string;
|
|
295
|
-
attachment?: string | Uint8Array;
|
|
296
|
-
attachmentUri?: string;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
|
|
1
|
+
import type { FeedbackFormData } from '@sentry/core';
|
|
2
|
+
import type { ImageStyle, TextStyle, ViewStyle } from 'react-native';
|
|
3
|
+
/**
|
|
4
|
+
* The props for the feedback form
|
|
5
|
+
*/
|
|
6
|
+
export interface FeedbackFormProps extends FeedbackGeneralConfiguration, FeedbackTextConfiguration, FeedbackCallbacks, ImagePickerConfiguration {
|
|
7
|
+
styles?: FeedbackFormStyles;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* General feedback configuration
|
|
11
|
+
*/
|
|
12
|
+
export interface FeedbackGeneralConfiguration {
|
|
13
|
+
/**
|
|
14
|
+
* Show the Sentry branding
|
|
15
|
+
*
|
|
16
|
+
* @default true
|
|
17
|
+
*/
|
|
18
|
+
showBranding: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Should the email field be required?
|
|
21
|
+
*/
|
|
22
|
+
isEmailRequired: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Should the email field be validated?
|
|
25
|
+
*/
|
|
26
|
+
shouldValidateEmail: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Should the name field be required?
|
|
29
|
+
*/
|
|
30
|
+
isNameRequired: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Should the email input field be visible? Note: email will still be collected if set via `Sentry.setUser()`
|
|
33
|
+
*/
|
|
34
|
+
showEmail: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Should the name input field be visible? Note: name will still be collected if set via `Sentry.setUser()`
|
|
37
|
+
*/
|
|
38
|
+
showName: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* This flag determines whether the "Add Screenshot" button is displayed
|
|
41
|
+
* @default false
|
|
42
|
+
*/
|
|
43
|
+
enableScreenshot: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* This flag determines whether the "Take Screenshot" button is displayed
|
|
46
|
+
* @default false
|
|
47
|
+
*/
|
|
48
|
+
enableTakeScreenshot?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Enable auto-correct for text inputs.
|
|
51
|
+
*
|
|
52
|
+
* @default true
|
|
53
|
+
*/
|
|
54
|
+
autoCorrect?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Enable spell check for text inputs.
|
|
57
|
+
*
|
|
58
|
+
* @default true
|
|
59
|
+
*/
|
|
60
|
+
spellCheck?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Fill in email/name input fields with Sentry user context if it exists.
|
|
63
|
+
* The value of the email/name keys represent the properties of your user context.
|
|
64
|
+
*/
|
|
65
|
+
useSentryUser?: {
|
|
66
|
+
email: string;
|
|
67
|
+
name: string;
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* All of the different text labels that can be customized
|
|
72
|
+
*/
|
|
73
|
+
export interface FeedbackTextConfiguration {
|
|
74
|
+
/**
|
|
75
|
+
* The label for the Feedback form cancel button that closes dialog
|
|
76
|
+
*/
|
|
77
|
+
cancelButtonLabel: string;
|
|
78
|
+
/**
|
|
79
|
+
* The label for the Feedback form submit button that sends feedback
|
|
80
|
+
*/
|
|
81
|
+
submitButtonLabel: string;
|
|
82
|
+
/**
|
|
83
|
+
* The title of the Feedback form
|
|
84
|
+
*/
|
|
85
|
+
formTitle: string;
|
|
86
|
+
/**
|
|
87
|
+
* Label for the email input
|
|
88
|
+
*/
|
|
89
|
+
emailLabel: string;
|
|
90
|
+
/**
|
|
91
|
+
* Placeholder text for Feedback email input
|
|
92
|
+
*/
|
|
93
|
+
emailPlaceholder: string;
|
|
94
|
+
/**
|
|
95
|
+
* Label for the message input
|
|
96
|
+
*/
|
|
97
|
+
messageLabel: string;
|
|
98
|
+
/**
|
|
99
|
+
* Placeholder text for Feedback message input
|
|
100
|
+
*/
|
|
101
|
+
messagePlaceholder?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Label for the name input
|
|
104
|
+
*/
|
|
105
|
+
nameLabel: string;
|
|
106
|
+
/**
|
|
107
|
+
* Message after feedback was sent successfully
|
|
108
|
+
*/
|
|
109
|
+
successMessageText: string;
|
|
110
|
+
/**
|
|
111
|
+
* Placeholder text for Feedback name input
|
|
112
|
+
*/
|
|
113
|
+
namePlaceholder: string;
|
|
114
|
+
/**
|
|
115
|
+
* Text which indicates that a field is required
|
|
116
|
+
*/
|
|
117
|
+
isRequiredLabel: string;
|
|
118
|
+
/**
|
|
119
|
+
* The label for the button that adds a screenshot
|
|
120
|
+
*/
|
|
121
|
+
addScreenshotButtonLabel: string;
|
|
122
|
+
/**
|
|
123
|
+
* The label for the button that removes a screenshot
|
|
124
|
+
*/
|
|
125
|
+
removeScreenshotButtonLabel: string;
|
|
126
|
+
/**
|
|
127
|
+
* The label for the button that shows the capture screenshot button
|
|
128
|
+
*/
|
|
129
|
+
captureScreenshotButtonLabel?: string;
|
|
130
|
+
/**
|
|
131
|
+
* The title of the error dialog
|
|
132
|
+
*/
|
|
133
|
+
errorTitle: string;
|
|
134
|
+
/**
|
|
135
|
+
* The error message when the form is invalid
|
|
136
|
+
*/
|
|
137
|
+
formError: string;
|
|
138
|
+
/**
|
|
139
|
+
* The error message when the email is invalid
|
|
140
|
+
*/
|
|
141
|
+
emailError: string;
|
|
142
|
+
/**
|
|
143
|
+
* The error message when the capture screenshot fails
|
|
144
|
+
*/
|
|
145
|
+
captureScreenshotError: string;
|
|
146
|
+
/**
|
|
147
|
+
* Message when there is a generic error
|
|
148
|
+
*/
|
|
149
|
+
genericError: string;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* The FeedbackButton text labels that can be customized
|
|
153
|
+
*/
|
|
154
|
+
export interface FeedbackButtonTextConfiguration {
|
|
155
|
+
/**
|
|
156
|
+
* The label for the Feedback widget button that opens the dialog
|
|
157
|
+
*/
|
|
158
|
+
triggerLabel?: string;
|
|
159
|
+
/**
|
|
160
|
+
* The aria label for the Feedback widget button that opens the dialog
|
|
161
|
+
*/
|
|
162
|
+
triggerAriaLabel?: string;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* The ScreenshotButton text labels that can be customized
|
|
166
|
+
*/
|
|
167
|
+
export interface ScreenshotButtonTextConfiguration {
|
|
168
|
+
/**
|
|
169
|
+
* The label for the Screenshot button
|
|
170
|
+
*/
|
|
171
|
+
triggerLabel?: string;
|
|
172
|
+
/**
|
|
173
|
+
* The aria label for the Screenshot button
|
|
174
|
+
*/
|
|
175
|
+
triggerAriaLabel?: string;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* The public callbacks available for the feedback integration
|
|
179
|
+
*/
|
|
180
|
+
export interface FeedbackCallbacks {
|
|
181
|
+
/**
|
|
182
|
+
* Callback when form is opened
|
|
183
|
+
*/
|
|
184
|
+
onFormOpen: () => void;
|
|
185
|
+
/**
|
|
186
|
+
* Callback when form is closed and not submitted
|
|
187
|
+
*/
|
|
188
|
+
onFormClose: () => void;
|
|
189
|
+
/**
|
|
190
|
+
* Callback when a screenshot is added
|
|
191
|
+
*/
|
|
192
|
+
onAddScreenshot: (addScreenshot: (uri: string) => void) => void;
|
|
193
|
+
/**
|
|
194
|
+
* Callback when feedback is successfully submitted
|
|
195
|
+
*
|
|
196
|
+
* After this you'll see a SuccessMessage on the screen for a moment.
|
|
197
|
+
*/
|
|
198
|
+
onSubmitSuccess: (data: FeedbackFormData) => void;
|
|
199
|
+
/**
|
|
200
|
+
* Callback when feedback is unsuccessfully submitted
|
|
201
|
+
*/
|
|
202
|
+
onSubmitError: (error: Error) => void;
|
|
203
|
+
/**
|
|
204
|
+
* Callback when the feedback form is submitted successfully, and the SuccessMessage is complete, or dismissed
|
|
205
|
+
*/
|
|
206
|
+
onFormSubmitted: () => void;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Image Picker configuration interface compatible with:
|
|
210
|
+
* - `react-native-image-picker`: 7.2, 8.0
|
|
211
|
+
* - `expo-image-picker`: 16.0`
|
|
212
|
+
*/
|
|
213
|
+
export interface ImagePickerConfiguration {
|
|
214
|
+
imagePicker?: ImagePicker;
|
|
215
|
+
}
|
|
216
|
+
interface ImagePickerResponse {
|
|
217
|
+
assets?: ImagePickerAsset[];
|
|
218
|
+
}
|
|
219
|
+
interface ImagePickerAsset {
|
|
220
|
+
fileName?: string;
|
|
221
|
+
uri?: string;
|
|
222
|
+
base64?: string;
|
|
223
|
+
}
|
|
224
|
+
interface ExpoImageLibraryOptions {
|
|
225
|
+
mediaTypes?: 'images'[];
|
|
226
|
+
base64?: boolean;
|
|
227
|
+
}
|
|
228
|
+
interface ReactNativeImageLibraryOptions {
|
|
229
|
+
mediaType: 'photo';
|
|
230
|
+
includeBase64?: boolean;
|
|
231
|
+
}
|
|
232
|
+
export interface ImagePicker {
|
|
233
|
+
launchImageLibraryAsync?: (options?: ExpoImageLibraryOptions) => Promise<ImagePickerResponse>;
|
|
234
|
+
launchImageLibrary?: (options: ReactNativeImageLibraryOptions) => Promise<ImagePickerResponse>;
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* The styles for the feedback form
|
|
238
|
+
*/
|
|
239
|
+
export interface FeedbackFormStyles {
|
|
240
|
+
container?: ViewStyle;
|
|
241
|
+
title?: TextStyle;
|
|
242
|
+
label?: TextStyle;
|
|
243
|
+
input?: TextStyle;
|
|
244
|
+
textArea?: TextStyle;
|
|
245
|
+
submitButton?: ViewStyle;
|
|
246
|
+
submitText?: TextStyle;
|
|
247
|
+
cancelButton?: ViewStyle;
|
|
248
|
+
cancelText?: TextStyle;
|
|
249
|
+
screenshotButton?: ViewStyle;
|
|
250
|
+
screenshotContainer?: ViewStyle;
|
|
251
|
+
screenshotThumbnail?: ImageStyle;
|
|
252
|
+
screenshotText?: TextStyle;
|
|
253
|
+
takeScreenshotButton?: ViewStyle;
|
|
254
|
+
takeScreenshotText?: TextStyle;
|
|
255
|
+
titleContainer?: ViewStyle;
|
|
256
|
+
sentryLogo?: ImageStyle;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* The props for the feedback button
|
|
260
|
+
*/
|
|
261
|
+
export interface FeedbackButtonProps extends FeedbackButtonTextConfiguration {
|
|
262
|
+
styles?: FeedbackButtonStyles;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* The styles for the feedback button
|
|
266
|
+
*/
|
|
267
|
+
export interface FeedbackButtonStyles {
|
|
268
|
+
triggerButton?: ViewStyle;
|
|
269
|
+
triggerText?: TextStyle;
|
|
270
|
+
triggerIcon?: ImageStyle;
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* The props for the screenshot button
|
|
274
|
+
*/
|
|
275
|
+
export interface ScreenshotButtonProps extends ScreenshotButtonTextConfiguration {
|
|
276
|
+
styles?: ScreenshotButtonStyles;
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* The styles for the screenshot button
|
|
280
|
+
*/
|
|
281
|
+
export interface ScreenshotButtonStyles {
|
|
282
|
+
triggerButton?: ViewStyle;
|
|
283
|
+
triggerText?: TextStyle;
|
|
284
|
+
triggerIcon?: ImageStyle;
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* The state of the feedback form
|
|
288
|
+
*/
|
|
289
|
+
export interface FeedbackFormState {
|
|
290
|
+
isVisible: boolean;
|
|
291
|
+
name: string;
|
|
292
|
+
email: string;
|
|
293
|
+
description: string;
|
|
294
|
+
filename?: string;
|
|
295
|
+
attachment?: string | Uint8Array;
|
|
296
|
+
attachmentUri?: string;
|
|
297
|
+
}
|
|
298
|
+
/** @deprecated Use `FeedbackFormProps` instead. */
|
|
299
|
+
export type FeedbackWidgetProps = FeedbackFormProps;
|
|
300
|
+
/** @deprecated Use `FeedbackFormStyles` instead. */
|
|
301
|
+
export type FeedbackWidgetStyles = FeedbackFormStyles;
|
|
302
|
+
/** @deprecated Use `FeedbackFormState` instead. */
|
|
303
|
+
export type FeedbackWidgetState = FeedbackFormState;
|
|
304
|
+
export {};
|
|
305
|
+
//# sourceMappingURL=FeedbackForm.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeedbackForm.types.d.ts","sourceRoot":"","sources":["../../../src/js/feedback/FeedbackForm.types.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeedbackForm.types.js","sourceRoot":"","sources":["../../../src/js/feedback/FeedbackForm.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { FeedbackFormData } from '@sentry/core';\nimport type { ImageStyle, TextStyle, ViewStyle } from 'react-native';\n\n/**\n * The props for the feedback form\n */\nexport interface FeedbackFormProps\n extends FeedbackGeneralConfiguration, FeedbackTextConfiguration, FeedbackCallbacks, ImagePickerConfiguration {\n styles?: FeedbackFormStyles;\n}\n\n/**\n * General feedback configuration\n */\nexport interface FeedbackGeneralConfiguration {\n /**\n * Show the Sentry branding\n *\n * @default true\n */\n showBranding: boolean;\n\n /**\n * Should the email field be required?\n */\n isEmailRequired: boolean;\n\n /**\n * Should the email field be validated?\n */\n shouldValidateEmail: boolean;\n\n /**\n * Should the name field be required?\n */\n isNameRequired: boolean;\n\n /**\n * Should the email input field be visible? Note: email will still be collected if set via `Sentry.setUser()`\n */\n showEmail: boolean;\n\n /**\n * Should the name input field be visible? Note: name will still be collected if set via `Sentry.setUser()`\n */\n showName: boolean;\n\n /**\n * This flag determines whether the \"Add Screenshot\" button is displayed\n * @default false\n */\n enableScreenshot: boolean;\n\n /**\n * This flag determines whether the \"Take Screenshot\" button is displayed\n * @default false\n */\n enableTakeScreenshot?: boolean;\n\n /**\n * Enable auto-correct for text inputs.\n *\n * @default true\n */\n autoCorrect?: boolean;\n\n /**\n * Enable spell check for text inputs.\n *\n * @default true\n */\n spellCheck?: boolean;\n\n /**\n * Fill in email/name input fields with Sentry user context if it exists.\n * The value of the email/name keys represent the properties of your user context.\n */\n useSentryUser?: {\n email: string;\n name: string;\n };\n}\n\n/**\n * All of the different text labels that can be customized\n */\nexport interface FeedbackTextConfiguration {\n /**\n * The label for the Feedback form cancel button that closes dialog\n */\n cancelButtonLabel: string;\n\n /**\n * The label for the Feedback form submit button that sends feedback\n */\n submitButtonLabel: string;\n\n /**\n * The title of the Feedback form\n */\n formTitle: string;\n\n /**\n * Label for the email input\n */\n emailLabel: string;\n\n /**\n * Placeholder text for Feedback email input\n */\n emailPlaceholder: string;\n\n /**\n * Label for the message input\n */\n messageLabel: string;\n\n /**\n * Placeholder text for Feedback message input\n */\n messagePlaceholder?: string;\n\n /**\n * Label for the name input\n */\n nameLabel: string;\n\n /**\n * Message after feedback was sent successfully\n */\n successMessageText: string;\n\n /**\n * Placeholder text for Feedback name input\n */\n namePlaceholder: string;\n\n /**\n * Text which indicates that a field is required\n */\n isRequiredLabel: string;\n\n /**\n * The label for the button that adds a screenshot\n */\n addScreenshotButtonLabel: string;\n\n /**\n * The label for the button that removes a screenshot\n */\n removeScreenshotButtonLabel: string;\n\n /**\n * The label for the button that shows the capture screenshot button\n */\n captureScreenshotButtonLabel?: string;\n\n /**\n * The title of the error dialog\n */\n errorTitle: string;\n\n /**\n * The error message when the form is invalid\n */\n formError: string;\n\n /**\n * The error message when the email is invalid\n */\n emailError: string;\n\n /**\n * The error message when the capture screenshot fails\n */\n captureScreenshotError: string;\n\n /**\n * Message when there is a generic error\n */\n genericError: string;\n}\n\n/**\n * The FeedbackButton text labels that can be customized\n */\nexport interface FeedbackButtonTextConfiguration {\n /**\n * The label for the Feedback widget button that opens the dialog\n */\n triggerLabel?: string;\n\n /**\n * The aria label for the Feedback widget button that opens the dialog\n */\n triggerAriaLabel?: string;\n}\n\n/**\n * The ScreenshotButton text labels that can be customized\n */\nexport interface ScreenshotButtonTextConfiguration {\n /**\n * The label for the Screenshot button\n */\n triggerLabel?: string;\n\n /**\n * The aria label for the Screenshot button\n */\n triggerAriaLabel?: string;\n}\n\n/**\n * The public callbacks available for the feedback integration\n */\nexport interface FeedbackCallbacks {\n /**\n * Callback when form is opened\n */\n onFormOpen: () => void;\n\n /**\n * Callback when form is closed and not submitted\n */\n onFormClose: () => void;\n\n /**\n * Callback when a screenshot is added\n */\n onAddScreenshot: (addScreenshot: (uri: string) => void) => void;\n\n /**\n * Callback when feedback is successfully submitted\n *\n * After this you'll see a SuccessMessage on the screen for a moment.\n */\n onSubmitSuccess: (data: FeedbackFormData) => void;\n\n /**\n * Callback when feedback is unsuccessfully submitted\n */\n onSubmitError: (error: Error) => void;\n\n /**\n * Callback when the feedback form is submitted successfully, and the SuccessMessage is complete, or dismissed\n */\n onFormSubmitted: () => void;\n}\n\n/**\n * Image Picker configuration interface compatible with:\n * - `react-native-image-picker`: 7.2, 8.0\n * - `expo-image-picker`: 16.0`\n */\nexport interface ImagePickerConfiguration {\n imagePicker?: ImagePicker;\n}\n\ninterface ImagePickerResponse {\n assets?: ImagePickerAsset[];\n}\n\ninterface ImagePickerAsset {\n fileName?: string;\n uri?: string;\n base64?: string;\n}\n\ninterface ExpoImageLibraryOptions {\n mediaTypes?: 'images'[];\n base64?: boolean;\n}\n\ninterface ReactNativeImageLibraryOptions {\n mediaType: 'photo';\n includeBase64?: boolean;\n}\n\nexport interface ImagePicker {\n launchImageLibraryAsync?: (options?: ExpoImageLibraryOptions) => Promise<ImagePickerResponse>;\n\n launchImageLibrary?: (options: ReactNativeImageLibraryOptions) => Promise<ImagePickerResponse>;\n}\n\n/**\n * The styles for the feedback form\n */\nexport interface FeedbackFormStyles {\n container?: ViewStyle;\n title?: TextStyle;\n label?: TextStyle;\n input?: TextStyle;\n textArea?: TextStyle;\n submitButton?: ViewStyle;\n submitText?: TextStyle;\n cancelButton?: ViewStyle;\n cancelText?: TextStyle;\n screenshotButton?: ViewStyle;\n screenshotContainer?: ViewStyle;\n screenshotThumbnail?: ImageStyle;\n screenshotText?: TextStyle;\n takeScreenshotButton?: ViewStyle;\n takeScreenshotText?: TextStyle;\n titleContainer?: ViewStyle;\n sentryLogo?: ImageStyle;\n}\n\n/**\n * The props for the feedback button\n */\nexport interface FeedbackButtonProps extends FeedbackButtonTextConfiguration {\n styles?: FeedbackButtonStyles;\n}\n\n/**\n * The styles for the feedback button\n */\nexport interface FeedbackButtonStyles {\n triggerButton?: ViewStyle;\n triggerText?: TextStyle;\n triggerIcon?: ImageStyle;\n}\n\n/**\n * The props for the screenshot button\n */\nexport interface ScreenshotButtonProps extends ScreenshotButtonTextConfiguration {\n styles?: ScreenshotButtonStyles;\n}\n\n/**\n * The styles for the screenshot button\n */\nexport interface ScreenshotButtonStyles {\n triggerButton?: ViewStyle;\n triggerText?: TextStyle;\n triggerIcon?: ImageStyle;\n}\n\n/**\n * The state of the feedback form\n */\nexport interface FeedbackFormState {\n isVisible: boolean;\n name: string;\n email: string;\n description: string;\n filename?: string;\n attachment?: string | Uint8Array;\n attachmentUri?: string;\n}\n\n/** @deprecated Use `FeedbackFormProps` instead. */\nexport type FeedbackWidgetProps = FeedbackFormProps;\n\n/** @deprecated Use `FeedbackFormStyles` instead. */\nexport type FeedbackWidgetStyles = FeedbackFormStyles;\n\n/** @deprecated Use `FeedbackFormState` instead. */\nexport type FeedbackWidgetState = FeedbackFormState;\n"]}
|