@simoncomputing/mui-bueno-v2 0.14.7 → 0.14.8
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,6 +11,12 @@ 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.8] - 2025-07-02
|
|
15
|
+
|
|
16
|
+
### Removed
|
|
17
|
+
|
|
18
|
+
- `CitationField`: removed `getCitationsByIds` prop since it was no longer being used
|
|
19
|
+
|
|
14
20
|
## [0.14.7] - 2025-07-01
|
|
15
21
|
|
|
16
22
|
**Important: Starting v0.14.7, this library will be published under the `simoncomputing` org in NPM, so please update your `mui-bueno-v2` import in `package.json` to `@simoncomputing/mui-bueno-v2`.**
|
|
@@ -63,13 +63,6 @@ export type CitationFieldProps = {
|
|
|
63
63
|
* Mui Bueno can handle updating state.
|
|
64
64
|
*/
|
|
65
65
|
onStoreAttachment: (citation: UnsavedAttachment) => Promise<Citation>;
|
|
66
|
-
/**
|
|
67
|
-
* API call for retrieving an array citations by an array ids
|
|
68
|
-
*
|
|
69
|
-
* If an error occurs during the API call, notify the user then throw the error so that
|
|
70
|
-
* Mui Bueno can handle updating state.
|
|
71
|
-
*/
|
|
72
|
-
getCitationsByIds: (ids: number[]) => Promise<Citation[]>;
|
|
73
66
|
/**
|
|
74
67
|
* Error callback.
|
|
75
68
|
*
|
package/package.json
CHANGED
package/dist/components/Form/Inputs/CitationField/CitationRefreshContext/CitationRefreshContext.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Citation } from '../../../../../@types';
|
|
2
|
-
type CitationRefreshProviderProps = {
|
|
3
|
-
/**
|
|
4
|
-
* CitationField(s)
|
|
5
|
-
*/
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* array of unqiue ids of citations currently being referenced in the editor
|
|
9
|
-
*/
|
|
10
|
-
citationIds: number[];
|
|
11
|
-
/**
|
|
12
|
-
* API call for fetching citations. Triggered internally when citationIds changes.
|
|
13
|
-
*/
|
|
14
|
-
getCitationsByIds: (ids: number[]) => Promise<Citation[]>;
|
|
15
|
-
/**
|
|
16
|
-
* Id of the citation that had a title changed. Used internally to determine whether or
|
|
17
|
-
* not to trigger an API refresh of the citation list.
|
|
18
|
-
*/
|
|
19
|
-
titleChangedId: number | undefined;
|
|
20
|
-
};
|
|
21
|
-
export declare function CitationRefreshProvider({ children, citationIds, getCitationsByIds, titleChangedId, }: CitationRefreshProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
export declare const useCitationRefreshContext: () => {
|
|
23
|
-
/**
|
|
24
|
-
* Array of ALL UNIQUE citations being referenced in the editor.
|
|
25
|
-
* (Not to be confused with table of citations in the bubble menu -- this is only the citations actually in the editor itself)
|
|
26
|
-
*/
|
|
27
|
-
citations: Citation[];
|
|
28
|
-
};
|
|
29
|
-
export {};
|