@figma/plugin-typings
Advanced tools
Comparing version 1.71.1 to 1.72.0
{ | ||
"name": "@figma/plugin-typings", | ||
"version": "1.71.1", | ||
"version": "1.72.0", | ||
"description": "Typings for the Figma Plugin API", | ||
@@ -5,0 +5,0 @@ "main": "", |
@@ -36,2 +36,3 @@ /* plugin-typings are auto-generated. Do not update them directly. See plugin-docs/ for instructions. */ | ||
readonly ui: UIAPI | ||
readonly util: UtilAPI | ||
readonly clientStorage: ClientStorageAPI | ||
@@ -259,2 +260,7 @@ readonly parameters: ParametersAPI | ||
} | ||
interface UtilAPI { | ||
rgb(color: string | RGB | RGBA): RGB | ||
rgba(color: string | RGB | RGBA): RGBA | ||
solidPaint(color: string | RGB | RGBA, overrides?: Partial<SolidPaint>): SolidPaint | ||
} | ||
declare type CodegenEvent = { | ||
@@ -336,2 +342,5 @@ node: SceneNode | ||
} | ||
declare type DevResourceOpenEvent = { | ||
devResource: DevResourceWithNodeId | ||
} | ||
declare type AuthResult = { | ||
@@ -346,2 +355,3 @@ type: 'AUTH_SUCCESS' | ||
on(type: 'auth', callback: (event: AuthEvent) => Promise<AuthResult> | AuthResult): void | ||
on(type: 'open', callback: (event: DevResourceOpenEvent) => void): void | ||
once( | ||
@@ -352,2 +362,3 @@ type: 'linkpreview', | ||
once(type: 'auth', callback: (event: AuthEvent) => Promise<AuthResult> | AuthResult): void | ||
once(type: 'open', callback: (event: DevResourceOpenEvent) => void): void | ||
off( | ||
@@ -358,2 +369,3 @@ type: 'linkpreview', | ||
off(type: 'auth', callback: (event: AuthEvent) => Promise<AuthResult> | AuthResult): void | ||
off(type: 'open', callback: (event: DevResourceOpenEvent) => void): void | ||
} | ||
@@ -1680,2 +1692,20 @@ interface TimerAPI { | ||
| 'ENG_FOLDER' | ||
| 'TRAPEZOID' | ||
| 'PREDEFINED_PROCESS' | ||
| 'SHIELD' | ||
| 'DOCUMENT_SINGLE' | ||
| 'DOCUMENT_MULTIPLE' | ||
| 'MANUAL_INPUT' | ||
| 'HEXAGON' | ||
| 'CHEVRON' | ||
| 'PENTAGON' | ||
| 'OCTAGON' | ||
| 'STAR' | ||
| 'PLUS' | ||
| 'ARROW_LEFT' | ||
| 'ARROW_RIGHT' | ||
| 'SUMMING_JUNCTION' | ||
| 'OR' | ||
| 'SPEECH_BUBBLE' | ||
| 'INTERNAL_STORAGE' | ||
readonly text: TextSublayerNode | ||
@@ -1682,0 +1712,0 @@ readonly cornerRadius?: number |
65446
2048