@tldraw/editor 3.10.0-canary.f7c145f44c9c β†’ 3.10.1

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 CHANGED
@@ -1,3 +1,77 @@
1
+ # v3.10.0 (Tue Mar 11 2025)
2
+
3
+ ### Release Notes
4
+
5
+ #### export: fix style embedding for foreignObjects in Firefox ([#5593](https://github.com/tldraw/tldraw/pull/5593))
6
+
7
+ - Fix exports / style embedding for foreignObjects in Firefox
8
+
9
+ #### rich text: fix links getting in the way of some tools and android selection ([#5568](https://github.com/tldraw/tldraw/pull/5568))
10
+
11
+ - Fix issue with rich text links taking precedence over tools. Also, fix fine-grained selection on Android.
12
+
13
+ #### fix reparentshapes preserve order ([#5565](https://github.com/tldraw/tldraw/pull/5565))
14
+
15
+ - Modify the reparentShapes() function to ensure that the original order of the shapes is preserved when reparenting.
16
+
17
+ #### media: extract base64 assets from .tldr files ([#5525](https://github.com/tldraw/tldraw/pull/5525))
18
+
19
+ - Ensure .tldr files with embedded base64 assets get their assets rehydrated back into the local db.
20
+
21
+ #### Make collaboration hooks public ([#5541](https://github.com/tldraw/tldraw/pull/5541))
22
+
23
+ - Makes `usePeerIds` and `usePresence` public
24
+
25
+ #### remove import from core-js ([#5544](https://github.com/tldraw/tldraw/pull/5544))
26
+
27
+ - Fixed bug with loading TLDraw in an SSR environment by removing a core-js import https://github.com/tldraw/tldraw/issues/5543
28
+
29
+ #### [feature] add rich text and contextual toolbar ([#4895](https://github.com/tldraw/tldraw/pull/4895))
30
+
31
+ - Rich text using ProseMirror as a first-class supported option in the Editor.
32
+
33
+ #### Pass userId to collaboration components ([#5534](https://github.com/tldraw/tldraw/pull/5534))
34
+
35
+ - Pass `userId` to collaboration components in `LiveCollaborators`
36
+
37
+ ---
38
+
39
+ #### πŸ› Bug Fix
40
+
41
+ - Add eslint rule for "whilst" [#5587](https://github.com/tldraw/tldraw/pull/5587) ([@steveruizok](https://github.com/steveruizok))
42
+ - CTA analytics [#5542](https://github.com/tldraw/tldraw/pull/5542) ([@TodePond](https://github.com/TodePond))
43
+ - Pass userId to collaboration components [#5534](https://github.com/tldraw/tldraw/pull/5534) ([@MathieuLoutre](https://github.com/MathieuLoutre))
44
+
45
+ #### πŸ› Bug Fixes
46
+
47
+ - export: fix style embedding for foreignObjects in Firefox [#5593](https://github.com/tldraw/tldraw/pull/5593) ([@mimecuvalo](https://github.com/mimecuvalo))
48
+ - rich text: fix links getting in the way of some tools and android selection [#5568](https://github.com/tldraw/tldraw/pull/5568) ([@mimecuvalo](https://github.com/mimecuvalo))
49
+ - fix reparentshapes preserve order [#5565](https://github.com/tldraw/tldraw/pull/5565) (riley@toonsquare.co)
50
+ - remove import from core-js [#5544](https://github.com/tldraw/tldraw/pull/5544) ([@bluedot74](https://github.com/bluedot74))
51
+
52
+ #### πŸ’„ Product Improvements
53
+
54
+ - media: extract base64 assets from .tldr files [#5525](https://github.com/tldraw/tldraw/pull/5525) ([@mimecuvalo](https://github.com/mimecuvalo))
55
+ - Make collaboration hooks public [#5541](https://github.com/tldraw/tldraw/pull/5541) ([@MathieuLoutre](https://github.com/MathieuLoutre))
56
+
57
+ #### πŸŽ‰ New Features
58
+
59
+ - [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))
60
+
61
+ #### Authors: 9
62
+
63
+ - [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
64
+ - alex ([@SomeHats](https://github.com/SomeHats))
65
+ - David Sheldrick ([@ds300](https://github.com/ds300))
66
+ - Josh Willis ([@bluedot74](https://github.com/bluedot74))
67
+ - Lu Wilson ([@TodePond](https://github.com/TodePond))
68
+ - Mathieu Triay ([@MathieuLoutre](https://github.com/MathieuLoutre))
69
+ - Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
70
+ - Riley ([@dodo-Riley](https://github.com/dodo-Riley))
71
+ - Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
72
+
73
+ ---
74
+
1
75
  # v3.9.0 (Mon Mar 03 2025)
2
76
 
3
77
  ### Release Notes
package/README.md CHANGED
@@ -8,7 +8,7 @@ You might be more interested in the general package [tldraw](https://github.com/
8
8
 
9
9
  This project is part of the tldraw SDK. It is provided under the [tldraw SDK license](https://github.com/tldraw/tldraw/blob/main/LICENSE.md).
10
10
 
11
- You can use the tldraw SDK in commercial or non-commercial projects so long as you preserve the "Made with tldraw" watermark on the canvas. To remove the watermark, you can purchase a [business license](https://tldraw.dev/#pricing). Visit [tldraw.dev](https://tldraw.dev) to learn more.
11
+ You can use the tldraw SDK in commercial or non-commercial projects so long as you preserve the "Made with tldraw" watermark on the canvas. To remove the watermark, you can purchase a [business license](https://tldraw.dev#pricing). Visit [tldraw.dev](https://tldraw.dev) to learn more.
12
12
 
13
13
  ## Trademarks
14
14
 
@@ -24,7 +24,7 @@ Please see our [contributing guide](https://github.com/tldraw/tldraw/blob/main/C
24
24
 
25
25
  ## Community
26
26
 
27
- Have questions, comments or feedback? [Join our discord](https://discord.tldraw.com/?utm_source=github&utm_medium=social&utm_campaign=sociallink). For the latest news and release notes, visit [tldraw.dev](https://tldraw.dev).
27
+ Have questions, comments or feedback? [Join our discord](https://discord.tldraw.com/?utm_source=github&utm_medium=readme&utm_campaign=sociallink). For the latest news and release notes, visit [tldraw.dev](https://tldraw.dev).
28
28
 
29
29
  ## Contact
30
30
 
@@ -2298,7 +2298,7 @@ export declare class Editor extends EventEmitter<TLEventMap> {
2298
2298
  */
2299
2299
  updatePage(partial: RequiredKeys<Partial<TLPage>, 'id'>): this;
2300
2300
  /**
2301
- * Create a page.
2301
+ * Create a page whilst ensuring that the page name is unique.
2302
2302
  *
2303
2303
  * @example
2304
2304
  * ```ts
package/dist-cjs/index.js CHANGED
@@ -374,7 +374,7 @@ function debugEnableLicensing() {
374
374
  }
375
375
  (0, import_utils.registerTldrawLibraryVersion)(
376
376
  "@tldraw/editor",
377
- "3.10.0-canary.f7c145f44c9c",
377
+ "3.10.1",
378
378
  "cjs"
379
379
  );
380
380
  //# sourceMappingURL=index.js.map
@@ -3021,7 +3021,7 @@ class Editor extends (_a = import_eventemitter3.default, _getIsShapeHiddenCache_
3021
3021
  return this.run(() => this.store.update(partial.id, (page) => ({ ...page, ...partial })));
3022
3022
  }
3023
3023
  /**
3024
- * Create a page.
3024
+ * Create a page whilst ensuring that the page name is unique.
3025
3025
  *
3026
3026
  * @example
3027
3027
  * ```ts