@thunderid/nextjs 1.4.0 → 1.6.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/dist/cjs/client/admin.cjs +6 -0
- package/dist/cjs/client/components/{presentation → account}/ChangeCredential/ChangeCredential.cjs +2 -2
- package/dist/cjs/client/components/account/ChangeCredential/ChangeCredential.cjs.map +1 -0
- package/dist/cjs/client/components/{presentation → account}/User/User.cjs +1 -1
- package/dist/cjs/client/components/account/User/User.cjs.map +1 -0
- package/dist/cjs/client/components/{presentation → account}/UserAvatar/UserAvatar.cjs +1 -1
- package/dist/cjs/client/components/account/UserAvatar/UserAvatar.cjs.map +1 -0
- package/dist/cjs/client/components/{presentation → account}/UserDropdown/UserDropdown.cjs +1 -1
- package/dist/cjs/client/components/account/UserDropdown/UserDropdown.cjs.map +1 -0
- package/dist/cjs/client/components/{presentation → account}/UserProfile/UserProfile.cjs +1 -1
- package/dist/cjs/client/components/account/UserProfile/UserProfile.cjs.map +1 -0
- package/dist/cjs/client/components/admin/AgentCreate/AgentCreate.cjs +28 -0
- package/dist/cjs/client/components/admin/AgentCreate/AgentCreate.cjs.map +1 -0
- package/dist/cjs/client/components/admin/AgentDetails/AgentDetails.cjs +28 -0
- package/dist/cjs/client/components/admin/AgentDetails/AgentDetails.cjs.map +1 -0
- package/dist/cjs/client/components/admin/AgentList/AgentList.cjs +28 -0
- package/dist/cjs/client/components/admin/AgentList/AgentList.cjs.map +1 -0
- package/dist/cjs/client/components/admin/GroupCreate/GroupCreate.cjs +28 -0
- package/dist/cjs/client/components/admin/GroupCreate/GroupCreate.cjs.map +1 -0
- package/dist/cjs/client/components/admin/GroupList/GroupList.cjs +28 -0
- package/dist/cjs/client/components/admin/GroupList/GroupList.cjs.map +1 -0
- package/dist/cjs/client/components/admin/GroupMembers/GroupMembers.cjs +28 -0
- package/dist/cjs/client/components/admin/GroupMembers/GroupMembers.cjs.map +1 -0
- package/dist/cjs/client/components/admin/RoleAssignments/RoleAssignments.cjs +28 -0
- package/dist/cjs/client/components/admin/RoleAssignments/RoleAssignments.cjs.map +1 -0
- package/dist/cjs/client/components/admin/RoleCreate/RoleCreate.cjs +28 -0
- package/dist/cjs/client/components/admin/RoleCreate/RoleCreate.cjs.map +1 -0
- package/dist/cjs/client/components/admin/RoleList/RoleList.cjs +28 -0
- package/dist/cjs/client/components/admin/RoleList/RoleList.cjs.map +1 -0
- package/dist/cjs/client/components/admin/RolePermissions/RolePermissions.cjs +28 -0
- package/dist/cjs/client/components/admin/RolePermissions/RolePermissions.cjs.map +1 -0
- package/dist/cjs/client/components/admin/UserCreate/UserCreate.cjs +28 -0
- package/dist/cjs/client/components/admin/UserCreate/UserCreate.cjs.map +1 -0
- package/dist/cjs/client/components/admin/UserDetails/UserDetails.cjs +28 -0
- package/dist/cjs/client/components/admin/UserDetails/UserDetails.cjs.map +1 -0
- package/dist/cjs/client/components/admin/UserList/UserList.cjs +28 -0
- package/dist/cjs/client/components/admin/UserList/UserList.cjs.map +1 -0
- package/dist/cjs/client/components/{presentation → auth}/SignIn/SignIn.cjs +1 -1
- package/dist/cjs/client/components/auth/SignIn/SignIn.cjs.map +1 -0
- package/dist/cjs/client/components/{presentation → auth}/SignUp/SignUp.cjs +1 -1
- package/dist/cjs/client/components/auth/SignUp/SignUp.cjs.map +1 -0
- package/dist/cjs/client/components/{actions → auth/buttons}/SignInButton/SignInButton.cjs +3 -3
- package/dist/cjs/client/components/auth/buttons/SignInButton/SignInButton.cjs.map +1 -0
- package/dist/cjs/client/components/{actions → auth/buttons}/SignOutButton/SignOutButton.cjs +4 -4
- package/dist/cjs/client/components/auth/buttons/SignOutButton/SignOutButton.cjs.map +1 -0
- package/dist/cjs/client/components/{actions → auth/buttons}/SignUpButton/SignUpButton.cjs +3 -3
- package/dist/cjs/client/components/auth/buttons/SignUpButton/SignUpButton.cjs.map +1 -0
- package/dist/cjs/client/components/{control → auth/guards}/SignedIn/SignedIn.cjs +3 -3
- package/dist/cjs/client/components/auth/guards/SignedIn/SignedIn.cjs.map +1 -0
- package/dist/cjs/client/components/{control → auth/guards}/SignedOut/SignedOut.cjs +3 -3
- package/dist/cjs/client/components/auth/guards/SignedOut/SignedOut.cjs.map +1 -0
- package/dist/cjs/client/components/{presentation → primitives}/AuthFlowSelect/AuthFlowSelect.cjs +1 -1
- package/dist/cjs/client/components/primitives/AuthFlowSelect/AuthFlowSelect.cjs.map +1 -0
- package/dist/cjs/client/components/{presentation → primitives}/UserSelect/UserSelect.cjs +1 -1
- package/dist/cjs/client/components/primitives/UserSelect/UserSelect.cjs.map +1 -0
- package/dist/cjs/client/components/{presentation → primitives}/UserTypeSelect/UserTypeSelect.cjs +1 -1
- package/dist/cjs/client/components/primitives/UserTypeSelect/UserTypeSelect.cjs.map +1 -0
- package/dist/cjs/client/contexts/ThunderID/ThunderIDProvider.cjs +5 -1
- package/dist/cjs/client/contexts/ThunderID/ThunderIDProvider.cjs.map +1 -1
- package/dist/cjs/client/fetchAuthFlowsFromServer.cjs +1 -1
- package/dist/cjs/client/fetchAuthFlowsFromServer.cjs.map +1 -1
- package/dist/cjs/client/fetchFlowMetaFromServer.cjs +1 -1
- package/dist/cjs/client/fetchFlowMetaFromServer.cjs.map +1 -1
- package/dist/cjs/client/fetchManagementFromServer.cjs +32 -0
- package/dist/cjs/client/fetchManagementFromServer.cjs.map +1 -0
- package/dist/cjs/client/fetchUserTypesFromServer.cjs +1 -1
- package/dist/cjs/client/fetchUserTypesFromServer.cjs.map +1 -1
- package/dist/cjs/client/fetchUsersFromServer.cjs +1 -1
- package/dist/cjs/client/fetchUsersFromServer.cjs.map +1 -1
- package/dist/cjs/client/hooks/management/useGrantedPermissions.cjs +51 -0
- package/dist/cjs/client/hooks/management/useGrantedPermissions.cjs.map +1 -0
- package/dist/cjs/client/index.cjs +33 -15
- package/dist/cjs/index.cjs +311 -16
- package/dist/cjs/server/ThunderIDProvider.cjs +10 -8
- package/dist/cjs/server/ThunderIDProvider.cjs.map +1 -1
- package/dist/cjs/server/actions/{getUserAction.cjs → account/getUserAction.cjs} +2 -2
- package/dist/cjs/server/actions/account/getUserAction.cjs.map +1 -0
- package/dist/cjs/server/actions/{getUserProfileAction.cjs → account/getUserProfileAction.cjs} +2 -2
- package/dist/cjs/server/actions/account/getUserProfileAction.cjs.map +1 -0
- package/dist/cjs/server/actions/{getUserSchemaAction.cjs → account/getUserSchemaAction.cjs} +2 -2
- package/dist/cjs/server/actions/account/getUserSchemaAction.cjs.map +1 -0
- package/dist/cjs/server/actions/{updateUserCredentialsAction.cjs → account/updateUserCredentialsAction.cjs} +3 -3
- package/dist/cjs/server/actions/account/updateUserCredentialsAction.cjs.map +1 -0
- package/dist/cjs/server/actions/{updateUserProfileAction.cjs → account/updateUserProfileAction.cjs} +2 -2
- package/dist/cjs/server/actions/account/updateUserProfileAction.cjs.map +1 -0
- package/dist/cjs/server/actions/{getAuthFlowsAction.cjs → auth/getAuthFlowsAction.cjs} +3 -3
- package/dist/cjs/server/actions/auth/getAuthFlowsAction.cjs.map +1 -0
- package/dist/cjs/server/actions/{getFlowMetaAction.cjs → auth/getFlowMetaAction.cjs} +4 -4
- package/dist/cjs/server/actions/auth/getFlowMetaAction.cjs.map +1 -0
- package/dist/cjs/server/actions/{handleOAuthCallbackAction.cjs → auth/handleOAuthCallbackAction.cjs} +6 -6
- package/dist/cjs/server/actions/auth/handleOAuthCallbackAction.cjs.map +1 -0
- package/dist/cjs/server/actions/{signInAction.cjs → auth/signInAction.cjs} +6 -6
- package/dist/cjs/server/actions/auth/signInAction.cjs.map +1 -0
- package/dist/cjs/server/actions/{signOutAction.cjs → auth/signOutAction.cjs} +7 -7
- package/dist/cjs/server/actions/auth/signOutAction.cjs.map +1 -0
- package/dist/cjs/server/actions/{signUpAction.cjs → auth/signUpAction.cjs} +2 -2
- package/dist/cjs/server/actions/auth/signUpAction.cjs.map +1 -0
- package/dist/cjs/server/actions/management/getGrantedPermissionsAction.cjs +32 -0
- package/dist/cjs/server/actions/management/getGrantedPermissionsAction.cjs.map +1 -0
- package/dist/cjs/server/actions/{getUserTypesAction.cjs → management/getUserTypesAction.cjs} +3 -3
- package/dist/cjs/server/actions/management/getUserTypesAction.cjs.map +1 -0
- package/dist/cjs/server/actions/{getUsersAction.cjs → management/getUsersAction.cjs} +3 -3
- package/dist/cjs/server/actions/management/getUsersAction.cjs.map +1 -0
- package/dist/cjs/server/actions/management/managementRequestAction.cjs +79 -0
- package/dist/cjs/server/actions/management/managementRequestAction.cjs.map +1 -0
- package/dist/cjs/utils/managementCollections.cjs +22 -0
- package/dist/cjs/utils/managementCollections.cjs.map +1 -0
- package/dist/client/admin.d.ts +3 -0
- package/dist/client/admin.d.ts.map +1 -0
- package/dist/client/admin.js +6 -0
- package/dist/client/components/account/ChangeCredential/ChangeCredential.d.ts.map +1 -0
- package/dist/client/components/{presentation → account}/ChangeCredential/ChangeCredential.js +2 -2
- package/dist/client/components/account/ChangeCredential/ChangeCredential.js.map +1 -0
- package/dist/client/components/account/User/User.d.ts.map +1 -0
- package/dist/client/components/{presentation → account}/User/User.js +1 -1
- package/dist/client/components/account/User/User.js.map +1 -0
- package/dist/client/components/account/UserAvatar/UserAvatar.d.ts.map +1 -0
- package/dist/client/components/{presentation → account}/UserAvatar/UserAvatar.js +1 -1
- package/dist/client/components/account/UserAvatar/UserAvatar.js.map +1 -0
- package/dist/client/components/account/UserDropdown/UserDropdown.d.ts.map +1 -0
- package/dist/client/components/{presentation → account}/UserDropdown/UserDropdown.js +1 -1
- package/dist/client/components/account/UserDropdown/UserDropdown.js.map +1 -0
- package/dist/client/components/account/UserProfile/UserProfile.d.ts.map +1 -0
- package/dist/client/components/{presentation → account}/UserProfile/UserProfile.js +1 -1
- package/dist/client/components/account/UserProfile/UserProfile.js.map +1 -0
- package/dist/client/components/admin/AgentCreate/AgentCreate.d.ts +17 -0
- package/dist/client/components/admin/AgentCreate/AgentCreate.d.ts.map +1 -0
- package/dist/client/components/admin/AgentCreate/AgentCreate.js +25 -0
- package/dist/client/components/admin/AgentCreate/AgentCreate.js.map +1 -0
- package/dist/client/components/admin/AgentDetails/AgentDetails.d.ts +17 -0
- package/dist/client/components/admin/AgentDetails/AgentDetails.d.ts.map +1 -0
- package/dist/client/components/admin/AgentDetails/AgentDetails.js +25 -0
- package/dist/client/components/admin/AgentDetails/AgentDetails.js.map +1 -0
- package/dist/client/components/admin/AgentList/AgentList.d.ts +17 -0
- package/dist/client/components/admin/AgentList/AgentList.d.ts.map +1 -0
- package/dist/client/components/admin/AgentList/AgentList.js +25 -0
- package/dist/client/components/admin/AgentList/AgentList.js.map +1 -0
- package/dist/client/components/admin/GroupCreate/GroupCreate.d.ts +17 -0
- package/dist/client/components/admin/GroupCreate/GroupCreate.d.ts.map +1 -0
- package/dist/client/components/admin/GroupCreate/GroupCreate.js +25 -0
- package/dist/client/components/admin/GroupCreate/GroupCreate.js.map +1 -0
- package/dist/client/components/admin/GroupList/GroupList.d.ts +17 -0
- package/dist/client/components/admin/GroupList/GroupList.d.ts.map +1 -0
- package/dist/client/components/admin/GroupList/GroupList.js +25 -0
- package/dist/client/components/admin/GroupList/GroupList.js.map +1 -0
- package/dist/client/components/admin/GroupMembers/GroupMembers.d.ts +17 -0
- package/dist/client/components/admin/GroupMembers/GroupMembers.d.ts.map +1 -0
- package/dist/client/components/admin/GroupMembers/GroupMembers.js +25 -0
- package/dist/client/components/admin/GroupMembers/GroupMembers.js.map +1 -0
- package/dist/client/components/admin/RoleAssignments/RoleAssignments.d.ts +17 -0
- package/dist/client/components/admin/RoleAssignments/RoleAssignments.d.ts.map +1 -0
- package/dist/client/components/admin/RoleAssignments/RoleAssignments.js +25 -0
- package/dist/client/components/admin/RoleAssignments/RoleAssignments.js.map +1 -0
- package/dist/client/components/admin/RoleCreate/RoleCreate.d.ts +17 -0
- package/dist/client/components/admin/RoleCreate/RoleCreate.d.ts.map +1 -0
- package/dist/client/components/admin/RoleCreate/RoleCreate.js +25 -0
- package/dist/client/components/admin/RoleCreate/RoleCreate.js.map +1 -0
- package/dist/client/components/admin/RoleList/RoleList.d.ts +17 -0
- package/dist/client/components/admin/RoleList/RoleList.d.ts.map +1 -0
- package/dist/client/components/admin/RoleList/RoleList.js +25 -0
- package/dist/client/components/admin/RoleList/RoleList.js.map +1 -0
- package/dist/client/components/admin/RolePermissions/RolePermissions.d.ts +17 -0
- package/dist/client/components/admin/RolePermissions/RolePermissions.d.ts.map +1 -0
- package/dist/client/components/admin/RolePermissions/RolePermissions.js +25 -0
- package/dist/client/components/admin/RolePermissions/RolePermissions.js.map +1 -0
- package/dist/client/components/admin/UserCreate/UserCreate.d.ts +17 -0
- package/dist/client/components/admin/UserCreate/UserCreate.d.ts.map +1 -0
- package/dist/client/components/admin/UserCreate/UserCreate.js +25 -0
- package/dist/client/components/admin/UserCreate/UserCreate.js.map +1 -0
- package/dist/client/components/admin/UserDetails/UserDetails.d.ts +17 -0
- package/dist/client/components/admin/UserDetails/UserDetails.d.ts.map +1 -0
- package/dist/client/components/admin/UserDetails/UserDetails.js +25 -0
- package/dist/client/components/admin/UserDetails/UserDetails.js.map +1 -0
- package/dist/client/components/admin/UserList/UserList.d.ts +17 -0
- package/dist/client/components/admin/UserList/UserList.d.ts.map +1 -0
- package/dist/client/components/admin/UserList/UserList.js +25 -0
- package/dist/client/components/admin/UserList/UserList.js.map +1 -0
- package/dist/client/components/auth/SignIn/SignIn.d.ts.map +1 -0
- package/dist/client/components/{presentation → auth}/SignIn/SignIn.js +1 -1
- package/dist/client/components/auth/SignIn/SignIn.js.map +1 -0
- package/dist/client/components/auth/SignUp/SignUp.d.ts.map +1 -0
- package/dist/client/components/{presentation → auth}/SignUp/SignUp.js +1 -1
- package/dist/client/components/auth/SignUp/SignUp.js.map +1 -0
- package/dist/client/components/auth/buttons/SignInButton/SignInButton.d.ts.map +1 -0
- package/dist/client/components/{actions → auth/buttons}/SignInButton/SignInButton.js +2 -2
- package/dist/client/components/auth/buttons/SignInButton/SignInButton.js.map +1 -0
- package/dist/client/components/auth/buttons/SignOutButton/SignOutButton.d.ts.map +1 -0
- package/dist/client/components/{actions → auth/buttons}/SignOutButton/SignOutButton.js +3 -3
- package/dist/client/components/auth/buttons/SignOutButton/SignOutButton.js.map +1 -0
- package/dist/client/components/auth/buttons/SignUpButton/SignUpButton.d.ts.map +1 -0
- package/dist/client/components/{actions → auth/buttons}/SignUpButton/SignUpButton.js +2 -2
- package/dist/client/components/auth/buttons/SignUpButton/SignUpButton.js.map +1 -0
- package/dist/client/components/auth/guards/Loading/Loading.d.ts.map +1 -0
- package/dist/client/components/auth/guards/SignedIn/SignedIn.d.ts.map +1 -0
- package/dist/client/components/{control → auth/guards}/SignedIn/SignedIn.js +2 -2
- package/dist/client/components/auth/guards/SignedIn/SignedIn.js.map +1 -0
- package/dist/client/components/auth/guards/SignedOut/SignedOut.d.ts.map +1 -0
- package/dist/client/components/{control → auth/guards}/SignedOut/SignedOut.js +2 -2
- package/dist/client/components/auth/guards/SignedOut/SignedOut.js.map +1 -0
- package/dist/client/components/primitives/AuthFlowSelect/AuthFlowSelect.d.ts.map +1 -0
- package/dist/client/components/{presentation → primitives}/AuthFlowSelect/AuthFlowSelect.js +1 -1
- package/dist/client/components/primitives/AuthFlowSelect/AuthFlowSelect.js.map +1 -0
- package/dist/client/components/primitives/UserSelect/UserSelect.d.ts.map +1 -0
- package/dist/client/components/{presentation → primitives}/UserSelect/UserSelect.js +1 -1
- package/dist/client/components/primitives/UserSelect/UserSelect.js.map +1 -0
- package/dist/client/components/primitives/UserTypeSelect/UserTypeSelect.d.ts.map +1 -0
- package/dist/client/components/{presentation → primitives}/UserTypeSelect/UserTypeSelect.js +1 -1
- package/dist/client/components/primitives/UserTypeSelect/UserTypeSelect.js.map +1 -0
- package/dist/client/contexts/ThunderID/ThunderIDProvider.d.ts.map +1 -1
- package/dist/client/contexts/ThunderID/ThunderIDProvider.js +5 -1
- package/dist/client/contexts/ThunderID/ThunderIDProvider.js.map +1 -1
- package/dist/client/fetchAuthFlowsFromServer.js +1 -1
- package/dist/client/fetchAuthFlowsFromServer.js.map +1 -1
- package/dist/client/fetchFlowMetaFromServer.js +1 -1
- package/dist/client/fetchFlowMetaFromServer.js.map +1 -1
- package/dist/client/fetchManagementFromServer.d.ts +14 -0
- package/dist/client/fetchManagementFromServer.d.ts.map +1 -0
- package/dist/client/fetchManagementFromServer.js +32 -0
- package/dist/client/fetchManagementFromServer.js.map +1 -0
- package/dist/client/fetchUserTypesFromServer.js +1 -1
- package/dist/client/fetchUserTypesFromServer.js.map +1 -1
- package/dist/client/fetchUsersFromServer.js +1 -1
- package/dist/client/fetchUsersFromServer.js.map +1 -1
- package/dist/client/hooks/management/useGrantedPermissions.d.ts +17 -0
- package/dist/client/hooks/management/useGrantedPermissions.d.ts.map +1 -0
- package/dist/client/hooks/management/useGrantedPermissions.js +48 -0
- package/dist/client/hooks/management/useGrantedPermissions.js.map +1 -0
- package/dist/client/index.d.ts +58 -30
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +30 -15
- package/dist/index.js +31 -16
- package/dist/server/ThunderIDProvider.d.ts.map +1 -1
- package/dist/server/ThunderIDProvider.js +10 -8
- package/dist/server/ThunderIDProvider.js.map +1 -1
- package/dist/server/actions/account/getUserAction.d.ts.map +1 -0
- package/dist/server/actions/{getUserAction.js → account/getUserAction.js} +2 -2
- package/dist/server/actions/account/getUserAction.js.map +1 -0
- package/dist/server/actions/account/getUserProfileAction.d.ts.map +1 -0
- package/dist/server/actions/{getUserProfileAction.js → account/getUserProfileAction.js} +2 -2
- package/dist/server/actions/account/getUserProfileAction.js.map +1 -0
- package/dist/server/actions/account/getUserSchemaAction.d.ts.map +1 -0
- package/dist/server/actions/{getUserSchemaAction.js → account/getUserSchemaAction.js} +2 -2
- package/dist/server/actions/account/getUserSchemaAction.js.map +1 -0
- package/dist/server/actions/account/updateUserCredentialsAction.d.ts.map +1 -0
- package/dist/server/actions/{updateUserCredentialsAction.js → account/updateUserCredentialsAction.js} +2 -2
- package/dist/server/actions/account/updateUserCredentialsAction.js.map +1 -0
- package/dist/server/actions/account/updateUserProfileAction.d.ts.map +1 -0
- package/dist/server/actions/{updateUserProfileAction.js → account/updateUserProfileAction.js} +2 -2
- package/dist/server/actions/account/updateUserProfileAction.js.map +1 -0
- package/dist/server/actions/{getAuthFlowsAction.d.ts → auth/getAuthFlowsAction.d.ts} +1 -1
- package/dist/server/actions/auth/getAuthFlowsAction.d.ts.map +1 -0
- package/dist/server/actions/{getAuthFlowsAction.js → auth/getAuthFlowsAction.js} +2 -2
- package/dist/server/actions/auth/getAuthFlowsAction.js.map +1 -0
- package/dist/server/actions/auth/getFlowMetaAction.d.ts.map +1 -0
- package/dist/server/actions/{getFlowMetaAction.js → auth/getFlowMetaAction.js} +3 -3
- package/dist/server/actions/auth/getFlowMetaAction.js.map +1 -0
- package/dist/server/actions/auth/handleOAuthCallbackAction.d.ts.map +1 -0
- package/dist/server/actions/{handleOAuthCallbackAction.js → auth/handleOAuthCallbackAction.js} +5 -5
- package/dist/server/actions/auth/handleOAuthCallbackAction.js.map +1 -0
- package/dist/server/actions/auth/signInAction.d.ts.map +1 -0
- package/dist/server/actions/{signInAction.js → auth/signInAction.js} +5 -5
- package/dist/server/actions/auth/signInAction.js.map +1 -0
- package/dist/server/actions/auth/signOutAction.d.ts.map +1 -0
- package/dist/server/actions/{signOutAction.js → auth/signOutAction.js} +6 -6
- package/dist/server/actions/auth/signOutAction.js.map +1 -0
- package/dist/server/actions/auth/signUpAction.d.ts.map +1 -0
- package/dist/server/actions/{signUpAction.js → auth/signUpAction.js} +2 -2
- package/dist/server/actions/auth/signUpAction.js.map +1 -0
- package/dist/server/actions/management/getGrantedPermissionsAction.d.ts +11 -0
- package/dist/server/actions/management/getGrantedPermissionsAction.d.ts.map +1 -0
- package/dist/server/actions/management/getGrantedPermissionsAction.js +30 -0
- package/dist/server/actions/management/getGrantedPermissionsAction.js.map +1 -0
- package/dist/server/actions/{getUserTypesAction.d.ts → management/getUserTypesAction.d.ts} +1 -1
- package/dist/server/actions/management/getUserTypesAction.d.ts.map +1 -0
- package/dist/server/actions/{getUserTypesAction.js → management/getUserTypesAction.js} +2 -2
- package/dist/server/actions/management/getUserTypesAction.js.map +1 -0
- package/dist/server/actions/{getUsersAction.d.ts → management/getUsersAction.d.ts} +1 -1
- package/dist/server/actions/management/getUsersAction.d.ts.map +1 -0
- package/dist/server/actions/{getUsersAction.js → management/getUsersAction.js} +2 -2
- package/dist/server/actions/management/getUsersAction.js.map +1 -0
- package/dist/server/actions/management/managementRequestAction.d.ts +36 -0
- package/dist/server/actions/management/managementRequestAction.d.ts.map +1 -0
- package/dist/server/actions/management/managementRequestAction.js +77 -0
- package/dist/server/actions/management/managementRequestAction.js.map +1 -0
- package/dist/utils/managementCollections.d.ts +8 -0
- package/dist/utils/managementCollections.d.ts.map +1 -0
- package/dist/utils/managementCollections.js +20 -0
- package/dist/utils/managementCollections.js.map +1 -0
- package/package.json +3 -3
- package/dist/cjs/client/components/actions/SignInButton/SignInButton.cjs.map +0 -1
- package/dist/cjs/client/components/actions/SignOutButton/SignOutButton.cjs.map +0 -1
- package/dist/cjs/client/components/actions/SignUpButton/SignUpButton.cjs.map +0 -1
- package/dist/cjs/client/components/control/SignedIn/SignedIn.cjs.map +0 -1
- package/dist/cjs/client/components/control/SignedOut/SignedOut.cjs.map +0 -1
- package/dist/cjs/client/components/presentation/AuthFlowSelect/AuthFlowSelect.cjs.map +0 -1
- package/dist/cjs/client/components/presentation/ChangeCredential/ChangeCredential.cjs.map +0 -1
- package/dist/cjs/client/components/presentation/SignIn/SignIn.cjs.map +0 -1
- package/dist/cjs/client/components/presentation/SignUp/SignUp.cjs.map +0 -1
- package/dist/cjs/client/components/presentation/User/User.cjs.map +0 -1
- package/dist/cjs/client/components/presentation/UserAvatar/UserAvatar.cjs.map +0 -1
- package/dist/cjs/client/components/presentation/UserDropdown/UserDropdown.cjs.map +0 -1
- package/dist/cjs/client/components/presentation/UserProfile/UserProfile.cjs.map +0 -1
- package/dist/cjs/client/components/presentation/UserSelect/UserSelect.cjs.map +0 -1
- package/dist/cjs/client/components/presentation/UserTypeSelect/UserTypeSelect.cjs.map +0 -1
- package/dist/cjs/server/actions/getAuthFlowsAction.cjs.map +0 -1
- package/dist/cjs/server/actions/getFlowMetaAction.cjs.map +0 -1
- package/dist/cjs/server/actions/getUserAction.cjs.map +0 -1
- package/dist/cjs/server/actions/getUserProfileAction.cjs.map +0 -1
- package/dist/cjs/server/actions/getUserSchemaAction.cjs.map +0 -1
- package/dist/cjs/server/actions/getUserTypesAction.cjs.map +0 -1
- package/dist/cjs/server/actions/getUsersAction.cjs.map +0 -1
- package/dist/cjs/server/actions/handleOAuthCallbackAction.cjs.map +0 -1
- package/dist/cjs/server/actions/signInAction.cjs.map +0 -1
- package/dist/cjs/server/actions/signOutAction.cjs.map +0 -1
- package/dist/cjs/server/actions/signUpAction.cjs.map +0 -1
- package/dist/cjs/server/actions/updateUserCredentialsAction.cjs.map +0 -1
- package/dist/cjs/server/actions/updateUserProfileAction.cjs.map +0 -1
- package/dist/client/components/actions/SignInButton/SignInButton.d.ts.map +0 -1
- package/dist/client/components/actions/SignInButton/SignInButton.js.map +0 -1
- package/dist/client/components/actions/SignOutButton/SignOutButton.d.ts.map +0 -1
- package/dist/client/components/actions/SignOutButton/SignOutButton.js.map +0 -1
- package/dist/client/components/actions/SignUpButton/SignUpButton.d.ts.map +0 -1
- package/dist/client/components/actions/SignUpButton/SignUpButton.js.map +0 -1
- package/dist/client/components/control/Loading/Loading.d.ts.map +0 -1
- package/dist/client/components/control/SignedIn/SignedIn.d.ts.map +0 -1
- package/dist/client/components/control/SignedIn/SignedIn.js.map +0 -1
- package/dist/client/components/control/SignedOut/SignedOut.d.ts.map +0 -1
- package/dist/client/components/control/SignedOut/SignedOut.js.map +0 -1
- package/dist/client/components/presentation/AuthFlowSelect/AuthFlowSelect.d.ts.map +0 -1
- package/dist/client/components/presentation/AuthFlowSelect/AuthFlowSelect.js.map +0 -1
- package/dist/client/components/presentation/ChangeCredential/ChangeCredential.d.ts.map +0 -1
- package/dist/client/components/presentation/ChangeCredential/ChangeCredential.js.map +0 -1
- package/dist/client/components/presentation/SignIn/SignIn.d.ts.map +0 -1
- package/dist/client/components/presentation/SignIn/SignIn.js.map +0 -1
- package/dist/client/components/presentation/SignUp/SignUp.d.ts.map +0 -1
- package/dist/client/components/presentation/SignUp/SignUp.js.map +0 -1
- package/dist/client/components/presentation/User/User.d.ts.map +0 -1
- package/dist/client/components/presentation/User/User.js.map +0 -1
- package/dist/client/components/presentation/UserAvatar/UserAvatar.d.ts.map +0 -1
- package/dist/client/components/presentation/UserAvatar/UserAvatar.js.map +0 -1
- package/dist/client/components/presentation/UserDropdown/UserDropdown.d.ts.map +0 -1
- package/dist/client/components/presentation/UserDropdown/UserDropdown.js.map +0 -1
- package/dist/client/components/presentation/UserProfile/UserProfile.d.ts.map +0 -1
- package/dist/client/components/presentation/UserProfile/UserProfile.js.map +0 -1
- package/dist/client/components/presentation/UserSelect/UserSelect.d.ts.map +0 -1
- package/dist/client/components/presentation/UserSelect/UserSelect.js.map +0 -1
- package/dist/client/components/presentation/UserTypeSelect/UserTypeSelect.d.ts.map +0 -1
- package/dist/client/components/presentation/UserTypeSelect/UserTypeSelect.js.map +0 -1
- package/dist/server/actions/getAuthFlowsAction.d.ts.map +0 -1
- package/dist/server/actions/getAuthFlowsAction.js.map +0 -1
- package/dist/server/actions/getFlowMetaAction.d.ts.map +0 -1
- package/dist/server/actions/getFlowMetaAction.js.map +0 -1
- package/dist/server/actions/getUserAction.d.ts.map +0 -1
- package/dist/server/actions/getUserAction.js.map +0 -1
- package/dist/server/actions/getUserProfileAction.d.ts.map +0 -1
- package/dist/server/actions/getUserProfileAction.js.map +0 -1
- package/dist/server/actions/getUserSchemaAction.d.ts.map +0 -1
- package/dist/server/actions/getUserSchemaAction.js.map +0 -1
- package/dist/server/actions/getUserTypesAction.d.ts.map +0 -1
- package/dist/server/actions/getUserTypesAction.js.map +0 -1
- package/dist/server/actions/getUsersAction.d.ts.map +0 -1
- package/dist/server/actions/getUsersAction.js.map +0 -1
- package/dist/server/actions/handleOAuthCallbackAction.d.ts.map +0 -1
- package/dist/server/actions/handleOAuthCallbackAction.js.map +0 -1
- package/dist/server/actions/signInAction.d.ts.map +0 -1
- package/dist/server/actions/signInAction.js.map +0 -1
- package/dist/server/actions/signOutAction.d.ts.map +0 -1
- package/dist/server/actions/signOutAction.js.map +0 -1
- package/dist/server/actions/signUpAction.d.ts.map +0 -1
- package/dist/server/actions/signUpAction.js.map +0 -1
- package/dist/server/actions/updateUserCredentialsAction.d.ts.map +0 -1
- package/dist/server/actions/updateUserCredentialsAction.js.map +0 -1
- package/dist/server/actions/updateUserProfileAction.d.ts.map +0 -1
- package/dist/server/actions/updateUserProfileAction.js.map +0 -1
- /package/dist/client/components/{presentation → account}/ChangeCredential/ChangeCredential.d.ts +0 -0
- /package/dist/client/components/{presentation → account}/User/User.d.ts +0 -0
- /package/dist/client/components/{presentation → account}/UserAvatar/UserAvatar.d.ts +0 -0
- /package/dist/client/components/{presentation → account}/UserDropdown/UserDropdown.d.ts +0 -0
- /package/dist/client/components/{presentation → account}/UserProfile/UserProfile.d.ts +0 -0
- /package/dist/client/components/{presentation → auth}/SignIn/SignIn.d.ts +0 -0
- /package/dist/client/components/{presentation → auth}/SignUp/SignUp.d.ts +0 -0
- /package/dist/client/components/{actions → auth/buttons}/SignInButton/SignInButton.d.ts +0 -0
- /package/dist/client/components/{actions → auth/buttons}/SignOutButton/SignOutButton.d.ts +0 -0
- /package/dist/client/components/{actions → auth/buttons}/SignUpButton/SignUpButton.d.ts +0 -0
- /package/dist/client/components/{control → auth/guards}/Loading/Loading.d.ts +0 -0
- /package/dist/client/components/{control → auth/guards}/SignedIn/SignedIn.d.ts +0 -0
- /package/dist/client/components/{control → auth/guards}/SignedOut/SignedOut.d.ts +0 -0
- /package/dist/client/components/{presentation → primitives}/AuthFlowSelect/AuthFlowSelect.d.ts +0 -0
- /package/dist/client/components/{presentation → primitives}/UserSelect/UserSelect.d.ts +0 -0
- /package/dist/client/components/{presentation → primitives}/UserTypeSelect/UserTypeSelect.d.ts +0 -0
- /package/dist/server/actions/{getUserAction.d.ts → account/getUserAction.d.ts} +0 -0
- /package/dist/server/actions/{getUserProfileAction.d.ts → account/getUserProfileAction.d.ts} +0 -0
- /package/dist/server/actions/{getUserSchemaAction.d.ts → account/getUserSchemaAction.d.ts} +0 -0
- /package/dist/server/actions/{updateUserCredentialsAction.d.ts → account/updateUserCredentialsAction.d.ts} +0 -0
- /package/dist/server/actions/{updateUserProfileAction.d.ts → account/updateUserProfileAction.d.ts} +0 -0
- /package/dist/server/actions/{getFlowMetaAction.d.ts → auth/getFlowMetaAction.d.ts} +0 -0
- /package/dist/server/actions/{handleOAuthCallbackAction.d.ts → auth/handleOAuthCallbackAction.d.ts} +0 -0
- /package/dist/server/actions/{signInAction.d.ts → auth/signInAction.d.ts} +0 -0
- /package/dist/server/actions/{signOutAction.d.ts → auth/signOutAction.d.ts} +0 -0
- /package/dist/server/actions/{signUpAction.d.ts → auth/signUpAction.d.ts} +0 -0
package/dist/cjs/client/components/{presentation → account}/ChangeCredential/ChangeCredential.cjs
RENAMED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
5
5
|
const require_getSessionId = require('../../../../server/actions/getSessionId.cjs');
|
|
6
6
|
const require_useThunderID = require('../../../contexts/ThunderID/useThunderID.cjs');
|
|
7
|
-
const require_updateUserCredentialsAction = require('../../../../server/actions/updateUserCredentialsAction.cjs');
|
|
7
|
+
const require_updateUserCredentialsAction = require('../../../../server/actions/account/updateUserCredentialsAction.cjs');
|
|
8
8
|
let __thunderid_node = require("@thunderid/node");
|
|
9
9
|
__thunderid_node = require_rolldown_runtime.__toESM(__thunderid_node);
|
|
10
10
|
let __thunderid_react = require("@thunderid/react");
|
|
@@ -14,7 +14,7 @@ react = require_rolldown_runtime.__toESM(react);
|
|
|
14
14
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
15
15
|
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
16
16
|
|
|
17
|
-
//#region src/client/components/
|
|
17
|
+
//#region src/client/components/account/ChangeCredential/ChangeCredential.tsx
|
|
18
18
|
/**
|
|
19
19
|
* Title-cases a credential attribute name for use as a display-name fallback when the schema
|
|
20
20
|
* declares no `displayName` for it, e.g. `pin` -> `Pin`.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChangeCredential.cjs","names":["ChangeCredential: FC<ChangeCredentialProps>","CredentialConstants","useThunderID","resolvedDisplayName: string","resolvedPolicy: PasswordPolicy","result: UpdateUserCredentialsActionResult","updateUserCredentialsAction","getSessionId","text: string","BaseChangeCredential"],"sources":["../../../../../../src/client/components/account/ChangeCredential/ChangeCredential.tsx"],"sourcesContent":["// Copyright 2026 The ThunderID Authors\n// SPDX-License-Identifier: Apache-2.0\n\n'use client';\n\nimport {CredentialConstants, PasswordPolicy, resolveChangeCredentialPolicy, supportsCredential} from '@thunderid/node';\nimport {\n BaseChangeCredential,\n BaseChangeCredentialProps,\n ChangePasswordValues,\n useTranslation,\n useUser,\n} from '@thunderid/react';\nimport {FC, ReactElement, useMemo, useState} from 'react';\nimport updateUserCredentialsAction, {\n UpdateUserCredentialsActionResult,\n} from '../../../../server/actions/account/updateUserCredentialsAction';\nimport getSessionId from '../../../../server/actions/getSessionId';\nimport useThunderID from '../../../contexts/ThunderID/useThunderID';\n\n/**\n * Title-cases a credential attribute name for use as a display-name fallback when the schema\n * declares no `displayName` for it, e.g. `pin` -> `Pin`.\n */\nconst defaultDisplayName = (attribute: string): string => attribute.charAt(0).toUpperCase() + attribute.slice(1);\n\n/**\n * Props for the ChangeCredential component.\n * Mirrors `@thunderid/react`'s `ChangeCredentialProps` exactly, so a consumer moving between\n * the React and Next.js SDKs doesn't need to change how they call it.\n */\nexport type ChangeCredentialProps = Omit<\n BaseChangeCredentialProps,\n 'credentialDisplayName' | 'error' | 'fieldErrors' | 'loading' | 'onSubmit' | 'success'\n> & {\n /**\n * The credential attribute this instance manages, any attribute the user's entity type\n * schema declares `credential: true` (for example `password` or `pin`). Defaults to\n * `password`. Render the component once per credential to let a user manage more than one,\n * for example `<ChangeCredential />` for the password and\n * `<ChangeCredential attribute=\"pin\" />` for a PIN.\n */\n attribute?: string;\n /**\n * Called after the credential has been changed successfully.\n */\n onSuccess?: () => void;\n};\n\n/**\n * ChangeCredential lets the signed-in user set a new value for one of their own credentials.\n *\n * This is the Next.js-specific implementation: it uses `BaseChangeCredential` from\n * `@thunderid/react` for rendering, but routes the write through\n * `updateUserCredentialsAction` (a server action) instead of calling the ThunderID server\n * directly from the browser, matching how `UserProfile` reaches `updateUserProfileAction`.\n *\n * Defaults to managing the `password` credential. To manage a different one (for example a\n * PIN declared on the user type schema), set `attribute`; render the component once per\n * credential to let a user manage several.\n *\n * @example\n * ```tsx\n * // Basic usage, manages the password\n * <ChangeCredential onSuccess={() => toast('Password updated')} />\n *\n * // Managing a different credential declared on the schema\n * <ChangeCredential attribute=\"pin\" />\n * ```\n */\nconst ChangeCredential: FC<ChangeCredentialProps> = ({\n attribute = CredentialConstants.PASSWORD,\n onSuccess,\n policy,\n preferences,\n ...rest\n}: ChangeCredentialProps): ReactElement => {\n const {preferences: contextPreferences} = useThunderID();\n const {userSchema} = useUser();\n const resolvedDisplayName: string = userSchema?.[attribute]?.displayName ?? defaultDisplayName(attribute);\n\n const resolvedPreferences = useMemo(\n () => ({\n ...contextPreferences,\n ...preferences,\n user: {...contextPreferences?.user, ...preferences?.user},\n }),\n [contextPreferences, preferences],\n );\n const {t} = useTranslation(resolvedPreferences?.i18n);\n\n const [error, setError] = useState<string | null>(null);\n const [fieldErrors, setFieldErrors] = useState<Record<string, string>>({});\n const [loading, setLoading] = useState<boolean>(false);\n const [success, setSuccess] = useState<boolean>(false);\n\n const resolvedPolicy: PasswordPolicy = useMemo(\n () => resolveChangeCredentialPolicy(userSchema, attribute, policy),\n [userSchema, attribute, policy],\n );\n\n const handleSubmit = async ({newPassword}: ChangePasswordValues): Promise<void> => {\n setError(null);\n setFieldErrors({});\n setSuccess(false);\n setLoading(true);\n\n const result: UpdateUserCredentialsActionResult = await updateUserCredentialsAction(\n {[attribute]: newPassword},\n await getSessionId(),\n );\n\n if (result.success) {\n setSuccess(true);\n onSuccess?.();\n } else {\n const text: string =\n result.message ??\n t(result.messageKey, {credential: resolvedDisplayName, credentialLower: resolvedDisplayName.toLowerCase()});\n\n if (result.field) {\n setFieldErrors({[result.field]: text});\n } else {\n setError(text);\n }\n }\n\n setLoading(false);\n };\n\n return (\n <BaseChangeCredential\n {...rest}\n credentialDisplayName={resolvedDisplayName}\n error={error}\n fieldErrors={fieldErrors}\n loading={loading}\n policy={resolvedPolicy}\n preferences={resolvedPreferences}\n success={success}\n unavailable={!supportsCredential(userSchema, attribute)}\n onSubmit={(values: ChangePasswordValues): void => {\n void handleSubmit(values);\n }}\n />\n );\n};\n\nexport default ChangeCredential;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAwBA,MAAM,sBAAsB,cAA8B,UAAU,OAAO,EAAE,CAAC,aAAa,GAAG,UAAU,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;AA8ChH,MAAMA,oBAA+C,EACnD,YAAYC,qCAAoB,UAChC,WACA,QACA,YACA,GAAG,WACsC;CACzC,MAAM,EAAC,aAAa,uBAAsBC,8BAAc;CACxD,MAAM,EAAC,+CAAuB;CAC9B,MAAMC,sBAA8B,aAAa,YAAY,eAAe,mBAAmB,UAAU;CAEzG,MAAM,gDACG;EACL,GAAG;EACH,GAAG;EACH,MAAM;GAAC,GAAG,oBAAoB;GAAM,GAAG,aAAa;GAAK;EAC1D,GACD,CAAC,oBAAoB,YAAY,CAClC;CACD,MAAM,EAAC,4CAAoB,qBAAqB,KAAK;CAErD,MAAM,CAAC,OAAO,gCAAoC,KAAK;CACvD,MAAM,CAAC,aAAa,sCAAmD,EAAE,CAAC;CAC1E,MAAM,CAAC,SAAS,kCAAgC,MAAM;CACtD,MAAM,CAAC,SAAS,kCAAgC,MAAM;CAEtD,MAAMC,8FACgC,YAAY,WAAW,OAAO,EAClE;EAAC;EAAY;EAAW;EAAO,CAChC;CAED,MAAM,eAAe,OAAO,EAAC,kBAAsD;AACjF,WAAS,KAAK;AACd,iBAAe,EAAE,CAAC;AAClB,aAAW,MAAM;AACjB,aAAW,KAAK;EAEhB,MAAMC,SAA4C,MAAMC,4CACtD,GAAE,YAAY,aAAY,EAC1B,MAAMC,8BAAc,CACrB;AAED,MAAI,OAAO,SAAS;AAClB,cAAW,KAAK;AAChB,gBAAa;SACR;GACL,MAAMC,OACJ,OAAO,WACP,EAAE,OAAO,YAAY;IAAC,YAAY;IAAqB,iBAAiB,oBAAoB,aAAa;IAAC,CAAC;AAE7G,OAAI,OAAO,MACT,gBAAe,GAAE,OAAO,QAAQ,MAAK,CAAC;OAEtC,UAAS,KAAK;;AAIlB,aAAW,MAAM;;AAGnB,QACE,2CAACC;EACC,GAAI;EACJ,uBAAuB;EAChB;EACM;EACJ;EACT,QAAQ;EACR,aAAa;EACJ;EACT,aAAa,0CAAoB,YAAY,UAAU;EACvD,WAAW,WAAuC;AAChD,GAAK,aAAa,OAAO;;GAE3B;;AAIN,+BAAe"}
|
|
@@ -8,7 +8,7 @@ __thunderid_react = require_rolldown_runtime.__toESM(__thunderid_react);
|
|
|
8
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
9
|
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
10
10
|
|
|
11
|
-
//#region src/client/components/
|
|
11
|
+
//#region src/client/components/account/User/User.tsx
|
|
12
12
|
/**
|
|
13
13
|
* A component that uses render props to expose the authenticated user object.
|
|
14
14
|
* This component automatically retrieves the user from ThunderID context.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"User.cjs","names":["User: FC<UserProps>","useThunderID","BaseUser"],"sources":["../../../../../../src/client/components/account/User/User.tsx"],"sourcesContent":["// Copyright 2025 The ThunderID Authors\n// SPDX-License-Identifier: Apache-2.0\n\n'use client';\n\nimport {BaseUser, BaseUserProps} from '@thunderid/react';\nimport {FC, ReactElement, ReactNode} from 'react';\nimport useThunderID from '../../../contexts/ThunderID/useThunderID';\n\n/**\n * Props for the User component.\n * Extends BaseUserProps but makes the user prop optional since it will be obtained from useThunderID\n */\nexport interface UserProps extends Omit<BaseUserProps, 'user'> {\n /**\n * Render prop that takes the user object and returns a ReactNode.\n * @param user - The authenticated user object from ThunderID.\n * @returns A ReactNode to render.\n */\n children: (user: any | null) => ReactNode;\n\n /**\n * Optional element to render when no user is signed in.\n */\n fallback?: ReactNode;\n}\n\n/**\n * A component that uses render props to expose the authenticated user object.\n * This component automatically retrieves the user from ThunderID context.\n *\n * @remarks This component is only supported in browser based React applications (CSR).\n *\n * @example\n * ```tsx\n * import { User } from '@thunderid/auth-react';\n *\n * const App = () => {\n * return (\n * <User fallback={<p>Please sign in</p>}>\n * {(user) => (\n * <div>\n * <h1>Welcome, {user.displayName}!</h1>\n * <p>Email: {user.email}</p>\n * </div>\n * )}\n * </User>\n * );\n * }\n * ```\n */\nconst User: FC<UserProps> = ({children, fallback = null}: UserProps): ReactElement => {\n const {user} = useThunderID();\n\n return (\n <BaseUser user={user} fallback={fallback}>\n {children}\n </BaseUser>\n );\n};\n\nUser.displayName = 'User';\n\nexport default User;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDA,MAAMA,QAAuB,EAAC,UAAU,WAAW,WAAmC;CACpF,MAAM,EAAC,SAAQC,8BAAc;AAE7B,QACE,2CAACC;EAAe;EAAgB;EAC7B;GACQ;;AAIf,KAAK,cAAc;AAEnB,mBAAe"}
|
|
@@ -8,7 +8,7 @@ __thunderid_react = require_rolldown_runtime.__toESM(__thunderid_react);
|
|
|
8
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
9
|
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
10
10
|
|
|
11
|
-
//#region src/client/components/
|
|
11
|
+
//#region src/client/components/account/UserAvatar/UserAvatar.tsx
|
|
12
12
|
/**
|
|
13
13
|
* UserAvatar component renders an avatar for the currently signed-in user.
|
|
14
14
|
* This component is the Next.js-specific implementation that uses BaseUserAvatar
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserAvatar.cjs","names":["UserAvatar: FC<UserAvatarProps>","useThunderID","BaseUserAvatar"],"sources":["../../../../../../src/client/components/account/UserAvatar/UserAvatar.tsx"],"sourcesContent":["// Copyright 2026 The ThunderID Authors\n// SPDX-License-Identifier: Apache-2.0\n\n'use client';\n\nimport {BaseUserAvatar, BaseUserAvatarProps} from '@thunderid/react';\nimport {FC, ReactElement} from 'react';\nimport useThunderID from '../../../contexts/ThunderID/useThunderID';\n\nexport type UserAvatarProps = Omit<BaseUserAvatarProps, 'user'>;\n\n/**\n * UserAvatar component renders an avatar for the currently signed-in user.\n * This component is the Next.js-specific implementation that uses BaseUserAvatar\n * and automatically retrieves the user data from ThunderID context.\n *\n * @example\n * ```tsx\n * <UserAvatar size={48} />\n * ```\n */\nconst UserAvatar: FC<UserAvatarProps> = (props: UserAvatarProps): ReactElement => {\n const {user} = useThunderID();\n\n return <BaseUserAvatar user={user} {...props} />;\n};\n\nexport default UserAvatar;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA,MAAMA,cAAmC,UAAyC;CAChF,MAAM,EAAC,SAAQC,8BAAc;AAE7B,QAAO,2CAACC;EAAqB;EAAM,GAAI;GAAS;;AAGlD,yBAAe"}
|
|
@@ -11,7 +11,7 @@ react = require_rolldown_runtime.__toESM(react);
|
|
|
11
11
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
12
12
|
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
13
13
|
|
|
14
|
-
//#region src/client/components/
|
|
14
|
+
//#region src/client/components/account/UserDropdown/UserDropdown.tsx
|
|
15
15
|
/**
|
|
16
16
|
* UserDropdown component displays a user avatar with a dropdown menu.
|
|
17
17
|
* When clicked, it shows a popover with customizable menu items.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserDropdown.cjs","names":["UserDropdown: FC<UserDropdownProps>","useThunderID","renderProps: UserDropdownRenderProps","UserProfile","BaseUserDropdown"],"sources":["../../../../../../src/client/components/account/UserDropdown/UserDropdown.tsx"],"sourcesContent":["// Copyright 2025 The ThunderID Authors\n// SPDX-License-Identifier: Apache-2.0\n\n'use client';\n\nimport {BaseUserDropdown, BaseUserDropdownProps} from '@thunderid/react';\nimport {FC, ReactElement, ReactNode, useState} from 'react';\nimport useThunderID from '../../../contexts/ThunderID/useThunderID';\nimport UserProfile from '../UserProfile/UserProfile.js';\n\n/**\n * Render props data passed to the children function\n */\nexport interface UserDropdownRenderProps {\n /** Function to close the profile dialog */\n closeProfile: () => void;\n /** Whether user data is currently loading */\n isLoading: boolean;\n /** Whether the profile dialog is currently open */\n isProfileOpen: boolean;\n /** Function to open the user profile dialog */\n openProfile: () => void;\n /** Function to sign out the user */\n signOut: () => void;\n /** The authenticated user object */\n user: any;\n}\n\n/**\n * Props for the UserDropdown component.\n * Extends BaseUserDropdownProps but excludes user, onManageProfile, and onSignOut since they're handled internally\n */\nexport type UserDropdownProps = Omit<BaseUserDropdownProps, 'user' | 'onManageProfile'> & {\n /**\n * Render prop function that receives user state and actions.\n * When provided, this completely replaces the default dropdown rendering.\n */\n children?: (props: UserDropdownRenderProps) => ReactNode;\n /**\n * Called instead of opening the built-in \"Manage Profile\" popup when the \"Manage Profile\"\n * menu item (see `manageProfileLabel`) is clicked. Use this when the app has its own\n * profile/account page it wants to navigate to instead, for example with the router's\n * `push()`.\n *\n * @example\n * ```tsx\n * <UserDropdown manageProfileLabel=\"Manage Account\" onManageProfile={() => router.push('/account')} />\n * ```\n */\n onManageProfile?: () => void;\n /**\n * Custom render function for the dropdown content.\n * When provided, this replaces just the dropdown content while keeping the trigger.\n */\n renderDropdown?: (props: UserDropdownRenderProps) => ReactNode;\n /**\n * Custom render function for the trigger button.\n * When provided, this replaces just the trigger button while keeping the dropdown.\n */\n renderTrigger?: (props: UserDropdownRenderProps) => ReactNode;\n};\n\n/**\n * UserDropdown component displays a user avatar with a dropdown menu.\n * When clicked, it shows a popover with customizable menu items.\n * This component is the React-specific implementation that uses the BaseUserDropdown\n * and automatically retrieves the user data from ThunderID context.\n *\n * Supports render props for complete customization of the dropdown appearance and behavior.\n *\n * @example\n * ```tsx\n * // Basic usage - will use user from ThunderID context\n * <UserDropdown menuItems={[\n * { label: 'Profile', onClick: () => {} },\n * { label: 'Settings', href: '/settings' },\n * { label: 'Sign Out', onClick: () => {} }\n * ]} />\n *\n * // With custom configuration\n * <UserDropdown\n * showTriggerLabel={true}\n * avatarSize={40}\n * fallback={<div>Please sign in</div>}\n * />\n *\n * // Using render props for complete customization\n * <UserDropdown>\n * {({ user, isLoading, openProfile, signOut }) => (\n * <div>\n * <button onClick={openProfile}>\n * {user?.name || 'Loading...'}\n * </button>\n * <button onClick={signOut}>Logout</button>\n * </div>\n * )}\n * </UserDropdown>\n *\n * // Using partial render props\n * <UserDropdown\n * renderTrigger={({ user, openProfile }) => (\n * <button onClick={openProfile} className=\"custom-trigger\">\n * Welcome, {user?.name}!\n * </button>\n * )}\n * />\n * ```\n */\nconst UserDropdown: FC<UserDropdownProps> = ({\n children,\n renderTrigger,\n renderDropdown,\n onManageProfile: onManageProfileOverride,\n onSignOut,\n ...rest\n}: UserDropdownProps): ReactElement => {\n const {user, isLoading, signOut} = useThunderID();\n const [isProfileOpen, setIsProfileOpen] = useState(false);\n\n const handleManageProfile = (): void => {\n if (onManageProfileOverride) {\n onManageProfileOverride();\n return;\n }\n setIsProfileOpen(true);\n };\n\n const handleSignOut = (): void => {\n signOut();\n if (onSignOut) {\n onSignOut();\n }\n };\n\n const closeProfile = (): void => {\n setIsProfileOpen(false);\n };\n\n // Prepare render props data\n const renderProps: UserDropdownRenderProps = {\n closeProfile,\n isLoading: isLoading!,\n isProfileOpen,\n openProfile: handleManageProfile,\n signOut: handleSignOut,\n user,\n };\n\n // If children render prop is provided, use it for complete customization\n if (children) {\n return (\n <>\n {children(renderProps)}\n {!onManageProfileOverride && <UserProfile mode=\"popup\" open={isProfileOpen} onOpenChange={setIsProfileOpen} />}\n </>\n );\n }\n\n // If partial render props are provided, customize specific parts\n if (renderTrigger || renderDropdown) {\n // This would require significant changes to BaseUserDropdown to support partial customization\n // For now, we'll provide a simple implementation that shows how it could work\n return (\n <>\n {renderTrigger ? (\n renderTrigger(renderProps)\n ) : (\n <BaseUserDropdown\n user={user}\n isLoading={isLoading}\n onManageProfile={handleManageProfile}\n onSignOut={handleSignOut}\n {...rest}\n />\n )}\n {/* Note: renderDropdown would need BaseUserDropdown modifications to implement properly */}\n {!onManageProfileOverride && <UserProfile mode=\"popup\" open={isProfileOpen} onOpenChange={setIsProfileOpen} />}\n </>\n );\n }\n\n // Default behavior - use BaseUserDropdown as before\n return (\n <>\n <BaseUserDropdown\n user={user}\n isLoading={isLoading}\n onManageProfile={handleManageProfile}\n onSignOut={handleSignOut}\n {...rest}\n />\n {!onManageProfileOverride && isProfileOpen && (\n <UserProfile mode=\"popup\" open={isProfileOpen} onOpenChange={setIsProfileOpen} />\n )}\n </>\n );\n};\n\nexport default UserDropdown;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4GA,MAAMA,gBAAuC,EAC3C,UACA,eACA,gBACA,iBAAiB,yBACjB,UACA,GAAG,WACkC;CACrC,MAAM,EAAC,MAAM,WAAW,YAAWC,8BAAc;CACjD,MAAM,CAAC,eAAe,wCAA6B,MAAM;CAEzD,MAAM,4BAAkC;AACtC,MAAI,yBAAyB;AAC3B,4BAAyB;AACzB;;AAEF,mBAAiB,KAAK;;CAGxB,MAAM,sBAA4B;AAChC,WAAS;AACT,MAAI,UACF,YAAW;;CAIf,MAAM,qBAA2B;AAC/B,mBAAiB,MAAM;;CAIzB,MAAMC,cAAuC;EAC3C;EACW;EACX;EACA,aAAa;EACb,SAAS;EACT;EACD;AAGD,KAAI,SACF,QACE,qFACG,SAAS,YAAY,EACrB,CAAC,2BAA2B,2CAACC;EAAY,MAAK;EAAQ,MAAM;EAAe,cAAc;GAAoB,IAC7G;AAKP,KAAI,iBAAiB,eAGnB,QACE,qFACG,gBACC,cAAc,YAAY,GAE1B,2CAACC;EACO;EACK;EACX,iBAAiB;EACjB,WAAW;EACX,GAAI;GACJ,EAGH,CAAC,2BAA2B,2CAACD;EAAY,MAAK;EAAQ,MAAM;EAAe,cAAc;GAAoB,IAC7G;AAKP,QACE,qFACE,2CAACC;EACO;EACK;EACX,iBAAiB;EACjB,WAAW;EACX,GAAI;GACJ,EACD,CAAC,2BAA2B,iBAC3B,2CAACD;EAAY,MAAK;EAAQ,MAAM;EAAe,cAAc;GAAoB,IAElF;;AAIP,2BAAe"}
|
|
@@ -13,7 +13,7 @@ react = require_rolldown_runtime.__toESM(react);
|
|
|
13
13
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
14
14
|
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
15
15
|
|
|
16
|
-
//#region src/client/components/
|
|
16
|
+
//#region src/client/components/account/UserProfile/UserProfile.tsx
|
|
17
17
|
/**
|
|
18
18
|
* UserProfile component displays the authenticated user's profile information in a
|
|
19
19
|
* structured and styled format. It shows user details such as display name, email,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserProfile.cjs","names":["UserProfile: FC<UserProfileProps>","useThunderID","isEditableProfile: boolean","result: {data: {user: User}; error: string; success: boolean}","getSessionId","BaseUserProfile"],"sources":["../../../../../../src/client/components/account/UserProfile/UserProfile.tsx"],"sourcesContent":["// Copyright 2025 The ThunderID Authors\n// SPDX-License-Identifier: Apache-2.0\n\n'use client';\n\nimport {deepMerge, User} from '@thunderid/node';\nimport {BaseUserProfile, BaseUserProfileProps, useUser, useTranslation} from '@thunderid/react';\nimport {FC, ReactElement, useState} from 'react';\nimport useThunderID from '../../../contexts/ThunderID/useThunderID';\nimport getSessionId from '../../../../server/actions/getSessionId';\n\n/**\n * Props for the UserProfile component.\n * Extends BaseUserProfileProps but makes the user prop optional since it will be obtained from useThunderID\n */\nexport type UserProfileProps = Omit<BaseUserProfileProps, 'user' | 'profile' | 'flattenedProfile'>;\n\n/**\n * UserProfile component displays the authenticated user's profile information in a\n * structured and styled format. It shows user details such as display name, email,\n * username, and other available profile information from ThunderID.\n *\n * This component is the React-specific implementation that uses the BaseUserProfile\n * and automatically retrieves the user data from ThunderID context if not provided.\n *\n * @example\n * ```tsx\n * // Basic usage - will use user from ThunderID context\n * <UserProfile />\n *\n * // With explicit user data\n * <UserProfile user={specificUser} />\n *\n * // With card layout and custom fallback\n * <UserProfile\n * cardLayout={true}\n * fallback={<div>Please sign in to view your profile</div>}\n * />\n * ```\n */\nconst UserProfile: FC<UserProfileProps> = ({preferences, editable = true, ...rest}: UserProfileProps): ReactElement => {\n const {preferences: contextPreferences} = useThunderID();\n const {profile, flattenedProfile, onUpdateProfile, updateProfile, userSchema} = useUser();\n const resolvedPreferences = {\n ...contextPreferences,\n ...preferences,\n user: {\n ...contextPreferences?.user,\n ...preferences?.user,\n },\n };\n const {t} = useTranslation(resolvedPreferences?.i18n);\n const isEditableProfile: boolean = resolvedPreferences?.user?.fetchUserProfile === false ? false : editable;\n\n const [error, setError] = useState<string | null>(null);\n\n const handleProfileUpdate = async (payload: any): Promise<void> => {\n setError(null);\n\n const updatedAttributes = deepMerge((profile?.['attributes'] as Record<string, unknown>) ?? {}, payload);\n\n Object.keys(updatedAttributes).forEach((key) => {\n if (updatedAttributes[key] === undefined || updatedAttributes[key] === null) {\n delete updatedAttributes[key];\n }\n });\n\n const result: {data: {user: User}; error: string; success: boolean} = await updateProfile(\n {payload: updatedAttributes},\n await getSessionId(),\n );\n\n if (result.success) {\n onUpdateProfile(result.data.user);\n } else {\n setError(result.error || t('user.profile.update.generic.error'));\n }\n };\n\n return (\n <BaseUserProfile\n profile={profile!}\n flattenedProfile={flattenedProfile!}\n userSchema={userSchema}\n editable={isEditableProfile}\n onUpdate={isEditableProfile ? handleProfileUpdate : undefined}\n error={error}\n preferences={resolvedPreferences}\n {...rest}\n />\n );\n};\n\nexport default UserProfile;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCA,MAAMA,eAAqC,EAAC,aAAa,WAAW,KAAM,GAAG,WAA0C;CACrH,MAAM,EAAC,aAAa,uBAAsBC,8BAAc;CACxD,MAAM,EAAC,SAAS,kBAAkB,iBAAiB,eAAe,+CAAuB;CACzF,MAAM,sBAAsB;EAC1B,GAAG;EACH,GAAG;EACH,MAAM;GACJ,GAAG,oBAAoB;GACvB,GAAG,aAAa;GACjB;EACF;CACD,MAAM,EAAC,4CAAoB,qBAAqB,KAAK;CACrD,MAAMC,oBAA6B,qBAAqB,MAAM,qBAAqB,QAAQ,QAAQ;CAEnG,MAAM,CAAC,OAAO,gCAAoC,KAAK;CAEvD,MAAM,sBAAsB,OAAO,YAAgC;AACjE,WAAS,KAAK;EAEd,MAAM,oDAA+B,UAAU,iBAA6C,EAAE,EAAE,QAAQ;AAExG,SAAO,KAAK,kBAAkB,CAAC,SAAS,QAAQ;AAC9C,OAAI,kBAAkB,SAAS,UAAa,kBAAkB,SAAS,KACrE,QAAO,kBAAkB;IAE3B;EAEF,MAAMC,SAAgE,MAAM,cAC1E,EAAC,SAAS,mBAAkB,EAC5B,MAAMC,8BAAc,CACrB;AAED,MAAI,OAAO,QACT,iBAAgB,OAAO,KAAK,KAAK;MAEjC,UAAS,OAAO,SAAS,EAAE,oCAAoC,CAAC;;AAIpE,QACE,2CAACC;EACU;EACS;EACN;EACZ,UAAU;EACV,UAAU,oBAAoB,sBAAsB;EAC7C;EACP,aAAa;EACb,GAAI;GACJ;;AAIN,0BAAe"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
5
|
+
let __thunderid_react = require("@thunderid/react");
|
|
6
|
+
__thunderid_react = require_rolldown_runtime.__toESM(__thunderid_react);
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
9
|
+
|
|
10
|
+
//#region src/client/components/admin/AgentCreate/AgentCreate.tsx
|
|
11
|
+
/**
|
|
12
|
+
* Creates an agent.
|
|
13
|
+
*
|
|
14
|
+
* Management requests go through a server action with the signed-in user's server-held session, so
|
|
15
|
+
* the access token never reaches the browser. Whether a request succeeds is the server's decision.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* <AgentCreate onCreated={(agent) => router.push(`/admin/agents/${agent.id}`)} />
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
const AgentCreate = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__thunderid_react.AgentCreate, { ...props });
|
|
23
|
+
AgentCreate.displayName = "AgentCreate";
|
|
24
|
+
var AgentCreate_default = AgentCreate;
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.default = AgentCreate_default;
|
|
28
|
+
//# sourceMappingURL=AgentCreate.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentCreate.cjs","names":["AgentCreate: FC<AgentCreateProps>","ReactAgentCreate"],"sources":["../../../../../../src/client/components/admin/AgentCreate/AgentCreate.tsx"],"sourcesContent":["// Copyright 2026 The ThunderID Authors\n// SPDX-License-Identifier: Apache-2.0\n\n'use client';\n\nimport {AgentCreate as ReactAgentCreate, AgentCreateProps as ReactAgentCreateProps} from '@thunderid/react';\nimport {FC, ReactElement} from 'react';\n\nexport type AgentCreateProps = ReactAgentCreateProps;\n\n/**\n * Creates an agent.\n *\n * Management requests go through a server action with the signed-in user's server-held session, so\n * the access token never reaches the browser. Whether a request succeeds is the server's decision.\n *\n * @example\n * ```tsx\n * <AgentCreate onCreated={(agent) => router.push(`/admin/agents/${agent.id}`)} />\n * ```\n */\nconst AgentCreate: FC<AgentCreateProps> = (props: AgentCreateProps): ReactElement => <ReactAgentCreate {...props} />;\n\nAgentCreate.displayName = 'AgentCreate';\n\nexport default AgentCreate;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA,MAAMA,eAAqC,UAA0C,2CAACC,iCAAiB,GAAI,QAAS;AAEpH,YAAY,cAAc;AAE1B,0BAAe"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
5
|
+
let __thunderid_react = require("@thunderid/react");
|
|
6
|
+
__thunderid_react = require_rolldown_runtime.__toESM(__thunderid_react);
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
9
|
+
|
|
10
|
+
//#region src/client/components/admin/AgentDetails/AgentDetails.tsx
|
|
11
|
+
/**
|
|
12
|
+
* Shows an agent's details, groups and roles, and optionally deletes the agent.
|
|
13
|
+
*
|
|
14
|
+
* Management requests go through a server action with the signed-in user's server-held session, so
|
|
15
|
+
* the access token never reaches the browser. Whether a request succeeds is the server's decision.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* <AgentDetails agentId={id} deletable onDeleted={() => router.push('/admin/agents')} />
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
const AgentDetails = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__thunderid_react.AgentDetails, { ...props });
|
|
23
|
+
AgentDetails.displayName = "AgentDetails";
|
|
24
|
+
var AgentDetails_default = AgentDetails;
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.default = AgentDetails_default;
|
|
28
|
+
//# sourceMappingURL=AgentDetails.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentDetails.cjs","names":["AgentDetails: FC<AgentDetailsProps>","ReactAgentDetails"],"sources":["../../../../../../src/client/components/admin/AgentDetails/AgentDetails.tsx"],"sourcesContent":["// Copyright 2026 The ThunderID Authors\n// SPDX-License-Identifier: Apache-2.0\n\n'use client';\n\nimport {AgentDetails as ReactAgentDetails, AgentDetailsProps as ReactAgentDetailsProps} from '@thunderid/react';\nimport {FC, ReactElement} from 'react';\n\nexport type AgentDetailsProps = ReactAgentDetailsProps;\n\n/**\n * Shows an agent's details, groups and roles, and optionally deletes the agent.\n *\n * Management requests go through a server action with the signed-in user's server-held session, so\n * the access token never reaches the browser. Whether a request succeeds is the server's decision.\n *\n * @example\n * ```tsx\n * <AgentDetails agentId={id} deletable onDeleted={() => router.push('/admin/agents')} />\n * ```\n */\nconst AgentDetails: FC<AgentDetailsProps> = (props: AgentDetailsProps): ReactElement => (\n <ReactAgentDetails {...props} />\n);\n\nAgentDetails.displayName = 'AgentDetails';\n\nexport default AgentDetails;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA,MAAMA,gBAAuC,UAC3C,2CAACC,kCAAkB,GAAI,QAAS;AAGlC,aAAa,cAAc;AAE3B,2BAAe"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
5
|
+
let __thunderid_react = require("@thunderid/react");
|
|
6
|
+
__thunderid_react = require_rolldown_runtime.__toESM(__thunderid_react);
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
9
|
+
|
|
10
|
+
//#region src/client/components/admin/AgentList/AgentList.tsx
|
|
11
|
+
/**
|
|
12
|
+
* Lists agents, a page at a time.
|
|
13
|
+
*
|
|
14
|
+
* Management requests go through a server action with the signed-in user's server-held session, so
|
|
15
|
+
* the access token never reaches the browser. Whether a request succeeds is the server's decision.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* <AgentList onSelect={(agent) => router.push(`/admin/agents/${agent.id}`)} />
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
const AgentList = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__thunderid_react.AgentList, { ...props });
|
|
23
|
+
AgentList.displayName = "AgentList";
|
|
24
|
+
var AgentList_default = AgentList;
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.default = AgentList_default;
|
|
28
|
+
//# sourceMappingURL=AgentList.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentList.cjs","names":["AgentList: FC<AgentListProps>","ReactAgentList"],"sources":["../../../../../../src/client/components/admin/AgentList/AgentList.tsx"],"sourcesContent":["// Copyright 2026 The ThunderID Authors\n// SPDX-License-Identifier: Apache-2.0\n\n'use client';\n\nimport {AgentList as ReactAgentList, AgentListProps as ReactAgentListProps} from '@thunderid/react';\nimport {FC, ReactElement} from 'react';\n\nexport type AgentListProps = ReactAgentListProps;\n\n/**\n * Lists agents, a page at a time.\n *\n * Management requests go through a server action with the signed-in user's server-held session, so\n * the access token never reaches the browser. Whether a request succeeds is the server's decision.\n *\n * @example\n * ```tsx\n * <AgentList onSelect={(agent) => router.push(`/admin/agents/${agent.id}`)} />\n * ```\n */\nconst AgentList: FC<AgentListProps> = (props: AgentListProps): ReactElement => <ReactAgentList {...props} />;\n\nAgentList.displayName = 'AgentList';\n\nexport default AgentList;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA,MAAMA,aAAiC,UAAwC,2CAACC,+BAAe,GAAI,QAAS;AAE5G,UAAU,cAAc;AAExB,wBAAe"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
5
|
+
let __thunderid_react = require("@thunderid/react");
|
|
6
|
+
__thunderid_react = require_rolldown_runtime.__toESM(__thunderid_react);
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
9
|
+
|
|
10
|
+
//#region src/client/components/admin/GroupCreate/GroupCreate.tsx
|
|
11
|
+
/**
|
|
12
|
+
* Creates a group.
|
|
13
|
+
*
|
|
14
|
+
* Management requests go through a server action with the signed-in user's server-held session, so
|
|
15
|
+
* the access token never reaches the browser. Whether a request succeeds is the server's decision.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* <GroupCreate onCreated={(group) => router.push(`/admin/groups/${group.id}`)} />
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
const GroupCreate = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__thunderid_react.GroupCreate, { ...props });
|
|
23
|
+
GroupCreate.displayName = "GroupCreate";
|
|
24
|
+
var GroupCreate_default = GroupCreate;
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.default = GroupCreate_default;
|
|
28
|
+
//# sourceMappingURL=GroupCreate.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupCreate.cjs","names":["GroupCreate: FC<GroupCreateProps>","ReactGroupCreate"],"sources":["../../../../../../src/client/components/admin/GroupCreate/GroupCreate.tsx"],"sourcesContent":["// Copyright 2026 The ThunderID Authors\n// SPDX-License-Identifier: Apache-2.0\n\n'use client';\n\nimport {GroupCreate as ReactGroupCreate, GroupCreateProps as ReactGroupCreateProps} from '@thunderid/react';\nimport {FC, ReactElement} from 'react';\n\nexport type GroupCreateProps = ReactGroupCreateProps;\n\n/**\n * Creates a group.\n *\n * Management requests go through a server action with the signed-in user's server-held session, so\n * the access token never reaches the browser. Whether a request succeeds is the server's decision.\n *\n * @example\n * ```tsx\n * <GroupCreate onCreated={(group) => router.push(`/admin/groups/${group.id}`)} />\n * ```\n */\nconst GroupCreate: FC<GroupCreateProps> = (props: GroupCreateProps): ReactElement => <ReactGroupCreate {...props} />;\n\nGroupCreate.displayName = 'GroupCreate';\n\nexport default GroupCreate;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA,MAAMA,eAAqC,UAA0C,2CAACC,iCAAiB,GAAI,QAAS;AAEpH,YAAY,cAAc;AAE1B,0BAAe"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
5
|
+
let __thunderid_react = require("@thunderid/react");
|
|
6
|
+
__thunderid_react = require_rolldown_runtime.__toESM(__thunderid_react);
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
9
|
+
|
|
10
|
+
//#region src/client/components/admin/GroupList/GroupList.tsx
|
|
11
|
+
/**
|
|
12
|
+
* Lists groups, a page at a time.
|
|
13
|
+
*
|
|
14
|
+
* Management requests go through a server action with the signed-in user's server-held session, so
|
|
15
|
+
* the access token never reaches the browser. Whether a request succeeds is the server's decision.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* <GroupList onSelect={(group) => router.push(`/admin/groups/${group.id}`)} />
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
const GroupList = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__thunderid_react.GroupList, { ...props });
|
|
23
|
+
GroupList.displayName = "GroupList";
|
|
24
|
+
var GroupList_default = GroupList;
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.default = GroupList_default;
|
|
28
|
+
//# sourceMappingURL=GroupList.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupList.cjs","names":["GroupList: FC<GroupListProps>","ReactGroupList"],"sources":["../../../../../../src/client/components/admin/GroupList/GroupList.tsx"],"sourcesContent":["// Copyright 2026 The ThunderID Authors\n// SPDX-License-Identifier: Apache-2.0\n\n'use client';\n\nimport {GroupList as ReactGroupList, GroupListProps as ReactGroupListProps} from '@thunderid/react';\nimport {FC, ReactElement} from 'react';\n\nexport type GroupListProps = ReactGroupListProps;\n\n/**\n * Lists groups, a page at a time.\n *\n * Management requests go through a server action with the signed-in user's server-held session, so\n * the access token never reaches the browser. Whether a request succeeds is the server's decision.\n *\n * @example\n * ```tsx\n * <GroupList onSelect={(group) => router.push(`/admin/groups/${group.id}`)} />\n * ```\n */\nconst GroupList: FC<GroupListProps> = (props: GroupListProps): ReactElement => <ReactGroupList {...props} />;\n\nGroupList.displayName = 'GroupList';\n\nexport default GroupList;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA,MAAMA,aAAiC,UAAwC,2CAACC,+BAAe,GAAI,QAAS;AAE5G,UAAU,cAAc;AAExB,wBAAe"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
5
|
+
let __thunderid_react = require("@thunderid/react");
|
|
6
|
+
__thunderid_react = require_rolldown_runtime.__toESM(__thunderid_react);
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
9
|
+
|
|
10
|
+
//#region src/client/components/admin/GroupMembers/GroupMembers.tsx
|
|
11
|
+
/**
|
|
12
|
+
* Lists a group's members and adds or removes them.
|
|
13
|
+
*
|
|
14
|
+
* Management requests go through a server action with the signed-in user's server-held session, so
|
|
15
|
+
* the access token never reaches the browser. Whether a request succeeds is the server's decision.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* <GroupMembers groupId={id} />
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
const GroupMembers = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__thunderid_react.GroupMembers, { ...props });
|
|
23
|
+
GroupMembers.displayName = "GroupMembers";
|
|
24
|
+
var GroupMembers_default = GroupMembers;
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.default = GroupMembers_default;
|
|
28
|
+
//# sourceMappingURL=GroupMembers.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupMembers.cjs","names":["GroupMembers: FC<GroupMembersProps>","ReactGroupMembers"],"sources":["../../../../../../src/client/components/admin/GroupMembers/GroupMembers.tsx"],"sourcesContent":["// Copyright 2026 The ThunderID Authors\n// SPDX-License-Identifier: Apache-2.0\n\n'use client';\n\nimport {GroupMembers as ReactGroupMembers, GroupMembersProps as ReactGroupMembersProps} from '@thunderid/react';\nimport {FC, ReactElement} from 'react';\n\nexport type GroupMembersProps = ReactGroupMembersProps;\n\n/**\n * Lists a group's members and adds or removes them.\n *\n * Management requests go through a server action with the signed-in user's server-held session, so\n * the access token never reaches the browser. Whether a request succeeds is the server's decision.\n *\n * @example\n * ```tsx\n * <GroupMembers groupId={id} />\n * ```\n */\nconst GroupMembers: FC<GroupMembersProps> = (props: GroupMembersProps): ReactElement => (\n <ReactGroupMembers {...props} />\n);\n\nGroupMembers.displayName = 'GroupMembers';\n\nexport default GroupMembers;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA,MAAMA,gBAAuC,UAC3C,2CAACC,kCAAkB,GAAI,QAAS;AAGlC,aAAa,cAAc;AAE3B,2BAAe"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
5
|
+
let __thunderid_react = require("@thunderid/react");
|
|
6
|
+
__thunderid_react = require_rolldown_runtime.__toESM(__thunderid_react);
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
9
|
+
|
|
10
|
+
//#region src/client/components/admin/RoleAssignments/RoleAssignments.tsx
|
|
11
|
+
/**
|
|
12
|
+
* Lists a role's assignments and assigns or unassigns users, groups and agents.
|
|
13
|
+
*
|
|
14
|
+
* Management requests go through a server action with the signed-in user's server-held session, so
|
|
15
|
+
* the access token never reaches the browser. Whether a request succeeds is the server's decision.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* <RoleAssignments roleId={id} />
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
const RoleAssignments = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__thunderid_react.RoleAssignments, { ...props });
|
|
23
|
+
RoleAssignments.displayName = "RoleAssignments";
|
|
24
|
+
var RoleAssignments_default = RoleAssignments;
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.default = RoleAssignments_default;
|
|
28
|
+
//# sourceMappingURL=RoleAssignments.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RoleAssignments.cjs","names":["RoleAssignments: FC<RoleAssignmentsProps>","ReactRoleAssignments"],"sources":["../../../../../../src/client/components/admin/RoleAssignments/RoleAssignments.tsx"],"sourcesContent":["// Copyright 2026 The ThunderID Authors\n// SPDX-License-Identifier: Apache-2.0\n\n'use client';\n\nimport {\n RoleAssignments as ReactRoleAssignments,\n RoleAssignmentsProps as ReactRoleAssignmentsProps,\n} from '@thunderid/react';\nimport {FC, ReactElement} from 'react';\n\nexport type RoleAssignmentsProps = ReactRoleAssignmentsProps;\n\n/**\n * Lists a role's assignments and assigns or unassigns users, groups and agents.\n *\n * Management requests go through a server action with the signed-in user's server-held session, so\n * the access token never reaches the browser. Whether a request succeeds is the server's decision.\n *\n * @example\n * ```tsx\n * <RoleAssignments roleId={id} />\n * ```\n */\nconst RoleAssignments: FC<RoleAssignmentsProps> = (props: RoleAssignmentsProps): ReactElement => (\n <ReactRoleAssignments {...props} />\n);\n\nRoleAssignments.displayName = 'RoleAssignments';\n\nexport default RoleAssignments;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAwBA,MAAMA,mBAA6C,UACjD,2CAACC,qCAAqB,GAAI,QAAS;AAGrC,gBAAgB,cAAc;AAE9B,8BAAe"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
5
|
+
let __thunderid_react = require("@thunderid/react");
|
|
6
|
+
__thunderid_react = require_rolldown_runtime.__toESM(__thunderid_react);
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
9
|
+
|
|
10
|
+
//#region src/client/components/admin/RoleCreate/RoleCreate.tsx
|
|
11
|
+
/**
|
|
12
|
+
* Creates a role.
|
|
13
|
+
*
|
|
14
|
+
* Management requests go through a server action with the signed-in user's server-held session, so
|
|
15
|
+
* the access token never reaches the browser. Whether a request succeeds is the server's decision.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* <RoleCreate onCreated={(role) => router.push(`/admin/roles/${role.id}`)} />
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
const RoleCreate = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__thunderid_react.RoleCreate, { ...props });
|
|
23
|
+
RoleCreate.displayName = "RoleCreate";
|
|
24
|
+
var RoleCreate_default = RoleCreate;
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.default = RoleCreate_default;
|
|
28
|
+
//# sourceMappingURL=RoleCreate.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RoleCreate.cjs","names":["RoleCreate: FC<RoleCreateProps>","ReactRoleCreate"],"sources":["../../../../../../src/client/components/admin/RoleCreate/RoleCreate.tsx"],"sourcesContent":["// Copyright 2026 The ThunderID Authors\n// SPDX-License-Identifier: Apache-2.0\n\n'use client';\n\nimport {RoleCreate as ReactRoleCreate, RoleCreateProps as ReactRoleCreateProps} from '@thunderid/react';\nimport {FC, ReactElement} from 'react';\n\nexport type RoleCreateProps = ReactRoleCreateProps;\n\n/**\n * Creates a role.\n *\n * Management requests go through a server action with the signed-in user's server-held session, so\n * the access token never reaches the browser. Whether a request succeeds is the server's decision.\n *\n * @example\n * ```tsx\n * <RoleCreate onCreated={(role) => router.push(`/admin/roles/${role.id}`)} />\n * ```\n */\nconst RoleCreate: FC<RoleCreateProps> = (props: RoleCreateProps): ReactElement => <ReactRoleCreate {...props} />;\n\nRoleCreate.displayName = 'RoleCreate';\n\nexport default RoleCreate;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA,MAAMA,cAAmC,UAAyC,2CAACC,gCAAgB,GAAI,QAAS;AAEhH,WAAW,cAAc;AAEzB,yBAAe"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
5
|
+
let __thunderid_react = require("@thunderid/react");
|
|
6
|
+
__thunderid_react = require_rolldown_runtime.__toESM(__thunderid_react);
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
9
|
+
|
|
10
|
+
//#region src/client/components/admin/RoleList/RoleList.tsx
|
|
11
|
+
/**
|
|
12
|
+
* Lists roles, a page at a time.
|
|
13
|
+
*
|
|
14
|
+
* Management requests go through a server action with the signed-in user's server-held session, so
|
|
15
|
+
* the access token never reaches the browser. Whether a request succeeds is the server's decision.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* <RoleList onSelect={(role) => router.push(`/admin/roles/${role.id}`)} />
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
const RoleList = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__thunderid_react.RoleList, { ...props });
|
|
23
|
+
RoleList.displayName = "RoleList";
|
|
24
|
+
var RoleList_default = RoleList;
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.default = RoleList_default;
|
|
28
|
+
//# sourceMappingURL=RoleList.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RoleList.cjs","names":["RoleList: FC<RoleListProps>","ReactRoleList"],"sources":["../../../../../../src/client/components/admin/RoleList/RoleList.tsx"],"sourcesContent":["// Copyright 2026 The ThunderID Authors\n// SPDX-License-Identifier: Apache-2.0\n\n'use client';\n\nimport {RoleList as ReactRoleList, RoleListProps as ReactRoleListProps} from '@thunderid/react';\nimport {FC, ReactElement} from 'react';\n\nexport type RoleListProps = ReactRoleListProps;\n\n/**\n * Lists roles, a page at a time.\n *\n * Management requests go through a server action with the signed-in user's server-held session, so\n * the access token never reaches the browser. Whether a request succeeds is the server's decision.\n *\n * @example\n * ```tsx\n * <RoleList onSelect={(role) => router.push(`/admin/roles/${role.id}`)} />\n * ```\n */\nconst RoleList: FC<RoleListProps> = (props: RoleListProps): ReactElement => <ReactRoleList {...props} />;\n\nRoleList.displayName = 'RoleList';\n\nexport default RoleList;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA,MAAMA,YAA+B,UAAuC,2CAACC,8BAAc,GAAI,QAAS;AAExG,SAAS,cAAc;AAEvB,uBAAe"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
5
|
+
let __thunderid_react = require("@thunderid/react");
|
|
6
|
+
__thunderid_react = require_rolldown_runtime.__toESM(__thunderid_react);
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
9
|
+
|
|
10
|
+
//#region src/client/components/admin/RolePermissions/RolePermissions.tsx
|
|
11
|
+
/**
|
|
12
|
+
* Shows the permissions a role grants.
|
|
13
|
+
*
|
|
14
|
+
* Management requests go through a server action with the signed-in user's server-held session, so
|
|
15
|
+
* the access token never reaches the browser. Whether a request succeeds is the server's decision.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* <RolePermissions roleId={id} />
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
const RolePermissions = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__thunderid_react.RolePermissions, { ...props });
|
|
23
|
+
RolePermissions.displayName = "RolePermissions";
|
|
24
|
+
var RolePermissions_default = RolePermissions;
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.default = RolePermissions_default;
|
|
28
|
+
//# sourceMappingURL=RolePermissions.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RolePermissions.cjs","names":["RolePermissions: FC<RolePermissionsProps>","ReactRolePermissions"],"sources":["../../../../../../src/client/components/admin/RolePermissions/RolePermissions.tsx"],"sourcesContent":["// Copyright 2026 The ThunderID Authors\n// SPDX-License-Identifier: Apache-2.0\n\n'use client';\n\nimport {\n RolePermissions as ReactRolePermissions,\n RolePermissionsProps as ReactRolePermissionsProps,\n} from '@thunderid/react';\nimport {FC, ReactElement} from 'react';\n\nexport type RolePermissionsProps = ReactRolePermissionsProps;\n\n/**\n * Shows the permissions a role grants.\n *\n * Management requests go through a server action with the signed-in user's server-held session, so\n * the access token never reaches the browser. Whether a request succeeds is the server's decision.\n *\n * @example\n * ```tsx\n * <RolePermissions roleId={id} />\n * ```\n */\nconst RolePermissions: FC<RolePermissionsProps> = (props: RolePermissionsProps): ReactElement => (\n <ReactRolePermissions {...props} />\n);\n\nRolePermissions.displayName = 'RolePermissions';\n\nexport default RolePermissions;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAwBA,MAAMA,mBAA6C,UACjD,2CAACC,qCAAqB,GAAI,QAAS;AAGrC,gBAAgB,cAAc;AAE9B,8BAAe"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
5
|
+
let __thunderid_react = require("@thunderid/react");
|
|
6
|
+
__thunderid_react = require_rolldown_runtime.__toESM(__thunderid_react);
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
9
|
+
|
|
10
|
+
//#region src/client/components/admin/UserCreate/UserCreate.tsx
|
|
11
|
+
/**
|
|
12
|
+
* Creates a user, or invites one with `mode="invite"`.
|
|
13
|
+
*
|
|
14
|
+
* Management requests go through a server action with the signed-in user's server-held session, so
|
|
15
|
+
* the access token never reaches the browser. Whether a request succeeds is the server's decision.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* <UserCreate onCreated={(user) => router.push(`/admin/users/${user.id}`)} />
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
const UserCreate = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__thunderid_react.UserCreate, { ...props });
|
|
23
|
+
UserCreate.displayName = "UserCreate";
|
|
24
|
+
var UserCreate_default = UserCreate;
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.default = UserCreate_default;
|
|
28
|
+
//# sourceMappingURL=UserCreate.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserCreate.cjs","names":["UserCreate: FC<UserCreateProps>","ReactUserCreate"],"sources":["../../../../../../src/client/components/admin/UserCreate/UserCreate.tsx"],"sourcesContent":["// Copyright 2026 The ThunderID Authors\n// SPDX-License-Identifier: Apache-2.0\n\n'use client';\n\nimport {UserCreate as ReactUserCreate, UserCreateProps as ReactUserCreateProps} from '@thunderid/react';\nimport {FC, ReactElement} from 'react';\n\nexport type UserCreateProps = ReactUserCreateProps;\n\n/**\n * Creates a user, or invites one with `mode=\"invite\"`.\n *\n * Management requests go through a server action with the signed-in user's server-held session, so\n * the access token never reaches the browser. Whether a request succeeds is the server's decision.\n *\n * @example\n * ```tsx\n * <UserCreate onCreated={(user) => router.push(`/admin/users/${user.id}`)} />\n * ```\n */\nconst UserCreate: FC<UserCreateProps> = (props: UserCreateProps): ReactElement => <ReactUserCreate {...props} />;\n\nUserCreate.displayName = 'UserCreate';\n\nexport default UserCreate;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA,MAAMA,cAAmC,UAAyC,2CAACC,gCAAgB,GAAI,QAAS;AAEhH,WAAW,cAAc;AAEzB,yBAAe"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
5
|
+
let __thunderid_react = require("@thunderid/react");
|
|
6
|
+
__thunderid_react = require_rolldown_runtime.__toESM(__thunderid_react);
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
9
|
+
|
|
10
|
+
//#region src/client/components/admin/UserDetails/UserDetails.tsx
|
|
11
|
+
/**
|
|
12
|
+
* Shows a user's attributes and groups, and optionally edits or deletes the user.
|
|
13
|
+
*
|
|
14
|
+
* Management requests go through a server action with the signed-in user's server-held session, so
|
|
15
|
+
* the access token never reaches the browser. Whether a request succeeds is the server's decision.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* <UserDetails userId={id} editable deletable onDeleted={() => router.push('/admin/users')} />
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
const UserDetails = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__thunderid_react.UserDetails, { ...props });
|
|
23
|
+
UserDetails.displayName = "UserDetails";
|
|
24
|
+
var UserDetails_default = UserDetails;
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.default = UserDetails_default;
|
|
28
|
+
//# sourceMappingURL=UserDetails.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserDetails.cjs","names":["UserDetails: FC<UserDetailsProps>","ReactUserDetails"],"sources":["../../../../../../src/client/components/admin/UserDetails/UserDetails.tsx"],"sourcesContent":["// Copyright 2026 The ThunderID Authors\n// SPDX-License-Identifier: Apache-2.0\n\n'use client';\n\nimport {UserDetails as ReactUserDetails, UserDetailsProps as ReactUserDetailsProps} from '@thunderid/react';\nimport {FC, ReactElement} from 'react';\n\nexport type UserDetailsProps = ReactUserDetailsProps;\n\n/**\n * Shows a user's attributes and groups, and optionally edits or deletes the user.\n *\n * Management requests go through a server action with the signed-in user's server-held session, so\n * the access token never reaches the browser. Whether a request succeeds is the server's decision.\n *\n * @example\n * ```tsx\n * <UserDetails userId={id} editable deletable onDeleted={() => router.push('/admin/users')} />\n * ```\n */\nconst UserDetails: FC<UserDetailsProps> = (props: UserDetailsProps): ReactElement => <ReactUserDetails {...props} />;\n\nUserDetails.displayName = 'UserDetails';\n\nexport default UserDetails;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA,MAAMA,eAAqC,UAA0C,2CAACC,iCAAiB,GAAI,QAAS;AAEpH,YAAY,cAAc;AAE1B,0BAAe"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
5
|
+
let __thunderid_react = require("@thunderid/react");
|
|
6
|
+
__thunderid_react = require_rolldown_runtime.__toESM(__thunderid_react);
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
9
|
+
|
|
10
|
+
//#region src/client/components/admin/UserList/UserList.tsx
|
|
11
|
+
/**
|
|
12
|
+
* Lists the users the signed-in user is allowed to see, a page at a time.
|
|
13
|
+
*
|
|
14
|
+
* Management requests go through a server action with the signed-in user's server-held session, so
|
|
15
|
+
* the access token never reaches the browser. Whether a request succeeds is the server's decision.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* <UserList onSelect={(user) => router.push(`/admin/users/${user.id}`)} />
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
const UserList = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__thunderid_react.UserList, { ...props });
|
|
23
|
+
UserList.displayName = "UserList";
|
|
24
|
+
var UserList_default = UserList;
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.default = UserList_default;
|
|
28
|
+
//# sourceMappingURL=UserList.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserList.cjs","names":["UserList: FC<UserListProps>","ReactUserList"],"sources":["../../../../../../src/client/components/admin/UserList/UserList.tsx"],"sourcesContent":["// Copyright 2026 The ThunderID Authors\n// SPDX-License-Identifier: Apache-2.0\n\n'use client';\n\nimport {UserList as ReactUserList, UserListProps as ReactUserListProps} from '@thunderid/react';\nimport {FC, ReactElement} from 'react';\n\nexport type UserListProps = ReactUserListProps;\n\n/**\n * Lists the users the signed-in user is allowed to see, a page at a time.\n *\n * Management requests go through a server action with the signed-in user's server-held session, so\n * the access token never reaches the browser. Whether a request succeeds is the server's decision.\n *\n * @example\n * ```tsx\n * <UserList onSelect={(user) => router.push(`/admin/users/${user.id}`)} />\n * ```\n */\nconst UserList: FC<UserListProps> = (props: UserListProps): ReactElement => <ReactUserList {...props} />;\n\nUserList.displayName = 'UserList';\n\nexport default UserList;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA,MAAMA,YAA+B,UAAuC,2CAACC,8BAAc,GAAI,QAAS;AAExG,SAAS,cAAc;AAEvB,uBAAe"}
|
|
@@ -12,7 +12,7 @@ react = require_rolldown_runtime.__toESM(react);
|
|
|
12
12
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
13
13
|
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
14
14
|
|
|
15
|
-
//#region src/client/components/
|
|
15
|
+
//#region src/client/components/auth/SignIn/SignIn.tsx
|
|
16
16
|
/**
|
|
17
17
|
* A SignIn component for Next.js that provides native authentication flow.
|
|
18
18
|
* This component delegates to the BaseSignIn from @thunderid/react. Unlike BaseSignUp,
|