mirror of
https://github.com/inventree/InvenTree.git
synced 2026-04-21 18:50:52 +00:00
[plugin] Library updates (#10070)
* Expose lingui modules to plugins * Add i18n object to plugin context * Expose form types * Update package.json requirements * Externalize react and mantine when building @inventreedb/ui components * Externalize lingui packages too * Extern <AddItemButton />
This commit is contained in:
@@ -15,6 +15,16 @@ export { UserRoles, UserPermissions } from './enums/Roles';
|
||||
export type { InvenTreePluginContext } from './types/Plugins';
|
||||
export type { RowAction, RowViewProps } from './types/Tables';
|
||||
|
||||
export type {
|
||||
ApiFormFieldChoice,
|
||||
ApiFormFieldHeader,
|
||||
ApiFormFieldType,
|
||||
ApiFormFieldSet,
|
||||
ApiFormProps,
|
||||
ApiFormModalProps,
|
||||
BulkEditApiFormModalProps
|
||||
} from './types/Forms';
|
||||
|
||||
// Common utility functions
|
||||
export { apiUrl } from './functions/Api';
|
||||
export {
|
||||
@@ -22,7 +32,10 @@ export {
|
||||
getDetailUrl,
|
||||
navigateToLink
|
||||
} from './functions/Navigation';
|
||||
export { checkPluginVersion } from './functions/Plugins';
|
||||
export {
|
||||
checkPluginVersion,
|
||||
initPlugin
|
||||
} from './functions/Plugins';
|
||||
|
||||
export {
|
||||
formatCurrencyValue,
|
||||
@@ -31,7 +44,11 @@ export {
|
||||
} from './functions/Formatting';
|
||||
|
||||
// Common UI components
|
||||
export { ActionButton } from './components/ActionButton';
|
||||
export {
|
||||
ActionButton,
|
||||
type ActionButtonProps
|
||||
} from './components/ActionButton';
|
||||
export { AddItemButton } from './components/AddItemButton';
|
||||
export { ButtonMenu } from './components/ButtonMenu';
|
||||
export { ProgressBar } from './components/ProgressBar';
|
||||
export { PassFailButton, YesNoButton } from './components/YesNoButton';
|
||||
|
||||
Reference in New Issue
Block a user