tldraw/packages
alex 1927f88041
mini defineShape API (#1563)
Based on #1549, but with a lot of code-structure related changes backed
out. Shape schemas are still defined in tlschemas with this diff.

Couple differences between this and #1549:
- This tightens up the relationship between store schemas and editor
schemas a bit
- Reduces the number of places we need to remember to include core
shapes
- Only `<TLdrawEditor />` sets default shapes by default. If you're
doing something funky with lower-level APIs, you need to specify
`defaultShapes` manually
- Replaces `validator` with `props` for shapes

### Change Type

- [x] `major` — Breaking Change

### Test Plan

1. Add a step-by-step description of how to test your PR here.
2.

- [x] Unit Tests
- [ ] Webdriver tests

### Release Notes

[dev-facing, notes to come]
2023-06-12 14:04:14 +00:00
..
assets Asset improvements (#1557) 2023-06-09 11:43:01 +00:00
editor mini defineShape API (#1563) 2023-06-12 14:04:14 +00:00
file-format mini defineShape API (#1563) 2023-06-12 14:04:14 +00:00
indices update lazyrepo 2023-06-05 18:32:32 +01:00
polyfills update lazyrepo 2023-06-05 18:32:32 +01:00
primitives Fix arrows with weird bends crashing (#1540) 2023-06-06 13:30:50 +00:00
store update lazyrepo 2023-06-05 18:32:32 +01:00
tldraw mini defineShape API (#1563) 2023-06-12 14:04:14 +00:00
tlschema mini defineShape API (#1563) 2023-06-12 14:04:14 +00:00
ui Asset improvements (#1557) 2023-06-09 11:43:01 +00:00
utils mini defineShape API (#1563) 2023-06-12 14:04:14 +00:00
validate mini defineShape API (#1563) 2023-06-12 14:04:14 +00:00