I am working on a plugin that is calling a function that requires access to other pages in the Figma file.
What are the allowed values for documentAccess
in the manifest.json? Do I just put an empty string for it?
I am working on a plugin that is calling a function that requires access to other pages in the Figma file.
What are the allowed values for documentAccess
in the manifest.json? Do I just put an empty string for it?
Currently, the documentAccess
property only accepts dynamic-page
value.
Does this mean that if a plugin requires access to other pages I would need to set documentAccess
to dynamic-page
and then update all usages of functions that are deprecated to use their async equivalent?
E.G.) getLocalPaintStyles
→ getLocalPaintStylesAsync
.
Yes, if you add a documentAccess
field to your manifest, you will need to use async methods.