Tldraw/assets
Steve Ruiz 60cc0dcce3
Menu updates / fix flip / add export / remove Shape menu (#3115)
This PR:
- adds the export all menu items to the main menu
- removes the export all menu items from the dotcom menus
- removes the shape menu and reverts several changes from
https://github.com/tldraw/tldraw/pull/2782. This was not properly
reviewed (I thought it was a PR about hiding / showing menu items).
- fixes a bug with exporting (exporting JSON was not working when the
user had no selected shapes)
- fixes a bug that would prevent "flip shapes" from appearing in the
menu
- prevents export / copy actions from running if there are no shapes on
the page
- allows export / copy actions to default to all shapes on the page if
no shapes are selected

These changes have not been released in the dotcom yet. There's will be
some thrash in the APIs.

# Menu philosophy

In the menu, the **edit** submenu relates to undo/redo, plus the user's
current selection.

Menu items that relate to specific to certain shapes are hidden when not
available.

Menu items that relate to all shapes are disabled when not available.

<img width="640" alt="image"
src="https://github.com/tldraw/tldraw/assets/23072548/e467e6bb-d958-4a9a-ac19-1dada52dcfa6">

### Change Type

- [x] `major` — Bug fix

### Test

- Select no shapes (arrange / flip should not be visible)
- Select one geo shape (arrange / flip should not be visible)
- Select two geo shapes (arrange / flip should be visible)
- Select one draw shape (arrange / flip should not be visible)

### Release Notes

- Revert some changes in the menu.
2024-03-11 18:31:28 +00:00
..
embed-icons [feature] Add val town embed (#1777) 2023-07-31 15:44:33 +00:00
fonts Use custom font (#2343) 2023-12-19 14:17:45 +00:00
icons/icon menu: just have an empty space for checked menuitems (#2785) 2024-02-09 11:55:45 +00:00
translations Menu updates / fix flip / add export / remove Shape menu (#3115) 2024-03-11 18:31:28 +00:00
card-repo.png Update README (#2444) 2024-01-10 14:58:44 +00:00
card_repo.svg Update README (#2444) 2024-01-10 14:58:44 +00:00
github-hero-dark-draw.png transfer-out: transfer out 2023-04-25 12:01:25 +01:00
github-hero-dark.png transfer-out: transfer out 2023-04-25 12:01:25 +01:00
github-hero-light-2.png Change licenses to tldraw (#2167) 2023-12-19 10:41:01 +00:00
github-hero-light-draw.png transfer-out: transfer out 2023-04-25 12:01:25 +01:00
github-hero-light.png transfer-out: transfer out 2023-04-25 12:01:25 +01:00
github-hero_dark-2.png Change licenses to tldraw (#2167) 2023-12-19 10:41:01 +00:00