@studiocubics/cms 0.0.2 → 0.0.4
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/client/clerk/rbacConfig.js +2 -0
- package/dist/client/clerk/rbacConfig.js.map +1 -0
- package/dist/client/constants/defaults.d.ts +3 -0
- package/dist/client/constants/defaults.js +2 -0
- package/dist/client/constants/defaults.js.map +1 -0
- package/dist/client/constants/pageLimits.js +2 -0
- package/dist/client/constants/pageLimits.js.map +1 -0
- package/dist/{index.d.ts → client/index.d.ts} +1 -2
- package/dist/client/index.js +2 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/providers/CMSRootProviders.js +2 -0
- package/dist/client/providers/CMSRootProviders.js.map +1 -0
- package/dist/client/ui/Inputs/ThemedMonacoEditor/ThemedMonacoEditor.js +2 -0
- package/dist/client/ui/Inputs/ThemedMonacoEditor/ThemedMonacoEditor.js.map +1 -0
- package/dist/client/ui/Inputs/ThemedMonacoEditor/ThemedMonacoEditor.module.css.js +2 -0
- package/dist/{ui → client/ui}/Inputs/ThemedMonacoEditor/ThemedMonacoEditor.module.css.js.map +1 -1
- package/dist/client/ui/Layout/CMSSecurityLayout.js +2 -0
- package/dist/client/ui/Layout/CMSSecurityLayout.js.map +1 -0
- package/dist/client/ui/Layout/CMSSidebar/CMSSidebar.js +2 -0
- package/dist/client/ui/Layout/CMSSidebar/CMSSidebar.js.map +1 -0
- package/dist/client/ui/Layout/CMSSidebar/CMSSidebarBody.js +2 -0
- package/dist/client/ui/Layout/CMSSidebar/CMSSidebarBody.js.map +1 -0
- package/dist/client/ui/Layout/CMSSidebar/CMSSidebarFooter/CMSSidebarFooter.js +2 -0
- package/dist/client/ui/Layout/CMSSidebar/CMSSidebarFooter/CMSSidebarFooter.js.map +1 -0
- package/dist/client/ui/Layout/CMSSidebar/CMSSidebarFooter/CMSSidebarFooter.module.css.js +2 -0
- package/dist/{ui → client/ui}/Layout/CMSSidebar/CMSSidebarFooter/CMSSidebarFooter.module.css.js.map +1 -1
- package/dist/client/ui/Layout/CMSSidebar/CMSSidebarHeader/CMSSidebarHeader.js +2 -0
- package/dist/client/ui/Layout/CMSSidebar/CMSSidebarHeader/CMSSidebarHeader.js.map +1 -0
- package/dist/client/ui/Layout/CMSSidebar/CMSSidebarHeader/CMSSidebarHeader.module.css.js +2 -0
- package/dist/{ui → client/ui}/Layout/CMSSidebar/CMSSidebarHeader/CMSSidebarHeader.module.css.js.map +1 -1
- package/dist/client/ui/System/Auth/SignIn/SignIn.js +2 -0
- package/dist/client/ui/System/Auth/SignIn/SignIn.js.map +1 -0
- package/dist/client/ui/System/Auth/SignIn/SignIn.module.css.js +2 -0
- package/dist/{ui → client/ui}/System/Auth/SignIn/SignIn.module.css.js.map +1 -1
- package/dist/client/ui/System/Auth/SignIn/useSignInForm.js +2 -0
- package/dist/client/ui/System/Auth/SignIn/useSignInForm.js.map +1 -0
- package/dist/client/ui/System/Auth/SignUp/SignUp.js +2 -0
- package/dist/client/ui/System/Auth/SignUp/SignUp.js.map +1 -0
- package/dist/client/ui/System/Auth/SignUp/SignUp.module.css.js +2 -0
- package/dist/{ui → client/ui}/System/Auth/SignUp/SignUp.module.css.js.map +1 -1
- package/dist/client/ui/System/Auth/SignUp/useSignUpForm.js +2 -0
- package/dist/client/ui/System/Auth/SignUp/useSignUpForm.js.map +1 -0
- package/dist/client/ui/System/Invitations/InvitationList.js +2 -0
- package/dist/client/ui/System/Invitations/InvitationList.js.map +1 -0
- package/dist/client/ui/System/Invitations/InvitationListActions.js +2 -0
- package/dist/client/ui/System/Invitations/InvitationListActions.js.map +1 -0
- package/dist/client/ui/System/Invitations/InvitationListCard.js +2 -0
- package/dist/client/ui/System/Invitations/InvitationListCard.js.map +1 -0
- package/dist/client/ui/System/Invitations/InvitationListPage.js +2 -0
- package/dist/client/ui/System/Invitations/InvitationListPage.js.map +1 -0
- package/dist/client/ui/System/Invitations/InvitationListPagination.js +2 -0
- package/dist/client/ui/System/Invitations/InvitationListPagination.js.map +1 -0
- package/dist/client/ui/System/Permissions/RoleListCard.js +2 -0
- package/dist/client/ui/System/Permissions/RoleListCard.js.map +1 -0
- package/dist/client/ui/System/Permissions/RolePermissionsPage.js +2 -0
- package/dist/client/ui/System/Permissions/RolePermissionsPage.js.map +1 -0
- package/dist/client/ui/System/Permissions/RolePermissionsTable.js +2 -0
- package/dist/client/ui/System/Permissions/RolePermissionsTable.js.map +1 -0
- package/dist/client/ui/System/SystemUser/CurrentSystemUserButton/CurrentSystemUserButton.js +2 -0
- package/dist/client/ui/System/SystemUser/CurrentSystemUserButton/CurrentSystemUserButton.js.map +1 -0
- package/dist/client/ui/System/SystemUser/CurrentSystemUserButton/CurrentSystemUserButton.module.css.js +2 -0
- package/dist/{ui → client/ui}/System/SystemUser/CurrentSystemUserButton/CurrentSystemUserButton.module.css.js.map +1 -1
- package/dist/client/ui/System/SystemUser/CurrentSystemUserPage.js +2 -0
- package/dist/client/ui/System/SystemUser/CurrentSystemUserPage.js.map +1 -0
- package/dist/client/ui/System/SystemUser/SystemUserActions.js +2 -0
- package/dist/client/ui/System/SystemUser/SystemUserActions.js.map +1 -0
- package/dist/client/ui/System/SystemUser/SystemUserDetails/SystemUserDetails.js +2 -0
- package/dist/client/ui/System/SystemUser/SystemUserDetails/SystemUserDetails.js.map +1 -0
- package/dist/client/ui/System/SystemUser/SystemUserDetails/SystemUserDetails.module.css.js +2 -0
- package/dist/{ui → client/ui}/System/SystemUser/SystemUserDetails/SystemUserDetails.module.css.js.map +1 -1
- package/dist/client/ui/System/SystemUser/SystemUserDetailsForm/SystemUserDetailsForm.js +2 -0
- package/dist/client/ui/System/SystemUser/SystemUserDetailsForm/SystemUserDetailsForm.js.map +1 -0
- package/dist/client/ui/System/SystemUser/SystemUserDetailsForm/SystemUserDetailsForm.module.css.js +2 -0
- package/dist/{ui → client/ui}/System/SystemUser/SystemUserDetailsForm/SystemUserDetailsForm.module.css.js.map +1 -1
- package/dist/client/ui/System/SystemUser/SystemUserList.js +2 -0
- package/dist/client/ui/System/SystemUser/SystemUserList.js.map +1 -0
- package/dist/client/ui/System/SystemUser/SystemUserListActions.js +2 -0
- package/dist/client/ui/System/SystemUser/SystemUserListActions.js.map +1 -0
- package/dist/client/ui/System/SystemUser/SystemUserListCard.js +2 -0
- package/dist/client/ui/System/SystemUser/SystemUserListCard.js.map +1 -0
- package/dist/client/ui/System/SystemUser/SystemUserListPage.js +2 -0
- package/dist/client/ui/System/SystemUser/SystemUserListPage.js.map +1 -0
- package/dist/client/ui/System/SystemUser/SystemUserListPagination.js +2 -0
- package/dist/client/ui/System/SystemUser/SystemUserListPagination.js.map +1 -0
- package/dist/client/ui/System/SystemUser/SystemUserPage.js +2 -0
- package/dist/client/ui/System/SystemUser/SystemUserPage.js.map +1 -0
- package/dist/client/ui/System/SystemUser/SystemUserPageContent.js +2 -0
- package/dist/client/ui/System/SystemUser/SystemUserPageContent.js.map +1 -0
- package/dist/client/ui/System/SystemUser/SystemUserRole/SystemUserRole.js +2 -0
- package/dist/client/ui/System/SystemUser/SystemUserRole/SystemUserRole.js.map +1 -0
- package/dist/client/ui/System/SystemUser/SystemUserRole/SystemUserRole.module.css.js +2 -0
- package/dist/{ui → client/ui}/System/SystemUser/SystemUserRole/SystemUserRole.module.css.js.map +1 -1
- package/dist/client/ui/System/SystemUser/SystemUserRoleForm/SystemUserRoleForm.js +2 -0
- package/dist/client/ui/System/SystemUser/SystemUserRoleForm/SystemUserRoleForm.js.map +1 -0
- package/dist/client/ui/System/SystemUser/SystemUserTimestamps.js +2 -0
- package/dist/client/ui/System/SystemUser/SystemUserTimestamps.js.map +1 -0
- package/dist/client/ui/System/WelcomePage/WelcomePage.js +2 -0
- package/dist/client/ui/System/WelcomePage/WelcomePage.js.map +1 -0
- package/dist/client/ui/System/WelcomePage/WelcomePage.module.css.js +2 -0
- package/dist/{ui → client/ui}/System/WelcomePage/WelcomePage.module.css.js.map +1 -1
- package/dist/{ui → client/ui}/System/types.d.ts +1 -1
- package/dist/index.css +1 -215
- package/dist/{clerk → server/clerk}/_index.d.ts +1 -1
- package/dist/{clerk → server/clerk}/actions/invitations.d.ts +1 -1
- package/dist/server/clerk/actions/invitations.js +2 -0
- package/dist/server/clerk/actions/invitations.js.map +1 -0
- package/dist/{clerk → server/clerk}/actions/systemUsers.d.ts +2 -2
- package/dist/server/clerk/actions/systemUsers.js +2 -0
- package/dist/server/clerk/actions/systemUsers.js.map +1 -0
- package/dist/{clerk → server/clerk}/auth.d.ts +1 -1
- package/dist/server/clerk/auth.js +2 -0
- package/dist/server/clerk/auth.js.map +1 -0
- package/dist/{clerk → server/clerk}/hasPermission.d.ts +1 -1
- package/dist/server/clerk/hasPermission.js +2 -0
- package/dist/server/clerk/hasPermission.js.map +1 -0
- package/dist/server/clerk/schemas/invitation.js +2 -0
- package/dist/server/clerk/schemas/invitation.js.map +1 -0
- package/dist/server/clerk/toClientSafeUser.js +2 -0
- package/dist/server/clerk/toClientSafeUser.js.map +1 -0
- package/dist/server/index.d.ts +5 -0
- package/dist/server/index.js +2 -0
- package/dist/server/index.js.map +1 -0
- package/package.json +14 -10
- package/dist/clerk/actions/invitations.js +0 -59
- package/dist/clerk/actions/invitations.js.map +0 -1
- package/dist/clerk/actions/systemUsers.js +0 -64
- package/dist/clerk/actions/systemUsers.js.map +0 -1
- package/dist/clerk/auth.js +0 -21
- package/dist/clerk/auth.js.map +0 -1
- package/dist/clerk/hasPermission.js +0 -78
- package/dist/clerk/hasPermission.js.map +0 -1
- package/dist/clerk/rbacConfig.js +0 -48
- package/dist/clerk/rbacConfig.js.map +0 -1
- package/dist/clerk/schemas/invitation.js +0 -20
- package/dist/clerk/schemas/invitation.js.map +0 -1
- package/dist/clerk/toClientSafeUser.js +0 -46
- package/dist/clerk/toClientSafeUser.js.map +0 -1
- package/dist/constants/defaults.d.ts +0 -6
- package/dist/constants/defaults.js +0 -56
- package/dist/constants/defaults.js.map +0 -1
- package/dist/constants/pageLimits.js +0 -5
- package/dist/constants/pageLimits.js.map +0 -1
- package/dist/index.js +0 -45
- package/dist/index.js.map +0 -1
- package/dist/providers/CMSRootProviders.js +0 -11
- package/dist/providers/CMSRootProviders.js.map +0 -1
- package/dist/ui/Inputs/ThemedMonacoEditor/ThemedMonacoEditor.js +0 -13
- package/dist/ui/Inputs/ThemedMonacoEditor/ThemedMonacoEditor.js.map +0 -1
- package/dist/ui/Inputs/ThemedMonacoEditor/ThemedMonacoEditor.module.css.js +0 -4
- package/dist/ui/Layout/CMSSecurityLayout.js +0 -18
- package/dist/ui/Layout/CMSSecurityLayout.js.map +0 -1
- package/dist/ui/Layout/CMSSidebar/CMSSidebar.js +0 -15
- package/dist/ui/Layout/CMSSidebar/CMSSidebar.js.map +0 -1
- package/dist/ui/Layout/CMSSidebar/CMSSidebarBody.js +0 -18
- package/dist/ui/Layout/CMSSidebar/CMSSidebarBody.js.map +0 -1
- package/dist/ui/Layout/CMSSidebar/CMSSidebarFooter/CMSSidebarFooter.js +0 -39
- package/dist/ui/Layout/CMSSidebar/CMSSidebarFooter/CMSSidebarFooter.js.map +0 -1
- package/dist/ui/Layout/CMSSidebar/CMSSidebarFooter/CMSSidebarFooter.module.css.js +0 -4
- package/dist/ui/Layout/CMSSidebar/CMSSidebarHeader/CMSSidebarHeader.js +0 -16
- package/dist/ui/Layout/CMSSidebar/CMSSidebarHeader/CMSSidebarHeader.js.map +0 -1
- package/dist/ui/Layout/CMSSidebar/CMSSidebarHeader/CMSSidebarHeader.module.css.js +0 -4
- package/dist/ui/System/Auth/SignIn/SignIn.js +0 -28
- package/dist/ui/System/Auth/SignIn/SignIn.js.map +0 -1
- package/dist/ui/System/Auth/SignIn/SignIn.module.css.js +0 -4
- package/dist/ui/System/Auth/SignIn/useSignInForm.js +0 -46
- package/dist/ui/System/Auth/SignIn/useSignInForm.js.map +0 -1
- package/dist/ui/System/Auth/SignUp/SignUp.js +0 -36
- package/dist/ui/System/Auth/SignUp/SignUp.js.map +0 -1
- package/dist/ui/System/Auth/SignUp/SignUp.module.css.js +0 -4
- package/dist/ui/System/Auth/SignUp/useSignUpForm.js +0 -58
- package/dist/ui/System/Auth/SignUp/useSignUpForm.js.map +0 -1
- package/dist/ui/System/Invitations/InvitationList.js +0 -11
- package/dist/ui/System/Invitations/InvitationList.js.map +0 -1
- package/dist/ui/System/Invitations/InvitationListActions.js +0 -39
- package/dist/ui/System/Invitations/InvitationListActions.js.map +0 -1
- package/dist/ui/System/Invitations/InvitationListCard.js +0 -16
- package/dist/ui/System/Invitations/InvitationListCard.js.map +0 -1
- package/dist/ui/System/Invitations/InvitationListPage.js +0 -22
- package/dist/ui/System/Invitations/InvitationListPage.js.map +0 -1
- package/dist/ui/System/Invitations/InvitationListPagination.js +0 -11
- package/dist/ui/System/Invitations/InvitationListPagination.js.map +0 -1
- package/dist/ui/System/Permissions/RoleListCard.js +0 -11
- package/dist/ui/System/Permissions/RoleListCard.js.map +0 -1
- package/dist/ui/System/Permissions/RolePermissionsPage.js +0 -14
- package/dist/ui/System/Permissions/RolePermissionsPage.js.map +0 -1
- package/dist/ui/System/Permissions/RolePermissionsTable.js +0 -28
- package/dist/ui/System/Permissions/RolePermissionsTable.js.map +0 -1
- package/dist/ui/System/SystemUser/CurrentSystemUserButton/CurrentSystemUserButton.js +0 -31
- package/dist/ui/System/SystemUser/CurrentSystemUserButton/CurrentSystemUserButton.js.map +0 -1
- package/dist/ui/System/SystemUser/CurrentSystemUserButton/CurrentSystemUserButton.module.css.js +0 -4
- package/dist/ui/System/SystemUser/CurrentSystemUserPage.js +0 -17
- package/dist/ui/System/SystemUser/CurrentSystemUserPage.js.map +0 -1
- package/dist/ui/System/SystemUser/SystemUserActions.js +0 -14
- package/dist/ui/System/SystemUser/SystemUserActions.js.map +0 -1
- package/dist/ui/System/SystemUser/SystemUserDetails/SystemUserDetails.js +0 -16
- package/dist/ui/System/SystemUser/SystemUserDetails/SystemUserDetails.js.map +0 -1
- package/dist/ui/System/SystemUser/SystemUserDetails/SystemUserDetails.module.css.js +0 -4
- package/dist/ui/System/SystemUser/SystemUserDetailsForm/SystemUserDetailsForm.js +0 -26
- package/dist/ui/System/SystemUser/SystemUserDetailsForm/SystemUserDetailsForm.js.map +0 -1
- package/dist/ui/System/SystemUser/SystemUserDetailsForm/SystemUserDetailsForm.module.css.js +0 -4
- package/dist/ui/System/SystemUser/SystemUserList.js +0 -11
- package/dist/ui/System/SystemUser/SystemUserList.js.map +0 -1
- package/dist/ui/System/SystemUser/SystemUserListActions.js +0 -11
- package/dist/ui/System/SystemUser/SystemUserListActions.js.map +0 -1
- package/dist/ui/System/SystemUser/SystemUserListCard.js +0 -34
- package/dist/ui/System/SystemUser/SystemUserListCard.js.map +0 -1
- package/dist/ui/System/SystemUser/SystemUserListPage.js +0 -24
- package/dist/ui/System/SystemUser/SystemUserListPage.js.map +0 -1
- package/dist/ui/System/SystemUser/SystemUserListPagination.js +0 -11
- package/dist/ui/System/SystemUser/SystemUserListPagination.js.map +0 -1
- package/dist/ui/System/SystemUser/SystemUserPage.js +0 -17
- package/dist/ui/System/SystemUser/SystemUserPage.js.map +0 -1
- package/dist/ui/System/SystemUser/SystemUserPageContent.js +0 -13
- package/dist/ui/System/SystemUser/SystemUserPageContent.js.map +0 -1
- package/dist/ui/System/SystemUser/SystemUserRole/SystemUserRole.js +0 -21
- package/dist/ui/System/SystemUser/SystemUserRole/SystemUserRole.js.map +0 -1
- package/dist/ui/System/SystemUser/SystemUserRole/SystemUserRole.module.css.js +0 -4
- package/dist/ui/System/SystemUser/SystemUserRoleForm/SystemUserRoleForm.js +0 -19
- package/dist/ui/System/SystemUser/SystemUserRoleForm/SystemUserRoleForm.js.map +0 -1
- package/dist/ui/System/SystemUser/SystemUserTimestamps.js +0 -27
- package/dist/ui/System/SystemUser/SystemUserTimestamps.js.map +0 -1
- package/dist/ui/System/WelcomePage/WelcomePage.js +0 -16
- package/dist/ui/System/WelcomePage/WelcomePage.js.map +0 -1
- package/dist/ui/System/WelcomePage/WelcomePage.module.css.js +0 -4
- package/dist/utils/_index.d.ts +0 -1
- package/dist/utils/proxyFunctions.d.ts +0 -4
- package/dist/utils/proxyFunctions.js +0 -34
- package/dist/utils/proxyFunctions.js.map +0 -1
- package/rollup.config.js +0 -48
- /package/dist/{clerk → client/clerk}/rbacConfig.d.ts +0 -0
- /package/dist/{constants → client/constants}/_index.d.ts +0 -0
- /package/dist/{constants → client/constants}/pageLimits.d.ts +0 -0
- /package/dist/{providers → client/providers}/CMSRootProviders.d.ts +0 -0
- /package/dist/{providers → client/providers}/_index.d.ts +0 -0
- /package/dist/{ui → client/ui}/Inputs/ThemedMonacoEditor/ThemedMonacoEditor.d.ts +0 -0
- /package/dist/{ui → client/ui}/Inputs/_index.d.ts +0 -0
- /package/dist/{ui → client/ui}/Layout/CMSSecurityLayout.d.ts +0 -0
- /package/dist/{ui → client/ui}/Layout/CMSSidebar/CMSSidebar.d.ts +0 -0
- /package/dist/{ui → client/ui}/Layout/CMSSidebar/CMSSidebarBody.d.ts +0 -0
- /package/dist/{ui → client/ui}/Layout/CMSSidebar/CMSSidebarFooter/CMSSidebarFooter.d.ts +0 -0
- /package/dist/{ui → client/ui}/Layout/CMSSidebar/CMSSidebarHeader/CMSSidebarHeader.d.ts +0 -0
- /package/dist/{ui → client/ui}/Layout/CMSSidebar/_index.d.ts +0 -0
- /package/dist/{ui → client/ui}/Layout/_index.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/Auth/SignIn/SignIn.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/Auth/SignIn/_index.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/Auth/SignIn/useSignInForm.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/Auth/SignUp/SignUp.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/Auth/SignUp/_index.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/Auth/SignUp/useSignUpForm.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/Auth/_index.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/Invitations/InvitationList.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/Invitations/InvitationListActions.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/Invitations/InvitationListCard.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/Invitations/InvitationListPage.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/Invitations/InvitationListPagination.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/Invitations/_index.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/Permissions/RoleListCard.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/Permissions/RolePermissionsPage.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/Permissions/RolePermissionsTable.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/Permissions/_index.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/SystemUser/CurrentSystemUserButton/CurrentSystemUserButton.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/SystemUser/CurrentSystemUserPage.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/SystemUser/SystemUserActions.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/SystemUser/SystemUserDetails/SystemUserDetails.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/SystemUser/SystemUserDetailsForm/SystemUserDetailsForm.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/SystemUser/SystemUserList.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/SystemUser/SystemUserListActions.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/SystemUser/SystemUserListCard.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/SystemUser/SystemUserListPage.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/SystemUser/SystemUserListPagination.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/SystemUser/SystemUserPage.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/SystemUser/SystemUserPageContent.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/SystemUser/SystemUserRole/SystemUserRole.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/SystemUser/SystemUserRoleForm/SystemUserRoleForm.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/SystemUser/SystemUserTimestamps.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/SystemUser/_index.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/WelcomePage/WelcomePage.d.ts +0 -0
- /package/dist/{ui → client/ui}/System/_index.d.ts +0 -0
- /package/dist/{ui → client/ui}/_index.d.ts +0 -0
- /package/dist/{clerk → server/clerk}/actions/_index.d.ts +0 -0
- /package/dist/{clerk → server/clerk}/schemas/_index.d.ts +0 -0
- /package/dist/{clerk → server/clerk}/schemas/invitation.d.ts +0 -0
- /package/dist/{clerk → server/clerk}/schemas/systemUser.d.ts +0 -0
- /package/dist/{clerk → server/clerk}/toClientSafeUser.d.ts +0 -0
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { PageTitle, Breadcrumbs } from '@studiocubics/components';
|
|
3
|
-
import { SystemUserPageContent } from './SystemUserPageContent.js';
|
|
4
|
-
import Link from 'next/link';
|
|
5
|
-
import { auth } from '../../../clerk/auth.js';
|
|
6
|
-
import { systemUserReadAction } from '../../../clerk/actions/systemUsers.js';
|
|
7
|
-
|
|
8
|
-
async function SystemUserPage({ params, }) {
|
|
9
|
-
const userId = (await params).userId;
|
|
10
|
-
const session = await auth();
|
|
11
|
-
const allowEdit = await session.hasPermission("systemUsers", "update");
|
|
12
|
-
const user = await systemUserReadAction(userId);
|
|
13
|
-
return (jsxs(Fragment, { children: [jsx(PageTitle, { size: "sm", title: jsxs(Breadcrumbs, { defaultActive: 1, children: [jsx("h4", { children: jsx(Link, { href: "/dashboard/security/systemUsers", children: "System Users" }) }), jsxs("h4", { children: [user.fullName, "'s Account"] })] }), noBorders: true }), jsx(SystemUserPageContent, { user: user, allowEdit: allowEdit })] }));
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export { SystemUserPage };
|
|
17
|
-
//# sourceMappingURL=SystemUserPage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SystemUserPage.js","sources":["../../../../src/ui/System/SystemUser/SystemUserPage.tsx"],"sourcesContent":["import { Breadcrumbs, PageTitle } from \"@studiocubics/components\";\nimport { SystemUserPageContent } from \"./SystemUserPageContent\";\nimport Link from \"next/link\";\nimport { auth } from \"../../../clerk/auth\";\nimport { systemUserReadAction } from \"../../../clerk/actions/systemUsers\";\nexport async function SystemUserPage({\n params,\n}: PageProps<\"/dashboard/security/systemUsers/[userId]\">) {\n const userId = (await params).userId;\n const session = await auth();\n const allowEdit = await session.hasPermission(\"systemUsers\", \"update\");\n const user = await systemUserReadAction(userId);\n return (\n <>\n <PageTitle\n size=\"sm\"\n title={\n <Breadcrumbs defaultActive={1}>\n <h4>\n <Link href={\"/dashboard/security/systemUsers\"}>System Users</Link>\n </h4>\n <h4>{user.fullName}'s Account</h4>\n </Breadcrumbs>\n }\n noBorders\n />\n <SystemUserPageContent user={user} allowEdit={allowEdit} />\n </>\n );\n}\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;AAKO,eAAe,cAAc,CAAC,EACnC,MAAM,GACgD,EAAA;IACtD,MAAM,MAAM,GAAG,CAAC,MAAM,MAAM,EAAE,MAAM;AACpC,IAAA,MAAM,OAAO,GAAG,MAAM,IAAI,EAAE;IAC5B,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,aAAa,CAAC,aAAa,EAAE,QAAQ,CAAC;AACtE,IAAA,MAAM,IAAI,GAAG,MAAM,oBAAoB,CAAC,MAAM,CAAC;IAC/C,QACEA,4BACEC,GAAA,CAAC,SAAS,IACR,IAAI,EAAC,IAAI,EACT,KAAK,EACHD,KAAC,WAAW,EAAA,EAAC,aAAa,EAAE,CAAC,EAAA,QAAA,EAAA,CAC3BC,sBACEA,GAAA,CAAC,IAAI,EAAA,EAAC,IAAI,EAAE,iCAAiC,6BAAqB,EAAA,CAC/D,EACLD,IAAA,CAAA,IAAA,EAAA,EAAA,QAAA,EAAA,CAAK,IAAI,CAAC,QAAQ,kBAAqB,CAAA,EAAA,CAC3B,EAEhB,SAAS,EAAA,IAAA,EAAA,CACT,EACFC,GAAA,CAAC,qBAAqB,EAAA,EAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAA,CAAI,CAAA,EAAA,CAC1D;AAEP;;;;"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { SectionWrapper } from '@studiocubics/components';
|
|
3
|
-
import { SystemUserDetails } from './SystemUserDetails/SystemUserDetails.js';
|
|
4
|
-
import { SystemUserRole } from './SystemUserRole/SystemUserRole.js';
|
|
5
|
-
import { SystemUserTimestamps } from './SystemUserTimestamps.js';
|
|
6
|
-
import Link from 'next/link';
|
|
7
|
-
|
|
8
|
-
function SystemUserPageContent({ allowEdit, user, }) {
|
|
9
|
-
return (jsxs(Fragment, { children: [jsx(SectionWrapper, { title: "Account Details", noBorders: true, children: jsx(SystemUserDetails, { editable: allowEdit, id: user.id, fullName: user.fullName, firstName: user.firstName, lastName: user.lastName, imageUrl: user.imageUrl, emailAddress: user.primaryEmailAddress?.emailAddress }) }), jsx(SectionWrapper, { title: "Account Timestamps", children: jsx(SystemUserTimestamps, { createdAt: user.createdAt, updatedAt: user.updatedAt, lastSignInAt: user.lastSignInAt }) }), jsx(SectionWrapper, { title: "Assigned Role", children: jsx(SystemUserRole, { role: user.publicMetadata.role, editable: allowEdit }) }), jsx(SectionWrapper, { title: "Active Sessions", subtitle: jsx("p", { style: { fontSize: "var(--fs-body2)" }, children: jsx(Link, { href: `/dashboard/security/systemUsers/${user.id}/sessions`, children: "View All Sessions" }) }) })] }));
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export { SystemUserPageContent };
|
|
13
|
-
//# sourceMappingURL=SystemUserPageContent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SystemUserPageContent.js","sources":["../../../../src/ui/System/SystemUser/SystemUserPageContent.tsx"],"sourcesContent":["import { SectionWrapper } from \"@studiocubics/components\";\nimport { SystemUserDetails } from \"./SystemUserDetails/SystemUserDetails\";\nimport { SystemUserRole } from \"./SystemUserRole/SystemUserRole\";\nimport { SystemUserTimestamps } from \"./SystemUserTimestamps\";\nimport Link from \"next/link\";\nimport type { User } from \"@clerk/nextjs/server\";\nimport type { Role } from \"../../../clerk/rbacConfig\";\n\nexport function SystemUserPageContent({\n allowEdit,\n user,\n}: {\n allowEdit: boolean;\n user: User;\n}) {\n return (\n <>\n <SectionWrapper title={\"Account Details\"} noBorders>\n <SystemUserDetails\n editable={allowEdit}\n id={user.id}\n fullName={user.fullName}\n firstName={user.firstName}\n lastName={user.lastName}\n imageUrl={user.imageUrl}\n emailAddress={user.primaryEmailAddress?.emailAddress}\n />\n </SectionWrapper>\n <SectionWrapper title={\"Account Timestamps\"}>\n <SystemUserTimestamps\n createdAt={user.createdAt}\n updatedAt={user.updatedAt}\n lastSignInAt={user.lastSignInAt}\n />\n </SectionWrapper>\n <SectionWrapper title={\"Assigned Role\"}>\n <SystemUserRole\n role={user.publicMetadata.role as Role}\n editable={allowEdit}\n />\n </SectionWrapper>\n <SectionWrapper\n title={\"Active Sessions\"}\n subtitle={\n <p style={{ fontSize: \"var(--fs-body2)\" }}>\n <Link href={`/dashboard/security/systemUsers/${user.id}/sessions`}>\n View All Sessions\n </Link>\n </p>\n }\n ></SectionWrapper>\n </>\n );\n}\n"],"names":["_jsxs","_Fragment","_jsx"],"mappings":";;;;;;;SAQgB,qBAAqB,CAAC,EACpC,SAAS,EACT,IAAI,GAIL,EAAA;AACC,IAAA,QACEA,IAAA,CAAAC,QAAA,EAAA,EAAA,QAAA,EAAA,CACEC,GAAA,CAAC,cAAc,IAAC,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAA,IAAA,EAAA,QAAA,EACjDA,GAAA,CAAC,iBAAiB,IAChB,QAAQ,EAAE,SAAS,EACnB,EAAE,EAAE,IAAI,CAAC,EAAE,EACX,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,YAAY,EAAE,IAAI,CAAC,mBAAmB,EAAE,YAAY,EAAA,CACpD,EAAA,CACa,EACjBA,GAAA,CAAC,cAAc,EAAA,EAAC,KAAK,EAAE,oBAAoB,YACzCA,GAAA,CAAC,oBAAoB,EAAA,EACnB,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,YAAY,EAAE,IAAI,CAAC,YAAY,EAAA,CAC/B,EAAA,CACa,EACjBA,GAAA,CAAC,cAAc,EAAA,EAAC,KAAK,EAAE,eAAe,EAAA,QAAA,EACpCA,GAAA,CAAC,cAAc,EAAA,EACb,IAAI,EAAE,IAAI,CAAC,cAAc,CAAC,IAAY,EACtC,QAAQ,EAAE,SAAS,EAAA,CACnB,EAAA,CACa,EACjBA,GAAA,CAAC,cAAc,EAAA,EACb,KAAK,EAAE,iBAAiB,EACxB,QAAQ,EACNA,GAAA,CAAA,GAAA,EAAA,EAAG,KAAK,EAAE,EAAE,QAAQ,EAAE,iBAAiB,EAAE,EAAA,QAAA,EACvCA,GAAA,CAAC,IAAI,EAAA,EAAC,IAAI,EAAE,CAAA,gCAAA,EAAmC,IAAI,CAAC,EAAE,WAAW,EAAA,QAAA,EAAA,mBAAA,EAAA,CAE1D,EAAA,CACL,EAAA,CAEU,CAAA,EAAA,CACjB;AAEP;;;;"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { toCapitalised } from '@studiocubics/utils';
|
|
4
|
-
import { User, Edit } from 'lucide-react';
|
|
5
|
-
import { TransitionAnimation, Tooltip, Button } from '@studiocubics/components';
|
|
6
|
-
import Link from 'next/link';
|
|
7
|
-
import { useDisclosure } from '@studiocubics/hooks';
|
|
8
|
-
import styles from './SystemUserRole.module.css.js';
|
|
9
|
-
import { RBAC_CONFIG } from '../../../../clerk/rbacConfig.js';
|
|
10
|
-
import { SystemUserRoleForm } from '../SystemUserRoleForm/SystemUserRoleForm.js';
|
|
11
|
-
|
|
12
|
-
function SystemUserRole({ role, editable }) {
|
|
13
|
-
const roleDetails = RBAC_CONFIG[role];
|
|
14
|
-
const { open, handleOpen, handleClose } = useDisclosure();
|
|
15
|
-
if (!roleDetails)
|
|
16
|
-
return null;
|
|
17
|
-
return (jsxs(Fragment, { children: [jsx(TransitionAnimation, { in: !open, transformOrigin: "top", mountOnly: true, unmountOnExit: true, children: jsxs("div", { className: styles.root, children: [jsxs("div", { className: styles.main, children: [jsx(Tooltip, { renderArrow: true, title: "View resource permissions", children: jsx(Button, { as: Link, variant: "contained", color: "primary", startIcon: jsx(User, { size: 16 }), size: "sm", href: `/dashboard/security/permissions/${role}`, children: toCapitalised(role) }) }), jsx("p", { children: roleDetails.desc })] }), editable && (jsx(Button, { size: "sm", startIcon: jsx(Edit, {}), onClick: handleOpen, children: "Edit Role" }))] }) }), jsx(TransitionAnimation, { in: open, transformOrigin: "top right", mountOnly: true, unmountOnExit: true, children: jsx(SystemUserRoleForm, { role: role, onClose: handleClose }) })] }));
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export { SystemUserRole };
|
|
21
|
-
//# sourceMappingURL=SystemUserRole.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SystemUserRole.js","sources":["../../../../../src/ui/System/SystemUser/SystemUserRole/SystemUserRole.tsx"],"sourcesContent":["\"use client\";\n\nimport { toCapitalised } from \"@studiocubics/utils\";\nimport { Edit, User } from \"lucide-react\";\nimport { Button, Tooltip, TransitionAnimation } from \"@studiocubics/components\";\nimport Link from \"next/link\";\nimport { useDisclosure } from \"@studiocubics/hooks\";\nimport styles from \"./SystemUserRole.module.css\";\nimport { RBAC_CONFIG, type Role } from \"../../../../clerk/rbacConfig\";\nimport type { Route } from \"next\";\nimport { SystemUserRoleForm } from \"../SystemUserRoleForm/SystemUserRoleForm\";\n\nexport interface SystemUserRoleProps {\n role: Role;\n editable?: boolean;\n}\n\nexport function SystemUserRole({ role, editable }: SystemUserRoleProps) {\n const roleDetails = RBAC_CONFIG[role];\n const { open, handleOpen, handleClose } = useDisclosure();\n if (!roleDetails) return null;\n\n return (\n <>\n <TransitionAnimation\n in={!open}\n transformOrigin={\"top\"}\n mountOnly\n unmountOnExit\n >\n <div className={styles.root}>\n <div className={styles.main}>\n <Tooltip renderArrow title={\"View resource permissions\"}>\n <Button\n as={Link}\n variant=\"contained\"\n color=\"primary\"\n startIcon={<User size={16} />}\n size=\"sm\"\n href={`/dashboard/security/permissions/${role}` as Route}\n >\n {toCapitalised(role)}\n </Button>\n </Tooltip>\n <p>{roleDetails.desc}</p>\n </div>\n {editable && (\n <Button size=\"sm\" startIcon={<Edit />} onClick={handleOpen}>\n Edit Role\n </Button>\n )}\n </div>\n </TransitionAnimation>\n <TransitionAnimation\n in={open}\n transformOrigin={\"top right\"}\n mountOnly\n unmountOnExit\n >\n <SystemUserRoleForm role={role} onClose={handleClose} />\n </TransitionAnimation>\n </>\n );\n}\n"],"names":["_jsxs","_Fragment","_jsx"],"mappings":";;;;;;;;;;;SAiBgB,cAAc,CAAC,CAAA,CAAE,IAAI,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,EAAuB,CAAA,CAAA;AACpE,CAAA,CAAA,CAAA,CAAA,MAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAC,IAAI,CAAC;IACrC,CAAA,CAAA,CAA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,CAAA,CAAE,CAAA,CAAA,CAAA,CAAI,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAA,CAAA,CAAI,CAAA,CAAA,CACpC,CAAA,CAAA,CAAA,CACrB,CAAA;AAEP;;"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { Card, ConfirmationForm, Select } from '@studiocubics/components';
|
|
4
|
-
import { initialiseForm, toCapitalised } from '@studiocubics/utils';
|
|
5
|
-
import { roles } from '../../../../clerk/rbacConfig.js';
|
|
6
|
-
import { useActionState } from 'react';
|
|
7
|
-
import '../../../../clerk/actions/invitations.js';
|
|
8
|
-
import { systemUserRoleUpdateAction } from '../../../../clerk/actions/systemUsers.js';
|
|
9
|
-
import '@clerk/nextjs/server';
|
|
10
|
-
import '../../../../clerk/schemas/invitation.js';
|
|
11
|
-
|
|
12
|
-
const initialSystemUserRoleUpdateState = initialiseForm("role");
|
|
13
|
-
function SystemUserRoleForm({ role, onClose, ...rest }) {
|
|
14
|
-
const [state, action, pending] = useActionState(systemUserRoleUpdateAction.bind(null, "hello"), initialSystemUserRoleUpdateState);
|
|
15
|
-
return (jsx(Card, { ...rest, fullWidth: true, children: jsx(ConfirmationForm, { variant: "danger", confirmText: "Change Role", action: action, formTitle: "Edit Role", onCancel: onClose, children: jsx(Select, { label: "Current role", error: state.fieldErrors?.role, defaultValue: role, disabled: pending, children: roles.map((r) => (jsx("option", { value: r, children: toCapitalised(r) }, r))) }) }) }));
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export { SystemUserRoleForm };
|
|
19
|
-
//# sourceMappingURL=SystemUserRoleForm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SystemUserRoleForm.js","sources":["../../../../../src/ui/System/SystemUser/SystemUserRoleForm/SystemUserRoleForm.tsx"],"sourcesContent":["\"use client\";\n\nimport {\n type CardProps,\n Card,\n ConfirmationForm,\n Select,\n} from \"@studiocubics/components\";\nimport { initialiseForm, toCapitalised } from \"@studiocubics/utils\";\nimport { type Role, roles } from \"../../../../clerk/rbacConfig\";\nimport { useActionState } from \"react\";\nimport { systemUserRoleUpdateAction } from \"../../../../clerk/_index\";\n\nconst initialSystemUserRoleUpdateState = initialiseForm(\"role\");\n\nexport type SystemUserRoleUpdateState = typeof initialSystemUserRoleUpdateState;\n\nexport function SystemUserRoleForm({\n role,\n onClose,\n ...rest\n}: { role: Role; onClose(): void } & CardProps) {\n const [state, action, pending] = useActionState(\n systemUserRoleUpdateAction.bind(null, \"hello\"),\n initialSystemUserRoleUpdateState,\n );\n return (\n <Card {...rest} fullWidth>\n <ConfirmationForm\n variant=\"danger\"\n confirmText=\"Change Role\"\n action={action}\n formTitle=\"Edit Role\"\n onCancel={onClose}\n >\n <Select\n label=\"Current role\"\n error={state.fieldErrors?.role}\n defaultValue={role}\n disabled={pending}\n >\n {roles.map((r) => (\n <option key={r} value={r}>\n {toCapitalised(r)}\n </option>\n ))}\n </Select>\n </ConfirmationForm>\n </Card>\n );\n}\n"],"names":["_jsx"],"mappings":";;;;;;;;;;;AAaA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgC,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAC,MAAM,CAAC;AAIzD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAA,CAA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AA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAA,WAEhB,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAG,CAAC,CAAC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CACXA,CAAAA,CAAAA,cAAgB,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAE,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACrB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAC,CAAC,CAAC,CAAA,CAAA,CAAA,CADN,CAAC,CAEL,CACV,CAAC,GACK,CAAA,CAAA,CACQ,CAAA,CAAA,CACd,CAAA;AAEX;;"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { useUser } from '@clerk/nextjs';
|
|
4
|
-
import { LabeledValue, Skeleton } from '@studiocubics/components';
|
|
5
|
-
|
|
6
|
-
function CurrentSystemUserTimestamps() {
|
|
7
|
-
const { user, isLoaded } = useUser();
|
|
8
|
-
// if (!user) return null;
|
|
9
|
-
return (jsx(SystemUserTimestamps, { isLoaded: isLoaded, createdAt: user?.createdAt, updatedAt: user?.updatedAt, lastSignInAt: user?.lastSignInAt }));
|
|
10
|
-
}
|
|
11
|
-
function SystemUserTimestamps(props) {
|
|
12
|
-
const { createdAt, updatedAt, lastSignInAt, isLoaded = true } = props;
|
|
13
|
-
const timestamps = [
|
|
14
|
-
{ stamp: "Created at", time: createdAt },
|
|
15
|
-
{ stamp: "Updated", time: updatedAt },
|
|
16
|
-
{ stamp: "Last Sign in", time: lastSignInAt },
|
|
17
|
-
];
|
|
18
|
-
return timestamps.map((timestamp) => {
|
|
19
|
-
let timestampTime = timestamp.time && typeof timestamp.time == "number"
|
|
20
|
-
? new Date(timestamp.time)
|
|
21
|
-
: timestamp.time;
|
|
22
|
-
return (jsx(LabeledValue, { label: timestamp.stamp, children: isLoaded ? (!timestamp.time ? ("-") : (timestampTime?.toLocaleString())) : (jsx(Skeleton, { width: 150, height: 24 })) }, timestamp.stamp));
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export { CurrentSystemUserTimestamps, SystemUserTimestamps };
|
|
27
|
-
//# sourceMappingURL=SystemUserTimestamps.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SystemUserTimestamps.js","sources":["../../../../src/ui/System/SystemUser/SystemUserTimestamps.tsx"],"sourcesContent":["\"use client\";\n\nimport { useUser } from \"@clerk/nextjs\";\nimport type { User } from \"@clerk/nextjs/server\";\nimport { LabeledValue, Skeleton } from \"@studiocubics/components\";\n\nexport function CurrentSystemUserTimestamps() {\n const { user, isLoaded } = useUser();\n // if (!user) return null;\n return (\n <SystemUserTimestamps\n isLoaded={isLoaded}\n createdAt={user?.createdAt}\n updatedAt={user?.updatedAt}\n lastSignInAt={user?.lastSignInAt}\n />\n );\n}\nexport interface SystemUserTimestampsProps {\n createdAt?: User[\"createdAt\"] | NonNullable<ClerkClientUser>[\"createdAt\"];\n updatedAt?: User[\"updatedAt\"] | NonNullable<ClerkClientUser>[\"updatedAt\"];\n lastSignInAt?:\n | User[\"lastSignInAt\"]\n | NonNullable<ClerkClientUser>[\"lastSignInAt\"];\n isLoaded?: boolean;\n}\n\nexport function SystemUserTimestamps(props: SystemUserTimestampsProps) {\n const { createdAt, updatedAt, lastSignInAt, isLoaded = true } = props;\n const timestamps = [\n { stamp: \"Created at\", time: createdAt },\n { stamp: \"Updated\", time: updatedAt },\n { stamp: \"Last Sign in\", time: lastSignInAt },\n ];\n\n return timestamps.map((timestamp) => {\n let timestampTime =\n timestamp.time && typeof timestamp.time == \"number\"\n ? new Date(timestamp.time)\n : timestamp.time;\n\n return (\n <LabeledValue key={timestamp.stamp} label={timestamp.stamp}>\n {isLoaded ? (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AA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,EAAA,CAAA,CAAuB,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACvD,QAAQ,CAAA,CAAA,CAAA,CACP,CAAC,SAAS,CAAC,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA,CAAA,CACb,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAA,CAEH,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,EAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAA,CAAE,CAChC,CAAA,CAAA,CAAA,CAAA,CAEDA,CAAAA,CAAAA,CAAA,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAE,CAAA,CAAA,CAAG,EAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAE,CAAA,CAAE,CAAA,CAAA,CAAI,CACrC,EAAA,CAAA,CATgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAUnB,CAAA;AAEnB,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC;AACJ;;"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import { Button, CubicsUILogo, PoweredByBanner } from '@studiocubics/components';
|
|
3
|
-
import styles from './WelcomePage.module.css.js';
|
|
4
|
-
import Link from 'next/link';
|
|
5
|
-
import { LogIn, LayoutDashboardIcon } from 'lucide-react';
|
|
6
|
-
import { auth } from '../../../clerk/auth.js';
|
|
7
|
-
|
|
8
|
-
async function WelcomePage() {
|
|
9
|
-
const { userId } = await auth();
|
|
10
|
-
const loggedOutUser = (jsx(Link, { href: "/auth/signIn/", children: jsx(Button, { variant: "contained", endIcon: jsx(LogIn, {}), children: "Get Started" }) }));
|
|
11
|
-
const loggedInUser = (jsx(Link, { href: "/dashboard", children: jsx(Button, { variant: "contained", endIcon: jsx(LayoutDashboardIcon, {}), children: "Go to dashboard" }) }));
|
|
12
|
-
return (jsxs("div", { className: styles.root, children: [jsx(CubicsUILogo, { width: "10rem", height: "auto", onlyFavicon: true }), jsx(PoweredByBanner, { size: "md" }), jsx("h2", { children: "Welcome to Cubics CMS!" }), jsx("p", { className: styles.desc, children: "A powerful and intuitive platform to manage your content effortlessly. Streamline updates, enhance collaboration, and take full control of your digital presence." }), userId ? loggedInUser : loggedOutUser, !userId && (jsxs("p", { className: styles.catcall, children: ["Dont have an account?\u00A0", jsx(Link, { href: "/auth/requestAccount", children: "Request from an admin" })] }))] }));
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export { WelcomePage };
|
|
16
|
-
//# sourceMappingURL=WelcomePage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WelcomePage.js","sources":["../../../../src/ui/System/WelcomePage/WelcomePage.tsx"],"sourcesContent":["import { Button, CubicsUILogo, PoweredByBanner } from \"@studiocubics/components\";\nimport styles from \"./WelcomePage.module.css\";\nimport Link from \"next/link\";\nimport { LayoutDashboardIcon, LogIn } from \"lucide-react\";\nimport { auth } from \"../../../clerk/auth\";\nexport async function WelcomePage() {\n const { userId } = await auth();\n const loggedOutUser = (\n <Link href={\"/auth/signIn/\"}>\n <Button variant=\"contained\" endIcon={<LogIn />}>\n Get Started\n </Button>\n </Link>\n );\n const loggedInUser = (\n <Link href={\"/dashboard\"}>\n <Button variant=\"contained\" endIcon={<LayoutDashboardIcon />}>\n Go to dashboard\n </Button>\n </Link>\n );\n return (\n <div className={styles.root}>\n <CubicsUILogo width={\"10rem\"} height={\"auto\"} onlyFavicon />\n <PoweredByBanner size={\"md\"} />\n <h2>Welcome to Cubics CMS!</h2>\n <p className={styles.desc}>\n A powerful and intuitive platform to manage your content effortlessly.\n Streamline updates, enhance collaboration, and take full control of your\n digital presence.\n </p>\n {userId ? loggedInUser : loggedOutUser}\n {!userId && (\n <p className={styles.catcall}>\n Dont have an account? \n {/* TODO add request account from admin flow.\n //@ts-ignore */}\n <Link href=\"/auth/requestAccount\">Request from an admin</Link>\n </p>\n )}\n </div>\n );\n}\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;AAKO,eAAe,WAAW,GAAA;AAC/B,IAAA,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,IAAI,EAAE;IAC/B,MAAM,aAAa,IACjBA,GAAA,CAAC,IAAI,IAAC,IAAI,EAAE,eAAe,EAAA,QAAA,EACzBA,GAAA,CAAC,MAAM,IAAC,OAAO,EAAC,WAAW,EAAC,OAAO,EAAEA,GAAA,CAAC,KAAK,EAAA,EAAA,CAAG,EAAA,QAAA,EAAA,aAAA,EAAA,CAErC,EAAA,CACJ,CACR;IACD,MAAM,YAAY,IAChBA,GAAA,CAAC,IAAI,IAAC,IAAI,EAAE,YAAY,EAAA,QAAA,EACtBA,GAAA,CAAC,MAAM,IAAC,OAAO,EAAC,WAAW,EAAC,OAAO,EAAEA,GAAA,CAAC,mBAAmB,EAAA,EAAA,CAAG,EAAA,QAAA,EAAA,iBAAA,EAAA,CAEnD,EAAA,CACJ,CACR;AACD,IAAA,QACEC,IAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,MAAM,CAAC,IAAI,EAAA,QAAA,EAAA,CACzBD,GAAA,CAAC,YAAY,EAAA,EAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAA,IAAA,EAAA,CAAG,EAC5DA,GAAA,CAAC,eAAe,EAAA,EAAC,IAAI,EAAE,IAAI,GAAI,EAC/BA,GAAA,CAAA,IAAA,EAAA,EAAA,QAAA,EAAA,wBAAA,EAAA,CAA+B,EAC/BA,GAAA,CAAA,GAAA,EAAA,EAAG,SAAS,EAAE,MAAM,CAAC,IAAI,EAAA,QAAA,EAAA,mKAAA,EAAA,CAIrB,EACH,MAAM,GAAG,YAAY,GAAG,aAAa,EACrC,CAAC,MAAM,KACNC,IAAA,CAAA,GAAA,EAAA,EAAG,SAAS,EAAE,MAAM,CAAC,OAAO,EAAA,QAAA,EAAA,CAAA,6BAAA,EAI1BD,IAAC,IAAI,EAAA,EAAC,IAAI,EAAC,sBAAsB,EAAA,QAAA,EAAA,uBAAA,EAAA,CAA6B,CAAA,EAAA,CAC5D,CACL,CAAA,EAAA,CACG;AAEV;;;;"}
|
package/dist/utils/_index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./proxyFunctions";
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { createRouteMatcher, clerkMiddleware } from '@clerk/nextjs/server';
|
|
2
|
-
import { NextResponse } from 'next/server';
|
|
3
|
-
|
|
4
|
-
const isPublicRoute = createRouteMatcher(["/", "/auth(.*)"]);
|
|
5
|
-
const cmsMiddleware = clerkMiddleware(async (auth, req) => {
|
|
6
|
-
const { userId, sessionClaims, redirectToSignIn } = await auth();
|
|
7
|
-
// If the user isn't signed in and the route is private, redirect to sign-in
|
|
8
|
-
if (!userId && !isPublicRoute(req)) {
|
|
9
|
-
return redirectToSignIn({ returnBackUrl: req.url });
|
|
10
|
-
}
|
|
11
|
-
// Catch users who do not have `onboardingComplete: true` in their publicMetadata
|
|
12
|
-
// Redirect them to the /auth/onboarding route to complete onboarding
|
|
13
|
-
if (userId &&
|
|
14
|
-
!sessionClaims?.metadata?.onboardingComplete &&
|
|
15
|
-
req.nextUrl.pathname !== "/auth/onboarding") {
|
|
16
|
-
const onboardingUrl = new URL("/auth/onboarding", req.url);
|
|
17
|
-
return NextResponse.redirect(onboardingUrl);
|
|
18
|
-
}
|
|
19
|
-
// If the user is logged in and the route is protected, let them view.
|
|
20
|
-
if (userId && !isPublicRoute(req)) {
|
|
21
|
-
return NextResponse.next();
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
const cmsConfig = {
|
|
25
|
-
matcher: [
|
|
26
|
-
// Skip Next.js internals and all static files, unless found in search params
|
|
27
|
-
"/((?!_next|[^?]*\\.(?:html?|css|js(?!on)|jpe?g|webp|png|gif|svg|ttf|woff2?|ico|csv|docx?|xlsx?|zip|webmanifest)).*)",
|
|
28
|
-
// Always run for API routes
|
|
29
|
-
"/(api|trpc)(.*)",
|
|
30
|
-
],
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export { cmsConfig, cmsMiddleware };
|
|
34
|
-
//# sourceMappingURL=proxyFunctions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"proxyFunctions.js","sources":["../../src/utils/proxyFunctions.ts"],"sourcesContent":["import { clerkMiddleware, createRouteMatcher } from \"@clerk/nextjs/server\";\nimport { NextResponse } from \"next/server\";\n\nconst isPublicRoute = createRouteMatcher([\"/\", \"/auth(.*)\"]);\n\nexport const cmsMiddleware = clerkMiddleware(async (auth, req) => {\n const { userId, sessionClaims, redirectToSignIn } = await auth();\n\n // If the user isn't signed in and the route is private, redirect to sign-in\n if (!userId && !isPublicRoute(req)) {\n return redirectToSignIn({ returnBackUrl: req.url });\n }\n\n // Catch users who do not have `onboardingComplete: true` in their publicMetadata\n // Redirect them to the /auth/onboarding route to complete onboarding\n if (\n userId &&\n !sessionClaims?.metadata?.onboardingComplete &&\n req.nextUrl.pathname !== \"/auth/onboarding\"\n ) {\n const onboardingUrl = new URL(\"/auth/onboarding\", req.url);\n return NextResponse.redirect(onboardingUrl);\n }\n\n // If the user is logged in and the route is protected, let them view.\n if (userId && !isPublicRoute(req)) {\n return NextResponse.next();\n }\n});\nexport const cmsConfig = {\n matcher: [\n // Skip Next.js internals and all static files, unless found in search params\n \"/((?!_next|[^?]*\\\\.(?:html?|css|js(?!on)|jpe?g|webp|png|gif|svg|ttf|woff2?|ico|csv|docx?|xlsx?|zip|webmanifest)).*)\",\n // Always run for API routes\n \"/(api|trpc)(.*)\",\n ],\n};\n"],"names":[],"mappings":";;;AAGA,MAAM,aAAa,GAAG,kBAAkB,CAAC,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;AAErD,MAAM,aAAa,GAAG,eAAe,CAAC,OAAO,IAAI,EAAE,GAAG,KAAI;IAC/D,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,gBAAgB,EAAE,GAAG,MAAM,IAAI,EAAE;;IAGhE,IAAI,CAAC,MAAM,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE;QAClC,OAAO,gBAAgB,CAAC,EAAE,aAAa,EAAE,GAAG,CAAC,GAAG,EAAE,CAAC;IACrD;;;AAIA,IAAA,IACE,MAAM;AACN,QAAA,CAAC,aAAa,EAAE,QAAQ,EAAE,kBAAkB;AAC5C,QAAA,GAAG,CAAC,OAAO,CAAC,QAAQ,KAAK,kBAAkB,EAC3C;QACA,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,kBAAkB,EAAE,GAAG,CAAC,GAAG,CAAC;AAC1D,QAAA,OAAO,YAAY,CAAC,QAAQ,CAAC,aAAa,CAAC;IAC7C;;IAGA,IAAI,MAAM,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE;AACjC,QAAA,OAAO,YAAY,CAAC,IAAI,EAAE;IAC5B;AACF,CAAC;AACM,MAAM,SAAS,GAAG;AACvB,IAAA,OAAO,EAAE;;QAEP,qHAAqH;;QAErH,iBAAiB;AAClB,KAAA;;;;;"}
|
package/rollup.config.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from "rollup";
|
|
2
|
-
import typescript from "@rollup/plugin-typescript";
|
|
3
|
-
import postcss from "rollup-plugin-postcss";
|
|
4
|
-
import terser from "@rollup/plugin-terser";
|
|
5
|
-
import preserveDirectives from "rollup-preserve-directives";
|
|
6
|
-
|
|
7
|
-
export default defineConfig({
|
|
8
|
-
input: "src/index.ts",
|
|
9
|
-
output: {
|
|
10
|
-
preserveModules: true,
|
|
11
|
-
preserveModulesRoot: "src",
|
|
12
|
-
dir: "dist",
|
|
13
|
-
format: "esm",
|
|
14
|
-
sourcemap: true,
|
|
15
|
-
},
|
|
16
|
-
plugins: [
|
|
17
|
-
preserveDirectives(),
|
|
18
|
-
postcss({
|
|
19
|
-
include: ["globals.css", "**/*.module.css"],
|
|
20
|
-
modules: true,
|
|
21
|
-
extract: true,
|
|
22
|
-
// minimize: true,
|
|
23
|
-
}),
|
|
24
|
-
typescript({ tsconfig: "./tsconfig.json" }),
|
|
25
|
-
// terser({ compress: { directives: false } }),
|
|
26
|
-
],
|
|
27
|
-
external: [
|
|
28
|
-
"lucide-react",
|
|
29
|
-
"next/cache",
|
|
30
|
-
"next/font/google",
|
|
31
|
-
"next/headers",
|
|
32
|
-
"next/link",
|
|
33
|
-
"next/navigation",
|
|
34
|
-
"next/server",
|
|
35
|
-
"next-themes",
|
|
36
|
-
"react/jsx-runtime",
|
|
37
|
-
"react",
|
|
38
|
-
"react-dom",
|
|
39
|
-
"@clerk/nextjs",
|
|
40
|
-
"@clerk/nextjs/server",
|
|
41
|
-
"@monaco-editor/react",
|
|
42
|
-
"@studiocubics/components",
|
|
43
|
-
"@studiocubics/utils",
|
|
44
|
-
"@studiocubics/hooks",
|
|
45
|
-
"@studiocubics/next",
|
|
46
|
-
"zod",
|
|
47
|
-
],
|
|
48
|
-
});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{ui → client/ui}/System/SystemUser/SystemUserDetailsForm/SystemUserDetailsForm.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|