notu 0.10.6 → 0.10.7
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import Note from '../models/Note';
|
|
2
|
+
import { Notu } from '../services/Notu';
|
|
2
3
|
/** The base interface that all note components must implement */
|
|
3
4
|
export interface NoteComponent {
|
|
4
5
|
/** Gets the text which would be used for saving the current state of the note component's contents */
|
|
@@ -18,3 +19,5 @@ export interface NoteComponentProcessor {
|
|
|
18
19
|
/** Accepts a function which converts a NoteComponentInfo object into an actual NoteComponent that can be rendered */
|
|
19
20
|
creator: (info: NoteComponentInfo, note: Note, save: () => Promise<void>, previous: NoteComponentInfo, next: NoteComponentInfo) => NoteComponent;
|
|
20
21
|
}
|
|
22
|
+
/** Takes a note and a set of processors, returns an array of all the note components which make up that note's text */
|
|
23
|
+
export declare function splitNoteTextIntoComponents(note: Note, notu: Notu, componentProcessors: Array<NoteComponentProcessor>, defaultProcessor: NoteComponentProcessor): Array<NoteComponent>;
|