Skip to content

Commit 96b51e7

Browse files
committed
Support the slides editorType
1 parent fbc37d7 commit 96b51e7

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

packages/build/src/figma-plugin.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,13 +258,13 @@
258258
"type": "string"
259259
},
260260
"editorType": {
261-
"description": "(optional)\nFor specifying the editor(s) that the plugin/widget is intended for. Possible editor types are \"figma\", \"figjam\" and \"dev\". Defaults to [\"figma\"]. The value [\"figjam\", \"dev\"] is currently not supported.",
261+
"description": "(optional)\nFor specifying the editor(s) that the plugin/widget is intended for. Possible editor types are \"figma\", \"figjam\", \"slides\", and \"dev\". Defaults to [\"figma\"]. The value [\"figjam\", \"dev\"] is currently not supported.",
262262
"type": "array",
263263
"minItems": 1,
264264
"uniqueItems": true,
265265
"items": {
266266
"type": "string",
267-
"enum": ["dev", "figjam", "figma"]
267+
"enum": ["dev", "figjam", "figma", "slides"]
268268
}
269269
},
270270
"containsWidget": {

packages/common/src/types/manifest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export type Manifest = {
1414
build?: string
1515
}
1616

17-
export type ManifestEditorType = 'dev' | 'figma' | 'figjam'
17+
export type ManifestEditorType = 'dev' | 'figma' | 'figjam' | 'slides'
1818

1919
export type ManifestMenuItem = {
2020
name: string

packages/common/test/08-additional-fields/additional-fields.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ test('`editorType`', async function (t) {
5050
process.chdir(join(__dirname, 'fixtures', '03-editor-type'))
5151
t.deepEqual(await readConfigAsync(), {
5252
...config,
53-
editorType: ['figjam', 'figma']
53+
editorType: ['figjam', 'figma', 'slides']
5454
})
5555
})
5656

packages/website/docs/configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ The configuration options map closely to the plugin and widget `manifest.json` A
3030

3131
### `editorType`
3232

33-
(*`Array<"figma" | "figjam" | "dev">`*)
33+
(*`Array<"figma" | "figjam" | "slides" | "dev">`*)
3434

35-
*Optional.* For specifying the editor(s) that the plugin/widget is intended for. Possible editor types are **`"figma"`**, **`"figjam"`** and **`"dev"`**. Defaults to **`["figma"]`**. The value **`["figjam", "dev"]`** is currently not supported.
35+
*Optional.* For specifying the editor(s) that the plugin/widget is intended for. Possible editor types are **`"figma"`**, **`"figjam"`**, **`"slides"`**, and **`"dev"`**. Defaults to **`["figma"]`**. The values **`["figjam", "dev"]`** and **`["slides", "dev"]`** are currently not supported.
3636

3737
### `containsWidget`
3838

0 commit comments

Comments
 (0)