@figma/plugin-typings
Advanced tools
Comparing version 1.51.0 to 1.52.0
{ | ||
"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 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
48069
1306