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
5
Versions
111
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.17.1 to 1.18.1

62

index.d.ts

@@ -68,2 +68,3 @@ // Figma Plugin API version 1, update 14

importComponentByKeyAsync(key: string): Promise<ComponentNode>
importComponentSetByKeyAsync(key: string): Promise<ComponentSetNode>
importStyleByKeyAsync(key: string): Promise<BaseStyle>

@@ -80,2 +81,3 @@

combineAsVariants(nodes: ReadonlyArray<ComponentNode>, parent: BaseNode & ChildrenMixin, index?: number): ComponentSetNode
group(nodes: ReadonlyArray<BaseNode>, parent: BaseNode & ChildrenMixin, index?: number): GroupNode

@@ -575,2 +577,11 @@ flatten(nodes: ReadonlyArray<BaseNode>, parent?: BaseNode & ChildrenMixin, index?: number): VectorNode

interface FramePrototypingMixin {
overflowDirection: OverflowDirection
numberOfFixedChildren: number
readonly overlayPositionType: OverlayPositionType
readonly overlayBackground: OverlayBackground
readonly overlayBackgroundInteraction: OverlayBackgroundInteraction
}
interface ReactionMixin {

@@ -580,2 +591,9 @@ readonly reactions: ReadonlyArray<Reaction>

interface PublishableMixin {
description: string
readonly remote: boolean
readonly key: string // The key to use with "importComponentByKeyAsync", "importComponentSetByKeyAsync", and "importStyleByKeyAsync"
getPublishStatusAsync(): Promise<PublishStatus>
}
interface DefaultShapeMixin extends

@@ -587,8 +605,7 @@ BaseNodeMixin, SceneNodeMixin, ReactionMixin,

interface DefaultFrameMixin extends
BaseNodeMixin, SceneNodeMixin, ReactionMixin,
ChildrenMixin, ContainerMixin,
GeometryMixin, CornerMixin, RectangleCornerMixin,
BlendMixin, ConstraintMixin, LayoutMixin,
ExportMixin {
interface BaseFrameMixin extends
BaseNodeMixin, SceneNodeMixin, ChildrenMixin,
ContainerMixin, GeometryMixin, CornerMixin,
RectangleCornerMixin, BlendMixin, ConstraintMixin,
LayoutMixin, ExportMixin {

@@ -605,11 +622,9 @@ layoutMode: "NONE" | "HORIZONTAL" | "VERTICAL"

guides: ReadonlyArray<Guide>
}
overflowDirection: OverflowDirection
numberOfFixedChildren: number
interface DefaultFrameMixin extends
BaseFrameMixin,
FramePrototypingMixin,
ReactionMixin {}
readonly overlayPositionType: OverlayPositionType
readonly overlayBackground: OverlayBackground
readonly overlayBackgroundInteraction: OverlayBackgroundInteraction
}
////////////////////////////////////////////////////////////////////////////////

@@ -757,14 +772,15 @@ // Nodes

interface ComponentNode extends DefaultFrameMixin {
interface ComponentSetNode extends BaseFrameMixin, PublishableMixin {
readonly type: "COMPONENT_SET"
clone(): ComponentSetNode
readonly defaultVariant: ComponentNode
}
interface ComponentNode extends DefaultFrameMixin, PublishableMixin {
readonly type: "COMPONENT"
clone(): ComponentNode
createInstance(): InstanceNode
description: string
readonly remote: boolean
readonly key: string // The key to use with "importComponentByKeyAsync"
getPublishStatusAsync(): Promise<PublishStatus>
}
interface InstanceNode extends DefaultFrameMixin {
interface InstanceNode extends DefaultFrameMixin {
readonly type: "INSTANCE"

@@ -825,11 +841,7 @@ clone(): InstanceNode

interface BaseStyle {
interface BaseStyle extends PublishableMixin {
readonly id: string
readonly type: StyleType
name: string
description: string
readonly remote: boolean
readonly key: string // The key to use with "importStyleByKeyAsync"
remove(): void
getPublishStatusAsync(): Promise<PublishStatus>
}

@@ -836,0 +848,0 @@

{
"name": "@figma/plugin-typings",
"version": "1.17.1",
"version": "1.18.1",
"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