@figma/plugin-typings
Advanced tools
Comparing version 1.81.0 to 1.82.0
{ | ||
"name": "@figma/plugin-typings", | ||
"version": "1.81.0", | ||
"version": "1.82.0", | ||
"description": "Typings for the Figma Plugin API", | ||
@@ -5,0 +5,0 @@ "main": "", |
@@ -27,2 +27,3 @@ /* plugin-typings are auto-generated. Do not update them directly. See plugin-docs/ for instructions. */ | ||
readonly codegen: CodegenAPI | ||
readonly vscode?: VSCodeAPI | ||
readonly devResources?: DevResourcesAPI | ||
@@ -35,2 +36,3 @@ readonly payments?: PaymentsAPI | ||
saveVersionHistoryAsync(title: string, description?: string): Promise<VersionHistoryResult> | ||
openExternal(url: string): void | ||
showUI(html: string, options?: ShowUIOptions): void | ||
@@ -184,2 +186,12 @@ readonly ui: UIAPI | ||
): SolidPaint | ||
setBoundVariableForEffect( | ||
effect: Effect, | ||
field: VariableBindableEffectField, | ||
variable: Variable, | ||
): Effect | ||
setBoundVariableForLayoutGrid( | ||
layoutGrid: LayoutGrid, | ||
field: VariableBindableLayoutGridField, | ||
variable: Variable, | ||
): LayoutGrid | ||
importVariableByKeyAsync(key: string): Promise<Variable> | ||
@@ -357,2 +369,3 @@ } | ||
} | null | ||
interface VSCodeAPI {} | ||
interface DevResourcesAPI { | ||
@@ -940,2 +953,5 @@ on( | ||
readonly showShadowBehindNode?: boolean | ||
readonly boundVariables?: { | ||
[field in VariableBindableEffectField]?: VariableAlias | ||
} | ||
} | ||
@@ -950,2 +966,5 @@ interface InnerShadowEffect { | ||
readonly blendMode: BlendMode | ||
readonly boundVariables?: { | ||
[field in VariableBindableEffectField]?: VariableAlias | ||
} | ||
} | ||
@@ -956,2 +975,5 @@ interface BlurEffect { | ||
readonly visible: boolean | ||
readonly boundVariables?: { | ||
['radius']?: VariableAlias | ||
} | ||
} | ||
@@ -1033,2 +1055,5 @@ declare type Effect = DropShadowEffect | InnerShadowEffect | BlurEffect | ||
readonly color?: RGBA | ||
readonly boundVariables?: { | ||
[field in VariableBindableLayoutGridField]?: VariableAlias | ||
} | ||
} | ||
@@ -1040,2 +1065,5 @@ interface GridLayoutGrid { | ||
readonly color?: RGBA | ||
readonly boundVariables?: { | ||
['sectionSize']?: VariableAlias | ||
} | ||
} | ||
@@ -1443,2 +1471,4 @@ declare type LayoutGrid = RowsColsLayoutGrid | GridLayoutGrid | ||
readonly strokes?: VariableAlias[] | ||
readonly effects?: VariableAlias[] | ||
readonly layoutGrids?: VariableAlias[] | ||
readonly componentProperties?: { | ||
@@ -1484,3 +1514,11 @@ readonly [propertyName: string]: VariableAlias | ||
| 'counterAxisSpacing' | ||
| 'strokeWeight' | ||
| 'strokeTopWeight' | ||
| 'strokeRightWeight' | ||
| 'strokeBottomWeight' | ||
| 'strokeLeftWeight' | ||
| 'opacity' | ||
declare type VariableBindablePaintField = 'color' | ||
declare type VariableBindableEffectField = 'color' | 'radius' | 'spread' | 'offsetX' | 'offsetY' | ||
declare type VariableBindableLayoutGridField = 'sectionSize' | 'count' | 'offset' | 'gutterSize' | ||
declare type VariableBindableComponentPropertyField = 'value' | ||
@@ -1590,3 +1628,3 @@ interface StickableMixin { | ||
dashPattern: ReadonlyArray<number> | ||
strokeGeometry: VectorPaths | ||
readonly strokeGeometry: VectorPaths | ||
} | ||
@@ -1607,3 +1645,3 @@ interface IndividualStrokesMixin { | ||
outlineStroke(): VectorNode | null | ||
fillGeometry: VectorPaths | ||
readonly fillGeometry: VectorPaths | ||
} | ||
@@ -2111,2 +2149,6 @@ interface CornerMixin { | ||
| 'STROKE_COLOR' | ||
| 'STROKE_FLOAT' | ||
| 'EFFECT_FLOAT' | ||
| 'EFFECT_COLOR' | ||
| 'OPACITY' | ||
declare type CodeSyntaxPlatform = 'WEB' | 'ANDROID' | 'iOS' | ||
@@ -2113,0 +2155,0 @@ interface Variable extends PluginDataMixin { |
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
72070
2424
0