tldraw/packages
Steve Ruiz eb26964130
[refactor] restore createTLSchema (#1444)
This PR restores `createTLSchema`. 

It also:
- removes `TldrawEditorConfig.default`
- makes `config` a required property of `<TldrawEditor>`, though it's
created automatically in `<Tldraw>`.
- makes `config` a required property of `App`
- removes `TLShapeType` and replaces the rare usage with
`TLShape["type"]`
- adds `TLDefaultShape` for a union of our default shapes
- makes `TLShape` a union of `TLDefaultShape` and `TLUnknownShape`

### Change Type

- [x] `major` — Breaking Change

### Release Notes

- [editor] Simplifies custom shape definition
- [tldraw] Updates props for <TldrawEditor> component to require a
`TldrawEditorConfig`.
2023-05-24 10:48:31 +00:00
..
assets [feature] add laser pointer (#1412) 2023-05-19 11:09:13 +00:00
editor [refactor] restore createTLSchema (#1444) 2023-05-24 10:48:31 +00:00
file-format [refactor] restore createTLSchema (#1444) 2023-05-24 10:48:31 +00:00
indices Create @tldraw/indices package (#1426) 2023-05-22 08:18:01 +00:00
polyfills avoid lazy race conditions (#1364) 2023-05-12 15:41:40 +00:00
primitives Measure individual words instead of just line breaks for text exports (#1397) 2023-05-22 15:10:03 +00:00
tldraw [refactor] restore createTLSchema (#1444) 2023-05-24 10:48:31 +00:00
tlschema [refactor] restore createTLSchema (#1444) 2023-05-24 10:48:31 +00:00
tlstore [refactor] Remove TLShapeDef, getShapeUtilByType. (#1432) 2023-05-23 12:32:42 +00:00
tlsync-client [refactor] restore createTLSchema (#1444) 2023-05-24 10:48:31 +00:00
tlvalidate avoid lazy race conditions (#1364) 2023-05-12 15:41:40 +00:00
ui Add SVG cursors for all cursor types (#1416) 2023-05-23 14:12:11 +00:00
utils Create @tldraw/indices package (#1426) 2023-05-22 08:18:01 +00:00