@nice2dev/auth 1.3.13 → 1.3.15
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/CHANGELOG.md +19 -0
- package/README.md +20 -13
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @nice2dev/auth — Changelog
|
|
2
2
|
|
|
3
|
+
## 1.3.15
|
|
4
|
+
|
|
5
|
+
No changes in this release.
|
|
6
|
+
|
|
7
|
+
## 1.3.14
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- f840d64: Smaller items from OmniVerk's list (1.3.14):
|
|
12
|
+
|
|
13
|
+
- **NiceScheduler** names days and months through `Intl` in the provider's language. Before, it looked up keys that no dictionary had, so a Polish calendar showed "January" and "Mon". Its titles, agenda and tooltip dates also follow the provider's `lang` now, no longer the browser's language.
|
|
14
|
+
- **NiceTopNav**:
|
|
15
|
+
- The collapsed tools cluster shows a small swatch of the current theme and the language code next to its chevron, and its accessible name says both (`collapsedSummary`, default `true`, a node of your own or `false`).
|
|
16
|
+
- Once open, the cluster lets the language and theme pickers' lists hang below the bar instead of cutting them off.
|
|
17
|
+
- **NiceTopNav `hideOnScroll` and NiceAnchor** take a `scrollContainer`: the window (default), an element, `'nearest'` or a function. They then work where the content scrolls inside a shell. The helpers are new in @nice2dev/ui-core: `getScrollParent`, `resolveScrollContainer`, `scrollTopOf`, `scrollTopFor`.
|
|
18
|
+
- **First frame on narrow screens:** NiceNavShell and NiceTopNav read the screen width on their first render, so a phone no longer flashes the desktop sidebar on every mount. `useMediaQuery` also guards against a missing `matchMedia`.
|
|
19
|
+
- **Exported types:** `NiceTreeGridRowAction` and `NiceTreeGridCheckedSummaryInfo` are now exported.
|
|
20
|
+
- **Docs:** the admin and auth READMEs say to import their `style.css`. The ui README no longer links to the compatibility sheet removed in 1.2.0.
|
|
21
|
+
|
|
3
22
|
## 1.3.13
|
|
4
23
|
|
|
5
24
|
No changes in this release.
|
package/README.md
CHANGED
|
@@ -16,24 +16,31 @@ npm install @nice2dev/auth
|
|
|
16
16
|
|
|
17
17
|
**Peer dependencies:** `react >= 17.0.0`, `react-dom >= 17.0.0`
|
|
18
18
|
|
|
19
|
+
Import the stylesheet once, e.g. in your app's entry — the components' JavaScript does not load
|
|
20
|
+
it:
|
|
21
|
+
|
|
22
|
+
```tsx
|
|
23
|
+
import '@nice2dev/auth/style.css';
|
|
24
|
+
```
|
|
25
|
+
|
|
19
26
|
## Components
|
|
20
27
|
|
|
21
|
-
| Component
|
|
22
|
-
|
|
23
|
-
| `NiceLoginForm`
|
|
24
|
-
| `NiceRegistrationForm` | Registration form with password strength
|
|
25
|
-
| `NiceTwoFaSetup`
|
|
26
|
-
| `NiceChangePassword`
|
|
27
|
-
| `NiceCaptcha`
|
|
28
|
-
| `NicePasswordStrength` | Visual password strength indicator
|
|
29
|
-
| `NiceOAuthButtons`
|
|
30
|
-
| `NiceAuthGuard`
|
|
31
|
-
| `NiceTokenManagement`
|
|
28
|
+
| Component | Description |
|
|
29
|
+
| ---------------------- | -------------------------------------------------------------- |
|
|
30
|
+
| `NiceLoginForm` | Login form with email/password, validation, remember me |
|
|
31
|
+
| `NiceRegistrationForm` | Registration form with password strength |
|
|
32
|
+
| `NiceTwoFaSetup` | TOTP 2FA setup with QR code display |
|
|
33
|
+
| `NiceChangePassword` | Change/reset password with strength meter |
|
|
34
|
+
| `NiceCaptcha` | Captcha widget (pluggable providers) |
|
|
35
|
+
| `NicePasswordStrength` | Visual password strength indicator |
|
|
36
|
+
| `NiceOAuthButtons` | OAuth provider login buttons (Google, GitHub, Microsoft, etc.) |
|
|
37
|
+
| `NiceAuthGuard` | Protected route/section wrapper |
|
|
38
|
+
| `NiceTokenManagement` | API token CRUD management |
|
|
32
39
|
|
|
33
40
|
## Hooks
|
|
34
41
|
|
|
35
|
-
| Hook
|
|
36
|
-
|
|
42
|
+
| Hook | Description |
|
|
43
|
+
| --------- | --------------------------------------------------- |
|
|
37
44
|
| `useAuth` | Auth state management (JWT, roles, refresh, logout) |
|
|
38
45
|
|
|
39
46
|
## Usage
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nice2dev/auth",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.15",
|
|
4
4
|
"description": "Nice2Dev Auth — Login, registration, OAuth, 2FA, captcha, password strength, token management for React",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"react-dom": ">=17.0.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@nice2dev/ui-core": "^1.3.
|
|
67
|
+
"@nice2dev/ui-core": "^1.3.15",
|
|
68
68
|
"@testing-library/jest-dom": "^7.0.1",
|
|
69
69
|
"@testing-library/react": "^16.3.3",
|
|
70
70
|
"@types/react": "^19.2.18",
|