File tree Expand file tree Collapse file tree 5 files changed +19
-12
lines changed Expand file tree Collapse file tree 5 files changed +19
-12
lines changed Original file line number Diff line number Diff line change 38
38
]
39
39
}
40
40
],
41
- "enableProposedApi" : true ,
42
41
"editorType" : [" dev" ],
43
- "main" : " dist/index.js"
42
+ "main" : " dist/index.js" ,
43
+ "networkAccess" : { "allowedDomains" : [" none" ] },
44
+ "documentAccess" : " dynamic-page"
44
45
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " design-migration" ,
3
- "id" : " 1498157121635562346 " ,
3
+ "id" : " 1441699628075302748 " ,
4
4
"api" : " 1.0.0" ,
5
- "enableProposedApi" : true ,
6
5
"editorType" : [" figma" ],
7
6
"ui" : " dist/design-migration/index.html" ,
8
- "main" : " dist/design-migration/index.js"
7
+ "main" : " dist/design-migration/index.js" ,
8
+ "networkAccess" : { "allowedDomains" : [" none" ] },
9
+ "documentAccess" : " dynamic-page"
9
10
}
Original file line number Diff line number Diff line change @@ -69,15 +69,19 @@ export const replaceDensityAndDevice = async ({
69
69
if ( splitModeName . length === 2 ) {
70
70
const device = splitModeName [ 0 ] ;
71
71
const density = splitModeName [ 1 ] ;
72
- const node = figma . getNodeById ( id ) as
72
+ const node = ( await figma . getNodeByIdAsync ( id ) ) as
73
73
| ( BaseNode & ExplicitVariableModesMixin )
74
74
| null ;
75
75
const oldCollection =
76
- figma . variables . getVariableCollectionById ( collectionId ) ;
76
+ await figma . variables . getVariableCollectionByIdAsync ( collectionId ) ;
77
77
const densityCollection =
78
- figma . variables . getVariableCollectionById ( densityCollectionId ) ;
78
+ await figma . variables . getVariableCollectionByIdAsync (
79
+ densityCollectionId ,
80
+ ) ;
79
81
const deviceCollection =
80
- figma . variables . getVariableCollectionById ( deviceCollectionId ) ;
82
+ await figma . variables . getVariableCollectionByIdAsync (
83
+ deviceCollectionId ,
84
+ ) ;
81
85
82
86
if (
83
87
node &&
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ const Migration = () => {
39
39
< div className = "flex flex-col gap-fix-md mb-fix-lg" >
40
40
< h1 > Migration Tool</ h1 >
41
41
< DBButton
42
- disabled = { ! ! error }
42
+ disabled = { ! ! loading }
43
43
width = "full"
44
44
onClick = { ( ) => {
45
45
setAnalyzeCounter ( 0 ) ;
Original file line number Diff line number Diff line change 3
3
"id" : " 1418157121635562346" ,
4
4
"api" : " 1.0.0" ,
5
5
"capabilities" : [" inspect" ],
6
- "enableProposedApi" : true ,
7
6
"editorType" : [" dev" ],
8
7
"ui" : " dist/inspect/index.html" ,
9
- "main" : " dist/inspect/index.js"
8
+ "main" : " dist/inspect/index.js" ,
9
+ "networkAccess" : { "allowedDomains" : [" none" ] },
10
+ "documentAccess" : " dynamic-page"
10
11
}
You can’t perform that action at this time.
0 commit comments