@mano8/astro-auth-m8 1.1.0 → 1.4.0
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 +4 -3
- package/package.json +7 -4
package/README.md
CHANGED
|
@@ -81,10 +81,11 @@ Install `@mano8/astro-auth-m8` from npm first, then consume the registry as a **
|
|
|
81
81
|
| `account-dashboard` | `npx shadcn add ./node_modules/@mano8/astro-auth-m8/registry/r/account-dashboard.json` | `button`, `skeleton`, `tabs`, `dashboard-overview` | none | **yes** (`AuthProvider`, `useAuth`) |
|
|
82
82
|
| `profile-panel` | `npx shadcn add ./node_modules/@mano8/astro-auth-m8/registry/r/profile-panel.json` | `card`, `button`, `input`, `label` | none | **yes** (`useAuth`, `useProfile`) |
|
|
83
83
|
| `sessions-panel` | `npx shadcn add ./node_modules/@mano8/astro-auth-m8/registry/r/sessions-panel.json` | `card`, `button` | `lucide-react` | **yes** (`useAuth`, `useSessions`, `useDashboard`) |
|
|
84
|
-
| `
|
|
85
|
-
| `
|
|
84
|
+
| `account-crud` | `npx shadcn add ./node_modules/@mano8/astro-auth-m8/registry/r/account-crud.json` | `button`, `dialog`, `alert-dialog`, `astro-ui-m8` data-table and toast | `lucide-react` | no |
|
|
85
|
+
| `api-keys-panel` | `npx shadcn add ./node_modules/@mano8/astro-auth-m8/registry/r/api-keys-panel.json` | `card`, `button`, `input`, `label`, `badge`, `dialog`, `account-crud`, `astro-ui-m8` data-table | `lucide-react`, `@tanstack/react-table` | **yes** (`useApiKeys`) |
|
|
86
|
+
| `admin-users-panel` | `npx shadcn add ./node_modules/@mano8/astro-auth-m8/registry/r/admin-users-panel.json` | `card`, `button`, `input`, `label`, `badge`, `dialog`, `account-crud`, `astro-ui-m8` data-table | `lucide-react`, `@tanstack/react-table` | **yes** (`RequireRole`, `useUsers`) |
|
|
86
87
|
|
|
87
|
-
`dashboard-overview` is the landing view; `profile-panel`, `sessions-panel`, `api-keys-panel`, and `admin-users-panel` are the secondary account tabs (drop them into `account-dashboard`'s `extraTabs`, or into your own shell). Each reads its headless logic straight from the package hooks - no local adapter layer - and takes its strings via `labels`. `
|
|
88
|
+
`dashboard-overview` is the landing view; `profile-panel`, `sessions-panel`, `api-keys-panel`, and `admin-users-panel` are the secondary account tabs (drop them into `account-dashboard`'s `extraTabs`, or into your own shell). Each reads its headless logic straight from the package hooks - no local adapter layer - and takes its strings via `labels`. `api-keys-panel` and `admin-users-panel` use the canonical `astro-ui-m8` data-table with client-side search, sorting, pagination, column visibility, and row selection. Their shared `account-crud` dependency is installed automatically; it supplies the popup form, destructive-action confirmation, fixed row actions, and bottom-right toast host. `admin-users-panel` self-gates with `RequireRole superuser`.
|
|
88
89
|
|
|
89
90
|
Files land under `src/components/fa-auth/` (the items' `target`), import shadcn primitives via `@/components/ui/*`, and pull headless logic from the installed package. The plugin package is intentionally **not** listed in registry item `dependencies`; install the published `@mano8/astro-auth-m8` package from npm yourself so shadcn only copies the skin files.
|
|
90
91
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mano8/astro-auth-m8",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Astro integration and headless client for fa-auth-m8.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -60,19 +60,22 @@
|
|
|
60
60
|
"@mano8/astro-ui-m8": "^1.3.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"
|
|
63
|
+
"@astrojs/react": "^6.0.1",
|
|
64
|
+
"@astrojs/starlight": "^0.41.3",
|
|
65
|
+
"astro": "^7.0.9",
|
|
64
66
|
"@tanstack/react-query": "5.101.1",
|
|
65
67
|
"react": "^18.0.0 || ^19.0.0",
|
|
66
68
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
67
69
|
"zod": "^4.0.0"
|
|
68
70
|
},
|
|
69
71
|
"devDependencies": {
|
|
70
|
-
"@astrojs/react": "^
|
|
72
|
+
"@astrojs/react": "^6.0.1",
|
|
73
|
+
"@astrojs/starlight": "^0.41.3",
|
|
71
74
|
"@types/node": "^22.0.0",
|
|
72
75
|
"@types/react": "^19.0.0",
|
|
73
76
|
"@tanstack/react-query": "5.101.1",
|
|
74
77
|
"@vitest/coverage-v8": "^4.1.9",
|
|
75
|
-
"astro": "^
|
|
78
|
+
"astro": "^7.0.9",
|
|
76
79
|
"jsdom": "^29.1.1",
|
|
77
80
|
"react": "^19.2.7",
|
|
78
81
|
"react-dom": "^19.2.7",
|