@simoncomputing/mui-bueno-v2 0.18.12 → 0.18.13
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/AttachmentForm.d.ts +1 -4
- package/dist/components/Form/Inputs/CitationField/CitationManager/CitationAlert.d.ts +5 -6
- package/dist/components/Form/Inputs/CitationField/CitationManager/CitationForm.d.ts +1 -4
- package/dist/components/Form/Inputs/CitationField/CitationManager/CitationTable.d.ts +0 -3
- package/dist/index.cjs.js +74 -74
- package/dist/index.es.js +6079 -6101
- package/dist/index.umd.js +75 -75
- 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
|
+
|
|
15
|
+
## [0.18.13] - 2025-09-29
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
- `CitationField`, `CitationManger`, `SelectableCitationManager`
|
|
19
|
+
- Updated errors to allow for backend validation error to display as body of Alert
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
- `CitationField`, `CitationManger`, `SelectableCitationManager`
|
|
23
|
+
- Empty form will display if an error occurs when clicking on the edit button and retrieve API call fails
|
|
24
|
+
|
|
25
|
+
- `Radio`/`RadioGroup`
|
|
26
|
+
- Fixed `helperText` getting passed to MUI props when it shouldn't
|
|
27
|
+
|
|
14
28
|
## [0.18.12] - 2025-09-26
|
|
15
29
|
|
|
16
30
|
### Added
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { Citation, UnsavedAttachmentCitation } from '../../../../../@types';
|
|
2
|
-
import { CitationManagerError } from './CitationAlert';
|
|
3
2
|
export type AttachmentFormProps = {
|
|
4
|
-
id?: number;
|
|
5
3
|
title?: string;
|
|
6
4
|
onSave: (unsavedAttachment: UnsavedAttachmentCitation) => Promise<void>;
|
|
7
5
|
onCancel: () => void;
|
|
8
|
-
getCitationById: (id: number) => Promise<Citation>;
|
|
9
6
|
disableFileUpload?: boolean;
|
|
10
|
-
|
|
7
|
+
modifyCitation: Citation | undefined;
|
|
11
8
|
};
|
|
12
9
|
declare const AttachmentForm: (props: AttachmentFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
10
|
export default AttachmentForm;
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
type Props = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
success?: string;
|
|
5
|
-
setSuccess: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
2
|
+
alert?: CitationManagerAlert;
|
|
3
|
+
setAlert: React.Dispatch<React.SetStateAction<CitationManagerAlert | undefined>>;
|
|
6
4
|
};
|
|
7
5
|
/**
|
|
8
6
|
* Error for BaseCitationManager, CitationManager & SelectableCitationManager
|
|
9
7
|
* title = human-friendly/shortened version of the error (ex. "Failed to create citation")
|
|
10
8
|
* err = the actual error thrown by the exception that was caught
|
|
11
9
|
*/
|
|
12
|
-
export type
|
|
10
|
+
export type CitationManagerAlert = {
|
|
13
11
|
title: string;
|
|
14
|
-
|
|
12
|
+
message: string;
|
|
13
|
+
type: 'Success' | 'Error';
|
|
15
14
|
};
|
|
16
15
|
declare const CitationAlert: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
17
16
|
export default CitationAlert;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { Citation, UnsavedUrlCitation } from '../../../../../@types';
|
|
2
|
-
import { CitationManagerError } from './CitationAlert';
|
|
3
2
|
export type CitationFormProps = {
|
|
4
|
-
id?: number;
|
|
5
3
|
title?: string;
|
|
6
4
|
onSave: (unsavedUrl: UnsavedUrlCitation) => Promise<void>;
|
|
7
5
|
onCancel: () => void;
|
|
8
|
-
|
|
9
|
-
setError: React.Dispatch<React.SetStateAction<CitationManagerError | undefined>>;
|
|
6
|
+
modifyCitation: Citation | undefined;
|
|
10
7
|
};
|
|
11
8
|
declare const CitationForm: (props: CitationFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
9
|
export default CitationForm;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { PageState, PageResponse, Citation } from '../../../../../@types';
|
|
3
|
-
import { CitationManagerError } from './CitationAlert';
|
|
4
3
|
export type CitationTableProps = {
|
|
5
4
|
title: string;
|
|
6
5
|
onCancel: () => void;
|
|
@@ -21,8 +20,6 @@ export type CitationTableProps = {
|
|
|
21
20
|
* help debug issues so developers can see specific details about an error.
|
|
22
21
|
*/
|
|
23
22
|
onError?: (err: string) => void;
|
|
24
|
-
setError: React.Dispatch<React.SetStateAction<CitationManagerError | undefined>>;
|
|
25
|
-
setSuccess: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
26
23
|
/**
|
|
27
24
|
* When true, the Source, Accessed At & Classification columns will not be displayed
|
|
28
25
|
* to preserve horizontal space.
|