New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@figma/plugin-typings

Package Overview
Dependencies
Maintainers
16
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@figma/plugin-typings - npm Package Compare versions

Comparing version 1.28.0 to 1.29.0

31

index.d.ts

@@ -1,2 +0,2 @@

// Figma Plugin API version 1, update 14
// Figma Plugin API version 1, update 29

@@ -27,2 +27,4 @@ declare global {

readonly parameters: ParametersAPI
getNodeById(id: string): BaseNode | null

@@ -34,5 +36,5 @@ getStyleById(id: string): BaseStyle | null

on(type: "selectionchange" | "currentpagechange" | "close", callback: () => void): void
once(type: "selectionchange" | "currentpagechange" | "close", callback: () => void): void
off(type: "selectionchange" | "currentpagechange" | "close", callback: () => void): void
on(type: "selectionchange" | "currentpagechange" | "close" | "run", callback: (event?: RunEvent) => void): void
once(type: "selectionchange" | "currentpagechange" | "close" | "run", callback: (event?: RunEvent) => void): void
off(type: "selectionchange" | "currentpagechange" | "close" | "run", callback: (event?: RunEvent) => void): void

@@ -153,2 +155,23 @@ readonly mixed: unique symbol

interface ParameterValues {
[key: string]: string
}
interface SuggestionResults {
setSuggestions: (suggestions: string[]) => void
}
type ParameterChangeHandler = (parameters: ParameterValues, suggestionKey: string, result: SuggestionResults) => void
interface ParametersAPI {
on(type: "input", callback: ParameterChangeHandler): void
once(type: "input", callback: ParameterChangeHandler): void
off(type: "input", callback: ParameterChangeHandler): void
}
interface RunEvent {
command: string
parameters?: ParameterValues
}
////////////////////////////////////////////////////////////////////////////////

@@ -155,0 +178,0 @@ // Datatypes

2

package.json
{
"name": "@figma/plugin-typings",
"version": "1.28.0",
"version": "1.29.0",
"description": "Typings for the Figma Plugin API",

@@ -5,0 +5,0 @@ "main": "",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc