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
3
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.7.0 to 1.8.0

50

index.d.ts

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

// Figma Plugin API version 1, update 7
// Figma Plugin API version 1, update 8

@@ -73,3 +73,3 @@ declare global {

group(nodes: ReadonlyArray<BaseNode>, parent: BaseNode & ChildrenMixin, index?: number): FrameNode
group(nodes: ReadonlyArray<BaseNode>, parent: BaseNode & ChildrenMixin, index?: number): GroupNode
flatten(nodes: ReadonlyArray<BaseNode>, parent?: BaseNode & ChildrenMixin, index?: number): VectorNode

@@ -484,4 +484,4 @@

interface FrameMixin {
backgrounds: ReadonlyArray<Paint>
interface ContainerMixin {
backgrounds: ReadonlyArray<Paint> // DEPRECATED: use 'fills' instead
layoutGrids: ReadonlyArray<LayoutGrid>

@@ -491,6 +491,3 @@ clipsContent: boolean

gridStyleId: string
backgroundStyleId: string
overflowDirection: OverflowDirection // PROPOSED API ONLY
numberOfFixedChildren: number // PROPOSED API ONLY
backgroundStyleId: string // DEPRECATED: use 'fillStyleId' instead
}

@@ -519,2 +516,9 @@

interface RectangleCornerMixin {
topLeftRadius: number
topRightRadius: number
bottomLeftRadius: number
bottomRightRadius: number
}
interface ExportMixin {

@@ -534,6 +538,10 @@ exportSettings: ReadonlyArray<ExportSettings>

interface DefaultContainerMixin extends
interface DefaultFrameMixin extends
BaseNodeMixin, SceneNodeMixin, ReactionMixin,
ChildrenMixin, FrameMixin,
ChildrenMixin, ContainerMixin,
GeometryMixin, CornerMixin, RectangleCornerMixin,
BlendMixin, ConstraintMixin, LayoutMixin, ExportMixin {
overflowDirection: OverflowDirection // PROPOSED API ONLY
numberOfFixedChildren: number // PROPOSED API ONLY
}

@@ -565,10 +573,15 @@

readonly prototypeStartNode: FrameNode | ComponentNode | InstanceNode | null // PROPOSED API ONLY
readonly prototypeStartNode: FrameNode | GroupNode | ComponentNode | InstanceNode | null // PROPOSED API ONLY
}
interface FrameNode extends DefaultContainerMixin {
readonly type: "FRAME" | "GROUP"
interface FrameNode extends DefaultFrameMixin {
readonly type: "FRAME"
clone(): FrameNode
}
interface GroupNode extends BaseNodeMixin, SceneNodeMixin, ReactionMixin, ChildrenMixin, ContainerMixin, BlendMixin, LayoutMixin, ExportMixin {
readonly type: "GROUP"
clone(): GroupNode
}
interface SliceNode extends BaseNodeMixin, SceneNodeMixin, LayoutMixin, ExportMixin {

@@ -579,9 +592,5 @@ readonly type: "SLICE"

interface RectangleNode extends DefaultShapeMixin, ConstraintMixin, CornerMixin {
interface RectangleNode extends DefaultShapeMixin, ConstraintMixin, CornerMixin, RectangleCornerMixin {
readonly type: "RECTANGLE"
clone(): RectangleNode
topLeftRadius: number
topRightRadius: number
bottomLeftRadius: number
bottomRightRadius: number
}

@@ -661,3 +670,3 @@

interface ComponentNode extends DefaultContainerMixin {
interface ComponentNode extends DefaultFrameMixin {
readonly type: "COMPONENT"

@@ -672,3 +681,3 @@ clone(): ComponentNode

interface InstanceNode extends DefaultContainerMixin {
interface InstanceNode extends DefaultFrameMixin {
readonly type: "INSTANCE"

@@ -693,2 +702,3 @@ clone(): InstanceNode

FrameNode |
GroupNode |
ComponentNode |

@@ -695,0 +705,0 @@ InstanceNode |

2

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