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
31
Versions
113
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.51.0 to 1.52.0

2

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

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

@@ -590,2 +590,3 @@ type ArgFreeEventType =

fontName: FontName
fontWeight: number
textDecoration: TextDecoration

@@ -984,6 +985,11 @@ textCase: TextCase

defaultValue: string | boolean,
options?: ComponentPropertyOptions,
): string
editComponentProperty(
propertyName: string,
newValue: { name?: string; defaultValue?: string | boolean },
newValue: {
name?: string
defaultValue?: string | boolean
preferredValues?: InstanceSwapPreferredValue[]
},
): string

@@ -1001,2 +1007,3 @@ deleteComponentProperty(propertyName: string): void

fontName: FontName | PluginAPI['mixed']
readonly fontWeight: number | PluginAPI['mixed']
textCase: TextCase | PluginAPI['mixed']

@@ -1016,2 +1023,3 @@ textDecoration: TextDecoration | PluginAPI['mixed']

setRangeFontName(start: number, end: number, value: FontName): void
getRangeFontWeight(start: number, end: number): number | PluginAPI['mixed']
getRangeAllFontNames(start: number, end: number): FontName[]

@@ -1173,2 +1181,6 @@ getRangeTextCase(start: number, end: number): TextCase | PluginAPI['mixed']

type ComponentPropertyType = 'BOOLEAN' | 'TEXT' | 'INSTANCE_SWAP' | 'VARIANT'
type InstanceSwapPreferredValue = { type: 'COMPONENT' | 'COMPONENT_SET'; key: string }
type ComponentPropertyOptions = {
preferredValues?: InstanceSwapPreferredValue[]
}

@@ -1179,2 +1191,3 @@ type ComponentPropertyDefinitions = {

defaultValue: string | boolean
preferredValues?: InstanceSwapPreferredValue[]
variantOptions?: string[]

@@ -1205,2 +1218,3 @@ }

value: string | boolean
preferredValues?: InstanceSwapPreferredValue[]
}

@@ -1218,2 +1232,4 @@ }

scaleFactor: number
readonly exposedInstances: InstanceNode[]
isExposedInstance: boolean
}

@@ -1220,0 +1236,0 @@

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