notu 0.14.0 → 0.14.1
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.
|
@@ -15,6 +15,8 @@ export declare class NoteComponentInfo {
|
|
|
15
15
|
}
|
|
16
16
|
/** Defines the interface for an object which can identify and then create instances of a particular type of note component */
|
|
17
17
|
export interface NoteComponentProcessor {
|
|
18
|
+
get displayName(): string;
|
|
19
|
+
newComponentText(contentText: string): string;
|
|
18
20
|
identify(text: string): NoteComponentInfo;
|
|
19
21
|
/** Accepts a function which converts a NoteComponentInfo object into an actual NoteComponent that can be rendered */
|
|
20
22
|
create(info: NoteComponentInfo, note: Note, save: () => Promise<void>): NoteComponent;
|