@kitschpatrol/tldraw-cli 5.0.0 → 5.0.2

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.
Files changed (57) hide show
  1. package/bin/cli.js +595 -337
  2. package/dist/lib/index.js +162 -140
  3. package/dist/tldraw/assets/index-BvJZHyBs.js +458 -0
  4. package/dist/tldraw/assets/index-CfRYDVEH.css +1 -0
  5. package/dist/tldraw/index.html +2 -2
  6. package/dist/tldraw/translations/ar.json +84 -0
  7. package/dist/tldraw/translations/bn.json +92 -0
  8. package/dist/tldraw/translations/ca.json +85 -0
  9. package/dist/tldraw/translations/cs.json +112 -52
  10. package/dist/tldraw/translations/da.json +85 -0
  11. package/dist/tldraw/translations/de.json +84 -0
  12. package/dist/tldraw/translations/el.json +92 -0
  13. package/dist/tldraw/translations/es.json +84 -0
  14. package/dist/tldraw/translations/fa.json +85 -0
  15. package/dist/tldraw/translations/fi.json +85 -0
  16. package/dist/tldraw/translations/fr.json +83 -1
  17. package/dist/tldraw/translations/gl.json +92 -0
  18. package/dist/tldraw/translations/gu-in.json +92 -0
  19. package/dist/tldraw/translations/he.json +84 -0
  20. package/dist/tldraw/translations/hi-in.json +84 -0
  21. package/dist/tldraw/translations/hr.json +85 -0
  22. package/dist/tldraw/translations/hu.json +85 -0
  23. package/dist/tldraw/translations/id.json +85 -0
  24. package/dist/tldraw/translations/it.json +82 -0
  25. package/dist/tldraw/translations/ja.json +84 -0
  26. package/dist/tldraw/translations/km-kh.json +92 -0
  27. package/dist/tldraw/translations/kn.json +92 -0
  28. package/dist/tldraw/translations/ko-kr.json +15 -0
  29. package/dist/tldraw/translations/ml.json +92 -0
  30. package/dist/tldraw/translations/mr.json +92 -0
  31. package/dist/tldraw/translations/ms.json +92 -0
  32. package/dist/tldraw/translations/ne.json +85 -0
  33. package/dist/tldraw/translations/nl.json +92 -0
  34. package/dist/tldraw/translations/no.json +89 -0
  35. package/dist/tldraw/translations/pa.json +92 -0
  36. package/dist/tldraw/translations/pl.json +85 -0
  37. package/dist/tldraw/translations/pt-br.json +84 -0
  38. package/dist/tldraw/translations/pt-pt.json +84 -0
  39. package/dist/tldraw/translations/ro.json +85 -0
  40. package/dist/tldraw/translations/ru.json +18 -0
  41. package/dist/tldraw/translations/sl.json +85 -0
  42. package/dist/tldraw/translations/so.json +85 -0
  43. package/dist/tldraw/translations/sv.json +85 -0
  44. package/dist/tldraw/translations/ta.json +92 -0
  45. package/dist/tldraw/translations/te.json +87 -0
  46. package/dist/tldraw/translations/th.json +84 -0
  47. package/dist/tldraw/translations/tl.json +92 -0
  48. package/dist/tldraw/translations/tr.json +84 -0
  49. package/dist/tldraw/translations/uk.json +85 -0
  50. package/dist/tldraw/translations/ur.json +92 -0
  51. package/dist/tldraw/translations/vi.json +84 -0
  52. package/dist/tldraw/translations/zh-cn.json +10 -2
  53. package/dist/tldraw/translations/zh-tw.json +84 -0
  54. package/package.json +22 -21
  55. package/dist/.DS_Store +0 -0
  56. package/dist/tldraw/assets/index-BmGQmkP8.js +0 -544
  57. package/dist/tldraw/assets/index-C9T4gVgp.css +0 -1
@@ -1,9 +1,26 @@
1
1
  {
2
+ "a11y.adjust-shape-styles": "調整圖形樣式",
3
+ "a11y.enlarge-shape": "放大圖形",
4
+ "a11y.enter-leave-container": "輸入/離開容器",
5
+ "a11y.move-shape": "移動圖形",
6
+ "a11y.move-shape-faster": "加快移動圖形",
2
7
  "a11y.multiple-shapes": "已選擇 {num} 個形狀",
8
+ "a11y.open-context-menu": "開啟右鍵選單",
9
+ "a11y.open-keyboard-shortcuts": "開啟鍵盤快捷鍵",
10
+ "a11y.pan-camera": "平移鏡頭",
11
+ "a11y.repeat-shape": "重複圖形",
12
+ "a11y.rotate-shape-ccw": "逆時針旋轉圖形",
13
+ "a11y.rotate-shape-ccw-fine": "逆時針微幅旋轉圖形",
14
+ "a11y.rotate-shape-cw": "順時針旋轉圖形",
15
+ "a11y.rotate-shape-cw-fine": "順時針微幅旋轉圖形",
16
+ "a11y.select-shape": "選取下一個圖形",
17
+ "a11y.select-shape-direction": "選取該方向的圖形",
3
18
  "a11y.shape-image": "影像",
4
19
  "a11y.shape-index": "{num} / {total}",
5
20
  "a11y.shape-video": "影片",
21
+ "a11y.shrink-shape": "縮小圖形",
6
22
  "a11y.skip-to-main-content": "將焦點移至畫布",
23
+ "a11y.status": "狀態",
7
24
  "action.align-bottom": "置底",
8
25
  "action.align-center-horizontal": "水平置中",
9
26
  "action.align-center-horizontal.short": "水平置中",
@@ -28,8 +45,11 @@
28
45
  "action.distribute-horizontal.short": "水平分布",
29
46
  "action.distribute-vertical": "垂直分布",
30
47
  "action.distribute-vertical.short": "垂直分布",
48
+ "action.download-original": "下載原始檔",
31
49
  "action.duplicate": "複製",
32
50
  "action.edit-link": "編輯連結",
51
+ "action.enhanced-a11y-mode": "切換進階輔助模式",
52
+ "action.enhanced-a11y-mode.menu": "進階輔助模式",
33
53
  "action.exit-pen-mode": "退出畫筆模式",
34
54
  "action.export-all-as-png": "全部匯出成 PNG",
35
55
  "action.export-all-as-png.short": "PNG",
@@ -56,6 +76,7 @@
56
76
  "action.open-cursor-chat": "Cursor chat",
57
77
  "action.open-embed-link": "開啟連結",
58
78
  "action.open-file": "開啟檔案",
79
+ "action.open-kbd-shortcuts": "開啟鍵盤快捷鍵",
59
80
  "action.pack": "打包",
60
81
  "action.paste": "貼上",
61
82
  "action.paste-error-description": "由於沒有剪貼簿權限而無法貼上。請啟用權限並重試。",
@@ -81,7 +102,10 @@
81
102
  "action.stretch-horizontal.short": "水平延展",
82
103
  "action.stretch-vertical": "垂直延展",
83
104
  "action.stretch-vertical.short": "垂直延展",
105
+ "action.toggle-auto-none": "自動",
106
+ "action.toggle-auto-pan": "自動(觸控板)",
84
107
  "action.toggle-auto-size": "切換自動大小",
108
+ "action.toggle-auto-zoom": "自動(滑鼠)",
85
109
  "action.toggle-dark-mode": "切換深色模式",
86
110
  "action.toggle-dark-mode.menu": "深色模式",
87
111
  "action.toggle-debug-mode": "切換除錯模式",
@@ -94,8 +118,10 @@
94
118
  "action.toggle-focus-mode.menu": "專注模式",
95
119
  "action.toggle-grid": "切換網格",
96
120
  "action.toggle-grid.menu": "顯示網格",
121
+ "action.toggle-keyboard-shortcuts": "切換鍵盤快捷鍵",
97
122
  "action.toggle-keyboard-shortcuts.menu": "鍵盤快捷鍵",
98
123
  "action.toggle-lock": "鎖定/解鎖",
124
+ "action.toggle-mouse": "滑鼠",
99
125
  "action.toggle-paste-at-cursor": "在游標位置切換貼上",
100
126
  "action.toggle-paste-at-cursor.menu": "在游標位置貼上",
101
127
  "action.toggle-reduce-motion": "切換減少活動",
@@ -104,6 +130,7 @@
104
130
  "action.toggle-snap-mode.menu": "始終貼齊",
105
131
  "action.toggle-tool-lock": "切換工具鎖定",
106
132
  "action.toggle-tool-lock.menu": "工具鎖定",
133
+ "action.toggle-trackpad": "觸控板",
107
134
  "action.toggle-transparent": "切換透明背景",
108
135
  "action.toggle-transparent.context-menu": "透明",
109
136
  "action.toggle-transparent.menu": "透明",
@@ -122,6 +149,9 @@
122
149
  "align-style.justify": "兩端",
123
150
  "align-style.middle": "置中",
124
151
  "align-style.start": "前端",
152
+ "app.loading": "載入 tldraw 中…",
153
+ "arrow-kind-style.arc": "弧線",
154
+ "arrow-kind-style.elbow": "折線",
125
155
  "arrowheadEnd-style.arrow": "箭頭",
126
156
  "arrowheadEnd-style.bar": "條狀",
127
157
  "arrowheadEnd-style.diamond": "菱形",
@@ -141,6 +171,7 @@
141
171
  "arrowheadStart-style.square": "正方形",
142
172
  "arrowheadStart-style.triangle": "三角形",
143
173
  "assets.files.amount-too-many": "文件過多",
174
+ "assets.files.maximum-size": "檔案大小上限為 {size}",
144
175
  "assets.files.size-too-big": "檔案大小太大",
145
176
  "assets.files.type-not-allowed": "檔案類型不允許",
146
177
  "assets.files.upload-failed": "上傳失敗",
@@ -177,6 +208,7 @@
177
208
  "edit-link-dialog.cancel": "取消",
178
209
  "edit-link-dialog.clear": "清除",
179
210
  "edit-link-dialog.detail": "連結將在新分頁開啟。",
211
+ "edit-link-dialog.external-link": "外部連結",
180
212
  "edit-link-dialog.invalid-url": "連結必須是有效網址。",
181
213
  "edit-link-dialog.save": "繼續",
182
214
  "edit-link-dialog.title": "編輯連結",
@@ -229,10 +261,32 @@
229
261
  "geo-style.pentagon": "五邊形",
230
262
  "geo-style.rectangle": "矩形",
231
263
  "geo-style.rhombus": "菱形",
264
+ "geo-style.rhombus-2": "左菱形",
232
265
  "geo-style.star": "星形",
233
266
  "geo-style.trapezoid": "梯形",
234
267
  "geo-style.triangle": "三角形",
235
268
  "geo-style.x-box": "X 框",
269
+ "handle.crop.bottom": "裁切下方",
270
+ "handle.crop.bottom-left": "裁切左下角",
271
+ "handle.crop.bottom-right": "裁切右下角",
272
+ "handle.crop.left": "裁切左側",
273
+ "handle.crop.right": "裁切右側",
274
+ "handle.crop.top": "裁切上方",
275
+ "handle.crop.top-left": "裁切左上角",
276
+ "handle.crop.top-right": "裁切右上角",
277
+ "handle.resize-bottom": "從下方調整大小",
278
+ "handle.resize-bottom-left": "從左下角調整大小",
279
+ "handle.resize-bottom-right": "從右下角調整大小",
280
+ "handle.resize-left": "從左側調整大小",
281
+ "handle.resize-right": "從右側調整大小",
282
+ "handle.resize-top": "從上方調整大小",
283
+ "handle.resize-top-left": "從左上角調整大小",
284
+ "handle.resize-top-right": "從右上角調整大小",
285
+ "handle.rotate.bottom_left_rotate": "向左下角旋轉",
286
+ "handle.rotate.bottom_right_rotate": "向右下角旋轉",
287
+ "handle.rotate.mobile_rotate": "旋轉",
288
+ "handle.rotate.top_left_rotate": "向左上角旋轉",
289
+ "handle.rotate.top_right_rotate": "向右上角旋轉",
236
290
  "help-menu.about": "關於",
237
291
  "help-menu.discord": "Discord",
238
292
  "help-menu.github": "GitHub",
@@ -242,15 +296,19 @@
242
296
  "help-menu.terms": "服務條款",
243
297
  "help-menu.title": "幫助和資源",
244
298
  "help-menu.twitter": "Twitter",
299
+ "menu.accessibility": "輔助",
245
300
  "menu.copy-as": "複製成",
246
301
  "menu.edit": "編輯",
247
302
  "menu.export-as": "匯出成",
248
303
  "menu.file": "檔案",
304
+ "menu.input-mode": "輸入模式",
249
305
  "menu.language": "語言",
250
306
  "menu.preferences": "選項",
251
307
  "menu.theme": "主題",
252
308
  "menu.title": "選單",
253
309
  "menu.view": "檢視",
310
+ "navigation-zone.minimap": "縮略圖",
311
+ "navigation-zone.title": "導覽",
254
312
  "navigation-zone.toggle-minimap": "切換小地圖",
255
313
  "navigation-zone.zoom": "縮放",
256
314
  "opacity-style.0.1": "10%",
@@ -272,6 +330,7 @@
272
330
  "page-menu.submenu.title": "選單",
273
331
  "page-menu.title": "頁面",
274
332
  "people-menu.anonymous-user": "新用戶",
333
+ "people-menu.avatar-color": "頭像顏色",
275
334
  "people-menu.change-color": "更改顏色",
276
335
  "people-menu.change-name": "更改名稱",
277
336
  "people-menu.follow": "追蹤",
@@ -300,10 +359,12 @@
300
359
  "sharing.confirm-leave.dont-show-again": "不再詢問",
301
360
  "sharing.confirm-leave.leave": "離開",
302
361
  "sharing.confirm-leave.title": "離開當前專案?",
362
+ "shortcuts-dialog.a11y": "輔助",
303
363
  "shortcuts-dialog.collaboration": "合作",
304
364
  "shortcuts-dialog.edit": "編輯",
305
365
  "shortcuts-dialog.file": "檔案",
306
366
  "shortcuts-dialog.preferences": "選項",
367
+ "shortcuts-dialog.text-formatting": "文字格式",
307
368
  "shortcuts-dialog.title": "鍵盤快捷鍵",
308
369
  "shortcuts-dialog.tools": "工具",
309
370
  "shortcuts-dialog.transform": "轉換",
@@ -329,6 +390,7 @@
329
390
  "style-panel.mixed": "混合",
330
391
  "style-panel.opacity": "不透明度",
331
392
  "style-panel.position": "位置",
393
+ "style-panel.selected": "已選取",
332
394
  "style-panel.size": "大小",
333
395
  "style-panel.spline": "曲線",
334
396
  "style-panel.title": "樣式",
@@ -342,6 +404,9 @@
342
404
  "toast.error.copy-fail.title": "複製失敗",
343
405
  "toast.error.export-fail.desc": "圖片匯出失敗",
344
406
  "toast.error.export-fail.title": "匯出失敗",
407
+ "toast.info": "資訊",
408
+ "toast.success": "成功",
409
+ "toast.warning": "警告",
345
410
  "tool-panel.more": "更多",
346
411
  "tool-panel.title": "工具",
347
412
  "tool.arrow": "箭頭",
@@ -349,6 +414,13 @@
349
414
  "tool.arrow-left": "向左箭頭",
350
415
  "tool.arrow-right": "向右箭頭",
351
416
  "tool.arrow-up": "向上箭頭",
417
+ "tool.aspect-ratio": "長寬比",
418
+ "tool.aspect-ratio.circle": "圓形 (1:1)",
419
+ "tool.aspect-ratio.landscape": "橫式 (4:3)",
420
+ "tool.aspect-ratio.original": "原圖",
421
+ "tool.aspect-ratio.portrait": "直式 (3:4)",
422
+ "tool.aspect-ratio.square": "正方形 (1:1)",
423
+ "tool.aspect-ratio.wide": "寬版 (16:9)",
352
424
  "tool.bookmark": "書籤",
353
425
  "tool.check-box": "勾選框",
354
426
  "tool.cloud": "雲端",
@@ -364,16 +436,23 @@
364
436
  "tool.heart": "心",
365
437
  "tool.hexagon": "六邊形",
366
438
  "tool.highlight": "醒目提醒",
439
+ "tool.image-crop": "裁切圖片",
440
+ "tool.image-crop-confirm": "確認",
441
+ "tool.image-toolbar-title": "修圖工具",
367
442
  "tool.image-zoom": "縮放",
368
443
  "tool.laser": "雷射",
369
444
  "tool.line": "直線",
370
445
  "tool.media": "媒體",
446
+ "tool.media-alt-text": "替代文字",
447
+ "tool.media-alt-text-confirm": "確認",
448
+ "tool.media-alt-text-desc": "提供說明…",
371
449
  "tool.note": "便利貼",
372
450
  "tool.octagon": "八邊形",
373
451
  "tool.oval": "卵形",
374
452
  "tool.pentagon": "五邊形",
375
453
  "tool.pointer-down": "指針向下",
376
454
  "tool.rectangle": "矩形",
455
+ "tool.replace-media": "更換媒體",
377
456
  "tool.rhombus": "菱形",
378
457
  "tool.rich-text-bold": "粗體",
379
458
  "tool.rich-text-bulletList": "項目符號列表",
@@ -384,14 +463,19 @@
384
463
  "tool.rich-text-link": "關聯",
385
464
  "tool.rich-text-link-remove": "刪除連結",
386
465
  "tool.rich-text-link-visit": "訪問連結",
466
+ "tool.rich-text-orderedList": "有序清單",
387
467
  "tool.rich-text-strikethrough": "刪除線",
468
+ "tool.rich-text-toolbar-title": "文字格式",
469
+ "tool.rotate-cw": "旋轉",
388
470
  "tool.select": "選取",
389
471
  "tool.star": "星形",
390
472
  "tool.text": "文字",
391
473
  "tool.trapezoid": "梯形",
392
474
  "tool.triangle": "三角形",
393
475
  "tool.x-box": "X 框",
476
+ "ui.checked": "已勾選",
394
477
  "ui.close": "關閉",
478
+ "ui.unchecked": "未勾選",
395
479
  "verticalAlign-style.end": "置底",
396
480
  "verticalAlign-style.middle": "置中",
397
481
  "verticalAlign-style.start": "置頂",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitschpatrol/tldraw-cli",
3
- "version": "5.0.0",
3
+ "version": "5.0.2",
4
4
  "description": "A CLI tool and TypeScript library for exporting tldraw sketches to PNG or SVG images.",
5
5
  "keywords": [
6
6
  "tldraw",
@@ -38,44 +38,45 @@
38
38
  ],
39
39
  "dependencies": {
40
40
  "@fontsource/inter": "^5.2.8",
41
- "@hono/node-server": "^1.19.4",
42
- "hono": "^4.9.9",
43
- "puppeteer": "^24.22.3",
41
+ "@hono/node-server": "^1.19.6",
42
+ "hono": "^4.10.4",
43
+ "puppeteer": "^24.29.0",
44
44
  "uint8array-extras": "^1.5.0",
45
45
  "yargs": "^18.0.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@kitschpatrol/shared-config": "^5.7.0",
48
+ "@kitschpatrol/shared-config": "^5.8.1",
49
49
  "@sindresorhus/slugify": "^3.0.0",
50
- "@tldraw/assets": "^4.0.2",
51
- "@types/node": "^20.19.17",
52
- "@types/react": "^19.1.14",
53
- "@types/react-dom": "^19.1.9",
54
- "@types/yargs": "^17.0.33",
55
- "@vitejs/plugin-react-swc": "^4.1.0",
56
- "bumpp": "^10.2.3",
50
+ "@tldraw/assets": "^4.1.2",
51
+ "@types/node": "^20.19.24",
52
+ "@types/react": "^19.2.2",
53
+ "@types/react-dom": "^19.2.2",
54
+ "@types/yargs": "^17.0.34",
55
+ "@vitejs/plugin-react-swc": "^4.2.1",
56
+ "bumpp": "^10.3.1",
57
57
  "cheerio": "^1.1.2",
58
- "esbuild": "^0.25.10",
58
+ "esbuild": "^0.25.12",
59
59
  "get-port": "^7.1.0",
60
+ "mdat-plugin-cli-help": "^1.0.1",
60
61
  "nanoid": "^5.1.6",
61
62
  "natural-orderby": "^5.0.0",
62
63
  "open": "^10.2.0",
63
64
  "path-type": "^6.0.0",
64
65
  "picocolors": "^1.1.1",
65
- "plur": "^5.1.0",
66
+ "plur": "^6.0.0",
66
67
  "pretty-ms": "^9.3.0",
67
- "react": "^19.1.1",
68
- "react-dom": "^19.1.1",
68
+ "react": "^19.2.0",
69
+ "react-dom": "^19.2.0",
69
70
  "safe-stable-stringify": "^2.5.0",
70
71
  "sharp": "^0.34.4",
71
72
  "sharp-phash": "^2.2.0",
72
73
  "strip-ansi": "^7.1.2",
73
- "tldraw": "^4.0.2",
74
+ "tldraw": "^4.1.2",
74
75
  "tsx": "^4.20.6",
75
- "typescript": "~5.9.2",
76
+ "typescript": "~5.9.3",
76
77
  "untildify": "^6.0.0",
77
- "vite": "^7.1.7",
78
- "vitest": "^3.2.4"
78
+ "vite": "^7.2.0",
79
+ "vitest": "^4.0.7"
79
80
  },
80
81
  "engines": {
81
82
  "node": ">=20.19.0"
@@ -95,7 +96,7 @@
95
96
  "lint": "kpi lint",
96
97
  "preview": "pnpm run preview:tldraw",
97
98
  "preview:tldraw": "vite preview",
98
- "release": "bumpp --commit 'Release: %s' && pnpm run build && pnpm publish --otp $(op read 'op://Personal/Npmjs/one-time password?attribute=otp')",
99
+ "release": "bumpp --commit 'Release: %s' && pnpm run build && NPM_AUTH_TOKEN=$(op read 'op://Personal/npm/token') && pnpm publish",
99
100
  "test": "vitest --run",
100
101
  "test:watch": "pnpm run build && vitest",
101
102
  "tldraw:copy-assets": "rsync -av --include='/*/' --exclude='/*' --exclude='favicon.ico' ./node_modules/@tldraw/assets/ ./src/tldraw/public/"
package/dist/.DS_Store DELETED
Binary file