@mano8/astro-auth-m8 2.3.0 → 2.4.1
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 +57 -0
- package/dist/src/runtime/authorization.d.ts +11 -0
- package/dist/src/runtime/authorization.d.ts.map +1 -1
- package/dist/src/runtime/authorization.js +11 -0
- package/dist/src/runtime/authorization.js.map +1 -1
- package/dist/src/runtime/hooks/useApiKeys.d.ts +6 -6
- package/dist/src/runtime/hooks/useDashboard.d.ts +4 -4
- package/dist/src/runtime/hooks/useProfile.d.ts +4 -4
- package/dist/src/runtime/hooks/useSecurity.d.ts +4 -4
- package/dist/src/runtime/hooks/useSessions.d.ts +6 -6
- package/dist/src/runtime/hooks/useUsers.d.ts +4 -4
- package/package.json +21 -21
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,63 @@ This project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
6
6
|
The major version tracks the supported `fa-auth-m8` **API contract**, not just
|
|
7
7
|
this package's own surface: a backend contract repoint is always a major.
|
|
8
8
|
|
|
9
|
+
## [Unreleased]
|
|
10
|
+
|
|
11
|
+
## 2.4.1
|
|
12
|
+
|
|
13
|
+
No behaviour or public API changes; the supported backend contract stays
|
|
14
|
+
`fa-auth-m8@2.0`, range `>=2.0.0 <3.0.0`. Aligns shared devDependencies with
|
|
15
|
+
`astro-ui-m8` and brings each to the newest version compatible with the rest
|
|
16
|
+
of the toolchain.
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- Bumped shared dev tooling: `@astrojs/react`, `@astrojs/starlight`,
|
|
21
|
+
`@eslint-react/eslint-plugin`, `@tanstack/react-query` (also widened from an
|
|
22
|
+
exact `5.101.1` pin to `^5.102.8` in `peerDependencies`/`devDependencies`,
|
|
23
|
+
matching `astro-ui-m8`'s range style), `@tanstack/react-table` (`^8.21.3`,
|
|
24
|
+
closing the drift against `astro-ui-m8`), `@types/node`, `@types/react`,
|
|
25
|
+
`@typescript-eslint/eslint-plugin`, `@typescript-eslint/parser`,
|
|
26
|
+
`@vitest/coverage-v8`, `astro`, `eslint`, `globals`, `jsdom`, `react`,
|
|
27
|
+
`react-dom`, `vitest`, and the `esbuild` override.
|
|
28
|
+
- `typescript` stays at `^5.9.3`: the latest `@typescript-eslint/parser`
|
|
29
|
+
declares a peer ceiling of `<6.1.0` and there is no stable 6.x release yet.
|
|
30
|
+
- `@tanstack/react-table` stays on the newest 8.x rather than 9.x: v9 changed
|
|
31
|
+
its generic type system and breaks `astro-ui-m8`'s shared data-table block;
|
|
32
|
+
migrating is deferred rather than folded into this bump.
|
|
33
|
+
|
|
34
|
+
## 2.4.0
|
|
35
|
+
|
|
36
|
+
No code behaviour changes; the supported backend contract stays
|
|
37
|
+
`fa-auth-m8@2.0`, range `>=2.0.0 <3.0.0`. This release exists to give the
|
|
38
|
+
fleet a published version to pin against, because what moves here is a
|
|
39
|
+
**commitment**, not an implementation: `./authorization` stops being an
|
|
40
|
+
internal module that siblings happen to be able to reach and becomes a
|
|
41
|
+
supported cross-plugin import surface, with a gate holding it to the purity
|
|
42
|
+
that promise depends on. A consumer that only reinstalls gets byte-identical
|
|
43
|
+
runtime behaviour — the point of the bump is that `^2.4.0` is now the range
|
|
44
|
+
that *means* "this package guarantees the shared hierarchy".
|
|
45
|
+
|
|
46
|
+
### Changed
|
|
47
|
+
|
|
48
|
+
- **`./authorization` is now the fleet's shared role hierarchy** (remediation
|
|
49
|
+
`W7.7`, decision 4). Nothing in the published surface changes: the module,
|
|
50
|
+
its four exports and their behaviour are exactly as `2.3.0` shipped them.
|
|
51
|
+
What changes is its standing. The fleet's `no-cross-plugin-import` gate
|
|
52
|
+
(`C12`, `scripts/verify-fleet-gates.mjs`, carried byte-identically by all
|
|
53
|
+
four plugins) now exempts this one exact specifier, so a sibling plugin can
|
|
54
|
+
import the hierarchy instead of re-implementing it and pinning the copy with
|
|
55
|
+
an agreement test — which is how `RBAC-06`, one hierarchy, becomes literally
|
|
56
|
+
true again. Every other subpath of this package stays refused.
|
|
57
|
+
A new `authorization-purity` gate makes the exemption conditional rather than
|
|
58
|
+
a blanket trust: it resolves what this package publishes for
|
|
59
|
+
`./authorization`, walks its import closure, and fails on React, on any bare
|
|
60
|
+
dependency other than `zod`, or on any read of a runtime global. It runs here
|
|
61
|
+
against this repository's own build, so keeping the module framework-neutral
|
|
62
|
+
and effect-free is now a gated obligation of this repository — recorded in
|
|
63
|
+
`REPOSITORY_CONTEXT.md` and in the module's own header, so it survives the
|
|
64
|
+
next person who edits it.
|
|
65
|
+
|
|
9
66
|
## 2.3.0
|
|
10
67
|
|
|
11
68
|
Additive only; the supported backend contract stays `fa-auth-m8@2.0`, range
|
|
@@ -22,6 +22,17 @@
|
|
|
22
22
|
* These are client-side display predicates. The backend remains the authority;
|
|
23
23
|
* mirroring its rules here only stops the UI from showing privileged surfaces
|
|
24
24
|
* the server would refuse.
|
|
25
|
+
*
|
|
26
|
+
* **This module is shared with the rest of the plugin fleet.** `./authorization`
|
|
27
|
+
* is the one subpath of this package a sibling business plugin may import: the
|
|
28
|
+
* fleet's `no-cross-plugin-import` gate (`C12`) exempts that exact specifier so
|
|
29
|
+
* `RBAC-06` — one role hierarchy across the fleet — is met by an import rather
|
|
30
|
+
* than by a copy each plugin has to pin with a test. The exemption is
|
|
31
|
+
* conditional on this file staying pure, and the `authorization-purity` gate in
|
|
32
|
+
* `scripts/verify-fleet-gates.mjs` enforces it in all four plugins: it walks
|
|
33
|
+
* this module's import closure and fails on React, on any bare dependency other
|
|
34
|
+
* than `zod`, or on any read of a runtime global. Keep it framework-neutral and
|
|
35
|
+
* effect-free — anything else here breaks every sibling plugin's build.
|
|
25
36
|
*/
|
|
26
37
|
import { type RoleType } from "./schemas.js";
|
|
27
38
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorization.d.ts","sourceRoot":"","sources":["../../../src/runtime/authorization.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"authorization.d.ts","sourceRoot":"","sources":["../../../src/runtime/authorization.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,OAAO,EAAkB,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7D;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,EAAE,SAAS,QAAQ,EAA2B,CAAC;AAiBzE;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,GAAG,OAAO,CAKrF;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,GAAG,OAAO,CAI1F;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,GAAG,OAAO,CAIpF"}
|
|
@@ -22,6 +22,17 @@
|
|
|
22
22
|
* These are client-side display predicates. The backend remains the authority;
|
|
23
23
|
* mirroring its rules here only stops the UI from showing privileged surfaces
|
|
24
24
|
* the server would refuse.
|
|
25
|
+
*
|
|
26
|
+
* **This module is shared with the rest of the plugin fleet.** `./authorization`
|
|
27
|
+
* is the one subpath of this package a sibling business plugin may import: the
|
|
28
|
+
* fleet's `no-cross-plugin-import` gate (`C12`) exempts that exact specifier so
|
|
29
|
+
* `RBAC-06` — one role hierarchy across the fleet — is met by an import rather
|
|
30
|
+
* than by a copy each plugin has to pin with a test. The exemption is
|
|
31
|
+
* conditional on this file staying pure, and the `authorization-purity` gate in
|
|
32
|
+
* `scripts/verify-fleet-gates.mjs` enforces it in all four plugins: it walks
|
|
33
|
+
* this module's import closure and fails on React, on any bare dependency other
|
|
34
|
+
* than `zod`, or on any read of a runtime global. Keep it framework-neutral and
|
|
35
|
+
* effect-free — anything else here breaks every sibling plugin's build.
|
|
25
36
|
*/
|
|
26
37
|
import { RoleTypeSchema } from "./schemas.js";
|
|
27
38
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorization.js","sourceRoot":"","sources":["../../../src/runtime/authorization.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"authorization.js","sourceRoot":"","sources":["../../../src/runtime/authorization.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,OAAO,EAAE,cAAc,EAAiB,MAAM,cAAc,CAAC;AAE7D;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,aAAa,GAAwB,cAAc,CAAC,OAAO,CAAC;AAEzE,wDAAwD;AACxD,MAAM,eAAe,GAAa,YAAY,CAAC;AAE/C;;;;;;;GAOG;AACH,SAAS,WAAW,CAAC,IAAc;IACjC,OAAO,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACtC,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,cAAc,CAAC,WAAqB,EAAE,YAAsB;IAC1E,MAAM,OAAO,GAAG,aAAa,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IACnD,MAAM,QAAQ,GAAG,aAAa,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACrD,IAAI,OAAO,KAAK,CAAC,CAAC,IAAI,QAAQ,KAAK,CAAC,CAAC;QAAE,OAAO,KAAK,CAAC;IACpD,OAAO,OAAO,IAAI,QAAQ,CAAC;AAC7B,CAAC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,4BAA4B,CAAC,IAAc,EAAE,WAAoB;IAC/E,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QAAE,OAAO,KAAK,CAAC;IACrC,IAAI,IAAI,KAAK,eAAe;QAAE,OAAO,WAAW,KAAK,IAAI,CAAC;IAC1D,OAAO,WAAW,KAAK,KAAK,CAAC;AAC/B,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,sBAAsB,CAAC,IAAc,EAAE,WAAoB;IACzE,OAAO,4BAA4B,CAAC,IAAI,EAAE,WAAW,CAAC;WACjD,IAAI,KAAK,eAAe;WACxB,WAAW,KAAK,IAAI,CAAC;AAC5B,CAAC"}
|
|
@@ -73,7 +73,7 @@ export declare function useApiKeys(load?: boolean): {
|
|
|
73
73
|
}, Error, string, unknown>;
|
|
74
74
|
isLoading: boolean;
|
|
75
75
|
isFetching: boolean;
|
|
76
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
76
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
77
77
|
id: string;
|
|
78
78
|
name: string;
|
|
79
79
|
expires_at: string | null;
|
|
@@ -83,7 +83,7 @@ export declare function useApiKeys(load?: boolean): {
|
|
|
83
83
|
audiences: string[];
|
|
84
84
|
created_at?: string | undefined;
|
|
85
85
|
updated_at?: string | undefined;
|
|
86
|
-
}[]
|
|
86
|
+
}[], Error>>;
|
|
87
87
|
};
|
|
88
88
|
export declare function useAdminApiKeys(userId: string, load?: boolean): {
|
|
89
89
|
apiKeys: {
|
|
@@ -101,7 +101,7 @@ export declare function useAdminApiKeys(userId: string, load?: boolean): {
|
|
|
101
101
|
count: number;
|
|
102
102
|
loading: boolean;
|
|
103
103
|
error: Error | null;
|
|
104
|
-
reload: () => Promise<
|
|
104
|
+
reload: () => Promise<{
|
|
105
105
|
data: {
|
|
106
106
|
id: string;
|
|
107
107
|
name: string | null;
|
|
@@ -115,7 +115,7 @@ export declare function useAdminApiKeys(userId: string, load?: boolean): {
|
|
|
115
115
|
audiences: string[];
|
|
116
116
|
}[];
|
|
117
117
|
count: number;
|
|
118
|
-
}
|
|
118
|
+
} | null>;
|
|
119
119
|
revoke: (keyId: string) => Promise<{
|
|
120
120
|
message: string;
|
|
121
121
|
}>;
|
|
@@ -124,7 +124,7 @@ export declare function useAdminApiKeys(userId: string, load?: boolean): {
|
|
|
124
124
|
}, Error, string, unknown>;
|
|
125
125
|
isLoading: boolean;
|
|
126
126
|
isFetching: boolean;
|
|
127
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
127
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
128
128
|
data: {
|
|
129
129
|
id: string;
|
|
130
130
|
name: string | null;
|
|
@@ -138,6 +138,6 @@ export declare function useAdminApiKeys(userId: string, load?: boolean): {
|
|
|
138
138
|
audiences: string[];
|
|
139
139
|
}[];
|
|
140
140
|
count: number;
|
|
141
|
-
}
|
|
141
|
+
}, Error>>;
|
|
142
142
|
};
|
|
143
143
|
//# sourceMappingURL=useApiKeys.d.ts.map
|
|
@@ -13,7 +13,7 @@ export declare function useDashboard(scope?: "me" | "global", load?: boolean): {
|
|
|
13
13
|
} | null;
|
|
14
14
|
loading: boolean;
|
|
15
15
|
error: Error | null;
|
|
16
|
-
reload: () => Promise<
|
|
16
|
+
reload: () => Promise<{
|
|
17
17
|
nb_users: number;
|
|
18
18
|
activity: {
|
|
19
19
|
min: number;
|
|
@@ -24,10 +24,10 @@ export declare function useDashboard(scope?: "me" | "global", load?: boolean): {
|
|
|
24
24
|
added: number;
|
|
25
25
|
}[];
|
|
26
26
|
};
|
|
27
|
-
}
|
|
27
|
+
} | null>;
|
|
28
28
|
isLoading: boolean;
|
|
29
29
|
isFetching: boolean;
|
|
30
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
30
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
31
31
|
nb_users: number;
|
|
32
32
|
activity: {
|
|
33
33
|
min: number;
|
|
@@ -38,6 +38,6 @@ export declare function useDashboard(scope?: "me" | "global", load?: boolean): {
|
|
|
38
38
|
added: number;
|
|
39
39
|
}[];
|
|
40
40
|
};
|
|
41
|
-
}
|
|
41
|
+
}, Error>>;
|
|
42
42
|
};
|
|
43
43
|
//# sourceMappingURL=useDashboard.d.ts.map
|
|
@@ -15,7 +15,7 @@ export declare function useProfile(load?: boolean): {
|
|
|
15
15
|
} | null;
|
|
16
16
|
loading: boolean;
|
|
17
17
|
error: Error | null;
|
|
18
|
-
reload: () => Promise<
|
|
18
|
+
reload: () => Promise<{
|
|
19
19
|
id: string;
|
|
20
20
|
provider: "password" | "google";
|
|
21
21
|
email: string;
|
|
@@ -27,7 +27,7 @@ export declare function useProfile(load?: boolean): {
|
|
|
27
27
|
role: "superadmin" | "admin" | "writer" | "reader" | "user";
|
|
28
28
|
created_at?: string | undefined;
|
|
29
29
|
updated_at?: string | undefined;
|
|
30
|
-
}
|
|
30
|
+
} | null>;
|
|
31
31
|
save: (body: UserUpdateMe) => Promise<{
|
|
32
32
|
success: boolean;
|
|
33
33
|
user: {
|
|
@@ -81,7 +81,7 @@ export declare function useProfile(load?: boolean): {
|
|
|
81
81
|
}, Error, void, unknown>;
|
|
82
82
|
isLoading: boolean;
|
|
83
83
|
isFetching: boolean;
|
|
84
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
84
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
85
85
|
id: string;
|
|
86
86
|
provider: "password" | "google";
|
|
87
87
|
email: string;
|
|
@@ -93,6 +93,6 @@ export declare function useProfile(load?: boolean): {
|
|
|
93
93
|
role: "superadmin" | "admin" | "writer" | "reader" | "user";
|
|
94
94
|
created_at?: string | undefined;
|
|
95
95
|
updated_at?: string | undefined;
|
|
96
|
-
}
|
|
96
|
+
}, Error>>;
|
|
97
97
|
};
|
|
98
98
|
//# sourceMappingURL=useProfile.d.ts.map
|
|
@@ -16,7 +16,7 @@ export declare function useAuditLog(params?: {
|
|
|
16
16
|
count: number;
|
|
17
17
|
loading: boolean;
|
|
18
18
|
error: Error | null;
|
|
19
|
-
reload: () => Promise<
|
|
19
|
+
reload: () => Promise<{
|
|
20
20
|
data: {
|
|
21
21
|
id: string;
|
|
22
22
|
created_at: string;
|
|
@@ -28,10 +28,10 @@ export declare function useAuditLog(params?: {
|
|
|
28
28
|
target_owner_id?: string | null | undefined;
|
|
29
29
|
}[];
|
|
30
30
|
count: number;
|
|
31
|
-
}
|
|
31
|
+
} | null>;
|
|
32
32
|
isLoading: boolean;
|
|
33
33
|
isFetching: boolean;
|
|
34
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
34
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
35
35
|
data: {
|
|
36
36
|
id: string;
|
|
37
37
|
created_at: string;
|
|
@@ -43,7 +43,7 @@ export declare function useAuditLog(params?: {
|
|
|
43
43
|
target_owner_id?: string | null | undefined;
|
|
44
44
|
}[];
|
|
45
45
|
count: number;
|
|
46
|
-
}
|
|
46
|
+
}, Error>>;
|
|
47
47
|
};
|
|
48
48
|
export declare function useSecurityPurges(): {
|
|
49
49
|
purgeAudit: (window: PurgeRequest["window"]) => Promise<{
|
|
@@ -26,7 +26,7 @@ export declare function useSessions(load?: boolean): {
|
|
|
26
26
|
} | null;
|
|
27
27
|
loading: boolean;
|
|
28
28
|
error: Error | null;
|
|
29
|
-
reload: () => Promise<
|
|
29
|
+
reload: () => Promise<{
|
|
30
30
|
data: {
|
|
31
31
|
id: string;
|
|
32
32
|
provider: "password" | "google";
|
|
@@ -39,8 +39,8 @@ export declare function useSessions(load?: boolean): {
|
|
|
39
39
|
updated_at?: string | undefined;
|
|
40
40
|
}[];
|
|
41
41
|
count: number;
|
|
42
|
-
}
|
|
43
|
-
reloadCurrent: () => Promise<
|
|
42
|
+
} | null>;
|
|
43
|
+
reloadCurrent: () => Promise<{
|
|
44
44
|
id: string;
|
|
45
45
|
provider: "password" | "google";
|
|
46
46
|
jwt_jti: string;
|
|
@@ -50,7 +50,7 @@ export declare function useSessions(load?: boolean): {
|
|
|
50
50
|
external_token_expires_at: string | null;
|
|
51
51
|
created_at?: string | undefined;
|
|
52
52
|
updated_at?: string | undefined;
|
|
53
|
-
}
|
|
53
|
+
} | null>;
|
|
54
54
|
revoke: (id: string) => Promise<{
|
|
55
55
|
message: string;
|
|
56
56
|
}>;
|
|
@@ -59,7 +59,7 @@ export declare function useSessions(load?: boolean): {
|
|
|
59
59
|
}, Error, string, unknown>;
|
|
60
60
|
isLoading: boolean;
|
|
61
61
|
isFetching: boolean;
|
|
62
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
62
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
63
63
|
data: {
|
|
64
64
|
id: string;
|
|
65
65
|
provider: "password" | "google";
|
|
@@ -72,6 +72,6 @@ export declare function useSessions(load?: boolean): {
|
|
|
72
72
|
updated_at?: string | undefined;
|
|
73
73
|
}[];
|
|
74
74
|
count: number;
|
|
75
|
-
}
|
|
75
|
+
}, Error>>;
|
|
76
76
|
};
|
|
77
77
|
//# sourceMappingURL=useSessions.d.ts.map
|
|
@@ -18,7 +18,7 @@ export declare function useUsers(load?: boolean): {
|
|
|
18
18
|
} | null;
|
|
19
19
|
loading: boolean;
|
|
20
20
|
error: Error | null;
|
|
21
|
-
reload: () => Promise<
|
|
21
|
+
reload: () => Promise<{
|
|
22
22
|
data: {
|
|
23
23
|
id: string;
|
|
24
24
|
provider: "password" | "google";
|
|
@@ -33,7 +33,7 @@ export declare function useUsers(load?: boolean): {
|
|
|
33
33
|
updated_at?: string | undefined;
|
|
34
34
|
}[];
|
|
35
35
|
count: number;
|
|
36
|
-
}
|
|
36
|
+
} | null>;
|
|
37
37
|
create: (body: UserCreate) => Promise<{
|
|
38
38
|
id: string;
|
|
39
39
|
provider: "password" | "google";
|
|
@@ -140,7 +140,7 @@ export declare function useUsers(load?: boolean): {
|
|
|
140
140
|
}, Error, string, unknown>;
|
|
141
141
|
isLoading: boolean;
|
|
142
142
|
isFetching: boolean;
|
|
143
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
143
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
144
144
|
data: {
|
|
145
145
|
id: string;
|
|
146
146
|
provider: "password" | "google";
|
|
@@ -155,6 +155,6 @@ export declare function useUsers(load?: boolean): {
|
|
|
155
155
|
updated_at?: string | undefined;
|
|
156
156
|
}[];
|
|
157
157
|
count: number;
|
|
158
|
-
}
|
|
158
|
+
}, Error>>;
|
|
159
159
|
};
|
|
160
160
|
//# sourceMappingURL=useUsers.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mano8/astro-auth-m8",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "Astro integration and headless client for fa-auth-m8.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -68,41 +68,41 @@
|
|
|
68
68
|
"test:unit": "vitest run"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@mano8/astro-ui-m8": "^1.5.
|
|
71
|
+
"@mano8/astro-ui-m8": "^1.5.1"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
74
|
"@astrojs/react": "^6.0.1",
|
|
75
75
|
"@astrojs/starlight": "^0.41.3",
|
|
76
|
-
"@tanstack/react-query": "5.
|
|
76
|
+
"@tanstack/react-query": "^5.102.8",
|
|
77
77
|
"astro": "^7.0.9",
|
|
78
78
|
"react": "^18.0.0 || ^19.0.0",
|
|
79
79
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
80
80
|
"zod": "^4.0.0"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@astrojs/react": "^6.0.
|
|
84
|
-
"@astrojs/starlight": "^0.41.
|
|
85
|
-
"@eslint-react/eslint-plugin": "^5.18.
|
|
83
|
+
"@astrojs/react": "^6.0.4",
|
|
84
|
+
"@astrojs/starlight": "^0.41.10",
|
|
85
|
+
"@eslint-react/eslint-plugin": "^5.18.6",
|
|
86
86
|
"@eslint/js": "^10.0.1",
|
|
87
|
-
"@tanstack/react-query": "5.
|
|
87
|
+
"@tanstack/react-query": "^5.102.8",
|
|
88
88
|
"@tanstack/react-table": "^8.21.3",
|
|
89
|
-
"@types/node": "^
|
|
90
|
-
"@types/react": "^19.
|
|
91
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
92
|
-
"@typescript-eslint/parser": "^8.
|
|
93
|
-
"@vitest/coverage-v8": "^4.1.
|
|
94
|
-
"astro": "^7.
|
|
95
|
-
"eslint": "^10.
|
|
89
|
+
"@types/node": "^26.4.0",
|
|
90
|
+
"@types/react": "^19.2.18",
|
|
91
|
+
"@typescript-eslint/eslint-plugin": "^8.68.0",
|
|
92
|
+
"@typescript-eslint/parser": "^8.68.0",
|
|
93
|
+
"@vitest/coverage-v8": "^4.1.11",
|
|
94
|
+
"astro": "^7.2.9",
|
|
95
|
+
"eslint": "^10.9.1",
|
|
96
96
|
"eslint-plugin-security": "^4.0.1",
|
|
97
|
-
"globals": "^
|
|
98
|
-
"jsdom": "^
|
|
99
|
-
"react": "^19.2.
|
|
100
|
-
"react-dom": "^19.2.
|
|
101
|
-
"typescript": "^5.
|
|
102
|
-
"vitest": "^4.1.
|
|
97
|
+
"globals": "^17.11.0",
|
|
98
|
+
"jsdom": "^30.0.1",
|
|
99
|
+
"react": "^19.2.8",
|
|
100
|
+
"react-dom": "^19.2.8",
|
|
101
|
+
"typescript": "^5.9.3",
|
|
102
|
+
"vitest": "^4.1.11"
|
|
103
103
|
},
|
|
104
104
|
"overrides": {
|
|
105
|
-
"esbuild": "^0.28.
|
|
105
|
+
"esbuild": "^0.28.2"
|
|
106
106
|
},
|
|
107
107
|
"faAuthM8": {
|
|
108
108
|
"contract": "fa-auth-m8@2.0",
|