@shane_donnelly/dsi-internal-react-utils 0.1.1 → 0.1.2
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/README.md +8 -0
- package/dist/{ProtectedRoute-Bl0cCdQ2.js → ProtectedRoute-_48urWWd.js} +1 -1
- package/dist/keycloak/index.js +1 -1
- package/dist/keycloak/react/ProtectedRoute/index.js +1 -1
- package/dist/main.js +1 -1
- package/dist/{assets/ProtectedRoute.css → style.css} +1 -0
- package/package.json +8 -4
package/README.md
CHANGED
|
@@ -8,6 +8,14 @@ Librairie de composants et utilitaires React pour les projets front-end de la DS
|
|
|
8
8
|
npm install @shane_donnelly/dsi-internal-react-utils keycloak-js
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
+
### Styles
|
|
12
|
+
|
|
13
|
+
L'import du CSS est obligatoire pour charger les styles des composants :
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
import '@shane_donnelly/dsi-internal-react-utils/style.css'
|
|
17
|
+
```
|
|
18
|
+
|
|
11
19
|
### Prérequis
|
|
12
20
|
|
|
13
21
|
- Un serveur Keycloak configuré avec un realm, un client, et au moins un Identity Provider
|
|
@@ -2,7 +2,7 @@ import { KeycloakProvider as e } from "./keycloak/react/KeycloakProvider/index.j
|
|
|
2
2
|
import { useAuth as t } from "./keycloak/react/hooks/useAuth.js";
|
|
3
3
|
import { useEffect as n, useRef as r } from "react";
|
|
4
4
|
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
var s = {
|
|
6
6
|
loadingContainer: "_loadingContainer_1th3z_1",
|
|
7
7
|
spinner: "_spinner_1th3z_11",
|
|
8
8
|
spin: "_spin_1th3z_11",
|
package/dist/keycloak/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { logoutKeycloak as e, refreshTokenKeycloak as t } from "./core/client.js";
|
|
2
2
|
import { KeycloakProvider as n } from "./react/KeycloakProvider/index.js";
|
|
3
3
|
import { useAuth as r } from "./react/hooks/useAuth.js";
|
|
4
|
-
import { t as i } from "../ProtectedRoute-
|
|
4
|
+
import { t as i } from "../ProtectedRoute-_48urWWd.js";
|
|
5
5
|
export { n as KeycloakProvider, i as ProtectedRoute, e as logoutKeycloak, t as refreshTokenKeycloak, r as useAuth };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../ProtectedRoute-
|
|
1
|
+
import { t as e } from "../../../ProtectedRoute-_48urWWd.js";
|
|
2
2
|
export { e as ProtectedRoute };
|
package/dist/main.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { logoutKeycloak as e, refreshTokenKeycloak as t } from "./keycloak/core/client.js";
|
|
2
2
|
import { KeycloakProvider as n } from "./keycloak/react/KeycloakProvider/index.js";
|
|
3
3
|
import { useAuth as r } from "./keycloak/react/hooks/useAuth.js";
|
|
4
|
-
import { t as i } from "./ProtectedRoute-
|
|
4
|
+
import { t as i } from "./ProtectedRoute-_48urWWd.js";
|
|
5
5
|
import "./keycloak/index.js";
|
|
6
6
|
export { n as KeycloakProvider, i as ProtectedRoute, e as logoutKeycloak, t as refreshTokenKeycloak, r as useAuth };
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
._loadingContainer_1th3z_1{flex-direction:column;justify-content:center;align-items:center;gap:1rem;min-height:100vh;font-family:system-ui,-apple-system,sans-serif;display:flex}._spinner_1th3z_11{border:3px solid #e5e7eb;border-top-color:#3b82f6;border-radius:50%;width:40px;height:40px;animation:1s linear infinite _spin_1th3z_11}@keyframes _spin_1th3z_11{to{transform:rotate(360deg)}}._errorContainer_1th3z_26{flex-direction:column;justify-content:center;align-items:center;gap:1rem;min-height:100vh;font-family:system-ui,-apple-system,sans-serif;display:flex}._errorMessage_1th3z_36{color:#dc2626;text-align:center;background:#fef2f2;border-radius:12px;max-width:400px;padding:1.5rem}
|
|
2
|
+
/*$vite$:1*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shane_donnelly/dsi-internal-react-utils",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
@@ -33,12 +33,16 @@
|
|
|
33
33
|
},
|
|
34
34
|
"main": "dist/main.js",
|
|
35
35
|
"types": "dist/main.d.ts",
|
|
36
|
+
"exports": {
|
|
37
|
+
".": {
|
|
38
|
+
"import": "./dist/main.js",
|
|
39
|
+
"types": "./dist/main.d.ts"
|
|
40
|
+
},
|
|
41
|
+
"./style.css": "./dist/style.css"
|
|
42
|
+
},
|
|
36
43
|
"files": [
|
|
37
44
|
"dist"
|
|
38
45
|
],
|
|
39
|
-
"sideEffects": [
|
|
40
|
-
"**/*.css"
|
|
41
|
-
],
|
|
42
46
|
"peerDependencies": {
|
|
43
47
|
"react": "^19.2.4",
|
|
44
48
|
"react-dom": "^19.2.4",
|