nucleus-core-ts 0.8.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/LICENSE +48 -0
- package/README.md +177 -0
- package/dist/client.d.ts +2 -0
- package/dist/client.js +1 -0
- package/dist/dist/index-0yyw12k6.d.ts +8 -0
- package/dist/dist/index-tv67j5qd.d.ts +488 -0
- package/dist/dist/index.d.ts +40 -0
- package/dist/fe/components/AbstractAnimatedBackground/index.d.ts +7 -0
- package/dist/fe/components/AuthorizationPage/components/AuthorizationPage.d.ts +3 -0
- package/dist/fe/components/AuthorizationPage/components/ClaimList.d.ts +3 -0
- package/dist/fe/components/AuthorizationPage/components/RoleClaimEditor.d.ts +3 -0
- package/dist/fe/components/AuthorizationPage/components/RoleList.d.ts +3 -0
- package/dist/fe/components/AuthorizationPage/index.d.ts +9 -0
- package/dist/fe/components/AuthorizationPage/store/index.d.ts +47 -0
- package/dist/fe/components/AuthorizationPage/theme/index.d.ts +82 -0
- package/dist/fe/components/AuthorizationPage/types/index.d.ts +64 -0
- package/dist/fe/components/Button/components/Button.d.ts +3 -0
- package/dist/fe/components/Button/components/ButtonSpinner.d.ts +3 -0
- package/dist/fe/components/Button/index.d.ts +6 -0
- package/dist/fe/components/Button/theme/index.d.ts +183 -0
- package/dist/fe/components/Button/types/index.d.ts +24 -0
- package/dist/fe/components/Button/utils/cn.d.ts +3 -0
- package/dist/fe/components/Captcha/components/Captcha.d.ts +4 -0
- package/dist/fe/components/Captcha/index.d.ts +4 -0
- package/dist/fe/components/Captcha/theme.d.ts +53 -0
- package/dist/fe/components/Captcha/types.d.ts +60 -0
- package/dist/fe/components/ChangePasswordPage/components/ChangePasswordForm.d.ts +4 -0
- package/dist/fe/components/ChangePasswordPage/components/ChangePasswordHeader.d.ts +4 -0
- package/dist/fe/components/ChangePasswordPage/components/ChangePasswordPage.d.ts +4 -0
- package/dist/fe/components/ChangePasswordPage/index.d.ts +7 -0
- package/dist/fe/components/ChangePasswordPage/store/index.d.ts +16 -0
- package/dist/fe/components/ChangePasswordPage/theme/index.d.ts +48 -0
- package/dist/fe/components/ChangePasswordPage/types/index.d.ts +56 -0
- package/dist/fe/components/Checkbox/components/Checkbox.d.ts +3 -0
- package/dist/fe/components/Checkbox/components/CheckboxIcon.d.ts +3 -0
- package/dist/fe/components/Checkbox/components/SwitchTrack.d.ts +3 -0
- package/dist/fe/components/Checkbox/index.d.ts +7 -0
- package/dist/fe/components/Checkbox/theme/index.d.ts +218 -0
- package/dist/fe/components/Checkbox/types/index.d.ts +39 -0
- package/dist/fe/components/Checkbox/utils/cn.d.ts +3 -0
- package/dist/fe/components/DataTable/DataTable.d.ts +3 -0
- package/dist/fe/components/DataTable/components/ActionCell.d.ts +10 -0
- package/dist/fe/components/DataTable/components/DataCell.d.ts +18 -0
- package/dist/fe/components/DataTable/components/EditableCell.d.ts +14 -0
- package/dist/fe/components/DataTable/components/EmptyState.d.ts +8 -0
- package/dist/fe/components/DataTable/components/HeaderCell.d.ts +16 -0
- package/dist/fe/components/DataTable/components/InfiniteScrollTrigger.d.ts +11 -0
- package/dist/fe/components/DataTable/components/LoadingSpinner.d.ts +7 -0
- package/dist/fe/components/DataTable/components/ResizeHandle.d.ts +9 -0
- package/dist/fe/components/DataTable/components/SelectionCell.d.ts +9 -0
- package/dist/fe/components/DataTable/components/SkeletonRow.d.ts +9 -0
- package/dist/fe/components/DataTable/components/SkeletonTable.d.ts +10 -0
- package/dist/fe/components/DataTable/components/SortIcon.d.ts +9 -0
- package/dist/fe/components/DataTable/components/TableHeader.d.ts +20 -0
- package/dist/fe/components/DataTable/components/TableRow.d.ts +20 -0
- package/dist/fe/components/DataTable/components/index.d.ts +15 -0
- package/dist/fe/components/DataTable/hooks/index.d.ts +3 -0
- package/dist/fe/components/DataTable/hooks/useAutoFitColumn.d.ts +8 -0
- package/dist/fe/components/DataTable/hooks/useResizeColumn.d.ts +12 -0
- package/dist/fe/components/DataTable/index.d.ts +6 -0
- package/dist/fe/components/DataTable/store/index.d.ts +52 -0
- package/dist/fe/components/DataTable/theme/index.d.ts +131 -0
- package/dist/fe/components/DataTable/types/index.d.ts +151 -0
- package/dist/fe/components/DataTable/utils/cn.d.ts +3 -0
- package/dist/fe/components/DatePicker/components/CalendarGrid.d.ts +3 -0
- package/dist/fe/components/DatePicker/components/CalendarHeader.d.ts +3 -0
- package/dist/fe/components/DatePicker/components/DatePicker.d.ts +3 -0
- package/dist/fe/components/DatePicker/components/MonthYearSelector.d.ts +10 -0
- package/dist/fe/components/DatePicker/index.d.ts +10 -0
- package/dist/fe/components/DatePicker/locales/index.d.ts +5 -0
- package/dist/fe/components/DatePicker/theme/index.d.ts +312 -0
- package/dist/fe/components/DatePicker/types/index.d.ts +88 -0
- package/dist/fe/components/DatePicker/utils/cn.d.ts +3 -0
- package/dist/fe/components/DatePicker/utils/date.d.ts +21 -0
- package/dist/fe/components/DevicesPage/components/DeviceCard.d.ts +4 -0
- package/dist/fe/components/DevicesPage/components/DevicesHeader.d.ts +4 -0
- package/dist/fe/components/DevicesPage/components/DevicesPage.d.ts +4 -0
- package/dist/fe/components/DevicesPage/index.d.ts +8 -0
- package/dist/fe/components/DevicesPage/store/index.d.ts +20 -0
- package/dist/fe/components/DevicesPage/theme/index.d.ts +92 -0
- package/dist/fe/components/DevicesPage/types/index.d.ts +147 -0
- package/dist/fe/components/ForgotPasswordPage/components/ForgotPasswordForm.d.ts +4 -0
- package/dist/fe/components/ForgotPasswordPage/components/ForgotPasswordHeader.d.ts +4 -0
- package/dist/fe/components/ForgotPasswordPage/components/ForgotPasswordPage.d.ts +4 -0
- package/dist/fe/components/ForgotPasswordPage/index.d.ts +7 -0
- package/dist/fe/components/ForgotPasswordPage/store/index.d.ts +14 -0
- package/dist/fe/components/ForgotPasswordPage/theme/index.d.ts +48 -0
- package/dist/fe/components/ForgotPasswordPage/types/index.d.ts +48 -0
- package/dist/fe/components/FormBuilder/components/FormBuilder.d.ts +3 -0
- package/dist/fe/components/FormBuilder/components/FormField.d.ts +3 -0
- package/dist/fe/components/FormBuilder/hooks/useFormBuilder.d.ts +3 -0
- package/dist/fe/components/FormBuilder/index.d.ts +6 -0
- package/dist/fe/components/FormBuilder/theme/index.d.ts +136 -0
- package/dist/fe/components/FormBuilder/types/index.d.ts +150 -0
- package/dist/fe/components/FormBuilder/utils/cn.d.ts +3 -0
- package/dist/fe/components/FormBuilder/utils/fieldMapping.d.ts +12 -0
- package/dist/fe/components/FormBuilder/utils/validation.d.ts +11 -0
- package/dist/fe/components/LoginPage/components/LoginForm.d.ts +4 -0
- package/dist/fe/components/LoginPage/components/LoginHeader.d.ts +4 -0
- package/dist/fe/components/LoginPage/components/LoginPage.d.ts +4 -0
- package/dist/fe/components/LoginPage/index.d.ts +8 -0
- package/dist/fe/components/LoginPage/store/index.d.ts +22 -0
- package/dist/fe/components/LoginPage/theme/index.d.ts +55 -0
- package/dist/fe/components/LoginPage/types/index.d.ts +129 -0
- package/dist/fe/components/MagicLinkVerifyPage/components/MagicLinkVerifyPage.d.ts +4 -0
- package/dist/fe/components/MagicLinkVerifyPage/index.d.ts +5 -0
- package/dist/fe/components/MagicLinkVerifyPage/store.d.ts +15 -0
- package/dist/fe/components/MagicLinkVerifyPage/theme.d.ts +37 -0
- package/dist/fe/components/MagicLinkVerifyPage/types.d.ts +35 -0
- package/dist/fe/components/NucleusEntityShowcase.d.ts +3 -0
- package/dist/fe/components/NucleusTextInput/components/FloatingLabel.d.ts +3 -0
- package/dist/fe/components/NucleusTextInput/components/InputIcons.d.ts +15 -0
- package/dist/fe/components/NucleusTextInput/components/NucleusTextInput.d.ts +3 -0
- package/dist/fe/components/NucleusTextInput/components/PasswordStrengthIndicator.d.ts +15 -0
- package/dist/fe/components/NucleusTextInput/components/TypewriterText.d.ts +3 -0
- package/dist/fe/components/NucleusTextInput/index.d.ts +11 -0
- package/dist/fe/components/NucleusTextInput/theme/index.d.ts +108 -0
- package/dist/fe/components/NucleusTextInput/types/index.d.ts +65 -0
- package/dist/fe/components/NucleusTextInput/utils/cn.d.ts +3 -0
- package/dist/fe/components/NucleusTextInput/utils/format.d.ts +8 -0
- package/dist/fe/components/NucleusTextInput/utils/validation.d.ts +23 -0
- package/dist/fe/components/ProfilePage/components/AddressCard.d.ts +4 -0
- package/dist/fe/components/ProfilePage/components/PhoneCard.d.ts +4 -0
- package/dist/fe/components/ProfilePage/components/ProfileHeader.d.ts +4 -0
- package/dist/fe/components/ProfilePage/components/ProfilePage.d.ts +4 -0
- package/dist/fe/components/ProfilePage/index.d.ts +10 -0
- package/dist/fe/components/ProfilePage/store/index.d.ts +37 -0
- package/dist/fe/components/ProfilePage/theme/index.d.ts +101 -0
- package/dist/fe/components/ProfilePage/types/index.d.ts +150 -0
- package/dist/fe/components/RangePicker/components/RangePicker.d.ts +3 -0
- package/dist/fe/components/RangePicker/components/RangeThumb.d.ts +3 -0
- package/dist/fe/components/RangePicker/components/RangeTooltip.d.ts +3 -0
- package/dist/fe/components/RangePicker/components/RangeTrack.d.ts +3 -0
- package/dist/fe/components/RangePicker/index.d.ts +8 -0
- package/dist/fe/components/RangePicker/theme/index.d.ts +90 -0
- package/dist/fe/components/RangePicker/types/index.d.ts +66 -0
- package/dist/fe/components/RangePicker/utils/cn.d.ts +3 -0
- package/dist/fe/components/RegisterPage/components/PasswordStrengthIndicator.d.ts +14 -0
- package/dist/fe/components/RegisterPage/components/RegisterForm.d.ts +4 -0
- package/dist/fe/components/RegisterPage/components/RegisterHeader.d.ts +4 -0
- package/dist/fe/components/RegisterPage/components/RegisterPage.d.ts +4 -0
- package/dist/fe/components/RegisterPage/index.d.ts +9 -0
- package/dist/fe/components/RegisterPage/store/index.d.ts +19 -0
- package/dist/fe/components/RegisterPage/theme/index.d.ts +81 -0
- package/dist/fe/components/RegisterPage/types/index.d.ts +141 -0
- package/dist/fe/components/ResetPasswordPage/components/ResetPasswordForm.d.ts +4 -0
- package/dist/fe/components/ResetPasswordPage/components/ResetPasswordHeader.d.ts +4 -0
- package/dist/fe/components/ResetPasswordPage/components/ResetPasswordPage.d.ts +4 -0
- package/dist/fe/components/ResetPasswordPage/index.d.ts +7 -0
- package/dist/fe/components/ResetPasswordPage/store/index.d.ts +15 -0
- package/dist/fe/components/ResetPasswordPage/theme/index.d.ts +56 -0
- package/dist/fe/components/ResetPasswordPage/types/index.d.ts +50 -0
- package/dist/fe/components/SearchBox/components/SearchBox.d.ts +3 -0
- package/dist/fe/components/SearchBox/components/SearchBoxDropdown.d.ts +3 -0
- package/dist/fe/components/SearchBox/index.d.ts +8 -0
- package/dist/fe/components/SearchBox/theme/index.d.ts +141 -0
- package/dist/fe/components/SearchBox/types/index.d.ts +47 -0
- package/dist/fe/components/SearchBox/utils/cn.d.ts +3 -0
- package/dist/fe/components/SearchBox/utils/debounce.d.ts +5 -0
- package/dist/fe/components/SearchBox/utils/sanitize.d.ts +9 -0
- package/dist/fe/components/SelectBox/components/SelectBox.d.ts +3 -0
- package/dist/fe/components/SelectBox/components/SelectDropdown.d.ts +6 -0
- package/dist/fe/components/SelectBox/components/SelectOptionItem.d.ts +3 -0
- package/dist/fe/components/SelectBox/components/SelectTrigger.d.ts +5 -0
- package/dist/fe/components/SelectBox/index.d.ts +8 -0
- package/dist/fe/components/SelectBox/theme/index.d.ts +100 -0
- package/dist/fe/components/SelectBox/types/index.d.ts +66 -0
- package/dist/fe/components/SelectBox/utils/cn.d.ts +3 -0
- package/dist/fe/components/SetPasswordPage/components/PasswordStrengthIndicator.d.ts +14 -0
- package/dist/fe/components/SetPasswordPage/components/SetPasswordForm.d.ts +4 -0
- package/dist/fe/components/SetPasswordPage/components/SetPasswordHeader.d.ts +4 -0
- package/dist/fe/components/SetPasswordPage/components/SetPasswordPage.d.ts +4 -0
- package/dist/fe/components/SetPasswordPage/index.d.ts +9 -0
- package/dist/fe/components/SetPasswordPage/store/index.d.ts +16 -0
- package/dist/fe/components/SetPasswordPage/theme/index.d.ts +95 -0
- package/dist/fe/components/SetPasswordPage/types/index.d.ts +137 -0
- package/dist/fe/components/UsersPage/components/InviteUserModal.d.ts +10 -0
- package/dist/fe/components/UsersPage/components/Pagination.d.ts +13 -0
- package/dist/fe/components/UsersPage/components/RoleAssignmentModal.d.ts +12 -0
- package/dist/fe/components/UsersPage/components/StatsCards.d.ts +10 -0
- package/dist/fe/components/UsersPage/components/UserDetailDrawer.d.ts +24 -0
- package/dist/fe/components/UsersPage/components/UserFilters.d.ts +18 -0
- package/dist/fe/components/UsersPage/components/UserListItem.d.ts +11 -0
- package/dist/fe/components/UsersPage/components/UserListSkeleton.d.ts +7 -0
- package/dist/fe/components/UsersPage/components/UsersPage.d.ts +8 -0
- package/dist/fe/components/UsersPage/index.d.ts +13 -0
- package/dist/fe/components/UsersPage/store/index.d.ts +51 -0
- package/dist/fe/components/UsersPage/theme/index.d.ts +180 -0
- package/dist/fe/components/UsersPage/types/index.d.ts +73 -0
- package/dist/fe/components/VerifyEmailPage/components/VerifyEmailPage.d.ts +4 -0
- package/dist/fe/components/VerifyEmailPage/index.d.ts +5 -0
- package/dist/fe/components/VerifyEmailPage/store/index.d.ts +18 -0
- package/dist/fe/components/VerifyEmailPage/theme/index.d.ts +49 -0
- package/dist/fe/components/VerifyEmailPage/types/index.d.ts +84 -0
- package/dist/fe/hooks/useNucleusEntity.d.ts +3 -0
- package/dist/fe/index.d.ts +42 -0
- package/dist/fe/index.js +1 -0
- package/dist/fe/types/index.d.ts +233 -0
- package/dist/fe/utils/cn.d.ts +3 -0
- package/dist/fe/utils/columnUtils.d.ts +63 -0
- package/dist/fe/utils/endpointKeys.d.ts +9 -0
- package/dist/index-0yyw12k6.js +1 -0
- package/dist/index-tv67j5qd.js +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +1 -0
- package/dist/nucleus.config.d.ts +95 -0
- package/dist/public/components/CTA.d.ts +2 -0
- package/dist/public/components/Capabilities.d.ts +9 -0
- package/dist/public/components/Features.d.ts +9 -0
- package/dist/public/components/Footer.d.ts +2 -0
- package/dist/public/components/Hero.d.ts +2 -0
- package/dist/public/components/Managers.d.ts +7 -0
- package/dist/public/components/Nav.d.ts +2 -0
- package/dist/public/components/Stack.d.ts +7 -0
- package/dist/public/components/docs/Docs.d.ts +2 -0
- package/dist/public/components/docs/DocsContent.d.ts +19 -0
- package/dist/public/components/docs/DocsRightSidebar.d.ts +9 -0
- package/dist/public/components/docs/DocsSidebar.d.ts +8 -0
- package/dist/public/components/docs/content/authentication.d.ts +3 -0
- package/dist/public/components/docs/content/gettingStarted.d.ts +3 -0
- package/dist/public/components/docs/docsData.d.ts +18 -0
- package/dist/public/components/docs/index.d.ts +7 -0
- package/dist/public/components/index.d.ts +10 -0
- package/dist/public/index.d.ts +3 -0
- package/dist/public/store.d.ts +20 -0
- package/dist/scripts/build.d.ts +7 -0
- package/dist/scripts/generate-schema.d.ts +3 -0
- package/dist/scripts/generate-system-tables-types.d.ts +2 -0
- package/dist/scripts/generate-types-schema.d.ts +7 -0
- package/dist/scripts/publish.d.ts +7 -0
- package/dist/scripts/version.d.ts +7 -0
- package/dist/src/Client/ApiCaller/client.d.ts +5 -0
- package/dist/src/Client/ApiCaller/examples/usage.example.d.ts +8 -0
- package/dist/src/Client/ApiCaller/generator.d.ts +10 -0
- package/dist/src/Client/ApiCaller/index.d.ts +7 -0
- package/dist/src/Client/ApiCaller/server.d.ts +4 -0
- package/dist/src/Client/ApiCaller/system-tables.d.ts +1215 -0
- package/dist/src/Client/ApiCaller/types.d.ts +907 -0
- package/dist/src/Client/Proxy/httpProxy.d.ts +5 -0
- package/dist/src/Client/Proxy/index.d.ts +6 -0
- package/dist/src/Client/Proxy/index.js +1 -0
- package/dist/src/Client/Proxy/server.d.ts +5 -0
- package/dist/src/Client/Proxy/types.d.ts +69 -0
- package/dist/src/Client/Proxy/utils.d.ts +12 -0
- package/dist/src/Client/Proxy/wsProxy.d.ts +20 -0
- package/dist/src/Client/ServerFetch/index.d.ts +19 -0
- package/dist/src/Client/ServerFetch/types.d.ts +34 -0
- package/dist/src/Client/index.d.ts +4 -0
- package/dist/src/ElysiaPlugin/index.d.ts +12 -0
- package/dist/src/ElysiaPlugin/publicRoutes.d.ts +9 -0
- package/dist/src/ElysiaPlugin/routes/auth/captcha/index.d.ts +46 -0
- package/dist/src/ElysiaPlugin/routes/auth/emailVerification/index.d.ts +38 -0
- package/dist/src/ElysiaPlugin/routes/auth/index.d.ts +68 -0
- package/dist/src/ElysiaPlugin/routes/auth/invite/index.d.ts +43 -0
- package/dist/src/ElysiaPlugin/routes/auth/login/index.d.ts +68 -0
- package/dist/src/ElysiaPlugin/routes/auth/login/types.d.ts +22 -0
- package/dist/src/ElysiaPlugin/routes/auth/login/utils.d.ts +19 -0
- package/dist/src/ElysiaPlugin/routes/auth/logout/index.d.ts +33 -0
- package/dist/src/ElysiaPlugin/routes/auth/logout/types.d.ts +6 -0
- package/dist/src/ElysiaPlugin/routes/auth/logout/utils.d.ts +2 -0
- package/dist/src/ElysiaPlugin/routes/auth/magicLink/index.d.ts +41 -0
- package/dist/src/ElysiaPlugin/routes/auth/magicLink/types.d.ts +23 -0
- package/dist/src/ElysiaPlugin/routes/auth/magicLink/utils.d.ts +4 -0
- package/dist/src/ElysiaPlugin/routes/auth/me/index.d.ts +40 -0
- package/dist/src/ElysiaPlugin/routes/auth/passwordChange/index.d.ts +33 -0
- package/dist/src/ElysiaPlugin/routes/auth/passwordChange/types.d.ts +12 -0
- package/dist/src/ElysiaPlugin/routes/auth/passwordChange/utils.d.ts +2 -0
- package/dist/src/ElysiaPlugin/routes/auth/passwordReset/index.d.ts +36 -0
- package/dist/src/ElysiaPlugin/routes/auth/passwordReset/types.d.ts +16 -0
- package/dist/src/ElysiaPlugin/routes/auth/passwordReset/utils.d.ts +3 -0
- package/dist/src/ElysiaPlugin/routes/auth/passwordSet/index.d.ts +33 -0
- package/dist/src/ElysiaPlugin/routes/auth/passwordSet/types.d.ts +9 -0
- package/dist/src/ElysiaPlugin/routes/auth/refresh/index.d.ts +39 -0
- package/dist/src/ElysiaPlugin/routes/auth/refresh/types.d.ts +9 -0
- package/dist/src/ElysiaPlugin/routes/auth/refresh/utils.d.ts +2 -0
- package/dist/src/ElysiaPlugin/routes/auth/register/index.d.ts +47 -0
- package/dist/src/ElysiaPlugin/routes/auth/register/types.d.ts +18 -0
- package/dist/src/ElysiaPlugin/routes/auth/register/utils.d.ts +8 -0
- package/dist/src/ElysiaPlugin/routes/auth/sessions/index.d.ts +33 -0
- package/dist/src/ElysiaPlugin/routes/auth/sessions/types.d.ts +67 -0
- package/dist/src/ElysiaPlugin/routes/auth/sessions/utils.d.ts +36 -0
- package/dist/src/ElysiaPlugin/routes/auth/types.d.ts +153 -0
- package/dist/src/ElysiaPlugin/routes/entity/index.d.ts +5 -0
- package/dist/src/ElysiaPlugin/routes/entity/types.d.ts +50 -0
- package/dist/src/ElysiaPlugin/routes/entity/utils.d.ts +11 -0
- package/dist/src/ElysiaPlugin/routes/index.d.ts +5 -0
- package/dist/src/ElysiaPlugin/routes/monitoring/index.d.ts +58 -0
- package/dist/src/ElysiaPlugin/routes/storage/cdn.d.ts +51 -0
- package/dist/src/ElysiaPlugin/routes/storage/helpers.d.ts +53 -0
- package/dist/src/ElysiaPlugin/routes/storage/index.d.ts +3 -0
- package/dist/src/ElysiaPlugin/routes/verification/index.d.ts +39 -0
- package/dist/src/ElysiaPlugin/swagger.d.ts +28 -0
- package/dist/src/ElysiaPlugin/utils.d.ts +70 -0
- package/dist/src/Managers/Dapr/clients/binding-client.d.ts +15 -0
- package/dist/src/Managers/Dapr/clients/config-client.d.ts +27 -0
- package/dist/src/Managers/Dapr/clients/crypto-client.d.ts +27 -0
- package/dist/src/Managers/Dapr/clients/invoke-client.d.ts +32 -0
- package/dist/src/Managers/Dapr/clients/lock-client.d.ts +23 -0
- package/dist/src/Managers/Dapr/clients/pubsub-client.d.ts +23 -0
- package/dist/src/Managers/Dapr/clients/secret-client.d.ts +19 -0
- package/dist/src/Managers/Dapr/clients/state-client.d.ts +55 -0
- package/dist/src/Managers/Dapr/clients/workflow-client.d.ts +39 -0
- package/dist/src/Managers/Dapr/connection-manager.d.ts +51 -0
- package/dist/src/Managers/Dapr/constants.d.ts +49 -0
- package/dist/src/Managers/Dapr/dapr-manager.d.ts +160 -0
- package/dist/src/Managers/Dapr/error-handling.d.ts +29 -0
- package/dist/src/Managers/Dapr/index.d.ts +102 -0
- package/dist/src/Managers/Dapr/types.d.ts +121 -0
- package/dist/src/Managers/Dapr/utils.d.ts +44 -0
- package/dist/src/Managers/File/atomic.d.ts +64 -0
- package/dist/src/Managers/File/core.d.ts +188 -0
- package/dist/src/Managers/File/index.d.ts +18 -0
- package/dist/src/Managers/File/permissions.d.ts +72 -0
- package/dist/src/Managers/File/streaming.d.ts +30 -0
- package/dist/src/Managers/File/types.d.ts +146 -0
- package/dist/src/Managers/File/utils.d.ts +112 -0
- package/dist/src/Managers/Postgre/index.d.ts +25 -0
- package/dist/src/Managers/Redis/index.d.ts +33 -0
- package/dist/src/Managers/index.d.ts +5 -0
- package/dist/src/Services/Auth/Fingerprint/Generate/index.d.ts +3 -0
- package/dist/src/Services/Auth/Fingerprint/Validate/index.d.ts +3 -0
- package/dist/src/Services/Auth/Fingerprint/index.d.ts +5 -0
- package/dist/src/Services/Auth/Fingerprint/types.d.ts +20 -0
- package/dist/src/Services/Auth/Fingerprint/utils.d.ts +3 -0
- package/dist/src/Services/Auth/JWT/Decode/index.d.ts +3 -0
- package/dist/src/Services/Auth/JWT/Sign/index.d.ts +3 -0
- package/dist/src/Services/Auth/JWT/Verify/index.d.ts +3 -0
- package/dist/src/Services/Auth/JWT/index.d.ts +5 -0
- package/dist/src/Services/Auth/JWT/types.d.ts +38 -0
- package/dist/src/Services/Auth/JWT/utils.d.ts +10 -0
- package/dist/src/Services/Auth/Password/Generate/index.d.ts +3 -0
- package/dist/src/Services/Auth/Password/Validate/index.d.ts +3 -0
- package/dist/src/Services/Auth/Password/index.d.ts +2 -0
- package/dist/src/Services/Auth/Password/types.d.ts +16 -0
- package/dist/src/Services/Auth/RefreshToken/Delete/index.d.ts +3 -0
- package/dist/src/Services/Auth/RefreshToken/Generate/index.d.ts +11 -0
- package/dist/src/Services/Auth/RefreshToken/Read/index.d.ts +11 -0
- package/dist/src/Services/Auth/RefreshToken/Validate/index.d.ts +11 -0
- package/dist/src/Services/Auth/RefreshToken/index.d.ts +5 -0
- package/dist/src/Services/Auth/RefreshToken/types.d.ts +27 -0
- package/dist/src/Services/Auth/RefreshToken/utils.d.ts +6 -0
- package/dist/src/Services/Auth/Session/Issue/index.d.ts +9 -0
- package/dist/src/Services/Auth/Session/index.d.ts +2 -0
- package/dist/src/Services/Auth/Session/types.d.ts +13 -0
- package/dist/src/Services/Auth/SessionStore/Delete/index.d.ts +3 -0
- package/dist/src/Services/Auth/SessionStore/Generate/index.d.ts +11 -0
- package/dist/src/Services/Auth/SessionStore/Read/index.d.ts +3 -0
- package/dist/src/Services/Auth/SessionStore/Update/index.d.ts +24 -0
- package/dist/src/Services/Auth/SessionStore/Validate/index.d.ts +3 -0
- package/dist/src/Services/Auth/SessionStore/index.d.ts +7 -0
- package/dist/src/Services/Auth/SessionStore/types.d.ts +59 -0
- package/dist/src/Services/Auth/SessionStore/utils.d.ts +6 -0
- package/dist/src/Services/Auth/index.d.ts +7 -0
- package/dist/src/Services/Authorization/ClaimSeeder/index.d.ts +6 -0
- package/dist/src/Services/Authorization/GodminSetup/index.d.ts +10 -0
- package/dist/src/Services/Authorization/Middleware/index.d.ts +21 -0
- package/dist/src/Services/Authorization/index.d.ts +5 -0
- package/dist/src/Services/Authorization/types.d.ts +68 -0
- package/dist/src/Services/Captcha/index.d.ts +15 -0
- package/dist/src/Services/Captcha/types.d.ts +69 -0
- package/dist/src/Services/Gmail/index.d.ts +62 -0
- package/dist/src/Services/Logger/Logger.d.ts +77 -0
- package/dist/src/Services/Logger/index.d.ts +5 -0
- package/dist/src/Services/Logger/transports.d.ts +54 -0
- package/dist/src/Services/Logger/types.d.ts +88 -0
- package/dist/src/Services/Logger/utils.d.ts +8 -0
- package/dist/src/Services/Monitoring/AlertService.d.ts +29 -0
- package/dist/src/Services/Monitoring/collectors/ApplicationCollector.d.ts +30 -0
- package/dist/src/Services/Monitoring/collectors/SystemCollector.d.ts +13 -0
- package/dist/src/Services/Monitoring/collectors/index.d.ts +3 -0
- package/dist/src/Services/Monitoring/index.d.ts +109 -0
- package/dist/src/Services/Monitoring/types.d.ts +163 -0
- package/dist/src/Services/Notification/index.d.ts +31 -0
- package/dist/src/Services/Notification/types.d.ts +59 -0
- package/dist/src/Services/RateLimiter/index.d.ts +99 -0
- package/dist/src/Services/Verification/index.d.ts +23 -0
- package/dist/src/Services/Verification/types.d.ts +135 -0
- package/dist/src/Services/index.d.ts +10 -0
- package/dist/src/types.d.ts +588 -0
- package/package.json +99 -0
- package/public/components/CTA.tsx +25 -0
- package/public/components/Capabilities.tsx +69 -0
- package/public/components/Features.tsx +107 -0
- package/public/components/Footer.tsx +60 -0
- package/public/components/Hero.tsx +53 -0
- package/public/components/Managers.tsx +60 -0
- package/public/components/Nav.tsx +107 -0
- package/public/components/Stack.tsx +36 -0
- package/public/components/docs/Docs.tsx +62 -0
- package/public/components/docs/DocsContent.tsx +203 -0
- package/public/components/docs/DocsRightSidebar.tsx +53 -0
- package/public/components/docs/DocsSidebar.tsx +62 -0
- package/public/components/docs/content/authentication.ts +1670 -0
- package/public/components/docs/content/gettingStarted.ts +627 -0
- package/public/components/docs/docsData.ts +36 -0
- package/public/components/docs/index.ts +6 -0
- package/public/components/index.ts +9 -0
- package/public/docs.css +633 -0
- package/public/index.html +81 -0
- package/public/index.tsx +52 -0
- package/public/store.ts +79 -0
- package/public/styles.css +877 -0
- package/schemas/bckp/config.nucleus.json +1488 -0
- package/schemas/bckp/nucleus.tables.schema.json +24 -0
- package/schemas/bckp/table.schema.json +472 -0
- package/schemas/config.nucleus.json +1010 -0
- package/schemas/nucleus.tables.schema.json +19 -0
- package/schemas/table.schema.json +498 -0
- package/scripts/build.ts +197 -0
- package/scripts/generate-schema.ts +556 -0
- package/scripts/generate-system-tables-types.ts +18 -0
- package/scripts/generate-types-schema.ts +962 -0
- package/scripts/publish.ts +210 -0
- package/scripts/version.ts +125 -0
- package/src/system.tables.json +1590 -0
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface PasswordPolicy {
|
|
3
|
+
minLength?: number;
|
|
4
|
+
maxLength?: number;
|
|
5
|
+
requireUppercase?: boolean;
|
|
6
|
+
requireLowercase?: boolean;
|
|
7
|
+
requireNumber?: boolean;
|
|
8
|
+
requireSpecialChar?: boolean;
|
|
9
|
+
specialChars?: string;
|
|
10
|
+
preventCommonPasswords?: boolean;
|
|
11
|
+
preventUserInfoInPassword?: boolean;
|
|
12
|
+
showStrengthIndicator?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const DEFAULT_PASSWORD_POLICY: Required<PasswordPolicy>;
|
|
15
|
+
export type SetPasswordStep = "verifying" | "form" | "success" | "error";
|
|
16
|
+
export type PasswordStrength = {
|
|
17
|
+
score: number;
|
|
18
|
+
hasMinLength: boolean;
|
|
19
|
+
hasUppercase: boolean;
|
|
20
|
+
hasLowercase: boolean;
|
|
21
|
+
hasNumber: boolean;
|
|
22
|
+
hasSpecialChar: boolean;
|
|
23
|
+
};
|
|
24
|
+
export interface MagicLinkVerifyResponse {
|
|
25
|
+
success: boolean;
|
|
26
|
+
message?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface MagicLinkVerifyError {
|
|
29
|
+
message?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface PasswordChangeResponse {
|
|
32
|
+
success: boolean;
|
|
33
|
+
message?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface PasswordChangeError {
|
|
36
|
+
message?: string;
|
|
37
|
+
}
|
|
38
|
+
export type MagicLinkVerifyAction<TData = {
|
|
39
|
+
success?: boolean;
|
|
40
|
+
message?: string;
|
|
41
|
+
}, TError = {
|
|
42
|
+
message?: string;
|
|
43
|
+
}> = {
|
|
44
|
+
start: (config: {
|
|
45
|
+
payload: {
|
|
46
|
+
token: string;
|
|
47
|
+
};
|
|
48
|
+
onAfterHandle?: (data: TData) => void;
|
|
49
|
+
onErrorHandle?: (error: TError, code?: number | null) => void;
|
|
50
|
+
}) => void;
|
|
51
|
+
state: {
|
|
52
|
+
isPending: boolean;
|
|
53
|
+
data: TData | null;
|
|
54
|
+
error: TError | null;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export type PasswordChangeAction<TData = {
|
|
58
|
+
success?: boolean;
|
|
59
|
+
message?: string;
|
|
60
|
+
}, TError = {
|
|
61
|
+
message?: string;
|
|
62
|
+
}> = {
|
|
63
|
+
start: (config: {
|
|
64
|
+
payload: {
|
|
65
|
+
currentPassword: string;
|
|
66
|
+
newPassword: string;
|
|
67
|
+
};
|
|
68
|
+
onAfterHandle?: (data: TData) => void;
|
|
69
|
+
onErrorHandle?: (error: TError, code?: number | null) => void;
|
|
70
|
+
}) => void;
|
|
71
|
+
state: {
|
|
72
|
+
isPending: boolean;
|
|
73
|
+
data: TData | null;
|
|
74
|
+
error: TError | null;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
export type PasswordSetAction<TData = {
|
|
78
|
+
success?: boolean;
|
|
79
|
+
message?: string;
|
|
80
|
+
}, TError = {
|
|
81
|
+
message?: string;
|
|
82
|
+
}> = {
|
|
83
|
+
start: (config: {
|
|
84
|
+
payload: {
|
|
85
|
+
newPassword: string;
|
|
86
|
+
userId: string;
|
|
87
|
+
};
|
|
88
|
+
onAfterHandle?: (data: TData) => void;
|
|
89
|
+
onErrorHandle?: (error: TError, code?: number | null) => void;
|
|
90
|
+
}) => void;
|
|
91
|
+
state: {
|
|
92
|
+
isPending: boolean;
|
|
93
|
+
data: TData | null;
|
|
94
|
+
error: TError | null;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
export interface SetPasswordPageConfig {
|
|
98
|
+
title?: string;
|
|
99
|
+
subtitle?: string;
|
|
100
|
+
inviteTitle?: string;
|
|
101
|
+
inviteSubtitle?: string;
|
|
102
|
+
logo?: ReactNode;
|
|
103
|
+
token: string;
|
|
104
|
+
isInvite?: boolean;
|
|
105
|
+
magicLinkVerifyAction: MagicLinkVerifyAction;
|
|
106
|
+
passwordChangeAction?: PasswordChangeAction;
|
|
107
|
+
passwordSetAction?: PasswordSetAction;
|
|
108
|
+
onBackToLogin?: () => void;
|
|
109
|
+
onSuccess?: () => void;
|
|
110
|
+
backToLoginHref?: string;
|
|
111
|
+
showBackground?: boolean;
|
|
112
|
+
className?: string;
|
|
113
|
+
passwordPolicy?: PasswordPolicy;
|
|
114
|
+
}
|
|
115
|
+
export interface SetPasswordFormProps {
|
|
116
|
+
passwordChangeAction?: PasswordChangeAction;
|
|
117
|
+
passwordSetAction?: PasswordSetAction;
|
|
118
|
+
isInvite?: boolean;
|
|
119
|
+
onSuccess?: () => void;
|
|
120
|
+
onBackToLogin?: () => void;
|
|
121
|
+
backToLoginHref?: string;
|
|
122
|
+
passwordPolicy?: PasswordPolicy;
|
|
123
|
+
}
|
|
124
|
+
export interface SetPasswordHeaderProps {
|
|
125
|
+
logo?: ReactNode;
|
|
126
|
+
title: string;
|
|
127
|
+
subtitle: string;
|
|
128
|
+
}
|
|
129
|
+
export interface SetPasswordState {
|
|
130
|
+
newPassword: string;
|
|
131
|
+
confirmPassword: string;
|
|
132
|
+
step: SetPasswordStep;
|
|
133
|
+
error: string | null;
|
|
134
|
+
userId: string | null;
|
|
135
|
+
passwordStrength: PasswordStrength;
|
|
136
|
+
}
|
|
137
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { UsersPageTheme } from "../theme";
|
|
2
|
+
export type InviteUserModalProps = {
|
|
3
|
+
theme: UsersPageTheme;
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
onInvite: (email: string) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare function InviteUserModal({ theme, isOpen, isLoading, onClose, onInvite, }: InviteUserModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
+
//# sourceMappingURL=InviteUserModal.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { UsersPageTheme } from "../theme";
|
|
2
|
+
export type PaginationProps = {
|
|
3
|
+
theme: UsersPageTheme;
|
|
4
|
+
currentPage: number;
|
|
5
|
+
totalPages: number;
|
|
6
|
+
totalItems: number;
|
|
7
|
+
pageSize: number;
|
|
8
|
+
pageSizeOptions?: number[];
|
|
9
|
+
onPageChange: (page: number) => void;
|
|
10
|
+
onPageSizeChange: (size: number) => void;
|
|
11
|
+
};
|
|
12
|
+
export declare function Pagination({ theme, currentPage, totalPages, totalItems, pageSize, pageSizeOptions, onPageChange, onPageSizeChange, }: PaginationProps): import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
+
//# sourceMappingURL=Pagination.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { RoleInfo, UserRoleInfo } from "../types";
|
|
2
|
+
export type RoleAssignmentModalProps = {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
roles: RoleInfo[];
|
|
5
|
+
userRoles: UserRoleInfo[];
|
|
6
|
+
userId: string;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
onAssignRole: (userId: string, roleId: string) => void;
|
|
9
|
+
onRemoveRole: (userRoleId: string) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare function RoleAssignmentModal({ isOpen, roles, userRoles, userId, onClose, onAssignRole, onRemoveRole, }: RoleAssignmentModalProps): import("react").ReactPortal | null;
|
|
12
|
+
//# sourceMappingURL=RoleAssignmentModal.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { UsersPageTheme } from "../theme";
|
|
2
|
+
export type StatsCardsProps = {
|
|
3
|
+
theme: UsersPageTheme;
|
|
4
|
+
totalUsers: number;
|
|
5
|
+
verifiedUsers: number;
|
|
6
|
+
lockedUsers: number;
|
|
7
|
+
unverifiedUsers: number;
|
|
8
|
+
};
|
|
9
|
+
export declare function StatsCards({ theme, totalUsers, verifiedUsers, lockedUsers, unverifiedUsers, }: StatsCardsProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=StatsCards.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { UsersPageTheme } from "../theme";
|
|
2
|
+
import type { RoleInfo, UserRoleInfo, UserWithDetails } from "../types";
|
|
3
|
+
export type UserDetailDrawerProps = {
|
|
4
|
+
theme: UsersPageTheme;
|
|
5
|
+
user: UserWithDetails | null;
|
|
6
|
+
roles: RoleInfo[];
|
|
7
|
+
allUserRoles: UserRoleInfo[];
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
actionLoading: string | null;
|
|
10
|
+
onClose: () => void;
|
|
11
|
+
onVerifyEmail: (userId: string) => void;
|
|
12
|
+
onLockAccount: (userId: string) => void;
|
|
13
|
+
onUnlockAccount: (userId: string) => void;
|
|
14
|
+
onResetPassword: (email: string) => void;
|
|
15
|
+
onSendMagicLink: (email: string) => void;
|
|
16
|
+
onResendInvite: (email: string) => void;
|
|
17
|
+
onAssignRole: (userId: string, roleId: string) => void;
|
|
18
|
+
onRemoveRole: (userRoleId: string) => void;
|
|
19
|
+
hasPasswordReset?: boolean;
|
|
20
|
+
hasMagicLink?: boolean;
|
|
21
|
+
hasInvite?: boolean;
|
|
22
|
+
};
|
|
23
|
+
export declare function UserDetailDrawer({ theme, user, roles, allUserRoles, isOpen, actionLoading, onClose, onVerifyEmail, onLockAccount, onUnlockAccount, onResetPassword, onSendMagicLink, onResendInvite, onAssignRole, onRemoveRole, hasPasswordReset, hasMagicLink, hasInvite, }: UserDetailDrawerProps): import("react/jsx-runtime").JSX.Element | null;
|
|
24
|
+
//# sourceMappingURL=UserDetailDrawer.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { UsersPageTheme } from "../theme";
|
|
2
|
+
import type { RoleInfo } from "../types";
|
|
3
|
+
export type UserFiltersProps = {
|
|
4
|
+
theme: UsersPageTheme;
|
|
5
|
+
searchQuery: string;
|
|
6
|
+
statusFilter: "all" | "active" | "locked" | "unverified";
|
|
7
|
+
roleFilter: string;
|
|
8
|
+
roles: RoleInfo[];
|
|
9
|
+
totalCount: number;
|
|
10
|
+
filteredCount: number;
|
|
11
|
+
onSearchChange: (query: string) => void;
|
|
12
|
+
onStatusChange: (status: "all" | "active" | "locked" | "unverified") => void;
|
|
13
|
+
onRoleChange: (roleId: string) => void;
|
|
14
|
+
onRefresh?: () => void;
|
|
15
|
+
isLoading?: boolean;
|
|
16
|
+
};
|
|
17
|
+
export declare function UserFilters({ theme, searchQuery, statusFilter, roleFilter, roles, totalCount, filteredCount, onSearchChange, onStatusChange, onRoleChange, onRefresh, isLoading, }: UserFiltersProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=UserFilters.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { UsersPageTheme } from "../theme";
|
|
2
|
+
import type { RoleInfo, UserWithDetails } from "../types";
|
|
3
|
+
export type UserListItemProps = {
|
|
4
|
+
theme: UsersPageTheme;
|
|
5
|
+
user: UserWithDetails;
|
|
6
|
+
roles: RoleInfo[];
|
|
7
|
+
isSelected: boolean;
|
|
8
|
+
onSelect: (user: UserWithDetails) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare function UserListItem({ theme, user, roles, isSelected, onSelect, }: UserListItemProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=UserListItem.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { UsersPageTheme } from "../theme";
|
|
2
|
+
export type UserListSkeletonProps = {
|
|
3
|
+
theme: UsersPageTheme;
|
|
4
|
+
count?: number;
|
|
5
|
+
};
|
|
6
|
+
export declare function UserListSkeleton({ theme, count }: UserListSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=UserListSkeleton.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type UsersPageTheme } from "../theme";
|
|
2
|
+
import type { UsersPageProps } from "../types";
|
|
3
|
+
type ExtendedUsersPageProps = UsersPageProps & {
|
|
4
|
+
theme?: Partial<UsersPageTheme>;
|
|
5
|
+
};
|
|
6
|
+
export declare function UsersPage({ title, subtitle, className, theme: customTheme, getUsersAction, updateUserAction, getProfilesAction, getAddressesAction, getPhonesAction, getFilesAction, getRolesAction, getUserRolesAction, addUserRoleAction, deleteUserRoleAction, passwordResetRequestAction, magicLinkRequestAction, inviteUserAction, onUserUpdated, onRoleAssigned, onRoleRemoved, onUserInvited, }: ExtendedUsersPageProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=UsersPage.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { InviteUserModal } from "./components/InviteUserModal";
|
|
2
|
+
export { Pagination } from "./components/Pagination";
|
|
3
|
+
export { StatsCards } from "./components/StatsCards";
|
|
4
|
+
export { UserDetailDrawer } from "./components/UserDetailDrawer";
|
|
5
|
+
export { UserFilters } from "./components/UserFilters";
|
|
6
|
+
export { UserListItem } from "./components/UserListItem";
|
|
7
|
+
export { UserListSkeleton } from "./components/UserListSkeleton";
|
|
8
|
+
export { UsersPage } from "./components/UsersPage";
|
|
9
|
+
export { useUsersStore } from "./store";
|
|
10
|
+
export type { UsersPageTheme } from "./theme";
|
|
11
|
+
export { extendUsersPageTheme, usersPageTheme } from "./theme";
|
|
12
|
+
export type { AddressInfo, FileInfo, PhoneInfo, ProfileInfo, RoleInfo, UserDetailPanelProps, UserInfo, UserListItemProps, UserRoleInfo, UsersPageProps, UserWithDetails, } from "./types";
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { AddressInfo, FileInfo, PhoneInfo, ProfileInfo, RoleInfo, UserInfo, UserRoleInfo, UserWithDetails } from "../types";
|
|
2
|
+
type UsersState = {
|
|
3
|
+
[key: string]: unknown;
|
|
4
|
+
users: UserInfo[];
|
|
5
|
+
profiles: ProfileInfo[];
|
|
6
|
+
addresses: AddressInfo[];
|
|
7
|
+
phones: PhoneInfo[];
|
|
8
|
+
files: FileInfo[];
|
|
9
|
+
roles: RoleInfo[];
|
|
10
|
+
userRoles: UserRoleInfo[];
|
|
11
|
+
selectedUser: UserWithDetails | null;
|
|
12
|
+
searchQuery: string;
|
|
13
|
+
statusFilter: "all" | "active" | "locked" | "unverified";
|
|
14
|
+
roleFilter: string;
|
|
15
|
+
isDetailPanelOpen: boolean;
|
|
16
|
+
assigningRoleId: string | null;
|
|
17
|
+
currentPage: number;
|
|
18
|
+
pageSize: number;
|
|
19
|
+
totalItems: number;
|
|
20
|
+
totalPages: number;
|
|
21
|
+
isLoading: boolean;
|
|
22
|
+
};
|
|
23
|
+
type UsersActions = {
|
|
24
|
+
[key: string]: unknown;
|
|
25
|
+
setUsers: (users: UserInfo[]) => void;
|
|
26
|
+
setProfiles: (profiles: ProfileInfo[]) => void;
|
|
27
|
+
setAddresses: (addresses: AddressInfo[]) => void;
|
|
28
|
+
setPhones: (phones: PhoneInfo[]) => void;
|
|
29
|
+
setFiles: (files: FileInfo[]) => void;
|
|
30
|
+
setRoles: (roles: RoleInfo[]) => void;
|
|
31
|
+
setUserRoles: (userRoles: UserRoleInfo[]) => void;
|
|
32
|
+
setSelectedUser: (user: UserWithDetails | null) => void;
|
|
33
|
+
setSearchQuery: (query: string) => void;
|
|
34
|
+
setStatusFilter: (filter: "all" | "active" | "locked" | "unverified") => void;
|
|
35
|
+
setRoleFilter: (roleId: string) => void;
|
|
36
|
+
setDetailPanelOpen: (open: boolean) => void;
|
|
37
|
+
setAssigningRoleId: (roleId: string | null) => void;
|
|
38
|
+
setCurrentPage: (page: number) => void;
|
|
39
|
+
setPageSize: (size: number) => void;
|
|
40
|
+
setPagination: (total: number, totalPages: number) => void;
|
|
41
|
+
setIsLoading: (loading: boolean) => void;
|
|
42
|
+
updateUser: (userId: string, updates: Partial<UserInfo>) => void;
|
|
43
|
+
addUser: (user: UserInfo) => void;
|
|
44
|
+
addUserRole: (userRole: UserRoleInfo) => void;
|
|
45
|
+
removeUserRole: (userRoleId: string) => void;
|
|
46
|
+
getUserWithDetails: (userId: string) => UserWithDetails | null;
|
|
47
|
+
reset: () => void;
|
|
48
|
+
};
|
|
49
|
+
export declare const useUsersStore: () => import("h-state").StoreType<UsersState, UsersActions>;
|
|
50
|
+
export {};
|
|
51
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
export type UsersPageTheme = {
|
|
2
|
+
container: {
|
|
3
|
+
base: string;
|
|
4
|
+
padding: {
|
|
5
|
+
sm: string;
|
|
6
|
+
md: string;
|
|
7
|
+
lg: string;
|
|
8
|
+
xl: string;
|
|
9
|
+
"2xl": string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
header: {
|
|
13
|
+
wrapper: string;
|
|
14
|
+
title: string;
|
|
15
|
+
subtitle: string;
|
|
16
|
+
actions: string;
|
|
17
|
+
};
|
|
18
|
+
layout: {
|
|
19
|
+
wrapper: string;
|
|
20
|
+
sidebar: {
|
|
21
|
+
base: string;
|
|
22
|
+
collapsed: string;
|
|
23
|
+
expanded: string;
|
|
24
|
+
};
|
|
25
|
+
main: string;
|
|
26
|
+
};
|
|
27
|
+
filters: {
|
|
28
|
+
wrapper: string;
|
|
29
|
+
searchInput: string;
|
|
30
|
+
select: string;
|
|
31
|
+
button: {
|
|
32
|
+
base: string;
|
|
33
|
+
active: string;
|
|
34
|
+
inactive: string;
|
|
35
|
+
};
|
|
36
|
+
badge: string;
|
|
37
|
+
};
|
|
38
|
+
table: {
|
|
39
|
+
wrapper: string;
|
|
40
|
+
header: {
|
|
41
|
+
row: string;
|
|
42
|
+
cell: string;
|
|
43
|
+
};
|
|
44
|
+
body: {
|
|
45
|
+
row: {
|
|
46
|
+
base: string;
|
|
47
|
+
hover: string;
|
|
48
|
+
selected: string;
|
|
49
|
+
};
|
|
50
|
+
cell: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
userCard: {
|
|
54
|
+
wrapper: {
|
|
55
|
+
base: string;
|
|
56
|
+
hover: string;
|
|
57
|
+
selected: string;
|
|
58
|
+
};
|
|
59
|
+
avatar: {
|
|
60
|
+
wrapper: string;
|
|
61
|
+
image: string;
|
|
62
|
+
placeholder: string;
|
|
63
|
+
statusDot: {
|
|
64
|
+
base: string;
|
|
65
|
+
active: string;
|
|
66
|
+
locked: string;
|
|
67
|
+
unverified: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
content: {
|
|
71
|
+
wrapper: string;
|
|
72
|
+
name: string;
|
|
73
|
+
email: string;
|
|
74
|
+
meta: string;
|
|
75
|
+
};
|
|
76
|
+
badges: {
|
|
77
|
+
wrapper: string;
|
|
78
|
+
role: string;
|
|
79
|
+
status: {
|
|
80
|
+
active: string;
|
|
81
|
+
locked: string;
|
|
82
|
+
unverified: string;
|
|
83
|
+
god: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
detailPanel: {
|
|
88
|
+
overlay: string;
|
|
89
|
+
wrapper: {
|
|
90
|
+
base: string;
|
|
91
|
+
mobile: string;
|
|
92
|
+
tablet: string;
|
|
93
|
+
desktop: string;
|
|
94
|
+
};
|
|
95
|
+
header: {
|
|
96
|
+
wrapper: string;
|
|
97
|
+
title: string;
|
|
98
|
+
closeButton: string;
|
|
99
|
+
};
|
|
100
|
+
content: {
|
|
101
|
+
wrapper: string;
|
|
102
|
+
section: {
|
|
103
|
+
wrapper: string;
|
|
104
|
+
title: string;
|
|
105
|
+
content: string;
|
|
106
|
+
};
|
|
107
|
+
row: {
|
|
108
|
+
wrapper: string;
|
|
109
|
+
label: string;
|
|
110
|
+
value: string;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
actions: {
|
|
114
|
+
wrapper: string;
|
|
115
|
+
button: {
|
|
116
|
+
base: string;
|
|
117
|
+
primary: string;
|
|
118
|
+
danger: string;
|
|
119
|
+
warning: string;
|
|
120
|
+
info: string;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
pagination: {
|
|
125
|
+
wrapper: string;
|
|
126
|
+
info: string;
|
|
127
|
+
controls: {
|
|
128
|
+
wrapper: string;
|
|
129
|
+
button: {
|
|
130
|
+
base: string;
|
|
131
|
+
active: string;
|
|
132
|
+
disabled: string;
|
|
133
|
+
};
|
|
134
|
+
pageSize: string;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
skeleton: {
|
|
138
|
+
base: string;
|
|
139
|
+
avatar: string;
|
|
140
|
+
text: string;
|
|
141
|
+
button: string;
|
|
142
|
+
};
|
|
143
|
+
emptyState: {
|
|
144
|
+
wrapper: string;
|
|
145
|
+
icon: string;
|
|
146
|
+
title: string;
|
|
147
|
+
description: string;
|
|
148
|
+
};
|
|
149
|
+
modal: {
|
|
150
|
+
overlay: string;
|
|
151
|
+
wrapper: string;
|
|
152
|
+
header: {
|
|
153
|
+
wrapper: string;
|
|
154
|
+
icon: string;
|
|
155
|
+
title: string;
|
|
156
|
+
subtitle: string;
|
|
157
|
+
};
|
|
158
|
+
content: string;
|
|
159
|
+
infoBox: string;
|
|
160
|
+
footer: string;
|
|
161
|
+
};
|
|
162
|
+
stats: {
|
|
163
|
+
wrapper: string;
|
|
164
|
+
card: {
|
|
165
|
+
base: string;
|
|
166
|
+
icon: {
|
|
167
|
+
wrapper: string;
|
|
168
|
+
primary: string;
|
|
169
|
+
success: string;
|
|
170
|
+
warning: string;
|
|
171
|
+
danger: string;
|
|
172
|
+
};
|
|
173
|
+
value: string;
|
|
174
|
+
label: string;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
export declare const usersPageTheme: UsersPageTheme;
|
|
179
|
+
export declare function extendUsersPageTheme(overrides: Partial<UsersPageTheme>): UsersPageTheme;
|
|
180
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { BaseErrorResponse, DeleteResponse, EndpointAction, ListResponse, MutationResponse, PasswordResetResponse, StandardQueryParams, StandardReturn, SystemAddressEntity, SystemFileEntity, SystemPhoneEntity, SystemProfileEntity, SystemRoleEntity, SystemUserEntity, SystemUserRoleEntity } from "../../../..";
|
|
2
|
+
export type UserInfo = SystemUserEntity;
|
|
3
|
+
export type ProfileInfo = SystemProfileEntity;
|
|
4
|
+
export type AddressInfo = SystemAddressEntity;
|
|
5
|
+
export type PhoneInfo = SystemPhoneEntity;
|
|
6
|
+
export type FileInfo = SystemFileEntity;
|
|
7
|
+
export type UserRoleInfo = SystemUserRoleEntity;
|
|
8
|
+
export type RoleInfo = SystemRoleEntity;
|
|
9
|
+
export type UserWithDetails = UserInfo & {
|
|
10
|
+
profile?: ProfileInfo | null;
|
|
11
|
+
addresses?: AddressInfo[];
|
|
12
|
+
phones?: PhoneInfo[];
|
|
13
|
+
files?: FileInfo[];
|
|
14
|
+
userRoles?: (UserRoleInfo & {
|
|
15
|
+
role?: RoleInfo;
|
|
16
|
+
})[];
|
|
17
|
+
};
|
|
18
|
+
export type UsersPageProps = {
|
|
19
|
+
title?: string;
|
|
20
|
+
subtitle?: string;
|
|
21
|
+
className?: string;
|
|
22
|
+
getUsersAction: EndpointAction<StandardQueryParams | undefined, ListResponse<UserInfo>, BaseErrorResponse>;
|
|
23
|
+
updateUserAction: EndpointAction<Partial<UserInfo> & {
|
|
24
|
+
id: string;
|
|
25
|
+
}, MutationResponse<UserInfo>, BaseErrorResponse>;
|
|
26
|
+
getProfilesAction: EndpointAction<StandardQueryParams | undefined, ListResponse<ProfileInfo>, BaseErrorResponse>;
|
|
27
|
+
getAddressesAction: EndpointAction<StandardQueryParams | undefined, ListResponse<AddressInfo>, BaseErrorResponse>;
|
|
28
|
+
getPhonesAction: EndpointAction<StandardQueryParams | undefined, ListResponse<PhoneInfo>, BaseErrorResponse>;
|
|
29
|
+
getFilesAction: EndpointAction<StandardQueryParams | undefined, ListResponse<FileInfo>, BaseErrorResponse>;
|
|
30
|
+
getRolesAction: EndpointAction<StandardQueryParams | undefined, ListResponse<RoleInfo>, BaseErrorResponse>;
|
|
31
|
+
getUserRolesAction: EndpointAction<StandardQueryParams | undefined, ListResponse<UserRoleInfo>, BaseErrorResponse>;
|
|
32
|
+
addUserRoleAction: EndpointAction<Partial<UserRoleInfo>, MutationResponse<UserRoleInfo>, BaseErrorResponse>;
|
|
33
|
+
deleteUserRoleAction: EndpointAction<{
|
|
34
|
+
id: string;
|
|
35
|
+
}, DeleteResponse, BaseErrorResponse>;
|
|
36
|
+
passwordResetRequestAction?: EndpointAction<{
|
|
37
|
+
email: string;
|
|
38
|
+
}, PasswordResetResponse, BaseErrorResponse>;
|
|
39
|
+
magicLinkRequestAction?: EndpointAction<{
|
|
40
|
+
email: string;
|
|
41
|
+
}, StandardReturn<{
|
|
42
|
+
message: string;
|
|
43
|
+
}>, BaseErrorResponse>;
|
|
44
|
+
inviteUserAction?: EndpointAction<{
|
|
45
|
+
email: string;
|
|
46
|
+
}, StandardReturn<{
|
|
47
|
+
id: string;
|
|
48
|
+
email: string;
|
|
49
|
+
}>, BaseErrorResponse>;
|
|
50
|
+
onUserUpdated?: (user: UserInfo) => void;
|
|
51
|
+
onRoleAssigned?: (userId: string, roleId: string) => void;
|
|
52
|
+
onRoleRemoved?: (userId: string, roleId: string) => void;
|
|
53
|
+
onUserInvited?: (email: string) => void;
|
|
54
|
+
};
|
|
55
|
+
export type UserListItemProps = {
|
|
56
|
+
user: UserWithDetails;
|
|
57
|
+
isSelected: boolean;
|
|
58
|
+
onSelect: (user: UserWithDetails) => void;
|
|
59
|
+
};
|
|
60
|
+
export type UserDetailPanelProps = {
|
|
61
|
+
user: UserWithDetails | null;
|
|
62
|
+
roles: RoleInfo[];
|
|
63
|
+
isLoading?: boolean;
|
|
64
|
+
onClose: () => void;
|
|
65
|
+
onVerifyEmail: (userId: string) => void;
|
|
66
|
+
onLockAccount: (userId: string) => void;
|
|
67
|
+
onUnlockAccount: (userId: string) => void;
|
|
68
|
+
onResetPassword: (email: string) => void;
|
|
69
|
+
onSendMagicLink: (email: string) => void;
|
|
70
|
+
onAssignRole: (userId: string, roleId: string) => void;
|
|
71
|
+
onRemoveRole: (userRoleId: string) => void;
|
|
72
|
+
};
|
|
73
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { VerifyEmailPageConfig } from "../types";
|
|
3
|
+
export declare function VerifyEmailPage({ token, email: initialEmail, verifyEmailAction, resendVerificationAction, onSuccess, onBackToLogin, backToLoginHref, showResendForm, redirectDelay, className, }: VerifyEmailPageConfig): ReactElement;
|
|
4
|
+
//# sourceMappingURL=VerifyEmailPage.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { VerifyEmailPage } from "./components/VerifyEmailPage";
|
|
2
|
+
export { useVerifyEmailStore } from "./store";
|
|
3
|
+
export { extendVerifyEmailPageTheme, type VerifyEmailPageTheme, verifyEmailPageTheme, } from "./theme";
|
|
4
|
+
export type { ResendVerificationAction, ResendVerificationError, ResendVerificationResponse, VerifyEmailAction, VerifyEmailError, VerifyEmailPageConfig, VerifyEmailResponse, VerifyEmailState, VerifyEmailStep, } from "./types";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { VerifyEmailState, VerifyEmailStep } from "../types";
|
|
2
|
+
type VerifyEmailMethods = {
|
|
3
|
+
[key: string]: unknown;
|
|
4
|
+
setStep: (step: VerifyEmailStep) => void;
|
|
5
|
+
setMessage: (message: string) => void;
|
|
6
|
+
setEmail: (email: string) => void;
|
|
7
|
+
setCooldown: (cooldown: number) => void;
|
|
8
|
+
decrementCooldown: () => void;
|
|
9
|
+
setResendStatus: (status: "idle" | "loading" | "success" | "error") => void;
|
|
10
|
+
setResendMessage: (message: string) => void;
|
|
11
|
+
reset: () => void;
|
|
12
|
+
};
|
|
13
|
+
type VerifyEmailStoreState = VerifyEmailState & {
|
|
14
|
+
[key: string]: unknown;
|
|
15
|
+
};
|
|
16
|
+
export declare const useVerifyEmailStore: () => import("h-state").StoreType<VerifyEmailStoreState, VerifyEmailMethods>;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export declare const verifyEmailPageTheme: {
|
|
2
|
+
container: {
|
|
3
|
+
base: string;
|
|
4
|
+
};
|
|
5
|
+
card: {
|
|
6
|
+
base: string;
|
|
7
|
+
background: string;
|
|
8
|
+
border: string;
|
|
9
|
+
shadow: string;
|
|
10
|
+
rounded: string;
|
|
11
|
+
};
|
|
12
|
+
content: {
|
|
13
|
+
wrapper: string;
|
|
14
|
+
};
|
|
15
|
+
states: {
|
|
16
|
+
verifying: {
|
|
17
|
+
spinner: string;
|
|
18
|
+
title: string;
|
|
19
|
+
subtitle: string;
|
|
20
|
+
};
|
|
21
|
+
success: {
|
|
22
|
+
iconWrapper: string;
|
|
23
|
+
icon: string;
|
|
24
|
+
title: string;
|
|
25
|
+
subtitle: string;
|
|
26
|
+
redirectText: string;
|
|
27
|
+
};
|
|
28
|
+
error: {
|
|
29
|
+
iconWrapper: string;
|
|
30
|
+
icon: string;
|
|
31
|
+
title: string;
|
|
32
|
+
subtitle: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
resendForm: {
|
|
36
|
+
wrapper: string;
|
|
37
|
+
label: string;
|
|
38
|
+
input: string;
|
|
39
|
+
button: string;
|
|
40
|
+
buttonContent: string;
|
|
41
|
+
buttonSpinner: string;
|
|
42
|
+
messageSuccess: string;
|
|
43
|
+
messageError: string;
|
|
44
|
+
};
|
|
45
|
+
backButton: string;
|
|
46
|
+
};
|
|
47
|
+
export type VerifyEmailPageTheme = typeof verifyEmailPageTheme;
|
|
48
|
+
export declare function extendVerifyEmailPageTheme(overrides: Partial<VerifyEmailPageTheme>): VerifyEmailPageTheme;
|
|
49
|
+
//# sourceMappingURL=index.d.ts.map
|