@tldraw/editor 4.0.2 → 4.0.3
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/dist-cjs/index.d.ts +6 -1
- package/dist-cjs/index.js +1 -1
- package/dist-cjs/lib/editor/Editor.js +3 -1
- package/dist-cjs/lib/editor/Editor.js.map +2 -2
- package/dist-cjs/version.js +2 -2
- package/dist-cjs/version.js.map +1 -1
- package/dist-esm/index.d.mts +6 -1
- package/dist-esm/index.mjs +1 -1
- package/dist-esm/lib/editor/Editor.mjs +3 -1
- package/dist-esm/lib/editor/Editor.mjs.map +2 -2
- package/dist-esm/version.mjs +2 -2
- package/dist-esm/version.mjs.map +1 -1
- package/package.json +7 -7
- package/src/lib/editor/Editor.ts +3 -1
- package/src/version.ts +2 -2
package/dist-esm/version.mjs
CHANGED
package/dist-esm/version.mjs.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/version.ts"],
|
|
4
|
-
"sourcesContent": ["// This file is automatically generated by internal/scripts/refresh-assets.ts.\n// Do not edit manually. Or do, I'm a comment, not a cop.\n\nexport const version = '4.0.
|
|
4
|
+
"sourcesContent": ["// This file is automatically generated by internal/scripts/refresh-assets.ts.\n// Do not edit manually. Or do, I'm a comment, not a cop.\n\nexport const version = '4.0.3'\nexport const publishDates = {\n\tmajor: '2025-09-18T14:32:28.865Z',\n\tminor: '2025-09-18T14:32:28.865Z',\n\tpatch: '2025-10-02T15:59:40.571Z',\n}\n"],
|
|
5
5
|
"mappings": "AAGO,MAAM,UAAU;AAChB,MAAM,eAAe;AAAA,EAC3B,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AACR;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tldraw/editor",
|
|
3
3
|
"description": "tldraw infinite canvas SDK (editor).",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.3",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "tldraw Inc.",
|
|
7
7
|
"email": "hello@tldraw.com"
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
"@tiptap/core": "^2.9.1",
|
|
51
51
|
"@tiptap/pm": "^2.9.1",
|
|
52
52
|
"@tiptap/react": "^2.9.1",
|
|
53
|
-
"@tldraw/state": "4.0.
|
|
54
|
-
"@tldraw/state-react": "4.0.
|
|
55
|
-
"@tldraw/store": "4.0.
|
|
56
|
-
"@tldraw/tlschema": "4.0.
|
|
57
|
-
"@tldraw/utils": "4.0.
|
|
58
|
-
"@tldraw/validate": "4.0.
|
|
53
|
+
"@tldraw/state": "4.0.3",
|
|
54
|
+
"@tldraw/state-react": "4.0.3",
|
|
55
|
+
"@tldraw/store": "4.0.3",
|
|
56
|
+
"@tldraw/tlschema": "4.0.3",
|
|
57
|
+
"@tldraw/utils": "4.0.3",
|
|
58
|
+
"@tldraw/validate": "4.0.3",
|
|
59
59
|
"@types/core-js": "^2.5.8",
|
|
60
60
|
"@use-gesture/react": "^10.3.1",
|
|
61
61
|
"classnames": "^2.5.1",
|
package/src/lib/editor/Editor.ts
CHANGED
|
@@ -2019,7 +2019,9 @@ export class Editor extends EventEmitter<TLEventMap> {
|
|
|
2019
2019
|
}
|
|
2020
2020
|
|
|
2021
2021
|
/**
|
|
2022
|
-
*
|
|
2022
|
+
* Get the page bounds of all the provided shapes.
|
|
2023
|
+
*
|
|
2024
|
+
* @public
|
|
2023
2025
|
*/
|
|
2024
2026
|
getShapesPageBounds(shapeIds: TLShapeId[]): Box | null {
|
|
2025
2027
|
const bounds = compact(shapeIds.map((id) => this.getShapePageBounds(id)))
|
package/src/version.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// This file is automatically generated by internal/scripts/refresh-assets.ts.
|
|
2
2
|
// Do not edit manually. Or do, I'm a comment, not a cop.
|
|
3
3
|
|
|
4
|
-
export const version = '4.0.
|
|
4
|
+
export const version = '4.0.3'
|
|
5
5
|
export const publishDates = {
|
|
6
6
|
major: '2025-09-18T14:32:28.865Z',
|
|
7
7
|
minor: '2025-09-18T14:32:28.865Z',
|
|
8
|
-
patch: '2025-
|
|
8
|
+
patch: '2025-10-02T15:59:40.571Z',
|
|
9
9
|
}
|