Skip to content

Commit 6c05a2b

Browse files
authored
update version to to 0.33.0 (#53)
1 parent 7a50c21 commit 6c05a2b

File tree

3 files changed

+181
-4
lines changed

3 files changed

+181
-4
lines changed

dist/api_types.ts

Lines changed: 89 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,78 @@ export type HasLayoutTrait = {
281281
* - `FILL`: only valid on auto-layout frame children
282282
*/
283283
layoutSizingVertical?: 'FIXED' | 'HUG' | 'FILL'
284+
285+
/**
286+
* The number of rows in the grid layout. This property is only applicable for auto-layout frames
287+
* with `layoutMode: "GRID"`.
288+
*/
289+
gridRowCount?: number
290+
291+
/**
292+
* The number of columns in the grid layout. This property is only applicable for auto-layout frames
293+
* with `layoutMode: "GRID"`.
294+
*/
295+
gridColumnCount?: number
296+
297+
/**
298+
* The distance between rows in the grid layout. This property is only applicable for auto-layout
299+
* frames with `layoutMode: "GRID"`.
300+
*/
301+
gridRowGap?: number
302+
303+
/**
304+
* The distance between columns in the grid layout. This property is only applicable for auto-layout
305+
* frames with `layoutMode: "GRID"`.
306+
*/
307+
gridColumnGap?: number
308+
309+
/**
310+
* The string for the CSS grid-template-columns property. This property is only applicable for
311+
* auto-layout frames with `layoutMode: "GRID"`.
312+
*/
313+
gridColumnsSizing?: string
314+
315+
/**
316+
* The string for the CSS grid-template-rows property. This property is only applicable for
317+
* auto-layout frames with `layoutMode: "GRID"`.
318+
*/
319+
gridRowsSizing?: string
320+
321+
/**
322+
* Determines how a GRID frame's child should be aligned in the horizontal direction within its grid
323+
* area. This property is only applicable for direct children of frames with `layoutMode: "GRID"`.
324+
*/
325+
gridChildHorizontalAlign?: 'AUTO' | 'MIN' | 'CENTER' | 'MAX'
326+
327+
/**
328+
* Determines how a GRID frame's child should be aligned in the vertical direction within its grid
329+
* area. This property is only applicable for direct children of frames with `layoutMode: "GRID"`.
330+
*/
331+
gridChildVerticalAlign?: 'AUTO' | 'MIN' | 'CENTER' | 'MAX'
332+
333+
/**
334+
* The number of rows that a GRID frame's child should span. This property is only applicable for
335+
* direct children of frames with `layoutMode: "GRID"`.
336+
*/
337+
gridRowSpan?: number
338+
339+
/**
340+
* The number of columns that a GRID frame's child should span. This property is only applicable for
341+
* direct children of frames with `layoutMode: "GRID"`.
342+
*/
343+
gridColumnSpan?: number
344+
345+
/**
346+
* The index of the row that a GRID frame's child should be anchored to. This property is only
347+
* applicable for direct children of frames with `layoutMode: "GRID"`.
348+
*/
349+
gridRowAnchorIndex?: number
350+
351+
/**
352+
* The index of the column that a GRID frame's child should be anchored to. This property is only
353+
* applicable for direct children of frames with `layoutMode: "GRID"`.
354+
*/
355+
gridColumnAnchorIndex?: number
284356
}
285357

286358
export type HasFramePropertiesTrait = {
@@ -323,7 +395,7 @@ export type HasFramePropertiesTrait = {
323395
/**
324396
* Whether this layer uses auto-layout to position its children.
325397
*/
326-
layoutMode?: 'NONE' | 'HORIZONTAL' | 'VERTICAL'
398+
layoutMode?: 'NONE' | 'HORIZONTAL' | 'VERTICAL' | 'GRID'
327399

328400
/**
329401
* Whether the primary axis has a fixed length (determined by the user) or an automatic length
@@ -1868,6 +1940,11 @@ export type TextureEffect = {
18681940
*/
18691941
type: 'TEXTURE'
18701942

1943+
/**
1944+
* Whether the texture effect is visible.
1945+
*/
1946+
visible: boolean
1947+
18711948
/**
18721949
* The size of the texture effect
18731950
*/
@@ -1925,6 +2002,16 @@ export type BaseNoiseEffect = {
19252002
*/
19262003
type: 'NOISE'
19272004

2005+
/**
2006+
* The color of the noise effect
2007+
*/
2008+
color: RGBA
2009+
2010+
/**
2011+
* Whether the noise effect is visible.
2012+
*/
2013+
visible: boolean
2014+
19282015
/**
19292016
* Blend mode of the noise effect
19302017
*/
@@ -5450,7 +5537,7 @@ export type GetFileMetaResponse = {
54505537
/**
54515538
* The type of editor associated with this file.
54525539
*/
5453-
editorType: 'figma' | 'figjam' | 'slides'
5540+
editorType: 'figma' | 'figjam' | 'slides' | 'buzz' | 'sites' | 'make'
54545541

54555542
/**
54565543
* The role of the user making the API request in relation to the file.

openapi/openapi.yaml

Lines changed: 91 additions & 1 deletion
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.32.0
4+
version: 0.33.0
55
description: |-
66
This is the OpenAPI specification for the [Figma REST API](https://www.figma.com/developers/api).
77
@@ -2928,6 +2928,80 @@ components:
29282928
- FIXED
29292929
- HUG
29302930
- FILL
2931+
gridRowCount:
2932+
type: number
2933+
description: 'The number of rows in the grid layout. This property is only
2934+
applicable for auto-layout frames with `layoutMode: "GRID"`.'
2935+
gridColumnCount:
2936+
type: number
2937+
description: 'The number of columns in the grid layout. This property is only
2938+
applicable for auto-layout frames with `layoutMode: "GRID"`.'
2939+
gridRowGap:
2940+
type: number
2941+
description: 'The distance between rows in the grid layout. This property is
2942+
only applicable for auto-layout frames with `layoutMode: "GRID"`.'
2943+
default: 0
2944+
gridColumnGap:
2945+
type: number
2946+
description: 'The distance between columns in the grid layout. This property is
2947+
only applicable for auto-layout frames with `layoutMode: "GRID"`.'
2948+
default: 0
2949+
gridColumnsSizing:
2950+
type: string
2951+
description: 'The string for the CSS grid-template-columns property. This
2952+
property is only applicable for auto-layout frames with `layoutMode:
2953+
"GRID"`.'
2954+
gridRowsSizing:
2955+
type: string
2956+
description: 'The string for the CSS grid-template-rows property. This property
2957+
is only applicable for auto-layout frames with `layoutMode:
2958+
"GRID"`.'
2959+
gridChildHorizontalAlign:
2960+
type: string
2961+
description: "Determines how a GRID frame's child should be aligned in the
2962+
horizontal direction within its grid area. This property is only
2963+
applicable for direct children of frames with `layoutMode:
2964+
\"GRID\"`."
2965+
enum:
2966+
- AUTO
2967+
- MIN
2968+
- CENTER
2969+
- MAX
2970+
gridChildVerticalAlign:
2971+
type: string
2972+
description: "Determines how a GRID frame's child should be aligned in the
2973+
vertical direction within its grid area. This property is only
2974+
applicable for direct children of frames with `layoutMode:
2975+
\"GRID\"`."
2976+
enum:
2977+
- AUTO
2978+
- MIN
2979+
- CENTER
2980+
- MAX
2981+
gridRowSpan:
2982+
type: number
2983+
description: "The number of rows that a GRID frame's child should span. This
2984+
property is only applicable for direct children of frames with
2985+
`layoutMode: \"GRID\"`."
2986+
default: 1
2987+
gridColumnSpan:
2988+
type: number
2989+
description: "The number of columns that a GRID frame's child should span. This
2990+
property is only applicable for direct children of frames with
2991+
`layoutMode: \"GRID\"`."
2992+
default: 1
2993+
gridRowAnchorIndex:
2994+
type: number
2995+
description: "The index of the row that a GRID frame's child should be anchored
2996+
to. This property is only applicable for direct children of frames
2997+
with `layoutMode: \"GRID\"`."
2998+
default: 0
2999+
gridColumnAnchorIndex:
3000+
type: number
3001+
description: "The index of the column that a GRID frame's child should be
3002+
anchored to. This property is only applicable for direct children of
3003+
frames with `layoutMode: \"GRID\"`."
3004+
default: 0
29313005
required:
29323006
- absoluteBoundingBox
29333007
- absoluteRenderBounds
@@ -2972,6 +3046,7 @@ components:
29723046
- NONE
29733047
- HORIZONTAL
29743048
- VERTICAL
3049+
- GRID
29753050
default: NONE
29763051
primaryAxisSizingMode:
29773052
type: string
@@ -4895,6 +4970,9 @@ components:
48954970
check the type before reading other properties.
48964971
enum:
48974972
- TEXTURE
4973+
visible:
4974+
type: boolean
4975+
description: Whether the texture effect is visible.
48984976
noiseSize:
48994977
type: number
49004978
description: The size of the texture effect
@@ -4906,6 +4984,7 @@ components:
49064984
description: Whether the texture is clipped to the shape
49074985
required:
49084986
- type
4987+
- visible
49094988
- noiseSize
49104989
- radius
49114990
- clipToShape
@@ -4966,6 +5045,12 @@ components:
49665045
check the type before reading other properties.
49675046
enum:
49685047
- NOISE
5048+
color:
5049+
$ref: "#/components/schemas/RGBA"
5050+
description: The color of the noise effect
5051+
visible:
5052+
type: boolean
5053+
description: Whether the noise effect is visible.
49695054
blendMode:
49705055
$ref: "#/components/schemas/BlendMode"
49715056
description: Blend mode of the noise effect
@@ -4977,6 +5062,8 @@ components:
49775062
description: The density of the noise effect
49785063
required:
49795064
- type
5065+
- color
5066+
- visible
49805067
- noiseSize
49815068
- density
49825069
- blendMode
@@ -8706,6 +8793,9 @@ components:
87068793
- figma
87078794
- figjam
87088795
- slides
8796+
- buzz
8797+
- sites
8798+
- make
87098799
description: The type of editor associated with this file.
87108800
role:
87118801
type: string

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@figma/rest-api-spec",
3-
"version": "0.32.0",
3+
"version": "0.33.0",
44
"description": "Typings for the Figma REST API",
55
"main": "dist/api_types.ts",
66
"repository": {

0 commit comments

Comments
 (0)