@adonis-agora/authkit-react 0.18.0 → 0.19.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/build/src/client/types.d.ts +5 -1
- package/build/src/components/authorized_apps.d.ts +1 -1
- package/build/src/components/interaction_form.js +3 -5
- package/build/src/components/organization_profile.d.ts +1 -1
- package/build/src/components/organization_switcher.d.ts +1 -1
- package/build/src/components/user_profile.d.ts +1 -1
- package/package.json +12 -12
|
@@ -189,7 +189,11 @@ export interface ImpersonationPanel {
|
|
|
189
189
|
targetUserId: string;
|
|
190
190
|
targetEmail: string;
|
|
191
191
|
clientId: string;
|
|
192
|
-
|
|
192
|
+
tokenEndpoint: string;
|
|
193
|
+
grantType: string;
|
|
194
|
+
subjectTokenType: string;
|
|
195
|
+
requestedSubject: string;
|
|
196
|
+
curl: string;
|
|
193
197
|
}
|
|
194
198
|
export interface DailyPoint {
|
|
195
199
|
date: string;
|
|
@@ -6,5 +6,5 @@ export interface AuthorizedAppsProps {
|
|
|
6
6
|
declare function AuthorizedAppsInner({ className, revokeLabel, emptyLabel, }: AuthorizedAppsProps): import("react").DetailedReactHTMLElement<{
|
|
7
7
|
className: string;
|
|
8
8
|
}, HTMLElement>;
|
|
9
|
-
export declare function AuthorizedApps(props: Parameters<typeof AuthorizedAppsInner>[0]): import("react
|
|
9
|
+
export declare function AuthorizedApps(props: Parameters<typeof AuthorizedAppsInner>[0]): import("react").JSX.Element | null;
|
|
10
10
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createElement
|
|
1
|
+
import { createElement } from 'react';
|
|
2
2
|
import { interactionUrls } from '../interaction/urls.js';
|
|
3
3
|
function lockOnSubmit(event, hostOnSubmit) {
|
|
4
4
|
const formEvent = event;
|
|
@@ -7,11 +7,9 @@ function lockOnSubmit(event, hostOnSubmit) {
|
|
|
7
7
|
setTimeout(() => {
|
|
8
8
|
if (formEvent.defaultPrevented)
|
|
9
9
|
return;
|
|
10
|
-
form
|
|
11
|
-
.querySelectorAll('button[type="submit"], input[type="submit"]')
|
|
12
|
-
.forEach((el) => {
|
|
10
|
+
for (const el of form.querySelectorAll('button[type="submit"], input[type="submit"]')) {
|
|
13
11
|
el.disabled = true;
|
|
14
|
-
}
|
|
12
|
+
}
|
|
15
13
|
form.setAttribute('aria-busy', 'true');
|
|
16
14
|
}, 0);
|
|
17
15
|
}
|
|
@@ -6,5 +6,5 @@ export interface OrganizationProfileProps {
|
|
|
6
6
|
declare function OrganizationProfileInner({ inviteLabel, leaveLabel, className, }: OrganizationProfileProps): import("react").DetailedReactHTMLElement<{
|
|
7
7
|
className: string;
|
|
8
8
|
}, HTMLElement> | null;
|
|
9
|
-
export declare function OrganizationProfile(props: Parameters<typeof OrganizationProfileInner>[0]): import("react
|
|
9
|
+
export declare function OrganizationProfile(props: Parameters<typeof OrganizationProfileInner>[0]): import("react").JSX.Element | null;
|
|
10
10
|
export {};
|
|
@@ -5,5 +5,5 @@ export interface OrganizationSwitcherProps {
|
|
|
5
5
|
declare function OrganizationSwitcherInner({ personalAccountLabel, className, }: OrganizationSwitcherProps): import("react").DetailedReactHTMLElement<{
|
|
6
6
|
className: string;
|
|
7
7
|
}, HTMLElement> | null;
|
|
8
|
-
export declare function OrganizationSwitcher(props: Parameters<typeof OrganizationSwitcherInner>[0]): import("react
|
|
8
|
+
export declare function OrganizationSwitcher(props: Parameters<typeof OrganizationSwitcherInner>[0]): import("react").JSX.Element | null;
|
|
9
9
|
export {};
|
|
@@ -4,5 +4,5 @@ export interface UserProfileProps {
|
|
|
4
4
|
declare function UserProfileInner({ className }: UserProfileProps): import("react").DetailedReactHTMLElement<{
|
|
5
5
|
className: string;
|
|
6
6
|
}, HTMLElement> | null;
|
|
7
|
-
export declare function UserProfile(props: Parameters<typeof UserProfileInner>[0]): import("react
|
|
7
|
+
export declare function UserProfile(props: Parameters<typeof UserProfileInner>[0]): import("react").JSX.Element | null;
|
|
8
8
|
export {};
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonis-agora/authkit-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "Frontend ergonomics over AuthKit for AdonisJS + Inertia + React apps: a typed useAuth() hook, role-gating hooks and gating components.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "dudousxd",
|
|
7
|
-
"homepage": "https://github.com/DavideCarvalho/adonis-authkit/tree/main/packages/authkit-react#readme",
|
|
7
|
+
"homepage": "https://github.com/DavideCarvalho/adonis-agora-authkit/tree/main/packages/authkit-react#readme",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "https://github.com/DavideCarvalho/adonis-authkit.git",
|
|
10
|
+
"url": "https://github.com/DavideCarvalho/adonis-agora-authkit.git",
|
|
11
11
|
"directory": "packages/authkit-react"
|
|
12
12
|
},
|
|
13
13
|
"bugs": {
|
|
14
|
-
"url": "https://github.com/DavideCarvalho/adonis-authkit/issues"
|
|
14
|
+
"url": "https://github.com/DavideCarvalho/adonis-agora-authkit/issues"
|
|
15
15
|
},
|
|
16
16
|
"keywords": [
|
|
17
17
|
"adonisjs",
|
|
@@ -50,25 +50,25 @@
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@adonis-agora/authkit-core": "0.7.
|
|
53
|
+
"@adonis-agora/authkit-core": "0.7.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@adonisjs/tsconfig": "2.0.0",
|
|
57
|
-
"@inertiajs/react": "3.
|
|
57
|
+
"@inertiajs/react": "3.6.1",
|
|
58
58
|
"@japa/assert": "4.2.0",
|
|
59
59
|
"@japa/runner": "5.3.0",
|
|
60
60
|
"@poppinss/ts-exec": "1.4.4",
|
|
61
|
-
"@tanstack/react-query": "5.
|
|
61
|
+
"@tanstack/react-query": "5.101.4",
|
|
62
62
|
"@types/node": "25.9.1",
|
|
63
|
-
"@types/react": "19.2.
|
|
64
|
-
"@types/react-dom": "19.2.
|
|
65
|
-
"react": "19.2.
|
|
66
|
-
"react-dom": "19.2.
|
|
63
|
+
"@types/react": "19.2.18",
|
|
64
|
+
"@types/react-dom": "19.2.4",
|
|
65
|
+
"react": "19.2.8",
|
|
66
|
+
"react-dom": "19.2.8",
|
|
67
67
|
"typescript": "6.0.3"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"build": "tsc",
|
|
71
|
-
"typecheck": "tsc --noEmit",
|
|
71
|
+
"typecheck": "tsc --noEmit && tsc -p tsconfig.tests.json",
|
|
72
72
|
"test": "node --import=@poppinss/ts-exec bin/test.ts"
|
|
73
73
|
}
|
|
74
74
|
}
|