tldraw 4.5.1 → 4.5.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.js +1 -1
- package/dist-cjs/lib/ui/version.js +2 -2
- package/dist-cjs/lib/ui/version.js.map +1 -1
- package/dist-esm/index.mjs +1 -1
- package/dist-esm/lib/defaultExternalContentHandlers.mjs +2 -2
- package/dist-esm/lib/ui/version.mjs +2 -2
- package/dist-esm/lib/ui/version.mjs.map +1 -1
- package/package.json +3 -3
- package/src/lib/ui/version.ts +2 -2
package/dist-cjs/index.js
CHANGED
|
@@ -606,7 +606,7 @@ var import_buildFromV1Document = require("./lib/utils/tldr/buildFromV1Document")
|
|
|
606
606
|
var import_file = require("./lib/utils/tldr/file");
|
|
607
607
|
(0, import_editor.registerTldrawLibraryVersion)(
|
|
608
608
|
"tldraw",
|
|
609
|
-
"4.5.
|
|
609
|
+
"4.5.3",
|
|
610
610
|
"cjs"
|
|
611
611
|
);
|
|
612
612
|
//# sourceMappingURL=index.js.map
|
|
@@ -22,10 +22,10 @@ __export(version_exports, {
|
|
|
22
22
|
version: () => version
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(version_exports);
|
|
25
|
-
const version = "4.5.
|
|
25
|
+
const version = "4.5.3";
|
|
26
26
|
const publishDates = {
|
|
27
27
|
major: "2025-09-18T14:39:22.803Z",
|
|
28
28
|
minor: "2026-03-18T11:05:13.340Z",
|
|
29
|
-
patch: "2026-03-
|
|
29
|
+
patch: "2026-03-18T15:57:06.790Z"
|
|
30
30
|
};
|
|
31
31
|
//# sourceMappingURL=version.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/lib/ui/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.5.
|
|
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.5.3'\nexport const publishDates = {\n\tmajor: '2025-09-18T14:39:22.803Z',\n\tminor: '2026-03-18T11:05:13.340Z',\n\tpatch: '2026-03-18T15:57:06.790Z',\n}\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGO,MAAM,UAAU;AAChB,MAAM,eAAe;AAAA,EAC3B,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AACR;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist-esm/index.mjs
CHANGED
|
@@ -181,7 +181,7 @@ async function defaultHandleExternalUrlAsset(editor, { url }, { toasts, msg }) {
|
|
|
181
181
|
};
|
|
182
182
|
}
|
|
183
183
|
async function defaultHandleExternalSvgTextContent(editor, { point, text }) {
|
|
184
|
-
const { sanitizeSvg } = await import("./utils/svg/sanitizeSvg");
|
|
184
|
+
const { sanitizeSvg } = await import("./utils/svg/sanitizeSvg.mjs");
|
|
185
185
|
text = sanitizeSvg(text);
|
|
186
186
|
if (!text) return;
|
|
187
187
|
const position = point ?? (editor.inputs.getShiftKey() ? editor.inputs.getCurrentPagePoint() : editor.getViewportPageBounds().center);
|
|
@@ -543,7 +543,7 @@ async function maybeSanitizeSvgFile(file) {
|
|
|
543
543
|
if (file.type !== "image/svg+xml") return file;
|
|
544
544
|
try {
|
|
545
545
|
const text = await file.text();
|
|
546
|
-
const { sanitizeSvg } = await import("./utils/svg/sanitizeSvg");
|
|
546
|
+
const { sanitizeSvg } = await import("./utils/svg/sanitizeSvg.mjs");
|
|
547
547
|
const sanitized = sanitizeSvg(text);
|
|
548
548
|
if (!sanitized) return null;
|
|
549
549
|
return new File([sanitized], file.name, { type: file.type, lastModified: file.lastModified });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/lib/ui/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.5.
|
|
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.5.3'\nexport const publishDates = {\n\tmajor: '2025-09-18T14:39:22.803Z',\n\tminor: '2026-03-18T11:05:13.340Z',\n\tpatch: '2026-03-18T15:57:06.790Z',\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",
|
|
3
3
|
"description": "A tiny little drawing editor.",
|
|
4
|
-
"version": "4.5.
|
|
4
|
+
"version": "4.5.3",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "tldraw Inc.",
|
|
7
7
|
"email": "hello@tldraw.com"
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"@tiptap/pm": "^3.12.1",
|
|
62
62
|
"@tiptap/react": "^3.12.1",
|
|
63
63
|
"@tiptap/starter-kit": "^3.12.1",
|
|
64
|
-
"@tldraw/editor": "4.5.
|
|
65
|
-
"@tldraw/store": "4.5.
|
|
64
|
+
"@tldraw/editor": "4.5.3",
|
|
65
|
+
"@tldraw/store": "4.5.3",
|
|
66
66
|
"classnames": "^2.5.1",
|
|
67
67
|
"hotkeys-js": "^3.13.9",
|
|
68
68
|
"idb": "^7.1.1",
|
package/src/lib/ui/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.5.
|
|
4
|
+
export const version = '4.5.3'
|
|
5
5
|
export const publishDates = {
|
|
6
6
|
major: '2025-09-18T14:39:22.803Z',
|
|
7
7
|
minor: '2026-03-18T11:05:13.340Z',
|
|
8
|
-
patch: '2026-03-
|
|
8
|
+
patch: '2026-03-18T15:57:06.790Z',
|
|
9
9
|
}
|