@sentry/react 10.68.0 → 11.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/error.js +1 -7
- package/build/cjs/error.js.map +1 -1
- package/build/cjs/hoist-non-react-statics.js +1 -7
- package/build/cjs/hoist-non-react-statics.js.map +1 -1
- package/build/cjs/profiler.js +10 -6
- package/build/cjs/profiler.js.map +1 -1
- package/build/cjs/reactrouter-compat-utils/instrumentation.js +22 -24
- package/build/cjs/reactrouter-compat-utils/instrumentation.js.map +1 -1
- package/build/cjs/reactrouter.js +4 -1
- package/build/cjs/reactrouter.js.map +1 -1
- package/build/cjs/reactrouterv3.js.map +1 -1
- package/build/cjs/tanstackrouter.js +2 -1
- package/build/cjs/tanstackrouter.js.map +1 -1
- package/build/esm/error.js +2 -7
- package/build/esm/error.js.map +1 -1
- package/build/esm/hoist-non-react-statics.js +1 -7
- package/build/esm/hoist-non-react-statics.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/esm/profiler.js +10 -6
- package/build/esm/profiler.js.map +1 -1
- package/build/esm/reactrouter-compat-utils/instrumentation.js +22 -24
- package/build/esm/reactrouter-compat-utils/instrumentation.js.map +1 -1
- package/build/esm/reactrouter.js +4 -1
- package/build/esm/reactrouter.js.map +1 -1
- package/build/esm/reactrouterv3.js.map +1 -1
- package/build/esm/tanstackrouter.js +2 -1
- package/build/esm/tanstackrouter.js.map +1 -1
- package/build/types/error.d.ts +0 -4
- package/build/types/error.d.ts.map +1 -1
- package/build/types/errorboundary.d.ts.map +1 -1
- package/build/types/hoist-non-react-statics.d.ts.map +1 -1
- package/build/types/profiler.d.ts +0 -1
- package/build/types/profiler.d.ts.map +1 -1
- package/build/types/reactrouter-compat-utils/instrumentation.d.ts +1 -1
- package/build/types/reactrouter-compat-utils/instrumentation.d.ts.map +1 -1
- package/build/types/reactrouter.d.ts.map +1 -1
- package/build/types/tanstackrouter.d.ts.map +1 -1
- package/package.json +8 -19
- package/build/cjs/constants.js +0 -10
- package/build/cjs/constants.js.map +0 -1
- package/build/esm/constants.js +0 -6
- package/build/esm/constants.js.map +0 -1
- package/build/types/constants.d.ts +0 -4
- package/build/types/constants.d.ts.map +0 -1
- package/build/types-ts3.8/constants.d.ts +0 -4
- package/build/types-ts3.8/debug-build.d.ts +0 -7
- package/build/types-ts3.8/error.d.ts +0 -41
- package/build/types-ts3.8/errorboundary.d.ts +0 -87
- package/build/types-ts3.8/hoist-non-react-statics.d.ts +0 -21
- package/build/types-ts3.8/index.d.ts +0 -14
- package/build/types-ts3.8/isSyntheticEvent.d.ts +0 -10
- package/build/types-ts3.8/profiler.d.ts +0 -56
- package/build/types-ts3.8/reactrouter-compat-utils/index.d.ts +0 -5
- package/build/types-ts3.8/reactrouter-compat-utils/instrumentation.d.ts +0 -117
- package/build/types-ts3.8/reactrouter-compat-utils/lazy-routes.d.ts +0 -18
- package/build/types-ts3.8/reactrouter-compat-utils/route-manifest.d.ts +0 -13
- package/build/types-ts3.8/reactrouter-compat-utils/utils.d.ts +0 -77
- package/build/types-ts3.8/reactrouter.compat.d.ts +0 -42
- package/build/types-ts3.8/reactrouter.d.ts +0 -41
- package/build/types-ts3.8/reactrouterv3.d.ts +0 -29
- package/build/types-ts3.8/reactrouterv6.d.ts +0 -42
- package/build/types-ts3.8/reactrouterv7.d.ts +0 -42
- package/build/types-ts3.8/redux.d.ts +0 -38
- package/build/types-ts3.8/sdk.d.ts +0 -7
- package/build/types-ts3.8/tanstackrouter.d.ts +0 -13
- package/build/types-ts3.8/types.d.ts +0 -163
- package/build/types-ts3.8/vendor/tanstackrouter-types.d.ts +0 -37
package/build/types/error.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { captureException } from '@sentry/browser';
|
|
2
2
|
import type { ErrorInfo } from 'react';
|
|
3
|
-
/**
|
|
4
|
-
* See if React major version is 17+ by parsing version string.
|
|
5
|
-
*/
|
|
6
|
-
export declare function isAtLeastReact17(reactVersion: string): boolean;
|
|
7
3
|
/**
|
|
8
4
|
* Recurse through `error.cause` chain to set cause on an error.
|
|
9
5
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../src/error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../src/error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAiB7E;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAEnC,KAAK,EAAE,GAAG,EACV,EAAE,cAAc,EAAE,EAAE,SAAS,EAC7B,IAAI,CAAC,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,GAC5C,MAAM,CAkBR;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAE/B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,GAErE,CAAC,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,KAAK,IAAI,CAW5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errorboundary.d.ts","sourceRoot":"","sources":["../../src/errorboundary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAE3D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
|
-
{"version":3,"file":"hoist-non-react-statics.d.ts","sourceRoot":"","sources":["../../src/hoist-non-react-statics.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"hoist-non-react-statics.d.ts","sourceRoot":"","sources":["../../src/hoist-non-react-statics.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAoFpC;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAElC,CAAC,SAAS,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,EAElC,CAAC,SAAS,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,EAClC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EACzD,eAAe,EAAE,CAAC,EAAE,eAAe,EAAE,CAAC,EAAE,WAAW,CAAC,EAAE,CAAC,GAAG,CAAC,CA4C5D"}
|
|
@@ -45,7 +45,6 @@ declare function withProfiler<P extends Record<string, any>>(WrappedComponent: R
|
|
|
45
45
|
*
|
|
46
46
|
* `useProfiler` is a React hook that profiles a React component.
|
|
47
47
|
*
|
|
48
|
-
* Requires React 16.8 or above.
|
|
49
48
|
* @param name displayName of component being profiled
|
|
50
49
|
*/
|
|
51
50
|
declare function useProfiler(name: string, options?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profiler.d.ts","sourceRoot":"","sources":["../../src/profiler.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"profiler.d.ts","sourceRoot":"","sources":["../../src/profiler.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAIzC,OAAO,KAAK,KAAK,MAAM,OAAO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,OAAO,GAAE;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,aAAa,CAAC,EAAE,OAAO,CAAA;CAGrD,GACA,IAAI,CAgDN;AAED,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -111,7 +111,7 @@ export declare function handleNavigation(opts: {
|
|
|
111
111
|
basename?: string;
|
|
112
112
|
allRoutes?: RouteObject[];
|
|
113
113
|
}): void;
|
|
114
|
-
export declare function addRoutesToAllRoutes(routes: RouteObject[]):
|
|
114
|
+
export declare function addRoutesToAllRoutes(routes: RouteObject[]): RouteObject[];
|
|
115
115
|
export declare function createV6CompatibleWithSentryReactRouterRouting<P extends Record<string, any>, R extends React.FC<P>>(Routes: R, version: V6CompatibleVersion): R;
|
|
116
116
|
export {};
|
|
117
117
|
//# sourceMappingURL=instrumentation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../src/reactrouter-compat-utils/instrumentation.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,yBAAyB,EAI1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAU,WAAW,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAW9D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EACV,MAAM,EACN,sBAAsB,EACtB,oBAAoB,EACpB,wBAAwB,EACxB,QAAQ,EACR,WAAW,EAEX,WAAW,EACX,MAAM,EACN,WAAW,EACX,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,SAAS,EACV,MAAM,UAAU,CAAC;AAsClB,eAAO,MAAM,SAAS,kBAAyB,CAAC;AA8BhD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAE7D;AAUD;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAClC,UAAU,EACN;IAAE,IAAI,EAAE,I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AAW,EAAE,WAAW,GACvB,IAAI,
|
|
1
|
+
{"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../src/reactrouter-compat-utils/instrumentation.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,yBAAyB,EAI1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAU,WAAW,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAW9D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EACV,MAAM,EACN,sBAAsB,EACtB,oBAAoB,EACpB,wBAAwB,EACxB,QAAQ,EACR,WAAW,EAEX,WAAW,EACX,MAAM,EACN,WAAW,EACX,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,SAAS,EACV,MAAM,UAAU,CAAC;AAsClB,eAAO,MAAM,SAAS,kBAAyB,CAAC;AA8BhD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAE7D;AAUD;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAClC,UAAU,EACN;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,aAAa,CAAC,EAAE,OAAO,CAAA;CAAE,GACjG,SAAS,EACb,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,OAAO,GACpB;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,YAAY,EAAE,OAAO,CAAA;CAAE,CAkC1C;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,WAAW,CAAC;IACzB,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,wBAAwB,EAAE,wBAAwB,CAAC;IACnD,WAAW,EAAE,WAAW,CAAC;IACzB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,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K,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,YAAY,CAAC;IACzB,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,GAAG,EAAE,MAAM,CAAC,EAAE,KAAK,GAAG,IAAI,KAAK,KAAK,GAAG,IAAI,CAAC;AAElH,UAAU,kBAAkB;IAC1B,OAAO,EAAE,aAAa,CAAC;IACvB,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAED;;;GAGG;AACH,wBAAgB,sCAAsC,CACpD,OAAO,EAAE,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC,CAAC,CAAC,GAAG,kBAAkB,GAC5E,WAAW,CAyBb;AAED;;;GAGG;AACH,wBAAgB,sCAAsC,CACpD,OAAO,EAAE,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC,CAAC,CAAC,GAAG,kBAAkB,GAC5E,WAAW,CAyBb;AAmHD,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC,SAAS,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CA+B9G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tanstackrouter.d.ts","sourceRoot":"","sources":["../../src/tanstackrouter.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,IAAI,iCAAiC,EAK/D,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"tanstackrouter.d.ts","sourceRoot":"","sources":["../../src/tanstackrouter.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,IAAI,iCAAiC,EAK/D,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAsBxD;;;;;;;GAOG;AACH,wBAAgB,uCAAuC,CAErD,MAAM,EAAE,GAAG,EAAE,iGAAiG;AAC9G,OAAO,GAAE,UAAU,CAAC,OAAO,iCAAiC,CAAC,CAAC,CAAC,CAAM,GACpE,WAAW,CA+Hb"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0-alpha.0",
|
|
4
4
|
"description": "Official Sentry SDK for React.js",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/react",
|
|
7
7
|
"author": "Sentry",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"engines": {
|
|
10
|
-
"node": ">=
|
|
10
|
+
"node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0"
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
13
|
"/build"
|
|
@@ -32,23 +32,16 @@
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
|
-
"typesVersions": {
|
|
36
|
-
"<5.0": {
|
|
37
|
-
"build/types/index.d.ts": [
|
|
38
|
-
"build/types-ts3.8/index.d.ts"
|
|
39
|
-
]
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
35
|
"publishConfig": {
|
|
43
36
|
"access": "public"
|
|
44
37
|
},
|
|
45
38
|
"dependencies": {
|
|
46
|
-
"@sentry/browser": "
|
|
47
|
-
"@sentry/core": "
|
|
39
|
+
"@sentry/browser": "11.0.0-alpha.0",
|
|
40
|
+
"@sentry/core": "11.0.0-alpha.0",
|
|
48
41
|
"@sentry/conventions": "^0.16.0"
|
|
49
42
|
},
|
|
50
43
|
"peerDependencies": {
|
|
51
|
-
"react": "
|
|
44
|
+
"react": "17.x || 18.x || 19.x"
|
|
52
45
|
},
|
|
53
46
|
"devDependencies": {
|
|
54
47
|
"@testing-library/react": "^15.0.5",
|
|
@@ -59,8 +52,6 @@
|
|
|
59
52
|
"@types/react": "17.0.3",
|
|
60
53
|
"@types/react-router-4": "npm:@types/react-router@4.0.25",
|
|
61
54
|
"@types/react-router-5": "npm:@types/react-router@5.1.20",
|
|
62
|
-
"eslint-plugin-react": "^7.20.5",
|
|
63
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
64
55
|
"history-4": "npm:history@4.6.0",
|
|
65
56
|
"history-5": "npm:history@4.9.0",
|
|
66
57
|
"react": "^18.3.1",
|
|
@@ -75,17 +66,15 @@
|
|
|
75
66
|
"build": "run-p build:transpile build:types",
|
|
76
67
|
"build:dev": "yarn build",
|
|
77
68
|
"build:transpile": "rollup -c rollup.npm.config.mjs",
|
|
78
|
-
"build:types": "
|
|
79
|
-
"build:types:core": "tsc -p tsconfig.types.json",
|
|
80
|
-
"build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8",
|
|
69
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
81
70
|
"build:watch": "run-p build:transpile:watch",
|
|
82
71
|
"build:dev:watch": "yarn build:watch",
|
|
83
72
|
"build:transpile:watch": "rollup -c rollup.npm.config.mjs --watch",
|
|
84
73
|
"build:tarball": "npm pack",
|
|
85
74
|
"circularDepCheck": "madge --circular src/index.ts",
|
|
86
75
|
"clean": "rimraf build coverage sentry-react-*.tgz",
|
|
87
|
-
"lint:fix": "
|
|
88
|
-
"lint": "
|
|
76
|
+
"lint:fix": "oxlint . --fix --type-aware",
|
|
77
|
+
"lint": "oxlint . --type-aware",
|
|
89
78
|
"lint:es-compatibility": "es-check es2020 ./build/cjs/*.js && es-check es2020 ./build/esm/*.js --module",
|
|
90
79
|
"test": "vitest run",
|
|
91
80
|
"test:watch": "vitest --watch",
|
package/build/cjs/constants.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
|
|
3
|
-
const REACT_RENDER_OP = "ui.react.render";
|
|
4
|
-
const REACT_UPDATE_OP = "ui.react.update";
|
|
5
|
-
const REACT_MOUNT_OP = "ui.react.mount";
|
|
6
|
-
|
|
7
|
-
exports.REACT_MOUNT_OP = REACT_MOUNT_OP;
|
|
8
|
-
exports.REACT_RENDER_OP = REACT_RENDER_OP;
|
|
9
|
-
exports.REACT_UPDATE_OP = REACT_UPDATE_OP;
|
|
10
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sources":["../../src/constants.ts"],"sourcesContent":["export const REACT_RENDER_OP = 'ui.react.render';\n\nexport const REACT_UPDATE_OP = 'ui.react.update';\n\nexport const REACT_MOUNT_OP = 'ui.react.mount';\n"],"names":[],"mappings":";;AAAO,MAAM,eAAA,GAAkB;AAExB,MAAM,eAAA,GAAkB;AAExB,MAAM,cAAA,GAAiB;;;;;;"}
|
package/build/esm/constants.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sources":["../../src/constants.ts"],"sourcesContent":["export const REACT_RENDER_OP = 'ui.react.render';\n\nexport const REACT_UPDATE_OP = 'ui.react.update';\n\nexport const REACT_MOUNT_OP = 'ui.react.mount';\n"],"names":[],"mappings":"AAAO,MAAM,eAAA,GAAkB;AAExB,MAAM,eAAA,GAAkB;AAExB,MAAM,cAAA,GAAiB;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,oBAAoB,CAAC;AAEjD,eAAO,MAAM,eAAe,oBAAoB,CAAC;AAEjD,eAAO,MAAM,cAAc,mBAAmB,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code.
|
|
3
|
-
*
|
|
4
|
-
* ATTENTION: This constant must never cross package boundaries (i.e. be exported) to guarantee that it can be used for tree shaking.
|
|
5
|
-
*/
|
|
6
|
-
export declare const DEBUG_BUILD: boolean;
|
|
7
|
-
//# sourceMappingURL=debug-build.d.ts.map
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { captureException } from '@sentry/browser';
|
|
2
|
-
import { ErrorInfo } from 'react';
|
|
3
|
-
/**
|
|
4
|
-
* See if React major version is 17+ by parsing version string.
|
|
5
|
-
*/
|
|
6
|
-
export declare function isAtLeastReact17(reactVersion: string): boolean;
|
|
7
|
-
/**
|
|
8
|
-
* Recurse through `error.cause` chain to set cause on an error.
|
|
9
|
-
*/
|
|
10
|
-
export declare function setCause(error: Error & {
|
|
11
|
-
cause?: Error;
|
|
12
|
-
}, cause: Error): void;
|
|
13
|
-
/**
|
|
14
|
-
* Captures an error that was thrown by a React ErrorBoundary or React root.
|
|
15
|
-
*
|
|
16
|
-
* @param error The error to capture.
|
|
17
|
-
* @param errorInfo The errorInfo provided by React.
|
|
18
|
-
* @param hint Optional additional data to attach to the Sentry event.
|
|
19
|
-
* @returns the id of the captured Sentry event.
|
|
20
|
-
*/
|
|
21
|
-
export declare function captureReactException(error: any, { componentStack }: ErrorInfo, hint?: Parameters<typeof captureException>[1]): string;
|
|
22
|
-
/**
|
|
23
|
-
* Creates an error handler that can be used with the `onCaughtError`, `onUncaughtError`,
|
|
24
|
-
* and `onRecoverableError` options in `createRoot` and `hydrateRoot` React DOM methods.
|
|
25
|
-
*
|
|
26
|
-
* @param callback An optional callback that will be called after the error is captured.
|
|
27
|
-
* Use this to add custom handling for errors.
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
*
|
|
31
|
-
* ```JavaScript
|
|
32
|
-
* const root = createRoot(container, {
|
|
33
|
-
* onCaughtError: Sentry.reactErrorHandler(),
|
|
34
|
-
* onUncaughtError: Sentry.reactErrorHandler((error, errorInfo) => {
|
|
35
|
-
* console.warn('Caught error', error, errorInfo.componentStack);
|
|
36
|
-
* });
|
|
37
|
-
* });
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
export declare function reactErrorHandler(callback?: (error: any, errorInfo: ErrorInfo, eventId: string) => void): (error: any, errorInfo: ErrorInfo) => void;
|
|
41
|
-
//# sourceMappingURL=error.d.ts.map
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { ReportDialogOptions } from '@sentry/browser';
|
|
2
|
-
import { Scope } from '@sentry/core';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
export declare const UNKNOWN_COMPONENT = "unknown";
|
|
5
|
-
export type FallbackRender = (errorData: {
|
|
6
|
-
error: unknown;
|
|
7
|
-
componentStack: string;
|
|
8
|
-
eventId: string;
|
|
9
|
-
resetError(): void;
|
|
10
|
-
}) => React.ReactElement;
|
|
11
|
-
type OnUnmountType = {
|
|
12
|
-
(error: null, componentStack: null, eventId: null): void;
|
|
13
|
-
(error: unknown, componentStack: string, eventId: string): void;
|
|
14
|
-
};
|
|
15
|
-
export type ErrorBoundaryProps = {
|
|
16
|
-
children?: React.ReactNode | (() => React.ReactNode);
|
|
17
|
-
/** If a Sentry report dialog should be rendered on error */
|
|
18
|
-
showDialog?: boolean | undefined;
|
|
19
|
-
/**
|
|
20
|
-
* Options to be passed into the Sentry report dialog.
|
|
21
|
-
* No-op if {@link showDialog} is false.
|
|
22
|
-
*/
|
|
23
|
-
dialogOptions?: ReportDialogOptions | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* A fallback component that gets rendered when the error boundary encounters an error.
|
|
26
|
-
*
|
|
27
|
-
* Can either provide a React Component, or a function that returns React Component as
|
|
28
|
-
* a valid fallback prop. If a function is provided, the function will be called with
|
|
29
|
-
* the error, the component stack, and an function that resets the error boundary on error.
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
32
|
-
fallback?: React.ReactElement | FallbackRender | undefined;
|
|
33
|
-
/**
|
|
34
|
-
* If set to `true` or `false`, the error `handled` property will be set to the given value.
|
|
35
|
-
* If unset, the default behaviour is to rely on the presence of the `fallback` prop to determine
|
|
36
|
-
* if the error was handled or not.
|
|
37
|
-
*/
|
|
38
|
-
handled?: boolean | undefined;
|
|
39
|
-
/** Called when the error boundary encounters an error */
|
|
40
|
-
onError?: ((error: unknown, componentStack: string, eventId: string) => void) | undefined;
|
|
41
|
-
/** Called on componentDidMount() */
|
|
42
|
-
onMount?: (() => void) | undefined;
|
|
43
|
-
/**
|
|
44
|
-
* Called when the error boundary resets due to a reset call from the
|
|
45
|
-
* fallback render props function.
|
|
46
|
-
*/
|
|
47
|
-
onReset?: ((error: unknown, componentStack: string, eventId: string) => void) | undefined;
|
|
48
|
-
/**
|
|
49
|
-
* Called on componentWillUnmount() with the error, componentStack, and eventId.
|
|
50
|
-
*
|
|
51
|
-
* If the error boundary never encountered an error, the error
|
|
52
|
-
* componentStack, and eventId will be null.
|
|
53
|
-
*/
|
|
54
|
-
onUnmount?: OnUnmountType | undefined;
|
|
55
|
-
/** Called before the error is captured by Sentry, allows for you to add tags or context using the scope */
|
|
56
|
-
beforeCapture?: ((scope: Scope, error: unknown, componentStack: string) => void) | undefined;
|
|
57
|
-
};
|
|
58
|
-
type ErrorBoundaryState = {
|
|
59
|
-
componentStack: null;
|
|
60
|
-
error: null;
|
|
61
|
-
eventId: null;
|
|
62
|
-
} | {
|
|
63
|
-
componentStack: React.ErrorInfo['componentStack'];
|
|
64
|
-
error: unknown;
|
|
65
|
-
eventId: string;
|
|
66
|
-
};
|
|
67
|
-
/**
|
|
68
|
-
* A ErrorBoundary component that logs errors to Sentry.
|
|
69
|
-
* NOTE: If you are a Sentry user, and you are seeing this stack frame, it means the
|
|
70
|
-
* Sentry React SDK ErrorBoundary caught an error invoking your application code. This
|
|
71
|
-
* is expected behavior and NOT indicative of a bug with the Sentry React SDK.
|
|
72
|
-
*/
|
|
73
|
-
declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
74
|
-
state: ErrorBoundaryState;
|
|
75
|
-
private readonly _openFallbackReportDialog;
|
|
76
|
-
private _lastEventId?;
|
|
77
|
-
private _cleanupHook?;
|
|
78
|
-
constructor(props: ErrorBoundaryProps);
|
|
79
|
-
componentDidCatch(error: unknown, errorInfo: React.ErrorInfo): void;
|
|
80
|
-
componentDidMount(): void;
|
|
81
|
-
componentWillUnmount(): void;
|
|
82
|
-
resetErrorBoundary(): void;
|
|
83
|
-
render(): React.ReactNode;
|
|
84
|
-
}
|
|
85
|
-
declare function withErrorBoundary<P extends Record<string, any>>(WrappedComponent: React.ComponentType<P>, errorBoundaryOptions: ErrorBoundaryProps): React.FC<P>;
|
|
86
|
-
export { ErrorBoundary, withErrorBoundary };
|
|
87
|
-
//# sourceMappingURL=errorboundary.d.ts.map
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Inlined implementation of hoist-non-react-statics
|
|
3
|
-
* Original library: https://github.com/mridgway/hoist-non-react-statics
|
|
4
|
-
* License: BSD-3-Clause
|
|
5
|
-
* Copyright 2015, Yahoo! Inc.
|
|
6
|
-
*
|
|
7
|
-
* This is an inlined version to avoid ESM compatibility issues with the original package.
|
|
8
|
-
*/
|
|
9
|
-
import * as React from 'react';
|
|
10
|
-
/**
|
|
11
|
-
* Copies non-react specific statics from a child component to a parent component.
|
|
12
|
-
* Similar to Object.assign, but copies all static properties from source to target,
|
|
13
|
-
* excluding React-specific statics and known JavaScript statics.
|
|
14
|
-
*
|
|
15
|
-
* @param targetComponent - The component to copy statics to
|
|
16
|
-
* @param sourceComponent - The component to copy statics from
|
|
17
|
-
* @param excludelist - An optional object of keys to exclude from hoisting
|
|
18
|
-
* @returns The target component with hoisted statics
|
|
19
|
-
*/
|
|
20
|
-
export declare function hoistNonReactStatics<T extends React.ComponentType<any>, S extends React.ComponentType<any>, C extends Record<string, boolean> = Record<string, never>>(targetComponent: T, sourceComponent: S, excludelist?: C): T;
|
|
21
|
-
//# sourceMappingURL=hoist-non-react-statics.d.ts.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export * from '@sentry/browser';
|
|
2
|
-
export { init } from './sdk';
|
|
3
|
-
export { captureReactException, reactErrorHandler } from './error';
|
|
4
|
-
export { Profiler, withProfiler, useProfiler } from './profiler';
|
|
5
|
-
export { ErrorBoundaryProps, FallbackRender } from './errorboundary';
|
|
6
|
-
export { ErrorBoundary, withErrorBoundary } from './errorboundary';
|
|
7
|
-
export { createReduxEnhancer } from './redux';
|
|
8
|
-
export { reactRouterV3BrowserTracingIntegration } from './reactrouterv3';
|
|
9
|
-
export { tanstackRouterBrowserTracingIntegration } from './tanstackrouter';
|
|
10
|
-
export { withSentryRouting, reactRouterV4BrowserTracingIntegration, reactRouterV5BrowserTracingIntegration, } from './reactrouter';
|
|
11
|
-
export { reactRouterV6BrowserTracingIntegration, withSentryReactRouterV6Routing, wrapUseRoutesV6, wrapCreateBrowserRouterV6, wrapCreateMemoryRouterV6, } from './reactrouterv6';
|
|
12
|
-
export { reactRouterV7BrowserTracingIntegration, withSentryReactRouterV7Routing, wrapCreateBrowserRouterV7, wrapCreateMemoryRouterV7, wrapUseRoutesV7, } from './reactrouterv7';
|
|
13
|
-
export { reactRouterBrowserTracingIntegration, wrapReactRouterRouting, wrapCreateBrowserRouter, wrapCreateMemoryRouter, wrapUseRoutes, } from './reactrouter.compat';
|
|
14
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Checks whether given value's type is a React `SyntheticEvent`.
|
|
3
|
-
*
|
|
4
|
-
* The check is structural: SyntheticEvent doesn't expose a stable constructor we can
|
|
5
|
-
* use across React versions / module duplicates, so we look for the small surface
|
|
6
|
-
* (`nativeEvent`, `preventDefault`, `stopPropagation`) that every SyntheticEvent has
|
|
7
|
-
* and that's unusual for plain objects to all have at once.
|
|
8
|
-
*/
|
|
9
|
-
export declare function isSyntheticEvent(wat: unknown): boolean;
|
|
10
|
-
//# sourceMappingURL=isSyntheticEvent.d.ts.map
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { Span } from '@sentry/core';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
export declare const UNKNOWN_COMPONENT = "unknown";
|
|
4
|
-
export type ProfilerProps = {
|
|
5
|
-
name: string;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
includeRender?: boolean;
|
|
8
|
-
includeUpdates?: boolean;
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
updateProps: {
|
|
11
|
-
[key: string]: unknown;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* The Profiler component leverages Sentry's Tracing integration to generate
|
|
16
|
-
* spans based on component lifecycles.
|
|
17
|
-
*/
|
|
18
|
-
declare class Profiler extends React.Component<ProfilerProps> {
|
|
19
|
-
/**
|
|
20
|
-
* The span of the mount activity
|
|
21
|
-
* Made protected for the React Native SDK to access
|
|
22
|
-
*/
|
|
23
|
-
protected _mountSpan: Span | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* The span that represents the duration of time between shouldComponentUpdate and componentDidUpdate
|
|
26
|
-
*/
|
|
27
|
-
protected _updateSpan: Span | undefined;
|
|
28
|
-
constructor(props: ProfilerProps);
|
|
29
|
-
componentDidMount(): void;
|
|
30
|
-
shouldComponentUpdate({ updateProps, includeUpdates }: ProfilerProps): boolean;
|
|
31
|
-
componentDidUpdate(): void;
|
|
32
|
-
componentWillUnmount(): void;
|
|
33
|
-
render(): React.ReactNode;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* withProfiler is a higher order component that wraps a
|
|
37
|
-
* component in a {@link Profiler} component. It is recommended that
|
|
38
|
-
* the higher order component be used over the regular {@link Profiler} component.
|
|
39
|
-
*
|
|
40
|
-
* @param WrappedComponent component that is wrapped by Profiler
|
|
41
|
-
* @param options the {@link ProfilerProps} you can pass into the Profiler
|
|
42
|
-
*/
|
|
43
|
-
declare function withProfiler<P extends Record<string, any>>(WrappedComponent: React.ComponentType<P>, options?: Pick<Partial<ProfilerProps>, Exclude<keyof ProfilerProps, 'updateProps' | 'children'>>): React.FC<P>;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* `useProfiler` is a React hook that profiles a React component.
|
|
47
|
-
*
|
|
48
|
-
* Requires React 16.8 or above.
|
|
49
|
-
* @param name displayName of component being profiled
|
|
50
|
-
*/
|
|
51
|
-
declare function useProfiler(name: string, options?: {
|
|
52
|
-
disabled?: boolean;
|
|
53
|
-
hasRenderSpan?: boolean;
|
|
54
|
-
}): void;
|
|
55
|
-
export { Profiler, useProfiler, withProfiler };
|
|
56
|
-
//# sourceMappingURL=profiler.d.ts.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { ReactRouterOptions } from './instrumentation';
|
|
2
|
-
export { createReactRouterV6CompatibleTracingIntegration, createV6CompatibleWithSentryReactRouterRouting, createV6CompatibleWrapCreateBrowserRouter, createV6CompatibleWrapCreateMemoryRouter, createV6CompatibleWrapUseRoutes, handleNavigation, addResolvedRoutesToParent, processResolvedRoutes, updateNavigationSpan, } from './instrumentation';
|
|
3
|
-
export { resolveRouteNameAndSource, getNormalizedName, initializeRouterUtils, locationIsInsideDescendantRoute, prefixWithSlash, rebuildRoutePathFromAllRoutes, pathEndsWithWildcard, pathIsWildcardAndHasChildren, getNumberOfUrlSegments, transactionNameHasWildcard, getActiveRootSpan, setNavigationContext, clearNavigationContext, getNavigationContext, } from './utils';
|
|
4
|
-
export { createAsyncHandlerProxy, handleAsyncHandlerResult, checkRouteForAsyncHandler } from './lazy-routes';
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { browserTracingIntegration } from '@sentry/browser';
|
|
2
|
-
import { Integration, Span } from '@sentry/core';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { Action, AgnosticDataRouteMatch, CreateRouterFunction, CreateRoutesFromChildren, Location, MatchRoutes, RouteObject, Router, RouterState, UseEffect, UseLocation, UseNavigationType, UseRoutes } from '../types';
|
|
5
|
-
export declare const allRoutes: Set<RouteObject>;
|
|
6
|
-
/**
|
|
7
|
-
* Computes location key for duplicate detection. Normalizes undefined/null to empty strings.
|
|
8
|
-
* Exported for testing.
|
|
9
|
-
*/
|
|
10
|
-
export declare function computeLocationKey(location: Location): string;
|
|
11
|
-
/**
|
|
12
|
-
* Determines if a navigation should be skipped as a duplicate, and if an existing span should be updated.
|
|
13
|
-
* Exported for testing.
|
|
14
|
-
*
|
|
15
|
-
* @returns An object with:
|
|
16
|
-
* - skip: boolean - Whether to skip creating a new span
|
|
17
|
-
* - shouldUpdate: boolean - Whether to update the existing span name (wildcard upgrade)
|
|
18
|
-
*/
|
|
19
|
-
export declare function shouldSkipNavigation(trackedNav: {
|
|
20
|
-
span: Span;
|
|
21
|
-
routeName: string;
|
|
22
|
-
pathname: string;
|
|
23
|
-
locationKey: string;
|
|
24
|
-
isPlaceholder?: boolean;
|
|
25
|
-
} | undefined, locationKey: string, proposedName: string, spanHasEnded: boolean): {
|
|
26
|
-
skip: boolean;
|
|
27
|
-
shouldUpdate: boolean;
|
|
28
|
-
};
|
|
29
|
-
export interface ReactRouterOptions {
|
|
30
|
-
useEffect: UseEffect;
|
|
31
|
-
useLocation: UseLocation;
|
|
32
|
-
useNavigationType: UseNavigationType;
|
|
33
|
-
createRoutesFromChildren: CreateRoutesFromChildren;
|
|
34
|
-
matchRoutes: MatchRoutes;
|
|
35
|
-
/**
|
|
36
|
-
* Whether to strip the basename from the pathname when creating transactions.
|
|
37
|
-
*
|
|
38
|
-
* This is useful for applications that use a basename in their routing setup.
|
|
39
|
-
* @default false
|
|
40
|
-
*/
|
|
41
|
-
stripBasename?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Enables support for async route handlers.
|
|
44
|
-
*
|
|
45
|
-
* This allows Sentry to track and instrument routes dynamically resolved from async handlers.
|
|
46
|
-
* @default false
|
|
47
|
-
*/
|
|
48
|
-
enableAsyncRouteHandlers?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Maximum time (in milliseconds) to wait for lazy routes to load before finalizing span names.
|
|
51
|
-
*
|
|
52
|
-
* - Set to `0` to not wait at all (immediate finalization)
|
|
53
|
-
* - Set to `Infinity` to wait as long as possible (capped at `finalTimeout` to prevent indefinite hangs)
|
|
54
|
-
* - Negative values will fall back to the default
|
|
55
|
-
*
|
|
56
|
-
* Defaults to 3× the configured `idleTimeout` (default: 3000ms).
|
|
57
|
-
*
|
|
58
|
-
* @default idleTimeout * 3
|
|
59
|
-
*/
|
|
60
|
-
lazyRouteTimeout?: number;
|
|
61
|
-
/**
|
|
62
|
-
* Static route manifest for resolving parameterized route names with lazy routes.
|
|
63
|
-
*
|
|
64
|
-
* Requires `enableAsyncRouteHandlers: true`. When provided, the manifest is used
|
|
65
|
-
* as the primary source for determining transaction names. This is more reliable
|
|
66
|
-
* than depending on React Router's lazy route resolution timing.
|
|
67
|
-
*
|
|
68
|
-
* @example
|
|
69
|
-
* ```ts
|
|
70
|
-
* lazyRouteManifest: [
|
|
71
|
-
* '/',
|
|
72
|
-
* '/users',
|
|
73
|
-
* '/users/:userId',
|
|
74
|
-
* '/org/:orgSlug/projects/:projectId',
|
|
75
|
-
* ]
|
|
76
|
-
* ```
|
|
77
|
-
*/
|
|
78
|
-
lazyRouteManifest?: string[];
|
|
79
|
-
}
|
|
80
|
-
type V6CompatibleVersion = '6' | '7' | '';
|
|
81
|
-
export declare function addResolvedRoutesToParent(resolvedRoutes: RouteObject[], parentRoute: RouteObject): void;
|
|
82
|
-
/**
|
|
83
|
-
* Processes resolved routes by adding them to allRoutes and checking for nested async handlers.
|
|
84
|
-
* When capturedSpan is provided, updates that specific span instead of the current active span.
|
|
85
|
-
* This prevents race conditions where a lazy handler resolves after the user has navigated away.
|
|
86
|
-
*/
|
|
87
|
-
export declare function processResolvedRoutes(resolvedRoutes: RouteObject[], parentRoute?: RouteObject, currentLocation?: Location | null, capturedSpan?: Span): void;
|
|
88
|
-
/**
|
|
89
|
-
* Updates a navigation span with the correct route name after lazy routes have been loaded.
|
|
90
|
-
*/
|
|
91
|
-
export declare function updateNavigationSpan(activeRootSpan: Span, location: Location, allRoutes: RouteObject[], forceUpdate: boolean | undefined, matchRoutes: MatchRoutes): void;
|
|
92
|
-
/**
|
|
93
|
-
* Creates a wrapCreateBrowserRouter function that can be used with all React Router v6 compatible versions.
|
|
94
|
-
*/
|
|
95
|
-
export declare function createV6CompatibleWrapCreateBrowserRouter<TState extends RouterState = RouterState, TRouter extends Router<TState> = Router<TState>>(createRouterFunction: CreateRouterFunction<TState, TRouter>, version: V6CompatibleVersion): CreateRouterFunction<TState, TRouter>;
|
|
96
|
-
/**
|
|
97
|
-
* Creates a wrapCreateMemoryRouter function that can be used with all React Router v6 compatible versions.
|
|
98
|
-
*/
|
|
99
|
-
export declare function createV6CompatibleWrapCreateMemoryRouter<TState extends RouterState = RouterState, TRouter extends Router<TState> = Router<TState>>(createRouterFunction: CreateRouterFunction<TState, TRouter>, version: V6CompatibleVersion): CreateRouterFunction<TState, TRouter>;
|
|
100
|
-
/**
|
|
101
|
-
* Creates a browser tracing integration that can be used with all React Router v6 compatible versions.
|
|
102
|
-
*/
|
|
103
|
-
export declare function createReactRouterV6CompatibleTracingIntegration(options: Parameters<typeof browserTracingIntegration>[0] & ReactRouterOptions, version: V6CompatibleVersion): Integration;
|
|
104
|
-
export declare function createV6CompatibleWrapUseRoutes(origUseRoutes: UseRoutes, version: V6CompatibleVersion): UseRoutes;
|
|
105
|
-
export declare function handleNavigation(opts: {
|
|
106
|
-
location: Location;
|
|
107
|
-
routes: RouteObject[];
|
|
108
|
-
navigationType: Action;
|
|
109
|
-
version: V6CompatibleVersion;
|
|
110
|
-
matches?: AgnosticDataRouteMatch;
|
|
111
|
-
basename?: string;
|
|
112
|
-
allRoutes?: RouteObject[];
|
|
113
|
-
}): void;
|
|
114
|
-
export declare function addRoutesToAllRoutes(routes: RouteObject[]): void;
|
|
115
|
-
export declare function createV6CompatibleWithSentryReactRouterRouting<P extends Record<string, any>, R extends React.FC<P>>(Routes: R, version: V6CompatibleVersion): R;
|
|
116
|
-
export {};
|
|
117
|
-
//# sourceMappingURL=instrumentation.d.ts.map
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Span } from '@sentry/core';
|
|
2
|
-
import { Location, RouteObject } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* Creates a proxy wrapper for an async handler function.
|
|
5
|
-
* Captures both the location and the active span at invocation time to ensure
|
|
6
|
-
* the correct span is updated when the handler resolves.
|
|
7
|
-
*/
|
|
8
|
-
export declare function createAsyncHandlerProxy(originalFunction: (...args: unknown[]) => unknown, route: RouteObject, handlerKey: string, processResolvedRoutes: (resolvedRoutes: RouteObject[], parentRoute?: RouteObject, currentLocation?: Location, capturedSpan?: Span) => void): (...args: unknown[]) => unknown;
|
|
9
|
-
/**
|
|
10
|
-
* Handles the result of an async handler function call.
|
|
11
|
-
* Passes the captured span through to ensure the correct span is updated.
|
|
12
|
-
*/
|
|
13
|
-
export declare function handleAsyncHandlerResult(result: unknown, route: RouteObject, handlerKey: string, processResolvedRoutes: (resolvedRoutes: RouteObject[], parentRoute?: RouteObject, currentLocation?: Location, capturedSpan?: Span) => void, currentLocation: Location | null, capturedSpan: Span | undefined): void;
|
|
14
|
-
/**
|
|
15
|
-
* Recursively checks a route for async handlers and sets up Proxies to add discovered child routes to allRoutes when called.
|
|
16
|
-
*/
|
|
17
|
-
export declare function checkRouteForAsyncHandler(route: RouteObject, processResolvedRoutes: (resolvedRoutes: RouteObject[], parentRoute?: RouteObject, currentLocation?: Location, capturedSpan?: Span) => void): void;
|
|
18
|
-
//# sourceMappingURL=lazy-routes.d.ts.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Strip the basename from a pathname if exists.
|
|
3
|
-
*
|
|
4
|
-
* Vendored and modified from `react-router`
|
|
5
|
-
* https://github.com/remix-run/react-router/blob/462bb712156a3f739d6139a0f14810b76b002df6/packages/router/utils.ts#L1038
|
|
6
|
-
*/
|
|
7
|
-
export declare function stripBasenameFromPathname(pathname: string, basename: string): string;
|
|
8
|
-
/**
|
|
9
|
-
* Matches a pathname against a route manifest and returns the matching pattern.
|
|
10
|
-
* Optionally strips a basename prefix before matching.
|
|
11
|
-
*/
|
|
12
|
-
export declare function matchRouteManifest(pathname: string, manifest: string[], basename?: string): string | null;
|
|
13
|
-
//# sourceMappingURL=route-manifest.d.ts.map
|