@simoncomputing/mui-bueno-v2 0.25.17 → 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 +21 -0
- package/dist/components/Form/Inputs/CitationField/CitationField.d.ts +1 -1
- 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/components/Form/Inputs/CitationField/CitationManager/SelectableCitationManager.d.ts +2 -2
- package/dist/index.cjs.js +85 -85
- package/dist/index.es.js +4597 -4581
- package/dist/index.umd.js +90 -90
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,27 @@ 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
|
+
|
|
28
|
+
## [0.25.18] - 2026-02-23
|
|
29
|
+
|
|
30
|
+
### Fixed
|
|
31
|
+
|
|
32
|
+
- `CitationField`, `SelectableCitationManager`
|
|
33
|
+
- Added `selectedIds` param so that ids can be passed to `getSelectedCitationsPaginated`
|
|
34
|
+
|
|
14
35
|
## [0.25.17] - 2026-02-23
|
|
15
36
|
|
|
16
37
|
### Added
|
|
@@ -5,7 +5,7 @@ export type CitationFieldProps = BaseInputProps & BaseCitationManagerApiProps &
|
|
|
5
5
|
/**
|
|
6
6
|
* API call for fetching SELECTED citations. Used instead of getCitationsPaginated when the component is readOnly.
|
|
7
7
|
*/
|
|
8
|
-
getSelectedCitationsPaginated: (req: PageState) => Promise<PageResponse<Citation>>;
|
|
8
|
+
getSelectedCitationsPaginated: (req: PageState, selectedIds: number[]) => Promise<PageResponse<Citation>>;
|
|
9
9
|
/**
|
|
10
10
|
* If `true`, the component becomes readonly.
|
|
11
11
|
* @default false
|
|
@@ -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
|
*
|
package/dist/components/Form/Inputs/CitationField/CitationManager/SelectableCitationManager.d.ts
CHANGED
|
@@ -4,12 +4,12 @@ export type SelectableCitationManagerProps = Omit<BaseCitationManagerProps, 'ren
|
|
|
4
4
|
/**
|
|
5
5
|
* API call for fetching SELECTED citations. Used instead of getCitationsPaginated when the component is readOnly.
|
|
6
6
|
*/
|
|
7
|
-
getSelectedCitationsPaginated: (req: PageState) => Promise<PageResponse<Citation>>;
|
|
7
|
+
getSelectedCitationsPaginated: (req: PageState, selectedIds: number[]) => Promise<PageResponse<Citation>>;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
10
|
* SelectableCitationManager is a condensed table that handles creating, updating, deleting and selecting citations.
|
|
11
11
|
*
|
|
12
12
|
* It's intended to be used in a pop-up/modal.
|
|
13
13
|
*/
|
|
14
|
-
export declare function SelectableCitationManager({ getSelectedCitationsPaginated, getCitationsPaginated, readOnly, ...rest }: SelectableCitationManagerProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function SelectableCitationManager({ getSelectedCitationsPaginated, getCitationsPaginated, readOnly, initialSelectedIds, ...rest }: SelectableCitationManagerProps): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export default SelectableCitationManager;
|