Custom Tools DX + screenshot example (#2198)

This PR adds a custom tool example, the `Screenshot Tool`.

It demonstrates how a user can create a custom tool together with custom
tool UI.

### Change Type

- [x] `minor` — New feature

### Test Plan

1. Use the screenshot example

### Release Notes

- adds ScreenshotTool custom tool example
- improvements and new exports related to copying and exporting images /
files
- loosens up types around icons and translations
- moving `StateNode.isActive` into an atom
- adding `Editor.path`
This commit is contained in:
Steve Ruiz 2023-11-15 18:06:02 +00:00 committed by GitHub
parent d683cc0943
commit 14e8d19a71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
116 changed files with 2559 additions and 1519 deletions

View file

@ -58,6 +58,7 @@ const menuOverrides = {
schema.forEach((item) => {
if (item.id === 'menu' && item.type === 'group') {
item.children = item.children.filter((menuItem) => {
if (!menuItem) return false
if (menuItem.id === 'file' && menuItem.type === 'submenu') {
return false
}