@simoncomputing/mui-bueno-v2 0.30.0 → 0.31.1

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,7 +11,29 @@ 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.30.0] - 2026-06-18
14
+ ## [0.31.1] - 2026-06-22
15
+
16
+ ### Changed
17
+
18
+ - `CitationField`/`SelectableCitationManager`
19
+ - Added loading overlay so that if user clicks on single inline citation, the popup can show loading indication while fetching citation by id.
20
+
21
+ ## [0.31.0] - 2026-06-19
22
+
23
+ ### Changed
24
+
25
+ - `CitationManager`/`SelectableCitationManager`
26
+ - Added close buttons to the top-right of the edit/view pop-up
27
+
28
+ - `CitationField`/`CitationManager`/`SelectableCitationManager`
29
+ - 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.
30
+
31
+ ### Fixed
32
+
33
+ - `CitationField`/`CitationManager`/`SelectableCitationManager`
34
+ - Fixed title of edit/view popup, which was showing "Edit Citation"/"Edit Attachment" when the form was read-only
35
+
36
+ ## [0.30.0] - 2026-06-19
15
37
 
16
38
  ### Changed
17
39
 
@@ -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
  *
@@ -112,10 +112,8 @@ export type BaseCitationManagerProps = BaseCitationManagerApiProps & {
112
112
  };
113
113
  export declare enum CitationManagerState {
114
114
  CITATIONS_TABLE = "Insert Citation/Attachment(s)",
115
- ADD_CITATION = "Add Citation",
116
- EDIT_CITATION = "Edit Citation",
117
- ADD_ATTACHMENT = "Add Attachment",
118
- EDIT_ATTACHMENT = "Edit Attachment"
115
+ URL_DETAILS = "Citation",
116
+ ATTACHMENT_DETAILS = "Attachment"
119
117
  }
120
118
  /**
121
119
  * BaseCitationManager handles creating, updating, deleting, downloading and selecting citations.
@@ -1,20 +1,11 @@
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;
7
6
  onClose: () => void;
8
7
  modifyCitation: Citation | undefined;
9
- /**
10
- * If true, file upload is disabled. (Title field is still enabled)
11
- */
12
- disableFileUpload?: boolean;
13
8
  readOnly?: boolean;
14
- /**
15
- * If true, shows a close button inline with title. Intended to be used within modals.
16
- */
17
- showCloseBtn?: boolean;
18
9
  showViewAllCitationsBtn?: boolean;
19
10
  onDownloadAttachment: ((citation: Citation) => Promise<void>) | undefined;
20
11
  onPreviewAttachment: ((citation: Citation) => Promise<void>) | undefined;
@@ -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
  };