From de9758d39a174bf17ec04ac11c39f53e5d0159b9 Mon Sep 17 00:00:00 2001 From: Khanh Nguyen Date: Wed, 3 Jun 2026 13:54:26 -0400 Subject: [PATCH] Update plugin typings --- plugin-api-standalone.d.ts | 107 ++++++++++++++++++++++++++++++++++--- plugin-api.d.ts | 105 +++++++++++++++++++++++++++++++++--- 2 files changed, 197 insertions(+), 15 deletions(-) diff --git a/plugin-api-standalone.d.ts b/plugin-api-standalone.d.ts index 9cbf04c..545d3a2 100644 --- a/plugin-api-standalone.d.ts +++ b/plugin-api-standalone.d.ts @@ -445,6 +445,7 @@ interface PluginAPI { * This API is only available in Buzz. * * This property contains methods to work in Buzz. + * */ readonly buzz: BuzzAPI /** @@ -1451,6 +1452,7 @@ interface PluginAPI { * ### Change file extension * * For plugins our default template puts your code in a `code.ts` file. You should rename this to `code.tsx` so that you can use jsx in your plugin. + * */ createNodeFromJSXAsync(jsx: any): Promise /** @@ -1548,6 +1550,7 @@ interface PluginAPI { * * Note: `getSelectionColors()` returns `null` if there is no selection, or * if there are too many colors in the selection (>1000). + * */ getSelectionColors(): null | { paints: Paint[] @@ -1698,6 +1701,7 @@ interface PluginAPI { * The `data` passed in must be encoded as a .MP4, .MOV, or .WebM. Videos have a maximum size of 100MB. Invalid videos will throw an error. * * Video can only be added to files in a paid Education, Professional, and Organization team. Plugins running on files in free Starter teams can edit existing video in a file but not upload video to it. + * */ createVideoAsync(data: Uint8Array): Promise