@tldraw/editor 5.1.0 → 5.1.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.
@@ -1,8 +1,8 @@
1
- const version = "5.1.0";
1
+ const version = "5.1.1";
2
2
  const publishDates = {
3
3
  major: "2026-05-06T16:28:18.473Z",
4
4
  minor: "2026-06-03T10:26:13.606Z",
5
- patch: "2026-06-03T10:26:13.606Z"
5
+ patch: "2026-06-12T16:33:21.130Z"
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 = '5.1.0'\nexport const publishDates = {\n\tmajor: '2026-05-06T16:28:18.473Z',\n\tminor: '2026-06-03T10:26:13.606Z',\n\tpatch: '2026-06-03T10:26:13.606Z',\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 = '5.1.1'\nexport const publishDates = {\n\tmajor: '2026-05-06T16:28:18.473Z',\n\tminor: '2026-06-03T10:26:13.606Z',\n\tpatch: '2026-06-12T16:33:21.130Z',\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": "5.1.0",
4
+ "version": "5.1.1",
5
5
  "author": {
6
6
  "name": "tldraw Inc.",
7
7
  "email": "hello@tldraw.com"
@@ -49,12 +49,12 @@
49
49
  "@tiptap/core": "^3.12.1",
50
50
  "@tiptap/pm": "^3.12.1",
51
51
  "@tiptap/react": "^3.12.1",
52
- "@tldraw/state": "5.1.0",
53
- "@tldraw/state-react": "5.1.0",
54
- "@tldraw/store": "5.1.0",
55
- "@tldraw/tlschema": "5.1.0",
56
- "@tldraw/utils": "5.1.0",
57
- "@tldraw/validate": "5.1.0",
52
+ "@tldraw/state": "5.1.1",
53
+ "@tldraw/state-react": "5.1.1",
54
+ "@tldraw/store": "5.1.1",
55
+ "@tldraw/tlschema": "5.1.1",
56
+ "@tldraw/utils": "5.1.1",
57
+ "@tldraw/validate": "5.1.1",
58
58
  "classnames": "^2.5.1",
59
59
  "eventemitter3": "^4.0.7",
60
60
  "idb": "^7.1.1",
@@ -11137,7 +11137,12 @@ export class Editor extends EventEmitter<TLEventMap> {
11137
11137
  inputs.setIsDragging(false)
11138
11138
 
11139
11139
  // If pen mode is off but we're not already in pen mode, turn that on
11140
- if (!isPenMode && isPen) this.updateInstanceState({ isPenMode: true })
11140
+ if (!isPenMode && isPen) {
11141
+ this.updateInstanceState({ isPenMode: true })
11142
+ // Once pen mode is on, touch input is ignored, so we discard the
11143
+ // in-progress touch interaction .
11144
+ this.interrupt()
11145
+ }
11141
11146
 
11142
11147
  // On devices with erasers (like the Surface Pen or Wacom Pen), button 5 is the eraser
11143
11148
  if (info.button === STYLUS_ERASER_BUTTON) {
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 = '5.1.0'
4
+ export const version = '5.1.1'
5
5
  export const publishDates = {
6
6
  major: '2026-05-06T16:28:18.473Z',
7
7
  minor: '2026-06-03T10:26:13.606Z',
8
- patch: '2026-06-03T10:26:13.606Z',
8
+ patch: '2026-06-12T16:33:21.130Z',
9
9
  }