@australiangreens/ag-internal-components 0.3.12 → 0.3.13
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/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +73 -65
- package/dist/esm/index.js.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/sentryBeforeSend.d.ts +13 -0
- package/dist/utils/sentryBeforeSend.d.ts.map +1 -0
- package/dist/utils/sentryBeforeSend.unit.test.d.ts +2 -0
- package/dist/utils/sentryBeforeSend.unit.test.d.ts.map +1 -0
- package/package.json +3 -2
package/dist/utils/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ErrorEvent, EventHint } from '@sentry/react';
|
|
2
|
+
/**
|
|
3
|
+
* Sentry beforeSend callback that filters out expected Auth0 errors which are
|
|
4
|
+
* already handled by AuthGuard (e.g. by redirecting to login).
|
|
5
|
+
*
|
|
6
|
+
* The Auth0 SPA SDK can emit unhandled promise rejections for errors that
|
|
7
|
+
* AuthGuard subsequently handles through the React context. These show up in
|
|
8
|
+
* Sentry via the global onunhandledrejection handler but are not actionable.
|
|
9
|
+
*
|
|
10
|
+
* See: LISTMANAGER-FRONTEND-Y2
|
|
11
|
+
*/
|
|
12
|
+
export declare function sentryBeforeSend(event: ErrorEvent, hint: EventHint): ErrorEvent | null;
|
|
13
|
+
//# sourceMappingURL=sentryBeforeSend.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sentryBeforeSend.d.ts","sourceRoot":"","sources":["../../src/utils/sentryBeforeSend.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAgB3D;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,GAAG,UAAU,GAAG,IAAI,CAUtF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sentryBeforeSend.unit.test.d.ts","sourceRoot":"","sources":["../../src/utils/sentryBeforeSend.unit.test.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@australiangreens/ag-internal-components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.13",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://github.com/australiangreens/ag-internal-components#readme",
|
|
7
7
|
"license": "MIT",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"url": "https://github.com/australiangreens/ag-internal-components.git"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
+
"@sentry/react": "^10.38.0",
|
|
50
51
|
"@tanstack/react-query": "^5.90.2",
|
|
51
52
|
"@types/react-transition-group": "^4.4.12",
|
|
52
53
|
"autosuggest-highlight": "^3.3.4",
|
|
@@ -75,7 +76,6 @@
|
|
|
75
76
|
"@emotion/styled": "^11.14.1",
|
|
76
77
|
"@mui/icons-material": "^7.3.2",
|
|
77
78
|
"@mui/material": "^7.3.2",
|
|
78
|
-
"storybook": "^9.1.8",
|
|
79
79
|
"@storybook/addon-docs": "^9.1.10",
|
|
80
80
|
"@storybook/addon-links": "^9.1.8",
|
|
81
81
|
"@storybook/blocks": "^8.6.14",
|
|
@@ -102,6 +102,7 @@
|
|
|
102
102
|
"react": "^19.1.1",
|
|
103
103
|
"react-dom": "^19.1.1",
|
|
104
104
|
"react-router": "^7.9.2",
|
|
105
|
+
"storybook": "^9.1.8",
|
|
105
106
|
"typescript": "^5.9.2",
|
|
106
107
|
"vite": "^7.1.7",
|
|
107
108
|
"vite-plugin-dts": "^4.5.4",
|