@australiangreens/ag-internal-components 0.1.20 → 0.1.22

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.
@@ -0,0 +1,4 @@
1
+ import { IdToken } from '@auth0/auth0-spa-js';
2
+ import { DomainCode } from 'src/domainCode';
3
+ export declare function determineUserLevelFromClaims(claims: IdToken | undefined, domainCode: DomainCode, roleMapping: Record<string, string[]>, rolePriority: string[]): string;
4
+ //# sourceMappingURL=determineUserLevel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"determineUserLevel.d.ts","sourceRoot":"","sources":["../../src/utils/determineUserLevel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAQ5C,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,OAAO,GAAG,SAAS,EAC3B,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,EACrC,YAAY,EAAE,MAAM,EAAE,UAgBvB"}
@@ -1,3 +1,4 @@
1
1
  export * from './consoleSuppression';
2
+ export * from './determineUserLevel';
2
3
  export * from './simpleHashCode';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@australiangreens/ag-internal-components",
3
3
  "private": false,
4
- "version": "0.1.20",
4
+ "version": "0.1.22",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/australiangreens/ag-internal-components#readme",
7
7
  "license": "MIT",
@@ -50,40 +50,41 @@
50
50
  "@types/react-transition-group": "^4.4.11",
51
51
  "autosuggest-highlight": "^3.3.4",
52
52
  "buffer": "^6.0.3",
53
+ "core-js-pure": "^3.38.1",
53
54
  "jotai": "^2.9.3",
54
55
  "react-avatar": "^5.0.3",
55
56
  "react-transition-group": "^4.4.5",
56
57
  "souvlaki": "^0.3.0"
57
58
  },
58
59
  "peerDependencies": {
59
- "@auth0/auth0-react": "^2.2.1",
60
- "@emotion/react": "11.11.1",
61
- "@emotion/styled": "11.11.1",
62
- "@mui/icons-material": "^5.14.8",
63
- "@mui/material": "^5.14.8",
64
- "@tanstack/react-query": "^5.55.2",
65
- "react": "^18.2.0",
66
- "react-dom": "^18.2.0"
60
+ "@auth0/auth0-react": "^2.2.4",
61
+ "@emotion/react": "11.13.3",
62
+ "@emotion/styled": "11.13.0",
63
+ "@mui/icons-material": "^6.1.0",
64
+ "@mui/material": "^6.1.0",
65
+ "@tanstack/react-query": "^5.56.2",
66
+ "react": "^18.3.1",
67
+ "react-dom": "^18.3.1"
67
68
  },
68
69
  "devDependencies": {
69
70
  "@auth0/auth0-react": "^2.2.4",
70
71
  "@auth0/auth0-spa-js": "^2.1.3",
71
72
  "@emotion/react": "^11.13.3",
72
73
  "@emotion/styled": "^11.13.0",
73
- "@mui/icons-material": "^5.14.8",
74
- "@mui/material": "^5.14.8",
75
- "@storybook/addon-essentials": "^8.2.9",
76
- "@storybook/addon-interactions": "^8.2.9",
77
- "@storybook/addon-links": "^8.2.9",
78
- "@storybook/blocks": "^8.2.9",
79
- "@storybook/react": "^8.2.9",
80
- "@storybook/react-vite": "^8.2.9",
74
+ "@mui/icons-material": "^6.1.0",
75
+ "@mui/material": "^6.1.0",
76
+ "@storybook/addon-essentials": "^8.3.0",
77
+ "@storybook/addon-interactions": "^8.3.0",
78
+ "@storybook/addon-links": "^8.3.0",
79
+ "@storybook/blocks": "^8.3.0",
80
+ "@storybook/react": "^8.3.0",
81
+ "@storybook/react-vite": "^8.3.0",
81
82
  "@testing-library/dom": "^10.4.0",
82
83
  "@testing-library/jest-dom": "^6.5.0",
83
- "@testing-library/react": "^14.0.0",
84
+ "@testing-library/react": "^16.0.1",
84
85
  "@testing-library/user-event": "^14.5.2",
85
86
  "@types/autosuggest-highlight": "^3.2.3",
86
- "@types/node": "^22.5.2",
87
+ "@types/node": "^22.5.4",
87
88
  "@types/react": "^18.3.5",
88
89
  "@types/react-dom": "^18.3.0",
89
90
  "@types/react-test-renderer": "^18.3.0",
@@ -91,35 +92,35 @@
91
92
  "@typescript-eslint/parser": "^5.59.8",
92
93
  "@vitejs/plugin-react": "^4.3.1",
93
94
  "@vitejs/plugin-react-swc": "^3.7.0",
94
- "@vitest/coverage-v8": "^2.0.5",
95
+ "@vitest/coverage-v8": "^2.1.0",
95
96
  "eslint": "^8.47.0",
96
- "eslint-config-airbnb-typescript": "^17.0.0",
97
- "eslint-config-prettier": "^8.8.0",
98
- "eslint-plugin-import": "^2.27.5",
99
- "eslint-plugin-jsx-a11y": "^6.7.1",
100
- "eslint-plugin-react": "^7.32.2",
97
+ "eslint-config-airbnb-typescript": "^18.0.0",
98
+ "eslint-config-prettier": "^9.1.0",
99
+ "eslint-plugin-import": "^2.30.0",
100
+ "eslint-plugin-jsx-a11y": "^6.10.0",
101
+ "eslint-plugin-react": "^7.36.1",
101
102
  "eslint-plugin-react-hooks": "^4.6.2",
102
- "eslint-plugin-react-refresh": "^0.3.4",
103
- "eslint-plugin-simple-import-sort": "^10.0.0",
104
- "eslint-plugin-storybook": "^0.6.12",
105
- "eslint-plugin-testing-library": "^5.11.0",
106
- "eslint-plugin-tsdoc": "^0.2.17",
107
- "happy-dom": "^15.7.3",
108
- "husky": "^9.1.5",
103
+ "eslint-plugin-react-refresh": "^0.4.11",
104
+ "eslint-plugin-simple-import-sort": "^12.1.1",
105
+ "eslint-plugin-storybook": "^0.8.0",
106
+ "eslint-plugin-testing-library": "^6.3.0",
107
+ "eslint-plugin-tsdoc": "^0.3.0",
108
+ "happy-dom": "^15.7.4",
109
+ "husky": "^9.1.6",
109
110
  "jest-extended": "^4.0.2",
110
111
  "lint-staged": "^15.2.10",
111
112
  "prettier": "^3.3.3",
112
113
  "react": "^18.3.1",
113
114
  "react-dom": "^18.3.1",
114
- "react-router": "^6.26.1",
115
- "react-router-dom": "^6.26.1",
116
- "storybook": "^8.2.9",
117
- "typescript": "^5.5.4",
118
- "vite": "^5.4.2",
119
- "vite-plugin-dts": "^4.1.0",
115
+ "react-router": "^6.26.2",
116
+ "react-router-dom": "^6.26.2",
117
+ "storybook": "^8.3.0",
118
+ "typescript": "^5.6.2",
119
+ "vite": "^5.4.4",
120
+ "vite-plugin-dts": "^4.2.1",
120
121
  "vite-plugin-linter": "^2.0.2",
121
122
  "vite-tsconfig-paths": "^5.0.1",
122
- "vitest": "^2.0.5"
123
+ "vitest": "^2.1.0"
123
124
  },
124
125
  "husky": {
125
126
  "hooks": {
@@ -136,6 +137,6 @@
136
137
  ]
137
138
  },
138
139
  "engines": {
139
- "node": ">=16.14.0"
140
+ "node": ">=18.17.0"
140
141
  }
141
142
  }