Skip to content

Commit 0b4b54b

Browse files
Add containingComponentSet to FrameInfo (#41)
* add containingComponentSet to FrameInfo * detailed object structure
1 parent a37a6a5 commit 0b4b54b

File tree

2 files changed

+58
-1
lines changed

2 files changed

+58
-1
lines changed

dist/api_types.ts

+32
Original file line numberDiff line numberDiff line change
@@ -2923,6 +2923,38 @@ export type FrameInfo = {
29232923
* The name of the page containing the frame node.
29242924
*/
29252925
pageName: string
2926+
2927+
/**
2928+
* Deprecated - Use containingComponentSet instead.
2929+
*
2930+
* @deprecated
2931+
*/
2932+
containingStateGroup?: {
2933+
/**
2934+
* The ID of the state group node.
2935+
*/
2936+
nodeId?: string
2937+
2938+
/**
2939+
* The name of the state group node.
2940+
*/
2941+
name?: string
2942+
} | null
2943+
2944+
/**
2945+
* The component set node that contains the frame node.
2946+
*/
2947+
containingComponentSet?: {
2948+
/**
2949+
* The ID of the component set node.
2950+
*/
2951+
nodeId?: string
2952+
2953+
/**
2954+
* The name of the component set node.
2955+
*/
2956+
name?: string
2957+
} | null
29262958
}
29272959

29282960
/**

openapi/openapi.yaml

+26-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
openapi: 3.1.0
22
info:
33
title: Figma API
4-
version: 0.25.0
4+
version: 0.26.0
55
description: |-
66
This is the OpenAPI specification for the [Figma REST API](https://www.figma.com/developers/api).
77
@@ -5945,6 +5945,31 @@ components:
59455945
pageName:
59465946
type: string
59475947
description: The name of the page containing the frame node.
5948+
containingStateGroup:
5949+
deprecated: true
5950+
description: Deprecated - Use containingComponentSet instead.
5951+
oneOf:
5952+
- type: object
5953+
properties:
5954+
nodeId:
5955+
type: string
5956+
description: The ID of the state group node.
5957+
name:
5958+
type: string
5959+
description: The name of the state group node.
5960+
- type: "null"
5961+
containingComponentSet:
5962+
description: The component set node that contains the frame node.
5963+
oneOf:
5964+
- type: object
5965+
properties:
5966+
nodeId:
5967+
type: string
5968+
description: The ID of the component set node.
5969+
name:
5970+
type: string
5971+
description: The name of the component set node.
5972+
- type: "null"
59485973
required:
59495974
- pageId
59505975
- pageName

0 commit comments

Comments
 (0)