@ossy/profile
v1.17.2
Published
Profile feature package — user profile details, API tokens, and personal workspace management pages
Downloads
6,369
Readme
@ossy/profile
Profile feature package for the Ossy platform — provides user profile, API token management, and workspace management pages that are auto-discovered by @ossy/app when the package is installed.
What's included
Pages
| File | Page id | Default paths |
|---|---|---|
| ProfileHome.page.jsx | profile/home | /profile (en), /profil (sv) |
| ProfileDetails.page.jsx | profile | /profile/details (en), /profil/detaljer (sv) |
| ProfileWorkspaces.page.jsx | profile/workspaces | /profile/workspaces (en), /profil/arbetsytor (sv) |
| ProfileWorkspacesCreate.page.jsx | profile/workspaces/create | /profile/workspaces/create (en), /profil/arbetsytor/skapa (sv) |
| ProfileApiTokens.page.jsx | profile/api-tokens | /profile/api-tokens (en), /profil/api-nycklar (sv) |
| ProfileApiTokensCreate.page.jsx | profile/api-tokens/create | /profile/api-tokens/create (en), /profil/api-nycklar/skapa (sv) |
Components
| Export | Description |
|---|---|
| ProfileLayout | Side-nav shell for all profile pages (logo, nav links, sign-out) |
| ApiTokens | List and revoke API tokens |
| CreateApiToken | Form to create a new API token |
| Definition | Feature metadata (id, actions, views) |
| profileMenuItems | Navigation items for the profile context menu |
Usage
npm install @ossy/profile
npm run build@ossy/app discovers the pages automatically by reading the "ossy": { "src": "./src" } field in this package's package.json.
Dependencies
This package depends on @ossy/workspaces for:
SelectWorkspacePage— used inProfileWorkspaces.page.jsxCreateWorkspacePage— used inProfileWorkspacesCreate.page.jsxpatchUserWorkspaceId— used inProfileHome.page.jsx
Peer dependencies
| Package | Version |
|---|---|
| @ossy/design-system | >=1.0.0 |
| @ossy/router-react | >=1.0.0 |
| @ossy/sdk-react | >=1.0.0 |
| @ossy/workspaces | >=1.0.0 |
| react | >=19.0.0 <20.0.0 |
