@tldraw/editor 3.11.0-canary.6e79632efa3a → 3.11.0-canary.79f6535a34c6
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.js +1 -1
- package/dist-cjs/lib/editor/Editor.js +4 -0
- package/dist-cjs/lib/editor/Editor.js.map +2 -2
- package/dist-cjs/version.js +3 -3
- package/dist-cjs/version.js.map +1 -1
- package/dist-esm/index.mjs +1 -1
- package/dist-esm/lib/editor/Editor.mjs +4 -0
- package/dist-esm/lib/editor/Editor.mjs.map +2 -2
- package/dist-esm/version.mjs +3 -3
- package/dist-esm/version.mjs.map +1 -1
- package/editor.css +0 -10
- package/package.json +7 -7
- package/src/lib/editor/Editor.ts +6 -0
- package/src/version.ts +3 -3
package/dist-esm/version.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const version = "3.11.0-canary.
|
|
1
|
+
const version = "3.11.0-canary.79f6535a34c6";
|
|
2
2
|
const publishDates = {
|
|
3
3
|
major: "2024-09-13T14:36:29.063Z",
|
|
4
|
-
minor: "2025-03-
|
|
5
|
-
patch: "2025-03-
|
|
4
|
+
minor: "2025-03-20T01:29:03.494Z",
|
|
5
|
+
patch: "2025-03-20T01:29:03.494Z"
|
|
6
6
|
};
|
|
7
7
|
export {
|
|
8
8
|
publishDates,
|
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 = '3.11.0-canary.
|
|
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 = '3.11.0-canary.79f6535a34c6'\nexport const publishDates = {\n\tmajor: '2024-09-13T14:36:29.063Z',\n\tminor: '2025-03-20T01:29:03.494Z',\n\tpatch: '2025-03-20T01:29:03.494Z',\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/editor.css
CHANGED
|
@@ -917,7 +917,6 @@ input,
|
|
|
917
917
|
* However, that was from 8 years ago and the browser caret issue
|
|
918
918
|
* it mentions seems to be fixed. So, we're re-enabling it.
|
|
919
919
|
* We'll tell ProseMirror maybe to get rid of this on their end.
|
|
920
|
-
*
|
|
921
920
|
*/
|
|
922
921
|
-webkit-font-variant-ligatures: inherit;
|
|
923
922
|
font-variant-ligatures: inherit;
|
|
@@ -954,15 +953,6 @@ input,
|
|
|
954
953
|
.tl-rich-text ol {
|
|
955
954
|
text-align: left;
|
|
956
955
|
margin: 0;
|
|
957
|
-
padding-left: 3.25ch;
|
|
958
|
-
}
|
|
959
|
-
|
|
960
|
-
.tl-rich-text ol:has(> li:nth-child(10)) {
|
|
961
|
-
padding-left: 4.25ch;
|
|
962
|
-
}
|
|
963
|
-
|
|
964
|
-
.tl-rich-text ol:has(> li:nth-child(100)) {
|
|
965
|
-
padding-left: 5.25ch;
|
|
966
956
|
}
|
|
967
957
|
|
|
968
958
|
.tl-rich-text h1,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tldraw/editor",
|
|
3
3
|
"description": "A tiny little drawing app (editor).",
|
|
4
|
-
"version": "3.11.0-canary.
|
|
4
|
+
"version": "3.11.0-canary.79f6535a34c6",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "tldraw Inc.",
|
|
7
7
|
"email": "hello@tldraw.com"
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
"@tiptap/core": "^2.9.1",
|
|
49
49
|
"@tiptap/pm": "^2.9.1",
|
|
50
50
|
"@tiptap/react": "^2.9.1",
|
|
51
|
-
"@tldraw/state": "3.11.0-canary.
|
|
52
|
-
"@tldraw/state-react": "3.11.0-canary.
|
|
53
|
-
"@tldraw/store": "3.11.0-canary.
|
|
54
|
-
"@tldraw/tlschema": "3.11.0-canary.
|
|
55
|
-
"@tldraw/utils": "3.11.0-canary.
|
|
56
|
-
"@tldraw/validate": "3.11.0-canary.
|
|
51
|
+
"@tldraw/state": "3.11.0-canary.79f6535a34c6",
|
|
52
|
+
"@tldraw/state-react": "3.11.0-canary.79f6535a34c6",
|
|
53
|
+
"@tldraw/store": "3.11.0-canary.79f6535a34c6",
|
|
54
|
+
"@tldraw/tlschema": "3.11.0-canary.79f6535a34c6",
|
|
55
|
+
"@tldraw/utils": "3.11.0-canary.79f6535a34c6",
|
|
56
|
+
"@tldraw/validate": "3.11.0-canary.79f6535a34c6",
|
|
57
57
|
"@types/core-js": "^2.5.8",
|
|
58
58
|
"@use-gesture/react": "^10.3.1",
|
|
59
59
|
"classnames": "^2.5.1",
|
package/src/lib/editor/Editor.ts
CHANGED
|
@@ -2102,6 +2102,12 @@ export class Editor extends EventEmitter<TLEventMap> {
|
|
|
2102
2102
|
* @public
|
|
2103
2103
|
*/
|
|
2104
2104
|
setRichTextEditor(textEditor: TiptapEditor | null) {
|
|
2105
|
+
// If the new editor is different from the current one, destroy the current one
|
|
2106
|
+
const current = this._currentRichTextEditor.__unsafe__getWithoutCapture()
|
|
2107
|
+
if (current !== textEditor) {
|
|
2108
|
+
current?.destroy()
|
|
2109
|
+
}
|
|
2110
|
+
|
|
2105
2111
|
this._currentRichTextEditor.set(textEditor)
|
|
2106
2112
|
return this
|
|
2107
2113
|
}
|
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 = '3.11.0-canary.
|
|
4
|
+
export const version = '3.11.0-canary.79f6535a34c6'
|
|
5
5
|
export const publishDates = {
|
|
6
6
|
major: '2024-09-13T14:36:29.063Z',
|
|
7
|
-
minor: '2025-03-
|
|
8
|
-
patch: '2025-03-
|
|
7
|
+
minor: '2025-03-20T01:29:03.494Z',
|
|
8
|
+
patch: '2025-03-20T01:29:03.494Z',
|
|
9
9
|
}
|