@ossy/workspaces
v1.17.2
Published
Workspaces feature package - create, select, and manage workspaces, users, and invitations
Readme
@ossy/workspaces
Workspaces feature package for the Ossy platform — provides workspace creation, selection, user management, and invitation pages that are auto-discovered by @ossy/app when the package is installed.
What's included
Pages
| File | Page id | Default paths |
|---|---|---|
| Invitations.page.jsx | workspace/invitations | /invitations (en), /inbjudningar (sv) |
| Invite.page.jsx | workspace/invitations/add | /invitations/add (en), /inbjudningar/lagg-till (sv) |
| Users.page.jsx | workspace/users | /users (en), /anvandare (sv) |
| WorkspaceSettings.page.jsx | workspace/settings | /settings (en), /installningar (sv) |
Components
| Export | Description |
|---|---|
| CreateWorkspacePage | Form to create a new workspace |
| SelectWorkspacePage | List and switch between workspaces |
| GeneralSettings | Workspace details and services settings |
| Invitations | List pending workspace invitations |
| Invite | Invite a user to the workspace by email |
| Users | List and manage workspace members |
| AuthenticationGuard | Wraps children, shows error for unauthenticated users |
| patchUserWorkspaceId | Utility to update the active workspace cookie |
| Definition | Feature metadata (id, actions, views) |
| ListWorkspaces, GetWorkspace, … | Platform action POJOs — use with useSdk().read() / invoke() |
Usage
npm install @ossy/workspaces
npm run build@ossy/app discovers the pages automatically by reading the "ossy": { "src": "./src" } field in this package's package.json.
Peer dependencies
| Package | Version |
|---|---|
| @ossy/design-system | >=1.0.0 |
| @ossy/router-react | >=1.0.0 |
| @ossy/sdk-react | >=1.0.0 |
| react | >=19.0.0 <20.0.0 |
