@liff/window-postmessage
Advanced tools
Comparing version 2.20.2 to 2.20.3
@@ -1,13 +0,2 @@ | ||
/** | ||
* Cleanup cached the variables, testing use | ||
*/ | ||
export declare function _cleanupCache(): void; | ||
/** | ||
* main function to addEventListener with Promise which is resolve by being called at first time | ||
* you can remove eventListener you added with this function by using `removeListen.ts` | ||
* @param target Target Elements or Window | ||
* @param key One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin". | ||
* @param callback A function to execute when the event is triggered. | ||
* @param options same as AddEventListenerOptions. see MDN if you find out more | ||
*/ | ||
export declare function listen(target: HTMLElement | HTMLDocument | Window, key: string, callback?: (e: Event) => void, options?: AddEventListenerOptions): Promise<Event>; |
@@ -7,18 +7,3 @@ export interface ReceiveEvent extends MessageEvent { | ||
} | ||
/** | ||
* callback function called at first when receive a message event. (strictly speaking, listen.ts is called at very first) | ||
* before calling callback you designated, this verifies if the name and origin are same as you expected | ||
* @param name | ||
* @param callback | ||
* @param targetOrigin | ||
*/ | ||
export declare function verifyCallback(name: string, callback: Function, targetOrigin: string): (event: ReceiveEvent) => void; | ||
/** | ||
* receive Event from another window calling postMessage. | ||
* This is used for receiving data from another window like iframe, popup window, etc. | ||
* @param target | ||
* @param name | ||
* @param callback | ||
* @param targetOrigin | ||
*/ | ||
export declare function messageReceive(target: Window, name: string, callback: Function, targetOrigin: string): void; |
@@ -7,9 +7,2 @@ export interface TellEvent extends MessageEvent { | ||
} | ||
/** | ||
* call postMessage. This is used for sending data to another window like iframe, popup window, etc. | ||
* @param target | ||
* @param name | ||
* @param body | ||
* @param targetOrigin | ||
*/ | ||
export declare function messageTell(target: Window, name: string, body: {} | undefined, targetOrigin: string): void; |
{ | ||
"name": "@liff/window-postmessage", | ||
"version": "2.20.2", | ||
"version": "2.20.3", | ||
"description": "@liff/window-postmessage", | ||
@@ -34,7 +34,7 @@ "license": "SEE LICENSE IN README.md", | ||
"dependencies": { | ||
"@liff/consts": "2.20.2", | ||
"@liff/logger": "2.20.2", | ||
"@liff/util": "2.20.2" | ||
"@liff/consts": "2.20.3", | ||
"@liff/logger": "2.20.3", | ||
"@liff/util": "2.20.3" | ||
}, | ||
"gitHead": "7299a0642aafc87b46d0808da89840399148d436" | ||
"gitHead": "7845e9a5c675d44b97a35c64dc5c200c4751ce2d" | ||
} |
5686
40
+ Added@liff/consts@2.20.3(transitive)
+ Added@liff/logger@2.20.3(transitive)
+ Added@liff/util@2.20.3(transitive)
- Removed@liff/consts@2.20.2(transitive)
- Removed@liff/logger@2.20.2(transitive)
- Removed@liff/util@2.20.2(transitive)
Updated@liff/consts@2.20.3
Updated@liff/logger@2.20.3
Updated@liff/util@2.20.3