
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
@clarabridge/react-studio-console
Advanced tools
This library consists of Layout UI Components
This library consists of layout components from Unified Angular Components libruary that have been adapted for usage in ReactJS.
React Layout Components can be installed as an npm package:
$ npm i @clarabridge/react-studio-console
import { Header, Sidebar } from @clarabridge/react-studio-console
The available options are:
className
(String) - Optional, class names applied to the Sidebar
component, defaults to empty stringlinks
(URLListItem[]) - Optional, list of links interface URLLinkItem {
name: string;
url: string | null;
children?: URLListItem[];
callback?: never;
collapsed?: boolean;
}
locale
(String) - Optional, locale name, defaults to EN
sidebarUrl
(String) - Optional, the URL will be used to get the links
from the server, default to /api/sidebar
showSidebar
(Boolean) - Required, status of the Sidebar
componentshouldHaveKeyboardFocus
(Boolean) - Required, trigger of keyboard focustoggleSidebar
(() => void) - Required, callback for toggling the Sidebar
componentonLoading
((isLoading: boolean) => void) - Optional, callback for processing loading state of the Sidebar
component. When the Sidebar
component is mounted, a callback with a true
value will be called, when the request for getting the list of links is comleted, the callback will be called with a false
valueThe available options are:
className
(String) - Optional, class names applied to the Header
component, defaults to empty stringshowSidebar
(Boolean) - Required, status of the Sidebar
componenttoggleSidebarButtonLabel
(String) - Optional, label for toggle Sidebar
button , defaults to XM Discover Navigation
useAppName
(Boolean) - Optional, adds a section with the applicationName
of the application to the Header
componentapplicationName
(String) - Optional, the name of the application, defaults to empty stringuseAccountSwitcher
(Boolean) - Optional, adds a section with the Master Account swither. If used, when the Header
component is mounted to the applicaton, the next requests will be made to get the master accounts
and the current master account
from the server, default APIs:
GET /api/user/master-account
GET /api/user/master-accounts
masterAccountUrl
(String) - Optional, the URL will be used to get the current master account
from the server, default to /api/user/master-account
masterAccountsUrl
(String) - Optional, the URL will be used to get the master accounts
from the server, default to /api/user/master-accounts
switchMasterAccountUrl
(String) - Optional, the URL will be used when the User switches master account on the server, default API:
POST /api/user/master-accounts/switch-to
with the next query parameters: masterAccountId
and masterAccountName
. When a successful response is received from the server, the page will automatically reload, which will allow you to change the access scopes of the applicationuseWorkspaceSwitcher
(Boolean) - Optional, adds a section with the Workspace swither. If used, when the Header
component is mounted to the applicaton, the next request will be made to get the workspaces
from the server, default API: GET /api/user/workspaces
workspacesUrl
(String) - Optional, the URL will be used to get the workspaces
from the server, default to /api/user/workspaces
useUserMenu
(Boolean) - Optional, adds a section with the User menu. If used, when the Header
component is mounted to the applicaton, the next request will be made to get the User
from the server, default API: GET /api/user
userUrl
(String) - Optional, the URL will be used to get the User
from the server, default to /api/user
userSettings
(UserSettings[]) - Optional, the list of options that uses in the UserMenu
interface UserSettings {
section: string;
options: {
label: string;
url?: string;
action?: string;
}[]
}
toggleSidebar
(() => void) - Required, callback for toggling the Sidebar
componenttoggleSidebarFromKeyboard
(() => void) - Required, callback for toggling the Sidebar
component from keyboardonLoading
((isLoading: boolean) => void) - Optional, callback for processing loading state of the Header
component. When the Header
component is mounted, a callback with a true
value will be called, when all retrieve requests are completed (depending on the configuration), the callback will be called with a false
valueonInternalDataLoading
((isLoading: boolean) => void) - Optional, callback for processing loading state of the internal data depends on selection(applicable for loading projects depending on the selected workspace).onSwitchWorkspace
((workspace: AccountOption, projects?: Project[], selectedProject?: Project) => void) - Optional, callback for getting a selected workspace, and loading the corresponding list of projects for the selected workspace, and potentially the recently selected projectonSwitchMasterAccount
((masterAccount: AccountOption)) - Optional, callback for getting a selected master account, by default will be emitted current master account which stores in the server. interface AccountOption {
id: number;
name: string;
}
interface Project {
id: number;
name: string;
}
FAQs
This library consists of Layout UI Components
We found that @clarabridge/react-studio-console demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 32 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.