Skip to main content
Kaitlyn_Ly
Mar 19, 2024 8:28 PM UTC
Question

What are the available values for "documentAccess" in manifest.json?

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?

This topic has been closed for replies.

3 replies

tank666
Mar 19, 2024 9:41 PM UTC

Currently, the documentAccess property only accepts dynamic-page value.

figma.com
UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
Kaitlyn_Ly
Apr 8, 2024 5:20 PM UTC

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.

tank666
Apr 8, 2024 5:35 PM UTC

Yes, if you add a documentAccess field to your manifest, you will need to use async methods.

UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank