mirror of
https://github.com/penpot/penpot.git
synced 2025-06-20 01:31:37 +02:00
📚 Add documentation for new plugin permission
This commit is contained in:
parent
1d593e1287
commit
26efc9f0c8
1 changed files with 5 additions and 1 deletions
|
@ -140,7 +140,8 @@ The <code class="language-js">manifest.json</code> file contains the basic infor
|
||||||
"user:read",
|
"user:read",
|
||||||
"comment:read",
|
"comment:read",
|
||||||
"comment:write",
|
"comment:write",
|
||||||
"allow:downloads"
|
"allow:downloads",
|
||||||
|
"allow:localstorage"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
@ -173,6 +174,9 @@ Typical use cases: adding new comments to pages; deleting existing comments; rep
|
||||||
- <code class="language-js">allow:downloads</code>: Allows downloading of the project file. Grants access to endpoints and operations that enable the downloading of the entire project file.
|
- <code class="language-js">allow:downloads</code>: Allows downloading of the project file. Grants access to endpoints and operations that enable the downloading of the entire project file.
|
||||||
Typical use cases: downloading the full project file for backup or sharing.
|
Typical use cases: downloading the full project file for backup or sharing.
|
||||||
|
|
||||||
|
- <code class="language-js">allow:localstorage</code>: Allows the access to the local storage proxy to store information. This info is only available for the plugin installation but be aware that a user can see this information in the browser.
|
||||||
|
Typical use cases: storing authentication tokens for a plugin login
|
||||||
|
|
||||||
_Note: Write permissions automatically includes its corresponding read permission (e.g., <code class="language-js">content:write</code> includes <code class="language-js">content:read</code>) because reading is required to perform write or modification actions._
|
_Note: Write permissions automatically includes its corresponding read permission (e.g., <code class="language-js">content:write</code> includes <code class="language-js">content:read</code>) because reading is required to perform write or modification actions._
|
||||||
|
|
||||||
### What are plugin.ts and plugin.js files?
|
### What are plugin.ts and plugin.js files?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue