2
0
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:
Oliver
2025-07-25 01:23:34 +10:00
committed by GitHub
parent a301214ac9
commit 0e0abf2d75
55 changed files with 945 additions and 868 deletions

View File

@@ -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';