@simoncomputing/mui-bueno-v2 0.18.0 → 0.18.1

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,7 +11,26 @@ 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.18.0] - 2025-09-22
14
+ ## [0.18.1] - 2025-09-23
15
+
16
+ ### Added
17
+
18
+ - `CitationManager` & `SelectableCitationManager`
19
+ - Added `addlActions` to allow additional actions to be provided. These will be added in between download icon button (if applicable) and edit icon button for each row.
20
+
21
+ ### Fixed
22
+
23
+ - `CitationManager` & `SelectableCitationManager`
24
+
25
+ - Fixed citation `type` showing attachment icon when `fileName` is null
26
+ - Fixed `url` displaying instead of `fileName` for attachments
27
+ - Fixed `accessedAt` displaying a value for attachments
28
+ - Fixed `classification` typo (which also fixes data population issue)
29
+
30
+ - `CitationManager`
31
+ - Fixed sizing of table title (h6 -> h2)
32
+
33
+ ## [0.18.0] - 2025-09-23
15
34
 
16
35
  ### Added
17
36
 
@@ -1,4 +1,5 @@
1
1
  import { Citation, PageState, PageResponse, UnsavedCitation } from '../../../../../@types';
2
+ import { ReactNode } from 'react';
2
3
  export interface BaseCitationManagerProps {
3
4
  /**
4
5
  * API call for fetching citations. These will populate the "Insert Citation/Attachment(s)" table.
@@ -57,6 +58,10 @@ export interface BaseCitationManagerProps {
57
58
  * When false, teh table will be rendered as a basic paginated table with all columns displayed.
58
59
  */
59
60
  renderAsSelectablePopup?: boolean;
61
+ /**
62
+ * Additional actions to be displayed for each row. Will be inserted in between Download (if applicable) and Edit button.
63
+ */
64
+ addlActions?: (citation: Citation) => ReactNode;
60
65
  }
61
66
  export declare enum CitationManagerState {
62
67
  CITATIONS_TABLE = "Insert Citation/Attachment(s)",
@@ -72,5 +77,5 @@ export declare enum CitationManagerState {
72
77
  *
73
78
  * For in-line citations, see CitationField instead.
74
79
  */
75
- export declare function BaseCitationManager({ getCitationsPaginated, onCreateCitation, onUpdateCitation, onDeleteCitation, getCitationById, onDownloadAttachment, onSelectCitations, onCancel, initialSelectedIds, onContentChange, onError, renderAsSelectablePopup, }: BaseCitationManagerProps): import("react/jsx-runtime").JSX.Element;
80
+ export declare function BaseCitationManager({ getCitationsPaginated, onCreateCitation, onUpdateCitation, onDeleteCitation, getCitationById, onDownloadAttachment, onSelectCitations, onCancel, initialSelectedIds, onContentChange, onError, renderAsSelectablePopup, addlActions, }: BaseCitationManagerProps): import("react/jsx-runtime").JSX.Element;
76
81
  export default BaseCitationManager;
@@ -1,3 +1,4 @@
1
+ import { ReactNode } from 'react';
1
2
  import { PageState, PageResponse, Citation } from '../../../../../@types';
2
3
  import { CitationManagerError } from './CitationAlert';
3
4
  export type CitationTableProps = {
@@ -34,6 +35,10 @@ export type CitationTableProps = {
34
35
  * NOTE: add buttons will move to the bottom of the component, inline with the Select/Cancel buttons.
35
36
  */
36
37
  canSelect?: boolean;
38
+ /**
39
+ * Additional actions to be displayed for each row. Will be inserted in between Download (if applicable) and Edit button.
40
+ */
41
+ addlActions?: (citation: Citation) => ReactNode;
37
42
  };
38
43
  declare const CitationTable: (props: CitationTableProps) => import("react/jsx-runtime").JSX.Element;
39
44
  export default CitationTable;