You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/figma/figma.app.mjs
+2-30Lines changed: 2 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -12,26 +12,12 @@ export default {
12
12
projectId: {
13
13
type: "string",
14
14
label: "Project Id",
15
-
description: "Id of the project to list files from",
16
-
asyncoptions({ teamId =this._getTeamId()}){
17
-
constprojects=awaitthis.listTeamProjects(teamId);
18
-
returnprojects.map((item)=>({
19
-
label: item.name,
20
-
value: item.id,
21
-
}));
22
-
},
15
+
description: "Navigate to your project in Figma. You can find your Project ID in the URL between `/project/` and the project name. For example, if your project URL is `https://www.figma.com/files/team/1562118717370912711/project/478297666/Team-project?fuid=1562118714608714352`, enter `478297666` here.",
23
16
},
24
17
fileId: {
25
18
type: "string",
26
19
label: "File Id",
27
-
description: "Id of the file to perform your action.",
28
-
asyncoptions({ projectId }){
29
-
constfiles=awaitthis.listProjectFiles(projectId);
30
-
returnfiles.map((item)=>({
31
-
label: item.name,
32
-
value: item.key,
33
-
}));
34
-
},
20
+
description: "Navigate to your file in Figma and open it. You can find your File ID in the URL after `/file/`. For example, if your file URL is `https://www.figma.com/file/ABC123xyz456/My-Design-File`, enter `ABC123xyz456` here.",
0 commit comments