@tldraw/tlschema 3.14.0-internal.eada756f6aa0 → 3.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md DELETED
@@ -1,1593 +0,0 @@
1
- # v3.13.0 (Thu May 22 2025)
2
-
3
- ### Release Notes
4
-
5
- #### a11y: address icons and handles ([#6001](https://github.com/tldraw/tldraw/pull/6001))
6
-
7
- - a11y: add labels to icons and handles
8
-
9
- #### Elbow arrows ([#5572](https://github.com/tldraw/tldraw/pull/5572))
10
-
11
- - 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.
12
-
13
- ---
14
-
15
- #### 🐛 Bug Fixes
16
-
17
- - Set retroactive to true for props migrators [#6036](https://github.com/tldraw/tldraw/pull/6036) ([@ds300](https://github.com/ds300))
18
-
19
- #### 💄 Product Improvements
20
-
21
- - a11y: address icons and handles [#6001](https://github.com/tldraw/tldraw/pull/6001) ([@mimecuvalo](https://github.com/mimecuvalo))
22
-
23
- #### 🎉 New Features
24
-
25
- - Elbow arrows [#5572](https://github.com/tldraw/tldraw/pull/5572) ([@SomeHats](https://github.com/SomeHats) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
26
-
27
- #### Authors: 4
28
-
29
- - [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
30
- - alex ([@SomeHats](https://github.com/SomeHats))
31
- - David Sheldrick ([@ds300](https://github.com/ds300))
32
- - Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
33
-
34
- ---
35
-
36
- # v3.12.0 (Tue Apr 15 2025)
37
-
38
- ### Release Notes
39
-
40
- #### a11y: announce shapes as they're visited ([#5773](https://github.com/tldraw/tldraw/pull/5773))
41
-
42
- - a11y: announce shapes as they're visited
43
-
44
- #### Add Frame colors ([#5283](https://github.com/tldraw/tldraw/pull/5283))
45
-
46
- - Added `FrameShapeUtil.options.showColors` option to display colors for frames.
47
-
48
- ---
49
-
50
- #### 🐛 Bug Fixes
51
-
52
- - Add Frame colors [#5283](https://github.com/tldraw/tldraw/pull/5283) ([@steveruizok](https://github.com/steveruizok) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]) [@SomeHats](https://github.com/SomeHats))
53
-
54
- #### 🎉 New Features
55
-
56
- - a11y: announce shapes as they're visited [#5773](https://github.com/tldraw/tldraw/pull/5773) ([@mimecuvalo](https://github.com/mimecuvalo))
57
-
58
- #### Authors: 4
59
-
60
- - [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
61
- - alex ([@SomeHats](https://github.com/SomeHats))
62
- - Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
63
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
64
-
65
- ---
66
-
67
- # v3.11.0 (Thu Mar 20 2025)
68
-
69
- ### Release Notes
70
-
71
- #### assets: be able to remove assets that are unused ([#5628](https://github.com/tldraw/tldraw/pull/5628))
72
-
73
- - Cleanup assets from the local indexedDB that are proactively deleted.
74
-
75
- #### 'New user' -> 'Guest user' (dotcom only) ([#5614](https://github.com/tldraw/tldraw/pull/5614))
76
-
77
- - Add a translation key 'people-menu.anonymous-user' with the default string 'New User'
78
- - BREAKING CHANGE: `editor.user.getName()` no longer returns `'New user'` if the user has no name set. Instead it returns the empty string `''`.
79
- - BREAKING CHANGE: `defaultUserPreferences.name` is no longer the string `'New user'`, it is now the empty string `''`
80
-
81
- ---
82
-
83
- #### 🐛 Bug Fix
84
-
85
- - upgrade yarn to 4.7 [#5687](https://github.com/tldraw/tldraw/pull/5687) ([@SomeHats](https://github.com/SomeHats))
86
-
87
- #### 💄 Product Improvements
88
-
89
- - assets: be able to remove assets that are unused [#5628](https://github.com/tldraw/tldraw/pull/5628) ([@mimecuvalo](https://github.com/mimecuvalo))
90
- - 'New user' -> 'Guest user' (dotcom only) [#5614](https://github.com/tldraw/tldraw/pull/5614) ([@ds300](https://github.com/ds300))
91
-
92
- #### Authors: 3
93
-
94
- - alex ([@SomeHats](https://github.com/SomeHats))
95
- - David Sheldrick ([@ds300](https://github.com/ds300))
96
- - Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
97
-
98
- ---
99
-
100
- # v3.10.0 (Tue Mar 11 2025)
101
-
102
- ### Release Notes
103
-
104
- #### [feature] add rich text and contextual toolbar ([#4895](https://github.com/tldraw/tldraw/pull/4895))
105
-
106
- - Rich text using ProseMirror as a first-class supported option in the Editor.
107
-
108
- ---
109
-
110
- #### 🐛 Bug Fix
111
-
112
- - CTA analytics [#5542](https://github.com/tldraw/tldraw/pull/5542) ([@TodePond](https://github.com/TodePond))
113
-
114
- #### 🎉 New Features
115
-
116
- - [feature] add rich text and contextual toolbar [#4895](https://github.com/tldraw/tldraw/pull/4895) ([@mimecuvalo](https://github.com/mimecuvalo) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]) [@SomeHats](https://github.com/SomeHats) [@ds300](https://github.com/ds300) [@steveruizok](https://github.com/steveruizok))
117
-
118
- #### Authors: 6
119
-
120
- - [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
121
- - alex ([@SomeHats](https://github.com/SomeHats))
122
- - David Sheldrick ([@ds300](https://github.com/ds300))
123
- - Lu Wilson ([@TodePond](https://github.com/TodePond))
124
- - Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
125
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
126
-
127
- ---
128
-
129
- # v3.9.0 (Mon Mar 03 2025)
130
-
131
- #### 🐛 Bug Fix
132
-
133
- - Update discord links [#5500](https://github.com/tldraw/tldraw/pull/5500) ([@SomeHats](https://github.com/SomeHats) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]) [@steveruizok](https://github.com/steveruizok) [@TodePond](https://github.com/TodePond))
134
-
135
- #### Authors: 4
136
-
137
- - [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
138
- - alex ([@SomeHats](https://github.com/SomeHats))
139
- - Lu Wilson ([@TodePond](https://github.com/TodePond))
140
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
141
-
142
- ---
143
-
144
- # v3.8.0 (Wed Feb 12 2025)
145
-
146
- ### Release Notes
147
-
148
- #### support react 19 ([#5293](https://github.com/tldraw/tldraw/pull/5293))
149
-
150
- - tldraw now supports react 19
151
-
152
- #### Add an onCrop handler to ShapeUtil ([#5137](https://github.com/tldraw/tldraw/pull/5137))
153
-
154
- - Add support for an onCrop handler on shape utils that allows you to prevent or modify the crop.
155
- - The `TLImageShapeCrop` type has been replaced by `TLShapeCrop`.
156
-
157
- #### Asset uploads ([#5218](https://github.com/tldraw/tldraw/pull/5218))
158
-
159
- **Breaking change**
160
-
161
- - `@tldraw/tlschema`: `TLAssetStore.upload` used to return just the `src` of the uploaded asset. It now returns `{src: string, meta?: JsonObject}`. The returned metadata will be added to the asset record and thus allows the users to add some additional data to them when uploading.
162
- - `@tldraw/editor`: `Editor.uploadAsset` used to return `Promise<string>` and now returns `Promise<{ src: string; meta?: JsonObject }> `
163
-
164
- #### Exports DX pass ([#5114](https://github.com/tldraw/tldraw/pull/5114))
165
-
166
- #### Breaking changes / user facing changes
167
- - The copy/export as JSON option has been removed. Data copied/exported from here could not be used anyway. If you need this in your app, look into `Editor.getContentFromCurrentPage`.
168
- - `useImageOrVideoAssetUrl` now expects a `width` parameter representing the rendered width of the asset.
169
- - `Editor.getSvgElement` and `Editor.getSvgString` will now export all shapes on the current page instead of returning undefined when passed an empty array of shape ids.
170
-
171
- #### Product improvement
172
- - When exporting to an image, image assets are now downloaded at a resolution appropriate for how they will appear in the export.
173
-
174
- #### API changes
175
- - There's a new `Editor.toImage` method that makes creating an image from your canvas easier. (`exportToBlob` is deprecated in favour of it)
176
- - `SvgExportContext` now exposes the `scale` and `pixelRatio` options of the current export
177
- - `SvgExportContext` now has a `resolveAssetUrl` method to resolve an asset at a resolution appropriate for the export.
178
- - `copyAs(editor, ids, format, opts)` has been deprecated in favour of `copyAs(editor, ids, opts)`.
179
- - `exportAs(editor, ids, format, name, opts)` has been deprecated in favour of `exportAs(editor, ids, opts)`
180
-
181
- #### i18n: augment the list so that we hit the top 40 languages ([#5208](https://github.com/tldraw/tldraw/pull/5208))
182
-
183
- - i18n: add top 40 languages into the list
184
-
185
- ---
186
-
187
- #### 🐛 Bug Fixes
188
-
189
- - i18n: rename two locale codes [#5212](https://github.com/tldraw/tldraw/pull/5212) ([@mimecuvalo](https://github.com/mimecuvalo))
190
-
191
- #### 💄 Product Improvements
192
-
193
- - support react 19 [#5293](https://github.com/tldraw/tldraw/pull/5293) ([@SomeHats](https://github.com/SomeHats) [@mimecuvalo](https://github.com/mimecuvalo) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
194
- - Asset uploads [#5218](https://github.com/tldraw/tldraw/pull/5218) ([@MitjaBezensek](https://github.com/MitjaBezensek))
195
-
196
- #### 🎉 New Features
197
-
198
- - i18n: augment the list so that we hit the top 40 languages [#5208](https://github.com/tldraw/tldraw/pull/5208) ([@mimecuvalo](https://github.com/mimecuvalo))
199
-
200
- #### 🛠️ API Changes
201
-
202
- - Add an onCrop handler to ShapeUtil [#5137](https://github.com/tldraw/tldraw/pull/5137) ([@trygve-aaberge-adsk](https://github.com/trygve-aaberge-adsk) [@mimecuvalo](https://github.com/mimecuvalo))
203
- - Exports DX pass [#5114](https://github.com/tldraw/tldraw/pull/5114) ([@SomeHats](https://github.com/SomeHats))
204
-
205
- #### Authors: 5
206
-
207
- - [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
208
- - alex ([@SomeHats](https://github.com/SomeHats))
209
- - Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
210
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
211
- - Trygve Aaberge ([@trygve-aaberge-adsk](https://github.com/trygve-aaberge-adsk))
212
-
213
- ---
214
-
215
- # v3.7.0 (Tue Jan 07 2025)
216
-
217
- ### Release Notes
218
-
219
- #### custom sync presence ([#5071](https://github.com/tldraw/tldraw/pull/5071))
220
-
221
- - It's now possible to customise what presence data is synced between clients, or disable presence syncing entirely.
222
-
223
- ---
224
-
225
- #### 🐛 Bug Fix
226
-
227
- - [botcom] slurp local files on sign in [#5059](https://github.com/tldraw/tldraw/pull/5059) ([@ds300](https://github.com/ds300))
228
-
229
- #### 🛠️ API Changes
230
-
231
- - custom sync presence [#5071](https://github.com/tldraw/tldraw/pull/5071) ([@SomeHats](https://github.com/SomeHats))
232
-
233
- #### Authors: 2
234
-
235
- - alex ([@SomeHats](https://github.com/SomeHats))
236
- - David Sheldrick ([@ds300](https://github.com/ds300))
237
-
238
- ---
239
-
240
- # v3.6.0 (Wed Dec 04 2024)
241
-
242
- ### Release Notes
243
-
244
- #### Create a utility type for making undefined properties optional ([#5055](https://github.com/tldraw/tldraw/pull/5055))
245
-
246
- - Expose a utility type for making undefined properties optional
247
-
248
- ---
249
-
250
- #### 🐛 Bug Fix
251
-
252
- - Create a utility type for making undefined properties optional [#5055](https://github.com/tldraw/tldraw/pull/5055) ([@trygve-aaberge-adsk](https://github.com/trygve-aaberge-adsk) [@SomeHats](https://github.com/SomeHats))
253
-
254
- #### 🐛 Bug Fixes
255
-
256
- - Fix an issue with drag and dropping the files [#5013](https://github.com/tldraw/tldraw/pull/5013) ([@MitjaBezensek](https://github.com/MitjaBezensek))
257
-
258
- #### Authors: 3
259
-
260
- - alex ([@SomeHats](https://github.com/SomeHats))
261
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
262
- - Trygve Aaberge ([@trygve-aaberge-adsk](https://github.com/trygve-aaberge-adsk))
263
-
264
- ---
265
-
266
- # v3.5.0 (Tue Nov 26 2024)
267
-
268
- #### 💄 Product Improvements
269
-
270
- - Lokalise: Translations update [#4947](https://github.com/tldraw/tldraw/pull/4947) ([@TodePond](https://github.com/TodePond) [@mimecuvalo](https://github.com/mimecuvalo))
271
-
272
- #### Authors: 2
273
-
274
- - Lu Wilson ([@TodePond](https://github.com/TodePond))
275
- - Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
276
-
277
- ---
278
-
279
- # v3.4.0 (Thu Oct 24 2024)
280
-
281
- ### Release Notes
282
-
283
- #### npm: upgrade eslint v8 → v9 ([#4757](https://github.com/tldraw/tldraw/pull/4757))
284
-
285
- - Upgrade eslint v8 → v9
286
-
287
- #### Add labelColor for notes. ([#4724](https://github.com/tldraw/tldraw/pull/4724))
288
-
289
- - Adds `labelColor` for Note shapes.
290
-
291
- ---
292
-
293
- #### 🐛 Bug Fix
294
-
295
- - roll back changes from bad deploy [#4780](https://github.com/tldraw/tldraw/pull/4780) ([@SomeHats](https://github.com/SomeHats))
296
- - Update CHANGELOG.md \[skip ci\] ([@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
297
-
298
- #### 💄 Product Improvements
299
-
300
- - npm: upgrade eslint v8 → v9 [#4757](https://github.com/tldraw/tldraw/pull/4757) ([@mimecuvalo](https://github.com/mimecuvalo) [@SomeHats](https://github.com/SomeHats) [@ds300](https://github.com/ds300) [@MitjaBezensek](https://github.com/MitjaBezensek) [@steveruizok](https://github.com/steveruizok))
301
-
302
- #### 🎉 New Features
303
-
304
- - Add labelColor for notes. [#4724](https://github.com/tldraw/tldraw/pull/4724) ([@steveruizok](https://github.com/steveruizok))
305
-
306
- #### Authors: 6
307
-
308
- - [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
309
- - alex ([@SomeHats](https://github.com/SomeHats))
310
- - David Sheldrick ([@ds300](https://github.com/ds300))
311
- - Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
312
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
313
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
314
-
315
- ---
316
-
317
- # v3.3.0 (Wed Oct 09 2024)
318
-
319
- ### Release Notes
320
-
321
- #### [sync] Set instance.isReadonly automatically ([#4673](https://github.com/tldraw/tldraw/pull/4673))
322
-
323
- - Puts the editor into readonly mode automatically when the tlsync server responds in readonly mode.
324
- - Adds the `editor.getIsReadonly()` method.
325
- - Fixes a bug where arrow labels could be edited in readonly mode.
326
-
327
- #### Disable debug mode in development by default ([#4629](https://github.com/tldraw/tldraw/pull/4629))
328
-
329
- - Turns off debug mode by default in local development.
330
-
331
- ---
332
-
333
- #### 🐛 Bug Fix
334
-
335
- - Disable debug mode in development by default [#4629](https://github.com/tldraw/tldraw/pull/4629) ([@ds300](https://github.com/ds300))
336
-
337
- #### 💄 Product Improvements
338
-
339
- - [sync] Set instance.isReadonly automatically [#4673](https://github.com/tldraw/tldraw/pull/4673) ([@ds300](https://github.com/ds300))
340
-
341
- #### Authors: 1
342
-
343
- - David Sheldrick ([@ds300](https://github.com/ds300))
344
-
345
- ---
346
-
347
- # v3.1.0 (Wed Sep 25 2024)
348
-
349
- #### 🐛 Bug Fix
350
-
351
- - npm: make our React packages consistent [#4547](https://github.com/tldraw/tldraw/pull/4547) ([@mimecuvalo](https://github.com/mimecuvalo) [@MitjaBezensek](https://github.com/MitjaBezensek))
352
- - docs: cleanup/add readmes/licenses [#4542](https://github.com/tldraw/tldraw/pull/4542) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok) [@MitjaBezensek](https://github.com/MitjaBezensek) [@SomeHats](https://github.com/SomeHats))
353
- - Clean up `apps` directory [#4548](https://github.com/tldraw/tldraw/pull/4548) ([@SomeHats](https://github.com/SomeHats))
354
- - licenses: add MIT and update GB ones to match US [#4517](https://github.com/tldraw/tldraw/pull/4517) ([@mimecuvalo](https://github.com/mimecuvalo))
355
-
356
- #### Authors: 4
357
-
358
- - alex ([@SomeHats](https://github.com/SomeHats))
359
- - Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
360
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
361
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
362
-
363
- ---
364
-
365
- # v3.0.0 (Fri Sep 13 2024)
366
-
367
- ### Release Notes
368
-
369
- #### Detect multiple installed versions of tldraw packages ([#4398](https://github.com/tldraw/tldraw/pull/4398))
370
-
371
- - We detect when there are multiple versions of tldraw installed and let you know, as this can cause bugs in your application
372
-
373
- #### [api] Widen snapshots pit of success ([#4392](https://github.com/tldraw/tldraw/pull/4392))
374
-
375
- - Improved loadSnapshot to preserve page state like camera position and current page if no session snapshot is provided.
376
-
377
- #### Custom embeds API ([#4326](https://github.com/tldraw/tldraw/pull/4326))
378
-
379
- Adds the ability to customize the embeds that are supported. You can now customize or reorder the existing embeds, as well as add completely new ones.
380
-
381
- #### Rename `StoreOptions.multiplayerStatus` ([#4349](https://github.com/tldraw/tldraw/pull/4349))
382
-
383
- - Renames `StoreOptions.multiplayerStatus` to `StoreOptions.collaboration.status`.
384
-
385
- #### remove onEditorMount prop ([#4320](https://github.com/tldraw/tldraw/pull/4320))
386
-
387
- - **Breaking:** the `onEditorMount` option to `createTLStore` is now called `onMount`
388
-
389
- #### Move from function properties to methods ([#4288](https://github.com/tldraw/tldraw/pull/4288))
390
-
391
- - Adds eslint rules for enforcing the use of methods instead of function properties and fixes / disables all the resulting errors.
392
-
393
- ---
394
-
395
- #### 🐛 Bug Fix
396
-
397
- - [SORRY, PLEASE MERGE] 3.0 megabus [#4494](https://github.com/tldraw/tldraw/pull/4494) ([@SomeHats](https://github.com/SomeHats) [@steveruizok](https://github.com/steveruizok) [@ds300](https://github.com/ds300))
398
- - consistent function style [#4468](https://github.com/tldraw/tldraw/pull/4468) ([@SomeHats](https://github.com/SomeHats))
399
- - Update READMEs. [#4377](https://github.com/tldraw/tldraw/pull/4377) ([@steveruizok](https://github.com/steveruizok))
400
- - Fix some broken links in the docs [#4340](https://github.com/tldraw/tldraw/pull/4340) ([@steveruizok](https://github.com/steveruizok))
401
-
402
- #### 💄 Product Improvements
403
-
404
- - inline nanoid [#4410](https://github.com/tldraw/tldraw/pull/4410) ([@SomeHats](https://github.com/SomeHats))
405
- - [api] Widen snapshots pit of success [#4392](https://github.com/tldraw/tldraw/pull/4392) ([@ds300](https://github.com/ds300))
406
-
407
- #### 🎉 New Features
408
-
409
- - Custom embeds API [#4326](https://github.com/tldraw/tldraw/pull/4326) ([@MitjaBezensek](https://github.com/MitjaBezensek))
410
-
411
- #### 🛠️ API Changes
412
-
413
- - Detect multiple installed versions of tldraw packages [#4398](https://github.com/tldraw/tldraw/pull/4398) ([@SomeHats](https://github.com/SomeHats))
414
- - Rename `StoreOptions.multiplayerStatus` [#4349](https://github.com/tldraw/tldraw/pull/4349) ([@steveruizok](https://github.com/steveruizok))
415
- - remove onEditorMount prop [#4320](https://github.com/tldraw/tldraw/pull/4320) ([@SomeHats](https://github.com/SomeHats))
416
- - Move from function properties to methods [#4288](https://github.com/tldraw/tldraw/pull/4288) ([@ds300](https://github.com/ds300) [@MitjaBezensek](https://github.com/MitjaBezensek) [@steveruizok](https://github.com/steveruizok))
417
-
418
- #### Authors: 4
419
-
420
- - alex ([@SomeHats](https://github.com/SomeHats))
421
- - David Sheldrick ([@ds300](https://github.com/ds300))
422
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
423
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
424
-
425
- ---
426
-
427
- # v2.4.0 (Mon Jul 22 2024)
428
-
429
- ### Release Notes
430
-
431
- #### Finesse sync api ([#4212](https://github.com/tldraw/tldraw/pull/4212))
432
-
433
- - Fixed a bug with…
434
-
435
- #### Make asset.fileSize optional ([#4206](https://github.com/tldraw/tldraw/pull/4206))
436
-
437
- - Made the `fileSize` property of `TLImageAsset` and `TLVideoAsset` optional
438
-
439
- #### Explicitly type shape props and defaults ([#4191](https://github.com/tldraw/tldraw/pull/4191))
440
-
441
- - Explicitly declare type types of default shapes etc. and shape props for better documentation
442
-
443
- #### [1/4] Blob storage in TLStore ([#4068](https://github.com/tldraw/tldraw/pull/4068))
444
-
445
- Introduce a new `assets` option for the store, describing how to save and retrieve asset blobs like images & videos from e.g. a user-content CDN. These are accessible through `editor.uploadAsset` and `editor.resolveAssetUrl`. This supplements the existing `registerExternalAssetHandler` API: `registerExternalAssetHandler` is for customising metadata extraction, and should call `editor.uploadAsset` to save assets. Existing `registerExternalAssetHandler` calls will still work, but if you're only using them to configure uploads and don't want to customise metadata extraction, consider switching to the new `assets` store prop.
446
-
447
- #### Flip images ([#4113](https://github.com/tldraw/tldraw/pull/4113))
448
-
449
- - Adds the ability to flip images.
450
-
451
- #### Make arrow sequence not retroactive ([#4090](https://github.com/tldraw/tldraw/pull/4090))
452
-
453
- - Fixed a bug with...
454
-
455
- #### Add `setDefaultValue` to `StyleProp` ([#4044](https://github.com/tldraw/tldraw/pull/4044))
456
-
457
- - Adds a method for changing the default style of a `StyleProp` instance.
458
-
459
- ---
460
-
461
- #### 🐛 Bug Fix
462
-
463
- - Cloudflare sync template [#4179](https://github.com/tldraw/tldraw/pull/4179) ([@SomeHats](https://github.com/SomeHats))
464
- - Demo server bookmark unfurl endpoint [#4062](https://github.com/tldraw/tldraw/pull/4062) ([@SomeHats](https://github.com/SomeHats))
465
-
466
- #### 🐛 Bug Fixes
467
-
468
- - Make arrow sequence not retroactive [#4090](https://github.com/tldraw/tldraw/pull/4090) ([@ds300](https://github.com/ds300))
469
-
470
- #### 💄 Product Improvements
471
-
472
- - [3/5] Automatically enable multiplayer UI when using demo sync [#4119](https://github.com/tldraw/tldraw/pull/4119) ([@SomeHats](https://github.com/SomeHats))
473
- - Flip images [#4113](https://github.com/tldraw/tldraw/pull/4113) ([@steveruizok](https://github.com/steveruizok))
474
-
475
- #### 🎉 New Features
476
-
477
- - Add `setDefaultValue` to `StyleProp` [#4044](https://github.com/tldraw/tldraw/pull/4044) ([@steveruizok](https://github.com/steveruizok))
478
-
479
- #### 🛠️ API Changes
480
-
481
- - Finesse sync api [#4212](https://github.com/tldraw/tldraw/pull/4212) ([@ds300](https://github.com/ds300))
482
- - Make asset.fileSize optional [#4206](https://github.com/tldraw/tldraw/pull/4206) ([@steveruizok](https://github.com/steveruizok))
483
- - Explicitly type shape props and defaults [#4191](https://github.com/tldraw/tldraw/pull/4191) ([@SomeHats](https://github.com/SomeHats))
484
- - [2/4] Rename sync hooks, add bookmarks to demo [#4094](https://github.com/tldraw/tldraw/pull/4094) ([@SomeHats](https://github.com/SomeHats))
485
- - [1/4] Blob storage in TLStore [#4068](https://github.com/tldraw/tldraw/pull/4068) ([@SomeHats](https://github.com/SomeHats))
486
-
487
- #### Authors: 3
488
-
489
- - alex ([@SomeHats](https://github.com/SomeHats))
490
- - David Sheldrick ([@ds300](https://github.com/ds300))
491
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
492
-
493
- ---
494
-
495
- # v2.3.0 (Tue Jun 25 2024)
496
-
497
- ### Release Notes
498
-
499
- #### Dynamic size mode + fill fill ([#3835](https://github.com/tldraw/tldraw/pull/3835))
500
-
501
- - Adds a dynamic size user preferences.
502
- - Removes double click to reset scale on text shapes.
503
- - Removes double click to reset autosize on text shapes.
504
-
505
- #### assets: make option to transform urls dynamically / LOD ([#3827](https://github.com/tldraw/tldraw/pull/3827))
506
-
507
- - Assets: make option to transform urls dynamically to provide different sized images on demand.
508
-
509
- ---
510
-
511
- #### 📚 SDK Changes
512
-
513
- - Dynamic size mode + fill fill [#3835](https://github.com/tldraw/tldraw/pull/3835) ([@steveruizok](https://github.com/steveruizok) [@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
514
- - assets: make option to transform urls dynamically / LOD [#3827](https://github.com/tldraw/tldraw/pull/3827) ([@mimecuvalo](https://github.com/mimecuvalo))
515
-
516
- #### Authors: 4
517
-
518
- - [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
519
- - Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
520
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
521
- - Taha ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
522
-
523
- ---
524
-
525
- # v2.2.0 (Tue Jun 11 2024)
526
-
527
- ### Release Notes
528
-
529
- #### bookmark: fix up double request and rework extractor ([#3856](https://github.com/tldraw/tldraw/pull/3856))
530
-
531
- - Bookmarks: fix up double request and rework extractor code.
532
-
533
- #### Snapshots pit of success ([#3811](https://github.com/tldraw/tldraw/pull/3811))
534
-
535
- - Add a brief release note for your PR here.
536
-
537
- #### Add heart geo shape ([#3787](https://github.com/tldraw/tldraw/pull/3787))
538
-
539
- - Adds a heart shape to the geo shape set.
540
-
541
- #### rework canBind callback ([#3797](https://github.com/tldraw/tldraw/pull/3797))
542
-
543
- #### Breaking changes
544
- The `canBind` flag now accepts an options object instead of just the shape in question. If you're relying on its arguments, you need to change from `canBind(shape) {}` to `canBind({shape}) {}`.
545
-
546
- #### Bindings ([#3326](https://github.com/tldraw/tldraw/pull/3326))
547
-
548
- #### Breaking changes
549
- - The `start` and `end` properties on `TLArrowShape` no longer have `type: point | binding`. Instead, they're always a point, which may be out of date if a binding exists. To check for & retrieve arrow bindings, use `getArrowBindings(editor, shape)` instead.
550
- - `getArrowTerminalsInArrowSpace` must be passed a `TLArrowBindings` as a third argument: `getArrowTerminalsInArrowSpace(editor, shape, getArrowBindings(editor, shape))`
551
- - The following types have been renamed:
552
- - `ShapeProps` -> `RecordProps`
553
- - `ShapePropsType` -> `RecordPropsType`
554
- - `TLShapePropsMigrations` -> `TLPropsMigrations`
555
- - `SchemaShapeInfo` -> `SchemaPropsInfo`
556
-
557
- #### Camera options ([#3282](https://github.com/tldraw/tldraw/pull/3282))
558
-
559
- - SDK: Adds camera options.
560
-
561
- #### embed: allow embeds like YouTube to link back to its site ([#3609](https://github.com/tldraw/tldraw/pull/3609))
562
-
563
- - Embeds: fix being able to click on links that go back to the embed's site (e.g. YouTube)
564
-
565
- #### Separate text-align property for shapes ([#3627](https://github.com/tldraw/tldraw/pull/3627))
566
-
567
- - Separates the text align property for text shapes and labels.
568
-
569
- #### Add desmos graph embed type ([#3608](https://github.com/tldraw/tldraw/pull/3608))
570
-
571
- - (feature) add desmos embed
572
-
573
- #### Expose migrations, validators, and versions from tlschema ([#3613](https://github.com/tldraw/tldraw/pull/3613))
574
-
575
- Previously, we weren't exporting migrations & validators for our default shapes. This meant that it wasn't possible to make your own tlschema with both our default shapes and some of your own (e.g. for custom multiplayer). This fixes that by exposing all the migrations, validators, and versions from tlschema, plus `defaultShapeSchemas` which can be passed directly to `createTLSchema`
576
-
577
- #### fix migration exports ([#3586](https://github.com/tldraw/tldraw/pull/3586))
578
-
579
- - Expose `createShapePropsMigrationIds`, `defaultEditorAssetUrls`, `PORTRAIT_BREAKPOINT`, `useDefaultColorTheme`, & `getPerfectDashProps`
580
-
581
- ---
582
-
583
- #### 🐛 Bug Fix
584
-
585
- - Lokalise: Translations update [#3649](https://github.com/tldraw/tldraw/pull/3649) ([@TodePond](https://github.com/TodePond))
586
-
587
- #### 📚 SDK Changes
588
-
589
- - Snapshots pit of success [#3811](https://github.com/tldraw/tldraw/pull/3811) ([@ds300](https://github.com/ds300))
590
- - Add heart geo shape [#3787](https://github.com/tldraw/tldraw/pull/3787) ([@steveruizok](https://github.com/steveruizok))
591
- - rework canBind callback [#3797](https://github.com/tldraw/tldraw/pull/3797) ([@SomeHats](https://github.com/SomeHats))
592
- - Force `interface` instead of `type` for better docs [#3815](https://github.com/tldraw/tldraw/pull/3815) ([@SomeHats](https://github.com/SomeHats))
593
- - Bindings [#3326](https://github.com/tldraw/tldraw/pull/3326) ([@SomeHats](https://github.com/SomeHats))
594
- - Camera options [#3282](https://github.com/tldraw/tldraw/pull/3282) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@steveruizok](https://github.com/steveruizok))
595
- - embed: allow embeds like YouTube to link back to its site [#3609](https://github.com/tldraw/tldraw/pull/3609) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok))
596
- - Separate text-align property for shapes [#3627](https://github.com/tldraw/tldraw/pull/3627) ([@steveruizok](https://github.com/steveruizok) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
597
- - Expose migrations, validators, and versions from tlschema [#3613](https://github.com/tldraw/tldraw/pull/3613) ([@SomeHats](https://github.com/SomeHats))
598
- - Automatic undo/redo [#3364](https://github.com/tldraw/tldraw/pull/3364) ([@SomeHats](https://github.com/SomeHats))
599
- - fix migration exports [#3586](https://github.com/tldraw/tldraw/pull/3586) ([@SomeHats](https://github.com/SomeHats))
600
-
601
- #### 🖥️ tldraw.com Changes
602
-
603
- - bookmark: fix up double request and rework extractor [#3856](https://github.com/tldraw/tldraw/pull/3856) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok))
604
- - Add desmos graph embed type [#3608](https://github.com/tldraw/tldraw/pull/3608) ([@not-first](https://github.com/not-first) [@steveruizok](https://github.com/steveruizok))
605
-
606
- #### 📖 Documentation changes
607
-
608
- - make sure everything marked @public gets documented [#3892](https://github.com/tldraw/tldraw/pull/3892) ([@SomeHats](https://github.com/SomeHats))
609
- - Bindings documentation [#3812](https://github.com/tldraw/tldraw/pull/3812) ([@SomeHats](https://github.com/SomeHats))
610
-
611
- #### 🏠 Internal
612
-
613
- - Update READMEs, add form link [#3741](https://github.com/tldraw/tldraw/pull/3741) ([@steveruizok](https://github.com/steveruizok))
614
- - Don't check api.json files into git [#3565](https://github.com/tldraw/tldraw/pull/3565) ([@SomeHats](https://github.com/SomeHats))
615
-
616
- #### Authors: 8
617
-
618
- - [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
619
- - alex ([@SomeHats](https://github.com/SomeHats))
620
- - David Sheldrick ([@ds300](https://github.com/ds300))
621
- - fakerr ([@not-first](https://github.com/not-first))
622
- - Lu Wilson ([@TodePond](https://github.com/TodePond))
623
- - Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
624
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
625
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
626
-
627
- ---
628
-
629
- # v2.1.0 (Tue Apr 23 2024)
630
-
631
- ### Release Notes
632
-
633
- #### Color tweaks (light and dark mode) ([#3486](https://github.com/tldraw/tldraw/pull/3486))
634
-
635
- - Adjusts colors
636
-
637
- #### New migrations again ([#3220](https://github.com/tldraw/tldraw/pull/3220))
638
-
639
- #### BREAKING CHANGES
640
-
641
- - The `Migrations` type is now called `LegacyMigrations`.
642
- - The serialized schema format (e.g. returned by `StoreSchema.serialize()` and `Store.getSnapshot()`) has changed. You don't need to do anything about it unless you were reading data directly from the schema for some reason. In which case it'd be best to avoid that in the future! We have no plans to change the schema format again (this time was traumatic enough) but you never know.
643
- - `compareRecordVersions` and the `RecordVersion` type have both disappeared. There is no replacement. These were public by mistake anyway, so hopefully nobody had been using it.
644
- - `compareSchemas` is gone. Comparing the schemas directly is no longer really possible since we introduced some fuzziness. The best thing to do now to check compatibility is to call `schema.getMigraitonsSince(prevSchema)` and it will return an error if the schemas are not compatible, an empty array if there are no migrations to apply since the prev schema, and a nonempty array otherwise.
645
-
646
- Generally speaking, the best way to check schema compatibility now is to call `store.schema.getMigrationsSince(persistedSchema)`. This will throw an error if there is no upgrade path from the `persistedSchema` to the current version.
647
-
648
- - `defineMigrations` has been deprecated and will be removed in a future release. For upgrade instructions see https://tldraw.dev/docs/persistence#Updating-legacy-shape-migrations-defineMigrations
649
-
650
- - `migrate` has been removed. Nobody should have been using this but if you were you'll need to find an alternative. For migrating tldraw data, you should stick to using `schema.migrateStoreSnapshot` and, if you are building a nuanced sync engine that supports some amount of backwards compatibility, also feel free to use `schema.migratePersistedRecord`.
651
- - the `Migration` type has changed. If you need the old one for some reason it has been renamed to `LegacyMigration`. It will be removed in a future release.
652
- - the `Migrations` type has been renamed to `LegacyMigrations` and will be removed in a future release.
653
- - the `SerializedSchema` type has been augmented. If you need the old version specifically you can use `SerializedSchemaV1`
654
-
655
- #### Stickies: release candidate ([#3249](https://github.com/tldraw/tldraw/pull/3249))
656
-
657
- - Improves sticky notes (see list)
658
-
659
- #### Add white ([#3321](https://github.com/tldraw/tldraw/pull/3321))
660
-
661
- - Adds secret white color.
662
-
663
- ---
664
-
665
- #### 📚 SDK Changes
666
-
667
- - Color tweaks (light and dark mode) [#3486](https://github.com/tldraw/tldraw/pull/3486) ([@steveruizok](https://github.com/steveruizok) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
668
- - New migrations again [#3220](https://github.com/tldraw/tldraw/pull/3220) ([@ds300](https://github.com/ds300) [@steveruizok](https://github.com/steveruizok))
669
- - Stickies: release candidate [#3249](https://github.com/tldraw/tldraw/pull/3249) ([@steveruizok](https://github.com/steveruizok) [@mimecuvalo](https://github.com/mimecuvalo) [@TodePond](https://github.com/TodePond) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
670
- - Add white migration [#3334](https://github.com/tldraw/tldraw/pull/3334) ([@steveruizok](https://github.com/steveruizok))
671
- - Add white [#3321](https://github.com/tldraw/tldraw/pull/3321) ([@steveruizok](https://github.com/steveruizok))
672
- - use native structuredClone on node, cloudflare workers, and in tests [#3166](https://github.com/tldraw/tldraw/pull/3166) ([@si14](https://github.com/si14))
673
-
674
- #### 🏠 Internal
675
-
676
- - Display none for culled shapes [#3291](https://github.com/tldraw/tldraw/pull/3291) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@steveruizok](https://github.com/steveruizok))
677
- - Remove dependabot config since it only controls version updates? [#3057](https://github.com/tldraw/tldraw/pull/3057) ([@MitjaBezensek](https://github.com/MitjaBezensek))
678
-
679
- #### 🧪 Tests
680
-
681
- - [fix] Routes check on e2e tests [#3022](https://github.com/tldraw/tldraw/pull/3022) ([@steveruizok](https://github.com/steveruizok))
682
-
683
- #### Authors: 7
684
-
685
- - [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
686
- - Dan Groshev ([@si14](https://github.com/si14))
687
- - David Sheldrick ([@ds300](https://github.com/ds300))
688
- - Lu Wilson ([@TodePond](https://github.com/TodePond))
689
- - Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
690
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
691
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
692
-
693
- ---
694
-
695
- # v2.0.0-beta.5 (Thu Feb 29 2024)
696
-
697
- ### Release Notes
698
-
699
- #### Setup papercuts ([#2987](https://github.com/tldraw/tldraw/pull/2987))
700
-
701
- - Add a brief release note for your PR here.
702
-
703
- #### fix structured clone reference in drawing ([#2945](https://github.com/tldraw/tldraw/pull/2945))
704
-
705
- - Fixes a reference to structuredClone that caused a crash on older browsers.
706
-
707
- ---
708
-
709
- #### 🐛 Bug Fix
710
-
711
- - Setup papercuts [#2987](https://github.com/tldraw/tldraw/pull/2987) ([@ds300](https://github.com/ds300))
712
- - Prevent iframe embedding for dotcom (except on tldraw.com) [#2947](https://github.com/tldraw/tldraw/pull/2947) ([@steveruizok](https://github.com/steveruizok))
713
- - fix structured clone reference in drawing [#2945](https://github.com/tldraw/tldraw/pull/2945) ([@steveruizok](https://github.com/steveruizok))
714
-
715
- #### 🔩 Dependency Updates
716
-
717
- - bump typescript / api-extractor [#2949](https://github.com/tldraw/tldraw/pull/2949) ([@steveruizok](https://github.com/steveruizok))
718
-
719
- #### Authors: 2
720
-
721
- - David Sheldrick ([@ds300](https://github.com/ds300))
722
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
723
-
724
- ---
725
-
726
- # v2.0.0-beta.4 (Wed Feb 21 2024)
727
-
728
- ### Release Notes
729
-
730
- #### Faster validations + record reference stability at the same time ([#2848](https://github.com/tldraw/tldraw/pull/2848))
731
-
732
- - Add a brief release note for your PR here.
733
-
734
- #### [Snapping 2/5] Fix line-handle mid-point snapping ([#2831](https://github.com/tldraw/tldraw/pull/2831))
735
-
736
- - Simplify the contents of `TLLineShape.props.handles`
737
-
738
- ---
739
-
740
- #### 💥 Breaking Change
741
-
742
- - Add line IDs & fractional indexes [#2890](https://github.com/tldraw/tldraw/pull/2890) ([@SomeHats](https://github.com/SomeHats))
743
- - [Snapping 2/5] Fix line-handle mid-point snapping [#2831](https://github.com/tldraw/tldraw/pull/2831) ([@SomeHats](https://github.com/SomeHats))
744
-
745
- #### 🚀 Enhancement
746
-
747
- - [handles] Line shape handles -> points [#2856](https://github.com/tldraw/tldraw/pull/2856) ([@steveruizok](https://github.com/steveruizok))
748
- - Lokalise: Translations update [#2830](https://github.com/tldraw/tldraw/pull/2830) ([@TodePond](https://github.com/TodePond) [@MitjaBezensek](https://github.com/MitjaBezensek))
749
-
750
- #### 🐛 Bug Fix
751
-
752
- - Faster validations + record reference stability at the same time [#2848](https://github.com/tldraw/tldraw/pull/2848) ([@ds300](https://github.com/ds300))
753
- - [Snapping 1/5] Validation & strict types for fractional indexes [#2827](https://github.com/tldraw/tldraw/pull/2827) ([@SomeHats](https://github.com/SomeHats))
754
-
755
- #### 🏠 Internal
756
-
757
- - Check tsconfig "references" arrays [#2891](https://github.com/tldraw/tldraw/pull/2891) ([@ds300](https://github.com/ds300))
758
- - dev: swap yarn test and test-dev for better dx [#2773](https://github.com/tldraw/tldraw/pull/2773) ([@mimecuvalo](https://github.com/mimecuvalo))
759
-
760
- #### Authors: 6
761
-
762
- - alex ([@SomeHats](https://github.com/SomeHats))
763
- - David Sheldrick ([@ds300](https://github.com/ds300))
764
- - Lu Wilson ([@TodePond](https://github.com/TodePond))
765
- - Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
766
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
767
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
768
-
769
- ---
770
-
771
- # v2.0.0-beta.3 (Tue Feb 13 2024)
772
-
773
- ### Release Notes
774
-
775
- #### i18n: add HR 🇭🇷 ([#2778](https://github.com/tldraw/tldraw/pull/2778))
776
-
777
- - i18n: add Croatian / Hrvatski.
778
-
779
- #### arrows: separate out handle behavior from labels ([#2621](https://github.com/tldraw/tldraw/pull/2621))
780
-
781
- - Arrow labels: provide more polish on label placement
782
-
783
- #### dev: add test-dev command for easier testing of packages ([#2627](https://github.com/tldraw/tldraw/pull/2627))
784
-
785
- - Adds easier testing command for individual packages.
786
-
787
- #### Improved duplication ([#2480](https://github.com/tldraw/tldraw/pull/2480))
788
-
789
- - Add a brief release note for your PR here.
790
-
791
- #### i18n: sort languages by name, not by locale code ([#2625](https://github.com/tldraw/tldraw/pull/2625))
792
-
793
- - Sorts the locale list by locale name, not code.
794
-
795
- #### arrows: add ability to change label placement ([#2557](https://github.com/tldraw/tldraw/pull/2557))
796
-
797
- - Adds ability to change label position on arrows.
798
-
799
- #### [hot take] Make dark mode colours pop more ([#2478](https://github.com/tldraw/tldraw/pull/2478))
800
-
801
- - Tweaked dark mode colour styles to make them pop more.
802
-
803
- #### [fix] disable vertical edge resizing for text on mobile ([#2456](https://github.com/tldraw/tldraw/pull/2456))
804
-
805
- - Add a brief release note for your PR here.
806
-
807
- #### [Minor] change Simplified Chinese label to Chinese ([#2434](https://github.com/tldraw/tldraw/pull/2434))
808
-
809
- - Changed the label for the Simplified Chinese language from `Chinese - Simplified` to `简体中文`, following the convention of other languages.
810
- - Updated the API and relevant documentation through build scripts.
811
-
812
- #### [improvement] account for coarse pointers / insets in edge scrolling ([#2401](https://github.com/tldraw/tldraw/pull/2401))
813
-
814
- - Add `instanceState.insets` to track which edges of the component are inset from the edges of the document body.
815
- - Improve behavior around edge scrolling
816
-
817
- ---
818
-
819
- #### 🚀 Enhancement
820
-
821
- - [dx] use Biome instead of Prettier, part 2 [#2731](https://github.com/tldraw/tldraw/pull/2731) ([@si14](https://github.com/si14))
822
- - [dx] use Biome instead of Prettier, part 1 [#2729](https://github.com/tldraw/tldraw/pull/2729) ([@si14](https://github.com/si14))
823
- - Improved duplication [#2480](https://github.com/tldraw/tldraw/pull/2480) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git) [@MitjaBezensek](https://github.com/MitjaBezensek) [@ds300](https://github.com/ds300) [@steveruizok](https://github.com/steveruizok))
824
- - arrows: add ability to change label placement [#2557](https://github.com/tldraw/tldraw/pull/2557) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok) [@SomeHats](https://github.com/SomeHats))
825
- - [improvement] account for coarse pointers / insets in edge scrolling [#2401](https://github.com/tldraw/tldraw/pull/2401) ([@steveruizok](https://github.com/steveruizok))
826
-
827
- #### 🐛 Bug Fix
828
-
829
- - i18n: add HR 🇭🇷 [#2778](https://github.com/tldraw/tldraw/pull/2778) ([@mimecuvalo](https://github.com/mimecuvalo))
830
- - arrows: separate out handle behavior from labels [#2621](https://github.com/tldraw/tldraw/pull/2621) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok))
831
- - i18n: sort languages by name, not by locale code [#2625](https://github.com/tldraw/tldraw/pull/2625) ([@mimecuvalo](https://github.com/mimecuvalo))
832
- - Make sure correct dark mode colours get used in exports [#2492](https://github.com/tldraw/tldraw/pull/2492) ([@SomeHats](https://github.com/SomeHats) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
833
- - [hot take] Make dark mode colours pop more [#2478](https://github.com/tldraw/tldraw/pull/2478) ([@TodePond](https://github.com/TodePond) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
834
- - [fix] disable vertical edge resizing for text on mobile [#2456](https://github.com/tldraw/tldraw/pull/2456) ([@mimecuvalo](https://github.com/mimecuvalo))
835
- - [Minor] change Simplified Chinese label to Chinese [#2434](https://github.com/tldraw/tldraw/pull/2434) ([@peilingjiang](https://github.com/peilingjiang))
836
-
837
- #### 🏠 Internal
838
-
839
- - Unbiome [#2776](https://github.com/tldraw/tldraw/pull/2776) ([@si14](https://github.com/si14))
840
- - Update the project to Node 20 [#2691](https://github.com/tldraw/tldraw/pull/2691) ([@si14](https://github.com/si14))
841
- - make CI check for yarn install warnings and fix the peer deps ones we have [#2683](https://github.com/tldraw/tldraw/pull/2683) ([@si14](https://github.com/si14))
842
- - dev: add test-dev command for easier testing of packages [#2627](https://github.com/tldraw/tldraw/pull/2627) ([@mimecuvalo](https://github.com/mimecuvalo))
843
- - Add docs [#2470](https://github.com/tldraw/tldraw/pull/2470) ([@steveruizok](https://github.com/steveruizok))
844
-
845
- #### 🔩 Dependency Updates
846
-
847
- - Bump Yarn to 4.0.2 and add version constraints [#2481](https://github.com/tldraw/tldraw/pull/2481) ([@si14](https://github.com/si14))
848
-
849
- #### Authors: 10
850
-
851
- - [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
852
- - alex ([@SomeHats](https://github.com/SomeHats))
853
- - Dan Groshev ([@si14](https://github.com/si14))
854
- - David Sheldrick ([@ds300](https://github.com/ds300))
855
- - Lu Wilson ([@TodePond](https://github.com/TodePond))
856
- - Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
857
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
858
- - Peiling Jiang ([@peilingjiang](https://github.com/peilingjiang))
859
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
860
- - Taha ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
861
-
862
- ---
863
-
864
- # v2.0.0-beta.2 (Wed Jan 10 2024)
865
-
866
- ### Release Notes
867
-
868
- #### Fix validation when pasting images. ([#2436](https://github.com/tldraw/tldraw/pull/2436))
869
-
870
- - Fixes url validations.
871
-
872
- #### Add url validation ([#2428](https://github.com/tldraw/tldraw/pull/2428))
873
-
874
- - Add validation to urls.
875
-
876
- #### [tech debt] Primitives renaming party / cleanup ([#2396](https://github.com/tldraw/tldraw/pull/2396))
877
-
878
- - renames Vec2d to Vec
879
- - renames Vec2dModel to VecModel
880
- - renames Box2d to Box
881
- - renames Box2dModel to BoxModel
882
- - renames Matrix2d to Mat
883
- - renames Matrix2dModel to MatModel
884
- - removes unused primitive helpers
885
-
886
- #### Fix trademark links ([#2380](https://github.com/tldraw/tldraw/pull/2380))
887
-
888
- - Fixes broken links in a number of docs files.
889
-
890
- ---
891
-
892
- #### 💥 Breaking Change
893
-
894
- - [tech debt] Primitives renaming party / cleanup [#2396](https://github.com/tldraw/tldraw/pull/2396) ([@steveruizok](https://github.com/steveruizok))
895
-
896
- #### 🐛 Bug Fix
897
-
898
- - Fix validation when pasting images. [#2436](https://github.com/tldraw/tldraw/pull/2436) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@SomeHats](https://github.com/SomeHats))
899
- - Add url validation [#2428](https://github.com/tldraw/tldraw/pull/2428) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@SomeHats](https://github.com/SomeHats))
900
-
901
- #### 📝 Documentation
902
-
903
- - Fix trademark links [#2380](https://github.com/tldraw/tldraw/pull/2380) ([@nonparibus](https://github.com/nonparibus))
904
- - Another typo fix. [#2366](https://github.com/tldraw/tldraw/pull/2366) ([@steveruizok](https://github.com/steveruizok))
905
-
906
- #### Authors: 4
907
-
908
- - alex ([@SomeHats](https://github.com/SomeHats))
909
- - David @ HASH ([@nonparibus](https://github.com/nonparibus))
910
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
911
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
912
-
913
- ---
914
-
915
- # v2.0.0-beta.1 (Wed Dec 20 2023)
916
-
917
- ### Release Notes
918
-
919
- #### Lokalise: Translations update ([#2342](https://github.com/tldraw/tldraw/pull/2342))
920
-
921
- Added Czech translations.
922
- Updated translations for German, Korean, Russian, Ukrainian, Traditional Chinese.
923
-
924
- ---
925
-
926
- #### 💥 Breaking Change
927
-
928
- - bump to beta [#2364](https://github.com/tldraw/tldraw/pull/2364) ([@steveruizok](https://github.com/steveruizok))
929
- - Change licenses to tldraw [#2167](https://github.com/tldraw/tldraw/pull/2167) ([@steveruizok](https://github.com/steveruizok))
930
-
931
- #### 🐛 Bug Fix
932
-
933
- - Lokalise: Translations update [#2342](https://github.com/tldraw/tldraw/pull/2342) ([@TodePond](https://github.com/TodePond))
934
-
935
- #### Authors: 2
936
-
937
- - Lu Wilson ([@TodePond](https://github.com/TodePond))
938
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
939
-
940
- ---
941
-
942
- # v2.0.0-alpha.19 (Tue Dec 12 2023)
943
-
944
- ### Release Notes
945
-
946
- #### Fix migrations. ([#2302](https://github.com/tldraw/tldraw/pull/2302))
947
-
948
- - Fix migrations of `instance_page_state`.
949
-
950
- #### [improvements] arrows x enclosing shapes x precision. ([#2265](https://github.com/tldraw/tldraw/pull/2265))
951
-
952
- - Improves the logic about when to draw "precise" arrows between the center of bound shapes.
953
-
954
- #### Add prettier caching ([#2212](https://github.com/tldraw/tldraw/pull/2212))
955
-
956
- - Speed up formatting of files via `yarn format`.
957
-
958
- ---
959
-
960
- #### 💥 Breaking Change
961
-
962
- - No impure getters pt 1 [#2189](https://github.com/tldraw/tldraw/pull/2189) ([@steveruizok](https://github.com/steveruizok) [@ds300](https://github.com/ds300))
963
-
964
- #### 🚀 Enhancement
965
-
966
- - [improvements] arrows x enclosing shapes x precision. [#2265](https://github.com/tldraw/tldraw/pull/2265) ([@steveruizok](https://github.com/steveruizok))
967
-
968
- #### 🐛 Bug Fix
969
-
970
- - Fix migrations. [#2302](https://github.com/tldraw/tldraw/pull/2302) ([@MitjaBezensek](https://github.com/MitjaBezensek))
971
-
972
- #### 🏠 Internal
973
-
974
- - Add prettier caching [#2212](https://github.com/tldraw/tldraw/pull/2212) ([@MitjaBezensek](https://github.com/MitjaBezensek))
975
-
976
- #### Authors: 3
977
-
978
- - David Sheldrick ([@ds300](https://github.com/ds300))
979
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
980
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
981
-
982
- ---
983
-
984
- # v2.0.0-alpha.18 (Fri Nov 10 2023)
985
-
986
- ### Release Notes
987
-
988
- #### [feature] multi-scribbles ([#2125](https://github.com/tldraw/tldraw/pull/2125))
989
-
990
- - [feature] multi scribbles
991
-
992
- ---
993
-
994
- #### 🚀 Enhancement
995
-
996
- - [feature] multi-scribbles [#2125](https://github.com/tldraw/tldraw/pull/2125) ([@steveruizok](https://github.com/steveruizok))
997
-
998
- #### 🏠 Internal
999
-
1000
- - Revert "bump prerelease from alpha to beta" [#2192](https://github.com/tldraw/tldraw/pull/2192) ([@ds300](https://github.com/ds300))
1001
- - bump prerelease from alpha to beta [#2148](https://github.com/tldraw/tldraw/pull/2148) ([@ds300](https://github.com/ds300))
1002
-
1003
- #### Authors: 2
1004
-
1005
- - David Sheldrick ([@ds300](https://github.com/ds300))
1006
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
1007
-
1008
- ---
1009
-
1010
- # v2.0.0-alpha.17 (Tue Oct 17 2023)
1011
-
1012
- #### 🚀 Enhancement
1013
-
1014
- - Same first page id for all editors [#2071](https://github.com/tldraw/tldraw/pull/2071) ([@steveruizok](https://github.com/steveruizok))
1015
-
1016
- #### 🔩 Dependency Updates
1017
-
1018
- - bump nanoid [#2078](https://github.com/tldraw/tldraw/pull/2078) ([@ds300](https://github.com/ds300))
1019
-
1020
- #### Authors: 2
1021
-
1022
- - David Sheldrick ([@ds300](https://github.com/ds300))
1023
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
1024
-
1025
- ---
1026
-
1027
- # v2.0.0-alpha.16 (Wed Oct 11 2023)
1028
-
1029
- #### 🚀 Enhancement
1030
-
1031
- - Remove dot com ui styles [1/2] [#2039](https://github.com/tldraw/tldraw/pull/2039) ([@steveruizok](https://github.com/steveruizok))
1032
- - prevent hover indicator from showing when pointer isn't over the canvas [#2023](https://github.com/tldraw/tldraw/pull/2023) ([@SomeHats](https://github.com/SomeHats))
1033
-
1034
- #### 🐛 Bug Fix
1035
-
1036
- - [fix] Page state migration [#2040](https://github.com/tldraw/tldraw/pull/2040) ([@steveruizok](https://github.com/steveruizok))
1037
- - [fix] migrations for page state [#2038](https://github.com/tldraw/tldraw/pull/2038) ([@steveruizok](https://github.com/steveruizok))
1038
-
1039
- #### 🏠 Internal
1040
-
1041
- - [fix] broken docs link [#2062](https://github.com/tldraw/tldraw/pull/2062) ([@steveruizok](https://github.com/steveruizok))
1042
- - Remove fixup script [#2041](https://github.com/tldraw/tldraw/pull/2041) ([@steveruizok](https://github.com/steveruizok))
1043
- - Publish api.json [#2034](https://github.com/tldraw/tldraw/pull/2034) ([@steveruizok](https://github.com/steveruizok))
1044
-
1045
- #### Authors: 2
1046
-
1047
- - alex ([@SomeHats](https://github.com/SomeHats))
1048
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
1049
-
1050
- ---
1051
-
1052
- # v2.0.0-alpha.15 (Fri Oct 06 2023)
1053
-
1054
- ### Release Notes
1055
-
1056
- #### Migrate snapshot ([#1843](https://github.com/tldraw/tldraw/pull/1843))
1057
-
1058
- - [editor] add `Store.migrateSnapshot`
1059
-
1060
- #### [fix] embeds switching / tldraw embed ([#1792](https://github.com/tldraw/tldraw/pull/1792))
1061
-
1062
- - [fix] tldraw embeds
1063
-
1064
- #### Editor commands API / effects ([#1778](https://github.com/tldraw/tldraw/pull/1778))
1065
-
1066
- - tbd
1067
-
1068
- #### [feature] Add val town embed ([#1777](https://github.com/tldraw/tldraw/pull/1777))
1069
-
1070
- - (feature) val town
1071
-
1072
- #### `ShapeUtil.getGeometry`, selection rewrite ([#1751](https://github.com/tldraw/tldraw/pull/1751))
1073
-
1074
- - [editor] Remove `ShapeUtil.getBounds`, `ShapeUtil.getOutline`, `ShapeUtil.hitTestPoint`, `ShapeUtil.hitTestLineSegment`
1075
- - [editor] Add `ShapeUtil.getGeometry`
1076
- - [editor] Add `Editor.getShapeGeometry`
1077
-
1078
- #### [fix] dark mode ([#1754](https://github.com/tldraw/tldraw/pull/1754))
1079
-
1080
- - [fix] dark mode colors not updating
1081
-
1082
- #### Remove helpers / extraneous API methods. ([#1745](https://github.com/tldraw/tldraw/pull/1745))
1083
-
1084
- - [tldraw] rename `useReadonly` to `useReadOnly`
1085
- - [editor] remove `Editor.isDarkMode`
1086
- - [editor] remove `Editor.isChangingStyle`
1087
- - [editor] remove `Editor.isCoarsePointer`
1088
- - [editor] remove `Editor.isDarkMode`
1089
- - [editor] remove `Editor.isFocused`
1090
- - [editor] remove `Editor.isGridMode`
1091
- - [editor] remove `Editor.isPenMode`
1092
- - [editor] remove `Editor.isReadOnly`
1093
- - [editor] remove `Editor.isSnapMode`
1094
- - [editor] remove `Editor.isToolLocked`
1095
- - [editor] remove `Editor.locale`
1096
- - [editor] rename `Editor.pageState` to `Editor.currentPageState`
1097
- - [editor] add `Editor.pageStates`
1098
- - [editor] add `Editor.setErasingIds`
1099
- - [editor] add `Editor.setEditingId`
1100
- - [editor] add several new component overrides
1101
-
1102
- #### tldraw zero - package shuffle ([#1710](https://github.com/tldraw/tldraw/pull/1710))
1103
-
1104
- - [@tldraw/editor] lots, wip
1105
- - [@tldraw/ui] gone, merged to tldraw/tldraw
1106
- - [@tldraw/polyfills] gone, merged to tldraw/editor
1107
- - [@tldraw/primitives] gone, merged to tldraw/editor / tldraw/tldraw
1108
- - [@tldraw/indices] gone, merged to tldraw/editor
1109
- - [@tldraw/file-format] gone, merged to tldraw/tldraw
1110
-
1111
- #### Add cloud shape ([#1708](https://github.com/tldraw/tldraw/pull/1708))
1112
-
1113
- - Adds a cloud shape.
1114
-
1115
- ---
1116
-
1117
- #### 💥 Breaking Change
1118
-
1119
- - Revert "Editor commands API / effects" [#1783](https://github.com/tldraw/tldraw/pull/1783) ([@steveruizok](https://github.com/steveruizok))
1120
- - Editor commands API / effects [#1778](https://github.com/tldraw/tldraw/pull/1778) ([@steveruizok](https://github.com/steveruizok))
1121
- - `ShapeUtil.getGeometry`, selection rewrite [#1751](https://github.com/tldraw/tldraw/pull/1751) ([@steveruizok](https://github.com/steveruizok))
1122
- - More cleanup, focus bug fixes [#1749](https://github.com/tldraw/tldraw/pull/1749) ([@steveruizok](https://github.com/steveruizok))
1123
- - Remove helpers / extraneous API methods. [#1745](https://github.com/tldraw/tldraw/pull/1745) ([@steveruizok](https://github.com/steveruizok))
1124
- - tldraw zero - package shuffle [#1710](https://github.com/tldraw/tldraw/pull/1710) ([@steveruizok](https://github.com/steveruizok) [@SomeHats](https://github.com/SomeHats))
1125
-
1126
- #### 🚀 Enhancement
1127
-
1128
- - Fix arrow handle snapping, snapping to text labels, selection of text labels [#1910](https://github.com/tldraw/tldraw/pull/1910) ([@steveruizok](https://github.com/steveruizok))
1129
- - Migrate snapshot [#1843](https://github.com/tldraw/tldraw/pull/1843) ([@steveruizok](https://github.com/steveruizok))
1130
- - [feature] Add val town embed [#1777](https://github.com/tldraw/tldraw/pull/1777) ([@steveruizok](https://github.com/steveruizok))
1131
- - Add cloud shape [#1708](https://github.com/tldraw/tldraw/pull/1708) ([@ds300](https://github.com/ds300))
1132
-
1133
- #### 🐛 Bug Fix
1134
-
1135
- - [fix] embeds switching / tldraw embed [#1792](https://github.com/tldraw/tldraw/pull/1792) ([@steveruizok](https://github.com/steveruizok))
1136
- - [fix] dark mode [#1754](https://github.com/tldraw/tldraw/pull/1754) ([@steveruizok](https://github.com/steveruizok))
1137
-
1138
- #### Authors: 3
1139
-
1140
- - alex ([@SomeHats](https://github.com/SomeHats))
1141
- - David Sheldrick ([@ds300](https://github.com/ds300))
1142
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
1143
-
1144
- ---
1145
-
1146
- # v2.0.0-alpha.14 (Tue Jul 04 2023)
1147
-
1148
- ### Release Notes
1149
-
1150
- #### [feature] add `meta` property to records ([#1627](https://github.com/tldraw/tldraw/pull/1627))
1151
-
1152
- - todo
1153
-
1154
- ---
1155
-
1156
- #### 🚀 Enhancement
1157
-
1158
- - [feature] add `meta` property to records [#1627](https://github.com/tldraw/tldraw/pull/1627) ([@steveruizok](https://github.com/steveruizok))
1159
-
1160
- #### Authors: 1
1161
-
1162
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
1163
-
1164
- ---
1165
-
1166
- # v2.0.0-alpha.13 (Wed Jun 28 2023)
1167
-
1168
- ### Release Notes
1169
-
1170
- #### [improvement] store snapshot types ([#1657](https://github.com/tldraw/tldraw/pull/1657))
1171
-
1172
- - [dev] Rename `StoreSnapshot` to `SerializedStore`
1173
- - [dev] Create new `StoreSnapshot` as type related to `getSnapshot`/`loadSnapshot`
1174
-
1175
- #### Styles API docs ([#1641](https://github.com/tldraw/tldraw/pull/1641))
1176
-
1177
- --
1178
-
1179
- #### Styles API follow-ups ([#1636](https://github.com/tldraw/tldraw/pull/1636))
1180
-
1181
- --
1182
-
1183
- #### `ShapeUtil` refactor, `Editor` cleanup ([#1611](https://github.com/tldraw/tldraw/pull/1611))
1184
-
1185
- - [editor] renames `defaultProps` to `getDefaultProps`
1186
- - [editor] removes `outline`, `outlineSegments`, `handles`, `bounds`
1187
- - [editor] renames `renderBackground` to `backgroundComponent`
1188
-
1189
- #### Styles API ([#1580](https://github.com/tldraw/tldraw/pull/1580))
1190
-
1191
- -
1192
-
1193
- #### (1/2) Timeout collaborator cursors ([#1525](https://github.com/tldraw/tldraw/pull/1525))
1194
-
1195
- - Brought back cursor timeouts. Collaborator cursors now disappear after 3 seconds of inactivity.
1196
-
1197
- #### (1/2) Cursor Chat - Presence ([#1487](https://github.com/tldraw/tldraw/pull/1487))
1198
-
1199
- - [dev] Added support for cursor chat presence.
1200
-
1201
- #### [improvement] Embed shape cleanup ([#1569](https://github.com/tldraw/tldraw/pull/1569))
1202
-
1203
- - [editor] Remove unused props for `TLEditorShape`
1204
- - [editor] Adds `canUnmount` property to embed definitions
1205
-
1206
- #### mini `defineShape` API ([#1563](https://github.com/tldraw/tldraw/pull/1563))
1207
-
1208
- [dev-facing, notes to come]
1209
-
1210
- #### hoist opacity out of props ([#1526](https://github.com/tldraw/tldraw/pull/1526))
1211
-
1212
- [internal only for now]
1213
-
1214
- #### [feature] add vertical align to note shape ([#1539](https://github.com/tldraw/tldraw/pull/1539))
1215
-
1216
- - Adds vertical align prop to note shapes
1217
-
1218
- #### tlschema cleanup ([#1509](https://github.com/tldraw/tldraw/pull/1509))
1219
-
1220
- - [editor] Remove `app.createShapeId`
1221
- - [tlschema] Cleans up exports
1222
-
1223
- #### Rename tlstore to store ([#1507](https://github.com/tldraw/tldraw/pull/1507))
1224
-
1225
- - Replace @tldraw/tlstore with @tldraw/store
1226
-
1227
- #### Rename tlvalidate to validate ([#1508](https://github.com/tldraw/tldraw/pull/1508))
1228
-
1229
- - Rename tlvalidate to validate
1230
-
1231
- #### Cleanup @tldraw/ui types / exports ([#1504](https://github.com/tldraw/tldraw/pull/1504))
1232
-
1233
- - [editor] clean up / unify types
1234
-
1235
- #### [1/3] initial highlighter shape/tool ([#1401](https://github.com/tldraw/tldraw/pull/1401))
1236
-
1237
- [internal only change layout ground work for highlighter]
1238
-
1239
- #### [tiny] add isPageId ([#1482](https://github.com/tldraw/tldraw/pull/1482))
1240
-
1241
- - [tlschema] Add `isPageId`
1242
-
1243
- #### [refactor] update record names ([#1473](https://github.com/tldraw/tldraw/pull/1473))
1244
-
1245
- - [editor] rename record types
1246
-
1247
- #### [chore] refactor user preferences ([#1435](https://github.com/tldraw/tldraw/pull/1435))
1248
-
1249
- - Add a brief release note for your PR here.
1250
-
1251
- #### Add migration for horizontal alignment ([#1443](https://github.com/tldraw/tldraw/pull/1443))
1252
-
1253
- - Add support for legacy alignment options.
1254
-
1255
- #### Stricter ID types ([#1439](https://github.com/tldraw/tldraw/pull/1439))
1256
-
1257
- [internal only, covered by #1432 changelog]
1258
-
1259
- #### [refactor] restore createTLSchema ([#1444](https://github.com/tldraw/tldraw/pull/1444))
1260
-
1261
- - [editor] Simplifies custom shape definition
1262
- - [tldraw] Updates props for <TldrawEditor> component to require a `TldrawEditorConfig`.
1263
-
1264
- #### [refactor] remove `createTLSchema` ([#1440](https://github.com/tldraw/tldraw/pull/1440))
1265
-
1266
- - [tlschema] Removes `createTLSchema` in favor of `TldrawEditorConfig`
1267
-
1268
- #### [refactor] Remove `TLShapeDef`, `getShapeUtilByType`. ([#1432](https://github.com/tldraw/tldraw/pull/1432))
1269
-
1270
- - [tlschema] Update props of `createTLSchema`
1271
- - [editor] Update props of `TldrawEditorConfig`
1272
- - [editor] Remove `App.getShapeUtilByType`
1273
- - [editor] Update `App.getShapeUtil` to take a type rather than a shape
1274
-
1275
- #### [refactor] record migrations ([#1430](https://github.com/tldraw/tldraw/pull/1430))
1276
-
1277
- - [tlschema] Improve `defineMigrations`
1278
- - [editor] Simplify migration definitions
1279
-
1280
- #### [feature] add laser pointer ([#1412](https://github.com/tldraw/tldraw/pull/1412))
1281
-
1282
- - Adds the laser pointer tool.
1283
-
1284
- #### Vertical text alignment for geo shapes ([#1414](https://github.com/tldraw/tldraw/pull/1414))
1285
-
1286
- - This adds vertical text alignment property to geo shapes.
1287
-
1288
- #### [fix] Don't synchronize isReadOnly ([#1396](https://github.com/tldraw/tldraw/pull/1396))
1289
-
1290
- - Removes the isReadOnly value from the `user_document_settings` record type.
1291
-
1292
- #### avoid lazy race conditions ([#1364](https://github.com/tldraw/tldraw/pull/1364))
1293
-
1294
- [internal only]
1295
-
1296
- #### [perf] make ensureStoreIsUsable scale better ([#1362](https://github.com/tldraw/tldraw/pull/1362))
1297
-
1298
- - Add a brief release note for your PR here.
1299
-
1300
- #### [chore] Bump nanoid ([#1349](https://github.com/tldraw/tldraw/pull/1349))
1301
-
1302
- - Remove unused userId and instanceId props from AppOptions
1303
-
1304
- #### Rework the assets package for strategy-specific imports ([#1341](https://github.com/tldraw/tldraw/pull/1341))
1305
-
1306
- - [dev] If you're using the `@tldraw/assets` package, you need to update your code to `import { getAssetUrlsByImport } from '@tldraw/assets/imports'` instead of `import { getBundlerAssetUrls } from '@tldraw/assets`
1307
-
1308
- ---
1309
-
1310
- #### 💥 Breaking Change
1311
-
1312
- - [improvement] store snapshot types [#1657](https://github.com/tldraw/tldraw/pull/1657) ([@steveruizok](https://github.com/steveruizok))
1313
- - `ShapeUtil` refactor, `Editor` cleanup [#1611](https://github.com/tldraw/tldraw/pull/1611) ([@steveruizok](https://github.com/steveruizok))
1314
- - Styles API [#1580](https://github.com/tldraw/tldraw/pull/1580) ([@SomeHats](https://github.com/SomeHats) [@steveruizok](https://github.com/steveruizok))
1315
- - mini `defineShape` API [#1563](https://github.com/tldraw/tldraw/pull/1563) ([@SomeHats](https://github.com/SomeHats))
1316
- - hoist opacity out of props [#1526](https://github.com/tldraw/tldraw/pull/1526) ([@SomeHats](https://github.com/SomeHats))
1317
- - Independent instance state persistence [#1493](https://github.com/tldraw/tldraw/pull/1493) ([@ds300](https://github.com/ds300))
1318
- - tlschema cleanup [#1509](https://github.com/tldraw/tldraw/pull/1509) ([@steveruizok](https://github.com/steveruizok))
1319
- - Rename tlstore to store [#1507](https://github.com/tldraw/tldraw/pull/1507) ([@steveruizok](https://github.com/steveruizok))
1320
- - Rename tlvalidate to validate [#1508](https://github.com/tldraw/tldraw/pull/1508) ([@steveruizok](https://github.com/steveruizok))
1321
- - Cleanup @tldraw/ui types / exports [#1504](https://github.com/tldraw/tldraw/pull/1504) ([@steveruizok](https://github.com/steveruizok))
1322
- - Add support for project names [#1340](https://github.com/tldraw/tldraw/pull/1340) ([@TodePond](https://github.com/TodePond) [@steveruizok](https://github.com/steveruizok))
1323
- - [refactor] User-facing APIs [#1478](https://github.com/tldraw/tldraw/pull/1478) ([@steveruizok](https://github.com/steveruizok))
1324
- - [refactor] update record names [#1473](https://github.com/tldraw/tldraw/pull/1473) ([@steveruizok](https://github.com/steveruizok))
1325
- - [chore] refactor user preferences [#1435](https://github.com/tldraw/tldraw/pull/1435) ([@ds300](https://github.com/ds300))
1326
- - [refactor] restore createTLSchema [#1444](https://github.com/tldraw/tldraw/pull/1444) ([@steveruizok](https://github.com/steveruizok))
1327
- - [refactor] remove `createTLSchema` [#1440](https://github.com/tldraw/tldraw/pull/1440) ([@steveruizok](https://github.com/steveruizok))
1328
- - [refactor] Remove `TLShapeDef`, `getShapeUtilByType`. [#1432](https://github.com/tldraw/tldraw/pull/1432) ([@steveruizok](https://github.com/steveruizok) [@SomeHats](https://github.com/SomeHats))
1329
- - [refactor] record migrations [#1430](https://github.com/tldraw/tldraw/pull/1430) ([@steveruizok](https://github.com/steveruizok))
1330
- - [fix] Don't synchronize isReadOnly [#1396](https://github.com/tldraw/tldraw/pull/1396) ([@ds300](https://github.com/ds300))
1331
- - [chore] Bump nanoid [#1349](https://github.com/tldraw/tldraw/pull/1349) ([@ds300](https://github.com/ds300))
1332
- - Rework the assets package for strategy-specific imports [#1341](https://github.com/tldraw/tldraw/pull/1341) ([@SomeHats](https://github.com/SomeHats))
1333
-
1334
- #### 🚀 Enhancement
1335
-
1336
- - Styles API follow-ups [#1636](https://github.com/tldraw/tldraw/pull/1636) ([@SomeHats](https://github.com/SomeHats) [@steveruizok](https://github.com/steveruizok))
1337
- - [fix] yjs presence [#1603](https://github.com/tldraw/tldraw/pull/1603) ([@steveruizok](https://github.com/steveruizok))
1338
- - (1/2) Timeout collaborator cursors [#1525](https://github.com/tldraw/tldraw/pull/1525) ([@TodePond](https://github.com/TodePond) [@steveruizok](https://github.com/steveruizok))
1339
- - (1/2) Cursor Chat - Presence [#1487](https://github.com/tldraw/tldraw/pull/1487) ([@TodePond](https://github.com/TodePond) [@steveruizok](https://github.com/steveruizok))
1340
- - [feature] add vertical align to note shape [#1539](https://github.com/tldraw/tldraw/pull/1539) ([@steveruizok](https://github.com/steveruizok))
1341
- - [1/3] initial highlighter shape/tool [#1401](https://github.com/tldraw/tldraw/pull/1401) ([@SomeHats](https://github.com/SomeHats))
1342
- - [feature] add laser pointer [#1412](https://github.com/tldraw/tldraw/pull/1412) ([@steveruizok](https://github.com/steveruizok))
1343
- - Vertical text alignment for geo shapes [#1414](https://github.com/tldraw/tldraw/pull/1414) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@steveruizok](https://github.com/steveruizok))
1344
-
1345
- #### 🐛 Bug Fix
1346
-
1347
- - update exports for user presence [#1583](https://github.com/tldraw/tldraw/pull/1583) ([@steveruizok](https://github.com/steveruizok))
1348
- - [improvement] Embed shape cleanup [#1569](https://github.com/tldraw/tldraw/pull/1569) ([@steveruizok](https://github.com/steveruizok))
1349
- - Add migration for horizontal alignment [#1443](https://github.com/tldraw/tldraw/pull/1443) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@steveruizok](https://github.com/steveruizok))
1350
- - Stricter ID types [#1439](https://github.com/tldraw/tldraw/pull/1439) ([@SomeHats](https://github.com/SomeHats) [@steveruizok](https://github.com/steveruizok))
1351
- - [perf] make ensureStoreIsUsable scale better [#1362](https://github.com/tldraw/tldraw/pull/1362) ([@ds300](https://github.com/ds300))
1352
- - [chore] move schema construction to tlschema package [#1334](https://github.com/tldraw/tldraw/pull/1334) ([@ds300](https://github.com/ds300))
1353
- - [feature] `check-box` geo shape [#1330](https://github.com/tldraw/tldraw/pull/1330) ([@steveruizok](https://github.com/steveruizok))
1354
- - readmes [#1195](https://github.com/tldraw/tldraw/pull/1195) ([@steveruizok](https://github.com/steveruizok))
1355
- - [chore] update lazyrepo [#1211](https://github.com/tldraw/tldraw/pull/1211) ([@ds300](https://github.com/ds300))
1356
- - [fix] pick a better default language [#1201](https://github.com/tldraw/tldraw/pull/1201) ([@steveruizok](https://github.com/steveruizok) [@TodePond](https://github.com/TodePond))
1357
- - derived presence state [#1204](https://github.com/tldraw/tldraw/pull/1204) ([@ds300](https://github.com/ds300))
1358
- - [lite] upgrade lazyrepo [#1198](https://github.com/tldraw/tldraw/pull/1198) ([@ds300](https://github.com/ds300))
1359
- - transfer-out: transfer out [#1195](https://github.com/tldraw/tldraw/pull/1195) ([@SomeHats](https://github.com/SomeHats))
1360
-
1361
- #### ⚠️ Pushed to `main`
1362
-
1363
- - update lazyrepo ([@ds300](https://github.com/ds300))
1364
-
1365
- #### 🏠 Internal
1366
-
1367
- - restore styles sets exports [#1512](https://github.com/tldraw/tldraw/pull/1512) ([@steveruizok](https://github.com/steveruizok))
1368
- - [tiny] add isPageId [#1482](https://github.com/tldraw/tldraw/pull/1482) ([@steveruizok](https://github.com/steveruizok))
1369
- - avoid lazy race conditions [#1364](https://github.com/tldraw/tldraw/pull/1364) ([@SomeHats](https://github.com/SomeHats))
1370
-
1371
- #### 📝 Documentation
1372
-
1373
- - Styles API docs [#1641](https://github.com/tldraw/tldraw/pull/1641) ([@SomeHats](https://github.com/SomeHats) [@steveruizok](https://github.com/steveruizok))
1374
- - TLSchema readme [#1506](https://github.com/tldraw/tldraw/pull/1506) ([@steveruizok](https://github.com/steveruizok))
1375
-
1376
- #### 🔩 Dependency Updates
1377
-
1378
- - Incorporate signia as @tldraw/state [#1620](https://github.com/tldraw/tldraw/pull/1620) ([@steveruizok](https://github.com/steveruizok) [@ds300](https://github.com/ds300))
1379
-
1380
- #### Authors: 5
1381
-
1382
- - alex ([@SomeHats](https://github.com/SomeHats))
1383
- - David Sheldrick ([@ds300](https://github.com/ds300))
1384
- - Lu Wilson ([@TodePond](https://github.com/TodePond))
1385
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
1386
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
1387
-
1388
- ---
1389
-
1390
- # v2.0.0-alpha.12 (Mon Apr 03 2023)
1391
-
1392
- #### 🐛 Bug Fix
1393
-
1394
- - add vietnamese to language menu, and strings that were missing from lokalise [#1578](https://github.com/tldraw/tldraw-lite/pull/1578) ([@TodePond](https://github.com/TodePond))
1395
- - add community translations [#1559](https://github.com/tldraw/tldraw-lite/pull/1559) ([@steveruizok](https://github.com/steveruizok) [@TodePond](https://github.com/TodePond))
1396
- - Make sure all types and build stuff get run in CI [#1548](https://github.com/tldraw/tldraw-lite/pull/1548) ([@SomeHats](https://github.com/SomeHats))
1397
- - make sure error annotations can't throw [#1550](https://github.com/tldraw/tldraw-lite/pull/1550) ([@SomeHats](https://github.com/SomeHats))
1398
- - Use the users preferred language on startup [#1507](https://github.com/tldraw/tldraw-lite/pull/1507) ([@orangemug](https://github.com/orangemug) [@steveruizok](https://github.com/steveruizok))
1399
- - add pre-commit api report generation [#1517](https://github.com/tldraw/tldraw-lite/pull/1517) ([@SomeHats](https://github.com/SomeHats))
1400
- - [chore] restore api extractor [#1500](https://github.com/tldraw/tldraw-lite/pull/1500) ([@steveruizok](https://github.com/steveruizok))
1401
- - Asset loading overhaul [#1457](https://github.com/tldraw/tldraw-lite/pull/1457) ([@SomeHats](https://github.com/SomeHats))
1402
- - [improvement] docs / api cleanup [#1491](https://github.com/tldraw/tldraw-lite/pull/1491) ([@steveruizok](https://github.com/steveruizok))
1403
- - David/publish good [#1488](https://github.com/tldraw/tldraw-lite/pull/1488) ([@ds300](https://github.com/ds300))
1404
- - [chore] alpha 10 [#1486](https://github.com/tldraw/tldraw-lite/pull/1486) ([@ds300](https://github.com/ds300))
1405
- - [chore] package build improvements [#1484](https://github.com/tldraw/tldraw-lite/pull/1484) ([@ds300](https://github.com/ds300))
1406
- - [chore] bump for alpha 8 [#1485](https://github.com/tldraw/tldraw-lite/pull/1485) ([@steveruizok](https://github.com/steveruizok))
1407
- - stop using broken-af turbo for publishing [#1476](https://github.com/tldraw/tldraw-lite/pull/1476) ([@ds300](https://github.com/ds300))
1408
- - [chore] add canary release script [#1423](https://github.com/tldraw/tldraw-lite/pull/1423) ([@ds300](https://github.com/ds300) [@steveruizok](https://github.com/steveruizok))
1409
- - Fix some circular reference issues. [#1433](https://github.com/tldraw/tldraw-lite/pull/1433) ([@MitjaBezensek](https://github.com/MitjaBezensek))
1410
- - [chore] upgrade yarn [#1430](https://github.com/tldraw/tldraw-lite/pull/1430) ([@ds300](https://github.com/ds300))
1411
- - Github -> GitHub [#1450](https://github.com/tldraw/tldraw-lite/pull/1450) ([@TodePond](https://github.com/TodePond))
1412
- - repo cleanup [#1426](https://github.com/tldraw/tldraw-lite/pull/1426) ([@steveruizok](https://github.com/steveruizok))
1413
- - Run all the tests. Fix linting for tests. [#1389](https://github.com/tldraw/tldraw-lite/pull/1389) ([@MitjaBezensek](https://github.com/MitjaBezensek))
1414
-
1415
- #### Authors: 6
1416
-
1417
- - alex ([@SomeHats](https://github.com/SomeHats))
1418
- - David Sheldrick ([@ds300](https://github.com/ds300))
1419
- - Lu[ke] Wilson ([@TodePond](https://github.com/TodePond))
1420
- - Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
1421
- - Orange Mug ([@orangemug](https://github.com/orangemug))
1422
- - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
1423
-
1424
- ---
1425
-
1426
- # @tldraw/tlschema
1427
-
1428
- ## 2.0.0-alpha.11
1429
-
1430
- ### Patch Changes
1431
-
1432
- - fix some package build scripting
1433
- - Updated dependencies
1434
- - @tldraw/tlstore@2.0.0-alpha.11
1435
- - @tldraw/tlvalidate@2.0.0-alpha.10
1436
- - @tldraw/utils@2.0.0-alpha.10
1437
-
1438
- ## 2.0.0-alpha.10
1439
-
1440
- ### Patch Changes
1441
-
1442
- - 4b4399b6e: redeploy with yarn to prevent package version issues
1443
- - Updated dependencies [4b4399b6e]
1444
- - @tldraw/tlstore@2.0.0-alpha.10
1445
- - @tldraw/tlvalidate@2.0.0-alpha.9
1446
- - @tldraw/utils@2.0.0-alpha.9
1447
-
1448
- ## 2.0.0-alpha.9
1449
-
1450
- ### Patch Changes
1451
-
1452
- - Release day!
1453
- - Updated dependencies
1454
- - @tldraw/tlstore@2.0.0-alpha.9
1455
- - @tldraw/tlvalidate@2.0.0-alpha.8
1456
- - @tldraw/utils@2.0.0-alpha.8
1457
-
1458
- ## 2.0.0-alpha.8
1459
-
1460
- ### Patch Changes
1461
-
1462
- - Updated dependencies [23dd81cfe]
1463
- - @tldraw/tlstore@2.0.0-alpha.8
1464
-
1465
- ## 2.0.0-alpha.7
1466
-
1467
- ### Patch Changes
1468
-
1469
- - Bug fixes.
1470
- - Updated dependencies
1471
- - @tldraw/tlstore@2.0.0-alpha.7
1472
- - @tldraw/tlvalidate@2.0.0-alpha.7
1473
- - @tldraw/utils@2.0.0-alpha.7
1474
-
1475
- ## 2.0.0-alpha.6
1476
-
1477
- ### Patch Changes
1478
-
1479
- - Add licenses.
1480
- - Updated dependencies
1481
- - @tldraw/tlstore@2.0.0-alpha.6
1482
- - @tldraw/tlvalidate@2.0.0-alpha.6
1483
- - @tldraw/utils@2.0.0-alpha.6
1484
-
1485
- ## 2.0.0-alpha.5
1486
-
1487
- ### Patch Changes
1488
-
1489
- - Add CSS files to tldraw/tldraw.
1490
- - Updated dependencies
1491
- - @tldraw/tlstore@2.0.0-alpha.5
1492
- - @tldraw/tlvalidate@2.0.0-alpha.5
1493
- - @tldraw/utils@2.0.0-alpha.5
1494
-
1495
- ## 2.0.0-alpha.4
1496
-
1497
- ### Patch Changes
1498
-
1499
- - Add children to tldraw/tldraw
1500
- - Updated dependencies
1501
- - @tldraw/tlstore@2.0.0-alpha.4
1502
- - @tldraw/tlvalidate@2.0.0-alpha.4
1503
- - @tldraw/utils@2.0.0-alpha.4
1504
-
1505
- ## 2.0.0-alpha.3
1506
-
1507
- ### Patch Changes
1508
-
1509
- - Change permissions.
1510
- - Updated dependencies
1511
- - @tldraw/tlstore@2.0.0-alpha.3
1512
- - @tldraw/tlvalidate@2.0.0-alpha.3
1513
- - @tldraw/utils@2.0.0-alpha.3
1514
-
1515
- ## 2.0.0-alpha.2
1516
-
1517
- ### Patch Changes
1518
-
1519
- - Add tldraw, editor
1520
- - Updated dependencies
1521
- - @tldraw/tlstore@2.0.0-alpha.2
1522
- - @tldraw/tlvalidate@2.0.0-alpha.2
1523
- - @tldraw/utils@2.0.0-alpha.2
1524
-
1525
- ## 0.1.0-alpha.11
1526
-
1527
- ### Patch Changes
1528
-
1529
- - Fix stale reactors.
1530
- - Updated dependencies
1531
- - @tldraw/tlstore@0.1.0-alpha.11
1532
- - @tldraw/tlvalidate@0.1.0-alpha.11
1533
- - @tldraw/utils@0.1.0-alpha.11
1534
-
1535
- ## 0.1.0-alpha.10
1536
-
1537
- ### Patch Changes
1538
-
1539
- - Fix type export bug.
1540
- - Updated dependencies
1541
- - @tldraw/tlstore@0.1.0-alpha.10
1542
- - @tldraw/tlvalidate@0.1.0-alpha.10
1543
- - @tldraw/utils@0.1.0-alpha.10
1544
-
1545
- ## 0.1.0-alpha.9
1546
-
1547
- ### Patch Changes
1548
-
1549
- - Fix import bugs.
1550
- - Updated dependencies
1551
- - @tldraw/tlstore@0.1.0-alpha.9
1552
- - @tldraw/tlvalidate@0.1.0-alpha.9
1553
- - @tldraw/utils@0.1.0-alpha.9
1554
-
1555
- ## 0.1.0-alpha.8
1556
-
1557
- ### Patch Changes
1558
-
1559
- - Changes validation requirements, exports validation helpers.
1560
- - Updated dependencies
1561
- - @tldraw/tlstore@0.1.0-alpha.8
1562
- - @tldraw/tlvalidate@0.1.0-alpha.8
1563
- - @tldraw/utils@0.1.0-alpha.8
1564
-
1565
- ## 0.1.0-alpha.7
1566
-
1567
- ### Patch Changes
1568
-
1569
- - - Pre-pre-release update
1570
- - Updated dependencies
1571
- - @tldraw/tlstore@0.1.0-alpha.7
1572
- - @tldraw/tlvalidate@0.1.0-alpha.7
1573
- - @tldraw/utils@0.1.0-alpha.7
1574
-
1575
- ## 0.0.2-alpha.1
1576
-
1577
- ### Patch Changes
1578
-
1579
- - Fix error with HMR
1580
- - Updated dependencies
1581
- - @tldraw/tlstore@0.0.2-alpha.1
1582
- - @tldraw/tlvalidate@0.0.2-alpha.1
1583
- - @tldraw/utils@0.0.2-alpha.1
1584
-
1585
- ## 0.0.2-alpha.0
1586
-
1587
- ### Patch Changes
1588
-
1589
- - Initial release
1590
- - Updated dependencies
1591
- - @tldraw/tlstore@0.0.2-alpha.0
1592
- - @tldraw/tlvalidate@0.0.2-alpha.0
1593
- - @tldraw/utils@0.0.2-alpha.0