@grafana/faro-react 2.8.2 → 2.10.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/dist/bundle/faro-react.iife.js +11 -8
- package/dist/bundle/faro-react.iife.js.map +1 -0
- package/dist/cjs/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/defineProperty.js +13 -0
- package/dist/cjs/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/objectSpread2.js +26 -0
- package/dist/cjs/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/toPrimitive.js +15 -0
- package/dist/cjs/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/toPropertyKey.js +10 -0
- package/dist/cjs/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/typeof.js +17 -0
- package/dist/cjs/_virtual/_rolldown/runtime.js +24 -0
- package/dist/cjs/dependencies.js +20 -4
- package/dist/cjs/dependencies.js.map +1 -1
- package/dist/cjs/errorBoundary/FaroErrorBoundary.js +62 -67
- package/dist/cjs/errorBoundary/FaroErrorBoundary.js.map +1 -1
- package/dist/cjs/errorBoundary/const.js +7 -4
- package/dist/cjs/errorBoundary/const.js.map +1 -1
- package/dist/cjs/errorBoundary/index.js +6 -8
- package/dist/cjs/errorBoundary/types.js +0 -1
- package/dist/cjs/errorBoundary/withFaroErrorBoundary.js +17 -15
- package/dist/cjs/errorBoundary/withFaroErrorBoundary.js.map +1 -1
- package/dist/cjs/index.js +480 -108
- package/dist/cjs/instrumentation.js +19 -16
- package/dist/cjs/instrumentation.js.map +1 -1
- package/dist/cjs/profiler/FaroProfiler.js +75 -97
- package/dist/cjs/profiler/FaroProfiler.js.map +1 -1
- package/dist/cjs/profiler/index.js +4 -6
- package/dist/cjs/profiler/withFaroProfiler.js +20 -15
- package/dist/cjs/profiler/withFaroProfiler.js.map +1 -1
- package/dist/cjs/router/index.js +26 -21
- package/dist/cjs/router/initialize.js +30 -26
- package/dist/cjs/router/initialize.js.map +1 -1
- package/dist/cjs/router/types.js +20 -16
- package/dist/cjs/router/types.js.map +1 -1
- package/dist/cjs/router/v4v5/FaroRoute.js +12 -12
- package/dist/cjs/router/v4v5/FaroRoute.js.map +1 -1
- package/dist/cjs/router/v4v5/activeEvent.js +23 -17
- package/dist/cjs/router/v4v5/activeEvent.js.map +1 -1
- package/dist/cjs/router/v4v5/index.js +8 -10
- package/dist/cjs/router/v4v5/initialize.js +36 -34
- package/dist/cjs/router/v4v5/initialize.js.map +1 -1
- package/dist/cjs/router/v4v5/routerDependencies.js +30 -8
- package/dist/cjs/router/v4v5/routerDependencies.js.map +1 -1
- package/dist/cjs/router/v4v5/types.js +0 -1
- package/dist/cjs/router/v6v7/FaroRoutes.js +42 -59
- package/dist/cjs/router/v6v7/FaroRoutes.js.map +1 -1
- package/dist/cjs/router/v6v7/index.js +14 -16
- package/dist/cjs/router/v6v7/initialize.js +34 -32
- package/dist/cjs/router/v6v7/initialize.js.map +1 -1
- package/dist/cjs/router/v6v7/routerDependencies.js +59 -16
- package/dist/cjs/router/v6v7/routerDependencies.js.map +1 -1
- package/dist/cjs/router/v6v7/types.js +0 -1
- package/dist/cjs/router/v6v7/utils.js +27 -32
- package/dist/cjs/router/v6v7/utils.js.map +1 -1
- package/dist/cjs/router/v6v7/withFaroRouterInstrumentation.js +32 -25
- package/dist/cjs/router/v6v7/withFaroRouterInstrumentation.js.map +1 -1
- package/dist/cjs/types.js +0 -1
- package/dist/cjs/utils/index.js +9 -11
- package/dist/cjs/utils/reactVersion.js +24 -18
- package/dist/cjs/utils/reactVersion.js.map +1 -1
- package/dist/esm/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/defineProperty.js +12 -0
- package/dist/esm/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/objectSpread2.js +25 -0
- package/dist/esm/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/toPrimitive.js +14 -0
- package/dist/esm/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/toPropertyKey.js +9 -0
- package/dist/esm/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/typeof.js +11 -0
- package/dist/esm/dependencies.js +9 -5
- package/dist/esm/dependencies.js.map +1 -1
- package/dist/esm/errorBoundary/FaroErrorBoundary.js +61 -66
- package/dist/esm/errorBoundary/FaroErrorBoundary.js.map +1 -1
- package/dist/esm/errorBoundary/const.js +7 -3
- package/dist/esm/errorBoundary/const.js.map +1 -1
- package/dist/esm/errorBoundary/index.js +4 -4
- package/dist/esm/errorBoundary/types.js +0 -2
- package/dist/esm/errorBoundary/withFaroErrorBoundary.js +15 -12
- package/dist/esm/errorBoundary/withFaroErrorBoundary.js.map +1 -1
- package/dist/esm/index.js +21 -7
- package/dist/esm/instrumentation.js +20 -15
- package/dist/esm/instrumentation.js.map +1 -1
- package/dist/esm/profiler/FaroProfiler.js +74 -96
- package/dist/esm/profiler/FaroProfiler.js.map +1 -1
- package/dist/esm/profiler/index.js +3 -3
- package/dist/esm/profiler/withFaroProfiler.js +18 -12
- package/dist/esm/profiler/withFaroProfiler.js.map +1 -1
- package/dist/esm/router/index.js +12 -5
- package/dist/esm/router/initialize.js +31 -26
- package/dist/esm/router/initialize.js.map +1 -1
- package/dist/esm/router/types.js +19 -15
- package/dist/esm/router/types.js.map +1 -1
- package/dist/esm/router/v4v5/FaroRoute.js +11 -9
- package/dist/esm/router/v4v5/FaroRoute.js.map +1 -1
- package/dist/esm/router/v4v5/activeEvent.js +18 -16
- package/dist/esm/router/v4v5/activeEvent.js.map +1 -1
- package/dist/esm/router/v4v5/index.js +4 -4
- package/dist/esm/router/v4v5/initialize.js +35 -31
- package/dist/esm/router/v4v5/initialize.js.map +1 -1
- package/dist/esm/router/v4v5/routerDependencies.js +13 -9
- package/dist/esm/router/v4v5/routerDependencies.js.map +1 -1
- package/dist/esm/router/v4v5/types.js +0 -2
- package/dist/esm/router/v6v7/FaroRoutes.js +41 -26
- package/dist/esm/router/v6v7/FaroRoutes.js.map +1 -1
- package/dist/esm/router/v6v7/index.js +5 -5
- package/dist/esm/router/v6v7/initialize.js +33 -29
- package/dist/esm/router/v6v7/initialize.js.map +1 -1
- package/dist/esm/router/v6v7/routerDependencies.js +24 -20
- package/dist/esm/router/v6v7/routerDependencies.js.map +1 -1
- package/dist/esm/router/v6v7/types.js +0 -2
- package/dist/esm/router/v6v7/utils.js +28 -32
- package/dist/esm/router/v6v7/utils.js.map +1 -1
- package/dist/esm/router/v6v7/withFaroRouterInstrumentation.js +33 -25
- package/dist/esm/router/v6v7/withFaroRouterInstrumentation.js.map +1 -1
- package/dist/esm/types.js +0 -2
- package/dist/esm/utils/index.js +2 -2
- package/dist/esm/utils/reactVersion.js +20 -17
- package/dist/esm/utils/reactVersion.js.map +1 -1
- package/dist/types/dependencies.d.ts +7 -4
- package/dist/types/errorBoundary/FaroErrorBoundary.d.ts +15 -13
- package/dist/types/errorBoundary/const.d.ts +5 -2
- package/dist/types/errorBoundary/index.d.ts +5 -4
- package/dist/types/errorBoundary/types.d.ts +20 -17
- package/dist/types/errorBoundary/withFaroErrorBoundary.d.ts +6 -3
- package/dist/types/index.d.ts +24 -11
- package/dist/types/instrumentation.d.ts +11 -8
- package/dist/types/profiler/FaroProfiler.d.ts +24 -22
- package/dist/types/profiler/index.d.ts +3 -3
- package/dist/types/profiler/withFaroProfiler.d.ts +6 -3
- package/dist/types/router/index.d.ts +14 -7
- package/dist/types/router/initialize.d.ts +5 -2
- package/dist/types/router/types.d.ts +23 -20
- package/dist/types/router/v4v5/FaroRoute.d.ts +6 -3
- package/dist/types/router/v4v5/activeEvent.d.ts +8 -5
- package/dist/types/router/v4v5/index.d.ts +5 -4
- package/dist/types/router/v4v5/initialize.d.ts +8 -5
- package/dist/types/router/v4v5/routerDependencies.d.ts +10 -7
- package/dist/types/router/v4v5/types.d.ts +16 -13
- package/dist/types/router/v6v7/FaroRoutes.d.ts +6 -3
- package/dist/types/router/v6v7/index.d.ts +6 -5
- package/dist/types/router/v6v7/initialize.d.ts +11 -8
- package/dist/types/router/v6v7/routerDependencies.d.ts +14 -11
- package/dist/types/router/v6v7/types.d.ts +57 -58
- package/dist/types/router/v6v7/utils.d.ts +7 -4
- package/dist/types/router/v6v7/withFaroRouterInstrumentation.d.ts +11 -10
- package/dist/types/types.d.ts +24 -18
- package/dist/types/utils/index.d.ts +2 -1
- package/dist/types/utils/reactVersion.d.ts +11 -8
- package/package.json +17 -21
- package/dist/bundle/types/dependencies.d.ts +0 -4
- package/dist/bundle/types/errorBoundary/FaroErrorBoundary.d.ts +0 -14
- package/dist/bundle/types/errorBoundary/const.d.ts +0 -2
- package/dist/bundle/types/errorBoundary/index.d.ts +0 -4
- package/dist/bundle/types/errorBoundary/types.d.ts +0 -19
- package/dist/bundle/types/errorBoundary/withFaroErrorBoundary.d.ts +0 -3
- package/dist/bundle/types/index.d.ts +0 -11
- package/dist/bundle/types/instrumentation.d.ts +0 -9
- package/dist/bundle/types/profiler/FaroProfiler.d.ts +0 -24
- package/dist/bundle/types/profiler/FaroProfiler.test.d.ts +0 -1
- package/dist/bundle/types/profiler/index.d.ts +0 -3
- package/dist/bundle/types/profiler/withFaroProfiler.d.ts +0 -3
- package/dist/bundle/types/router/index.d.ts +0 -7
- package/dist/bundle/types/router/initialize.d.ts +0 -2
- package/dist/bundle/types/router/types.d.ts +0 -24
- package/dist/bundle/types/router/v4v5/FaroRoute.d.ts +0 -3
- package/dist/bundle/types/router/v4v5/activeEvent.d.ts +0 -5
- package/dist/bundle/types/router/v4v5/index.d.ts +0 -4
- package/dist/bundle/types/router/v4v5/initialize.d.ts +0 -5
- package/dist/bundle/types/router/v4v5/routerDependencies.d.ts +0 -7
- package/dist/bundle/types/router/v4v5/types.d.ts +0 -16
- package/dist/bundle/types/router/v6v7/FaroRoutes.d.ts +0 -3
- package/dist/bundle/types/router/v6v7/index.d.ts +0 -5
- package/dist/bundle/types/router/v6v7/initialize.d.ts +0 -8
- package/dist/bundle/types/router/v6v7/routerDependencies.d.ts +0 -11
- package/dist/bundle/types/router/v6v7/types.d.ts +0 -69
- package/dist/bundle/types/router/v6v7/utils.d.ts +0 -4
- package/dist/bundle/types/router/v6v7/withFaroRouterInstrumentation.d.ts +0 -17
- package/dist/bundle/types/types.d.ts +0 -24
- package/dist/bundle/types/utils/index.d.ts +0 -1
- package/dist/bundle/types/utils/reactVersion.d.ts +0 -8
- package/dist/cjs/errorBoundary/index.js.map +0 -1
- package/dist/cjs/errorBoundary/types.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/profiler/FaroProfiler.test.js +0 -75
- package/dist/cjs/profiler/FaroProfiler.test.js.map +0 -1
- package/dist/cjs/profiler/index.js.map +0 -1
- package/dist/cjs/router/index.js.map +0 -1
- package/dist/cjs/router/v4v5/index.js.map +0 -1
- package/dist/cjs/router/v4v5/types.js.map +0 -1
- package/dist/cjs/router/v6v7/index.js.map +0 -1
- package/dist/cjs/router/v6v7/types.js.map +0 -1
- package/dist/cjs/types.js.map +0 -1
- package/dist/cjs/utils/index.js.map +0 -1
- package/dist/esm/errorBoundary/index.js.map +0 -1
- package/dist/esm/errorBoundary/types.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/profiler/FaroProfiler.test.js +0 -73
- package/dist/esm/profiler/FaroProfiler.test.js.map +0 -1
- package/dist/esm/profiler/index.js.map +0 -1
- package/dist/esm/router/index.js.map +0 -1
- package/dist/esm/router/v4v5/index.js.map +0 -1
- package/dist/esm/router/v4v5/types.js.map +0 -1
- package/dist/esm/router/v6v7/index.js.map +0 -1
- package/dist/esm/router/v6v7/types.js.map +0 -1
- package/dist/esm/types.js.map +0 -1
- package/dist/esm/utils/index.js.map +0 -1
- package/dist/types/profiler/FaroProfiler.test.d.ts +0 -1
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { API, InternalLogger } from "@grafana/faro-web-sdk";
|
|
2
|
+
//#region src/dependencies.d.ts
|
|
3
|
+
declare let internalLogger: InternalLogger;
|
|
4
|
+
declare let api: API;
|
|
5
|
+
declare function setDependencies(newInternalLogger: InternalLogger, newApi: API): void;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { api, internalLogger, setDependencies };
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { FaroErrorBoundaryProps, FaroErrorBoundaryState } from "./types.js";
|
|
2
|
+
import { Component, ErrorInfo, ReactNode } from "react";
|
|
3
|
+
//#region src/errorBoundary/FaroErrorBoundary.d.ts
|
|
4
|
+
declare class FaroErrorBoundary extends Component<FaroErrorBoundaryProps, FaroErrorBoundaryState> {
|
|
5
|
+
override state: FaroErrorBoundaryState;
|
|
6
|
+
constructor(props: FaroErrorBoundaryProps);
|
|
7
|
+
getErrorWithComponentStack(error: Error, errorInfo: ErrorInfo): Error;
|
|
8
|
+
static getDerivedStateFromError(error: Error): FaroErrorBoundaryState;
|
|
9
|
+
override componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
10
|
+
override componentDidMount(): void;
|
|
11
|
+
override componentWillUnmount(): void;
|
|
12
|
+
resetErrorBoundary(): void;
|
|
13
|
+
override render(): ReactNode;
|
|
14
14
|
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { FaroErrorBoundary };
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { FaroErrorBoundaryState } from "./types.js";
|
|
2
|
+
//#region src/errorBoundary/const.d.ts
|
|
3
|
+
declare const faroErrorBoundaryInitialState: FaroErrorBoundaryState;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { faroErrorBoundaryInitialState };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { FaroErrorBoundaryFallbackRender, FaroErrorBoundaryProps, FaroErrorBoundaryState, ReactNodeRender, ReactProps } from "./types.js";
|
|
2
|
+
import { FaroErrorBoundary } from "./FaroErrorBoundary.js";
|
|
3
|
+
import { faroErrorBoundaryInitialState } from "./const.js";
|
|
4
|
+
import { withFaroErrorBoundary } from "./withFaroErrorBoundary.js";
|
|
5
|
+
export { FaroErrorBoundary, type FaroErrorBoundaryFallbackRender, type FaroErrorBoundaryProps, type FaroErrorBoundaryState, type ReactNodeRender, type ReactProps, faroErrorBoundaryInitialState, withFaroErrorBoundary };
|
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { PushErrorOptions } from "@grafana/faro-web-sdk";
|
|
2
|
+
import { ReactElement, ReactNode } from "react";
|
|
3
|
+
//#region src/errorBoundary/types.d.ts
|
|
4
|
+
type ReactNodeRender = () => ReactNode;
|
|
5
|
+
type ReactProps = Record<string, any>;
|
|
6
|
+
type FaroErrorBoundaryFallbackRender = (error: Error, resetError: VoidFunction) => ReactElement;
|
|
7
|
+
interface FaroErrorBoundaryProps {
|
|
8
|
+
beforeCapture?: (error: Error | null) => void;
|
|
9
|
+
children?: ReactNode | ReactNodeRender;
|
|
10
|
+
fallback?: ReactElement | FaroErrorBoundaryFallbackRender;
|
|
11
|
+
onError?: (error: Error) => void;
|
|
12
|
+
onMount?: VoidFunction;
|
|
13
|
+
onReset?: (error: Error | null) => void;
|
|
14
|
+
onUnmount?: (error: Error | null) => void;
|
|
15
|
+
pushErrorOptions?: PushErrorOptions;
|
|
15
16
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
interface FaroErrorBoundaryState {
|
|
18
|
+
hasError: boolean;
|
|
19
|
+
error: Error | null;
|
|
19
20
|
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { FaroErrorBoundaryFallbackRender, FaroErrorBoundaryProps, FaroErrorBoundaryState, ReactNodeRender, ReactProps };
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { FaroErrorBoundaryProps, ReactProps } from "./types.js";
|
|
2
|
+
import { ComponentType, FC } from "react";
|
|
3
|
+
//#region src/errorBoundary/withFaroErrorBoundary.d.ts
|
|
4
|
+
declare function withFaroErrorBoundary<P extends ReactProps = {}>(WrappedComponent: ComponentType<P>, errorBoundaryProps: FaroErrorBoundaryProps): FC<P>;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { withFaroErrorBoundary };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,11 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { FaroErrorBoundaryFallbackRender, FaroErrorBoundaryProps, FaroErrorBoundaryState, ReactNodeRender, ReactProps } from "./errorBoundary/types.js";
|
|
2
|
+
import { FaroErrorBoundary } from "./errorBoundary/FaroErrorBoundary.js";
|
|
3
|
+
import { faroErrorBoundaryInitialState } from "./errorBoundary/const.js";
|
|
4
|
+
import { withFaroErrorBoundary } from "./errorBoundary/withFaroErrorBoundary.js";
|
|
5
|
+
import "./errorBoundary/index.js";
|
|
6
|
+
import { NavigationType, ReactRouterHistory, ReactRouterLocation, ReactRouterVersion } from "./router/types.js";
|
|
7
|
+
import { ReactRouterV4V5ActiveEvent, ReactRouterV4V5Dependencies, ReactRouterV4V5RouteShape } from "./router/v4v5/types.js";
|
|
8
|
+
import { FaroRoute } from "./router/v4v5/FaroRoute.js";
|
|
9
|
+
import { createReactRouterV4Options, createReactRouterV5Options } from "./router/v4v5/initialize.js";
|
|
10
|
+
import { setReactRouterV4V5SSRDependencies } from "./router/v4v5/routerDependencies.js";
|
|
11
|
+
import { ReactRouterV6CreateRoutesFromChildren, ReactRouterV6Dependencies, ReactRouterV6MatchRoutes, ReactRouterV6Params, ReactRouterV6RouteMatch, ReactRouterV6RouteObject, ReactRouterV6RoutesProps, ReactRouterV6RoutesShape, ReactRouterV6UseLocation, ReactRouterV6UseNavigationType } from "./router/v6v7/types.js";
|
|
12
|
+
import { FaroRoutes } from "./router/v6v7/FaroRoutes.js";
|
|
13
|
+
import { createReactRouterV6DataOptions, createReactRouterV6Options, createReactRouterV7DataOptions, createReactRouterV7Options } from "./router/v6v7/initialize.js";
|
|
14
|
+
import { setReactRouterV6SSRDependencies, setReactRouterV7SSRDependencies } from "./router/v6v7/routerDependencies.js";
|
|
15
|
+
import { withFaroRouterInstrumentation } from "./router/v6v7/withFaroRouterInstrumentation.js";
|
|
16
|
+
import "./router/index.js";
|
|
17
|
+
import { ReactIntegrationConfig, ReactRouterV4V5Config, ReactRouterV6Config, ReactRouterV7Config, ReactRouterV7DataRouterConfig } from "./types.js";
|
|
18
|
+
import { ReactIntegration } from "./instrumentation.js";
|
|
19
|
+
import { FaroProfiler, FaroProfilerProps } from "./profiler/FaroProfiler.js";
|
|
20
|
+
import { withFaroProfiler } from "./profiler/withFaroProfiler.js";
|
|
21
|
+
import "./profiler/index.js";
|
|
22
|
+
import { getMajorReactVersion, isReactVersionAtLeast, isReactVersionAtLeast16, isReactVersionAtLeast17, isReactVersionAtLeast18, isReactVersionAtLeast19, reactVersion, reactVersionMajor } from "./utils/reactVersion.js";
|
|
23
|
+
import { API, APIEvent, BaseExtension, BaseInstrumentation, BaseObject, BaseObjectKey, BaseObjectPrimitiveValue, BaseObjectValue, BaseTransport, BeforeSendHook, BrowserConfig, Config, ConsoleInstrumentation, ConsoleTransport, ConsoleTransportOptions, ErrorEvent, ErrorsInstrumentation, EventAttributes, EventEvent, EventsAPI, ExceptionEvent, ExceptionEventExtended, ExceptionStackFrame, ExceptionsAPI, ExtendedError, ExtendedPromiseRejectionEvent, Extension, Faro, FetchTransport, FetchTransportOptions, FetchTransportRequestOptions, GlobalObject, Instrumentation, Instrumentations, InternalLogger, InternalLoggerLevel, LogContext, LogEvent, LogLevel, LogsAPI, MeasurementEvent, MeasurementsAPI, Meta, MetaAPI, MetaApp, MetaAttributes, MetaBrowser, MetaGetter, MetaItem, MetaPage, MetaSDK, MetaSDKIntegration, MetaSession, MetaUser, MetaView, Metas, OTELApi, Patterns, PushErrorOptions, PushLogOptions, PushMeasurementOptions, Stacktrace, StacktraceParser, TraceContext, TraceEvent, TracesAPI, Transport, TransportBody, TransportItem, TransportItemPayload, TransportItemType, Transports, UnpatchedConsole, UserActionImportance, VERSION, ViewInstrumentation, WebVitalsInstrumentation, allLogLevels, browserMeta, buildStackFrame, createInternalLogger, createPromiseBuffer, createSession, deepEqual, defaultEventDomain, defaultExceptionType, defaultGlobalObjectKey, defaultInternalLoggerLevel, defaultLogLevel, faro, genShortID, getCurrentTimestamp, getDataFromSafariExtensions, getInternalFaroFromGlobalObject, getStackFramesFromError, getTransportBody, getWebInstrumentations, globalObject, initializeFaro, internalGlobalObjectKey, isArray, isBoolean, isDomError, isDomException, isElement, isElementDefined, isError, isErrorDefined, isErrorEvent, isEvent, isEventDefined, isFunction, isInstanceOf, isInt, isInternalFaroOnGlobalObject, isMap, isMapDefined, isNull, isNumber, isObject, isPrimitive, isRegExp, isString, isSymbol, isSyntheticEvent, isThenable, isToString, isTypeof, isUndefined, makeCoreConfig, noop, parseStacktrace, setInternalFaroOnGlobalObject, transportItemTypeToBodyKey, userActionDataAttribute, userActionTimeoutDataAttribute } from "@grafana/faro-web-sdk";
|
|
24
|
+
export { type API, type APIEvent, BaseExtension, BaseInstrumentation, type BaseObject, type BaseObjectKey, type BaseObjectPrimitiveValue, type BaseObjectValue, BaseTransport, type BeforeSendHook, type BrowserConfig, type Config, ConsoleInstrumentation, ConsoleTransport, type ConsoleTransportOptions, type ErrorEvent, ErrorsInstrumentation, type EventAttributes, type EventEvent, type EventsAPI, type ExceptionEvent, type ExceptionEventExtended, type ExceptionStackFrame, type ExceptionsAPI, type ExtendedError, type ExtendedPromiseRejectionEvent, type Extension, type Faro, FaroErrorBoundary, type FaroErrorBoundaryFallbackRender, type FaroErrorBoundaryProps, type FaroErrorBoundaryState, FaroProfiler, type FaroProfilerProps, FaroRoute, FaroRoutes, FetchTransport, type FetchTransportOptions, type FetchTransportRequestOptions, type GlobalObject, type Instrumentation, type Instrumentations, type InternalLogger, InternalLoggerLevel, type LogContext, type LogEvent, LogLevel, type LogsAPI, type MeasurementEvent, type MeasurementsAPI, type Meta, type MetaAPI, type MetaApp, type MetaAttributes, type MetaBrowser, type MetaGetter, type MetaItem, type MetaPage, type MetaSDK, type MetaSDKIntegration, type MetaSession, type MetaUser, type MetaView, type Metas, NavigationType, type OTELApi, type Patterns, type PushErrorOptions, type PushLogOptions, type PushMeasurementOptions, ReactIntegration, type ReactIntegrationConfig, type ReactNodeRender, type ReactProps, type ReactRouterHistory, type ReactRouterLocation, type ReactRouterV4V5ActiveEvent, type ReactRouterV4V5Config, type ReactRouterV4V5Dependencies, type ReactRouterV4V5RouteShape, type ReactRouterV6Config, type ReactRouterV6CreateRoutesFromChildren, type ReactRouterV6Dependencies, type ReactRouterV6MatchRoutes, type ReactRouterV6Params, type ReactRouterV6RouteMatch, type ReactRouterV6RouteObject, type ReactRouterV6RoutesProps, type ReactRouterV6RoutesShape, type ReactRouterV6UseLocation, type ReactRouterV6UseNavigationType, type ReactRouterV7Config, type ReactRouterV7DataRouterConfig, ReactRouterVersion, type Stacktrace, type StacktraceParser, type TraceContext, type TraceEvent, type TracesAPI, type Transport, type TransportBody, type TransportItem, type TransportItemPayload, TransportItemType, type Transports, type UnpatchedConsole, type UserActionImportance, VERSION, ViewInstrumentation, WebVitalsInstrumentation, allLogLevels, browserMeta, buildStackFrame, createInternalLogger, createPromiseBuffer, createReactRouterV4Options, createReactRouterV5Options, createReactRouterV6DataOptions, createReactRouterV6Options, createReactRouterV7DataOptions, createReactRouterV7Options, createSession, deepEqual, defaultEventDomain, defaultExceptionType, defaultGlobalObjectKey, defaultInternalLoggerLevel, defaultLogLevel, faro, faroErrorBoundaryInitialState, genShortID, getCurrentTimestamp, getDataFromSafariExtensions, getInternalFaroFromGlobalObject, getMajorReactVersion, getStackFramesFromError, getTransportBody, getWebInstrumentations, globalObject, initializeFaro, internalGlobalObjectKey, isArray, isBoolean, isDomError, isDomException, isElement, isElementDefined, isError, isErrorDefined, isErrorEvent, isEvent, isEventDefined, isFunction, isInstanceOf, isInt, isInternalFaroOnGlobalObject, isMap, isMapDefined, isNull, isNumber, isObject, isPrimitive, isReactVersionAtLeast, isReactVersionAtLeast16, isReactVersionAtLeast17, isReactVersionAtLeast18, isReactVersionAtLeast19, isRegExp, isString, isSymbol, isSyntheticEvent, isThenable, isToString, isTypeof, isUndefined, makeCoreConfig, noop, parseStacktrace, reactVersion, reactVersionMajor, setInternalFaroOnGlobalObject, setReactRouterV4V5SSRDependencies, setReactRouterV6SSRDependencies, setReactRouterV7SSRDependencies, transportItemTypeToBodyKey, userActionDataAttribute, userActionTimeoutDataAttribute, withFaroErrorBoundary, withFaroProfiler, withFaroRouterInstrumentation };
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { ReactIntegrationConfig } from "./types.js";
|
|
2
|
+
import { BaseInstrumentation } from "@grafana/faro-web-sdk";
|
|
3
|
+
//#region src/instrumentation.d.ts
|
|
4
|
+
declare class ReactIntegration extends BaseInstrumentation {
|
|
5
|
+
private options;
|
|
6
|
+
name: string;
|
|
7
|
+
version: string;
|
|
8
|
+
constructor(options?: ReactIntegrationConfig);
|
|
9
|
+
initialize(): void;
|
|
9
10
|
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { ReactIntegration };
|
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { Component, ReactNode } from "react";
|
|
2
|
+
import { Span } from "@opentelemetry/api";
|
|
3
|
+
//#region src/profiler/FaroProfiler.d.ts
|
|
4
|
+
interface FaroProfilerProps {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
name: string;
|
|
7
|
+
updateProps: Record<string, unknown>;
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
9
|
+
declare class FaroProfiler extends Component<FaroProfilerProps> {
|
|
10
|
+
protected mountSpan: Span | undefined;
|
|
11
|
+
protected renderSpan: Span | undefined;
|
|
12
|
+
protected updateSpan: Span | undefined;
|
|
13
|
+
private get isOtelInitialized();
|
|
14
|
+
private get otel();
|
|
15
|
+
private get tracer();
|
|
16
|
+
private createSpan;
|
|
17
|
+
private createChildSpan;
|
|
18
|
+
constructor(props: FaroProfilerProps);
|
|
19
|
+
override componentDidMount(): void;
|
|
20
|
+
override shouldComponentUpdate({ updateProps }: FaroProfilerProps): boolean;
|
|
21
|
+
override componentDidUpdate(): void;
|
|
22
|
+
override componentWillUnmount(): void;
|
|
23
|
+
override render(): ReactNode;
|
|
24
24
|
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { FaroProfiler, FaroProfilerProps };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export {
|
|
1
|
+
import { FaroProfiler, FaroProfilerProps } from "./FaroProfiler.js";
|
|
2
|
+
import { withFaroProfiler } from "./withFaroProfiler.js";
|
|
3
|
+
export { FaroProfiler, type FaroProfilerProps, withFaroProfiler };
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { FaroProfilerProps } from "./FaroProfiler.js";
|
|
2
|
+
import { ComponentType, FC } from "react";
|
|
3
|
+
//#region src/profiler/withFaroProfiler.d.ts
|
|
4
|
+
declare function withFaroProfiler<P extends Record<string, any>>(WrappedComponent: ComponentType<P>, options?: Omit<FaroProfilerProps, "updateProps">): FC<P>;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { withFaroProfiler };
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { initializeReactRouterInstrumentation } from "./initialize.js";
|
|
2
|
+
import { NavigationType, ReactRouterHistory, ReactRouterLocation, ReactRouterVersion } from "./types.js";
|
|
3
|
+
import { ReactRouterV4V5ActiveEvent, ReactRouterV4V5Dependencies, ReactRouterV4V5RouteShape } from "./v4v5/types.js";
|
|
4
|
+
import { FaroRoute } from "./v4v5/FaroRoute.js";
|
|
5
|
+
import { createReactRouterV4Options, createReactRouterV5Options } from "./v4v5/initialize.js";
|
|
6
|
+
import { setReactRouterV4V5SSRDependencies } from "./v4v5/routerDependencies.js";
|
|
7
|
+
import "./v4v5/index.js";
|
|
8
|
+
import { ReactRouterV6CreateRoutesFromChildren, ReactRouterV6DataRouterDependencies, ReactRouterV6Dependencies, ReactRouterV6MatchRoutes, ReactRouterV6Params, ReactRouterV6RouteMatch, ReactRouterV6RouteObject, ReactRouterV6RoutesProps, ReactRouterV6RoutesShape, ReactRouterV6UseLocation, ReactRouterV6UseNavigationType } from "./v6v7/types.js";
|
|
9
|
+
import { FaroRoutes } from "./v6v7/FaroRoutes.js";
|
|
10
|
+
import { createReactRouterV6DataOptions, createReactRouterV6Options, createReactRouterV7DataOptions, createReactRouterV7Options } from "./v6v7/initialize.js";
|
|
11
|
+
import { setReactRouterV6SSRDependencies, setReactRouterV7SSRDependencies } from "./v6v7/routerDependencies.js";
|
|
12
|
+
import { withFaroRouterInstrumentation } from "./v6v7/withFaroRouterInstrumentation.js";
|
|
13
|
+
import "./v6v7/index.js";
|
|
14
|
+
export { FaroRoute, FaroRoutes, NavigationType, type ReactRouterHistory, type ReactRouterLocation, type ReactRouterV4V5ActiveEvent, type ReactRouterV4V5Dependencies, type ReactRouterV4V5RouteShape, type ReactRouterV6CreateRoutesFromChildren, type ReactRouterV6DataRouterDependencies, type ReactRouterV6Dependencies, type ReactRouterV6MatchRoutes, type ReactRouterV6Params, type ReactRouterV6RouteMatch, type ReactRouterV6RouteObject, type ReactRouterV6RoutesProps, type ReactRouterV6RoutesShape, type ReactRouterV6UseLocation, type ReactRouterV6UseNavigationType, ReactRouterVersion, createReactRouterV4Options, createReactRouterV5Options, createReactRouterV6DataOptions, createReactRouterV6Options, createReactRouterV7DataOptions, createReactRouterV7Options, initializeReactRouterInstrumentation, setReactRouterV4V5SSRDependencies, setReactRouterV6SSRDependencies, setReactRouterV7SSRDependencies, withFaroRouterInstrumentation };
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { ReactIntegrationConfig } from "../types.js";
|
|
2
|
+
//#region src/router/initialize.d.ts
|
|
3
|
+
declare function initializeReactRouterInstrumentation(options: ReactIntegrationConfig): void;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { initializeReactRouterInstrumentation };
|
|
@@ -1,24 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
//#region src/router/types.d.ts
|
|
2
|
+
interface ReactRouterLocation<S extends any = unknown> {
|
|
3
|
+
hash: string;
|
|
4
|
+
key: string;
|
|
5
|
+
pathname: string;
|
|
6
|
+
search: string;
|
|
7
|
+
state: S;
|
|
7
8
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
interface ReactRouterHistory extends Record<string, any> {
|
|
10
|
+
listen?: (cb: (location: ReactRouterLocation, action: NavigationType) => void) => void;
|
|
11
|
+
location?: ReactRouterLocation;
|
|
11
12
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
declare enum ReactRouterVersion {
|
|
14
|
+
V4 = "v4",
|
|
15
|
+
V5 = "v5",
|
|
16
|
+
V6 = "v6",
|
|
17
|
+
V6_data_router = "v6_data_router",
|
|
18
|
+
V7 = "v7",
|
|
19
|
+
V7_data_router = "v7_data_router"
|
|
19
20
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
declare enum NavigationType {
|
|
22
|
+
Pop = "POP",
|
|
23
|
+
Push = "PUSH",
|
|
24
|
+
Replace = "REPLACE"
|
|
24
25
|
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { NavigationType, ReactRouterHistory, ReactRouterLocation, ReactRouterVersion };
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { ReactRouterV4V5RouteProps } from "./types.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
//#region src/router/v4v5/FaroRoute.d.ts
|
|
4
|
+
declare function FaroRoute(props: ReactRouterV4V5RouteProps): React.JSX.Element;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { FaroRoute };
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { ReactRouterV4V5ActiveEvent } from "./types.js";
|
|
2
|
+
//#region src/router/v4v5/activeEvent.d.ts
|
|
3
|
+
declare let activeEvent: ReactRouterV4V5ActiveEvent | undefined;
|
|
4
|
+
declare function createNewActiveEvent(url: string): ReactRouterV4V5ActiveEvent;
|
|
5
|
+
declare function setActiveEventRoute(route: string): void;
|
|
6
|
+
declare function sendActiveEvent(): void;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { activeEvent, createNewActiveEvent, sendActiveEvent, setActiveEventRoute };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ReactRouterV4V5ActiveEvent, ReactRouterV4V5Dependencies, ReactRouterV4V5RouteShape } from "./types.js";
|
|
2
|
+
import { FaroRoute } from "./FaroRoute.js";
|
|
3
|
+
import { createReactRouterV4Options, createReactRouterV5Options, initializeReactRouterV4V5Instrumentation } from "./initialize.js";
|
|
4
|
+
import { setReactRouterV4V5SSRDependencies } from "./routerDependencies.js";
|
|
5
|
+
export { FaroRoute, type ReactRouterV4V5ActiveEvent, type ReactRouterV4V5Dependencies, type ReactRouterV4V5RouteShape, createReactRouterV4Options, createReactRouterV5Options, initializeReactRouterV4V5Instrumentation, setReactRouterV4V5SSRDependencies };
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { ReactRouterV4V5Dependencies } from "./types.js";
|
|
2
|
+
import { ReactRouterV4V5Config } from "../../types.js";
|
|
3
|
+
//#region src/router/v4v5/initialize.d.ts
|
|
4
|
+
declare function initializeReactRouterV4V5Instrumentation(dependencies: ReactRouterV4V5Dependencies): void;
|
|
5
|
+
declare function createReactRouterV4Options(dependencies: ReactRouterV4V5Dependencies): ReactRouterV4V5Config;
|
|
6
|
+
declare function createReactRouterV5Options(dependencies: ReactRouterV4V5Dependencies): ReactRouterV4V5Config;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { createReactRouterV4Options, createReactRouterV5Options, initializeReactRouterV4V5Instrumentation };
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { ReactRouterHistory } from "../types.js";
|
|
2
|
+
import { ReactRouterV4V5Dependencies, ReactRouterV4V5RouteShape } from "./types.js";
|
|
3
|
+
//#region src/router/v4v5/routerDependencies.d.ts
|
|
4
|
+
declare let isInitialized: boolean;
|
|
5
|
+
declare let history: ReactRouterHistory;
|
|
6
|
+
declare let Route: ReactRouterV4V5RouteShape;
|
|
7
|
+
declare function setReactRouterV4V5Dependencies(dependencies: ReactRouterV4V5Dependencies): void;
|
|
8
|
+
declare function setReactRouterV4V5SSRDependencies(newDependencies: Pick<ReactRouterV4V5Dependencies, "Route">): void;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { Route, history, isInitialized, setReactRouterV4V5Dependencies, setReactRouterV4V5SSRDependencies };
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { ReactRouterHistory } from "../types.js";
|
|
2
|
+
//#region src/router/v4v5/types.d.ts
|
|
3
|
+
type ReactRouterV4V5RouteShape = any;
|
|
4
|
+
interface ReactRouterV4V5RouteProps extends Record<string, any> {
|
|
5
|
+
computedMatch?: {
|
|
6
|
+
isExact: boolean;
|
|
7
|
+
path: string;
|
|
8
|
+
};
|
|
8
9
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
interface ReactRouterV4V5Dependencies {
|
|
11
|
+
history: ReactRouterHistory;
|
|
12
|
+
Route: ReactRouterV4V5RouteShape;
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
interface ReactRouterV4V5ActiveEvent extends Record<string, string> {
|
|
15
|
+
route: string;
|
|
16
|
+
url: string;
|
|
16
17
|
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { ReactRouterV4V5ActiveEvent, ReactRouterV4V5Dependencies, ReactRouterV4V5RouteProps, ReactRouterV4V5RouteShape };
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { ReactRouterV6RoutesProps } from "./types.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
//#region src/router/v6v7/FaroRoutes.d.ts
|
|
4
|
+
declare function FaroRoutes(props: ReactRouterV6RoutesProps): React.JSX.Element;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { FaroRoutes };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { ReactRouterV6CreateRoutesFromChildren, ReactRouterV6DataRouterDependencies, ReactRouterV6Dependencies, ReactRouterV6MatchRoutes, ReactRouterV6Params, ReactRouterV6RouteMatch, ReactRouterV6RouteObject, ReactRouterV6RoutesProps, ReactRouterV6RoutesShape, ReactRouterV6UseLocation, ReactRouterV6UseNavigationType } from "./types.js";
|
|
2
|
+
import { FaroRoutes } from "./FaroRoutes.js";
|
|
3
|
+
import { createReactRouterV6DataOptions, createReactRouterV6Options, createReactRouterV7DataOptions, createReactRouterV7Options, initializeReactRouterV6DataRouterInstrumentation, initializeReactRouterV6Instrumentation } from "./initialize.js";
|
|
4
|
+
import { setReactRouterV6SSRDependencies, setReactRouterV7SSRDependencies } from "./routerDependencies.js";
|
|
5
|
+
import { withFaroRouterInstrumentation } from "./withFaroRouterInstrumentation.js";
|
|
6
|
+
export { FaroRoutes, type ReactRouterV6CreateRoutesFromChildren, type ReactRouterV6DataRouterDependencies, type ReactRouterV6Dependencies, type ReactRouterV6MatchRoutes, type ReactRouterV6Params, type ReactRouterV6RouteMatch, type ReactRouterV6RouteObject, type ReactRouterV6RoutesProps, type ReactRouterV6RoutesShape, type ReactRouterV6UseLocation, type ReactRouterV6UseNavigationType, createReactRouterV6DataOptions, createReactRouterV6Options, createReactRouterV7DataOptions, createReactRouterV7Options, initializeReactRouterV6DataRouterInstrumentation, initializeReactRouterV6Instrumentation, setReactRouterV6SSRDependencies, setReactRouterV7SSRDependencies, withFaroRouterInstrumentation };
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { ReactRouterV6DataRouterDependencies, ReactRouterV6Dependencies } from "./types.js";
|
|
2
|
+
import { ReactRouterV6Config, ReactRouterV6DataRouterConfig, ReactRouterV7Config, ReactRouterV7DataRouterConfig } from "../../types.js";
|
|
3
|
+
//#region src/router/v6v7/initialize.d.ts
|
|
4
|
+
declare function initializeReactRouterV6Instrumentation(dependencies: ReactRouterV6Dependencies): void;
|
|
5
|
+
declare function createReactRouterV6Options(dependencies: ReactRouterV6Dependencies): ReactRouterV6Config;
|
|
6
|
+
declare function initializeReactRouterV6DataRouterInstrumentation(dependencies: ReactRouterV6DataRouterDependencies): void;
|
|
7
|
+
declare function createReactRouterV6DataOptions(dependencies: ReactRouterV6DataRouterDependencies): ReactRouterV6DataRouterConfig;
|
|
8
|
+
declare function createReactRouterV7Options(dependencies: ReactRouterV6Dependencies): ReactRouterV7Config;
|
|
9
|
+
declare function createReactRouterV7DataOptions(dependencies: ReactRouterV6DataRouterDependencies): ReactRouterV7DataRouterConfig;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { createReactRouterV6DataOptions, createReactRouterV6Options, createReactRouterV7DataOptions, createReactRouterV7Options, initializeReactRouterV6DataRouterInstrumentation, initializeReactRouterV6Instrumentation };
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { ReactRouterV6CreateRoutesFromChildren, ReactRouterV6DataRouterDependencies, ReactRouterV6Dependencies, ReactRouterV6MatchRoutes, ReactRouterV6RoutesShape, ReactRouterV6UseLocation, ReactRouterV6UseNavigationType } from "./types.js";
|
|
2
|
+
//#region src/router/v6v7/routerDependencies.d.ts
|
|
3
|
+
declare let isInitialized: boolean;
|
|
4
|
+
declare let createRoutesFromChildren: ReactRouterV6CreateRoutesFromChildren;
|
|
5
|
+
declare let matchRoutes: ReactRouterV6MatchRoutes;
|
|
6
|
+
declare let Routes: ReactRouterV6RoutesShape;
|
|
7
|
+
declare let useLocation: ReactRouterV6UseLocation;
|
|
8
|
+
declare let useNavigationType: ReactRouterV6UseNavigationType;
|
|
9
|
+
declare function setReactRouterV6Dependencies(newDependencies: ReactRouterV6Dependencies): void;
|
|
10
|
+
declare function setReactRouterV6SSRDependencies(newDependencies: Pick<ReactRouterV6Dependencies, "Routes">): void;
|
|
11
|
+
declare function setReactRouterV6DataRouterDependencies(newDependencies: ReactRouterV6DataRouterDependencies): void;
|
|
12
|
+
declare function setReactRouterV7SSRDependencies(newDependencies: Pick<ReactRouterV6Dependencies, "Routes">): void;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { Routes, createRoutesFromChildren, isInitialized, matchRoutes, setReactRouterV6DataRouterDependencies, setReactRouterV6Dependencies, setReactRouterV6SSRDependencies, setReactRouterV7SSRDependencies, useLocation, useNavigationType };
|