@simoncomputing/mui-bueno-v2 0.17.3 → 0.17.5
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 +17 -0
- package/dist/components/Form/Inputs/CitationField/CitationMenu/AttachmentForm.d.ts +1 -0
- package/dist/components/Form/Inputs/CitationField/CitationMenu/CitationAlert.d.ts +17 -0
- package/dist/components/Form/Inputs/CitationField/CitationMenu/CitationForm.d.ts +1 -0
- package/dist/components/Form/Inputs/CitationField/CitationMenu/CitationMenu.d.ts +6 -1
- package/dist/components/Form/Inputs/CitationField/CitationMenu/CitationTable.d.ts +13 -0
- package/dist/components/Form/Inputs/RichTextField/RichTextControls.d.ts +1 -1
- package/dist/components/Form/Inputs/RichTextField/RichTextField.d.ts +1 -1
- package/dist/index.cjs.js +98 -98
- package/dist/index.es.js +7786 -7696
- package/dist/index.umd.js +85 -85
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,23 @@ 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.17.5] - 2025-09-22
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- `CitationMenu`:
|
|
19
|
+
- added `renderAsSelectablePopup` prop
|
|
20
|
+
|
|
21
|
+
## [0.17.4] - 2025-09-16
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
|
|
25
|
+
- `RichTextField`:
|
|
26
|
+
- Made `onUploadFiles` optional
|
|
27
|
+
- `RichTextControls`:
|
|
28
|
+
- Made `onUploadFiles` optional
|
|
29
|
+
- Hid upload image button when `onUploadFiles` is undefined
|
|
30
|
+
|
|
14
31
|
## [0.17.3] - 2025-09-16
|
|
15
32
|
|
|
16
33
|
### Fixed
|
|
@@ -2,6 +2,7 @@ import { Citation, UnsavedAttachmentCitation } from '../../../../../@types';
|
|
|
2
2
|
import { CitationMenuError } from './CitationMenu';
|
|
3
3
|
export type NewAttachmentFormProps = {
|
|
4
4
|
id?: number;
|
|
5
|
+
title?: string;
|
|
5
6
|
onSave: (unsavedAttachment: UnsavedAttachmentCitation) => Promise<void>;
|
|
6
7
|
onCancel: () => void;
|
|
7
8
|
getCitationById: (id: number) => Promise<Citation>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
error?: CitationMenuError;
|
|
3
|
+
setError: React.Dispatch<React.SetStateAction<CitationMenuError | undefined>>;
|
|
4
|
+
success?: string;
|
|
5
|
+
setSuccess: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Error for CitationMenu
|
|
9
|
+
* title = human-friendly/shortened version of the error (ex. "Failed to create citation")
|
|
10
|
+
* err = the actual error thrown by the exception that was caught
|
|
11
|
+
*/
|
|
12
|
+
export type CitationMenuError = {
|
|
13
|
+
title: string;
|
|
14
|
+
err: string;
|
|
15
|
+
};
|
|
16
|
+
declare const CitationAlert: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default CitationAlert;
|
|
@@ -2,6 +2,7 @@ import { Citation, UnsavedUrlCitation } from '../../../../../@types';
|
|
|
2
2
|
import { CitationMenuError } from './CitationMenu';
|
|
3
3
|
export type CitationFormProps = {
|
|
4
4
|
id?: number;
|
|
5
|
+
title?: string;
|
|
5
6
|
onSave: (unsavedUrl: UnsavedUrlCitation) => Promise<void>;
|
|
6
7
|
onCancel: () => void;
|
|
7
8
|
getCitationById: (id: number) => Promise<Citation>;
|
|
@@ -48,6 +48,11 @@ export interface CitationMenuProps {
|
|
|
48
48
|
* help debug issues so developers can see specific details about an error.
|
|
49
49
|
*/
|
|
50
50
|
onError?: (err: string) => void;
|
|
51
|
+
/**
|
|
52
|
+
* When true, the table will be rendered for pop-ups with the ability to select citations from the table.
|
|
53
|
+
* When false, teh table will be rendered as a basic paginated table with all columns displayed.
|
|
54
|
+
*/
|
|
55
|
+
renderAsSelectablePopup?: boolean;
|
|
51
56
|
}
|
|
52
57
|
/**
|
|
53
58
|
* Error for CitationMenu
|
|
@@ -70,5 +75,5 @@ export declare enum CitationMenuState {
|
|
|
70
75
|
*
|
|
71
76
|
* Intended to be used within a bubble/pop-up/modal/dialog. For in-line citations, see CitationField instead.
|
|
72
77
|
*/
|
|
73
|
-
export declare function CitationMenu({ getCitationsPaginated, onCreateCitation, onUpdateCitation, onDeleteCitation, getCitationById, onSelectCitations, onCancel, initialSelectedIds, onContentChange, onError, }: CitationMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
78
|
+
export declare function CitationMenu({ getCitationsPaginated, onCreateCitation, onUpdateCitation, onDeleteCitation, getCitationById, onSelectCitations, onCancel, initialSelectedIds, onContentChange, onError, renderAsSelectablePopup, }: CitationMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
74
79
|
export default CitationMenu;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PageState, PageResponse, Citation } from '../../../../../@types';
|
|
2
2
|
import { CitationMenuError } from './CitationMenu';
|
|
3
3
|
export type CitationTableProps = {
|
|
4
|
+
title: string;
|
|
4
5
|
onCancel: () => void;
|
|
5
6
|
onNewCitation: () => void;
|
|
6
7
|
onNewAttachment: () => void;
|
|
@@ -20,6 +21,18 @@ export type CitationTableProps = {
|
|
|
20
21
|
onError?: (err: string) => void;
|
|
21
22
|
setError: React.Dispatch<React.SetStateAction<CitationMenuError | undefined>>;
|
|
22
23
|
setSuccess: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
24
|
+
/**
|
|
25
|
+
* When true, the Source, Accessed At & Classification columns will not be displayed
|
|
26
|
+
* to preserve horizontal space.
|
|
27
|
+
*/
|
|
28
|
+
condenseTable?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* When true, first column will be checkboxes, allowing users to select citations.
|
|
31
|
+
*
|
|
32
|
+
* Select/Cancel buttons will appear at the bottom of the component.
|
|
33
|
+
* NOTE: add buttons will move to the bottom of the component, inline with the Select/Cancel buttons.
|
|
34
|
+
*/
|
|
35
|
+
canSelect?: boolean;
|
|
23
36
|
};
|
|
24
37
|
declare const CitationTable: (props: CitationTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
38
|
export default CitationTable;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ImageNodeAttributes } from 'mui-tiptap';
|
|
2
2
|
export type RichTextControlsProps = {
|
|
3
|
-
onUploadFiles
|
|
3
|
+
onUploadFiles?: (files: File[]) => ImageNodeAttributes[] | Promise<ImageNodeAttributes[]>;
|
|
4
4
|
};
|
|
5
5
|
export declare const RichTextControls: (props: RichTextControlsProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export default RichTextControls;
|
|
@@ -17,7 +17,7 @@ export type RichTextEditorProps = {
|
|
|
17
17
|
/**
|
|
18
18
|
* Handler for uploading files/images. Use this to save your images to your server (ex. S3 Bucket).
|
|
19
19
|
*/
|
|
20
|
-
onUploadFiles
|
|
20
|
+
onUploadFiles?: (files: File[]) => ImageNodeAttributes[] | Promise<ImageNodeAttributes[]>;
|
|
21
21
|
/**
|
|
22
22
|
* If `true`, the component becomes readonly.
|
|
23
23
|
* @default false
|