@simoncomputing/mui-bueno-v2 0.25.18 → 0.25.19
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 +14 -0
- package/dist/components/Form/Inputs/CitationField/CitationManager/BaseCitationManager.d.ts +3 -3
- package/dist/components/Form/Inputs/CitationField/CitationManager/CitationBubbleMenu.d.ts +1 -1
- package/dist/components/Form/Inputs/CitationField/CitationManager/CitationTable.d.ts +4 -14
- package/dist/index.cjs.js +85 -85
- package/dist/index.es.js +4591 -4577
- package/dist/index.umd.js +90 -90
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,20 @@ 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.25.19] - 2026-02-26
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- `CitationManager` / `SelectableCitationManager`
|
|
19
|
+
- Fixed "Actions" column always displaying when empty and `readOnly=true`.
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- `CitationManager` / `SelectableCitationManager`
|
|
24
|
+
- `getCitationById` is no longer required. Providing this prop will allow users to edit citations, if `onUpdateCitation` is also defined and `readOnly=false`. Or view, if `readOnly=true` and `condenseTable=true`.
|
|
25
|
+
- `CitationField`
|
|
26
|
+
- Renamed `onViewAttachment` to `onPreviewAttachment`
|
|
27
|
+
|
|
14
28
|
## [0.25.18] - 2026-02-23
|
|
15
29
|
|
|
16
30
|
### Fixed
|
|
@@ -30,7 +30,7 @@ export type BaseCitationManagerApiProps = {
|
|
|
30
30
|
*
|
|
31
31
|
* Error handling is supported internally.
|
|
32
32
|
*/
|
|
33
|
-
getCitationById
|
|
33
|
+
getCitationById?: (id: number) => Promise<Citation>;
|
|
34
34
|
/**
|
|
35
35
|
* API call to download the attachment
|
|
36
36
|
*
|
|
@@ -42,7 +42,7 @@ export type BaseCitationManagerApiProps = {
|
|
|
42
42
|
*
|
|
43
43
|
* Error handling is supported internally.
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
onPreviewAttachment?: (citation: Citation) => Promise<void>;
|
|
46
46
|
};
|
|
47
47
|
export type BaseCitationManagerProps = BaseCitationManagerApiProps & {
|
|
48
48
|
/**
|
|
@@ -117,5 +117,5 @@ export declare enum CitationManagerState {
|
|
|
117
117
|
*
|
|
118
118
|
* For in-line citations, see CitationField instead.
|
|
119
119
|
*/
|
|
120
|
-
export declare function BaseCitationManager({ getCitationsPaginated, onCreateCitation, onUpdateCitation, onDeleteCitation, getCitationById, onDownloadAttachment,
|
|
120
|
+
export declare function BaseCitationManager({ getCitationsPaginated, onCreateCitation, onUpdateCitation, onDeleteCitation, getCitationById, onDownloadAttachment, onPreviewAttachment, onSelectCitations, onCancel, initialSelectedIds, onContentChange, onError, renderAsPopup, canSelect, tableTitle, addlActions, canLaunchUrl, readOnly, }: BaseCitationManagerProps): import("react/jsx-runtime").JSX.Element;
|
|
121
121
|
export default BaseCitationManager;
|
|
@@ -23,4 +23,4 @@ export type CitationBubbleMenuProps = Partial<Omit<ControlledBubbleMenuProps, 'o
|
|
|
23
23
|
* update, which will happen if it's a child of the component using
|
|
24
24
|
* `useEditor`).
|
|
25
25
|
*/
|
|
26
|
-
export default function CitationBubbleMenuTipTap({ getCitationsPaginated, getSelectedCitationsPaginated, onCreateCitation, onUpdateCitation, onDeleteCitation, getCitationById, onDownloadAttachment,
|
|
26
|
+
export default function CitationBubbleMenuTipTap({ getCitationsPaginated, getSelectedCitationsPaginated, onCreateCitation, onUpdateCitation, onDeleteCitation, getCitationById, onDownloadAttachment, onPreviewAttachment, canLaunchUrl, readOnly, ...controlledBubbleMenuProps }: CitationBubbleMenuProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -7,8 +7,10 @@ export type CitationTableProps = Omit<BaseCitationManagerApiProps, 'onCreateCita
|
|
|
7
7
|
onCancel: () => void;
|
|
8
8
|
onNewCitation: () => void;
|
|
9
9
|
onNewAttachment: () => void;
|
|
10
|
-
onEditCitation
|
|
11
|
-
onEditAttachment
|
|
10
|
+
onEditCitation?: (citation: Citation) => void;
|
|
11
|
+
onEditAttachment?: (citation: Citation) => void;
|
|
12
|
+
onViewCitation?: (citation: Citation) => void;
|
|
13
|
+
onViewAttachment?: (citation: Citation) => void;
|
|
12
14
|
onSelect: (selectedIds: number[]) => void;
|
|
13
15
|
selectedIds: number[];
|
|
14
16
|
setSelectedIds: React.Dispatch<React.SetStateAction<number[]>>;
|
|
@@ -37,18 +39,6 @@ export type CitationTableProps = Omit<BaseCitationManagerApiProps, 'onCreateCita
|
|
|
37
39
|
* Can be overridden by readOnly
|
|
38
40
|
*/
|
|
39
41
|
canCreate?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* When true, edit citation icon buttons will display for each row.
|
|
42
|
-
*
|
|
43
|
-
* Can be overridden by readOnly
|
|
44
|
-
*/
|
|
45
|
-
canEdit?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* When true, delete citation icon buttons will display for each row.
|
|
48
|
-
*
|
|
49
|
-
* Can be overridden by readOnly
|
|
50
|
-
*/
|
|
51
|
-
canDelete?: boolean;
|
|
52
42
|
/**
|
|
53
43
|
* If true, renders as readOnly table. Overrides canCreate, canEdit, canDelete.
|
|
54
44
|
*
|