@figma/plugin-typings
Advanced tools
Comparing version 1.4.0 to 1.5.0
@@ -1,2 +0,2 @@ | ||
// Figma Plugin API version 1, update 4 | ||
// Figma Plugin API version 1, update 5 | ||
@@ -26,5 +26,5 @@ // Global variable with Figma's plugin API. | ||
on(type: "selectionchange" | "currentpagechange", callback: () => void) // PROPOSED API ONLY | ||
once(type: "selectionchange" | "currentpagechange", callback: () => void) // PROPOSED API ONLY | ||
off(type: "selectionchange" | "currentpagechange", callback: () => void) // PROPOSED API ONLY | ||
on(type: "selectionchange" | "currentpagechange" | "close", callback: () => void) | ||
once(type: "selectionchange" | "currentpagechange" | "close", callback: () => void) | ||
off(type: "selectionchange" | "currentpagechange" | "close", callback: () => void) | ||
@@ -99,2 +99,3 @@ readonly mixed: symbol | ||
height?: number, | ||
position?: 'default' | 'last' | 'auto' // PROPOSED API ONLY | ||
} | ||
@@ -119,6 +120,6 @@ | ||
postMessage(pluginMessage: any, options?: UIPostMessageOptions): void | ||
onmessage: ((pluginMessage: any, props: OnMessageProperties) => void) | undefined | ||
on(type: "message", callback: MessageEventHandler) // PROPOSED API ONLY | ||
once(type: "message", callback: MessageEventHandler) // PROPOSED API ONLY | ||
off(type: "message", callback: MessageEventHandler) // PROPOSED API ONLY | ||
onmessage: MessageEventHandler | undefined | ||
on(type: "message", callback: MessageEventHandler) | ||
once(type: "message", callback: MessageEventHandler) | ||
off(type: "message", callback: MessageEventHandler) | ||
} | ||
@@ -125,0 +126,0 @@ |
{ | ||
"name": "@figma/plugin-typings", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"description": "Typings for the Figma Plugin API", | ||
@@ -5,0 +5,0 @@ "main": "", |
573
19835