tldraw/packages
Steve Ruiz 13ef8be58d
Cleanup page state commands (#1800)
This PR cleans up some APIs around the editor's current page state:

- `setEditingShapeId` -> `setEditingShape`
- `setHoveredShapeId` -> `setHoveredShape`
- `setCroppingShapeId` -> `setCroppingShape`
- `setFocusedGroupId` -> `setFocusedGroup`
- `setErasingShapeIds` -> `setErasingShapes`
- `setHintingShapeIds` -> `setHintingShapes`

It also adds some additional computed getters, e.g.
`Editor.croppingShape`.

It also adds some errors around `setCroppingShape`.

### Change Type

- [x] `major` — Breaking change

### Test Plan

- [x] Unit Tests
2023-08-06 12:05:35 +00:00
..
assets [feature] Add val town embed (#1777) 2023-07-31 15:44:33 +00:00
editor Cleanup page state commands (#1800) 2023-08-06 12:05:35 +00:00
state Revert "Editor commands API / effects" (#1783) 2023-08-01 17:03:31 +00:00
store SideEffectManager (#1785) 2023-08-02 11:05:14 +00:00
tldraw Cleanup page state commands (#1800) 2023-08-06 12:05:35 +00:00
tlschema [fix] embeds switching / tldraw embed (#1792) 2023-08-03 14:55:46 +00:00
utils move some utils into tldraw/utils (#1750) 2023-07-19 10:50:40 +00:00
validate Add shapes to exports (#1776) 2023-07-28 16:08:59 +00:00