@open-slide/core 2.0.0-beta.2 → 2.0.0-beta.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/README.md +1 -1
- package/dist/{build-Bzy-qlGc.js → build-Cu5_qRyE.js} +1 -1
- package/dist/cli/bin.js +3 -3
- package/dist/{config-nbSvY7z_.js → config-BQ6rD2iE.js} +226 -27
- package/dist/{config-DjWifhaA.d.ts → config-GMR1QUlM.d.ts} +1 -1
- package/dist/{dev-MXa5Tod4.js → dev-BK641O5e.js} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/index.js +1 -1
- package/dist/{preview-DEpQcKz3.js → preview-BuCI-RMW.js} +1 -1
- package/dist/{types-BWg-Dtbg.d.ts → types-BcbaKTNY.d.ts} +60 -0
- package/dist/vite/index.d.ts +1 -1
- package/dist/vite/index.js +1 -1
- package/dist/{zh-tw-DlKyeNX7.js → zh-tw-B51sMTg3.js} +267 -31
- package/package.json +5 -5
- package/src/app/components/asset-view.tsx +448 -0
- package/src/app/components/history-provider.tsx +68 -44
- package/src/app/components/icon-switcher-indicator.tsx +10 -0
- package/src/app/components/inspector/arrange-panel.tsx +449 -0
- package/src/app/components/inspector/inline-text-editor.tsx +170 -284
- package/src/app/components/inspector/inspect-overlay.tsx +642 -295
- package/src/app/components/inspector/inspector-panel.tsx +434 -427
- package/src/app/components/inspector/inspector-provider.tsx +564 -293
- package/src/app/components/inspector/save-bar.tsx +36 -0
- package/src/app/components/panel/editor-sidebar.tsx +50 -0
- package/src/app/components/panel/panel-fields.tsx +204 -16
- package/src/app/components/panel/panel-shell.tsx +3 -18
- package/src/app/components/style-panel/style-panel.tsx +4 -69
- package/src/app/lib/assets.ts +33 -0
- package/src/app/lib/inspector/geometry.test.ts +324 -0
- package/src/app/lib/inspector/geometry.ts +207 -0
- package/src/app/lib/inspector/text-edit-timeline.test.ts +121 -0
- package/src/app/lib/inspector/text-edit-timeline.ts +12 -0
- package/src/app/lib/inspector/text-selection.ts +117 -0
- package/src/app/lib/inspector/use-editor.ts +1 -1
- package/src/app/lib/inspector/use-visual-editor.ts +429 -0
- package/src/app/lib/inspector/visual-dom.ts +255 -0
- package/src/app/lib/keys.ts +9 -0
- package/src/app/lib/pptx/css.test.ts +33 -0
- package/src/app/lib/pptx/css.ts +12 -0
- package/src/app/lib/pptx/measure.ts +1 -19
- package/src/app/lib/use-document-title.test.ts +14 -0
- package/src/app/lib/use-document-title.ts +16 -0
- package/src/app/routes/presenter.tsx +2 -0
- package/src/app/routes/slide.tsx +36 -9
- package/src/locale/en.ts +70 -8
- package/src/locale/ja.ts +72 -7
- package/src/locale/types.ts +60 -0
- package/src/locale/zh-cn.ts +68 -8
- package/src/locale/zh-tw.ts +68 -8
|
@@ -186,6 +186,51 @@ const en = {
|
|
|
186
186
|
nowBadge: "Now"
|
|
187
187
|
},
|
|
188
188
|
inspector: {
|
|
189
|
+
format: "Format",
|
|
190
|
+
editMode: "Edit",
|
|
191
|
+
previewMode: "Preview",
|
|
192
|
+
closeFormatPanel: "Close Format panel",
|
|
193
|
+
editText: "Edit on slide",
|
|
194
|
+
emptySelectionTitle: "Select an object",
|
|
195
|
+
emptySelectionHint: "Click an object to format it. Double-click text to edit.",
|
|
196
|
+
textSelectionHint: "Formatting applies to the selected text.",
|
|
197
|
+
elementText: "Text",
|
|
198
|
+
elementImage: "Image",
|
|
199
|
+
elementShape: "Shape",
|
|
200
|
+
sourceSection: "Source",
|
|
201
|
+
rotateHandle: "Rotate element",
|
|
202
|
+
resizeHandle: "Resize {handle}",
|
|
203
|
+
arrangeSection: "Arrange",
|
|
204
|
+
selectionCount: "{count} elements selected",
|
|
205
|
+
positionLabel: "Position",
|
|
206
|
+
positionX: "Horizontal position",
|
|
207
|
+
positionY: "Vertical position",
|
|
208
|
+
widthLabel: "Width",
|
|
209
|
+
heightLabel: "Height",
|
|
210
|
+
rotationLabel: "Rotation",
|
|
211
|
+
alignToLabel: "Align to",
|
|
212
|
+
alignToSelection: "Selection",
|
|
213
|
+
alignToSlide: "Slide",
|
|
214
|
+
alignLeft: "Align left",
|
|
215
|
+
alignCenter: "Align horizontal centers",
|
|
216
|
+
alignRight: "Align right",
|
|
217
|
+
alignTop: "Align top",
|
|
218
|
+
alignMiddle: "Align vertical centers",
|
|
219
|
+
alignBottom: "Align bottom",
|
|
220
|
+
distributeLabel: "Distribute",
|
|
221
|
+
distributeHorizontal: "Distribute horizontally",
|
|
222
|
+
distributeVertical: "Distribute vertically",
|
|
223
|
+
layerLabel: "Layer",
|
|
224
|
+
bringToFront: "Bring to front",
|
|
225
|
+
bringForward: "Bring forward",
|
|
226
|
+
sendBackward: "Send backward",
|
|
227
|
+
sendToBack: "Send to back",
|
|
228
|
+
smartGuides: "Smart guides",
|
|
229
|
+
selectParent: "Select parent",
|
|
230
|
+
visualEditorHint: "Shift-click to select more. ⌘A selects all. Arrows move 1 px; Shift moves 10 px. Alt ignores guides. Shift constrains drag or keeps resize proportions.",
|
|
231
|
+
sharedLayoutHint: "This element shares its JSX definition with other instances. Select a unique parent container to arrange it independently.",
|
|
232
|
+
inlineLayoutHint: "Select the parent container to move or resize inline content.",
|
|
233
|
+
layerLayoutHint: "Some nested content cannot be positioned independently. Select a positioned parent to change layers.",
|
|
189
234
|
inspect: "Inspect",
|
|
190
235
|
deselect: "Deselect",
|
|
191
236
|
agentWatching: "Agent is watching",
|
|
@@ -202,12 +247,12 @@ const en = {
|
|
|
202
247
|
elementTextPlaceholder: "Element text",
|
|
203
248
|
sizeLabel: "Size",
|
|
204
249
|
weightLabel: "Weight",
|
|
205
|
-
weightLight: "Light
|
|
206
|
-
weightRegular: "Regular
|
|
207
|
-
weightMedium: "Medium
|
|
208
|
-
weightSemibold: "Semibold
|
|
209
|
-
weightBold: "Bold
|
|
210
|
-
weightExtrabold: "Extrabold
|
|
250
|
+
weightLight: "Light",
|
|
251
|
+
weightRegular: "Regular",
|
|
252
|
+
weightMedium: "Medium",
|
|
253
|
+
weightSemibold: "Semibold",
|
|
254
|
+
weightBold: "Bold",
|
|
255
|
+
weightExtrabold: "Extrabold",
|
|
211
256
|
styleLabel: "Style",
|
|
212
257
|
boldAria: "Bold",
|
|
213
258
|
italicAria: "Italic",
|
|
@@ -227,7 +272,7 @@ const en = {
|
|
|
227
272
|
cropFitCover: "Fill",
|
|
228
273
|
cropFitContain: "Fit",
|
|
229
274
|
cropApply: "Apply",
|
|
230
|
-
leaveComment: "
|
|
275
|
+
leaveComment: "Comment",
|
|
231
276
|
commentPlaceholder: "Describe a change for the agent…",
|
|
232
277
|
commentShortcutHint: "⌘/ to focus · ⌘↵ to add",
|
|
233
278
|
addComment: "Add comment",
|
|
@@ -240,7 +285,7 @@ const en = {
|
|
|
240
285
|
other: "{count} comments"
|
|
241
286
|
},
|
|
242
287
|
commentLineLabel: "line {n}",
|
|
243
|
-
commentsEmpty: "No comments yet.
|
|
288
|
+
commentsEmpty: "No comments yet. Select an object and open Comment in the Format panel.",
|
|
244
289
|
commentsApplyHintPrefix: "Run ",
|
|
245
290
|
commentsApplyHintSuffix: " in your agent to apply these.",
|
|
246
291
|
commentDeleteAria: "Delete",
|
|
@@ -310,6 +355,7 @@ const en = {
|
|
|
310
355
|
noMatchingAssetsHint: "Try adjusting your search or filters.",
|
|
311
356
|
clearFilters: "Clear filters",
|
|
312
357
|
searchLogos: "Search logos",
|
|
358
|
+
searchFonts: "Search fonts",
|
|
313
359
|
upload: "Upload",
|
|
314
360
|
dropToUpload: "Drop to upload",
|
|
315
361
|
loading: "Loading…",
|
|
@@ -347,6 +393,18 @@ const en = {
|
|
|
347
393
|
logoSearchEmptyHintSuffix: ".",
|
|
348
394
|
logoVariantLight: "Light",
|
|
349
395
|
logoVariantDark: "Dark",
|
|
396
|
+
fontSearchTitle: "Search Google Fonts",
|
|
397
|
+
fontSearchPoweredByPrefix: "Powered by ",
|
|
398
|
+
fontSearchPlaceholder: "Search font families…",
|
|
399
|
+
fontSearchPreviewPlaceholder: "Preview text",
|
|
400
|
+
fontSearchErrorTitle: "Couldn't reach Google Fonts",
|
|
401
|
+
fontSearchErrorBody: "Check your connection and try again.",
|
|
402
|
+
fontSearchNoResults: "No fonts for \"{query}\"",
|
|
403
|
+
fontSearchEmpty: "No fonts available",
|
|
404
|
+
fontSearchEmptyHintPrefix: "Try a different family name, or browse the full catalog at ",
|
|
405
|
+
fontSearchEmptyHintSuffix: ".",
|
|
406
|
+
fontWeightLabel: "Weight",
|
|
407
|
+
fontPreviewSample: "The quick brown fox jumps over the lazy dog 0123456789",
|
|
350
408
|
toastUploadFailed: "Upload failed ({status})",
|
|
351
409
|
toastReplaced: "Replaced {name}",
|
|
352
410
|
toastUploadedAs: "Uploaded as {name}",
|
|
@@ -356,6 +414,7 @@ const en = {
|
|
|
356
414
|
toastDeleteFailed: "Delete failed ({status})",
|
|
357
415
|
toastDeleted: "Deleted {name}",
|
|
358
416
|
toastDownloadFailed: "Failed to download logo",
|
|
417
|
+
toastFontDownloadFailed: "Failed to download font",
|
|
359
418
|
toastSearchFailed: "Search failed"
|
|
360
419
|
},
|
|
361
420
|
thumbnailRail: {
|
|
@@ -645,6 +704,51 @@ const ja = {
|
|
|
645
704
|
nowBadge: "現在"
|
|
646
705
|
},
|
|
647
706
|
inspector: {
|
|
707
|
+
format: "フォーマット",
|
|
708
|
+
editMode: "編集",
|
|
709
|
+
previewMode: "プレビュー",
|
|
710
|
+
closeFormatPanel: "フォーマットパネルを閉じる",
|
|
711
|
+
editText: "スライドで編集",
|
|
712
|
+
emptySelectionTitle: "オブジェクトを選択",
|
|
713
|
+
emptySelectionHint: "オブジェクトをクリックして書式を設定します。テキストをダブルクリックして編集します。",
|
|
714
|
+
textSelectionHint: "選択したテキストに書式を適用します。",
|
|
715
|
+
elementText: "テキスト",
|
|
716
|
+
elementImage: "画像",
|
|
717
|
+
elementShape: "図形",
|
|
718
|
+
sourceSection: "ソース",
|
|
719
|
+
rotateHandle: "要素を回転",
|
|
720
|
+
resizeHandle: "サイズ変更({handle})",
|
|
721
|
+
arrangeSection: "配置",
|
|
722
|
+
selectionCount: "{count} 個の要素を選択中",
|
|
723
|
+
positionLabel: "位置",
|
|
724
|
+
positionX: "水平位置",
|
|
725
|
+
positionY: "垂直位置",
|
|
726
|
+
widthLabel: "幅",
|
|
727
|
+
heightLabel: "高さ",
|
|
728
|
+
rotationLabel: "回転",
|
|
729
|
+
alignToLabel: "整列の基準",
|
|
730
|
+
alignToSelection: "選択範囲",
|
|
731
|
+
alignToSlide: "スライド",
|
|
732
|
+
alignLeft: "左揃え",
|
|
733
|
+
alignCenter: "左右中央揃え",
|
|
734
|
+
alignRight: "右揃え",
|
|
735
|
+
alignTop: "上揃え",
|
|
736
|
+
alignMiddle: "上下中央揃え",
|
|
737
|
+
alignBottom: "下揃え",
|
|
738
|
+
distributeLabel: "均等配置",
|
|
739
|
+
distributeHorizontal: "左右に均等配置",
|
|
740
|
+
distributeVertical: "上下に均等配置",
|
|
741
|
+
layerLabel: "重なり順",
|
|
742
|
+
bringToFront: "最前面へ移動",
|
|
743
|
+
bringForward: "前面へ移動",
|
|
744
|
+
sendBackward: "背面へ移動",
|
|
745
|
+
sendToBack: "最背面へ移動",
|
|
746
|
+
smartGuides: "スマートガイド",
|
|
747
|
+
selectParent: "親要素を選択",
|
|
748
|
+
visualEditorHint: "Shift クリックで複数選択、⌘A で全選択。矢印キーで 1 px、Shift を押すと 10 px 移動。Alt でスナップを無効化。Shift で移動方向や縦横比を固定。",
|
|
749
|
+
sharedLayoutHint: "この要素は他のインスタンスと JSX 定義を共有しています。個別に配置するには、固有の親コンテナを選択してください。",
|
|
750
|
+
inlineLayoutHint: "インライン要素を移動またはサイズ変更するには、親コンテナを選択してください。",
|
|
751
|
+
layerLayoutHint: "一部の子要素は個別に配置できません。位置が設定された親コンテナを選択して重なり順を変更してください。",
|
|
648
752
|
inspect: "インスペクト",
|
|
649
753
|
deselect: "選択解除",
|
|
650
754
|
contentSection: "コンテンツ",
|
|
@@ -657,12 +761,12 @@ const ja = {
|
|
|
657
761
|
elementTextPlaceholder: "要素のテキスト",
|
|
658
762
|
sizeLabel: "サイズ",
|
|
659
763
|
weightLabel: "ウェイト",
|
|
660
|
-
weightLight: "Light
|
|
661
|
-
weightRegular: "Regular
|
|
662
|
-
weightMedium: "Medium
|
|
663
|
-
weightSemibold: "Semibold
|
|
664
|
-
weightBold: "Bold
|
|
665
|
-
weightExtrabold: "Extrabold
|
|
764
|
+
weightLight: "Light",
|
|
765
|
+
weightRegular: "Regular",
|
|
766
|
+
weightMedium: "Medium",
|
|
767
|
+
weightSemibold: "Semibold",
|
|
768
|
+
weightBold: "Bold",
|
|
769
|
+
weightExtrabold: "Extrabold",
|
|
666
770
|
styleLabel: "スタイル",
|
|
667
771
|
boldAria: "太字",
|
|
668
772
|
italicAria: "斜体",
|
|
@@ -686,7 +790,7 @@ const ja = {
|
|
|
686
790
|
agentWatchingTooltip: "選択中の要素はエージェントにリアルタイムで同期されています。",
|
|
687
791
|
agentNotWatching: "エージェント未接続",
|
|
688
792
|
agentNotWatchingTooltip: "dev server との接続が切れたため、選択中の要素がエージェントに見えなくなっています。dev server を再起動して接続を復旧してください。",
|
|
689
|
-
leaveComment: "
|
|
793
|
+
leaveComment: "コメント",
|
|
690
794
|
commentPlaceholder: "エージェントに依頼する変更を記述…",
|
|
691
795
|
commentShortcutHint: "⌘/ でフォーカス · ⌘↵ で追加",
|
|
692
796
|
addComment: "コメントを追加",
|
|
@@ -769,6 +873,7 @@ const ja = {
|
|
|
769
873
|
noMatchingAssetsHint: "検索条件またはフィルターを調整してください。",
|
|
770
874
|
clearFilters: "フィルターをクリア",
|
|
771
875
|
searchLogos: "ロゴを検索",
|
|
876
|
+
searchFonts: "フォントを検索",
|
|
772
877
|
upload: "アップロード",
|
|
773
878
|
dropToUpload: "ドロップでアップロード",
|
|
774
879
|
loading: "読み込み中…",
|
|
@@ -806,6 +911,18 @@ const ja = {
|
|
|
806
911
|
logoSearchEmptyHintSuffix: "。",
|
|
807
912
|
logoVariantLight: "ライト",
|
|
808
913
|
logoVariantDark: "ダーク",
|
|
914
|
+
fontSearchTitle: "Google Fonts を検索",
|
|
915
|
+
fontSearchPoweredByPrefix: "Powered by ",
|
|
916
|
+
fontSearchPlaceholder: "フォントファミリーで検索…",
|
|
917
|
+
fontSearchPreviewPlaceholder: "プレビューテキスト",
|
|
918
|
+
fontSearchErrorTitle: "Google Fonts に接続できません",
|
|
919
|
+
fontSearchErrorBody: "接続を確認して再試行してください。",
|
|
920
|
+
fontSearchNoResults: "「{query}」のフォントは見つかりません",
|
|
921
|
+
fontSearchEmpty: "利用可能なフォントはありません",
|
|
922
|
+
fontSearchEmptyHintPrefix: "別のファミリー名を試すか、次のサイトでカタログ全体を閲覧してください: ",
|
|
923
|
+
fontSearchEmptyHintSuffix: "。",
|
|
924
|
+
fontWeightLabel: "ウェイト",
|
|
925
|
+
fontPreviewSample: "いろはにほへと 永遠 ABCabc 0123456789",
|
|
809
926
|
toastUploadFailed: "アップロードに失敗しました ({status})",
|
|
810
927
|
toastReplaced: "{name} を置き換えました",
|
|
811
928
|
toastUploadedAs: "{name} としてアップロードしました",
|
|
@@ -815,6 +932,7 @@ const ja = {
|
|
|
815
932
|
toastDeleteFailed: "削除に失敗しました ({status})",
|
|
816
933
|
toastDeleted: "{name} を削除しました",
|
|
817
934
|
toastDownloadFailed: "ロゴのダウンロードに失敗しました",
|
|
935
|
+
toastFontDownloadFailed: "フォントのダウンロードに失敗しました",
|
|
818
936
|
toastSearchFailed: "検索に失敗しました"
|
|
819
937
|
},
|
|
820
938
|
thumbnailRail: {
|
|
@@ -1104,6 +1222,51 @@ const zhCN = {
|
|
|
1104
1222
|
nowBadge: "当前"
|
|
1105
1223
|
},
|
|
1106
1224
|
inspector: {
|
|
1225
|
+
format: "格式",
|
|
1226
|
+
editMode: "编辑",
|
|
1227
|
+
previewMode: "预览",
|
|
1228
|
+
closeFormatPanel: "关闭格式面板",
|
|
1229
|
+
editText: "在幻灯片上编辑",
|
|
1230
|
+
emptySelectionTitle: "选择一个对象",
|
|
1231
|
+
emptySelectionHint: "单击对象即可调整格式。双击文字即可编辑。",
|
|
1232
|
+
textSelectionHint: "格式将应用于选中的文字。",
|
|
1233
|
+
elementText: "文字",
|
|
1234
|
+
elementImage: "图片",
|
|
1235
|
+
elementShape: "形状",
|
|
1236
|
+
sourceSection: "源代码",
|
|
1237
|
+
rotateHandle: "旋转元素",
|
|
1238
|
+
resizeHandle: "调整尺寸({handle})",
|
|
1239
|
+
arrangeSection: "排列",
|
|
1240
|
+
selectionCount: "已选择 {count} 个元素",
|
|
1241
|
+
positionLabel: "位置",
|
|
1242
|
+
positionX: "水平位置",
|
|
1243
|
+
positionY: "垂直位置",
|
|
1244
|
+
widthLabel: "宽度",
|
|
1245
|
+
heightLabel: "高度",
|
|
1246
|
+
rotationLabel: "旋转",
|
|
1247
|
+
alignToLabel: "对齐基准",
|
|
1248
|
+
alignToSelection: "所选元素",
|
|
1249
|
+
alignToSlide: "幻灯片",
|
|
1250
|
+
alignLeft: "左对齐",
|
|
1251
|
+
alignCenter: "水平居中",
|
|
1252
|
+
alignRight: "右对齐",
|
|
1253
|
+
alignTop: "顶部对齐",
|
|
1254
|
+
alignMiddle: "垂直居中",
|
|
1255
|
+
alignBottom: "底部对齐",
|
|
1256
|
+
distributeLabel: "平均分布",
|
|
1257
|
+
distributeHorizontal: "水平平均分布",
|
|
1258
|
+
distributeVertical: "垂直平均分布",
|
|
1259
|
+
layerLabel: "图层",
|
|
1260
|
+
bringToFront: "置于顶层",
|
|
1261
|
+
bringForward: "上移一层",
|
|
1262
|
+
sendBackward: "下移一层",
|
|
1263
|
+
sendToBack: "置于底层",
|
|
1264
|
+
smartGuides: "智能参考线",
|
|
1265
|
+
selectParent: "选择父级",
|
|
1266
|
+
visualEditorHint: "按住 Shift 点击可多选,⌘A 全选。方向键移动 1 px,按住 Shift 移动 10 px。Alt 暂停吸附。Shift 限制拖动方向或等比例缩放。",
|
|
1267
|
+
sharedLayoutHint: "此元素与其他实例共用 JSX 定义。请选择独立的父级容器,以单独调整排列。",
|
|
1268
|
+
inlineLayoutHint: "请选择父级容器,以移动行内内容或调整尺寸。",
|
|
1269
|
+
layerLayoutHint: "部分内部内容无法独立定位。请选择已设置定位的父级容器,以调整图层。",
|
|
1107
1270
|
inspect: "检查",
|
|
1108
1271
|
deselect: "取消选择",
|
|
1109
1272
|
contentSection: "内容",
|
|
@@ -1116,12 +1279,12 @@ const zhCN = {
|
|
|
1116
1279
|
elementTextPlaceholder: "元素文字",
|
|
1117
1280
|
sizeLabel: "大小",
|
|
1118
1281
|
weightLabel: "字重",
|
|
1119
|
-
weightLight: "细体
|
|
1120
|
-
weightRegular: "常规
|
|
1121
|
-
weightMedium: "中等
|
|
1122
|
-
weightSemibold: "半粗
|
|
1123
|
-
weightBold: "粗体
|
|
1124
|
-
weightExtrabold: "特粗
|
|
1282
|
+
weightLight: "细体",
|
|
1283
|
+
weightRegular: "常规",
|
|
1284
|
+
weightMedium: "中等",
|
|
1285
|
+
weightSemibold: "半粗",
|
|
1286
|
+
weightBold: "粗体",
|
|
1287
|
+
weightExtrabold: "特粗",
|
|
1125
1288
|
styleLabel: "样式",
|
|
1126
1289
|
boldAria: "粗体",
|
|
1127
1290
|
italicAria: "斜体",
|
|
@@ -1145,7 +1308,7 @@ const zhCN = {
|
|
|
1145
1308
|
agentWatchingTooltip: "选取的元素会即时同步给 agent。",
|
|
1146
1309
|
agentNotWatching: "Agent 没在关注",
|
|
1147
1310
|
agentNotWatchingTooltip: "已和 dev server 断开连接,agent 看不到你选的元素了。请重新启动 dev server 来恢复连接。",
|
|
1148
|
-
leaveComment: "
|
|
1311
|
+
leaveComment: "评论",
|
|
1149
1312
|
commentPlaceholder: "描述你希望代理执行的更改…",
|
|
1150
1313
|
commentShortcutHint: "⌘/ 聚焦 · ⌘↵ 添加",
|
|
1151
1314
|
addComment: "添加 comment",
|
|
@@ -1158,7 +1321,7 @@ const zhCN = {
|
|
|
1158
1321
|
other: "{count} 条评论"
|
|
1159
1322
|
},
|
|
1160
1323
|
commentLineLabel: "第 {n} 行",
|
|
1161
|
-
commentsEmpty: "
|
|
1324
|
+
commentsEmpty: "还没有评论。选中对象后,在格式面板中打开“评论”。",
|
|
1162
1325
|
commentsApplyHintPrefix: "在你的代理中运行 ",
|
|
1163
1326
|
commentsApplyHintSuffix: " 以应用这些更改。",
|
|
1164
1327
|
commentDeleteAria: "删除",
|
|
@@ -1228,6 +1391,7 @@ const zhCN = {
|
|
|
1228
1391
|
noMatchingAssetsHint: "请调整搜索或筛选条件。",
|
|
1229
1392
|
clearFilters: "清除筛选",
|
|
1230
1393
|
searchLogos: "搜索 Logo",
|
|
1394
|
+
searchFonts: "搜索字体",
|
|
1231
1395
|
upload: "上传",
|
|
1232
1396
|
dropToUpload: "拖入即可上传",
|
|
1233
1397
|
loading: "加载中…",
|
|
@@ -1265,6 +1429,18 @@ const zhCN = {
|
|
|
1265
1429
|
logoSearchEmptyHintSuffix: "。",
|
|
1266
1430
|
logoVariantLight: "浅色",
|
|
1267
1431
|
logoVariantDark: "深色",
|
|
1432
|
+
fontSearchTitle: "搜索 Google Fonts",
|
|
1433
|
+
fontSearchPoweredByPrefix: "由 ",
|
|
1434
|
+
fontSearchPlaceholder: "搜索字体家族…",
|
|
1435
|
+
fontSearchPreviewPlaceholder: "预览文字",
|
|
1436
|
+
fontSearchErrorTitle: "无法连接至 Google Fonts",
|
|
1437
|
+
fontSearchErrorBody: "请检查网络连接后重试。",
|
|
1438
|
+
fontSearchNoResults: "找不到「{query}」的字体",
|
|
1439
|
+
fontSearchEmpty: "无可用字体",
|
|
1440
|
+
fontSearchEmptyHintPrefix: "试试其他字体家族名,或在以下网站浏览完整目录: ",
|
|
1441
|
+
fontSearchEmptyHintSuffix: "。",
|
|
1442
|
+
fontWeightLabel: "字重",
|
|
1443
|
+
fontPreviewSample: "永和九年 岁在癸丑 ABCabc 0123456789",
|
|
1268
1444
|
toastUploadFailed: "上传失败 ({status})",
|
|
1269
1445
|
toastReplaced: "已替换 {name}",
|
|
1270
1446
|
toastUploadedAs: "已以 {name} 上传",
|
|
@@ -1274,6 +1450,7 @@ const zhCN = {
|
|
|
1274
1450
|
toastDeleteFailed: "删除失败 ({status})",
|
|
1275
1451
|
toastDeleted: "已删除 {name}",
|
|
1276
1452
|
toastDownloadFailed: "下载 Logo 失败",
|
|
1453
|
+
toastFontDownloadFailed: "下载字体失败",
|
|
1277
1454
|
toastSearchFailed: "搜索失败"
|
|
1278
1455
|
},
|
|
1279
1456
|
thumbnailRail: {
|
|
@@ -1563,6 +1740,51 @@ const zhTW = {
|
|
|
1563
1740
|
nowBadge: "目前"
|
|
1564
1741
|
},
|
|
1565
1742
|
inspector: {
|
|
1743
|
+
format: "格式",
|
|
1744
|
+
editMode: "編輯",
|
|
1745
|
+
previewMode: "預覽",
|
|
1746
|
+
closeFormatPanel: "關閉格式面板",
|
|
1747
|
+
editText: "在投影片上編輯",
|
|
1748
|
+
emptySelectionTitle: "選取一個物件",
|
|
1749
|
+
emptySelectionHint: "按一下物件即可調整格式。按兩下文字即可編輯。",
|
|
1750
|
+
textSelectionHint: "格式將套用至選取的文字。",
|
|
1751
|
+
elementText: "文字",
|
|
1752
|
+
elementImage: "圖片",
|
|
1753
|
+
elementShape: "形狀",
|
|
1754
|
+
sourceSection: "原始碼",
|
|
1755
|
+
rotateHandle: "旋轉元素",
|
|
1756
|
+
resizeHandle: "調整尺寸({handle})",
|
|
1757
|
+
arrangeSection: "排列",
|
|
1758
|
+
selectionCount: "已選取 {count} 個元素",
|
|
1759
|
+
positionLabel: "位置",
|
|
1760
|
+
positionX: "水平位置",
|
|
1761
|
+
positionY: "垂直位置",
|
|
1762
|
+
widthLabel: "寬度",
|
|
1763
|
+
heightLabel: "高度",
|
|
1764
|
+
rotationLabel: "旋轉",
|
|
1765
|
+
alignToLabel: "對齊基準",
|
|
1766
|
+
alignToSelection: "所選元素",
|
|
1767
|
+
alignToSlide: "投影片",
|
|
1768
|
+
alignLeft: "靠左對齊",
|
|
1769
|
+
alignCenter: "水平置中",
|
|
1770
|
+
alignRight: "靠右對齊",
|
|
1771
|
+
alignTop: "靠上對齊",
|
|
1772
|
+
alignMiddle: "垂直置中",
|
|
1773
|
+
alignBottom: "靠下對齊",
|
|
1774
|
+
distributeLabel: "平均分佈",
|
|
1775
|
+
distributeHorizontal: "水平平均分佈",
|
|
1776
|
+
distributeVertical: "垂直平均分佈",
|
|
1777
|
+
layerLabel: "圖層",
|
|
1778
|
+
bringToFront: "移到最上層",
|
|
1779
|
+
bringForward: "上移一層",
|
|
1780
|
+
sendBackward: "下移一層",
|
|
1781
|
+
sendToBack: "移到最下層",
|
|
1782
|
+
smartGuides: "智慧對齊線",
|
|
1783
|
+
selectParent: "選取父層",
|
|
1784
|
+
visualEditorHint: "Shift 點選可複選,⌘A 全選。方向鍵移動 1 px,按住 Shift 移動 10 px。Alt 暫停吸附。Shift 限制拖曳方向或等比例縮放。",
|
|
1785
|
+
sharedLayoutHint: "此元素與其他實例共用 JSX 定義。請選取獨立的父層容器,以單獨調整排列。",
|
|
1786
|
+
inlineLayoutHint: "請選取父層容器,以移動行內內容或調整尺寸。",
|
|
1787
|
+
layerLayoutHint: "部分內部內容無法獨立定位。請選取已設定定位的父層容器,以調整圖層。",
|
|
1566
1788
|
inspect: "檢視",
|
|
1567
1789
|
deselect: "取消選取",
|
|
1568
1790
|
contentSection: "內容",
|
|
@@ -1575,12 +1797,12 @@ const zhTW = {
|
|
|
1575
1797
|
elementTextPlaceholder: "元素文字",
|
|
1576
1798
|
sizeLabel: "大小",
|
|
1577
1799
|
weightLabel: "字重",
|
|
1578
|
-
weightLight: "細體
|
|
1579
|
-
weightRegular: "一般
|
|
1580
|
-
weightMedium: "中等
|
|
1581
|
-
weightSemibold: "半粗體
|
|
1582
|
-
weightBold: "粗體
|
|
1583
|
-
weightExtrabold: "特粗
|
|
1800
|
+
weightLight: "細體",
|
|
1801
|
+
weightRegular: "一般",
|
|
1802
|
+
weightMedium: "中等",
|
|
1803
|
+
weightSemibold: "半粗體",
|
|
1804
|
+
weightBold: "粗體",
|
|
1805
|
+
weightExtrabold: "特粗",
|
|
1584
1806
|
styleLabel: "樣式",
|
|
1585
1807
|
boldAria: "粗體",
|
|
1586
1808
|
italicAria: "斜體",
|
|
@@ -1604,7 +1826,7 @@ const zhTW = {
|
|
|
1604
1826
|
agentWatchingTooltip: "選取的元素會即時同步給 agent。",
|
|
1605
1827
|
agentNotWatching: "Agent 沒在關注",
|
|
1606
1828
|
agentNotWatchingTooltip: "已和 dev server 斷線,agent 看不到你選的元素了。請重新啟動 dev server 來恢復連線。",
|
|
1607
|
-
leaveComment: "
|
|
1829
|
+
leaveComment: "留言",
|
|
1608
1830
|
commentPlaceholder: "描述你希望代理進行的修改…",
|
|
1609
1831
|
commentShortcutHint: "⌘/ 聚焦 · ⌘↵ 新增",
|
|
1610
1832
|
addComment: "新增 comment",
|
|
@@ -1617,7 +1839,7 @@ const zhTW = {
|
|
|
1617
1839
|
other: "{count} 則留言"
|
|
1618
1840
|
},
|
|
1619
1841
|
commentLineLabel: "第 {n} 行",
|
|
1620
|
-
commentsEmpty: "
|
|
1842
|
+
commentsEmpty: "還沒有留言。選取物件後,在格式面板中開啟「留言」。",
|
|
1621
1843
|
commentsApplyHintPrefix: "在你的代理中執行 ",
|
|
1622
1844
|
commentsApplyHintSuffix: " 以套用這些變更。",
|
|
1623
1845
|
commentDeleteAria: "刪除",
|
|
@@ -1687,6 +1909,7 @@ const zhTW = {
|
|
|
1687
1909
|
noMatchingAssetsHint: "請調整搜尋或篩選條件。",
|
|
1688
1910
|
clearFilters: "清除篩選",
|
|
1689
1911
|
searchLogos: "搜尋 Logo",
|
|
1912
|
+
searchFonts: "搜尋字型",
|
|
1690
1913
|
upload: "上傳",
|
|
1691
1914
|
dropToUpload: "拖入即可上傳",
|
|
1692
1915
|
loading: "載入中…",
|
|
@@ -1724,6 +1947,18 @@ const zhTW = {
|
|
|
1724
1947
|
logoSearchEmptyHintSuffix: "。",
|
|
1725
1948
|
logoVariantLight: "淺色",
|
|
1726
1949
|
logoVariantDark: "深色",
|
|
1950
|
+
fontSearchTitle: "搜尋 Google Fonts",
|
|
1951
|
+
fontSearchPoweredByPrefix: "由 ",
|
|
1952
|
+
fontSearchPlaceholder: "搜尋字型家族…",
|
|
1953
|
+
fontSearchPreviewPlaceholder: "預覽文字",
|
|
1954
|
+
fontSearchErrorTitle: "無法連線至 Google Fonts",
|
|
1955
|
+
fontSearchErrorBody: "請檢查網路連線後重試。",
|
|
1956
|
+
fontSearchNoResults: "找不到「{query}」的字型",
|
|
1957
|
+
fontSearchEmpty: "沒有可用的字型",
|
|
1958
|
+
fontSearchEmptyHintPrefix: "試試其他字型家族名稱,或在以下網站瀏覽完整目錄: ",
|
|
1959
|
+
fontSearchEmptyHintSuffix: "。",
|
|
1960
|
+
fontWeightLabel: "字重",
|
|
1961
|
+
fontPreviewSample: "永和九年 歲在癸丑 ABCabc 0123456789",
|
|
1727
1962
|
toastUploadFailed: "上傳失敗 ({status})",
|
|
1728
1963
|
toastReplaced: "已取代 {name}",
|
|
1729
1964
|
toastUploadedAs: "已以 {name} 上傳",
|
|
@@ -1733,6 +1968,7 @@ const zhTW = {
|
|
|
1733
1968
|
toastDeleteFailed: "刪除失敗 ({status})",
|
|
1734
1969
|
toastDeleted: "已刪除 {name}",
|
|
1735
1970
|
toastDownloadFailed: "下載 Logo 失敗",
|
|
1971
|
+
toastFontDownloadFailed: "下載字型失敗",
|
|
1736
1972
|
toastSearchFailed: "搜尋失敗"
|
|
1737
1973
|
},
|
|
1738
1974
|
thumbnailRail: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-slide/core",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.5",
|
|
4
4
|
"description": "Runtime and CLI for open-slide — write slides in slides/, we handle the rest.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
"homepage": "https://open-slide.dev",
|
|
50
50
|
"repository": {
|
|
51
51
|
"type": "git",
|
|
52
|
-
"url": "git+https://github.com/
|
|
52
|
+
"url": "git+https://github.com/open-slide/open-slide.git",
|
|
53
53
|
"directory": "packages/core"
|
|
54
54
|
},
|
|
55
55
|
"bugs": {
|
|
56
|
-
"url": "https://github.com/
|
|
56
|
+
"url": "https://github.com/open-slide/open-slide/issues"
|
|
57
57
|
},
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@dnd-kit/utilities": "^3.2.2",
|
|
68
68
|
"@fontsource-variable/geist": "^5.2.8",
|
|
69
69
|
"@tailwindcss/vite": "^4.3.3",
|
|
70
|
-
"@vitejs/plugin-react": "^6.1.
|
|
70
|
+
"@vitejs/plugin-react": "^6.1.1",
|
|
71
71
|
"chalk": "^6.0.0",
|
|
72
72
|
"class-variance-authority": "^0.7.1",
|
|
73
73
|
"clsx": "^2.1.1",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
95
|
"@playwright/test": "~1.62.1",
|
|
96
|
-
"@types/node": "^26.2
|
|
96
|
+
"@types/node": "^26.6.2",
|
|
97
97
|
"@types/react": "^19.2.18",
|
|
98
98
|
"@types/react-dom": "^19.2.5",
|
|
99
99
|
"tsdown": "^0.22.14",
|