@lookiero/checkout 0.6.0-beta.14 → 0.6.0-beta.16
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/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ interface BootstrapFunctionArgs {
|
|
|
13
13
|
readonly getAuthToken: () => Promise<string>;
|
|
14
14
|
readonly apiUrl: string;
|
|
15
15
|
readonly translations: EndpointFunction;
|
|
16
|
-
readonly sentry
|
|
16
|
+
readonly sentry: SentryLoggerFunctionArgs;
|
|
17
17
|
}
|
|
18
18
|
interface BootstrapFunctionReturn {
|
|
19
19
|
readonly Root: ComponentType<RootProps>;
|
|
@@ -4,14 +4,8 @@ import { SafeAreaProvider } from "react-native-safe-area-context";
|
|
|
4
4
|
import { Notifications } from "../../../shared/notifications/infrastructure/ui/views/Notifications";
|
|
5
5
|
import { MESSAGING_CONTEXT_ID } from "../../delivery/baseBootstrap";
|
|
6
6
|
import { Navigation } from "./navigation/Navigation";
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
return (React.createElement(SafeAreaProvider, null,
|
|
13
|
-
React.createElement(Notifications, { contextId: MESSAGING_CONTEXT_ID }),
|
|
14
|
-
React.createElement(Navigation, { customerId: customerId, menu: menu, tabBar: tabBar },
|
|
15
|
-
React.createElement(PortalProvider, null, children))));
|
|
16
|
-
};
|
|
7
|
+
const App = ({ customerId, menu, tabBar, children }) => (React.createElement(SafeAreaProvider, null,
|
|
8
|
+
React.createElement(Notifications, { contextId: MESSAGING_CONTEXT_ID }),
|
|
9
|
+
React.createElement(Navigation, { customerId: customerId, menu: menu, tabBar: tabBar },
|
|
10
|
+
React.createElement(PortalProvider, null, children))));
|
|
17
11
|
export { App };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { BrowserClient, Hub } from "@sentry/browser";
|
|
2
|
-
import { makeFetchTransport } from "@sentry/browser";
|
|
1
|
+
import { BrowserClient, Hub, makeFetchTransport, defaultIntegrations } from "@sentry/browser";
|
|
3
2
|
import { ErrorBoundary, reactRouterV6Instrumentation } from "@sentry/react";
|
|
4
3
|
import { BrowserTracing } from "@sentry/tracing";
|
|
5
4
|
import { useEffect } from "react";
|
|
6
5
|
import { createRoutesFromChildren, matchRoutes, useLocation, useNavigationType } from "react-router-native";
|
|
7
6
|
const transport = (options, nativeFetch) => makeFetchTransport(options, nativeFetch);
|
|
8
7
|
const integrations = [
|
|
8
|
+
...defaultIntegrations,
|
|
9
9
|
new BrowserTracing({
|
|
10
10
|
routingInstrumentation: reactRouterV6Instrumentation(useEffect, useLocation, useNavigationType, createRoutesFromChildren, matchRoutes),
|
|
11
11
|
}),
|
|
@@ -3,8 +3,6 @@ import { ReactNativeClient, Hub, ErrorBoundary, wrap as sentryWrap } from "@sent
|
|
|
3
3
|
import { makeReactNativeTransport } from "@sentry/react-native/dist/js/transports/native";
|
|
4
4
|
import { NATIVE } from "@sentry/react-native/dist/js/wrapper";
|
|
5
5
|
const transport = (options, nativeFetch) => NATIVE.isNativeTransportAvailable() ? makeReactNativeTransport(options) : makeFetchTransport(options, nativeFetch);
|
|
6
|
-
const integrations = [
|
|
7
|
-
// native tracing?? => rr6 integration??
|
|
8
|
-
];
|
|
6
|
+
const integrations = [];
|
|
9
7
|
const wrap = (Component) => sentryWrap(Component);
|
|
10
8
|
export { ReactNativeClient as Client, Hub, ErrorBoundary, transport, integrations, wrap };
|