@orthacms/workspaces-admin 0.0.0-reserve.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 +21 -0
- package/README.md +7 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/lib/api/useAddWorkspaceContent/index.d.ts +15 -0
- package/dist/lib/api/useAddWorkspaceContent/index.d.ts.map +1 -0
- package/dist/lib/api/useAddWorkspaceMember/index.d.ts +14 -0
- package/dist/lib/api/useAddWorkspaceMember/index.d.ts.map +1 -0
- package/dist/lib/api/useContentTypes/index.d.ts +10 -0
- package/dist/lib/api/useContentTypes/index.d.ts.map +1 -0
- package/dist/lib/api/useCreateWorkspace/index.d.ts +20 -0
- package/dist/lib/api/useCreateWorkspace/index.d.ts.map +1 -0
- package/dist/lib/api/useDeleteWorkspace/index.d.ts +13 -0
- package/dist/lib/api/useDeleteWorkspace/index.d.ts.map +1 -0
- package/dist/lib/api/useRemoveWorkspaceContent/index.d.ts +15 -0
- package/dist/lib/api/useRemoveWorkspaceContent/index.d.ts.map +1 -0
- package/dist/lib/api/useRemoveWorkspaceMember/index.d.ts +13 -0
- package/dist/lib/api/useRemoveWorkspaceMember/index.d.ts.map +1 -0
- package/dist/lib/api/useSetWorkspaceStatus/index.d.ts +14 -0
- package/dist/lib/api/useSetWorkspaceStatus/index.d.ts.map +1 -0
- package/dist/lib/api/useSlugAvailability/index.d.ts +10 -0
- package/dist/lib/api/useSlugAvailability/index.d.ts.map +1 -0
- package/dist/lib/api/useUpdateWorkspace/index.d.ts +23 -0
- package/dist/lib/api/useUpdateWorkspace/index.d.ts.map +1 -0
- package/dist/lib/api/useUsersSearch/index.d.ts +17 -0
- package/dist/lib/api/useUsersSearch/index.d.ts.map +1 -0
- package/dist/lib/api/useWorkspaceContentCount/index.d.ts +8 -0
- package/dist/lib/api/useWorkspaceContentCount/index.d.ts.map +1 -0
- package/dist/lib/api/useWorkspaceEntryCount/index.d.ts +8 -0
- package/dist/lib/api/useWorkspaceEntryCount/index.d.ts.map +1 -0
- package/dist/lib/api/useWorkspaces/index.d.ts +30 -0
- package/dist/lib/api/useWorkspaces/index.d.ts.map +1 -0
- package/dist/lib/application/useAddWorkspaceContent/index.d.ts +9 -0
- package/dist/lib/application/useAddWorkspaceContent/index.d.ts.map +1 -0
- package/dist/lib/application/useAddWorkspaceContent/index.js +15 -0
- package/dist/lib/application/useAddWorkspaceMember/index.d.ts +8 -0
- package/dist/lib/application/useAddWorkspaceMember/index.d.ts.map +1 -0
- package/dist/lib/application/useAddWorkspaceMember/index.js +14 -0
- package/dist/lib/application/useContentTypes/index.d.ts +9 -0
- package/dist/lib/application/useContentTypes/index.d.ts.map +1 -0
- package/dist/lib/application/useContentTypes/index.js +16 -0
- package/dist/lib/application/useCreateWorkspace/index.d.ts +20 -0
- package/dist/lib/application/useCreateWorkspace/index.d.ts.map +1 -0
- package/dist/lib/application/useCreateWorkspace/index.js +44 -0
- package/dist/lib/application/useCreateWorkspaceFlow/index.d.ts +23 -0
- package/dist/lib/application/useCreateWorkspaceFlow/index.d.ts.map +1 -0
- package/dist/lib/application/useCreateWorkspaceFlow/index.js +81 -0
- package/dist/lib/application/useDeleteWorkspace/index.d.ts +13 -0
- package/dist/lib/application/useDeleteWorkspace/index.d.ts.map +1 -0
- package/dist/lib/application/useDeleteWorkspace/index.js +23 -0
- package/dist/lib/application/useRemoveWorkspaceContent/index.d.ts +9 -0
- package/dist/lib/application/useRemoveWorkspaceContent/index.d.ts.map +1 -0
- package/dist/lib/application/useRemoveWorkspaceContent/index.js +15 -0
- package/dist/lib/application/useRemoveWorkspaceMember/index.d.ts +8 -0
- package/dist/lib/application/useRemoveWorkspaceMember/index.d.ts.map +1 -0
- package/dist/lib/application/useRemoveWorkspaceMember/index.js +14 -0
- package/dist/lib/application/useSetWorkspaceStatus/index.d.ts +9 -0
- package/dist/lib/application/useSetWorkspaceStatus/index.d.ts.map +1 -0
- package/dist/lib/application/useSetWorkspaceStatus/index.js +15 -0
- package/dist/lib/application/useSlugAvailability/index.d.ts +18 -0
- package/dist/lib/application/useSlugAvailability/index.d.ts.map +1 -0
- package/dist/lib/application/useSlugAvailability/index.js +39 -0
- package/dist/lib/application/useUpdateWorkspace/index.d.ts +9 -0
- package/dist/lib/application/useUpdateWorkspace/index.d.ts.map +1 -0
- package/dist/lib/application/useUpdateWorkspace/index.js +15 -0
- package/dist/lib/application/useUsersSearch/index.d.ts +18 -0
- package/dist/lib/application/useUsersSearch/index.d.ts.map +1 -0
- package/dist/lib/application/useUsersSearch/index.js +24 -0
- package/dist/lib/application/useWorkspaceContentCount/index.d.ts +8 -0
- package/dist/lib/application/useWorkspaceContentCount/index.d.ts.map +1 -0
- package/dist/lib/application/useWorkspaceContentCount/index.js +17 -0
- package/dist/lib/application/useWorkspaceEntryCount/index.d.ts +8 -0
- package/dist/lib/application/useWorkspaceEntryCount/index.d.ts.map +1 -0
- package/dist/lib/application/useWorkspaceEntryCount/index.js +17 -0
- package/dist/lib/application/useWorkspaces/index.d.ts +5 -0
- package/dist/lib/application/useWorkspaces/index.d.ts.map +1 -0
- package/dist/lib/application/useWorkspaces/index.js +11 -0
- package/dist/lib/components/BlockingConfirmDialog/index.d.ts +41 -0
- package/dist/lib/components/BlockingConfirmDialog/index.d.ts.map +1 -0
- package/dist/lib/components/ColorSwatchRow/index.d.ts +15 -0
- package/dist/lib/components/ColorSwatchRow/index.d.ts.map +1 -0
- package/dist/lib/components/CreateWorkspaceWizard/ColorSwatchRow/index.d.ts +15 -0
- package/dist/lib/components/CreateWorkspaceWizard/ColorSwatchRow/index.d.ts.map +1 -0
- package/dist/lib/components/CreateWorkspaceWizard/ContentStep/ModeTiles/index.d.ts +11 -0
- package/dist/lib/components/CreateWorkspaceWizard/ContentStep/ModeTiles/index.d.ts.map +1 -0
- package/dist/lib/components/CreateWorkspaceWizard/ContentStep/ResourceSection/index.d.ts +48 -0
- package/dist/lib/components/CreateWorkspaceWizard/ContentStep/ResourceSection/index.d.ts.map +1 -0
- package/dist/lib/components/CreateWorkspaceWizard/ContentStep/index.d.ts +23 -0
- package/dist/lib/components/CreateWorkspaceWizard/ContentStep/index.d.ts.map +1 -0
- package/dist/lib/components/CreateWorkspaceWizard/IdentityFields/index.d.ts +17 -0
- package/dist/lib/components/CreateWorkspaceWizard/IdentityFields/index.d.ts.map +1 -0
- package/dist/lib/components/CreateWorkspaceWizard/MembersStep/MemberRow/index.d.ts +14 -0
- package/dist/lib/components/CreateWorkspaceWizard/MembersStep/MemberRow/index.d.ts.map +1 -0
- package/dist/lib/components/CreateWorkspaceWizard/MembersStep/MemberTypeahead/index.d.ts +15 -0
- package/dist/lib/components/CreateWorkspaceWizard/MembersStep/MemberTypeahead/index.d.ts.map +1 -0
- package/dist/lib/components/CreateWorkspaceWizard/MembersStep/index.d.ts +17 -0
- package/dist/lib/components/CreateWorkspaceWizard/MembersStep/index.d.ts.map +1 -0
- package/dist/lib/components/CreateWorkspaceWizard/Monogram/index.d.ts +17 -0
- package/dist/lib/components/CreateWorkspaceWizard/Monogram/index.d.ts.map +1 -0
- package/dist/lib/components/CreateWorkspaceWizard/SlugField/index.d.ts +23 -0
- package/dist/lib/components/CreateWorkspaceWizard/SlugField/index.d.ts.map +1 -0
- package/dist/lib/components/StatusChip/index.d.ts +9 -0
- package/dist/lib/components/StatusChip/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspaceAvatar/index.d.ts +20 -0
- package/dist/lib/components/WorkspaceAvatar/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspaceCard/MemberStack/MemberListPopover/index.d.ts +9 -0
- package/dist/lib/components/WorkspaceCard/MemberStack/MemberListPopover/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspaceCard/MemberStack/index.d.ts +11 -0
- package/dist/lib/components/WorkspaceCard/MemberStack/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspaceCard/StatusChip/index.d.ts +9 -0
- package/dist/lib/components/WorkspaceCard/StatusChip/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspaceCard/index.d.ts +15 -0
- package/dist/lib/components/WorkspaceCard/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspaceCommands/index.d.ts +8 -0
- package/dist/lib/components/WorkspaceCommands/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspaceContentSettings/AddContentDialog/index.d.ts +26 -0
- package/dist/lib/components/WorkspaceContentSettings/AddContentDialog/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspaceContentSettings/GrantedContentGroup/index.d.ts +21 -0
- package/dist/lib/components/WorkspaceContentSettings/GrantedContentGroup/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspaceContentSettings/GrantedContentRow/index.d.ts +26 -0
- package/dist/lib/components/WorkspaceContentSettings/GrantedContentRow/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspaceContentSettings/RemoveContentDialog/index.d.ts +25 -0
- package/dist/lib/components/WorkspaceContentSettings/RemoveContentDialog/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspaceContentSettings/index.d.ts +25 -0
- package/dist/lib/components/WorkspaceContentSettings/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspaceDangerSettings/DeleteWorkspaceDialog/index.d.ts +22 -0
- package/dist/lib/components/WorkspaceDangerSettings/DeleteWorkspaceDialog/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspaceDangerSettings/index.d.ts +18 -0
- package/dist/lib/components/WorkspaceDangerSettings/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspaceGeneralSettings/index.d.ts +18 -0
- package/dist/lib/components/WorkspaceGeneralSettings/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspaceMembersSettings/MemberDirectorySearch/index.d.ts +18 -0
- package/dist/lib/components/WorkspaceMembersSettings/MemberDirectorySearch/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspaceMembersSettings/MemberListRow/index.d.ts +17 -0
- package/dist/lib/components/WorkspaceMembersSettings/MemberListRow/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspaceMembersSettings/index.d.ts +16 -0
- package/dist/lib/components/WorkspaceMembersSettings/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspaceNav/WorkspaceNavButton/index.d.ts +14 -0
- package/dist/lib/components/WorkspaceNav/WorkspaceNavButton/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspaceNav/WorkspaceSwitcher/index.d.ts +16 -0
- package/dist/lib/components/WorkspaceNav/WorkspaceSwitcher/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspaceNav/index.d.ts +14 -0
- package/dist/lib/components/WorkspaceNav/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspaceSettingsRail/index.d.ts +14 -0
- package/dist/lib/components/WorkspaceSettingsRail/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspaceSettingsTabs/index.d.ts +14 -0
- package/dist/lib/components/WorkspaceSettingsTabs/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspaceSettingsTopBar/index.d.ts +8 -0
- package/dist/lib/components/WorkspaceSettingsTopBar/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspaceShell/NewWorkspaceButton/index.d.ts +7 -0
- package/dist/lib/components/WorkspaceShell/NewWorkspaceButton/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspaceShell/RailTooltip/index.d.ts +22 -0
- package/dist/lib/components/WorkspaceShell/RailTooltip/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspaceShell/WorkspaceRail/index.d.ts +17 -0
- package/dist/lib/components/WorkspaceShell/WorkspaceRail/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspaceShell/WorkspaceSidebarButton/index.d.ts +17 -0
- package/dist/lib/components/WorkspaceShell/WorkspaceSidebarButton/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspaceShell/WorkspaceSwitcher/WorkspaceSwitcherPopover/index.d.ts +26 -0
- package/dist/lib/components/WorkspaceShell/WorkspaceSwitcher/WorkspaceSwitcherPopover/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspaceShell/WorkspaceSwitcher/index.d.ts +17 -0
- package/dist/lib/components/WorkspaceShell/WorkspaceSwitcher/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspaceShell/index.d.ts +16 -0
- package/dist/lib/components/WorkspaceShell/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspaceStats/index.d.ts +9 -0
- package/dist/lib/components/WorkspaceStats/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspaceToolbar/index.d.ts +22 -0
- package/dist/lib/components/WorkspaceToolbar/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspacesEmpty/index.d.ts +18 -0
- package/dist/lib/components/WorkspacesEmpty/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspacesHomePanel/index.d.ts +7 -0
- package/dist/lib/components/WorkspacesHomePanel/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspacesNavSection/index.d.ts +9 -0
- package/dist/lib/components/WorkspacesNavSection/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspacesSkeleton/index.d.ts +36 -0
- package/dist/lib/components/WorkspacesSkeleton/index.d.ts.map +1 -0
- package/dist/lib/components/WorkspacesTable/index.d.ts +12 -0
- package/dist/lib/components/WorkspacesTable/index.d.ts.map +1 -0
- package/dist/lib/domain/isActiveWorkspace/index.d.ts +9 -0
- package/dist/lib/domain/isActiveWorkspace/index.d.ts.map +1 -0
- package/dist/lib/domain/isActiveWorkspace/index.js +9 -0
- package/dist/lib/domain/permissions/index.d.ts +7 -0
- package/dist/lib/domain/permissions/index.d.ts.map +1 -0
- package/dist/lib/domain/permissions/index.js +6 -0
- package/dist/lib/domain/resourceSelection/index.d.ts +18 -0
- package/dist/lib/domain/resourceSelection/index.d.ts.map +1 -0
- package/dist/lib/domain/resourceSelection/index.js +49 -0
- package/dist/lib/domain/slug/index.d.ts +25 -0
- package/dist/lib/domain/slug/index.d.ts.map +1 -0
- package/dist/lib/domain/slug/index.js +45 -0
- package/dist/lib/domain/types/wizard/index.d.ts +126 -0
- package/dist/lib/domain/types/wizard/index.d.ts.map +1 -0
- package/dist/lib/domain/types/wizard/index.js +21 -0
- package/dist/lib/domain/types/workspace/index.d.ts +42 -0
- package/dist/lib/domain/types/workspace/index.d.ts.map +1 -0
- package/dist/lib/domain/types/workspace/index.js +1 -0
- package/dist/lib/domain/workspaceLimits/index.d.ts +23 -0
- package/dist/lib/domain/workspaceLimits/index.d.ts.map +1 -0
- package/dist/lib/domain/workspaceLimits/index.js +22 -0
- package/dist/lib/hooks/useBasicsSchema/index.d.ts +14 -0
- package/dist/lib/hooks/useBasicsSchema/index.d.ts.map +1 -0
- package/dist/lib/hooks/useResourceSelection/index.d.ts +21 -0
- package/dist/lib/hooks/useResourceSelection/index.d.ts.map +1 -0
- package/dist/lib/hooks/useSlug/index.d.ts +28 -0
- package/dist/lib/hooks/useSlug/index.d.ts.map +1 -0
- package/dist/lib/hooks/useWizard/index.d.ts +57 -0
- package/dist/lib/hooks/useWizard/index.d.ts.map +1 -0
- package/dist/lib/hooks/useWorkspaceProfileSchema/index.d.ts +13 -0
- package/dist/lib/hooks/useWorkspaceProfileSchema/index.d.ts.map +1 -0
- package/dist/lib/infrastructure/buildCreateWorkspaceBody/index.d.ts +12 -0
- package/dist/lib/infrastructure/buildCreateWorkspaceBody/index.d.ts.map +1 -0
- package/dist/lib/infrastructure/buildCreateWorkspaceBody/index.js +27 -0
- package/dist/lib/infrastructure/httpWorkspaceGateway/index.d.ts +10 -0
- package/dist/lib/infrastructure/httpWorkspaceGateway/index.d.ts.map +1 -0
- package/dist/lib/infrastructure/httpWorkspaceGateway/index.js +149 -0
- package/dist/lib/infrastructure/isConflict/index.d.ts +8 -0
- package/dist/lib/infrastructure/isConflict/index.d.ts.map +1 -0
- package/dist/lib/infrastructure/isConflict/index.js +12 -0
- package/dist/lib/infrastructure/workspaceGateway/index.d.ts +90 -0
- package/dist/lib/infrastructure/workspaceGateway/index.d.ts.map +1 -0
- package/dist/lib/infrastructure/workspaceGateway/index.js +1 -0
- package/dist/lib/infrastructure/workspaceMapper/index.d.ts +28 -0
- package/dist/lib/infrastructure/workspaceMapper/index.d.ts.map +1 -0
- package/dist/lib/infrastructure/workspaceMapper/index.js +36 -0
- package/dist/lib/pages/CreateWorkspacePage/index.d.ts +7 -0
- package/dist/lib/pages/CreateWorkspacePage/index.d.ts.map +1 -0
- package/dist/lib/pages/WorkspaceSettingsPage/index.d.ts +12 -0
- package/dist/lib/pages/WorkspaceSettingsPage/index.d.ts.map +1 -0
- package/dist/lib/pages/WorkspacesPage/index.d.ts +7 -0
- package/dist/lib/pages/WorkspacesPage/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/BlockingConfirmDialog/index.d.ts +41 -0
- package/dist/lib/presentation/components/BlockingConfirmDialog/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/BlockingConfirmDialog/index.js +17 -0
- package/dist/lib/presentation/components/ColorSwatchRow/index.d.ts +22 -0
- package/dist/lib/presentation/components/ColorSwatchRow/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/ColorSwatchRow/index.js +70 -0
- package/dist/lib/presentation/components/CreateWorkspaceWizard/ContentStep/ModeTiles/index.d.ts +11 -0
- package/dist/lib/presentation/components/CreateWorkspaceWizard/ContentStep/ModeTiles/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/CreateWorkspaceWizard/ContentStep/ModeTiles/index.js +47 -0
- package/dist/lib/presentation/components/CreateWorkspaceWizard/ContentStep/ResourceSection/index.d.ts +48 -0
- package/dist/lib/presentation/components/CreateWorkspaceWizard/ContentStep/ResourceSection/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/CreateWorkspaceWizard/ContentStep/ResourceSection/index.js +32 -0
- package/dist/lib/presentation/components/CreateWorkspaceWizard/ContentStep/index.d.ts +23 -0
- package/dist/lib/presentation/components/CreateWorkspaceWizard/ContentStep/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/CreateWorkspaceWizard/ContentStep/index.js +128 -0
- package/dist/lib/presentation/components/CreateWorkspaceWizard/IdentityFields/index.d.ts +17 -0
- package/dist/lib/presentation/components/CreateWorkspaceWizard/IdentityFields/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/CreateWorkspaceWizard/IdentityFields/index.js +70 -0
- package/dist/lib/presentation/components/CreateWorkspaceWizard/MembersStep/MemberRow/index.d.ts +14 -0
- package/dist/lib/presentation/components/CreateWorkspaceWizard/MembersStep/MemberRow/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/CreateWorkspaceWizard/MembersStep/MemberRow/index.js +25 -0
- package/dist/lib/presentation/components/CreateWorkspaceWizard/MembersStep/MemberTypeahead/index.d.ts +15 -0
- package/dist/lib/presentation/components/CreateWorkspaceWizard/MembersStep/MemberTypeahead/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/CreateWorkspaceWizard/MembersStep/MemberTypeahead/index.js +112 -0
- package/dist/lib/presentation/components/CreateWorkspaceWizard/MembersStep/index.d.ts +17 -0
- package/dist/lib/presentation/components/CreateWorkspaceWizard/MembersStep/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/CreateWorkspaceWizard/MembersStep/index.js +35 -0
- package/dist/lib/presentation/components/CreateWorkspaceWizard/Monogram/index.d.ts +17 -0
- package/dist/lib/presentation/components/CreateWorkspaceWizard/Monogram/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/CreateWorkspaceWizard/Monogram/index.js +11 -0
- package/dist/lib/presentation/components/CreateWorkspaceWizard/SlugField/index.d.ts +23 -0
- package/dist/lib/presentation/components/CreateWorkspaceWizard/SlugField/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/CreateWorkspaceWizard/SlugField/index.js +68 -0
- package/dist/lib/presentation/components/StatusChip/index.d.ts +9 -0
- package/dist/lib/presentation/components/StatusChip/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/StatusChip/index.js +23 -0
- package/dist/lib/presentation/components/WorkspaceAvatar/index.d.ts +20 -0
- package/dist/lib/presentation/components/WorkspaceAvatar/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/WorkspaceAvatar/index.js +10 -0
- package/dist/lib/presentation/components/WorkspaceCommands/index.d.ts +8 -0
- package/dist/lib/presentation/components/WorkspaceCommands/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/WorkspaceCommands/index.js +34 -0
- package/dist/lib/presentation/components/WorkspaceContentSettings/AddContentDialog/index.d.ts +26 -0
- package/dist/lib/presentation/components/WorkspaceContentSettings/AddContentDialog/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/WorkspaceContentSettings/AddContentDialog/index.js +89 -0
- package/dist/lib/presentation/components/WorkspaceContentSettings/GrantedContentGroup/index.d.ts +21 -0
- package/dist/lib/presentation/components/WorkspaceContentSettings/GrantedContentGroup/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/WorkspaceContentSettings/GrantedContentGroup/index.js +11 -0
- package/dist/lib/presentation/components/WorkspaceContentSettings/GrantedContentRow/index.d.ts +26 -0
- package/dist/lib/presentation/components/WorkspaceContentSettings/GrantedContentRow/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/WorkspaceContentSettings/GrantedContentRow/index.js +31 -0
- package/dist/lib/presentation/components/WorkspaceContentSettings/RemoveContentDialog/index.d.ts +25 -0
- package/dist/lib/presentation/components/WorkspaceContentSettings/RemoveContentDialog/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/WorkspaceContentSettings/RemoveContentDialog/index.js +48 -0
- package/dist/lib/presentation/components/WorkspaceContentSettings/index.d.ts +25 -0
- package/dist/lib/presentation/components/WorkspaceContentSettings/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/WorkspaceContentSettings/index.js +173 -0
- package/dist/lib/presentation/components/WorkspaceDangerSettings/DeleteWorkspaceDialog/index.d.ts +22 -0
- package/dist/lib/presentation/components/WorkspaceDangerSettings/DeleteWorkspaceDialog/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/WorkspaceDangerSettings/DeleteWorkspaceDialog/index.js +52 -0
- package/dist/lib/presentation/components/WorkspaceDangerSettings/index.d.ts +18 -0
- package/dist/lib/presentation/components/WorkspaceDangerSettings/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/WorkspaceDangerSettings/index.js +150 -0
- package/dist/lib/presentation/components/WorkspaceGeneralSettings/WorkspaceIdField/index.d.ts +19 -0
- package/dist/lib/presentation/components/WorkspaceGeneralSettings/WorkspaceIdField/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/WorkspaceGeneralSettings/WorkspaceIdField/index.js +72 -0
- package/dist/lib/presentation/components/WorkspaceGeneralSettings/index.d.ts +18 -0
- package/dist/lib/presentation/components/WorkspaceGeneralSettings/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/WorkspaceGeneralSettings/index.js +131 -0
- package/dist/lib/presentation/components/WorkspaceMembersSettings/MemberDirectorySearch/index.d.ts +18 -0
- package/dist/lib/presentation/components/WorkspaceMembersSettings/MemberDirectorySearch/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/WorkspaceMembersSettings/MemberDirectorySearch/index.js +65 -0
- package/dist/lib/presentation/components/WorkspaceMembersSettings/MemberListRow/index.d.ts +17 -0
- package/dist/lib/presentation/components/WorkspaceMembersSettings/MemberListRow/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/WorkspaceMembersSettings/MemberListRow/index.js +22 -0
- package/dist/lib/presentation/components/WorkspaceMembersSettings/index.d.ts +16 -0
- package/dist/lib/presentation/components/WorkspaceMembersSettings/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/WorkspaceMembersSettings/index.js +127 -0
- package/dist/lib/presentation/components/WorkspaceNav/WorkspaceNavButton/index.d.ts +14 -0
- package/dist/lib/presentation/components/WorkspaceNav/WorkspaceNavButton/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/WorkspaceNav/WorkspaceNavButton/index.js +30 -0
- package/dist/lib/presentation/components/WorkspaceNav/WorkspaceSwitcher/index.d.ts +16 -0
- package/dist/lib/presentation/components/WorkspaceNav/WorkspaceSwitcher/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/WorkspaceNav/WorkspaceSwitcher/index.js +81 -0
- package/dist/lib/presentation/components/WorkspaceNav/index.d.ts +14 -0
- package/dist/lib/presentation/components/WorkspaceNav/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/WorkspaceNav/index.js +51 -0
- package/dist/lib/presentation/components/WorkspaceSettingsTabs/index.d.ts +14 -0
- package/dist/lib/presentation/components/WorkspaceSettingsTabs/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/WorkspaceSettingsTabs/index.js +66 -0
- package/dist/lib/presentation/components/WorkspaceSettingsTopBar/index.d.ts +8 -0
- package/dist/lib/presentation/components/WorkspaceSettingsTopBar/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/WorkspaceSettingsTopBar/index.js +57 -0
- package/dist/lib/presentation/components/WorkspaceShell/index.d.ts +16 -0
- package/dist/lib/presentation/components/WorkspaceShell/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/WorkspaceShell/index.js +100 -0
- package/dist/lib/presentation/components/WorkspaceStats/index.d.ts +9 -0
- package/dist/lib/presentation/components/WorkspaceStats/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/WorkspaceStats/index.js +48 -0
- package/dist/lib/presentation/components/WorkspaceToolbar/index.d.ts +22 -0
- package/dist/lib/presentation/components/WorkspaceToolbar/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/WorkspaceToolbar/index.js +73 -0
- package/dist/lib/presentation/components/WorkspacesEmpty/index.d.ts +18 -0
- package/dist/lib/presentation/components/WorkspacesEmpty/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/WorkspacesEmpty/index.js +42 -0
- package/dist/lib/presentation/components/WorkspacesHomePanel/index.d.ts +7 -0
- package/dist/lib/presentation/components/WorkspacesHomePanel/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/WorkspacesHomePanel/index.js +50 -0
- package/dist/lib/presentation/components/WorkspacesNavSection/index.d.ts +15 -0
- package/dist/lib/presentation/components/WorkspacesNavSection/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/WorkspacesNavSection/index.js +76 -0
- package/dist/lib/presentation/components/WorkspacesSkeleton/index.d.ts +49 -0
- package/dist/lib/presentation/components/WorkspacesSkeleton/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/WorkspacesSkeleton/index.js +94 -0
- package/dist/lib/presentation/components/WorkspacesTable/index.d.ts +12 -0
- package/dist/lib/presentation/components/WorkspacesTable/index.d.ts.map +1 -0
- package/dist/lib/presentation/components/WorkspacesTable/index.js +58 -0
- package/dist/lib/presentation/currentWorkspace/index.d.ts +17 -0
- package/dist/lib/presentation/currentWorkspace/index.d.ts.map +1 -0
- package/dist/lib/presentation/currentWorkspace/index.js +44 -0
- package/dist/lib/presentation/hooks/useBasicsSchema/index.d.ts +17 -0
- package/dist/lib/presentation/hooks/useBasicsSchema/index.d.ts.map +1 -0
- package/dist/lib/presentation/hooks/useBasicsSchema/index.js +71 -0
- package/dist/lib/presentation/hooks/useComboboxList/index.d.ts +44 -0
- package/dist/lib/presentation/hooks/useComboboxList/index.d.ts.map +1 -0
- package/dist/lib/presentation/hooks/useComboboxList/index.js +62 -0
- package/dist/lib/presentation/hooks/useRedirectNotice/index.d.ts +24 -0
- package/dist/lib/presentation/hooks/useRedirectNotice/index.d.ts.map +1 -0
- package/dist/lib/presentation/hooks/useRedirectNotice/index.js +37 -0
- package/dist/lib/presentation/hooks/useResourceSelection/index.d.ts +21 -0
- package/dist/lib/presentation/hooks/useResourceSelection/index.d.ts.map +1 -0
- package/dist/lib/presentation/hooks/useResourceSelection/index.js +16 -0
- package/dist/lib/presentation/hooks/useSlug/index.d.ts +28 -0
- package/dist/lib/presentation/hooks/useSlug/index.d.ts.map +1 -0
- package/dist/lib/presentation/hooks/useSlug/index.js +18 -0
- package/dist/lib/presentation/hooks/useWizard/index.d.ts +60 -0
- package/dist/lib/presentation/hooks/useWizard/index.d.ts.map +1 -0
- package/dist/lib/presentation/hooks/useWizard/index.js +93 -0
- package/dist/lib/presentation/hooks/useWorkspaceProfileSchema/index.d.ts +16 -0
- package/dist/lib/presentation/hooks/useWorkspaceProfileSchema/index.d.ts.map +1 -0
- package/dist/lib/presentation/hooks/useWorkspaceProfileSchema/index.js +53 -0
- package/dist/lib/presentation/pages/CreateWorkspacePage/index.d.ts +7 -0
- package/dist/lib/presentation/pages/CreateWorkspacePage/index.d.ts.map +1 -0
- package/dist/lib/presentation/pages/CreateWorkspacePage/index.js +248 -0
- package/dist/lib/presentation/pages/WorkspaceSettingsPage/index.d.ts +12 -0
- package/dist/lib/presentation/pages/WorkspaceSettingsPage/index.d.ts.map +1 -0
- package/dist/lib/presentation/pages/WorkspaceSettingsPage/index.js +69 -0
- package/dist/lib/presentation/pages/WorkspacesPage/index.d.ts +7 -0
- package/dist/lib/presentation/pages/WorkspacesPage/index.d.ts.map +1 -0
- package/dist/lib/presentation/pages/WorkspacesPage/index.js +112 -0
- package/dist/lib/presentation/slots/workspaceSlots/index.d.ts +101 -0
- package/dist/lib/presentation/slots/workspaceSlots/index.d.ts.map +1 -0
- package/dist/lib/presentation/slots/workspaceSlots/index.js +25 -0
- package/dist/lib/presentation/workspacesPlugin/index.d.ts +31 -0
- package/dist/lib/presentation/workspacesPlugin/index.d.ts.map +1 -0
- package/dist/lib/presentation/workspacesPlugin/index.js +151 -0
- package/dist/lib/slots/workspaceSlots/index.d.ts +101 -0
- package/dist/lib/slots/workspaceSlots/index.d.ts.map +1 -0
- package/dist/lib/types/wizard/index.d.ts +119 -0
- package/dist/lib/types/wizard/index.d.ts.map +1 -0
- package/dist/lib/types/workspace/index.d.ts +42 -0
- package/dist/lib/types/workspace/index.d.ts.map +1 -0
- package/dist/lib/utils/buildCreateWorkspaceBody/index.d.ts +12 -0
- package/dist/lib/utils/buildCreateWorkspaceBody/index.d.ts.map +1 -0
- package/dist/lib/utils/currentWorkspace/index.d.ts +17 -0
- package/dist/lib/utils/currentWorkspace/index.d.ts.map +1 -0
- package/dist/lib/utils/isActiveWorkspace/index.d.ts +9 -0
- package/dist/lib/utils/isActiveWorkspace/index.d.ts.map +1 -0
- package/dist/lib/utils/isConflict/index.d.ts +8 -0
- package/dist/lib/utils/isConflict/index.d.ts.map +1 -0
- package/dist/lib/utils/permissions/index.d.ts +7 -0
- package/dist/lib/utils/permissions/index.d.ts.map +1 -0
- package/dist/lib/utils/radioGroupKeydown/index.d.ts +15 -0
- package/dist/lib/utils/radioGroupKeydown/index.d.ts.map +1 -0
- package/dist/lib/utils/resourceSelection/index.d.ts +18 -0
- package/dist/lib/utils/resourceSelection/index.d.ts.map +1 -0
- package/dist/lib/utils/workspacesPlugin/index.d.ts +31 -0
- package/dist/lib/utils/workspacesPlugin/index.d.ts.map +1 -0
- package/package.json +48 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Permanently deletes a workspace via the gateway. On success it invalidates the
|
|
3
|
+
* workspaces list so the deleted workspace drops out of the grid; the caller
|
|
4
|
+
* navigates away from the (now-gone) shell route.
|
|
5
|
+
*
|
|
6
|
+
* `onSuccess` deliberately does **not** return the `invalidateQueries` promise:
|
|
7
|
+
* awaiting it would delay `mutateAsync` until the list refetches without this
|
|
8
|
+
* workspace, so the shell would re-render and flash its "workspace not found"
|
|
9
|
+
* state before the caller's `navigate('/workspaces')` runs. Firing the
|
|
10
|
+
* invalidation without awaiting lets the caller redirect first.
|
|
11
|
+
*/
|
|
12
|
+
export declare function useDeleteWorkspace(): import("@tanstack/react-query").UseMutationResult<void, Error, string, unknown>;
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/application/useDeleteWorkspace/index.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,oFASjC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { httpWorkspaceGateway } from '../../infrastructure/httpWorkspaceGateway';
|
|
3
|
+
import { workspacesKey } from '../useWorkspaces';
|
|
4
|
+
/**
|
|
5
|
+
* Permanently deletes a workspace via the gateway. On success it invalidates the
|
|
6
|
+
* workspaces list so the deleted workspace drops out of the grid; the caller
|
|
7
|
+
* navigates away from the (now-gone) shell route.
|
|
8
|
+
*
|
|
9
|
+
* `onSuccess` deliberately does **not** return the `invalidateQueries` promise:
|
|
10
|
+
* awaiting it would delay `mutateAsync` until the list refetches without this
|
|
11
|
+
* workspace, so the shell would re-render and flash its "workspace not found"
|
|
12
|
+
* state before the caller's `navigate('/workspaces')` runs. Firing the
|
|
13
|
+
* invalidation without awaiting lets the caller redirect first.
|
|
14
|
+
*/
|
|
15
|
+
export function useDeleteWorkspace() {
|
|
16
|
+
const queryClient = useQueryClient();
|
|
17
|
+
return useMutation({
|
|
18
|
+
mutationFn: (id) => httpWorkspaceGateway.remove(id),
|
|
19
|
+
onSuccess: () => {
|
|
20
|
+
queryClient.invalidateQueries({ queryKey: workspacesKey });
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { RemoveWorkspaceContentInput } from '../../infrastructure/workspaceGateway';
|
|
2
|
+
export type { RemoveWorkspaceContentInput } from '../../infrastructure/workspaceGateway';
|
|
3
|
+
/**
|
|
4
|
+
* Revokes a workspace's access to a content type via the gateway — only when
|
|
5
|
+
* it's empty (a `409` otherwise, surfaced via the thrown `ApiError`, which the
|
|
6
|
+
* caller narrows with `isConflict`). Invalidates the workspaces list on success.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useRemoveWorkspaceContent(): import("@tanstack/react-query").UseMutationResult<import("../../..").Workspace, Error, RemoveWorkspaceContentInput, unknown>;
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/application/useRemoveWorkspaceContent/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AAGzF,YAAY,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AAEzF;;;;GAIG;AACH,wBAAgB,yBAAyB,iIASxC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { httpWorkspaceGateway } from '../../infrastructure/httpWorkspaceGateway';
|
|
3
|
+
import { workspacesKey } from '../useWorkspaces';
|
|
4
|
+
/**
|
|
5
|
+
* Revokes a workspace's access to a content type via the gateway — only when
|
|
6
|
+
* it's empty (a `409` otherwise, surfaced via the thrown `ApiError`, which the
|
|
7
|
+
* caller narrows with `isConflict`). Invalidates the workspaces list on success.
|
|
8
|
+
*/
|
|
9
|
+
export function useRemoveWorkspaceContent() {
|
|
10
|
+
const queryClient = useQueryClient();
|
|
11
|
+
return useMutation({
|
|
12
|
+
mutationFn: (input) => httpWorkspaceGateway.removeContent(input),
|
|
13
|
+
onSuccess: () => queryClient.invalidateQueries({ queryKey: workspacesKey })
|
|
14
|
+
});
|
|
15
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { RemoveWorkspaceMemberInput } from '../../infrastructure/workspaceGateway';
|
|
2
|
+
export type { RemoveWorkspaceMemberInput } from '../../infrastructure/workspaceGateway';
|
|
3
|
+
/**
|
|
4
|
+
* Removes a member from a workspace via the gateway (a no-op server-side if they
|
|
5
|
+
* weren't one). Invalidates the workspaces list so the roster updates.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useRemoveWorkspaceMember(): import("@tanstack/react-query").UseMutationResult<void, Error, RemoveWorkspaceMemberInput, unknown>;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/application/useRemoveWorkspaceMember/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAGxF,YAAY,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAExF;;;GAGG;AACH,wBAAgB,wBAAwB,wGASvC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { httpWorkspaceGateway } from '../../infrastructure/httpWorkspaceGateway';
|
|
3
|
+
import { workspacesKey } from '../useWorkspaces';
|
|
4
|
+
/**
|
|
5
|
+
* Removes a member from a workspace via the gateway (a no-op server-side if they
|
|
6
|
+
* weren't one). Invalidates the workspaces list so the roster updates.
|
|
7
|
+
*/
|
|
8
|
+
export function useRemoveWorkspaceMember() {
|
|
9
|
+
const queryClient = useQueryClient();
|
|
10
|
+
return useMutation({
|
|
11
|
+
mutationFn: (input) => httpWorkspaceGateway.removeMember(input),
|
|
12
|
+
onSuccess: () => queryClient.invalidateQueries({ queryKey: workspacesKey })
|
|
13
|
+
});
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SetWorkspaceStatusInput } from '../../infrastructure/workspaceGateway';
|
|
2
|
+
export type { SetWorkspaceStatusInput } from '../../infrastructure/workspaceGateway';
|
|
3
|
+
/**
|
|
4
|
+
* Flips a workspace between active and archived via the gateway (which picks the
|
|
5
|
+
* `archive`/`unarchive` route from the target status). Invalidates the
|
|
6
|
+
* workspaces list on success so the shell and grid reflect the new status.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useSetWorkspaceStatus(): import("@tanstack/react-query").UseMutationResult<import("../../..").Workspace, Error, SetWorkspaceStatusInput, unknown>;
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/application/useSetWorkspaceStatus/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAGrF,YAAY,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAErF;;;;GAIG;AACH,wBAAgB,qBAAqB,6HASpC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { httpWorkspaceGateway } from '../../infrastructure/httpWorkspaceGateway';
|
|
3
|
+
import { workspacesKey } from '../useWorkspaces';
|
|
4
|
+
/**
|
|
5
|
+
* Flips a workspace between active and archived via the gateway (which picks the
|
|
6
|
+
* `archive`/`unarchive` route from the target status). Invalidates the
|
|
7
|
+
* workspaces list on success so the shell and grid reflect the new status.
|
|
8
|
+
*/
|
|
9
|
+
export function useSetWorkspaceStatus() {
|
|
10
|
+
const queryClient = useQueryClient();
|
|
11
|
+
return useMutation({
|
|
12
|
+
mutationFn: (input) => httpWorkspaceGateway.setStatus(input),
|
|
13
|
+
onSuccess: () => queryClient.invalidateQueries({ queryKey: workspacesKey })
|
|
14
|
+
});
|
|
15
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SlugStatus } from '../../domain/types/wizard';
|
|
2
|
+
/**
|
|
3
|
+
* Live slug-availability check. Debounces input (300ms), then resolves to
|
|
4
|
+
* {@link SlugStatus.Available} / {@link SlugStatus.Taken}. Returns
|
|
5
|
+
* {@link SlugStatus.Empty} for blank input, {@link SlugStatus.Invalid} when the
|
|
6
|
+
* value breaks the {@link Slug} value object's format rule, and
|
|
7
|
+
* {@link SlugStatus.Checking} while debouncing or fetching. Format is validated
|
|
8
|
+
* through the shared {@link Slug} VO so this and the basics schema agree on the
|
|
9
|
+
* one rule the server enforces.
|
|
10
|
+
*
|
|
11
|
+
* A **failed** check resolves to {@link SlugStatus.Unknown}, never
|
|
12
|
+
* {@link SlugStatus.Available}: `query.data` is `undefined` on error, so without
|
|
13
|
+
* an explicit branch the last line would report the outage as the positive
|
|
14
|
+
* answer and unblock the wizard's continue gate — the user would then spend
|
|
15
|
+
* three steps on a slug the server rejects with a `409`.
|
|
16
|
+
*/
|
|
17
|
+
export declare function useSlugAvailability(slug: string): SlugStatus;
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/application/useSlugAvailability/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAGvD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAgB5D"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { useQuery } from '@tanstack/react-query';
|
|
2
|
+
import { useDebouncedValue } from '@orthacms/utils-admin';
|
|
3
|
+
import { Slug } from '../../domain/slug';
|
|
4
|
+
import { SlugStatus } from '../../domain/types/wizard';
|
|
5
|
+
import { httpWorkspaceGateway } from '../../infrastructure/httpWorkspaceGateway';
|
|
6
|
+
/**
|
|
7
|
+
* Live slug-availability check. Debounces input (300ms), then resolves to
|
|
8
|
+
* {@link SlugStatus.Available} / {@link SlugStatus.Taken}. Returns
|
|
9
|
+
* {@link SlugStatus.Empty} for blank input, {@link SlugStatus.Invalid} when the
|
|
10
|
+
* value breaks the {@link Slug} value object's format rule, and
|
|
11
|
+
* {@link SlugStatus.Checking} while debouncing or fetching. Format is validated
|
|
12
|
+
* through the shared {@link Slug} VO so this and the basics schema agree on the
|
|
13
|
+
* one rule the server enforces.
|
|
14
|
+
*
|
|
15
|
+
* A **failed** check resolves to {@link SlugStatus.Unknown}, never
|
|
16
|
+
* {@link SlugStatus.Available}: `query.data` is `undefined` on error, so without
|
|
17
|
+
* an explicit branch the last line would report the outage as the positive
|
|
18
|
+
* answer and unblock the wizard's continue gate — the user would then spend
|
|
19
|
+
* three steps on a slug the server rejects with a `409`.
|
|
20
|
+
*/
|
|
21
|
+
export function useSlugAvailability(slug) {
|
|
22
|
+
const debounced = useDebouncedValue(slug, 300);
|
|
23
|
+
const enabled = !!debounced && Slug.isValid(debounced);
|
|
24
|
+
const query = useQuery({
|
|
25
|
+
queryKey: ['workspaces', 'slug-available', debounced],
|
|
26
|
+
queryFn: () => httpWorkspaceGateway.checkSlugAvailable(debounced),
|
|
27
|
+
enabled,
|
|
28
|
+
staleTime: 30_000
|
|
29
|
+
});
|
|
30
|
+
if (!slug)
|
|
31
|
+
return SlugStatus.Empty;
|
|
32
|
+
if (!Slug.isValid(slug))
|
|
33
|
+
return SlugStatus.Invalid;
|
|
34
|
+
if (slug !== debounced || query.isFetching)
|
|
35
|
+
return SlugStatus.Checking;
|
|
36
|
+
if (query.isError)
|
|
37
|
+
return SlugStatus.Unknown;
|
|
38
|
+
return query.data === false ? SlugStatus.Taken : SlugStatus.Available;
|
|
39
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { UpdateWorkspaceInput } from '../../infrastructure/workspaceGateway';
|
|
2
|
+
export type { UpdateWorkspaceInput } from '../../infrastructure/workspaceGateway';
|
|
3
|
+
/**
|
|
4
|
+
* Edits a workspace's name / description / color via the workspace gateway. On
|
|
5
|
+
* success it invalidates the workspaces list so the shell (which reads the open
|
|
6
|
+
* workspace from that list) re-resolves with the new values.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useUpdateWorkspace(): import("@tanstack/react-query").UseMutationResult<import("../../..").Workspace, Error, UpdateWorkspaceInput, unknown>;
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/application/useUpdateWorkspace/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAGlF,YAAY,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAElF;;;;GAIG;AACH,wBAAgB,kBAAkB,0HASjC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { httpWorkspaceGateway } from '../../infrastructure/httpWorkspaceGateway';
|
|
3
|
+
import { workspacesKey } from '../useWorkspaces';
|
|
4
|
+
/**
|
|
5
|
+
* Edits a workspace's name / description / color via the workspace gateway. On
|
|
6
|
+
* success it invalidates the workspaces list so the shell (which reads the open
|
|
7
|
+
* workspace from that list) re-resolves with the new values.
|
|
8
|
+
*/
|
|
9
|
+
export function useUpdateWorkspace() {
|
|
10
|
+
const queryClient = useQueryClient();
|
|
11
|
+
return useMutation({
|
|
12
|
+
mutationFn: (input) => httpWorkspaceGateway.update(input),
|
|
13
|
+
onSuccess: () => queryClient.invalidateQueries({ queryKey: workspacesKey })
|
|
14
|
+
});
|
|
15
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { DirectoryUser } from '../../domain/types/wizard';
|
|
2
|
+
/** Result of {@link useUsersSearch}. */
|
|
3
|
+
export type UsersSearchResult = {
|
|
4
|
+
/** Matching directory users (empty until a debounced query resolves). */
|
|
5
|
+
users: DirectoryUser[];
|
|
6
|
+
/** Whether a search is currently in flight. */
|
|
7
|
+
loading: boolean;
|
|
8
|
+
/** Whether the underlying search query failed. */
|
|
9
|
+
isError: boolean;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Searches the user directory for the member typeahead via the gateway
|
|
13
|
+
* (`GET /api/users`, dropping disabled accounts). Debounces the query (250ms) so
|
|
14
|
+
* each keystroke doesn't fire a request, and only runs once at least one
|
|
15
|
+
* character has been typed.
|
|
16
|
+
*/
|
|
17
|
+
export declare function useUsersSearch(query: string): UsersSearchResult;
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/application/useUsersSearch/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAG/D,wCAAwC;AACxC,MAAM,MAAM,iBAAiB,GAAG;IAC5B,yEAAyE;IACzE,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,+CAA+C;IAC/C,OAAO,EAAE,OAAO,CAAC;IACjB,kDAAkD;IAClD,OAAO,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,iBAAiB,CAgB/D"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { useQuery } from '@tanstack/react-query';
|
|
2
|
+
import { useDebouncedValue } from '@orthacms/utils-admin';
|
|
3
|
+
import { httpWorkspaceGateway } from '../../infrastructure/httpWorkspaceGateway';
|
|
4
|
+
/**
|
|
5
|
+
* Searches the user directory for the member typeahead via the gateway
|
|
6
|
+
* (`GET /api/users`, dropping disabled accounts). Debounces the query (250ms) so
|
|
7
|
+
* each keystroke doesn't fire a request, and only runs once at least one
|
|
8
|
+
* character has been typed.
|
|
9
|
+
*/
|
|
10
|
+
export function useUsersSearch(query) {
|
|
11
|
+
const debounced = useDebouncedValue(query.trim(), 250);
|
|
12
|
+
const enabled = debounced.length > 0;
|
|
13
|
+
const result = useQuery({
|
|
14
|
+
queryKey: ['users', 'search', debounced],
|
|
15
|
+
queryFn: () => httpWorkspaceGateway.searchUsers(debounced),
|
|
16
|
+
enabled,
|
|
17
|
+
staleTime: 30_000
|
|
18
|
+
});
|
|
19
|
+
return {
|
|
20
|
+
users: enabled ? (result.data ?? []) : [],
|
|
21
|
+
loading: enabled && (result.isPending || debounced !== query.trim()),
|
|
22
|
+
isError: enabled && result.isError
|
|
23
|
+
};
|
|
24
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How many entries of content type `slug` a workspace holds. Backs the revoke
|
|
3
|
+
* pre-check: the remove dialog reads it on open to decide whether to block the
|
|
4
|
+
* action. Runs only while `enabled` (i.e. a removal is pending) and isn't
|
|
5
|
+
* cached across opens, so a just-added entry is reflected.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useWorkspaceContentCount(workspaceId: string, slug: string | null, enabled: boolean): import("@tanstack/react-query").UseQueryResult<number, Error>;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/application/useWorkspaceContentCount/index.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACpC,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,MAAM,GAAG,IAAI,EACnB,OAAO,EAAE,OAAO,iEAUnB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useQuery } from '@tanstack/react-query';
|
|
2
|
+
import { httpWorkspaceGateway } from '../../infrastructure/httpWorkspaceGateway';
|
|
3
|
+
/**
|
|
4
|
+
* How many entries of content type `slug` a workspace holds. Backs the revoke
|
|
5
|
+
* pre-check: the remove dialog reads it on open to decide whether to block the
|
|
6
|
+
* action. Runs only while `enabled` (i.e. a removal is pending) and isn't
|
|
7
|
+
* cached across opens, so a just-added entry is reflected.
|
|
8
|
+
*/
|
|
9
|
+
export function useWorkspaceContentCount(workspaceId, slug, enabled) {
|
|
10
|
+
return useQuery({
|
|
11
|
+
queryKey: ['workspaces', workspaceId, 'content', slug, 'entry-count'],
|
|
12
|
+
queryFn: () => httpWorkspaceGateway.contentEntryCount(workspaceId, slug),
|
|
13
|
+
enabled: enabled && slug !== null,
|
|
14
|
+
staleTime: 0,
|
|
15
|
+
gcTime: 0
|
|
16
|
+
});
|
|
17
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How many content entries a workspace holds across all its content types.
|
|
3
|
+
* Backs the delete pre-check: the delete dialog reads it on open to decide
|
|
4
|
+
* whether to block deletion. Runs only while `enabled` (a delete is pending) and
|
|
5
|
+
* isn't cached across opens, so a just-removed entry is reflected.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useWorkspaceEntryCount(workspaceId: string, enabled: boolean): import("@tanstack/react-query").UseQueryResult<number, Error>;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/application/useWorkspaceEntryCount/index.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,iEAQ3E"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useQuery } from '@tanstack/react-query';
|
|
2
|
+
import { httpWorkspaceGateway } from '../../infrastructure/httpWorkspaceGateway';
|
|
3
|
+
/**
|
|
4
|
+
* How many content entries a workspace holds across all its content types.
|
|
5
|
+
* Backs the delete pre-check: the delete dialog reads it on open to decide
|
|
6
|
+
* whether to block deletion. Runs only while `enabled` (a delete is pending) and
|
|
7
|
+
* isn't cached across opens, so a just-removed entry is reflected.
|
|
8
|
+
*/
|
|
9
|
+
export function useWorkspaceEntryCount(workspaceId, enabled) {
|
|
10
|
+
return useQuery({
|
|
11
|
+
queryKey: ['workspaces', workspaceId, 'entry-count'],
|
|
12
|
+
queryFn: () => httpWorkspaceGateway.entryCount(workspaceId),
|
|
13
|
+
enabled,
|
|
14
|
+
staleTime: 0,
|
|
15
|
+
gcTime: 0
|
|
16
|
+
});
|
|
17
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Query key for the workspaces list; mutations invalidate it on success. */
|
|
2
|
+
export declare const workspacesKey: readonly ["workspaces"];
|
|
3
|
+
/** Lists the workspaces the signed-in user can see, via the workspace gateway. */
|
|
4
|
+
export declare function useWorkspaces(): import("@tanstack/react-query").UseQueryResult<NoInfer<import("../../..").Workspace[]>, Error>;
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/application/useWorkspaces/index.ts"],"names":[],"mappings":"AAGA,6EAA6E;AAC7E,eAAO,MAAM,aAAa,yBAA0B,CAAC;AAErD,kFAAkF;AAClF,wBAAgB,aAAa,mGAK5B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useQuery } from '@tanstack/react-query';
|
|
2
|
+
import { httpWorkspaceGateway } from '../../infrastructure/httpWorkspaceGateway';
|
|
3
|
+
/** Query key for the workspaces list; mutations invalidate it on success. */
|
|
4
|
+
export const workspacesKey = ['workspaces'];
|
|
5
|
+
/** Lists the workspaces the signed-in user can see, via the workspace gateway. */
|
|
6
|
+
export function useWorkspaces() {
|
|
7
|
+
return useQuery({
|
|
8
|
+
queryKey: workspacesKey,
|
|
9
|
+
queryFn: () => httpWorkspaceGateway.list()
|
|
10
|
+
});
|
|
11
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
/** Props for {@link BlockingConfirmDialog}. */
|
|
3
|
+
export type BlockingConfirmDialogProps = {
|
|
4
|
+
/** Whether the dialog is open. */
|
|
5
|
+
open: boolean;
|
|
6
|
+
/** Dialog heading. */
|
|
7
|
+
title: ReactNode;
|
|
8
|
+
/** Supporting copy under the heading. */
|
|
9
|
+
description: ReactNode;
|
|
10
|
+
/** Whether the backing entry-count query is still loading. */
|
|
11
|
+
isChecking: boolean;
|
|
12
|
+
/** Whether the entry-count query errored (blocks the action). */
|
|
13
|
+
isError: boolean;
|
|
14
|
+
/** The entry count once known; `undefined` while checking/errored. */
|
|
15
|
+
count: number | undefined;
|
|
16
|
+
/** Shown while the count is loading. */
|
|
17
|
+
checkingLabel: string;
|
|
18
|
+
/** Shown when the count couldn't be read. */
|
|
19
|
+
checkErrorLabel: string;
|
|
20
|
+
/** Shown when the count is `> 0` — the caller formats it with the count. */
|
|
21
|
+
blockedLabel: ReactNode;
|
|
22
|
+
/** Label for the destructive confirm button. */
|
|
23
|
+
confirmLabel: string;
|
|
24
|
+
/** Label for the cancel button. */
|
|
25
|
+
cancelLabel: string;
|
|
26
|
+
/** Close callback; ignored while the action is in flight. */
|
|
27
|
+
onClose: () => void;
|
|
28
|
+
/** Runs the destructive action (reachable only once the count is zero). */
|
|
29
|
+
onConfirm: () => void;
|
|
30
|
+
/** Whether the destructive action is in flight. */
|
|
31
|
+
busy?: boolean;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* The shared "block-before-you-act" confirm dialog: on open the caller reads an
|
|
35
|
+
* entry-count query, and this renders the checking / error / blocked states and
|
|
36
|
+
* **enables the destructive button only once the count is known to be zero**.
|
|
37
|
+
* Used for both revoking a content grant and deleting a workspace, which differ
|
|
38
|
+
* only in their copy and which count hook backs them.
|
|
39
|
+
*/
|
|
40
|
+
export declare function BlockingConfirmDialog({ open, title, description, isChecking, isError, count, checkingLabel, checkErrorLabel, blockedLabel, confirmLabel, cancelLabel, onClose, onConfirm, busy }: BlockingConfirmDialogProps): import("react").JSX.Element;
|
|
41
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/BlockingConfirmDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAcvC,+CAA+C;AAC/C,MAAM,MAAM,0BAA0B,GAAG;IACrC,kCAAkC;IAClC,IAAI,EAAE,OAAO,CAAC;IACd,sBAAsB;IACtB,KAAK,EAAE,SAAS,CAAC;IACjB,yCAAyC;IACzC,WAAW,EAAE,SAAS,CAAC;IACvB,8DAA8D;IAC9D,UAAU,EAAE,OAAO,CAAC;IACpB,iEAAiE;IACjE,OAAO,EAAE,OAAO,CAAC;IACjB,sEAAsE;IACtE,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,wCAAwC;IACxC,aAAa,EAAE,MAAM,CAAC;IACtB,6CAA6C;IAC7C,eAAe,EAAE,MAAM,CAAC;IACxB,4EAA4E;IAC5E,YAAY,EAAE,SAAS,CAAC;IACxB,gDAAgD;IAChD,YAAY,EAAE,MAAM,CAAC;IACrB,mCAAmC;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,6DAA6D;IAC7D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,2EAA2E;IAC3E,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,mDAAmD;IACnD,IAAI,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,EAClC,IAAI,EACJ,KAAK,EACL,WAAW,EACX,UAAU,EACV,OAAO,EACP,KAAK,EACL,aAAa,EACb,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,OAAO,EACP,SAAS,EACT,IAAY,EACf,EAAE,0BAA0B,+BAoD5B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type AvatarColor } from '@ortha-cms/design-system';
|
|
2
|
+
/** Props for {@link ColorSwatchRow}. */
|
|
3
|
+
export type ColorSwatchRowProps = {
|
|
4
|
+
/** Currently selected accent. */
|
|
5
|
+
value: AvatarColor;
|
|
6
|
+
/** Called when a swatch is chosen. */
|
|
7
|
+
onChange: (color: AvatarColor) => void;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* The accent-color picker for the basics step: a single-select row of the
|
|
11
|
+
* shared avatar palette, exposed as a radio group for keyboard + screen-reader
|
|
12
|
+
* users. The selected swatch shows a check.
|
|
13
|
+
*/
|
|
14
|
+
export declare function ColorSwatchRow({ value, onChange }: ColorSwatchRowProps): import("react").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/ColorSwatchRow/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIH,KAAK,WAAW,EACnB,MAAM,0BAA0B,CAAC;AAalC,wCAAwC;AACxC,MAAM,MAAM,mBAAmB,GAAG;IAC9B,iCAAiC;IACjC,KAAK,EAAE,WAAW,CAAC;IACnB,sCAAsC;IACtC,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;CAC1C,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,mBAAmB,+BAuCtE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type AvatarColor } from '@ortha-cms/design-system';
|
|
2
|
+
/** Props for {@link ColorSwatchRow}. */
|
|
3
|
+
export type ColorSwatchRowProps = {
|
|
4
|
+
/** Currently selected accent. */
|
|
5
|
+
value: AvatarColor;
|
|
6
|
+
/** Called when a swatch is chosen. */
|
|
7
|
+
onChange: (color: AvatarColor) => void;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* The accent-color picker for the basics step: a single-select row of the
|
|
11
|
+
* shared avatar palette, exposed as a radio group for keyboard + screen-reader
|
|
12
|
+
* users. The selected swatch shows a check.
|
|
13
|
+
*/
|
|
14
|
+
export declare function ColorSwatchRow({ value, onChange }: ColorSwatchRowProps): import("react").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/CreateWorkspaceWizard/ColorSwatchRow/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIH,KAAK,WAAW,EACnB,MAAM,0BAA0B,CAAC;AAalC,wCAAwC;AACxC,MAAM,MAAM,mBAAmB,GAAG;IAC9B,iCAAiC;IACjC,KAAK,EAAE,WAAW,CAAC;IACnB,sCAAsC;IACtC,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;CAC1C,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,mBAAmB,+BAuCtE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ContentMode } from '../../../../types/wizard';
|
|
2
|
+
/** Props for {@link ModeTiles}. */
|
|
3
|
+
export type ModeTilesProps = {
|
|
4
|
+
/** Current content mode. */
|
|
5
|
+
value: ContentMode;
|
|
6
|
+
/** Called when a tile is chosen. */
|
|
7
|
+
onChange: (mode: ContentMode) => void;
|
|
8
|
+
};
|
|
9
|
+
/** Two radio tiles choosing between full access and a specific selection. */
|
|
10
|
+
export declare function ModeTiles({ value, onChange }: ModeTilesProps): import("react").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/CreateWorkspaceWizard/ContentStep/ModeTiles/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AA2C5D,mCAAmC;AACnC,MAAM,MAAM,cAAc,GAAG;IACzB,4BAA4B;IAC5B,KAAK,EAAE,WAAW,CAAC;IACnB,oCAAoC;IACpC,QAAQ,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;CACzC,CAAC;AAEF,6EAA6E;AAC7E,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,cAAc,+BAuC5D"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type ComponentType } from 'react';
|
|
2
|
+
import { type MessageDescriptor } from 'react-intl';
|
|
3
|
+
import type { ResourceSelection } from '../../../../types/wizard';
|
|
4
|
+
/** A selectable row in a {@link ResourceSection}. */
|
|
5
|
+
export type ResourceRow = {
|
|
6
|
+
/** Stable id (the content type name). */
|
|
7
|
+
id: string;
|
|
8
|
+
/** Primary label. */
|
|
9
|
+
primary: string;
|
|
10
|
+
/** Secondary line (description or path), also searched. */
|
|
11
|
+
secondary?: string;
|
|
12
|
+
};
|
|
13
|
+
/** The i18n strings a {@link ResourceSection} needs. */
|
|
14
|
+
export type ResourceSectionMessages = {
|
|
15
|
+
heading: MessageDescriptor;
|
|
16
|
+
help: MessageDescriptor;
|
|
17
|
+
searchPlaceholder: MessageDescriptor;
|
|
18
|
+
allLabel: MessageDescriptor;
|
|
19
|
+
empty: MessageDescriptor;
|
|
20
|
+
noResults: MessageDescriptor;
|
|
21
|
+
/** Plural — receives `{count}`. */
|
|
22
|
+
countSpecific: MessageDescriptor;
|
|
23
|
+
countAll: MessageDescriptor;
|
|
24
|
+
/** Plural — receives `{count}` excluded. */
|
|
25
|
+
countAllExcluded: MessageDescriptor;
|
|
26
|
+
};
|
|
27
|
+
/** Props for {@link ResourceSection}. */
|
|
28
|
+
export type ResourceSectionProps = {
|
|
29
|
+
/** Section copy. */
|
|
30
|
+
messages: ResourceSectionMessages;
|
|
31
|
+
/** Leading icon for every row. */
|
|
32
|
+
icon: ComponentType<{
|
|
33
|
+
className?: string;
|
|
34
|
+
}>;
|
|
35
|
+
/** All rows (filtering affects only what's rendered). */
|
|
36
|
+
rows: ResourceRow[];
|
|
37
|
+
/** Current selection. */
|
|
38
|
+
selection: ResourceSelection;
|
|
39
|
+
/** Replace the selection. */
|
|
40
|
+
onChange: (next: ResourceSelection) => void;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* A generic "specific vs all" selection panel — used for both collections and
|
|
44
|
+
* pages. Owns local search; the caller owns the selection state and supplies
|
|
45
|
+
* rows, icon, and copy.
|
|
46
|
+
*/
|
|
47
|
+
export declare function ResourceSection({ messages, icon: Icon, rows, selection, onChange }: ResourceSectionProps): import("react").JSX.Element;
|
|
48
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/CreateWorkspaceWizard/ContentStep/ResourceSection/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAW,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAU7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAElE,qDAAqD;AACrD,MAAM,MAAM,WAAW,GAAG;IACtB,yCAAyC;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,qBAAqB;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,2DAA2D;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,wDAAwD;AACxD,MAAM,MAAM,uBAAuB,GAAG;IAClC,OAAO,EAAE,iBAAiB,CAAC;IAC3B,IAAI,EAAE,iBAAiB,CAAC;IACxB,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,KAAK,EAAE,iBAAiB,CAAC;IACzB,SAAS,EAAE,iBAAiB,CAAC;IAC7B,mCAAmC;IACnC,aAAa,EAAE,iBAAiB,CAAC;IACjC,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,4CAA4C;IAC5C,gBAAgB,EAAE,iBAAiB,CAAC;CACvC,CAAC;AAEF,yCAAyC;AACzC,MAAM,MAAM,oBAAoB,GAAG;IAC/B,oBAAoB;IACpB,QAAQ,EAAE,uBAAuB,CAAC;IAClC,kCAAkC;IAClC,IAAI,EAAE,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC5C,yDAAyD;IACzD,IAAI,EAAE,WAAW,EAAE,CAAC;IACpB,yBAAyB;IACzB,SAAS,EAAE,iBAAiB,CAAC;IAC7B,6BAA6B;IAC7B,QAAQ,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAC/C,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAC5B,QAAQ,EACR,IAAI,EAAE,IAAI,EACV,IAAI,EACJ,SAAS,EACT,QAAQ,EACX,EAAE,oBAAoB,+BAwGtB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ContentMode, ResourceSelection } from '../../../types/wizard';
|
|
2
|
+
/** Props for {@link ContentStep}. */
|
|
3
|
+
export type ContentStepProps = {
|
|
4
|
+
/** Page-level content mode. */
|
|
5
|
+
contentMode: ContentMode;
|
|
6
|
+
/** Set the content mode. */
|
|
7
|
+
setContentMode: (mode: ContentMode) => void;
|
|
8
|
+
/** Collection selection. */
|
|
9
|
+
collections: ResourceSelection;
|
|
10
|
+
/** Replace the collection selection. */
|
|
11
|
+
setCollections: (selection: ResourceSelection) => void;
|
|
12
|
+
/** Page selection. */
|
|
13
|
+
pages: ResourceSelection;
|
|
14
|
+
/** Replace the page selection. */
|
|
15
|
+
setPages: (selection: ResourceSelection) => void;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* The content step body: the All-vs-Specific mode tiles, then either a
|
|
19
|
+
* reassuring full-access alert or the collections + pages selection panels
|
|
20
|
+
* (with loading and error states for the content-types query).
|
|
21
|
+
*/
|
|
22
|
+
export declare function ContentStep({ contentMode, setContentMode, collections, setCollections, pages, setPages }: ContentStepProps): import("react").JSX.Element;
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/CreateWorkspaceWizard/ContentStep/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AA+G5E,qCAAqC;AACrC,MAAM,MAAM,gBAAgB,GAAG;IAC3B,+BAA+B;IAC/B,WAAW,EAAE,WAAW,CAAC;IACzB,4BAA4B;IAC5B,cAAc,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAC5C,4BAA4B;IAC5B,WAAW,EAAE,iBAAiB,CAAC;IAC/B,wCAAwC;IACxC,cAAc,EAAE,CAAC,SAAS,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACvD,sBAAsB;IACtB,KAAK,EAAE,iBAAiB,CAAC;IACzB,kCAAkC;IAClC,QAAQ,EAAE,CAAC,SAAS,EAAE,iBAAiB,KAAK,IAAI,CAAC;CACpD,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EACxB,WAAW,EACX,cAAc,EACd,WAAW,EACX,cAAc,EACd,KAAK,EACL,QAAQ,EACX,EAAE,gBAAgB,+BAyElB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { UseSlugResult } from '../../../hooks/useSlug';
|
|
2
|
+
import type { WizardData } from '../../../types/wizard';
|
|
3
|
+
/** Props for {@link IdentityFields}. */
|
|
4
|
+
export type IdentityFieldsProps = {
|
|
5
|
+
/** Current basics data. */
|
|
6
|
+
data: WizardData;
|
|
7
|
+
/** Merge a partial patch into the basics data. */
|
|
8
|
+
update: (patch: Partial<WizardData>) => void;
|
|
9
|
+
/** Slug controller (status + handlers) owned by the page. */
|
|
10
|
+
slug: UseSlugResult;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* The basics step body: a live workspace monogram beside the name, the accent
|
|
14
|
+
* color picker, the slug field with availability, and an optional description.
|
|
15
|
+
*/
|
|
16
|
+
export declare function IdentityFields({ data, update, slug }: IdentityFieldsProps): import("react").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/CreateWorkspaceWizard/IdentityFields/index.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AA6CxD,wCAAwC;AACxC,MAAM,MAAM,mBAAmB,GAAG;IAC9B,2BAA2B;IAC3B,IAAI,EAAE,UAAU,CAAC;IACjB,kDAAkD;IAClD,MAAM,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IAC7C,6DAA6D;IAC7D,IAAI,EAAE,aAAa,CAAC;CACvB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,mBAAmB,+BAyGzE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { MemberDraft } from '../../../../types/wizard';
|
|
2
|
+
/** Props for {@link MemberRow}. */
|
|
3
|
+
export type MemberRowProps = {
|
|
4
|
+
/** The added member. */
|
|
5
|
+
member: MemberDraft;
|
|
6
|
+
/** Remove the member from the list. */
|
|
7
|
+
onRemove: () => void;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* One added member: avatar, name/email, an "Invited" badge for invite-by-email
|
|
11
|
+
* rows, and a remove button.
|
|
12
|
+
*/
|
|
13
|
+
export declare function MemberRow({ member, onRemove }: MemberRowProps): import("react").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/CreateWorkspaceWizard/MembersStep/MemberRow/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAa5D,mCAAmC;AACnC,MAAM,MAAM,cAAc,GAAG;IACzB,wBAAwB;IACxB,MAAM,EAAE,WAAW,CAAC;IACpB,uCAAuC;IACvC,QAAQ,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,SAAS,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,cAAc,+BA+C7D"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { MemberDraft } from '../../../../types/wizard';
|
|
2
|
+
/** Props for {@link MemberTypeahead}. */
|
|
3
|
+
export type MemberTypeaheadProps = {
|
|
4
|
+
/** Ids already present (owner + added members) — excluded from results. */
|
|
5
|
+
excludeIds: Set<string>;
|
|
6
|
+
/** Add a member (existing user or invited email). */
|
|
7
|
+
onAdd: (member: MemberDraft) => void;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Searchable input that adds people to the workspace. Existing directory users
|
|
11
|
+
* are selected from the results; a typed-in email that isn't in the directory
|
|
12
|
+
* can be invited instead.
|
|
13
|
+
*/
|
|
14
|
+
export declare function MemberTypeahead({ excludeIds, onAdd }: MemberTypeaheadProps): import("react").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/CreateWorkspaceWizard/MembersStep/MemberTypeahead/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAwB5D,yCAAyC;AACzC,MAAM,MAAM,oBAAoB,GAAG;IAC/B,2EAA2E;IAC3E,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACxB,qDAAqD;IACrD,KAAK,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAAE,UAAU,EAAE,KAAK,EAAE,EAAE,oBAAoB,+BA6G1E"}
|