@simoncomputing/mui-bueno-v2 0.35.6 → 0.36.0

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,29 @@ 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.36.0] - 2026-08-10
15
+
16
+ ### Added
17
+
18
+ - `CitationManager`, `SelectableCitationManager`, `CitationField`
19
+ - Added `printMode` & `getCitations` props. When `printMode` is true, the table of citations will display in print mode (no actions, no pagination/all rows displayed, no truncated values).
20
+
21
+ ### Changed
22
+
23
+ - `CitationManager`, `SelectableCitationManager`, `CitationField`
24
+ - Optimization/stability improvements (added `useCallback`/`useMemo` wrappers internally)
25
+
26
+ ### Security
27
+
28
+ - Fixed all vulernabilities reported by `npm audit`
29
+
30
+ ## [0.35.7] - 2026-08-10
31
+
32
+ ### Changed
33
+
34
+ - `CitationManager`, `SelectableCitationManager`, `CitationField`
35
+ - URLs are always truncated in the citation table
36
+
14
37
  ## [0.35.6] - 2026-08-07
15
38
 
16
39
  ### Changed
@@ -7,6 +7,10 @@ export type BaseCitationManagerApiProps = {
7
7
  * Error handling is supported internally.
8
8
  */
9
9
  getCitationsPaginated: (req: PageState, selectedIds: number[]) => Promise<PageResponse<Citation>>;
10
+ /**
11
+ * Gets ALL citations (for printMode)
12
+ */
13
+ getCitations?: () => Promise<Citation[]>;
10
14
  /**
11
15
  * API call for creating a new citation/attachment.
12
16
  *
@@ -102,6 +106,10 @@ export type BaseCitationManagerProps = BaseCitationManagerApiProps & {
102
106
  * Whether users can create/edit/delete citations or not
103
107
  */
104
108
  readOnly?: boolean;
109
+ /**
110
+ * Similar to readOnly, but does not display any actions. Displays ALL citations (no pagination). No tooltips/truncated text.
111
+ */
112
+ printMode?: boolean;
105
113
  /**
106
114
  * When true, search bar is displayed.
107
115
  *
@@ -122,5 +130,5 @@ export declare enum CitationManagerState {
122
130
  *
123
131
  * For in-line citations, see CitationField instead.
124
132
  */
125
- export declare function BaseCitationManager({ getCitationsPaginated, onCreateCitation, onUpdateCitation, onDeleteCitation, getCitationById, onDownloadAttachment, onPreviewAttachment, onSelectCitations, onClose, initialSelectedIds, onContentChange, onError, renderAsPopup, canSelect, tableTitle, addlActions, canLaunchUrl, readOnly, canSearch, }: BaseCitationManagerProps): import("react/jsx-runtime").JSX.Element;
133
+ export declare function BaseCitationManager({ getCitationsPaginated, getCitations, onCreateCitation, onUpdateCitation, onDeleteCitation, getCitationById, onDownloadAttachment, onPreviewAttachment, onSelectCitations, onClose, initialSelectedIds, onContentChange, onError, renderAsPopup, canSelect, tableTitle, addlActions, canLaunchUrl, readOnly, printMode, canSearch, }: BaseCitationManagerProps): import("react/jsx-runtime").JSX.Element;
126
134
  export default BaseCitationManager;
@@ -51,6 +51,11 @@ export type CitationTableProps = Omit<BaseCitationManagerApiProps, 'onCreateCita
51
51
  * If canSelect is true, checkboxes will render as disabled.
52
52
  */
53
53
  readOnly?: boolean;
54
+ /**
55
+ * Print mode -- similar to read-only mode but additionally does not truncate,
56
+ * and does not paginate table.
57
+ */
58
+ printMode?: boolean;
54
59
  /**
55
60
  * When provided and the function returns true,
56
61
  * users will be allowed to launch URLs
@@ -58,6 +63,8 @@ export type CitationTableProps = Omit<BaseCitationManagerApiProps, 'onCreateCita
58
63
  canLaunchUrl?: (citation: Citation) => boolean;
59
64
  /**
60
65
  * Additional actions to be displayed for each row. Will be inserted in between Download (if applicable) and Edit button.
66
+ *
67
+ * IMPORTANT: Make sure to provide a unique key on your button (ex. <IconButton key={`custom-button-${citation.id}`}) ... />
61
68
  */
62
69
  addlActions?: (citation: Citation) => ReactNode;
63
70
  /**
@@ -74,7 +81,7 @@ export default CitationTable;
74
81
  *
75
82
  * Used by `CitationManager`, `SelectableCitationManager`, `CitationField`.
76
83
  */
77
- export declare const baseCitationTableColumns: (palette: Palette, condenseTable?: boolean) => ({
84
+ export declare const baseCitationTableColumns: (palette: Palette, condenseTable?: boolean, printMode?: boolean) => ({
78
85
  fieldName: string;
79
86
  key: string;
80
87
  label: string;