@nextelco/common-ui 2.1.27 → 2.1.28

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.
@@ -3,6 +3,13 @@ import './ErrorPage.scss';
3
3
  interface ErrorProps {
4
4
  title?: string;
5
5
  messages: string[];
6
+ /**
7
+ * clientId MSAL da app. Passa-o sempre que várias apps partilhem o origin
8
+ * (ex: todas as do proefai): o "Repor sessão" passa a apagar só as chaves
9
+ * desta app em vez de `localStorage.clear()`, que derruba a sessão de todas
10
+ * as vizinhas. Sem ele mantém-se o comportamento antigo (limpeza total).
11
+ */
12
+ clientId?: string;
6
13
  }
7
14
  declare const ErrorPage: React.FC<ErrorProps>;
8
15
  export default ErrorPage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextelco/common-ui",
3
- "version": "2.1.27",
3
+ "version": "2.1.28",
4
4
  "description": "",
5
5
  "main": "dist/bundle.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -21,11 +21,8 @@
21
21
  "peerDependencies": {
22
22
  "@azure/msal-browser": ">=3",
23
23
  "@azure/msal-react": ">=2",
24
- "chart.js": ">=4",
25
- "chartjs-plugin-datalabels": ">=2",
26
- "react": "^18.3.1",
27
- "react-dom": "^18.3.1",
28
- "react-chartjs-2": ">=5",
24
+ "react": ">=18",
25
+ "react-dom": ">=18",
29
26
  "react-router-dom": ">=6"
30
27
  },
31
28
  "peerDependenciesMeta": {
@@ -34,15 +31,6 @@
34
31
  },
35
32
  "@azure/msal-browser": {
36
33
  "optional": true
37
- },
38
- "chart.js": {
39
- "optional": true
40
- },
41
- "chartjs-plugin-datalabels": {
42
- "optional": true
43
- },
44
- "react-chartjs-2": {
45
- "optional": true
46
34
  }
47
35
  },
48
36
  "devDependencies": {