Skip to content

Commit 39bd199

Browse files
authored
changes room name to avoid overcrowding (tldraw#6548)
This PR introduces a cosmetic change in Quick Start that can otherwise be a blocker for users. ### Problem description If you just copy-paste the code from the existing Quick Start, you may hit an overused room: https://github.com/user-attachments/assets/cabd59f6-18db-41ed-8ed0-ca5a9074ef0b Users who are not familiar with multi-player can have a hard time figuring out the way out. ### Solution The current change makes it more explicit that the room should have a unique ID by making the example more explicit. ### Change type - [ ] `bugfix` - [ ] `improvement` - [ ] `feature` - [ ] `api` - [X] `other`
1 parent aa1aff3 commit 39bd199

2 files changed

Lines changed: 68 additions & 58 deletions

File tree

apps/docs/content/getting-started/quick-start.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ import { useSyncDemo } from '@tldraw/sync'
8282
import 'tldraw/tldraw.css'
8383

8484
export default function App() {
85-
const store = useSyncDemo({ roomId: 'myapp-abc123' })
85+
const store = useSyncDemo({ roomId: 'insert-any-string-here' })
8686

8787
return (
8888
<div style={{ position: 'fixed', inset: 0 }}>

apps/docs/content/getting-started/releases-versioning.mdx

Lines changed: 67 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -15,84 +15,94 @@ Unlike many JavaScript packages distributed on [NPM](https://www.npmjs.com/), th
1515

1616
{/* START AUTO-GENERATED CHANGELOG */}
1717

18-
## Current release: [v3.13.0](/releases/v3.13.0)
18+
## Current release: [v3.15.0](/releases/v3.15.0)
1919

20-
The big new feature in this months release is Elbow Arrows! These connectors supplement our existing arrow shape and are well suited to more technical diagramming type use-cases. We’re also been continuing to work on accessibility in tldraw, and there are plenty of other performance improvements too.
20+
This release adds `npm create tldraw` to bootstrap new tldraw projects. It also includes several small API additions, accessibility improvements, performance optimizations, and various bug fixes.
2121

22-
#### Elbow arrows
22+
### `npm create tldraw`
2323

24-
The arrow shape now supports elbow arrows! Instead of a single straight line or arc, these arrows get from A to B in a series straight lines joined at right angles. Access the new arrow type by selecting the arrow tool, and choosing the new option under the "Line" style.
24+
You can now run `npm create tldraw` in your terminal to bootstrap a new tldraw project from our starter templates.
2525

26-
#### Accessibility features
26+
![npm create tldraw](https://github.com/user-attachments/assets/7141d2cc-fb24-44c4-b440-2e6e00d3606b)
2727

28-
We’re continuing to work on accessibility in this release, as we make progress towards WCAG compliance.
28+
## Breaking changes
2929

30-
- You can now focus the style panel with the ⌘⏎ keyboard shortcut. ([#5827](https://github.com/tldraw/tldraw/pull/5827))
31-
- More icons and handles in the UI now have labels. ([#6001](https://github.com/tldraw/tldraw/pull/6001))
32-
- ⌘⇧↓ and ⌘⇧↑ moves the selection in and out of container shapes, like frames and groups. ([#5973](https://github.com/tldraw/tldraw/pull/5973))
33-
- You can now tab into embed shapes. ([#5958](https://github.com/tldraw/tldraw/pull/5958))
34-
- The toolbars throughout tldraw are now keyboard navigable. ([#5872](https://github.com/tldraw/tldraw/pull/5872))
35-
- The shortcuts for rich text editing are shown in the keyboard shortcuts help menu. ([#5912](https://github.com/tldraw/tldraw/pull/5912))
30+
There are no breaking changes in this release.
3631

37-
#### Breaking changes
32+
## User-facing changes
3833

39-
- `ShapeUtil.canEditInReadOnly` has been renamed to `ShapeUtil.canEditInReadonly` - note the case-change on “only”. ([#6019](https://github.com/tldraw/tldraw/pull/6019))
34+
- Improve the 'Select All' action to select within the common parent of the current selection. For example, if you select a shape within a frame, it will select all the shapes within that frame but not the frame itself. ([#6386](https://github.com/tldraw/tldraw/pull/6386))
4035

41-
#### Improvements
36+
- Add a user preference option to turn off keyboard shortcuts. ([#6363](https://github.com/tldraw/tldraw/pull/6363))
4237

43-
- When editing the link on a shape, link text is now auto-selected for faster editing. ([#6072](https://github.com/tldraw/tldraw/pull/6072))
44-
- Pasted text and embeds are now snapped to the grid if it’s enabled. ([#6020](https://github.com/tldraw/tldraw/pull/6020))
45-
- Figma embed now also work with selection links. ([#6025](https://github.com/tldraw/tldraw/pull/6025))
46-
- When editing an arrow label, we now block off part of the arrow to show where your label will appear. ([#6029](https://github.com/tldraw/tldraw/pull/6029))
47-
- Exports of single frames now have the frame background color included in the export. ([#5993](https://github.com/tldraw/tldraw/pull/5993))
48-
- Standardised gradient and hover effects for open submenu items are standardised across the UI. ([#5974](https://github.com/tldraw/tldraw/pull/5974))
49-
- Frames can now be resized to fit their contents by double-clicking their edges. ([#5967](https://github.com/tldraw/tldraw/pull/5967))
38+
## API additions
5039

51-
#### API additions
40+
- Add several new `ShapeUtil` callbacks for handle interactions. ([#6489](https://github.com/tldraw/tldraw/pull/6489))
41+
- Handle drag start and end callbacks: `onHandleDragStart` and `onHandleDragEnd`.
42+
- Interaction cancellation callbacks: `onTranslateCancel`, `onResizeCancel`, `onRotateCancel`, and `onHandleDragCancel`.
5243

53-
- The text measurement API now accepts arbitrary styles to be applied to the text being measured. ([#6014](https://github.com/tldraw/tldraw/pull/6014))
54-
- A new `Overlays` component lets you add overlays on top of the canvas that still follow the camera. ([#5952](https://github.com/tldraw/tldraw/pull/5952))
55-
- `RichTextLabel` now accepts a `hasCustomTabBehavior` prop to disable our default tabbing logic where needed. ([#5908](https://github.com/tldraw/tldraw/pull/5908))
44+
- Allow custom JSX for icons in UI components. ([#6486](https://github.com/tldraw/tldraw/pull/6486))
5645

57-
#### Other improvements
46+
This applies to tool and action overrides as well as our button and menu item components.
5847

59-
- Improve performance of a programatically rotating shape when it is selected ([#6023](https://github.com/tldraw/tldraw/pull/6023))
60-
- Dragging many shapes at once is now much faster. ([#5821](https://github.com/tldraw/tldraw/pull/5821))
61-
- Errors in tldraw no longer prompt users to open an issue on GitHub, as they were getting confused between tldraw and products that use the SDK. ([#5947](https://github.com/tldraw/tldraw/pull/5947))
62-
- License keys now support VS Code extensions. ([#5940](https://github.com/tldraw/tldraw/pull/5940))
48+
- Add the `StateNode.addChild` method for dynamically adding functionality to tools. ([#6485](https://github.com/tldraw/tldraw/pull/6485))
6349

64-
#### Bug fixes
50+
- The `DefaultSpinner` component is now an SVG, and accepts SVG props like `width`, `height`, and `className`. ([#6459](https://github.com/tldraw/tldraw/pull/6459))
6551

66-
- Flattened shapes no longer include an opaque background color. ([#6043](https://github.com/tldraw/tldraw/pull/6043))
67-
- Screenreader announcements are now only triggered in response to user actions. ([#6041](https://github.com/tldraw/tldraw/pull/6041))
68-
- The hand tool no longer takes pan speed into account, so it’s consistent with middle-mouse/spacebar panning. ([#6024](https://github.com/tldraw/tldraw/pull/6024))
69-
- Empty lines and list in text now render consistently. ([#6013](https://github.com/tldraw/tldraw/pull/6013))
70-
- The escape key now correctly exits the laser tool. ([#6015](https://github.com/tldraw/tldraw/pull/6015))
71-
- Offscreen shapes are now selected correctly while brushing. ([#6004](https://github.com/tldraw/tldraw/pull/6004))
72-
- `ShapeUtil.getGeometry` uses `shape.meta` as part of its cache key, instead of just `shape.props`. ([#5988](https://github.com/tldraw/tldraw/pull/5988))
73-
- Toolbar buttons reflect their active states correctly. ([#5981](https://github.com/tldraw/tldraw/pull/5981))
74-
- The control key gets released properly when wheeling. ([#5983](https://github.com/tldraw/tldraw/pull/5983))
75-
- Remove jitter from arrows & lines as their size changes in some browsers. ([#5975](https://github.com/tldraw/tldraw/pull/5975))
76-
- Long-pressing the enter key no longer enters edit mode. ([#5957](https://github.com/tldraw/tldraw/pull/5957))
77-
- Partially bound arrows don’t flicker when you rotate them. ([#5951](https://github.com/tldraw/tldraw/pull/5951))
78-
- `editor.getSelectedShapes` no longer causes re-evaluations unless it actually changed. ([#5928](https://github.com/tldraw/tldraw/pull/5928))
79-
- Chains of viewport followers now work as expected. ([#5924](https://github.com/tldraw/tldraw/pull/5924))
52+
- Add a missing export of `HeartToolbarItem`. ([#6438](https://github.com/tldraw/tldraw/pull/6438))
8053

81-
#### Authors
54+
## Bug fixes
8255

83-
- [@budatl](https://github.com/budatl)
84-
- alex ([@SomeHats](https://github.com/SomeHats))
85-
- Ante Sepic ([@OriginalEXE](https://github.com/OriginalEXE))
86-
- David Sheldrick ([@ds300](https://github.com/ds300))
87-
- Lu Wilson ([@TodePond](https://github.com/TodePond))
88-
- Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
89-
- Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
90-
- Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
91-
- Trygve Aaberge ([@trygve-aaberge-adsk](https://github.com/trygve-aaberge-adsk))
92-
- Younsang Na ([@nayounsang](https://github.com/nayounsang))
56+
- Fix HTML entities escaping in pasted content. ([#6396](https://github.com/tldraw/tldraw/pull/6396))
57+
58+
- Fix measurement of fixed-size text shapes and labels. ([#6423](https://github.com/tldraw/tldraw/pull/6423))
59+
60+
- Fix an issue where text measurement could be wrong due to styles being leaked between measurements. ([#6419](https://github.com/tldraw/tldraw/pull/6419))
61+
62+
- Fix an issue that would cause arrows between circles to sometimes render incorrectly. ([#6417](https://github.com/tldraw/tldraw/pull/6417))
63+
64+
- Fix text outline rendering in exported SVGs. ([#6371](https://github.com/tldraw/tldraw/pull/6371))
65+
66+
- Fix some edge cases where errors were thrown after reaching the maximum number of shapes. ([#6359](https://github.com/tldraw/tldraw/pull/6359))
67+
68+
- Fix image toolbar reacting to camera movement. ([#6375](https://github.com/tldraw/tldraw/pull/6375))
69+
70+
- Update `fractional-indexing-jittered` to address an issue with certain null values. See [this PR](https://github.com/TMeerhof/fractional-indexing-jittered/pull/5). ([#6479](https://github.com/tldraw/tldraw/pull/6479))
71+
72+
## Performance improvements
73+
74+
- Prevent unnecessarily dropped frames. ([#6464](https://github.com/tldraw/tldraw/pull/6464)) ([#6409](https://github.com/tldraw/tldraw/pull/6409))
75+
76+
- Optimize the `useValue` hook. ([#6405](https://github.com/tldraw/tldraw/pull/6405))
77+
78+
- Optimize the `useReactor` hook. ([#6383](https://github.com/tldraw/tldraw/pull/6383))
79+
80+
- Optimize frame rendering performance. ([#6415](https://github.com/tldraw/tldraw/pull/6415))
81+
82+
## Accessibility improvements
83+
84+
- Apply `aria-hidden` to more elements, and in more intelligent ways. ([#6471](https://github.com/tldraw/tldraw/pull/6471)) ([#6437](https://github.com/tldraw/tldraw/pull/6437))
85+
86+
- Improve keyboard navigation. ([#6446](https://github.com/tldraw/tldraw/pull/6446))
87+
88+
- Set `role="radiogroup"` on the `ToggleGroup` component. ([#6435](https://github.com/tldraw/tldraw/pull/6435))
89+
90+
- Fix aria slider values and make dialogs scrollable via keyboard. ([#6431](https://github.com/tldraw/tldraw/pull/6431))
91+
92+
- Fix several other minor accessibility issues. ([#6358](https://github.com/tldraw/tldraw/pull/6358))
93+
94+
## Other improvements
95+
96+
- Show max shapes alert when duplicating shapes. ([#6411](https://github.com/tldraw/tldraw/pull/6411))
97+
98+
- Hide cropping toolbar while cropping. ([#6376](https://github.com/tldraw/tldraw/pull/6376))
9399

94100
## Previous releases
95101

102+
- [v3.14.0](/releases/v3.14.0)
103+
104+
- [v3.13.0](/releases/v3.13.0)
105+
96106
- [v3.12.0](/releases/v3.12.0)
97107

98108
- [v3.11.0](/releases/v3.11.0)

0 commit comments

Comments
 (0)