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
25
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.37.0 to 1.38.0

28

index.d.ts

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

// Figma Plugin API version 1, update 37
// Figma Plugin API version 1, update 38

@@ -72,2 +72,3 @@ declare global {

createShapeWithText(): ShapeWithTextNode
createCodeBlock(): CodeBlockNode
/**

@@ -262,3 +263,3 @@ * [DEPRECATED]: This API often fails to create a valid boolean operation. Use figma.union, figma.subtract, figma.intersect and figma.exclude instead.

interface ShadowEffect {
interface DropShadowEffect {
readonly type: "DROP_SHADOW" | "INNER_SHADOW"

@@ -271,4 +272,15 @@ readonly color: RGBA

readonly blendMode: BlendMode
readonly showShadowBehindNode?: boolean
}
interface InnerShadowEffect {
readonly type: "DROP_SHADOW" | "INNER_SHADOW"
readonly color: RGBA
readonly offset: Vector
readonly radius: number
readonly spread?: number
readonly visible: boolean
readonly blendMode: BlendMode
}
interface BlurEffect {

@@ -280,3 +292,3 @@ readonly type: "LAYER_BLUR" | "BACKGROUND_BLUR"

type Effect = ShadowEffect | BlurEffect
type Effect = DropShadowEffect | InnerShadowEffect | BlurEffect

@@ -643,2 +655,3 @@ type ConstraintType = "MIN" | "CENTER" | "MAX" | "STRETCH" | "SCALE"

readonly height: number
readonly absoluteRenderBounds: Rect | null
constrainProportions: boolean

@@ -679,2 +692,3 @@

dashPattern: ReadonlyArray<number>
strokeGeometry: VectorPaths
}

@@ -685,2 +699,3 @@

fillStyleId: string | PluginAPI['mixed']
fillGeometry: VectorPaths
}

@@ -1004,2 +1019,8 @@ interface GeometryMixin extends MinimalStrokesMixin, MinimalFillsMixin {

interface CodeBlockNode extends OpaqueNodeMixin, SceneNodeMixin, MinimalBlendMixin, ExportMixin {
readonly type: "CODE_BLOCK"
code: string
codeLanguage: 'TYPESCRIPT' | 'CPP' | 'RUBY' | 'CSS' | 'JAVASCRIPT' | 'HTML' | 'JSON' | 'GRAPHQL' | 'PYTHON' | 'GO' | 'SQL' | 'SWIFT' | 'KOTLIN' | 'RUST'
}
interface LayerSublayerNode {

@@ -1049,2 +1070,3 @@ fills: Paint[] | PluginAPI['mixed']

ShapeWithTextNode |
CodeBlockNode |
StampNode |

@@ -1051,0 +1073,0 @@ WidgetNode

2

package.json
{
"name": "@figma/plugin-typings",
"version": "1.37.0",
"version": "1.38.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