@simoncomputing/mui-bueno-v2 0.18.1 → 0.18.3
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 +25 -0
- package/dist/components/Form/Inputs/CitationField/CitationField.d.ts +1 -1
- package/dist/components/Form/Inputs/CitationField/CitationManager/BaseCitationManager.d.ts +1 -1
- package/dist/components/Form/Inputs/CitationField/CitationManager/CitationTable.d.ts +8 -0
- package/dist/index.cjs.js +48 -48
- package/dist/index.es.js +3159 -3151
- package/dist/index.umd.js +49 -49
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,31 @@ 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.3] - 2025-09-24
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- `CitationManager`
|
|
19
|
+
- Table data not refreshing when adding/updating citations
|
|
20
|
+
- Initial page size is 10 instead of 5
|
|
21
|
+
|
|
22
|
+
## [0.18.2] - 2025-09-23
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- `CitationManager` & `SelectableCitationManager`
|
|
27
|
+
|
|
28
|
+
- Moved actions displayed by `addlActions` to the end of the column, to the right of the delete button
|
|
29
|
+
- `onCreateCitation` is optional. When not provided, the Add Citation & Add Attachment buttons will not be displayed.
|
|
30
|
+
|
|
31
|
+
- `CitationManager`
|
|
32
|
+
- added more row padding to match default table row padding
|
|
33
|
+
|
|
34
|
+
### Fixed
|
|
35
|
+
|
|
36
|
+
- `CitationManager` & `SelectableCitationManager`
|
|
37
|
+
- `accessedAt` should not display for attachments
|
|
38
|
+
|
|
14
39
|
## [0.18.1] - 2025-09-23
|
|
15
40
|
|
|
16
41
|
### Added
|
|
@@ -48,7 +48,7 @@ export type CitationFieldProps = {
|
|
|
48
48
|
*
|
|
49
49
|
* Error handling is supported internally.
|
|
50
50
|
*/
|
|
51
|
-
onCreateCitation
|
|
51
|
+
onCreateCitation?: (unsavedCitation: UnsavedCitation) => Promise<Citation>;
|
|
52
52
|
/**
|
|
53
53
|
* API call for updating a citation/attachment.
|
|
54
54
|
*
|
|
@@ -8,7 +8,7 @@ export interface BaseCitationManagerProps {
|
|
|
8
8
|
/**
|
|
9
9
|
* API call for creating a new citation/attachment.
|
|
10
10
|
*/
|
|
11
|
-
onCreateCitation
|
|
11
|
+
onCreateCitation?: (citation: UnsavedCitation) => Promise<Citation>;
|
|
12
12
|
/**
|
|
13
13
|
* API call for updating a citation/attachment.
|
|
14
14
|
*/
|
|
@@ -35,10 +35,18 @@ export type CitationTableProps = {
|
|
|
35
35
|
* NOTE: add buttons will move to the bottom of the component, inline with the Select/Cancel buttons.
|
|
36
36
|
*/
|
|
37
37
|
canSelect?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* When true, create citation & attachment buttons will display.
|
|
40
|
+
*/
|
|
41
|
+
canCreate?: boolean;
|
|
38
42
|
/**
|
|
39
43
|
* Additional actions to be displayed for each row. Will be inserted in between Download (if applicable) and Edit button.
|
|
40
44
|
*/
|
|
41
45
|
addlActions?: (citation: Citation) => ReactNode;
|
|
46
|
+
/**
|
|
47
|
+
* Used to trigger a re-fetch of table data (via getPaginatedCitations)
|
|
48
|
+
*/
|
|
49
|
+
refreshKey?: number;
|
|
42
50
|
};
|
|
43
51
|
declare const CitationTable: (props: CitationTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
44
52
|
export default CitationTable;
|