@simoncomputing/mui-bueno-v2 0.18.11 → 0.18.12
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 +10 -0
- package/dist/components/Form/Inputs/CitationField/CitationField.d.ts +3 -2
- package/dist/components/Form/Inputs/CitationField/CitationManager/BaseCitationManager.d.ts +4 -3
- package/dist/components/Form/Inputs/CitationField/CitationManager/CitationBubbleMenu.d.ts +1 -1
- package/dist/components/Form/Inputs/CitationField/CitationManager/CitationTable.d.ts +3 -2
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +8 -8
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,16 @@ 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.18.12] - 2025-09-26
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
- `CitationField`, `CitationManger`, `SelectableCitationManager`
|
|
18
|
+
- `canLaunchUrl` prop which, when defined and returns true, will display a Launch Link icon under the action columnn
|
|
19
|
+
|
|
20
|
+
### Removed
|
|
21
|
+
- `CitationField`, `CitationManger`, `SelectableCitationManager`
|
|
22
|
+
- `canOpenPublicUrls`. Use `canLaunchUrl` instead
|
|
23
|
+
|
|
14
24
|
## [0.18.11] - 2025-09-26
|
|
15
25
|
|
|
16
26
|
### Added
|
|
@@ -85,9 +85,10 @@ export type CitationFieldProps = BaseInputProps & {
|
|
|
85
85
|
*/
|
|
86
86
|
notApplicableName?: string;
|
|
87
87
|
/**
|
|
88
|
-
* When
|
|
88
|
+
* When provided and the function returns true,
|
|
89
|
+
* users will be allowed to launch URLs
|
|
89
90
|
*/
|
|
90
|
-
|
|
91
|
+
canLaunchUrl?: (citation: Citation) => boolean;
|
|
91
92
|
};
|
|
92
93
|
/**
|
|
93
94
|
* Rich Text field -- uses MUI Tip Tap
|
|
@@ -63,9 +63,10 @@ export interface BaseCitationManagerProps {
|
|
|
63
63
|
*/
|
|
64
64
|
addlActions?: (citation: Citation) => ReactNode;
|
|
65
65
|
/**
|
|
66
|
-
* When
|
|
66
|
+
* When provided and the function returns true,
|
|
67
|
+
* users will be allowed to launch URLs
|
|
67
68
|
*/
|
|
68
|
-
|
|
69
|
+
canLaunchUrl?: (citation: Citation) => boolean;
|
|
69
70
|
}
|
|
70
71
|
export declare enum CitationManagerState {
|
|
71
72
|
CITATIONS_TABLE = "Insert Citation/Attachment(s)",
|
|
@@ -81,5 +82,5 @@ export declare enum CitationManagerState {
|
|
|
81
82
|
*
|
|
82
83
|
* For in-line citations, see CitationField instead.
|
|
83
84
|
*/
|
|
84
|
-
export declare function BaseCitationManager({ getCitationsPaginated, onCreateCitation, onUpdateCitation, onDeleteCitation, getCitationById, onDownloadAttachment, onSelectCitations, onCancel, initialSelectedIds, onContentChange, onError, renderAsSelectablePopup, addlActions,
|
|
85
|
+
export declare function BaseCitationManager({ getCitationsPaginated, onCreateCitation, onUpdateCitation, onDeleteCitation, getCitationById, onDownloadAttachment, onSelectCitations, onCancel, initialSelectedIds, onContentChange, onError, renderAsSelectablePopup, addlActions, canLaunchUrl, }: BaseCitationManagerProps): import("react/jsx-runtime").JSX.Element;
|
|
85
86
|
export default BaseCitationManager;
|
|
@@ -24,4 +24,4 @@ export type CitationBubbleMenuProps = Partial<Except<ControlledBubbleMenuProps,
|
|
|
24
24
|
* update, which will happen if it's a child of the component using
|
|
25
25
|
* `useEditor`).
|
|
26
26
|
*/
|
|
27
|
-
export default function CitationBubbleMenuTipTap({ getCitationsPaginated, onCreateCitation, onUpdateCitation, onDeleteCitation, getCitationById, onDownloadAttachment,
|
|
27
|
+
export default function CitationBubbleMenuTipTap({ getCitationsPaginated, onCreateCitation, onUpdateCitation, onDeleteCitation, getCitationById, onDownloadAttachment, canLaunchUrl, ...controlledBubbleMenuProps }: CitationBubbleMenuProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -44,9 +44,10 @@ export type CitationTableProps = {
|
|
|
44
44
|
*/
|
|
45
45
|
canEdit?: boolean;
|
|
46
46
|
/**
|
|
47
|
-
* When
|
|
47
|
+
* When provided and the function returns true,
|
|
48
|
+
* users will be allowed to launch URLs
|
|
48
49
|
*/
|
|
49
|
-
|
|
50
|
+
canLaunchUrl?: (citation: Citation) => boolean;
|
|
50
51
|
/**
|
|
51
52
|
* Additional actions to be displayed for each row. Will be inserted in between Download (if applicable) and Edit button.
|
|
52
53
|
*/
|