@inventreedb/ui 0.11.1 → 0.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  This file contains historical changelog information for the InvenTree UI components library.
4
4
 
5
+ ### 0.11.2 - April 2026
6
+
7
+ Exposes additional type definitions related to tables and filters:
8
+
9
+ - TableFilterChoice
10
+ - TableFilterType
11
+ - TableFilter
12
+ - FilterSetState
13
+
5
14
  ### 0.11.1 - April 2026
6
15
 
7
16
  Fixes dependency issues for the `InvenTreeTable` component, which were introduced in `0.11.0`. This ensures that the component works correctly and does not cause issues with plugin builds.
package/dist/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export type { ModelDict } from './enums/ModelInformation';
5
5
  export { UserRoles, UserPermissions } from './enums/Roles';
6
6
  export type { InvenTreePluginContext, InvenTreeFormsContext, InvenTreeTablesContext, ImporterDrawerContext, PluginVersion, StockAdjustmentFormsContext } from './types/Plugins';
7
7
  export type { RowAction, RowViewProps, TableColumn, TableColumnProps, InvenTreeTableProps, InvenTreeTableRenderProps } from './types/Tables';
8
+ export type { TableFilterChoice, TableFilterType, TableFilter, FilterSetState } from './types/Filters';
8
9
  export type { ApiFormFieldChoice, ApiFormFieldHeader, ApiFormFieldType, ApiFormFieldSet, ApiFormProps, ApiFormModalProps, BulkEditApiFormModalProps } from './types/Forms';
9
10
  export type { UseModalProps, UseModalReturn } from './types/Modals';
10
11
  export { apiUrl } from './functions/Api';
@@ -1,4 +1,4 @@
1
- const INVENTREE_PLUGIN_VERSION = "0.11.0";
1
+ const INVENTREE_PLUGIN_VERSION = "0.11.2";
2
2
  const INVENTREE_REACT_VERSION = "19.2.4";
3
3
  const INVENTREE_REACT_DOM_VERSION = (
4
4
  // @ts-ignore
@@ -1,5 +1,6 @@
1
1
  import { MantineStyleProp } from '@mantine/core';
2
2
  import { AxiosInstance } from 'axios';
3
+ import { ShowContextMenuFunction } from 'mantine-contextmenu';
3
4
  import { DataTableCellClickHandler, DataTableRowExpansionProps } from 'mantine-datatable';
4
5
  import { ReactNode } from 'react';
5
6
  import { NavigateFunction } from 'react-router-dom';
@@ -180,5 +181,8 @@ export type InvenTreeTableRenderProps<T extends Record<string, any>> = {
180
181
  props: InvenTreeTableProps<T>;
181
182
  api: AxiosInstance;
182
183
  navigate: NavigateFunction;
184
+ showContextMenu?: ShowContextMenuFunction;
185
+ searchParams?: URLSearchParams;
186
+ setSearchParams?: (params: URLSearchParams) => void;
183
187
  };
184
188
  export {};
package/lib/index.ts CHANGED
@@ -30,6 +30,13 @@ export type {
30
30
  InvenTreeTableRenderProps
31
31
  } from './types/Tables';
32
32
 
33
+ export type {
34
+ TableFilterChoice,
35
+ TableFilterType,
36
+ TableFilter,
37
+ FilterSetState
38
+ } from './types/Filters';
39
+
33
40
  export type {
34
41
  ApiFormFieldChoice,
35
42
  ApiFormFieldHeader,
@@ -1,5 +1,6 @@
1
1
  import type { MantineStyleProp } from '@mantine/core';
2
2
  import type { AxiosInstance } from 'axios';
3
+ import type { ShowContextMenuFunction } from 'mantine-contextmenu';
3
4
  import type {
4
5
  DataTableCellClickHandler,
5
6
  DataTableRowExpansionProps
@@ -223,4 +224,9 @@ export type InvenTreeTableRenderProps<T extends Record<string, any>> = {
223
224
  props: InvenTreeTableProps<T>;
224
225
  api: AxiosInstance;
225
226
  navigate: NavigateFunction;
227
+
228
+ // The following attributes are for internal use only (plugins should not use these directly)
229
+ showContextMenu?: ShowContextMenuFunction;
230
+ searchParams?: URLSearchParams;
231
+ setSearchParams?: (params: URLSearchParams) => void;
226
232
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@inventreedb/ui",
3
3
  "description": "UI components for the InvenTree project",
4
- "version": "0.11.1",
4
+ "version": "0.11.2",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "license": "MIT",