29044867dd
This PR adds the docs app back into the tldraw monorepo. ## Deploying We'll want to update our deploy script to update the SOURCE_SHA to the newest release sha... and then deploy the docs pulling api.json files from that release. We _could_ update the docs on every push to main, but we don't have to unless something has changed. Right now there's no automated deployments from this repo. ## Side effects To make this one work, I needed to update the lock file. This might be ok (new year new lock file), and everything builds as expected, though we may want to spend some time with our scripts to be sure that things are all good. I also updated our prettier installation, which decided to add trailing commas to every generic type. Which is, I suppose, [correct behavior](https://github.com/prettier/prettier-vscode/issues/955)? But that caused diffs in every file, which is unfortunate. ### Change Type - [x] `internal` — Any other changes that don't affect the published package[^2]
186 lines
10 KiB
Text
186 lines
10 KiB
Text
---
|
|
title: v2.0.0-alpha.18
|
|
description: Examples
|
|
author: tldraw
|
|
date: 11/10/2023
|
|
order: 3
|
|
status: published
|
|
---
|
|
|
|
[View on GitHub](https://github.com/tldraw/tldraw/releases/tag/v2.0.0-alpha.18)
|
|
|
|
#### Fix an error when using context menu. ([#2186](https://github.com/tldraw/tldraw/pull/2186))
|
|
|
|
- Fixes the console error when opening the context menu for the first time.
|
|
|
|
#### [fix] actions menu freezing ui ([#2187](https://github.com/tldraw/tldraw/pull/2187))
|
|
|
|
- Fix actions menu not closing when clicking the canvas after grouping items via the actions menu.
|
|
|
|
#### Fix an issue with edit link. ([#2184](https://github.com/tldraw/tldraw/pull/2184))
|
|
|
|
- Fixes an issue with using the Edit link dialog.
|
|
|
|
#### add missing semicolon ([#2182](https://github.com/tldraw/tldraw/pull/2182))
|
|
|
|
- Fix typo in CSS file
|
|
|
|
#### Only use the hack if we are in safari. ([#2185](https://github.com/tldraw/tldraw/pull/2185))
|
|
|
|
- Improve the speed of exporting to png for non Safari browsers.
|
|
|
|
#### Fix keyboard shortcuts for vscode. ([#2181](https://github.com/tldraw/tldraw/pull/2181))
|
|
|
|
- Fixes keyboard shortcuts for VS Code extension.
|
|
|
|
#### Fix printing. ([#2177](https://github.com/tldraw/tldraw/pull/2177))
|
|
|
|
- Fixes printing of shapes.
|
|
|
|
#### [fix] Frame label not following staying aligned correctly on rotation ([#2172](https://github.com/tldraw/tldraw/pull/2172))
|
|
|
|
- Frame labels immediately update their position on rotation.
|
|
|
|
#### Don't show scrollbars. ([#2171](https://github.com/tldraw/tldraw/pull/2171))
|
|
|
|
- Hide the horizontal scrollbar in the vertical alignment for Firefox.
|
|
|
|
#### instant bookmarks ([#2176](https://github.com/tldraw/tldraw/pull/2176))
|
|
|
|
- Improves ux around pasting bookmarks
|
|
|
|
#### Fix arrow dropdown localizations. ([#2174](https://github.com/tldraw/tldraw/pull/2174))
|
|
|
|
- Fix arrow headstyle dropdown translations.
|
|
|
|
#### Fix crash with zero length arrow ([#2173](https://github.com/tldraw/tldraw/pull/2173))
|
|
|
|
- Fix a hyper niche arrow crash with zero length arrows.
|
|
|
|
#### Allow users to select shapes when drag starts on top of a locked shape. ([#2169](https://github.com/tldraw/tldraw/pull/2169))
|
|
|
|
- Allows brush selecting when you start it on top of a locked shape.
|
|
|
|
#### Fix the problem with text not being correctly aligned in small geo shapes. ([#2168](https://github.com/tldraw/tldraw/pull/2168))
|
|
|
|
- Fixes position of Text labels in geo shapes.
|
|
|
|
#### Zooming improvement ([#2149](https://github.com/tldraw/tldraw/pull/2149))
|
|
|
|
- Improves zooming for inactive windows.
|
|
|
|
#### [feature] Things on the canvas ([#2150](https://github.com/tldraw/tldraw/pull/2150))
|
|
|
|
- [editor] Adds two new components, `OnTheCanvas` and `InFrontOfTheCanvas`.
|
|
|
|
#### Bump vs code extension. ([#2142](https://github.com/tldraw/tldraw/pull/2142))
|
|
|
|
- Release a new version of VS Code extension with all the latest changes.
|
|
|
|
#### Fix cleanupText ([#2138](https://github.com/tldraw/tldraw/pull/2138))
|
|
|
|
- Fixes a minor bug where cleaning up text would fail.
|
|
|
|
#### [android] Fix text labels and link button getting misaligned ([#2132](https://github.com/tldraw/tldraw/pull/2132))
|
|
|
|
- Fixed a bug where labels and links could lose alignment on android.
|
|
|
|
#### [feature] multi-scribbles ([#2125](https://github.com/tldraw/tldraw/pull/2125))
|
|
|
|
- [feature] multi scribbles
|
|
|
|
#### Tighten up editor ui ([#2102](https://github.com/tldraw/tldraw/pull/2102))
|
|
|
|
- Small adjustment to editor ui.
|
|
|
|
#### Remove indicator for autosize text shapes while editing ([#2120](https://github.com/tldraw/tldraw/pull/2120))
|
|
|
|
- Removed the indicator from autosize text shapes.
|
|
|
|
#### Taha/initial shape in handle change ([#2117](https://github.com/tldraw/tldraw/pull/2117))
|
|
|
|
- Add a brief release note for your PR here.
|
|
|
|
#### Fix an issue with `addEventListener` in old Safari (pre v14) ([#2114](https://github.com/tldraw/tldraw/pull/2114))
|
|
|
|
- Fixes an issue with `addEventListener` on MediaQueryList object in old versions of Safari.
|
|
|
|
#### fix selection fg transform ([#2113](https://github.com/tldraw/tldraw/pull/2113))
|
|
|
|
- Fixes a small issue causing the selection foreground to be offset when the browser is at particular zoom levels.
|
|
|
|
#### Remove (optional) from jsdocs ([#2109](https://github.com/tldraw/tldraw/pull/2109))
|
|
|
|
- dev: Removed duplicate/inconsistent `(optional)`s from docs
|
|
|
|
#### [fix] mobile style panel switching open / closed ([#2101](https://github.com/tldraw/tldraw/pull/2101))
|
|
|
|
- Fix bug with style panel
|
|
|
|
---
|
|
|
|
#### 🚀 Enhancement
|
|
|
|
- `@tldraw/tldraw`
|
|
- instant bookmarks [#2176](https://github.com/tldraw/tldraw/pull/2176) ([@ds300](https://github.com/ds300))
|
|
- Remove indicator for autosize text shapes while editing [#2120](https://github.com/tldraw/tldraw/pull/2120) ([@TodePond](https://github.com/TodePond))
|
|
- `@tldraw/editor`, `@tldraw/tldraw`
|
|
- [feature] Things on the canvas [#2150](https://github.com/tldraw/tldraw/pull/2150) ([@steveruizok](https://github.com/steveruizok))
|
|
- Tighten up editor ui [#2102](https://github.com/tldraw/tldraw/pull/2102) ([@steveruizok](https://github.com/steveruizok))
|
|
- `@tldraw/editor`, `@tldraw/tldraw`, `@tldraw/tlschema`
|
|
- [feature] multi-scribbles [#2125](https://github.com/tldraw/tldraw/pull/2125) ([@steveruizok](https://github.com/steveruizok))
|
|
|
|
#### 🐛 Bug Fix
|
|
|
|
- Bump vs code extension. [#2142](https://github.com/tldraw/tldraw/pull/2142) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
|
- Bump VS Code [#2100](https://github.com/tldraw/tldraw/pull/2100) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
|
- `@tldraw/tldraw`
|
|
- Add tldraw component exports [#2188](https://github.com/tldraw/tldraw/pull/2188) ([@steveruizok](https://github.com/steveruizok))
|
|
- Fix an error when using context menu. [#2186](https://github.com/tldraw/tldraw/pull/2186) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
|
- Fix an issue with edit link. [#2184](https://github.com/tldraw/tldraw/pull/2184) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
|
- Only use the hack if we are in safari. [#2185](https://github.com/tldraw/tldraw/pull/2185) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
|
- Fix keyboard shortcuts for vscode. [#2181](https://github.com/tldraw/tldraw/pull/2181) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
|
- Fix printing. [#2177](https://github.com/tldraw/tldraw/pull/2177) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
|
- [fix] Frame label not following staying aligned correctly on rotation [#2172](https://github.com/tldraw/tldraw/pull/2172) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git) [@steveruizok](https://github.com/steveruizok))
|
|
- Don't show scrollbars. [#2171](https://github.com/tldraw/tldraw/pull/2171) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
|
- Fix arrow dropdown localizations. [#2174](https://github.com/tldraw/tldraw/pull/2174) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
|
- Allow users to select shapes when drag starts on top of a locked shape. [#2169](https://github.com/tldraw/tldraw/pull/2169) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
|
- Fix the problem with text not being correctly aligned in small geo shapes. [#2168](https://github.com/tldraw/tldraw/pull/2168) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
|
- Fix cleanupText [#2138](https://github.com/tldraw/tldraw/pull/2138) ([@ds300](https://github.com/ds300))
|
|
- [android] Fix text labels and link button getting misaligned [#2132](https://github.com/tldraw/tldraw/pull/2132) ([@TodePond](https://github.com/TodePond))
|
|
- [fix] button gaps [#2130](https://github.com/tldraw/tldraw/pull/2130) ([@steveruizok](https://github.com/steveruizok))
|
|
- [fix] Move to page button / toasts styling [#2126](https://github.com/tldraw/tldraw/pull/2126) ([@steveruizok](https://github.com/steveruizok))
|
|
- [fix] css for editing page title [#2124](https://github.com/tldraw/tldraw/pull/2124) ([@steveruizok](https://github.com/steveruizok))
|
|
- fix selection fg transform [#2113](https://github.com/tldraw/tldraw/pull/2113) ([@ds300](https://github.com/ds300))
|
|
- [fix] mobile style panel switching open / closed [#2101](https://github.com/tldraw/tldraw/pull/2101) ([@steveruizok](https://github.com/steveruizok))
|
|
- `@tldraw/editor`, `@tldraw/tldraw`
|
|
- [fix] actions menu freezing ui [#2187](https://github.com/tldraw/tldraw/pull/2187) ([@steveruizok](https://github.com/steveruizok))
|
|
- Fix crash with zero length arrow [#2173](https://github.com/tldraw/tldraw/pull/2173) ([@TodePond](https://github.com/TodePond))
|
|
- Zooming improvement [#2149](https://github.com/tldraw/tldraw/pull/2149) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
|
- `@tldraw/editor`
|
|
- add missing semicolon [#2182](https://github.com/tldraw/tldraw/pull/2182) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
|
|
- fix scroll event coords [#2180](https://github.com/tldraw/tldraw/pull/2180) ([@ds300](https://github.com/ds300))
|
|
- Fix an issue with `addEventListener` in old Safari (pre v14) [#2114](https://github.com/tldraw/tldraw/pull/2114) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
|
|
|
#### 🏠 Internal
|
|
|
|
- `@tldraw/assets`, `@tldraw/editor`, `@tldraw/state`, `@tldraw/store`, `@tldraw/tldraw`, `@tldraw/tlschema`, `@tldraw/utils`, `@tldraw/validate`
|
|
- Revert "bump prerelease from alpha to beta" [#2192](https://github.com/tldraw/tldraw/pull/2192) ([@ds300](https://github.com/ds300))
|
|
- bump prerelease from alpha to beta [#2148](https://github.com/tldraw/tldraw/pull/2148) ([@ds300](https://github.com/ds300))
|
|
- `@tldraw/editor`, `@tldraw/tldraw`
|
|
- Taha/initial shape in handle change [#2117](https://github.com/tldraw/tldraw/pull/2117) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
|
|
|
|
#### 📝 Documentation
|
|
|
|
- `@tldraw/editor`
|
|
- Add meta example [#2122](https://github.com/tldraw/tldraw/pull/2122) ([@steveruizok](https://github.com/steveruizok))
|
|
- `@tldraw/editor`, `@tldraw/state`, `@tldraw/tldraw`
|
|
- Remove (optional) from jsdocs [#2109](https://github.com/tldraw/tldraw/pull/2109) ([@TodePond](https://github.com/TodePond))
|
|
|
|
#### Authors: 5
|
|
|
|
- David Sheldrick ([@ds300](https://github.com/ds300))
|
|
- Lu Wilson ([@TodePond](https://github.com/TodePond))
|
|
- Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
|
- Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
|
|
- Taha ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
|