1- import { OutgoingItemMessagePayload , AppDataField , DecryptedTransferPayload , ItemContent , ComponentAction , ContentType } from '@standardnotes/snjs' ;
1+ import type { OutgoingItemMessagePayload , AppDataField , DecryptedTransferPayload , ItemContent , ContentType } from '@standardnotes/snjs' ;
22import { ComponentRelayParams } from './Types/ComponentRelayParams' ;
3+ import { ComponentAction } from './Types/ComponentAction' ;
34export default class ComponentRelay {
45 private contentWindow ;
56 private component ;
@@ -76,15 +77,6 @@ export default class ComponentRelay {
7677 * @param callback A callback to process the streamed item.
7778 */
7879 streamContextItem ( callback : ( data : any ) => void ) : void ;
79- /**
80- * Selects a `Tag` item.
81- * @param item The Item (`Tag` or `SmartTag`) to select.
82- */
83- selectItem ( item : DecryptedTransferPayload ) : void ;
84- /**
85- * Clears current selected `Tag` (if any).
86- */
87- clearSelection ( ) : void ;
8880 /**
8981 * Creates and stores an Item in the item store.
9082 * @param item The Item's payload content.
@@ -97,16 +89,6 @@ export default class ComponentRelay {
9789 * @param callback The callback to process the created Item(s).
9890 */
9991 createItems ( items : DecryptedTransferPayload [ ] , callback : ( data : any ) => void ) : void ;
100- /**
101- * Associates a `Tag` with the current Note.
102- * @param item The `Tag` item to associate.
103- */
104- associateItem ( item : DecryptedTransferPayload ) : void ;
105- /**
106- * Deassociates a `Tag` with the current Note.
107- * @param item The `Tag` item to deassociate.
108- */
109- deassociateItem ( item : DecryptedTransferPayload ) : void ;
11092 /**
11193 * Deletes an Item from the item store.
11294 * @param item The Item to delete.
0 commit comments