@simoncomputing/mui-bueno-v2 0.18.3 → 0.18.4

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,16 @@ 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.4] - 2025-09-24
15
+
16
+ ### Added
17
+
18
+ - `TableColumn` - added `hideCol` prop, which when true, will hide the column from the `Table` or `PaginatedTable`
19
+
20
+ ### Fixed
21
+
22
+ - `CitationManager`, `SelectableCitationManager` - `onUpdateCitation` is optional. When not provided, the Edit icon buttons will not be displayed.
23
+
14
24
  ## [0.18.3] - 2025-09-24
15
25
 
16
26
  ### Fixed
@@ -114,6 +114,7 @@ export type EnvironmentInfo = {
114
114
  * on a phone vs tablet/desktop
115
115
  * @property {string} sortName - (Optional) Passed instead of `fieldName` to onSortChange(fieldName, ...). Useful if you're rendering the same object in 2+ columns and need a way to differentiate when sorting.
116
116
  * @property {SxProps<Theme>} tableCellSx - (Optional) styles applies to TableCell (non-mobile)
117
+ * @property {boolean} hideCol - (Optional) if true, this column will not be displayed
117
118
  */
118
119
  export type TableColumn<T, K extends keyof T> = {
119
120
  key?: string;
@@ -122,6 +123,7 @@ export type TableColumn<T, K extends keyof T> = {
122
123
  render?: (value: T[K], object: T, isMobile: boolean) => React.ReactNode;
123
124
  sortName?: string;
124
125
  tableCellSx?: SxProps<Theme>;
126
+ hideCol?: boolean;
125
127
  };
126
128
 
127
129
  // Sort order for Tables
@@ -54,7 +54,7 @@ export type CitationFieldProps = {
54
54
  *
55
55
  * Error handling is supported internally.
56
56
  */
57
- onUpdateCitation: (citation: Citation) => Promise<Citation>;
57
+ onUpdateCitation?: (citation: Citation) => Promise<Citation>;
58
58
  /**
59
59
  * API call for updating a citation/attachment.
60
60
  *
@@ -12,7 +12,7 @@ export interface BaseCitationManagerProps {
12
12
  /**
13
13
  * API call for updating a citation/attachment.
14
14
  */
15
- onUpdateCitation: (citation: Citation) => Promise<Citation>;
15
+ onUpdateCitation?: (citation: Citation) => Promise<Citation>;
16
16
  /**
17
17
  * API call for deleting a citation/attachment.
18
18
  */
@@ -39,6 +39,10 @@ export type CitationTableProps = {
39
39
  * When true, create citation & attachment buttons will display.
40
40
  */
41
41
  canCreate?: boolean;
42
+ /**
43
+ * When true, edit citation icon buttons will display for each row.
44
+ */
45
+ canEdit?: boolean;
42
46
  /**
43
47
  * Additional actions to be displayed for each row. Will be inserted in between Download (if applicable) and Edit button.
44
48
  */