@simoncomputing/mui-bueno-v2 0.24.2 → 0.24.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,19 @@ 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.24.4] - 2026-02-03
15
+
16
+ ### Added
17
+
18
+ - `DiffCitationTable`
19
+ - New component. Use in place of `CitationManager` for version change comparison
20
+
21
+ ### Fixed
22
+
23
+ - `DiffTable`
24
+ - Hide count if 0 rows were unchanged
25
+ - Allow reusing IDs
26
+
14
27
  ## [0.24.2] - 2026-02-03
15
28
 
16
29
  ### Added
@@ -1,3 +1,4 @@
1
+ import { Palette } from '@mui/material';
1
2
  import { ReactNode } from 'react';
2
3
  import { Citation } from '../../../../../@types';
3
4
  import { BaseCitationManagerApiProps } from './BaseCitationManager';
@@ -72,3 +73,41 @@ export type CitationTableProps = Omit<BaseCitationManagerApiProps, 'onCreateCita
72
73
  };
73
74
  declare const CitationTable: (props: CitationTableProps) => import("react/jsx-runtime").JSX.Element;
74
75
  export default CitationTable;
76
+ export declare const baseCitationTableColumns: (palette: Palette, condenseTable?: boolean) => ({
77
+ fieldName: string;
78
+ key: string;
79
+ label: string;
80
+ render: (fileName: string | undefined, citation: Citation) => import("react/jsx-runtime").JSX.Element;
81
+ tableCellSx?: undefined;
82
+ hideCol?: undefined;
83
+ } | {
84
+ fieldName: string;
85
+ tableCellSx: {
86
+ width: string;
87
+ };
88
+ render: (title: string) => string;
89
+ key?: undefined;
90
+ label?: undefined;
91
+ hideCol?: undefined;
92
+ } | {
93
+ fieldName: string;
94
+ key: string;
95
+ label: string;
96
+ hideCol: boolean;
97
+ render: (fileName: string, citation: Citation) => import("react/jsx-runtime").JSX.Element;
98
+ tableCellSx?: undefined;
99
+ } | {
100
+ fieldName: string;
101
+ hideCol: boolean;
102
+ key?: undefined;
103
+ label?: undefined;
104
+ render?: undefined;
105
+ tableCellSx?: undefined;
106
+ } | {
107
+ fieldName: string;
108
+ hideCol: boolean;
109
+ render: (accessedAt: string, citation: Citation) => string | undefined;
110
+ key?: undefined;
111
+ label?: undefined;
112
+ tableCellSx?: undefined;
113
+ })[];
@@ -0,0 +1,12 @@
1
+ import { Citation } from '../../../../../../@types';
2
+ export type DiffCitationTableProps = {
3
+ beforeCitations: Citation[];
4
+ afterCitations: Citation[];
5
+ };
6
+ /**
7
+ * Compare set of table data (beforeCitations vs afterCitations).
8
+ *
9
+ * Use in place of `CitationManager` when comparing diff
10
+ */
11
+ export declare const DiffCitationTable: (props: DiffCitationTableProps) => import("react/jsx-runtime").JSX.Element;
12
+ export default DiffCitationTable;