@tldraw/editor 3.10.0-canary.f7c145f44c9c β 3.11.0-canary.13bfc642c301
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 +74 -0
- package/README.md +2 -2
- package/dist-cjs/index.d.ts +2 -2
- package/dist-cjs/index.js +1 -1
- package/dist-cjs/lib/editor/Editor.js +1 -1
- package/dist-cjs/lib/editor/Editor.js.map +2 -2
- package/dist-cjs/lib/exports/ExportDelay.js +1 -1
- package/dist-cjs/lib/exports/ExportDelay.js.map +2 -2
- package/dist-cjs/lib/license/Watermark.js +1 -1
- package/dist-cjs/lib/license/Watermark.js.map +1 -1
- package/dist-cjs/version.js +3 -3
- package/dist-cjs/version.js.map +1 -1
- package/dist-esm/index.d.mts +2 -2
- package/dist-esm/index.mjs +1 -1
- package/dist-esm/lib/editor/Editor.mjs +1 -1
- package/dist-esm/lib/editor/Editor.mjs.map +2 -2
- package/dist-esm/lib/exports/ExportDelay.mjs +1 -1
- package/dist-esm/lib/exports/ExportDelay.mjs.map +2 -2
- package/dist-esm/lib/license/Watermark.mjs +1 -1
- package/dist-esm/lib/license/Watermark.mjs.map +1 -1
- package/dist-esm/version.mjs +3 -3
- package/dist-esm/version.mjs.map +1 -1
- package/package.json +7 -7
- package/src/lib/editor/Editor.ts +2 -2
- package/src/lib/exports/ExportDelay.tsx +1 -1
- package/src/lib/license/Watermark.tsx +1 -1
- package/src/version.ts +3 -3
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
|
|
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=
|
|
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
|
|
package/dist-cjs/index.d.ts
CHANGED
|
@@ -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
|
|
@@ -2920,7 +2920,7 @@ export declare class Editor extends EventEmitter<TLEventMap> {
|
|
|
2920
2920
|
* Create bindings from a list of partial bindings. You can omit the ID and most props of a
|
|
2921
2921
|
* binding, but the `type`, `toId`, and `fromId` must all be provided.
|
|
2922
2922
|
*/
|
|
2923
|
-
createBindings(partials: TLBindingCreate[]): this;
|
|
2923
|
+
createBindings<B extends TLBinding = TLBinding>(partials: TLBindingCreate<B>[]): this;
|
|
2924
2924
|
/**
|
|
2925
2925
|
* Create a single binding from a partial. You can omit the ID and most props of a binding, but
|
|
2926
2926
|
* the `type`, `toId`, and `fromId` must all be provided.
|
package/dist-cjs/index.js
CHANGED
|
@@ -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
|