Commit 1b8673f
authored
docs(releases): update release notes (tldraw#8939)
This PR does two things on the same branch: it refreshes the
next-release notes, and it fixes a public API shape that was breaking
the docs build.
**Release notes.** In order to keep the next release notes current with
`main`, this updates `apps/docs/content/releases/next.mdx` with PRs that
have landed since the v5.0.2 patch release. Source is `main`
(development weeks), so these entries are preliminary and some may be
pruned when the production branch is cut. It bumps `last_version` from
v5.0.1 to v5.0.2 (no archive needed — v5.0.0 is already archived and
v5.0.2 is a patch). New entries added:
- **API changes**: public `TldrawUiTranslationProvider`,
`AssetUrlsProvider`, and `useAssetUrls` (tldraw#8909); `dispose()` methods for
the font and overlay managers (tldraw#8896).
- **Improvements** (new section): the `q` copy-styles shortcut (tldraw#8917,
community), and a `getRenderingShapes()` sort-caching perf win (tldraw#8784).
- **Bug fixes**: selection edge/corner handle hit areas (tldraw#8926), group
z-index after deletion (tldraw#8925, community), `preventDefault` on
non-cancelable events (tldraw#8910), the deduped missing-translation warning
(tldraw#8909), and `image.decode()` rejection handling (tldraw#8824).
Same-cycle page-menu polish (tldraw#8927, tldraw#8924) and infra/chore/dotcom/docs
PRs were skipped. The role=document entry now links to PR tldraw#8901 instead
of issue tldraw#8849. No stale entries needed pruning.
**Build fix.** `AssetUrlsProvider` (made public in the already-merged
tldraw#8909) declared its props as an inline object type, which the api docs
build rejects for public React components ("Expected props parameter to
be a simple reference. Rewrite this to use a `AssetUrlsProviderProps`
interface."). This extracts the inline type into an exported
`AssetUrlsProviderProps` interface and regenerates the API report. The
same error currently affects `main`, so this also unblocks the docs
deploy there.
### Change type
- [x] `other`
### Test plan
- [ ] Unit tests
- [ ] End to end tests
### API changes
- Added `AssetUrlsProviderProps` as a public interface for
`AssetUrlsProvider`'s props (no behavioral change).
### Code changes
| Section | LOC change |
| --------------- | ---------- |
| Core code | +12 / -8 |
| Automated files | +7 / -2 |
| Documentation | +15 / -3 |1 parent b828bf0 commit 1b8673f
4 files changed
Lines changed: 34 additions & 13 deletions
File tree
- apps/docs/content/releases
- packages/tldraw
- src
- lib/ui/context
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
22 | 29 | | |
23 | 30 | | |
24 | 31 | | |
25 | 32 | | |
26 | 33 | | |
27 | 34 | | |
28 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
482 | | - | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
483 | 487 | | |
| 488 | + | |
484 | 489 | | |
485 | | - | |
| 490 | + | |
486 | 491 | | |
487 | 492 | | |
488 | 493 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
721 | 721 | | |
722 | 722 | | |
723 | 723 | | |
724 | | - | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
725 | 729 | | |
726 | 730 | | |
727 | 731 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
13 | 19 | | |
14 | 20 | | |
15 | 21 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments