@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.
Files changed (200) hide show
  1. package/dist/bundle/faro-react.iife.js +11 -8
  2. package/dist/bundle/faro-react.iife.js.map +1 -0
  3. package/dist/cjs/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/defineProperty.js +13 -0
  4. package/dist/cjs/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/objectSpread2.js +26 -0
  5. package/dist/cjs/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/toPrimitive.js +15 -0
  6. package/dist/cjs/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/toPropertyKey.js +10 -0
  7. package/dist/cjs/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/typeof.js +17 -0
  8. package/dist/cjs/_virtual/_rolldown/runtime.js +24 -0
  9. package/dist/cjs/dependencies.js +20 -4
  10. package/dist/cjs/dependencies.js.map +1 -1
  11. package/dist/cjs/errorBoundary/FaroErrorBoundary.js +62 -67
  12. package/dist/cjs/errorBoundary/FaroErrorBoundary.js.map +1 -1
  13. package/dist/cjs/errorBoundary/const.js +7 -4
  14. package/dist/cjs/errorBoundary/const.js.map +1 -1
  15. package/dist/cjs/errorBoundary/index.js +6 -8
  16. package/dist/cjs/errorBoundary/types.js +0 -1
  17. package/dist/cjs/errorBoundary/withFaroErrorBoundary.js +17 -15
  18. package/dist/cjs/errorBoundary/withFaroErrorBoundary.js.map +1 -1
  19. package/dist/cjs/index.js +480 -108
  20. package/dist/cjs/instrumentation.js +19 -16
  21. package/dist/cjs/instrumentation.js.map +1 -1
  22. package/dist/cjs/profiler/FaroProfiler.js +75 -97
  23. package/dist/cjs/profiler/FaroProfiler.js.map +1 -1
  24. package/dist/cjs/profiler/index.js +4 -6
  25. package/dist/cjs/profiler/withFaroProfiler.js +20 -15
  26. package/dist/cjs/profiler/withFaroProfiler.js.map +1 -1
  27. package/dist/cjs/router/index.js +26 -21
  28. package/dist/cjs/router/initialize.js +30 -26
  29. package/dist/cjs/router/initialize.js.map +1 -1
  30. package/dist/cjs/router/types.js +20 -16
  31. package/dist/cjs/router/types.js.map +1 -1
  32. package/dist/cjs/router/v4v5/FaroRoute.js +12 -12
  33. package/dist/cjs/router/v4v5/FaroRoute.js.map +1 -1
  34. package/dist/cjs/router/v4v5/activeEvent.js +23 -17
  35. package/dist/cjs/router/v4v5/activeEvent.js.map +1 -1
  36. package/dist/cjs/router/v4v5/index.js +8 -10
  37. package/dist/cjs/router/v4v5/initialize.js +36 -34
  38. package/dist/cjs/router/v4v5/initialize.js.map +1 -1
  39. package/dist/cjs/router/v4v5/routerDependencies.js +30 -8
  40. package/dist/cjs/router/v4v5/routerDependencies.js.map +1 -1
  41. package/dist/cjs/router/v4v5/types.js +0 -1
  42. package/dist/cjs/router/v6v7/FaroRoutes.js +42 -59
  43. package/dist/cjs/router/v6v7/FaroRoutes.js.map +1 -1
  44. package/dist/cjs/router/v6v7/index.js +14 -16
  45. package/dist/cjs/router/v6v7/initialize.js +34 -32
  46. package/dist/cjs/router/v6v7/initialize.js.map +1 -1
  47. package/dist/cjs/router/v6v7/routerDependencies.js +59 -16
  48. package/dist/cjs/router/v6v7/routerDependencies.js.map +1 -1
  49. package/dist/cjs/router/v6v7/types.js +0 -1
  50. package/dist/cjs/router/v6v7/utils.js +27 -32
  51. package/dist/cjs/router/v6v7/utils.js.map +1 -1
  52. package/dist/cjs/router/v6v7/withFaroRouterInstrumentation.js +32 -25
  53. package/dist/cjs/router/v6v7/withFaroRouterInstrumentation.js.map +1 -1
  54. package/dist/cjs/types.js +0 -1
  55. package/dist/cjs/utils/index.js +9 -11
  56. package/dist/cjs/utils/reactVersion.js +24 -18
  57. package/dist/cjs/utils/reactVersion.js.map +1 -1
  58. package/dist/esm/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/defineProperty.js +12 -0
  59. package/dist/esm/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/objectSpread2.js +25 -0
  60. package/dist/esm/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/toPrimitive.js +14 -0
  61. package/dist/esm/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/toPropertyKey.js +9 -0
  62. package/dist/esm/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/typeof.js +11 -0
  63. package/dist/esm/dependencies.js +9 -5
  64. package/dist/esm/dependencies.js.map +1 -1
  65. package/dist/esm/errorBoundary/FaroErrorBoundary.js +61 -66
  66. package/dist/esm/errorBoundary/FaroErrorBoundary.js.map +1 -1
  67. package/dist/esm/errorBoundary/const.js +7 -3
  68. package/dist/esm/errorBoundary/const.js.map +1 -1
  69. package/dist/esm/errorBoundary/index.js +4 -4
  70. package/dist/esm/errorBoundary/types.js +0 -2
  71. package/dist/esm/errorBoundary/withFaroErrorBoundary.js +15 -12
  72. package/dist/esm/errorBoundary/withFaroErrorBoundary.js.map +1 -1
  73. package/dist/esm/index.js +21 -7
  74. package/dist/esm/instrumentation.js +20 -15
  75. package/dist/esm/instrumentation.js.map +1 -1
  76. package/dist/esm/profiler/FaroProfiler.js +74 -96
  77. package/dist/esm/profiler/FaroProfiler.js.map +1 -1
  78. package/dist/esm/profiler/index.js +3 -3
  79. package/dist/esm/profiler/withFaroProfiler.js +18 -12
  80. package/dist/esm/profiler/withFaroProfiler.js.map +1 -1
  81. package/dist/esm/router/index.js +12 -5
  82. package/dist/esm/router/initialize.js +31 -26
  83. package/dist/esm/router/initialize.js.map +1 -1
  84. package/dist/esm/router/types.js +19 -15
  85. package/dist/esm/router/types.js.map +1 -1
  86. package/dist/esm/router/v4v5/FaroRoute.js +11 -9
  87. package/dist/esm/router/v4v5/FaroRoute.js.map +1 -1
  88. package/dist/esm/router/v4v5/activeEvent.js +18 -16
  89. package/dist/esm/router/v4v5/activeEvent.js.map +1 -1
  90. package/dist/esm/router/v4v5/index.js +4 -4
  91. package/dist/esm/router/v4v5/initialize.js +35 -31
  92. package/dist/esm/router/v4v5/initialize.js.map +1 -1
  93. package/dist/esm/router/v4v5/routerDependencies.js +13 -9
  94. package/dist/esm/router/v4v5/routerDependencies.js.map +1 -1
  95. package/dist/esm/router/v4v5/types.js +0 -2
  96. package/dist/esm/router/v6v7/FaroRoutes.js +41 -26
  97. package/dist/esm/router/v6v7/FaroRoutes.js.map +1 -1
  98. package/dist/esm/router/v6v7/index.js +5 -5
  99. package/dist/esm/router/v6v7/initialize.js +33 -29
  100. package/dist/esm/router/v6v7/initialize.js.map +1 -1
  101. package/dist/esm/router/v6v7/routerDependencies.js +24 -20
  102. package/dist/esm/router/v6v7/routerDependencies.js.map +1 -1
  103. package/dist/esm/router/v6v7/types.js +0 -2
  104. package/dist/esm/router/v6v7/utils.js +28 -32
  105. package/dist/esm/router/v6v7/utils.js.map +1 -1
  106. package/dist/esm/router/v6v7/withFaroRouterInstrumentation.js +33 -25
  107. package/dist/esm/router/v6v7/withFaroRouterInstrumentation.js.map +1 -1
  108. package/dist/esm/types.js +0 -2
  109. package/dist/esm/utils/index.js +2 -2
  110. package/dist/esm/utils/reactVersion.js +20 -17
  111. package/dist/esm/utils/reactVersion.js.map +1 -1
  112. package/dist/types/dependencies.d.ts +7 -4
  113. package/dist/types/errorBoundary/FaroErrorBoundary.d.ts +15 -13
  114. package/dist/types/errorBoundary/const.d.ts +5 -2
  115. package/dist/types/errorBoundary/index.d.ts +5 -4
  116. package/dist/types/errorBoundary/types.d.ts +20 -17
  117. package/dist/types/errorBoundary/withFaroErrorBoundary.d.ts +6 -3
  118. package/dist/types/index.d.ts +24 -11
  119. package/dist/types/instrumentation.d.ts +11 -8
  120. package/dist/types/profiler/FaroProfiler.d.ts +24 -22
  121. package/dist/types/profiler/index.d.ts +3 -3
  122. package/dist/types/profiler/withFaroProfiler.d.ts +6 -3
  123. package/dist/types/router/index.d.ts +14 -7
  124. package/dist/types/router/initialize.d.ts +5 -2
  125. package/dist/types/router/types.d.ts +23 -20
  126. package/dist/types/router/v4v5/FaroRoute.d.ts +6 -3
  127. package/dist/types/router/v4v5/activeEvent.d.ts +8 -5
  128. package/dist/types/router/v4v5/index.d.ts +5 -4
  129. package/dist/types/router/v4v5/initialize.d.ts +8 -5
  130. package/dist/types/router/v4v5/routerDependencies.d.ts +10 -7
  131. package/dist/types/router/v4v5/types.d.ts +16 -13
  132. package/dist/types/router/v6v7/FaroRoutes.d.ts +6 -3
  133. package/dist/types/router/v6v7/index.d.ts +6 -5
  134. package/dist/types/router/v6v7/initialize.d.ts +11 -8
  135. package/dist/types/router/v6v7/routerDependencies.d.ts +14 -11
  136. package/dist/types/router/v6v7/types.d.ts +57 -58
  137. package/dist/types/router/v6v7/utils.d.ts +7 -4
  138. package/dist/types/router/v6v7/withFaroRouterInstrumentation.d.ts +11 -10
  139. package/dist/types/types.d.ts +24 -18
  140. package/dist/types/utils/index.d.ts +2 -1
  141. package/dist/types/utils/reactVersion.d.ts +11 -8
  142. package/package.json +17 -21
  143. package/dist/bundle/types/dependencies.d.ts +0 -4
  144. package/dist/bundle/types/errorBoundary/FaroErrorBoundary.d.ts +0 -14
  145. package/dist/bundle/types/errorBoundary/const.d.ts +0 -2
  146. package/dist/bundle/types/errorBoundary/index.d.ts +0 -4
  147. package/dist/bundle/types/errorBoundary/types.d.ts +0 -19
  148. package/dist/bundle/types/errorBoundary/withFaroErrorBoundary.d.ts +0 -3
  149. package/dist/bundle/types/index.d.ts +0 -11
  150. package/dist/bundle/types/instrumentation.d.ts +0 -9
  151. package/dist/bundle/types/profiler/FaroProfiler.d.ts +0 -24
  152. package/dist/bundle/types/profiler/FaroProfiler.test.d.ts +0 -1
  153. package/dist/bundle/types/profiler/index.d.ts +0 -3
  154. package/dist/bundle/types/profiler/withFaroProfiler.d.ts +0 -3
  155. package/dist/bundle/types/router/index.d.ts +0 -7
  156. package/dist/bundle/types/router/initialize.d.ts +0 -2
  157. package/dist/bundle/types/router/types.d.ts +0 -24
  158. package/dist/bundle/types/router/v4v5/FaroRoute.d.ts +0 -3
  159. package/dist/bundle/types/router/v4v5/activeEvent.d.ts +0 -5
  160. package/dist/bundle/types/router/v4v5/index.d.ts +0 -4
  161. package/dist/bundle/types/router/v4v5/initialize.d.ts +0 -5
  162. package/dist/bundle/types/router/v4v5/routerDependencies.d.ts +0 -7
  163. package/dist/bundle/types/router/v4v5/types.d.ts +0 -16
  164. package/dist/bundle/types/router/v6v7/FaroRoutes.d.ts +0 -3
  165. package/dist/bundle/types/router/v6v7/index.d.ts +0 -5
  166. package/dist/bundle/types/router/v6v7/initialize.d.ts +0 -8
  167. package/dist/bundle/types/router/v6v7/routerDependencies.d.ts +0 -11
  168. package/dist/bundle/types/router/v6v7/types.d.ts +0 -69
  169. package/dist/bundle/types/router/v6v7/utils.d.ts +0 -4
  170. package/dist/bundle/types/router/v6v7/withFaroRouterInstrumentation.d.ts +0 -17
  171. package/dist/bundle/types/types.d.ts +0 -24
  172. package/dist/bundle/types/utils/index.d.ts +0 -1
  173. package/dist/bundle/types/utils/reactVersion.d.ts +0 -8
  174. package/dist/cjs/errorBoundary/index.js.map +0 -1
  175. package/dist/cjs/errorBoundary/types.js.map +0 -1
  176. package/dist/cjs/index.js.map +0 -1
  177. package/dist/cjs/profiler/FaroProfiler.test.js +0 -75
  178. package/dist/cjs/profiler/FaroProfiler.test.js.map +0 -1
  179. package/dist/cjs/profiler/index.js.map +0 -1
  180. package/dist/cjs/router/index.js.map +0 -1
  181. package/dist/cjs/router/v4v5/index.js.map +0 -1
  182. package/dist/cjs/router/v4v5/types.js.map +0 -1
  183. package/dist/cjs/router/v6v7/index.js.map +0 -1
  184. package/dist/cjs/router/v6v7/types.js.map +0 -1
  185. package/dist/cjs/types.js.map +0 -1
  186. package/dist/cjs/utils/index.js.map +0 -1
  187. package/dist/esm/errorBoundary/index.js.map +0 -1
  188. package/dist/esm/errorBoundary/types.js.map +0 -1
  189. package/dist/esm/index.js.map +0 -1
  190. package/dist/esm/profiler/FaroProfiler.test.js +0 -73
  191. package/dist/esm/profiler/FaroProfiler.test.js.map +0 -1
  192. package/dist/esm/profiler/index.js.map +0 -1
  193. package/dist/esm/router/index.js.map +0 -1
  194. package/dist/esm/router/v4v5/index.js.map +0 -1
  195. package/dist/esm/router/v4v5/types.js.map +0 -1
  196. package/dist/esm/router/v6v7/index.js.map +0 -1
  197. package/dist/esm/router/v6v7/types.js.map +0 -1
  198. package/dist/esm/types.js.map +0 -1
  199. package/dist/esm/utils/index.js.map +0 -1
  200. package/dist/types/profiler/FaroProfiler.test.d.ts +0 -1
@@ -1,4 +1,7 @@
1
- import type { API, InternalLogger } from '@grafana/faro-web-sdk';
2
- export declare let internalLogger: InternalLogger;
3
- export declare let api: API;
4
- export declare function setDependencies(newInternalLogger: InternalLogger, newApi: API): void;
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 { Component } from 'react';
2
- import type { ErrorInfo, ReactNode } from 'react';
3
- import type { FaroErrorBoundaryProps, FaroErrorBoundaryState } from './types';
4
- export declare class FaroErrorBoundary extends Component<FaroErrorBoundaryProps, FaroErrorBoundaryState> {
5
- state: FaroErrorBoundaryState;
6
- constructor(props: FaroErrorBoundaryProps);
7
- getErrorWithComponentStack(error: Error, errorInfo: ErrorInfo): Error;
8
- static getDerivedStateFromError(error: Error): FaroErrorBoundaryState;
9
- componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
10
- componentDidMount(): void;
11
- componentWillUnmount(): void;
12
- resetErrorBoundary(): void;
13
- render(): ReactNode;
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 type { FaroErrorBoundaryState } from './types';
2
- export declare const faroErrorBoundaryInitialState: FaroErrorBoundaryState;
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
- export { faroErrorBoundaryInitialState } from './const';
2
- export { FaroErrorBoundary } from './FaroErrorBoundary';
3
- export type { FaroErrorBoundaryFallbackRender, FaroErrorBoundaryProps, FaroErrorBoundaryState, ReactNodeRender, ReactProps, } from './types';
4
- export { withFaroErrorBoundary } from './withFaroErrorBoundary';
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 type { ReactElement, ReactNode } from 'react';
2
- import type { PushErrorOptions } from '@grafana/faro-web-sdk';
3
- export type ReactNodeRender = () => ReactNode;
4
- export type ReactProps = Record<string, any>;
5
- export type FaroErrorBoundaryFallbackRender = (error: Error, resetError: VoidFunction) => ReactElement;
6
- export interface FaroErrorBoundaryProps {
7
- beforeCapture?: (error: Error | null) => void;
8
- children?: ReactNode | ReactNodeRender;
9
- fallback?: ReactElement | FaroErrorBoundaryFallbackRender;
10
- onError?: (error: Error) => void;
11
- onMount?: VoidFunction;
12
- onReset?: (error: Error | null) => void;
13
- onUnmount?: (error: Error | null) => void;
14
- pushErrorOptions?: PushErrorOptions;
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
- export interface FaroErrorBoundaryState {
17
- hasError: boolean;
18
- error: Error | null;
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 type { ComponentType, FC } from 'react';
2
- import type { FaroErrorBoundaryProps, ReactProps } from './types';
3
- export declare function withFaroErrorBoundary<P extends ReactProps = {}>(WrappedComponent: ComponentType<P>, errorBoundaryProps: FaroErrorBoundaryProps): FC<P>;
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 };
@@ -1,11 +1,24 @@
1
- export { FaroErrorBoundary, faroErrorBoundaryInitialState, withFaroErrorBoundary } from './errorBoundary';
2
- export type { FaroErrorBoundaryFallbackRender, FaroErrorBoundaryProps, FaroErrorBoundaryState, ReactNodeRender, ReactProps, } from './errorBoundary';
3
- export { ReactIntegration } from './instrumentation';
4
- export { FaroProfiler, withFaroProfiler } from './profiler';
5
- export type { FaroProfilerProps } from './profiler';
6
- export { FaroRoute, FaroRoutes, NavigationType, ReactRouterVersion, createReactRouterV4Options, createReactRouterV5Options, createReactRouterV6Options, createReactRouterV6DataOptions, createReactRouterV7Options, createReactRouterV7DataOptions, setReactRouterV4V5SSRDependencies, setReactRouterV6SSRDependencies, setReactRouterV7SSRDependencies, withFaroRouterInstrumentation, } from './router';
7
- export type { ReactRouterHistory, ReactRouterLocation, ReactRouterV4V5ActiveEvent, ReactRouterV4V5Dependencies, ReactRouterV4V5RouteShape, ReactRouterV6CreateRoutesFromChildren, ReactRouterV6Dependencies, ReactRouterV6MatchRoutes, ReactRouterV6Params, ReactRouterV6RouteMatch, ReactRouterV6RouteObject, ReactRouterV6RoutesProps, ReactRouterV6RoutesShape, ReactRouterV6UseLocation, ReactRouterV6UseNavigationType, } from './router';
8
- export type { ReactIntegrationConfig, ReactRouterV4V5Config, ReactRouterV6Config, ReactRouterV7Config, ReactRouterV7DataRouterConfig, } from './types';
9
- export { getMajorReactVersion, isReactVersionAtLeast, isReactVersionAtLeast16, isReactVersionAtLeast17, isReactVersionAtLeast18, isReactVersionAtLeast19, reactVersion, reactVersionMajor, } from './utils';
10
- export { faro, allLogLevels, BaseExtension, BaseInstrumentation, BaseTransport, browserMeta, buildStackFrame, ConsoleInstrumentation, ConsoleTransport, createInternalLogger, createPromiseBuffer, createSession, deepEqual, defaultExceptionType, defaultEventDomain, defaultGlobalObjectKey, defaultInternalLoggerLevel, defaultLogLevel, ErrorsInstrumentation, FetchTransport, 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, InternalLoggerLevel, LogLevel, makeCoreConfig, noop, parseStacktrace, setInternalFaroOnGlobalObject, TransportItemType, transportItemTypeToBodyKey, VERSION, ViewInstrumentation, WebVitalsInstrumentation, userActionDataAttribute, } from '@grafana/faro-web-sdk';
11
- export type { Faro, API, APIEvent, BaseObject, BaseObjectKey, BaseObjectPrimitiveValue, BaseObjectValue, BeforeSendHook, BrowserConfig, Config, ConsoleTransportOptions, ErrorEvent, EventAttributes, EventEvent, EventsAPI, ExceptionEvent, ExceptionStackFrame, ExceptionsAPI, ExtendedError, ExtendedPromiseRejectionEvent, Extension, FetchTransportOptions, FetchTransportRequestOptions, GlobalObject, Instrumentation, Instrumentations, InternalLogger, LogContext, LogEvent, LogsAPI, MeasurementEvent, MeasurementsAPI, Meta, MetaAPI, MetaApp, MetaAttributes, MetaBrowser, MetaGetter, MetaItem, MetaPage, Metas, MetaSDK, MetaSDKIntegration, MetaSession, MetaUser, MetaView, OTELApi, Patterns, PushErrorOptions, PushLogOptions, PushMeasurementOptions, Stacktrace, StacktraceParser, TraceContext, TraceEvent, TracesAPI, Transport, TransportBody, TransportItem, TransportItemPayload, Transports, UnpatchedConsole, ExceptionEventExtended, UserActionImportance, } from '@grafana/faro-web-sdk';
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 { BaseInstrumentation } from '@grafana/faro-web-sdk';
2
- import type { ReactIntegrationConfig } from './types';
3
- export declare class ReactIntegration extends BaseInstrumentation {
4
- private options;
5
- name: string;
6
- version: string;
7
- constructor(options?: ReactIntegrationConfig);
8
- initialize(): void;
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 type { Span } from '@opentelemetry/api';
2
- import { Component } from 'react';
3
- import type { ReactNode } from 'react';
4
- export interface FaroProfilerProps {
5
- children: ReactNode;
6
- name: string;
7
- updateProps: Record<string, unknown>;
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
- export 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
- componentDidMount(): void;
20
- shouldComponentUpdate({ updateProps }: FaroProfilerProps): boolean;
21
- componentDidUpdate(): void;
22
- componentWillUnmount(): void;
23
- render(): ReactNode;
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
- export { FaroProfiler } from './FaroProfiler';
2
- export type { FaroProfilerProps } from './FaroProfiler';
3
- export { withFaroProfiler } from './withFaroProfiler';
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 type { ComponentType, FC } from 'react';
2
- import type { FaroProfilerProps } from './FaroProfiler';
3
- export declare function withFaroProfiler<P extends Record<string, any>>(WrappedComponent: ComponentType<P>, options?: Omit<FaroProfilerProps, 'updateProps'>): FC<P>;
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
- export { initializeReactRouterInstrumentation } from './initialize';
2
- export { NavigationType, ReactRouterVersion } from './types';
3
- export type { ReactRouterLocation, ReactRouterHistory } from './types';
4
- export { FaroRoute, createReactRouterV4Options, createReactRouterV5Options, setReactRouterV4V5SSRDependencies, } from './v4v5';
5
- export type { ReactRouterV4V5ActiveEvent, ReactRouterV4V5Dependencies, ReactRouterV4V5RouteShape } from './v4v5';
6
- export { FaroRoutes, createReactRouterV6Options, createReactRouterV6DataOptions, setReactRouterV6SSRDependencies, setReactRouterV7SSRDependencies, withFaroRouterInstrumentation, createReactRouterV7Options, createReactRouterV7DataOptions, } from './v6v7';
7
- export type { ReactRouterV6CreateRoutesFromChildren, ReactRouterV6Dependencies, ReactRouterV6MatchRoutes, ReactRouterV6Params, ReactRouterV6RouteMatch, ReactRouterV6RouteObject, ReactRouterV6RoutesProps, ReactRouterV6RoutesShape, ReactRouterV6UseLocation, ReactRouterV6UseNavigationType, ReactRouterV6DataRouterDependencies, } from './v6v7';
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 type { ReactIntegrationConfig } from '../types';
2
- export declare function initializeReactRouterInstrumentation(options: ReactIntegrationConfig): void;
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
- export interface ReactRouterLocation<S extends any = unknown> {
2
- hash: string;
3
- key: string;
4
- pathname: string;
5
- search: string;
6
- state: S;
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
- export interface ReactRouterHistory extends Record<string, any> {
9
- listen?: (cb: (location: ReactRouterLocation, action: NavigationType) => void) => void;
10
- location?: ReactRouterLocation;
9
+ interface ReactRouterHistory extends Record<string, any> {
10
+ listen?: (cb: (location: ReactRouterLocation, action: NavigationType) => void) => void;
11
+ location?: ReactRouterLocation;
11
12
  }
12
- export declare enum ReactRouterVersion {
13
- V4 = "v4",
14
- V5 = "v5",
15
- V6 = "v6",
16
- V6_data_router = "v6_data_router",
17
- V7 = "v7",
18
- V7_data_router = "v7_data_router"
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
- export declare enum NavigationType {
21
- Pop = "POP",
22
- Push = "PUSH",
23
- Replace = "REPLACE"
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 React from 'react';
2
- import type { ReactRouterV4V5RouteProps } from './types';
3
- export declare function FaroRoute(props: ReactRouterV4V5RouteProps): React.JSX.Element;
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 type { ReactRouterV4V5ActiveEvent } from './types';
2
- export declare let activeEvent: ReactRouterV4V5ActiveEvent | undefined;
3
- export declare function createNewActiveEvent(url: string): ReactRouterV4V5ActiveEvent;
4
- export declare function setActiveEventRoute(route: string): void;
5
- export declare function sendActiveEvent(): void;
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
- export { FaroRoute } from './FaroRoute';
2
- export { createReactRouterV4Options, createReactRouterV5Options, initializeReactRouterV4V5Instrumentation, } from './initialize';
3
- export { setReactRouterV4V5SSRDependencies } from './routerDependencies';
4
- export type { ReactRouterV4V5ActiveEvent, ReactRouterV4V5Dependencies, ReactRouterV4V5RouteShape } from './types';
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 type { ReactRouterV4V5Config } from '../../types';
2
- import type { ReactRouterV4V5Dependencies } from './types';
3
- export declare function initializeReactRouterV4V5Instrumentation(dependencies: ReactRouterV4V5Dependencies): void;
4
- export declare function createReactRouterV4Options(dependencies: ReactRouterV4V5Dependencies): ReactRouterV4V5Config;
5
- export declare function createReactRouterV5Options(dependencies: ReactRouterV4V5Dependencies): ReactRouterV4V5Config;
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 type { ReactRouterHistory } from '../types';
2
- import type { ReactRouterV4V5Dependencies, ReactRouterV4V5RouteShape } from './types';
3
- export declare let isInitialized: boolean;
4
- export declare let history: ReactRouterHistory;
5
- export declare let Route: ReactRouterV4V5RouteShape;
6
- export declare function setReactRouterV4V5Dependencies(dependencies: ReactRouterV4V5Dependencies): void;
7
- export declare function setReactRouterV4V5SSRDependencies(newDependencies: Pick<ReactRouterV4V5Dependencies, 'Route'>): void;
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 type { ReactRouterHistory } from '../types';
2
- export type ReactRouterV4V5RouteShape = any;
3
- export interface ReactRouterV4V5RouteProps extends Record<string, any> {
4
- computedMatch?: {
5
- isExact: boolean;
6
- path: string;
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
- export interface ReactRouterV4V5Dependencies {
10
- history: ReactRouterHistory;
11
- Route: ReactRouterV4V5RouteShape;
10
+ interface ReactRouterV4V5Dependencies {
11
+ history: ReactRouterHistory;
12
+ Route: ReactRouterV4V5RouteShape;
12
13
  }
13
- export interface ReactRouterV4V5ActiveEvent extends Record<string, string> {
14
- route: string;
15
- url: string;
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 React from 'react';
2
- import type { ReactRouterV6RoutesProps } from './types';
3
- export declare function FaroRoutes(props: ReactRouterV6RoutesProps): React.JSX.Element;
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
- export { FaroRoutes } from './FaroRoutes';
2
- export { createReactRouterV6Options, createReactRouterV6DataOptions, initializeReactRouterV6Instrumentation, initializeReactRouterV6DataRouterInstrumentation, createReactRouterV7DataOptions, createReactRouterV7Options, } from './initialize';
3
- export { setReactRouterV6SSRDependencies, setReactRouterV7SSRDependencies } from './routerDependencies';
4
- export { withFaroRouterInstrumentation } from './withFaroRouterInstrumentation';
5
- export type { ReactRouterV6CreateRoutesFromChildren, ReactRouterV6Dependencies, ReactRouterV6MatchRoutes, ReactRouterV6Params, ReactRouterV6RouteMatch, ReactRouterV6RouteObject, ReactRouterV6RoutesProps, ReactRouterV6RoutesShape, ReactRouterV6UseLocation, ReactRouterV6UseNavigationType, ReactRouterV6DataRouterDependencies, } from './types';
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 type { ReactRouterV6Config, ReactRouterV6DataRouterConfig, ReactRouterV7Config, ReactRouterV7DataRouterConfig } from '../../types';
2
- import type { ReactRouterV6DataRouterDependencies, ReactRouterV6Dependencies } from './types';
3
- export declare function initializeReactRouterV6Instrumentation(dependencies: ReactRouterV6Dependencies): void;
4
- export declare function createReactRouterV6Options(dependencies: ReactRouterV6Dependencies): ReactRouterV6Config;
5
- export declare function initializeReactRouterV6DataRouterInstrumentation(dependencies: ReactRouterV6DataRouterDependencies): void;
6
- export declare function createReactRouterV6DataOptions(dependencies: ReactRouterV6DataRouterDependencies): ReactRouterV6DataRouterConfig;
7
- export declare function createReactRouterV7Options(dependencies: ReactRouterV6Dependencies): ReactRouterV7Config;
8
- export declare function createReactRouterV7DataOptions(dependencies: ReactRouterV6DataRouterDependencies): ReactRouterV7DataRouterConfig;
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 type { ReactRouterV6CreateRoutesFromChildren, ReactRouterV6DataRouterDependencies, ReactRouterV6Dependencies, ReactRouterV6MatchRoutes, ReactRouterV6RoutesShape, ReactRouterV6UseLocation, ReactRouterV6UseNavigationType } from './types';
2
- export declare let isInitialized: boolean;
3
- export declare let createRoutesFromChildren: ReactRouterV6CreateRoutesFromChildren;
4
- export declare let matchRoutes: ReactRouterV6MatchRoutes;
5
- export declare let Routes: ReactRouterV6RoutesShape;
6
- export declare let useLocation: ReactRouterV6UseLocation;
7
- export declare let useNavigationType: ReactRouterV6UseNavigationType;
8
- export declare function setReactRouterV6Dependencies(newDependencies: ReactRouterV6Dependencies): void;
9
- export declare function setReactRouterV6SSRDependencies(newDependencies: Pick<ReactRouterV6Dependencies, 'Routes'>): void;
10
- export declare function setReactRouterV6DataRouterDependencies(newDependencies: ReactRouterV6DataRouterDependencies): void;
11
- export declare function setReactRouterV7SSRDependencies(newDependencies: Pick<ReactRouterV6Dependencies, 'Routes'>): void;
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 };