@simoncomputing/mui-bueno-v2 0.25.14 → 0.25.17

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
@@ -11,6 +11,46 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
  - Minor increment --> singlular/minor changes. Minimal breaking changes.
12
12
  - Patch increment --> singlular/minor changes. Zero breaking changes.
13
13
 
14
+ ## [0.25.17] - 2026-02-23
15
+
16
+ ### Added
17
+
18
+ - `CitationField`
19
+ - Added `getSelectedCitationsPaginated` prop to fetch only selected citations when in readOnly mode
20
+
21
+ ### Fixed
22
+
23
+ - `SelectableCitationManager`
24
+ - Fixed props which should not allow `renderAsPopup` and `canSelect`
25
+
26
+ ### Changed
27
+
28
+ - `SelectableCitationManager`
29
+ - `getSelectedCitationsPaginated` is now required
30
+ - Updated title to be determined internally based on `readOnly`, to match `CitationField`
31
+
32
+ ## [0.25.16] - 2026-02-23
33
+
34
+ ### Changed
35
+
36
+ - `MultiAutocomplete`
37
+ - `disableClearable` is now true by default. This is to prevent users inadvertently clearing the field instead of the dropdown icon button next to it since the buttons are close together.
38
+
39
+ ## [0.25.15] - 2026-02-23
40
+
41
+ ### Added
42
+
43
+ - `SelectableCitationManager`
44
+ - Added `getSelectedCitationsPaginated` prop which, when implemented, only shows selected citations when `readOnly` is true. This is to improve the user experience by hiding superfluous data from the user, such as uninteractable checkboxes & unselected citations.
45
+
46
+ - `SelectableCitationManager`/`CitationManager`
47
+ - Added `tableTitle` prop which, when defined, will override the table's title (default "Attachments & Citations")
48
+
49
+ ### Removed
50
+
51
+ - `DiffCitationTable`
52
+ - Use `DiffTable` with `baseCitationTableColumns` for column definition
53
+
14
54
  ## [0.25.14] - 2026-02-23
15
55
 
16
56
  ### Added
@@ -1,7 +1,11 @@
1
- import { Citation } from '../../../../@types';
1
+ import { Citation, PageResponse, PageState } from '../../../../@types';
2
2
  import { BaseInputProps } from '../BaseInputProps';
3
3
  import { BaseCitationManagerApiProps } from './CitationManager/BaseCitationManager';
4
4
  export type CitationFieldProps = BaseInputProps & BaseCitationManagerApiProps & {
5
+ /**
6
+ * API call for fetching SELECTED citations. Used instead of getCitationsPaginated when the component is readOnly.
7
+ */
8
+ getSelectedCitationsPaginated: (req: PageState) => Promise<PageResponse<Citation>>;
5
9
  /**
6
10
  * If `true`, the component becomes readonly.
7
11
  * @default false
@@ -74,10 +74,19 @@ export type BaseCitationManagerProps = BaseCitationManagerApiProps & {
74
74
  */
75
75
  onError?: (err: any) => void;
76
76
  /**
77
- * When true, the table will be rendered for pop-ups with the ability to select citations from the table.
78
- * When false, teh table will be rendered as a basic paginated table with all columns displayed.
77
+ * When true, the table will be rendered for pop-ups (limited columns displayed, close button at top, etc).
78
+ * When false, the table will be rendered as a basic paginated table with all columns displayed.
79
79
  */
80
- renderAsSelectablePopup?: boolean;
80
+ renderAsPopup?: boolean;
81
+ /**
82
+ * When true, the table will show the checkbox column and allow user to choose citations.
83
+ * When false, the table will not show the checkbox column.
84
+ */
85
+ canSelect?: boolean;
86
+ /**
87
+ * If provided, overrides the default title of the table
88
+ */
89
+ tableTitle?: string;
81
90
  /**
82
91
  * Additional actions to be displayed for each row. Will be inserted in between Download (if applicable) and Edit button.
83
92
  */
@@ -108,5 +117,5 @@ export declare enum CitationManagerState {
108
117
  *
109
118
  * For in-line citations, see CitationField instead.
110
119
  */
111
- export declare function BaseCitationManager({ getCitationsPaginated, onCreateCitation, onUpdateCitation, onDeleteCitation, getCitationById, onDownloadAttachment, onViewAttachment, onSelectCitations, onCancel, initialSelectedIds, onContentChange, onError, renderAsSelectablePopup, addlActions, canLaunchUrl, readOnly, }: BaseCitationManagerProps): import("react/jsx-runtime").JSX.Element;
120
+ export declare function BaseCitationManager({ getCitationsPaginated, onCreateCitation, onUpdateCitation, onDeleteCitation, getCitationById, onDownloadAttachment, onViewAttachment, onSelectCitations, onCancel, initialSelectedIds, onContentChange, onError, renderAsPopup, canSelect, tableTitle, addlActions, canLaunchUrl, readOnly, }: BaseCitationManagerProps): import("react/jsx-runtime").JSX.Element;
112
121
  export default BaseCitationManager;
@@ -23,4 +23,4 @@ export type CitationBubbleMenuProps = Partial<Omit<ControlledBubbleMenuProps, 'o
23
23
  * update, which will happen if it's a child of the component using
24
24
  * `useEditor`).
25
25
  */
26
- export default function CitationBubbleMenuTipTap({ getCitationsPaginated, onCreateCitation, onUpdateCitation, onDeleteCitation, getCitationById, onDownloadAttachment, onViewAttachment, canLaunchUrl, readOnly, ...controlledBubbleMenuProps }: CitationBubbleMenuProps): import("react/jsx-runtime").JSX.Element | null;
26
+ export default function CitationBubbleMenuTipTap({ getCitationsPaginated, getSelectedCitationsPaginated, onCreateCitation, onUpdateCitation, onDeleteCitation, getCitationById, onDownloadAttachment, onViewAttachment, canLaunchUrl, readOnly, ...controlledBubbleMenuProps }: CitationBubbleMenuProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,5 +1,5 @@
1
1
  import { BaseCitationManagerProps } from './BaseCitationManager';
2
- export type CitationManagerProps = Omit<BaseCitationManagerProps, 'initialSelectedIds' | 'onSelectCitations' | 'onCancel' | 'onContentChange' | 'renderAsSelectablePopup'>;
2
+ export type CitationManagerProps = Omit<BaseCitationManagerProps, 'initialSelectedIds' | 'onSelectCitations' | 'onCancel' | 'onContentChange' | 'renderAsPopup' | 'canSelect'>;
3
3
  /**
4
4
  * CitationManager is a basic table that handles creating, updating, and deleting citations.
5
5
  */
@@ -1,9 +1,15 @@
1
+ import { Citation, PageResponse, PageState } from '../../../../../@types';
1
2
  import { BaseCitationManagerProps } from './BaseCitationManager';
2
- export type SelectableCitationManagerProps = Omit<BaseCitationManagerProps, 'renderAsSelectablePopup'>;
3
+ export type SelectableCitationManagerProps = Omit<BaseCitationManagerProps, 'renderAsPopup' | 'canSelect'> & {
4
+ /**
5
+ * API call for fetching SELECTED citations. Used instead of getCitationsPaginated when the component is readOnly.
6
+ */
7
+ getSelectedCitationsPaginated: (req: PageState) => Promise<PageResponse<Citation>>;
8
+ };
3
9
  /**
4
10
  * SelectableCitationManager is a condensed table that handles creating, updating, deleting and selecting citations.
5
11
  *
6
12
  * It's intended to be used in a pop-up/modal.
7
13
  */
8
- export declare function SelectableCitationManager({ ...rest }: SelectableCitationManagerProps): import("react/jsx-runtime").JSX.Element;
14
+ export declare function SelectableCitationManager({ getSelectedCitationsPaginated, getCitationsPaginated, readOnly, ...rest }: SelectableCitationManagerProps): import("react/jsx-runtime").JSX.Element;
9
15
  export default SelectableCitationManager;