@kitschpatrol/tldraw-cli 4.6.14 → 4.6.16

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.
@@ -28,6 +28,12 @@
28
28
  "action.duplicate": "复制",
29
29
  "action.edit-link": "编辑链接",
30
30
  "action.exit-pen-mode": "退出钢笔模式",
31
+ "action.export-all-as-json": "全部导出为 JSON",
32
+ "action.export-all-as-json.short": "JSON",
33
+ "action.export-all-as-png": "全部导出为 PNG",
34
+ "action.export-all-as-png.short": "PNG",
35
+ "action.export-all-as-svg": "全部导出为 SVG",
36
+ "action.export-all-as-svg.short": "SVG",
31
37
  "action.export-as-json": "导出为 JSON",
32
38
  "action.export-as-json.short": "JSON",
33
39
  "action.export-as-png": "导出为 PNG",
@@ -40,6 +46,7 @@
40
46
  "action.flip-vertical": "垂直翻转",
41
47
  "action.flip-vertical.short": "垂直翻转",
42
48
  "action.fork-project": "Fork 这个项目",
49
+ "action.fork-project-on-tldraw": "在 tldraw 上 Fork 项目",
43
50
  "action.group": "分组",
44
51
  "action.insert-embed": "创建嵌入",
45
52
  "action.insert-media": "上传媒体文件",
@@ -51,9 +58,12 @@
51
58
  "action.open-file": "打开文件",
52
59
  "action.pack": "打包",
53
60
  "action.paste": "粘贴",
61
+ "action.paste-error-description": "由于缺少剪贴板权限,无法粘贴。请启用权限并重试。",
62
+ "action.paste-error-title": "粘贴失败",
54
63
  "action.print": "打印",
55
64
  "action.redo": "重做",
56
65
  "action.remove-frame": "移除框架",
66
+ "action.rename": "重命名",
57
67
  "action.rotate-ccw": "逆时针旋转",
58
68
  "action.rotate-cw": "顺时针旋转",
59
69
  "action.save-copy": "保存副本",
@@ -81,6 +91,8 @@
81
91
  "action.toggle-grid": "切换网格",
82
92
  "action.toggle-grid.menu": "显示网格",
83
93
  "action.toggle-lock": "锁定/解锁",
94
+ "action.toggle-paste-at-cursor": "在光标处切换粘贴",
95
+ "action.toggle-paste-at-cursor.menu": "粘贴至光标处",
84
96
  "action.toggle-reduce-motion": "切换降低灵敏度",
85
97
  "action.toggle-reduce-motion.menu": "降低灵敏度",
86
98
  "action.toggle-snap-mode": "切换始终吸附",
@@ -121,6 +133,9 @@
121
133
  "arrowheadStart-style.pipe": "管道",
122
134
  "arrowheadStart-style.square": "正方形",
123
135
  "arrowheadStart-style.triangle": "三角形",
136
+ "assets.files.size-too-big": "文件太大",
137
+ "assets.files.type-not-allowed": "文件类型不符合",
138
+ "assets.files.upload-failed": "上传失败",
124
139
  "color-style.black": "黑色",
125
140
  "color-style.blue": "蓝色",
126
141
  "color-style.green": "绿色",
@@ -132,9 +147,12 @@
132
147
  "color-style.orange": "橙色",
133
148
  "color-style.red": "红色",
134
149
  "color-style.violet": "紫色",
150
+ "color-style.white": "白色",
135
151
  "color-style.yellow": "黄色",
136
152
  "context-menu.arrange": "排列",
137
153
  "context-menu.copy-as": "复制为",
154
+ "context-menu.edit": "编辑",
155
+ "context-menu.export-all-as": "全部导出为",
138
156
  "context-menu.export-as": "导出为",
139
157
  "context-menu.move-to-page": "移动到页面",
140
158
  "context-menu.reorder": "重新排序",
@@ -145,6 +163,7 @@
145
163
  "dash-style.draw": "画笔",
146
164
  "dash-style.solid": "实心",
147
165
  "debug-panel.more": "更多",
166
+ "document.default-name": "无标题",
148
167
  "edit-link-dialog.cancel": "取消",
149
168
  "edit-link-dialog.clear": "清除",
150
169
  "edit-link-dialog.detail": "链接将在新标签页中打开。",
@@ -177,6 +196,7 @@
177
196
  "file-system.file-open-error.title": "无法打开文件",
178
197
  "file-system.shared-document-file-open-error.description": "不支持从共享项目中打开文件。",
179
198
  "file-system.shared-document-file-open-error.title": "无法打开文件",
199
+ "fill-style.fill": "填充",
180
200
  "fill-style.none": "无",
181
201
  "fill-style.pattern": "图案",
182
202
  "fill-style.semi": "半填充",
@@ -207,8 +227,11 @@
207
227
  "geo-style.x-box": "X 框",
208
228
  "help-menu.about": "关于",
209
229
  "help-menu.discord": "Discord",
230
+ "help-menu.docs": "文档和 API",
210
231
  "help-menu.github": "GitHub",
211
232
  "help-menu.keyboard-shortcuts": "键盘快捷方式",
233
+ "help-menu.privacy": "隐私政策",
234
+ "help-menu.terms": "服务条款",
212
235
  "help-menu.title": "帮助和资源",
213
236
  "help-menu.twitter": "Twitter",
214
237
  "home-project-dialog.description": "这是您的主项目,它只为您而设!",
@@ -218,8 +241,10 @@
218
241
  "menu.edit": "编辑",
219
242
  "menu.export-as": "导出为",
220
243
  "menu.file": "文件",
244
+ "menu.help": "帮助",
221
245
  "menu.language": "语言",
222
246
  "menu.preferences": "偏好",
247
+ "menu.theme": "主题",
223
248
  "menu.title": "菜单",
224
249
  "menu.view": "视图",
225
250
  "navigation-zone.toggle-minimap": "切换小地图",
@@ -253,11 +278,13 @@
253
278
  "rename-project-dialog.cancel": "取消",
254
279
  "rename-project-dialog.rename": "重命名",
255
280
  "rename-project-dialog.title": "项目重命名",
281
+ "share-menu.copied": "链接已复制!",
256
282
  "share-menu.copy-link": "复制链接",
257
283
  "share-menu.copy-link-note": "任何人使用此链接都能查看和编辑此项目。",
258
284
  "share-menu.copy-readonly-link": "复制只读链接",
259
285
  "share-menu.copy-readonly-link-note": "任何人使用此链接都能查看(但不能编辑)此项目。",
260
286
  "share-menu.create-snapshot-link": "创建快照链接",
287
+ "share-menu.creating-project": "创建新项目…",
261
288
  "share-menu.default-project-name": "共享项目",
262
289
  "share-menu.fork-note": "基于这个快照创建一个新的共享项目。",
263
290
  "share-menu.offline-note": "共享此项目将以新 URL 创建托管活动副本。您可以与不超过三十人共享此 URL,一起查看和编辑项目。",
@@ -305,6 +332,9 @@
305
332
  "style-panel.spline": "曲线",
306
333
  "style-panel.title": "样式",
307
334
  "style-panel.vertical-align": "垂直对齐",
335
+ "theme.dark": "暗黑模式",
336
+ "theme.light": "浅色模式",
337
+ "theme.system": "系统",
308
338
  "toast.close": "关闭",
309
339
  "toast.error.copy-fail.desc": "无法复制图像",
310
340
  "toast.error.copy-fail.title": "复制失败",
@@ -344,6 +374,9 @@
344
374
  "tool.trapezoid": "梯形",
345
375
  "tool.triangle": "三角形",
346
376
  "tool.x-box": "X 框",
377
+ "verticalAlign-style.end": "底部",
378
+ "verticalAlign-style.middle": "中间",
379
+ "verticalAlign-style.start": "顶部",
347
380
  "vscode.file-open.backup": "备份",
348
381
  "vscode.file-open.backup-failed": "备份失败:这不是 .tldr 文件。",
349
382
  "vscode.file-open.backup-saved": "备份已保存",
@@ -28,12 +28,19 @@
28
28
  "action.duplicate": "複製",
29
29
  "action.edit-link": "編輯連結",
30
30
  "action.exit-pen-mode": "退出畫筆模式",
31
+ "action.export-all-as-json": "全部匯出成 JSON",
32
+ "action.export-all-as-json.short": "JSON",
33
+ "action.export-all-as-png": "全部匯出成 PNG",
34
+ "action.export-all-as-png.short": "PNG",
35
+ "action.export-all-as-svg": "全部匯出成 SVG",
36
+ "action.export-all-as-svg.short": "SVG",
31
37
  "action.export-as-json": "匯出成 JSON",
32
38
  "action.export-as-json.short": "JSON",
33
39
  "action.export-as-png": "匯出成 PNG",
34
40
  "action.export-as-png.short": "PNG",
35
41
  "action.export-as-svg": "匯出成 SVG",
36
42
  "action.export-as-svg.short": "SVG",
43
+ "action.fit-frame-to-content": "貼合內容大小",
37
44
  "action.flip-horizontal": "水平翻轉",
38
45
  "action.flip-horizontal.short": "水平翻轉",
39
46
  "action.flip-vertical": "垂直翻轉",
@@ -48,6 +55,8 @@
48
55
  "action.paste": "貼上",
49
56
  "action.print": "列印",
50
57
  "action.redo": "取消復原",
58
+ "action.remove-frame": "移除框架",
59
+ "action.rename": "重新命名",
51
60
  "action.rotate-ccw": "逆時針旋轉",
52
61
  "action.rotate-cw": "順時針旋轉",
53
62
  "action.save-copy": "存為副本",
@@ -83,6 +92,7 @@
83
92
  "action.toggle-transparent.menu": "透明",
84
93
  "action.undo": "復原",
85
94
  "action.ungroup": "取消群組",
95
+ "action.unlock-all": "全部解鎖",
86
96
  "action.zoom-in": "放大",
87
97
  "action.zoom-out": "縮小",
88
98
  "action.zoom-to-100": "縮放至 100%",
@@ -111,6 +121,7 @@
111
121
  "arrowheadStart-style.pipe": "管狀",
112
122
  "arrowheadStart-style.square": "正方形",
113
123
  "arrowheadStart-style.triangle": "三角形",
124
+ "assets.files.upload-failed": "上傳失敗",
114
125
  "color-style.black": "黑色",
115
126
  "color-style.blue": "藍色",
116
127
  "color-style.green": "綠色",
@@ -125,6 +136,7 @@
125
136
  "color-style.yellow": "黃色",
126
137
  "context-menu.arrange": "佈局",
127
138
  "context-menu.copy-as": "複製成",
139
+ "context-menu.edit": "編輯",
128
140
  "context-menu.export-as": "匯出成",
129
141
  "context-menu.move-to-page": "移至頁面",
130
142
  "context-menu.reorder": "重新排序",
@@ -134,6 +146,7 @@
134
146
  "dash-style.draw": "手繪",
135
147
  "dash-style.solid": "實線",
136
148
  "debug-panel.more": "更多",
149
+ "document.default-name": "無標題",
137
150
  "edit-link-dialog.cancel": "取消",
138
151
  "edit-link-dialog.clear": "清除",
139
152
  "edit-link-dialog.detail": "連結將在新分頁開啟。",
@@ -198,6 +211,7 @@
198
211
  "help-menu.keyboard-shortcuts": "鍵盤快捷鍵",
199
212
  "help-menu.title": "幫助和資源",
200
213
  "help-menu.twitter": "Twitter",
214
+ "home-project-dialog.ok": "好的",
201
215
  "menu.copy-as": "複製成",
202
216
  "menu.edit": "編輯",
203
217
  "menu.export-as": "匯出成",
@@ -232,11 +246,16 @@
232
246
  "people-menu.invite": "邀請其他人",
233
247
  "people-menu.title": "人員",
234
248
  "people-menu.user": "(您)",
249
+ "rename-project-dialog.cancel": "取消",
250
+ "rename-project-dialog.rename": "重新命名",
251
+ "rename-project-dialog.title": "重新命名專案",
252
+ "share-menu.copied": "已複製連結!",
235
253
  "share-menu.copy-link": "複製連結",
236
254
  "share-menu.copy-link-note": "任何人透過連結都能檢視和編輯此專案。",
237
255
  "share-menu.copy-readonly-link": "複製唯讀連結",
238
256
  "share-menu.copy-readonly-link-note": "任何人透過連結都能檢視(但不能編輯)此專案。",
239
257
  "share-menu.create-snapshot-link": "建立快照連結",
258
+ "share-menu.creating-project": "正在新建專案…",
240
259
  "share-menu.fork-note": "基於此快照建立新的共享專案。",
241
260
  "share-menu.offline-note": "共享此專案將建立即時副本,並產生新網址。您可以分享網址,與其他至多三十人一起檢視和編輯副本。",
242
261
  "share-menu.project-too-large": "抱歉,無法共享此專案,因為檔案過大。我們已在調整這件事!",
@@ -257,6 +276,8 @@
257
276
  "size-style.xl": "特大",
258
277
  "spline-style.cubic": "立方體",
259
278
  "spline-style.line": "直線",
279
+ "status.offline": "斷線",
280
+ "status.online": "已連線",
260
281
  "style-panel.align": "對齊",
261
282
  "style-panel.arrowhead-end": "末端",
262
283
  "style-panel.arrowhead-start": "前端",
@@ -307,6 +328,9 @@
307
328
  "tool.trapezoid": "梯形",
308
329
  "tool.triangle": "三角形",
309
330
  "tool.x-box": "X 框",
331
+ "verticalAlign-style.end": "置底",
332
+ "verticalAlign-style.middle": "置中",
333
+ "verticalAlign-style.start": "置頂",
310
334
  "vscode.file-open.backup": "備份",
311
335
  "vscode.file-open.backup-failed": "備份失敗:這不是 .tldr 檔。",
312
336
  "vscode.file-open.backup-saved": "已備份",
package/package.json CHANGED
@@ -1,17 +1,11 @@
1
1
  {
2
2
  "name": "@kitschpatrol/tldraw-cli",
3
- "version": "4.6.14",
3
+ "version": "4.6.16",
4
4
  "type": "module",
5
5
  "description": "A CLI tool for exporting tldraw sketch URLs and local .tldr files to SVG or PNG images.",
6
- "repository": {
7
- "type": "git",
8
- "url": "git+https://github.com/kitschpatrol/tldraw-cli.git"
9
- },
6
+ "repository": "github:kitschpatrol/tldraw-cli",
10
7
  "homepage": "https://github.com/kitschpatrol/tldraw-cli",
11
- "bugs": {
12
- "url": "https://github.com/kitschpatrol/tldraw-cli/issues",
13
- "email": "eric@ericmika.com"
14
- },
8
+ "bugs": "https://github.com/kitschpatrol/tldraw-cli/issues",
15
9
  "author": {
16
10
  "name": "Eric Mika",
17
11
  "email": "eric@ericmika.com",
@@ -44,17 +38,18 @@
44
38
  "npm-package"
45
39
  ],
46
40
  "dependencies": {
47
- "@fontsource/inter": "^5.0.21",
48
- "express": "^4.20.0",
41
+ "@fontsource/inter": "^5.1.0",
42
+ "express": "^4.21.0",
49
43
  "puppeteer": "^23.3.0",
50
44
  "uint8array-extras": "^1.4.0",
51
45
  "yargs": "^17.7.2"
52
46
  },
53
47
  "devDependencies": {
54
- "@kitschpatrol/shared-config": "^4.7.5",
48
+ "@kitschpatrol/shared-config": "^4.7.6",
55
49
  "@sindresorhus/slugify": "^2.2.1",
56
- "@tldraw/assets": "2.4.6",
50
+ "@tldraw/assets": "3.0.1",
57
51
  "@types/express": "^4.17.21",
52
+ "@types/node": "18.0.0",
58
53
  "@types/react": "^18.3.5",
59
54
  "@types/react-dom": "^18.3.0",
60
55
  "@types/yargs": "^17.0.33",
@@ -64,7 +59,7 @@
64
59
  "cheerio": "1.0.0-rc.12",
65
60
  "esbuild": "^0.23.1",
66
61
  "eslint-plugin-react-hooks": "^4.6.2",
67
- "eslint-plugin-react-refresh": "^0.4.11",
62
+ "eslint-plugin-react-refresh": "^0.4.12",
68
63
  "get-port": "^7.1.0",
69
64
  "nanoid": "^5.0.7",
70
65
  "open": "^10.1.0",
@@ -73,17 +68,16 @@
73
68
  "pretty-ms": "^9.1.0",
74
69
  "react": "^18.3.1",
75
70
  "react-dom": "^18.3.1",
76
- "rimraf": "^6.0.1",
77
71
  "safe-stable-stringify": "^2.5.0",
78
72
  "sharp": "^0.33.5",
79
73
  "sharp-phash": "^2.1.0",
80
74
  "strip-ansi": "^7.1.0",
81
- "tldraw": "2.4.6",
82
- "tsx": "^4.19.0",
75
+ "tldraw": "3.0.1",
76
+ "tsx": "^4.19.1",
83
77
  "typescript": "^5.6.2",
84
78
  "untildify": "^5.0.0",
85
- "vite": "^5.4.4",
86
- "vitest": "^2.0.5"
79
+ "vite": "^5.4.5",
80
+ "vitest": "^2.1.1"
87
81
  },
88
82
  "publishConfig": {
89
83
  "access": "public"
@@ -93,14 +87,14 @@
93
87
  "build:cli": "tsx ./scripts/build-cli.ts",
94
88
  "build:lib": "tsx ./scripts/build-lib.ts && tsc -p tsconfig.lib.json",
95
89
  "build:tldraw": "pnpm run tldraw:copy-assets && vite build",
96
- "clean": "rimraf pnpm-lock.yaml ; git clean -fdX",
90
+ "clean": "git rm -f pnpm-lock.yaml ; git clean -fdX",
97
91
  "dev": "pnpm run dev:tldraw",
98
92
  "dev:tldraw": "pnpm run tldraw:copy-assets && vite",
99
93
  "fix": "shared-config --fix",
100
94
  "lint": "shared-config --lint",
101
95
  "preview": "pnpm run preview:tldraw",
102
96
  "preview:tldraw": "vite preview",
103
- "release": "pnpm bumpp --commit 'Release: %s' && pnpm build && pnpm publish --otp $(op read 'op://Personal/Npmjs/one-time password?attribute=otp')",
97
+ "release": "bumpp --commit 'Release: %s' && pnpm run build && pnpm publish --otp $(op read 'op://Personal/Npmjs/one-time password?attribute=otp')",
104
98
  "test": "vitest --run",
105
99
  "test:watch": "pnpm run build && vitest",
106
100
  "tldraw:copy-assets": "rsync -av --include='/*/' --exclude='/*' --exclude='favicon.ico' ./node_modules/@tldraw/assets/ ./src/tldraw/public/"