import { unstable } from '@broadleaf/admin-components';
const { FulfillmentItemUtils } = unstable;
The reason these are exported is to support edge cases where the usage of these exports for hot-fixes or workarounds could save significant time.
unstable
import { unstable } from '@broadleaf/admin-components';
const { FulfillmentItemUtils } = unstable;
Component Name | Description |
---|---|
|
The root component representing the entry point to the app. It provides the base layout and page routing. |
|
The interface type used to strictly identify the data passed via props for |
|
A composite component that configures the various global React Context Providers such as |
|
The interface type used to strictly identify the data passed via props for |
|
A set of global Provider components that are necessary for the basic functions of the Admin application and are accessible from every route. See the list and detailed explanation of each global Provider here. |
|
The interface type used to strictly identify the data passed via props for
|
Component Name | Description |
---|---|
|
This component is used to store results from auth flows, like the resolved |
|
The context used for providing the user and authentication state to the Admin application.
This context is initialized in |
|
A service used for various authentication functions, such as checking tokens, getting authenticated user information, logging in and out, among others. |
|
This component is used to store the |
|
A service that retrieves the client information for the provided tenant, application, and type. |
|
A component that renders a modal that prompts the user to either extend their session by staying logged in or kill the session by logging out. |
|
A hook used to fetch the |
|
A hook used to check whether the current user has access to the given scopes for the given operation types. If there is not a record with operation type information for a given scope, then this hook will request the operation data for that scope. |
|
A hook used to check whether the user has access for each of the provided scope and operation type pairs.
Used in |
|
A hook that returns a callback for initiating the impersonation flow for a user. If no username is provided, this will initiate the anonymous impersonation flow. |
|
A hook used to check whether or not the given scopes are being checked for access by the current user from |
|
A hook that either extends the user’s session if activity has occurred in a specified amount of time / if the user manually extends the session, or kills the session if no activity has occurred in a specified amount of time / if the user manually kills the session by logging out. |
|
The context used for providing user access information & dispatching actions that change the user access state to the Admin application.
This context is initialized & managed in |
|
A service that checks for the user’s access authorization by checking the operation against their accessible scopes. |
|
A hook that fetches the current user’s profile information from the |
UserAccess
import { unstable } from '@broadleaf/admin-components';
const { actions } = unstable.UserAccess;
Component Name | Description |
---|---|
|
A collection of exports related to
|
|
A render prop component that checks whether the user has access to an operation for a particular scope by calling |
|
A wrapped component that connects the |
|
|
|
A reducer that is the combined functions of the |
|
A hook that returns whether the current user can modify the given component based on the component’s scopes and the user’s permissions. |
|
A hook that returns whether the current user can see the given component based on the component’s scopes and the user’s permissions. |
|
A hook used for getting a function to check access for a scope and operation type. |
|
A component that conditionally renders something based on whether or not the user has access to an operation for a scope. |
|
A higher-order component that provides the |
TenantSecurityUtils
import { unstable } from '@broadleaf/admin-components';
const { getDefaultApplication } = unstable.TenantSecurityUtils;
Component Name | Description |
---|---|
|
A function that returns the default application for the given user.
Generally returns the a shell application where the |
|
A function that checks if the user has application access. |
|
A function that checks if the user has access to an application. |
|
A function that checks if the user has tenant access. |
|
A function that checks if the user has access to a tenant. |
|
A function that checks if the user is an |
|
A function that checks if the user is an admin of an application. |
|
A function that checks if the user is not linked to any applications. |
|
A function that checks whether or not the user has a type of |
|
A function that checks if the user is a global administrator or has access to a specific application. |
|
A function that checks whether or not the user is authorized to access the admin for the current tenant, but for a different application. This is mainly used to engage behavior that sets the current application to their default. |
|
A function that checks if the user is a global administrator. |
|
A function that checks if the user is a global administrator or has access to a specific tenant. |
|
A function that checks if the user is an admin of a tenant. |
|
A function that checks if the user is not linked to any tenants. |
Component Name | Description |
---|---|
|
A component that renders a |
|
A component that renders advanced search and filter components from the metadata. |
|
A component that renders a |
|
A collection of exports related to
|
|
The default reducer for filter types to return modified state objects matching that filter type’s filter parameters. |
|
The default reducer that reduces the sorts to the expected string params, chained with a semi-colon. |
|
The set of filter types used within various collections. |
|
Renders a table based on the provided |
|
A collection of exports related to
|
|
The collection of pagination types. |
|
See |
|
The collection of |
|
A hook that sets up the state management used alongside the |
|
See |
|
A hook used for managing the pagination state & handlers for |
Component Name | Description |
---|---|
|
A component that renders a |
|
A component that renders an |
|
A stateful render prop component that is useful for managing array state in both paginated and non-paginated scenarios. This component provides as a render prop both the array state and its bag of useful methods for managing the array state. |
|
A component used to provide a dropzone for uploading files and assets. |
|
A component that renders a preview of the |
|
A utility helper class that uses the Axios library to create a new HTTP client instance with a custom configuration. |
|
A function that returns an object that contains the passed batching actions, the |
|
A function that binds given action creators to a given dispatch context. |
|
A component that renders a custom styled button according to the passed props. |
|
A container for a set of buttons that provides a grouped look and feel to the buttons. |
|
A component used for rendering the content for a card with a header and body. |
|
A component that renders a custom styled checkbox according to the passed props. |
|
A purely control component that provides utility for managing toggle state. |
|
A component that renders a collapsible group that is primarily used in forms for grouping fields visually. |
|
A collection of exports related to
|
|
A component that renders a simple, read-only view of a column header. |
|
Contains a function named |
|
A function that turns an object whose values are reducers into a singular reducer function.
Note: This emulates the behavior of |
|
A service that manages components for the metadata-driven rendering of the application. |
|
This component renders metadata-driven components. This renderer can be used when a component has to render multiple components based on metadata of varying classifiers. Read more about all types of renderable components in the Metadata exports page. |
|
See |
|
This component is used to show a confirmation prompt before executing an action. It is usually used when deleting an entity. |
|
A component that renders a decimal value formatted into a currency field. |
|
A component that renders a date picker component to allow users to choose a date and time. |
|
A component that renders a formatted date and time in a friendly, locale-relative, manner. It can optionally also format the date and time as relative to 'now': 10 seconds ago, 1 day ago, etc. |
|
The component used for displaying a list of menu items. |
|
A function that enables batching for the provided reducer. See the |
|
A function that enables a component to be overridable. |
|
A utility helper class that provides methods for resolving environment properties. |
|
A component that renders the error message and stack trace for both API and application errors.
Typically this is rendered in the footer of |
|
A render prop component that is used to format errors when requests or processes fail. |
|
A component that renders a header bar that wraps around the passed children commponents. |
|
A component that renders an explanatory message that appears when a help icon (?) is clicked. This component only requires a message. The message may contain HTML markup. |
|
A component that renders an explanatory message that appears beneath another element. This component requires only a message. |
|
A component that renders an HTML editor field that allows users to switch between Editor (uses DraftJS to visualize the HTML elements) and HTML (plain HTML text) views. |
|
The context used for providing the current and available locales for the application.
This context is initialized in |
|
This component renders the |
|
A component that renders an icon button that matches the passed props. |
|
A component that renders an image that matches the passed props. |
|
A component that renders an inline error within a alert pre-block. |
|
A component that renders a link that matches the passed props. |
|
Renders a table based on the provided |
|
A class that allows the creation of instances to store and access elements within the browser local storage as a cache. Instances of this class handle the syncing between the local JS cache and browser local storage. |
|
A utility helper class that implements a simple logging library that extends `console’s logging methods using level-based logging and filtering, except the class adds custom decorations to the log statements. |
|
A utility helper class that takes in a source object and a set of mappings, and returns the result of applying the mappings to the source object. |
|
A component that renders a modal within a portal. |
|
A component that renders a given number formatted in a friendly, locale-relative, manner. Additional formatting props can also be provided and will be passed to the internal formatter component(s). |
|
A function that begins interval polling using the provided |
|
A component that renders its children inside a container element within the DOM. |
|
A render prop component that is used for handling a location blocking prompt. This is primarily useful for dirty form states to ensure that the user doesn’t accidentally lose important form data. Note: This component MUST be rendered within a Router. |
|
Contains a function named |
|
A component that renders a ribbon filling the full width of its container with a shallow height.
This component is primarily used by |
|
The helper component for displaying the sanitized HTML to prevent XSS. |
|
A component that renders the header and scrollable content panel of the application. |
|
A collection of exports related to
|
|
A function that shallowly compares two objects to see if they are equal. |
|
A component that renders an icon that matches the passed props. |
|
A component that renders a simple modal that matches the passed props. |
|
A component that renders a spinner using only CSS for the display. |
|
A function that strictly compares two objects to see if they are equal. |
|
A component that renders a tooltip error when a submission error occurs. |
|
A component for utilizing icons within the Admin. The current implementation uses the icons from the Zondicon icon pack. |
|
Thunk middleware for usage with |
|
A component that renders a toast notification that matches the passed props. |
|
A component that acts as a container for toast notifications and facilitates their transitions/animations. |
|
The context used for providing the toast state and actions such as adding or removing toasts to the Admin application.
This context is initialized & managed in |
|
A purely control component that provides utility for managing toggle state. |
|
A component that renders a message that is only revealed when an element is in a particular state, typically hovered or focused.
This component requires a message and |
|
A hook used to bind action creators to a dispatch context. |
|
A hook used for instrumenting an asset dropzone component. |
|
A hook used to initialize a cancel token in a mutable ref object that can be used for cancelling requests. Any requests using the cancel token will be cancelled on cleanup. |
|
A hook which is used to connect to the state of the confirm modal dialog. |
|
A hook used to return a debounced callback (a memoized function that will only invoke the callback function when the delay period has passed since the last invocation). |
|
A hook that provides a delay upon component mount. |
|
A hook used to return an enhanced |
|
A hook used to create an event callback that will not change with every render. This is necessary in situations where you want to pass an event callback as a prop without resulting in re-renders of children components. |
|
A hook whose returned callback will force the component to re-render. |
|
A hook that wraps |
|
A hook that wraps |
|
A hook that returns a function that will localize a number. |
|
A hook that takes in a map of Message Descriptors and returns a map whose values are the formatted messages. |
|
A hook that wraps |
|
A hook used to execute a callback on an interval. This hook uses a self-adjusting timer to properly handle delays in browser activity due to events such as browser inactivity. |
|
A hook that returns a boolean that indicates whether or not the component using it is mounted. |
|
A hook used to synchronize a key-value pair with the location state.
When the |
|
A hook used to trigger a handler whenever a click is made outside of a capturing component. The returned callback should be passed to the "capture" handler of the container component for the expected events. |
|
A hook used to attach the passed handler to run anytime a 'keydown' event is triggered. |
|
An effect hook used to execute the provided function on an interval.
The interval strategy is determined by the |
|
A hook used for getting a value from the previous render. |
|
An effect hook used to implement fetch behavior on mount or in reaction to changes in dependencies. |
|
A hook used to provide the state and helper functions for managing toasts.
This hook is used in |
|
A hook used for providing state management for the lifecycle of a single-file asset upload. |
Component Name | Description |
---|---|
|
This component renders metadata-driven column components of classifier "Column". Read more about all types of renderable column components in the Columns Metadata exports table. |
|
A function that returns a component wrapped in the |
|
A service that manages and returns default values for fields across the application. |
|
A component which is used to render HTML hyperlinks. |
|
This component renders metadata-driven external components of classifier "External". Read more about all types of renderable external components in the Externals Metadata exports table. |
|
A helper class to render decorations around supplied children components, typically just an input. |
|
A component that renders a field validation error. |
|
This component renders metadata-driven field components of classifier "Field". Read more about all types of renderable field components in the Fields Metadata exports table. |
|
|
|
This component renders the set of Form Components driven by a set of metadata components. |
|
A component that renders an error icon with a tooltip for the errors from a Formik submission. |
|
This component renders metadata-driven group components of classifier "Group". Read more about all types of renderable group components in the Group Metadata exports table. |
|
A collection of exports related to
|
|
A component that renders a |
|
A component that renders a |
|
A collection of component exports related to
|
|
A collection of extension exports related to
|
|
A component that is used for rendering a form within a modal. This is primarily used when creating or editing items within a collection. |
|
A component that renders an action component that opens a |
|
See Request Utilities. |
|
A context that combines the request functions found in Request Utilities. |
|
A collection of component exports related to
|
|
Registers all RSQL-related providers and operators. |
|
A service that manages and handles Yup Validation schema operations, providers, and constants. |
|
egisters all SpEL-related providers that are used to compose the |
|
Registers all SpEL-related providers and operators. |
|
Registers all SpEL-related parsers for parsing SpEL expressions. |
|
This class is used to build SpEL expressions. |
|
|
|
A component that renders a collapsible group that is used in a sentence format with the |
|
A collection of action exports related to
|
|
The context used for providing the state for the |
|
Returns the static and environment properties related to |
|
This component renders |
|
The reducer for the actions related to |
|
A service that manages and gets the translations for the given metadata and form values. |
|
A function that creates a Translation object with |
|
A collection of action types and action creators that perform actions related to the |
|
The React context for the |
|
The context used for dispatching actions that change the tree view state.
This is primarily implemented by |
|
The primary state provider for |
|
Returns a reducer that handles all |
|
A component that renders the unsaved changes messaging if the dirty flag is true. |
|
The hook for |
|
A hook used for instrumenting the |
|
A hook used to return the |
Component Name | Description |
---|---|
|
This gateway component is responsible for being a "gateway" before rendering the application. It first discovers the OAuth2 client, checks the authentication of the user, and verifies if the user is authorized to access the current tenant and application. If the authentication was successful, it will initialize the authentication context and render its children components. |
|
This component initializes routes for the Admin gateway.
When ready, this will fetch the routes and provide them to children components through the |
|
This component is responsible for taking in a set of |
|
This gateway component retrieves the tenant information and provides the |
|
The hook used for providing the state for the gateway status that is used by each gateway interface. |
Component Name | Description |
---|---|
|
A service used for registering and accessing custom Action components for various metadata-driven components. |
|
A collection of exports related to metadata attributes.
|
|
A component that allows the user to toggle the augmentation mode for customizing form fields via the Admin application. |
|
A collection of exports related to augmentation.
|
|
A component that renders the route and route resolve for a specified component. |
|
This component is used to store metadata structures retrieved from the Metadata Microservice in the browser cache storage. |
|
The context used for providing the current set of metadata component routes to the Admin application.
This context is initialized in |
|
The component responsible for resolving the component metadata for a route. |
|
A collection of exports related to component routing.
|
|
A component used for rendering the splash view for the route while it is loading metadata. |
|
A collection of action creators and action types for toggling developer settings. |
|
The context used for storing various settings for developer tools, which are only available during development mode.
This context is initialized & managed in |
|
A modal that displays the developer settings for the Admin application. |
|
This component renders the |
|
Returns a reducer that handles all developer settings actions. |
|
This component is wrapped around metadata-driven components to render decorations, augmentations, or errors. |
|
The context used for providing the metadata state for the current view.
This context is initialized & managed in |
|
A function that triggers an error if a component is missing key metadata information. |
|
A collection of utilities for interacting with metadata. |
|
See Request Utilities. |
|
A hook used for retrieving the typed action definitions and their components from a given metadata object. |
|
Returns the location that will take the user to the expected previous location. |
|
Checks whether or not the provided path matches a route that the current user can access. Two requirements must be met for this hook to return true:
|
|
A hook used to connect to the set of routes and creating a link to a route’s location based on the provided link to/from a component.
This hook uses |
|
Retrieves the action definitions from the provided metadata that are visible to the current user. |
Component Name | Description |
---|---|
|
This component is used to store the resolved catalog data in the browser cache storage. |
|
The context used for providing the current global catalog state to the Admin application.
This context is initialized & managed in |
|
This component renders a "ribbon" or a bar with a button that displays a list of available catalogs for the current site, enabling filtering of entities by the selected catalog for the site.
Typically rendered above a Title Bar component and below the |
|
A component that allows the user to select a Catalog, and updates the Formik state and/or Catalog context. This component is rendered on CREATE forms for catalog and/or profile discriminated entities, and defaults to the stored catalog ID in the existing context if one is present. |
|
A collection of utility functions related to catalog.
|
|
The context used for providing the current set of change summaries associated with the sandboxable view to the Admin application.
This context is initialized & managed in |
|
This component is responsible for providing the state management functionality for a change container.
This component handles providing the |
|
Wraps the given children in a component that renders a highlight border based on the change summaries provided.
If no highlighting is needed, then returns the children unwrapped.
No highlighting is needed if no |
|
A collection of utility functions related to changes and sandboxing.
|
|
Renders a table row as an entity that is affected by change information and change summaries. |
|
Renders a table row header as an entity that is affected by change information and change summaries. |
|
A collection of utility functions related to changes and sandboxing. |
|
A collection of exports related to context requests.
|
|
The available context types that a component using the |
|
The context used for providing the default locale and allowed locales for the data within the resource services.
This context is initialized & managed in |
|
This component is used to store the resolved sandbox data in the browser cache storage. |
|
A collection of functions for creating action creators for sandbox detail change actions. |
|
The reducer for the actions related to sandbox change details. |
|
The context used for providing the sandbox state with the current active sandbox and available sandboxes to the Admin application.
This context is initialized & managed in |
|
A collection of functions for creating action creators for sandbox operations. |
|
The contexts used for providing the state of executable sandbox operations within sandboxable views.
These contexts are initialized & managed in |
|
This component renders the |
|
The reducer for the actions related to sandbox operations. |
|
The constants for the different sandbox operation types. |
|
A collection of utilities for executing sandbox operations. |
|
This component renders a "ribbon" or a bar with a button that displays a list of available sandboxes for the current user, enabling filtering of entities by the selected sandbox and current user.
Typically rendered above a Title Bar component and above the |
|
A collection of utilities related to sandboxes.
|
|
This component is used to store the search settings and facet filters data in the browser cache storage. |
|
A collection of functions for creating action creators for tenant operations. |
|
This component is used to store the resolved Tenant and Application data in the browser cache storage. |
|
The context used for providing the current tenant state with tenant and application information to the Admin application.
This context is initialized & managed in |
|
The component used for providing |
|
The reducer for the actions related to the tenant state. |
|
See |
|
|
|
A hook used to fetch all available applications from |
|
A hook that connects to the change container context to provide the view type component change container information. |
|
A hook used to connect to the sandbox operations actions and state. |
|
A hook used to fetch the currently chosen application from |
|
Returns the current application ID from the tenant context. |
|
Returns the currently active sandbox from the sandbox context. |
|
A hook used to fetch the currently chosen tenant from |
|
A hook that connects to the change container context to provide the external type component change container information. |
|
A hook that creates a callback that can be used to take a user to the application to preview the changes for a sandboxed entity. |
|
A hook used to return a memoized function that allows the user to perform tenant actions such as setting the application ID, setting the tenant ID, and fetching applications, among others. |
|
A hook used to fetch the |
|
A hook used to access the catalog and sandbox tracking context and state data that is set and updated by the |
|
Returns the current set of user sandboxes from the sandbox context. |
Component Name | Description |
---|---|
|
Renders an action dropdown menu with a button. Used for secondary action dropdowns within several views. |
|
A dropdown selector component that allows the user to select the current application. |
|
A view for rendering the list grids dealing with approving and scheduling sandbox change summaries. It also manages which grid is rendered based on the view parameter of the location search string. |
|
A component used for rendering the splash screen for the application while it is loading. |
|
The view container component typically used for managing relationships between an entity and an Asset.
This utilizes |
|
This is the top-level view component that wraps all children components with the necessary providers & containers to allow certain components to be rendered over all other components or to ensure that certain components are present all-throughout the application. Other components rendered here include the:
|
|
The component rendered at the root rout that displays the Admin Dashboard title and app version. |
|
A view with a |
|
A view for rendering the list grids dealing with managing deployments of sandbox changes. It manages which grid is rendered based on the view parameter of the location search string. |
|
The default view container component for most entities browse view. This is typically responsible for rendering one or more grid sections, but is capable of rendering any section configured in the metadata. |
|
The view-type usually used for rendering the list view for an entity domain. |
|
The primary view component for rendering the create or edit form for managing the data for an entity. |
|
The default view container component for rendering the export section tab. |
|
The component rendered in |
|
The default view container component for rendering the import screen.
This is typically responsible for rendering |
|
|
|
This is a view for rendering the list grids dealing with a user’s sandbox changes. It manages which grid is rendered based on the view parameter of the location search string. |
|
The component that renders the application selector and navigation menu for the application. |
|
View component that renders the Order details screen. This component provides a consolidated view of an order and its relationships. |
|
A view-type component used for simply rendering a set of form components.
This is typically used as a replacement for |
|
A hook that reads from and saves to the navigation cache data stored in the browser. |
|
This component renders metadata-driven view components of classifier "View". Read more about all types of renderable view components in the View Metadata exports table. |