@kitschpatrol/tldraw-cli 5.0.3 → 5.0.5
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/bin/cli.js +450 -331
- package/dist/.DS_Store +0 -0
- package/dist/lib/index.js +449 -330
- package/dist/tldraw/assets/index-BqlfB2-Z.js +475 -0
- package/dist/tldraw/index.html +1 -1
- package/dist/tldraw/translations/es.json +1 -1
- package/dist/tldraw/translations/ja.json +4 -4
- package/dist/tldraw/translations/main.json +5 -4
- package/package.json +20 -20
- package/readme.md +2 -2
- package/dist/tldraw/assets/index-BvJZHyBs.js +0 -458
package/dist/tldraw/index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>tldraw via tldraw-cli</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-BqlfB2-Z.js"></script>
|
|
8
8
|
<link rel="stylesheet" crossorigin href="/assets/index-CfRYDVEH.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
|
@@ -454,7 +454,7 @@
|
|
|
454
454
|
"tool.rectangle": "Rectángulo",
|
|
455
455
|
"tool.replace-media": "Sustituir contenido multimedia",
|
|
456
456
|
"tool.rhombus": "Rombo",
|
|
457
|
-
"tool.rich-text-bold": "
|
|
457
|
+
"tool.rich-text-bold": "Negrita",
|
|
458
458
|
"tool.rich-text-bulletList": "Lista con viñetas",
|
|
459
459
|
"tool.rich-text-code": "Código",
|
|
460
460
|
"tool.rich-text-header": "Encabezamiento",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"action.remove-frame": "フレームを削除",
|
|
87
87
|
"action.rename": "名前を変更",
|
|
88
88
|
"action.rotate-ccw": "反時計回りに回転",
|
|
89
|
-
"action.rotate-cw": "時計回りに回転
|
|
89
|
+
"action.rotate-cw": "時計回りに回転",
|
|
90
90
|
"action.save-copy": "コピーを保存",
|
|
91
91
|
"action.select-all": "すべて選択",
|
|
92
92
|
"action.select-none": "選択を解除",
|
|
@@ -254,7 +254,7 @@
|
|
|
254
254
|
"geo-style.cloud": "くも",
|
|
255
255
|
"geo-style.diamond": "菱形",
|
|
256
256
|
"geo-style.ellipse": "楕円形",
|
|
257
|
-
"geo-style.heart": "
|
|
257
|
+
"geo-style.heart": "ハート",
|
|
258
258
|
"geo-style.hexagon": "六角形",
|
|
259
259
|
"geo-style.octagon": "八角形",
|
|
260
260
|
"geo-style.oval": "楕円",
|
|
@@ -433,7 +433,7 @@
|
|
|
433
433
|
"tool.flip-vert": "垂直方向に反転",
|
|
434
434
|
"tool.frame": "フレーム",
|
|
435
435
|
"tool.hand": "手",
|
|
436
|
-
"tool.heart": "
|
|
436
|
+
"tool.heart": "ハート",
|
|
437
437
|
"tool.hexagon": "六角形",
|
|
438
438
|
"tool.highlight": "ハイライト",
|
|
439
439
|
"tool.image-crop": "画像をクロップ",
|
|
@@ -446,7 +446,7 @@
|
|
|
446
446
|
"tool.media-alt-text": "代替テキスト",
|
|
447
447
|
"tool.media-alt-text-confirm": "確定",
|
|
448
448
|
"tool.media-alt-text-desc": "説明を記入してください...",
|
|
449
|
-
"tool.note": "
|
|
449
|
+
"tool.note": "付箋",
|
|
450
450
|
"tool.octagon": "八角形",
|
|
451
451
|
"tool.oval": "楕円",
|
|
452
452
|
"tool.pentagon": "五角形",
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
"action.toggle-auto-none": "Auto",
|
|
5
5
|
"action.toggle-mouse": "Mouse",
|
|
6
6
|
"action.toggle-trackpad": "Trackpad",
|
|
7
|
-
"action.convert-to-bookmark": "Convert to
|
|
8
|
-
"action.convert-to-embed": "Convert to
|
|
7
|
+
"action.convert-to-bookmark": "Convert to bookmark",
|
|
8
|
+
"action.convert-to-embed": "Convert to embed",
|
|
9
9
|
"action.open-embed-link": "Open link",
|
|
10
10
|
"action.align-bottom": "Align bottom",
|
|
11
11
|
"action.align-center-horizontal": "Align horizontally",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"action.toggle-paste-at-cursor.menu": "Paste at cursor",
|
|
90
90
|
"action.toggle-paste-at-cursor": "Toggle paste at cursor",
|
|
91
91
|
"action.toggle-wrap-mode.menu": "Select on wrap",
|
|
92
|
-
"action.toggle-wrap-mode": "Toggle
|
|
92
|
+
"action.toggle-wrap-mode": "Toggle select on wrap",
|
|
93
93
|
"action.toggle-reduce-motion.menu": "Reduce motion",
|
|
94
94
|
"action.toggle-reduce-motion": "Toggle reduce motion",
|
|
95
95
|
"action.toggle-keyboard-shortcuts.menu": "Enable keyboard shortcuts",
|
|
@@ -150,6 +150,7 @@
|
|
|
150
150
|
"fill-style.solid": "Solid",
|
|
151
151
|
"fill-style.pattern": "Pattern",
|
|
152
152
|
"fill-style.fill": "Fill",
|
|
153
|
+
"fill-style.lined-fill": "Lined fill",
|
|
153
154
|
"dash-style.dashed": "Dashed",
|
|
154
155
|
"dash-style.dotted": "Dotted",
|
|
155
156
|
"dash-style.draw": "Draw",
|
|
@@ -357,7 +358,7 @@
|
|
|
357
358
|
"people-menu.change-color": "Change color",
|
|
358
359
|
"people-menu.follow": "Following",
|
|
359
360
|
"people-menu.following": "Following",
|
|
360
|
-
"people-menu.leading": "Following
|
|
361
|
+
"people-menu.leading": "Following you",
|
|
361
362
|
"people-menu.user": "(You)",
|
|
362
363
|
"people-menu.invite": "Invite others",
|
|
363
364
|
"people-menu.anonymous-user": "New user",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitschpatrol/tldraw-cli",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.5",
|
|
4
4
|
"description": "A CLI tool and TypeScript library for exporting tldraw sketches to PNG or SVG images.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tldraw",
|
|
@@ -39,44 +39,44 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@fontsource/inter": "^5.2.8",
|
|
41
41
|
"@hono/node-server": "^1.19.6",
|
|
42
|
-
"hono": "^4.10.
|
|
43
|
-
"puppeteer": "^24.
|
|
42
|
+
"hono": "^4.10.7",
|
|
43
|
+
"puppeteer": "^24.32.0",
|
|
44
44
|
"uint8array-extras": "^1.5.0",
|
|
45
45
|
"yargs": "^18.0.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@kitschpatrol/shared-config": "^5.
|
|
48
|
+
"@kitschpatrol/shared-config": "^5.9.2",
|
|
49
49
|
"@sindresorhus/slugify": "^3.0.0",
|
|
50
|
-
"@tldraw/assets": "^4.1
|
|
51
|
-
"@types/node": "^20.19.
|
|
52
|
-
"@types/react": "^19.2.
|
|
53
|
-
"@types/react-dom": "^19.2.
|
|
54
|
-
"@types/yargs": "^17.0.
|
|
55
|
-
"@vitejs/plugin-react-swc": "^4.2.
|
|
56
|
-
"bumpp": "^10.3.
|
|
50
|
+
"@tldraw/assets": "^4.2.1",
|
|
51
|
+
"@types/node": "^20.19.25",
|
|
52
|
+
"@types/react": "^19.2.7",
|
|
53
|
+
"@types/react-dom": "^19.2.3",
|
|
54
|
+
"@types/yargs": "^17.0.35",
|
|
55
|
+
"@vitejs/plugin-react-swc": "^4.2.2",
|
|
56
|
+
"bumpp": "^10.3.2",
|
|
57
57
|
"cheerio": "^1.1.2",
|
|
58
|
-
"esbuild": "^0.
|
|
58
|
+
"esbuild": "^0.27.1",
|
|
59
59
|
"get-port": "^7.1.0",
|
|
60
60
|
"mdat-plugin-cli-help": "^1.0.2",
|
|
61
61
|
"nanoid": "^5.1.6",
|
|
62
62
|
"natural-orderby": "^5.0.0",
|
|
63
|
-
"open": "^
|
|
63
|
+
"open": "^11.0.0",
|
|
64
64
|
"path-type": "^6.0.0",
|
|
65
65
|
"picocolors": "^1.1.1",
|
|
66
66
|
"plur": "^6.0.0",
|
|
67
67
|
"pretty-ms": "^9.3.0",
|
|
68
|
-
"react": "^19.2.
|
|
69
|
-
"react-dom": "^19.2.
|
|
68
|
+
"react": "^19.2.1",
|
|
69
|
+
"react-dom": "^19.2.1",
|
|
70
70
|
"safe-stable-stringify": "^2.5.0",
|
|
71
|
-
"sharp": "0.34.
|
|
71
|
+
"sharp": "^0.34.5",
|
|
72
72
|
"sharp-phash": "^2.2.0",
|
|
73
73
|
"strip-ansi": "^7.1.2",
|
|
74
|
-
"tldraw": "^4.1
|
|
75
|
-
"tsx": "^4.
|
|
74
|
+
"tldraw": "^4.2.1",
|
|
75
|
+
"tsx": "^4.21.0",
|
|
76
76
|
"typescript": "~5.9.3",
|
|
77
77
|
"untildify": "^6.0.0",
|
|
78
|
-
"vite": "^7.2.
|
|
79
|
-
"vitest": "^4.0.
|
|
78
|
+
"vite": "^7.2.6",
|
|
79
|
+
"vitest": "^4.0.15"
|
|
80
80
|
},
|
|
81
81
|
"engines": {
|
|
82
82
|
"node": ">=20.19.0"
|
package/readme.md
CHANGED
|
@@ -498,13 +498,13 @@ This tool is not a part of the official tldraw project.
|
|
|
498
498
|
|
|
499
499
|
Due to the architecture of tldraw, export depends on functionality provided by a web browser. So, behind the scenes, this app serves a local instance of tldraw, then loads a `.tldr` and invokes the export download via the [Puppeteer](https://pptr.dev) headless browser automation tool.
|
|
500
500
|
|
|
501
|
-
This can be a bit slow
|
|
501
|
+
This can be a bit slow (exporting usually takes a second or two), but in the context of a statically-generated content pipeline it's not the end of the world.
|
|
502
502
|
|
|
503
503
|
In terms of Puppeteer vs. Playwright and other headless browser automation tools, it [looks like](https://www.checklyhq.com/blog/puppeteer-vs-selenium-vs-playwright-speed-comparison/) Puppeteer's performance likely compares favorably. (Though I have not tested and benchmarked the alternatives in the specific context of `tldraw-cli`.)
|
|
504
504
|
|
|
505
505
|
The local instance of tldraw includes its assets dependencies, so the tool should work correctly without internet access.
|
|
506
506
|
|
|
507
|
-
Track the [tldraw
|
|
507
|
+
Track the [tldraw releases](https://github.com/tldraw/tldraw/releases).
|
|
508
508
|
|
|
509
509
|
## The future
|
|
510
510
|
|