@figma/plugin-typings
Advanced tools
Comparing version 1.17.1 to 1.18.1
@@ -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": "", |
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
27732
710
1