Skip to main content

ClientsProvider

React Context Provider, useful to provide clients. Allows underlying Components to communicate with their target server(s).

DataModelClickListenersProvider

React Context provider for the listeners to data model tree clicks. An initialValue prop can optionally be passed, containing the listeners provided through the context instance. If it is not passed, the sets of listeners will initially be empty.

IsPresentingProvider

Provides whether the user has entered presentation mode. Allows the underlying Components to know whether they should show edition capabilities.

JwtProvider

React Context Provider, providing the JWT allowing to authenticate the communication with the servers.

LogoutProvider

React Context Provider, providing a callback to logout the user.

ModalsProvider

React context provider that provides an openModal and a closeModal function that allow to imperatively open and close modals registered through the modals prop. The provided functions can be accessed through the useModal hook. Note: in most cases, you do not need this API, and you can use a regular declarative <Modal />. This imperative API is useful when the modal lifecycle needs to be decoupled from that of its trigger, for example when opening a modal through a context menu item.

PluginsProvider

Plugins Context provider. Necessary to define the widgets that can be displayed as well as all other types of plugins.

RequestInitProvider

React context provider for requestInit passed to all HTTP requests made by ContentClient and AtotiClient. See https://developer.mozilla.org/en-US/docs/Web/API/RequestInit.

ThemeProvider

Theme Context provider. Accepts a partial Theme and does the following things: - adds defaults where needed to provide a full theme. - generates the Ant Design theme from it, and passes it to antd’s <ConfigProvider />. - adds styling to the descendant of this provider.

UserNamesProvider

React Context Provider, useful to provide the UserNames. Allows underlying components to access the provided usernames.

UserProvider

React Context Provider, useful to provide the current User. Allows underlying components to access the current user’s information.

UserRolesProvider

React Context Provider, useful to provide the UserRoles. Allows underlying components to access the provided user roles.

WebsocketHeadersProvider

Allows to provide headers to be set on “REGISTER” and “UPDATE” websocket messages sent to Atoti Server and triggered by useQueryResult.