tldraw/apps/examples/src
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
..
1-basic Independent instance state persistence (#1493) 2023-06-05 14:11:07 +00:00
2-api tlschema cleanup (#1509) 2023-06-03 20:46:53 +00:00
3-custom-config mini defineShape API (#1563) 2023-06-12 14:04:14 +00:00
4-custom-ui mini defineShape API (#1563) 2023-06-12 14:04:14 +00:00
5-exploded mini defineShape API (#1563) 2023-06-12 14:04:14 +00:00
6-scroll remove svg layer, html all the things, rs to tl (#1227) 2023-05-05 14:14:42 +00:00
7-multiple [refactor] User-facing APIs (#1478) 2023-06-01 15:47:34 +00:00
8-error-boundary mini defineShape API (#1563) 2023-06-12 14:04:14 +00:00
9-hide-ui remove svg layer, html all the things, rs to tl (#1227) 2023-05-05 14:14:42 +00:00
10-custom-components remove svg layer, html all the things, rs to tl (#1227) 2023-05-05 14:14:42 +00:00
11-user-presence Independent instance state persistence (#1493) 2023-06-05 14:11:07 +00:00
12-ui-events [improvement] rename onEvent to onUiEvent (#1358) 2023-05-12 09:05:56 +00:00
13-store-events rename app to editor (#1503) 2023-06-02 15:21:45 +00:00
14-persistence mini defineShape API (#1563) 2023-06-12 14:04:14 +00:00
15-custom-zones Add support for project names (#1340) 2023-06-01 18:46:26 +00:00
end-to-end rename app to editor (#1503) 2023-06-02 15:21:45 +00:00
icons New vite-based examples app (#1226) 2023-05-05 13:10:36 +00:00
yjs mini defineShape API (#1563) 2023-06-12 14:04:14 +00:00
index.html New vite-based examples app (#1226) 2023-05-05 13:10:36 +00:00
index.tsx yjs example (#1560) 2023-06-09 12:15:06 +00:00
styles.css New vite-based examples app (#1226) 2023-05-05 13:10:36 +00:00