@simoncomputing/mui-bueno-v2 0.30.0 → 0.31.0
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 +16 -1
- package/dist/components/Form/Inputs/CitationField/CitationManager/BaseCitationManager.d.ts +1 -1
- package/dist/components/Form/Inputs/CitationField/CitationManager/CitationForms/AttachmentForm.d.ts +0 -5
- package/dist/components/Form/Inputs/CitationField/CitationManager/CitationForms/UrlForm.d.ts +0 -3
- package/dist/index.cjs.js +46 -46
- package/dist/index.es.js +943 -936
- package/dist/index.umd.js +48 -48
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,7 +11,22 @@ 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.
|
|
14
|
+
## [0.31.0] - 2026-06-19
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- `CitationManager`/`SelectableCitationManager`
|
|
19
|
+
- Added close buttons to the top-right of the edit/view pop-up
|
|
20
|
+
|
|
21
|
+
- `CitationField`/`CitationManager`/`SelectableCitationManager`
|
|
22
|
+
- Added extra param `selectedIds` to `getCitationsPaginated: (req: PageState, selectedIds: number[])` which will provide the selected ids of the citations, if any, of the current target. If none, the array will be empty. This is recommended to be used to assist with server-side sorting so that the paginated citations will return with the selected citations listed first.
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
- `CitationField`/`CitationManager`/`SelectableCitationManager`
|
|
27
|
+
- Fixed title of edit/view popup, which was showing "Edit Citation"/"Edit Attachment" when the form was read-only
|
|
28
|
+
|
|
29
|
+
## [0.30.0] - 2026-06-19
|
|
15
30
|
|
|
16
31
|
### Changed
|
|
17
32
|
|
|
@@ -6,7 +6,7 @@ export type BaseCitationManagerApiProps = {
|
|
|
6
6
|
*
|
|
7
7
|
* Error handling is supported internally.
|
|
8
8
|
*/
|
|
9
|
-
getCitationsPaginated: (req: PageState) => Promise<PageResponse<Citation>>;
|
|
9
|
+
getCitationsPaginated: (req: PageState, selectedIds: number[]) => Promise<PageResponse<Citation>>;
|
|
10
10
|
/**
|
|
11
11
|
* API call for creating a new citation/attachment.
|
|
12
12
|
*
|
package/dist/components/Form/Inputs/CitationField/CitationManager/CitationForms/AttachmentForm.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Citation, UnsavedAttachmentCitation } from '../../../../../../@types';
|
|
2
2
|
export type AttachmentFormProps = {
|
|
3
|
-
title: string;
|
|
4
3
|
onSave: (unsavedAttachment: UnsavedAttachmentCitation) => Promise<void>;
|
|
5
4
|
onCancel: () => void;
|
|
6
5
|
onViewCitationTable: () => void;
|
|
@@ -11,10 +10,6 @@ export type AttachmentFormProps = {
|
|
|
11
10
|
*/
|
|
12
11
|
disableFileUpload?: boolean;
|
|
13
12
|
readOnly?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* If true, shows a close button inline with title. Intended to be used within modals.
|
|
16
|
-
*/
|
|
17
|
-
showCloseBtn?: boolean;
|
|
18
13
|
showViewAllCitationsBtn?: boolean;
|
|
19
14
|
onDownloadAttachment: ((citation: Citation) => Promise<void>) | undefined;
|
|
20
15
|
onPreviewAttachment: ((citation: Citation) => Promise<void>) | undefined;
|
package/dist/components/Form/Inputs/CitationField/CitationManager/CitationForms/UrlForm.d.ts
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { Citation, UnsavedUrlCitation } from '../../../../../../@types';
|
|
2
2
|
export type UrlFormProps = {
|
|
3
|
-
title: string;
|
|
4
3
|
onSave: (unsavedUrl: UnsavedUrlCitation) => Promise<void>;
|
|
5
4
|
onCancel: () => void;
|
|
6
5
|
onViewCitationTable: () => void;
|
|
7
6
|
onClose: () => void;
|
|
8
7
|
modifyCitation: Citation | undefined;
|
|
9
8
|
readOnly?: boolean;
|
|
10
|
-
/** If true, shows a close button inline with title. Intended to be used within modals. */
|
|
11
|
-
showCloseBtn?: boolean;
|
|
12
9
|
showViewAllCitationsBtn?: boolean;
|
|
13
10
|
canLaunchUrl?: (citation: Citation) => boolean;
|
|
14
11
|
};
|