@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.
@@ -1,8 +1,8 @@
1
- const version = "4.0.2";
1
+ const version = "4.0.3";
2
2
  const publishDates = {
3
3
  major: "2025-09-18T14:32:28.865Z",
4
4
  minor: "2025-09-18T14:32:28.865Z",
5
- patch: "2025-09-19T11:04:14.309Z"
5
+ patch: "2025-10-02T15:59:40.571Z"
6
6
  };
7
7
  export {
8
8
  publishDates,
@@ -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.2'\nexport const publishDates = {\n\tmajor: '2025-09-18T14:32:28.865Z',\n\tminor: '2025-09-18T14:32:28.865Z',\n\tpatch: '2025-09-19T11:04:14.309Z',\n}\n"],
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.2",
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.2",
54
- "@tldraw/state-react": "4.0.2",
55
- "@tldraw/store": "4.0.2",
56
- "@tldraw/tlschema": "4.0.2",
57
- "@tldraw/utils": "4.0.2",
58
- "@tldraw/validate": "4.0.2",
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",
@@ -2019,7 +2019,9 @@ export class Editor extends EventEmitter<TLEventMap> {
2019
2019
  }
2020
2020
 
2021
2021
  /**
2022
- * @internal
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.2'
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-09-19T11:04:14.309Z',
8
+ patch: '2025-10-02T15:59:40.571Z',
9
9
  }