@open-slide/core 1.11.1 → 1.12.1

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.
@@ -11,6 +11,7 @@ import {
11
11
  Loader2,
12
12
  Maximize,
13
13
  MonitorSpeaker,
14
+ MoreHorizontal,
14
15
  Play,
15
16
  Presentation,
16
17
  } from 'lucide-react';
@@ -49,6 +50,7 @@ import { format, useLocale } from '@/lib/use-locale';
49
50
  import { useWheelPageNavigation } from '@/lib/use-wheel-page-navigation';
50
51
  import { cn } from '@/lib/utils';
51
52
  import { NotesDrawer } from '../components/notes-drawer';
53
+ import { OverviewGrid } from '../components/overview-grid';
52
54
  import { PdfProgressToast } from '../components/pdf-progress-toast';
53
55
  import { openPresenterWindow, Player } from '../components/player';
54
56
  import { PptxProgressToast } from '../components/pptx-progress-toast';
@@ -74,6 +76,7 @@ export function Slide() {
74
76
  const [linkCopied, setLinkCopied] = useState(false);
75
77
  const linkCopiedTimerRef = useRef<ReturnType<typeof setTimeout> | null>(null);
76
78
  const [designOpen, setDesignOpen] = useState(false);
79
+ const [overviewOpen, setOverviewOpen] = useState(false);
77
80
 
78
81
  useEffect(() => {
79
82
  return () => {
@@ -237,6 +240,18 @@ export function Slide() {
237
240
  if (playMode) return;
238
241
  const onKey = (e: KeyboardEvent) => {
239
242
  if (e.target instanceof HTMLElement && e.target.matches('input, textarea')) return;
243
+ // Letter shortcuts only fire bare so browser combos (Cmd/Ctrl-P, ⌘F…) stay intact.
244
+ if (e.altKey || e.ctrlKey || e.metaKey) return;
245
+ // Toggle overview from either state — the overview's own capture-phase
246
+ // handler doesn't consume O, so this stays consistent open ↔ closed.
247
+ if (e.key === 'o' || e.key === 'O') {
248
+ e.preventDefault();
249
+ setOverviewOpen((v) => !v);
250
+ return;
251
+ }
252
+ // Once overview owns focus, swallow everything else here — its
253
+ // capture-phase listener drives the focused thumbnail.
254
+ if (overviewOpen) return;
240
255
  if (
241
256
  e.key === 'ArrowRight' ||
242
257
  e.key === 'ArrowDown' ||
@@ -252,8 +267,6 @@ export function Slide() {
252
267
  goTo(index - 1);
253
268
  return;
254
269
  }
255
- // Letter shortcuts only fire bare so browser combos (Cmd/Ctrl-P, ⌘F…) stay intact.
256
- if (e.altKey || e.ctrlKey || e.metaKey) return;
257
270
  if (e.key === 'f' || e.key === 'F') {
258
271
  setPlayMode('fullscreen');
259
272
  } else if (e.key === 'Enter') {
@@ -267,7 +280,7 @@ export function Slide() {
267
280
  };
268
281
  window.addEventListener('keydown', onKey);
269
282
  return () => window.removeEventListener('keydown', onKey);
270
- }, [index, goTo, playMode, slideId]);
283
+ }, [index, goTo, playMode, slideId, overviewOpen]);
271
284
 
272
285
  if (error) {
273
286
  return (
@@ -364,6 +377,127 @@ export function Slide() {
364
377
 
365
378
  const title = slide.meta?.title ?? slideId;
366
379
 
380
+ const copyLink = async () => {
381
+ try {
382
+ await navigator.clipboard.writeText(window.location.href);
383
+ toast.success(t.slide.toastCopyLinkSuccess);
384
+ setLinkCopied(true);
385
+ if (linkCopiedTimerRef.current) clearTimeout(linkCopiedTimerRef.current);
386
+ linkCopiedTimerRef.current = setTimeout(() => setLinkCopied(false), 1200);
387
+ } catch (err) {
388
+ console.error('[open-slide] copy link failed', err);
389
+ toast.error(t.slide.toastCopyLinkFailed);
390
+ }
391
+ };
392
+
393
+ const exportHtml = async () => {
394
+ if (!slide || exporting) return;
395
+ setExporting(true);
396
+ try {
397
+ await exportSlideAsHtml(slide, slideId);
398
+ } catch (err) {
399
+ console.error('[open-slide] export failed', err);
400
+ } finally {
401
+ setExporting(false);
402
+ }
403
+ };
404
+
405
+ const exportPdf = async () => {
406
+ if (!slide || exporting) return;
407
+ if (isSafari()) {
408
+ toast.error(t.slide.pdfExportSafariUnsupported, { duration: 5000 });
409
+ return;
410
+ }
411
+ setExporting(true);
412
+ const toastId = `pdf-export-${slideId}`;
413
+ toast.custom(
414
+ () => (
415
+ <PdfProgressToast
416
+ progress={{ phase: 'processing', current: 0, total: pages.length, percent: 0 }}
417
+ />
418
+ ),
419
+ { id: toastId, duration: Infinity },
420
+ );
421
+ try {
422
+ await exportSlideAsPdf(slide, slideId, (p) => {
423
+ toast.custom(() => <PdfProgressToast progress={p} />, { id: toastId, duration: Infinity });
424
+ });
425
+ } catch (err) {
426
+ console.error('[open-slide] pdf export failed', err);
427
+ toast.error(t.slide.pdfExportFailed, { id: toastId, duration: 4000 });
428
+ } finally {
429
+ setExporting(false);
430
+ toast.dismiss(toastId);
431
+ }
432
+ };
433
+
434
+ const exportImagePptx = async () => {
435
+ if (!slide || exporting) return;
436
+ setExporting(true);
437
+ const toastId = `pptx-export-${slideId}`;
438
+ toast.custom(
439
+ () => (
440
+ <PptxProgressToast
441
+ progress={{ phase: 'processing', current: 0, total: pages.length, percent: 0 }}
442
+ />
443
+ ),
444
+ { id: toastId, duration: Infinity },
445
+ );
446
+ try {
447
+ await exportSlideAsImagePptx(slide, slideId, (p) => {
448
+ toast.custom(() => <PptxProgressToast progress={p} />, { id: toastId, duration: Infinity });
449
+ });
450
+ } catch (err) {
451
+ console.error('[open-slide] image pptx export failed', err);
452
+ toast.error(t.slide.imagePptxExportFailed, { id: toastId, duration: 4000 });
453
+ } finally {
454
+ setExporting(false);
455
+ toast.dismiss(toastId);
456
+ }
457
+ };
458
+
459
+ const exportMenuItems = (
460
+ <>
461
+ <DropdownMenuItem disabled={exporting} onSelect={exportHtml}>
462
+ <FileCode2 />
463
+ {t.slide.exportAsHtml}
464
+ </DropdownMenuItem>
465
+ <DropdownMenuItem disabled={exporting} onSelect={exportPdf}>
466
+ <FileText />
467
+ {t.slide.exportAsPdf}
468
+ </DropdownMenuItem>
469
+ <DropdownMenuSeparator />
470
+ <DropdownMenuItem disabled={exporting} onSelect={exportImagePptx}>
471
+ <FileImage />
472
+ {t.slide.exportAsImagePptx}
473
+ </DropdownMenuItem>
474
+ <TooltipProvider delayDuration={200}>
475
+ <Tooltip>
476
+ <TooltipTrigger asChild>
477
+ <div
478
+ aria-disabled
479
+ className="relative flex cursor-help items-center justify-between gap-2 rounded-[5px] px-2 py-1.5 text-[12.5px] opacity-45 select-none [&_svg]:size-3.5 [&_svg]:shrink-0 [&_svg]:opacity-80"
480
+ >
481
+ <span className="flex items-center gap-2">
482
+ <Presentation />
483
+ {t.slide.exportAsPptx}
484
+ </span>
485
+ <span className="rounded-[3px] bg-muted px-1.5 py-0.5 font-mono text-[9.5px] tracking-[0.04em] text-muted-foreground">
486
+ {t.slide.comingSoon}
487
+ </span>
488
+ </div>
489
+ </TooltipTrigger>
490
+ <TooltipContent
491
+ side="left"
492
+ className="w-max max-w-[min(520px,calc(100vw-2rem))] text-center leading-relaxed"
493
+ >
494
+ {t.slide.pptxComingSoonTooltip}
495
+ </TooltipContent>
496
+ </Tooltip>
497
+ </TooltipProvider>
498
+ </>
499
+ );
500
+
367
501
  return (
368
502
  <HistoryProvider>
369
503
  <InspectorProvider slideId={slideId} pageIndex={index}>
@@ -371,7 +505,7 @@ export function Slide() {
371
505
  <div className="flex h-dvh flex-col overflow-hidden bg-background text-foreground">
372
506
  {/* Editorial toolbar — three zones, hairline separators, mono-folio center */}
373
507
  <header className="relative flex h-12 shrink-0 items-center gap-2 border-b border-hairline bg-sidebar/85 px-2 backdrop-blur-md md:px-3">
374
- <div className="flex shrink-0 items-center gap-1.5 md:gap-2">
508
+ <div className="flex flex-1 items-center gap-1.5 md:flex-none md:gap-2">
375
509
  {showSlideBrowser && (
376
510
  <Button asChild variant="ghost" size="icon-sm" title={t.slide.home}>
377
511
  <Link to="/" aria-label={t.slide.backToHome}>
@@ -404,32 +538,26 @@ export function Slide() {
404
538
  {import.meta.env.DEV && <AgentConnectedBadge />}
405
539
  </div>
406
540
 
407
- {/* Title centered to the viewport, not the leftover space between the side groups. */}
408
- <div className="pointer-events-none absolute inset-x-0 flex justify-center px-2">
541
+ {/* On md+ the title centers to the viewport via absolute positioning. On mobile the
542
+ two side groups each flex-1, so the in-flow title lands at the viewport center too —
543
+ and min-w-0 lets it truncate instead of overlapping the icons on narrow widths. */}
544
+ <div className="pointer-events-none relative flex min-w-0 justify-center px-2 md:absolute md:inset-x-0">
409
545
  <div className="pointer-events-auto min-w-0 max-w-[34rem]">
410
546
  <InlineTitleEditor title={title} onSubmit={(next) => renameSlide(slideId, next)} />
411
547
  </div>
412
548
  </div>
413
549
 
414
- <div className="ml-auto flex shrink-0 items-center gap-1">
550
+ <div className="flex flex-1 items-center justify-end gap-1 md:ml-auto md:flex-none">
415
551
  {view === 'slides' && (
416
552
  <button
417
553
  type="button"
418
554
  aria-label={t.slide.copyLink}
419
555
  title={t.slide.copyLink}
420
- className={cn(buttonVariants({ variant: 'ghost', size: 'icon-sm' }))}
421
- onClick={async () => {
422
- try {
423
- await navigator.clipboard.writeText(window.location.href);
424
- toast.success(t.slide.toastCopyLinkSuccess);
425
- setLinkCopied(true);
426
- if (linkCopiedTimerRef.current) clearTimeout(linkCopiedTimerRef.current);
427
- linkCopiedTimerRef.current = setTimeout(() => setLinkCopied(false), 1200);
428
- } catch (err) {
429
- console.error('[open-slide] copy link failed', err);
430
- toast.error(t.slide.toastCopyLinkFailed);
431
- }
432
- }}
556
+ className={cn(
557
+ buttonVariants({ variant: 'ghost', size: 'icon-sm' }),
558
+ 'hidden md:inline-flex',
559
+ )}
560
+ onClick={copyLink}
433
561
  >
434
562
  <span className="relative grid size-4 place-items-center">
435
563
  <Link2
@@ -454,7 +582,10 @@ export function Slide() {
454
582
  disabled={exporting}
455
583
  aria-label={t.slide.download}
456
584
  title={t.slide.download}
457
- className={cn(buttonVariants({ variant: 'ghost', size: 'icon-sm' }))}
585
+ className={cn(
586
+ buttonVariants({ variant: 'ghost', size: 'icon-sm' }),
587
+ 'hidden md:inline-flex',
588
+ )}
458
589
  >
459
590
  {exporting ? (
460
591
  <Loader2 className="size-4 animate-spin" />
@@ -463,128 +594,35 @@ export function Slide() {
463
594
  )}
464
595
  </DropdownMenuTrigger>
465
596
  <DropdownMenuContent align="end" className="min-w-[200px]">
466
- <DropdownMenuItem
467
- disabled={exporting}
468
- onSelect={async () => {
469
- if (!slide || exporting) return;
470
- setExporting(true);
471
- try {
472
- await exportSlideAsHtml(slide, slideId);
473
- } catch (err) {
474
- console.error('[open-slide] export failed', err);
475
- } finally {
476
- setExporting(false);
477
- }
478
- }}
479
- >
480
- <FileCode2 />
481
- {t.slide.exportAsHtml}
482
- </DropdownMenuItem>
483
- <DropdownMenuItem
484
- disabled={exporting}
485
- onSelect={async () => {
486
- if (!slide || exporting) return;
487
- if (isSafari()) {
488
- toast.error(t.slide.pdfExportSafariUnsupported, { duration: 5000 });
489
- return;
490
- }
491
- setExporting(true);
492
- const toastId = `pdf-export-${slideId}`;
493
- toast.custom(
494
- () => (
495
- <PdfProgressToast
496
- progress={{
497
- phase: 'processing',
498
- current: 0,
499
- total: pages.length,
500
- percent: 0,
501
- }}
502
- />
503
- ),
504
- { id: toastId, duration: Infinity },
505
- );
506
- try {
507
- await exportSlideAsPdf(slide, slideId, (p) => {
508
- toast.custom(() => <PdfProgressToast progress={p} />, {
509
- id: toastId,
510
- duration: Infinity,
511
- });
512
- });
513
- } catch (err) {
514
- console.error('[open-slide] pdf export failed', err);
515
- toast.error(t.slide.pdfExportFailed, { id: toastId, duration: 4000 });
516
- } finally {
517
- setExporting(false);
518
- toast.dismiss(toastId);
519
- }
520
- }}
521
- >
522
- <FileText />
523
- {t.slide.exportAsPdf}
524
- </DropdownMenuItem>
525
- <DropdownMenuSeparator />
526
- <DropdownMenuItem
527
- disabled={exporting}
528
- onSelect={async () => {
529
- if (!slide || exporting) return;
530
- setExporting(true);
531
- const toastId = `pptx-export-${slideId}`;
532
- toast.custom(
533
- () => (
534
- <PptxProgressToast
535
- progress={{
536
- phase: 'processing',
537
- current: 0,
538
- total: pages.length,
539
- percent: 0,
540
- }}
541
- />
542
- ),
543
- { id: toastId, duration: Infinity },
544
- );
545
- try {
546
- await exportSlideAsImagePptx(slide, slideId, (p) => {
547
- toast.custom(() => <PptxProgressToast progress={p} />, {
548
- id: toastId,
549
- duration: Infinity,
550
- });
551
- });
552
- } catch (err) {
553
- console.error('[open-slide] image pptx export failed', err);
554
- toast.error(t.slide.imagePptxExportFailed, {
555
- id: toastId,
556
- duration: 4000,
557
- });
558
- } finally {
559
- setExporting(false);
560
- toast.dismiss(toastId);
561
- }
562
- }}
563
- >
564
- <FileImage />
565
- {t.slide.exportAsImagePptx}
597
+ {exportMenuItems}
598
+ </DropdownMenuContent>
599
+ </DropdownMenu>
600
+ )}
601
+ {view === 'slides' && (
602
+ <DropdownMenu>
603
+ <DropdownMenuTrigger
604
+ type="button"
605
+ disabled={exporting}
606
+ aria-label={t.slide.moreActions}
607
+ title={t.slide.moreActions}
608
+ className={cn(
609
+ buttonVariants({ variant: 'ghost', size: 'icon-sm' }),
610
+ 'inline-flex md:hidden',
611
+ )}
612
+ >
613
+ {exporting ? (
614
+ <Loader2 className="size-4 animate-spin" />
615
+ ) : (
616
+ <MoreHorizontal className="size-4" />
617
+ )}
618
+ </DropdownMenuTrigger>
619
+ <DropdownMenuContent align="end" className="min-w-[200px]">
620
+ <DropdownMenuItem onSelect={copyLink}>
621
+ <Link2 />
622
+ {t.slide.copyLink}
566
623
  </DropdownMenuItem>
567
- <TooltipProvider delayDuration={200}>
568
- <Tooltip>
569
- <TooltipTrigger asChild>
570
- <div
571
- aria-disabled
572
- className="relative flex cursor-help items-center justify-between gap-2 rounded-[5px] px-2 py-1.5 text-[12.5px] opacity-45 select-none [&_svg]:size-3.5 [&_svg]:shrink-0 [&_svg]:opacity-80"
573
- >
574
- <span className="flex items-center gap-2">
575
- <Presentation />
576
- {t.slide.exportAsPptx}
577
- </span>
578
- <span className="rounded-[3px] bg-muted px-1.5 py-0.5 font-mono text-[9.5px] tracking-[0.04em] text-muted-foreground">
579
- {t.slide.comingSoon}
580
- </span>
581
- </div>
582
- </TooltipTrigger>
583
- <TooltipContent side="left" className="max-w-[240px] leading-relaxed">
584
- {t.slide.pptxComingSoonTooltip}
585
- </TooltipContent>
586
- </Tooltip>
587
- </TooltipProvider>
624
+ {allowHtmlDownload && <DropdownMenuSeparator />}
625
+ {allowHtmlDownload && exportMenuItems}
588
626
  </DropdownMenuContent>
589
627
  </DropdownMenu>
590
628
  )}
@@ -653,7 +691,7 @@ export function Slide() {
653
691
  </div>
654
692
  ) : (
655
693
  <DesignProvider slideId={slideId}>
656
- <div className="flex min-h-0 flex-1 flex-col">
694
+ <div className="relative flex min-h-0 flex-1 flex-col">
657
695
  <div className="flex min-h-0 flex-1 flex-col md:flex-row">
658
696
  <ResizableRail
659
697
  pages={pages}
@@ -663,6 +701,7 @@ export function Slide() {
663
701
  onReorder={import.meta.env.DEV ? reorderPage : undefined}
664
702
  actions={thumbnailActions}
665
703
  moduleTransition={slide.transition}
704
+ onOverview={() => setOverviewOpen(true)}
666
705
  />
667
706
  <main
668
707
  ref={slideViewportRef}
@@ -716,6 +755,16 @@ export function Slide() {
716
755
  initial={slide.notes?.[index]}
717
756
  />
718
757
  )}
758
+ <OverviewGrid
759
+ pages={pages}
760
+ design={slide.design}
761
+ open={overviewOpen}
762
+ current={index}
763
+ onClose={() => setOverviewOpen(false)}
764
+ onSelect={goTo}
765
+ variant="editor"
766
+ moduleTransition={slide.transition}
767
+ />
719
768
  </div>
720
769
  </DesignProvider>
721
770
  )}
@@ -746,6 +795,7 @@ function ResizableRail(props: {
746
795
  onReorder?: (from: number, to: number) => void;
747
796
  actions?: ThumbnailActions;
748
797
  moduleTransition?: SlideModule['transition'];
798
+ onOverview?: () => void;
749
799
  }) {
750
800
  const t = useLocale();
751
801
  const [width, setWidth] = useState<number>(readStoredRailWidth);
@@ -873,7 +923,11 @@ function AgentConnectedBadge() {
873
923
  {connected ? t.slide.agentConnected : t.slide.agentDisconnected}
874
924
  </button>
875
925
  </TooltipTrigger>
876
- <TooltipContent side="bottom" align="start" className="max-w-[280px] leading-relaxed">
926
+ <TooltipContent
927
+ side="bottom"
928
+ align="start"
929
+ className="w-max max-w-[min(520px,calc(100vw-2rem))] text-center leading-relaxed"
930
+ >
877
931
  {connected ? t.slide.agentConnectedTooltip : t.slide.agentDisconnectedTooltip}
878
932
  </TooltipContent>
879
933
  </Tooltip>
package/src/locale/en.ts CHANGED
@@ -45,6 +45,10 @@ export const en: Locale = {
45
45
  newFolder: 'New folder',
46
46
  folderName: 'Folder name',
47
47
  updateAvailable: 'open-slide {version} is available — update the package to get the latest.',
48
+ updatePackage: 'Update',
49
+ updatingPackage: 'Updating',
50
+ updatePackageDone: 'Updated. Restart the dev server to use the new version.',
51
+ updatePackageFailed: 'Update failed. Check the dev server output.',
48
52
  changeIcon: 'Change icon',
49
53
  iconEmojiTab: 'Emoji',
50
54
  iconColorTab: 'Color',
@@ -102,6 +106,7 @@ export const en: Locale = {
102
106
  'Lost connection to the dev server, so your agent can no longer see the current slide or inspector selection. Restart the dev server to restore the connection.',
103
107
  download: 'Download',
104
108
  copyLink: 'Copy link',
109
+ moreActions: 'More actions',
105
110
  toastCopyLinkSuccess: 'Link copied to clipboard',
106
111
  toastCopyLinkFailed: 'Failed to copy link',
107
112
  exportAsHtml: 'Export as HTML',
@@ -345,6 +350,7 @@ export const en: Locale = {
345
350
  resizeRail: 'Resize thumbnail rail',
346
351
  transitionIndicator: 'Has slide transition',
347
352
  stepsIndicator: 'Has step-by-step reveals',
353
+ overviewAria: 'Slide overview (O)',
348
354
  },
349
355
 
350
356
  pdfToast: {
package/src/locale/ja.ts CHANGED
@@ -46,6 +46,10 @@ export const ja: Locale = {
46
46
  folderName: 'フォルダ名',
47
47
  updateAvailable:
48
48
  'open-slide {version} が利用可能です — パッケージを更新して最新版を入手してください。',
49
+ updatePackage: '更新',
50
+ updatingPackage: '更新中',
51
+ updatePackageDone: '更新しました。新しいバージョンを使うには dev server を再起動してください。',
52
+ updatePackageFailed: '更新に失敗しました。dev server の出力を確認してください。',
49
53
  changeIcon: 'アイコンを変更',
50
54
  iconEmojiTab: '絵文字',
51
55
  iconColorTab: 'カラー',
@@ -103,6 +107,7 @@ export const ja: Locale = {
103
107
  backToHome: 'ホームへ戻る',
104
108
  download: 'ダウンロード',
105
109
  copyLink: 'リンクをコピー',
110
+ moreActions: 'その他の操作',
106
111
  toastCopyLinkSuccess: 'リンクをクリップボードにコピーしました',
107
112
  toastCopyLinkFailed: 'リンクのコピーに失敗しました',
108
113
  exportAsHtml: 'HTML として書き出し',
@@ -350,6 +355,7 @@ export const ja: Locale = {
350
355
  resizeRail: 'サムネイル幅を調整',
351
356
  transitionIndicator: 'スライドトランジションあり',
352
357
  stepsIndicator: 'ステップ表示あり',
358
+ overviewAria: 'スライド一覧 (O)',
353
359
  },
354
360
 
355
361
  pdfToast: {
@@ -45,6 +45,10 @@ export type Locale = {
45
45
  newFolder: string;
46
46
  folderName: string;
47
47
  updateAvailable: string;
48
+ updatePackage: string;
49
+ updatingPackage: string;
50
+ updatePackageDone: string;
51
+ updatePackageFailed: string;
48
52
  changeIcon: string;
49
53
  iconEmojiTab: string;
50
54
  iconColorTab: string;
@@ -104,6 +108,7 @@ export type Locale = {
104
108
  agentDisconnectedTooltip: string;
105
109
  download: string;
106
110
  copyLink: string;
111
+ moreActions: string;
107
112
  toastCopyLinkSuccess: string;
108
113
  toastCopyLinkFailed: string;
109
114
  exportAsHtml: string;
@@ -366,6 +371,7 @@ export type Locale = {
366
371
  resizeRail: string;
367
372
  transitionIndicator: string;
368
373
  stepsIndicator: string;
374
+ overviewAria: string;
369
375
  };
370
376
 
371
377
  pdfToast: {
@@ -45,6 +45,10 @@ export const zhCN: Locale = {
45
45
  newFolder: '新建文件夹',
46
46
  folderName: '文件夹名称',
47
47
  updateAvailable: 'open-slide {version} 已发布,请更新软件包以获取最新版本。',
48
+ updatePackage: '更新',
49
+ updatingPackage: '更新中',
50
+ updatePackageDone: '已更新。请重启 dev server 以使用新版本。',
51
+ updatePackageFailed: '更新失败,请查看 dev server 输出。',
48
52
  changeIcon: '更换图标',
49
53
  iconEmojiTab: 'Emoji',
50
54
  iconColorTab: '颜色',
@@ -101,6 +105,7 @@ export const zhCN: Locale = {
101
105
  backToHome: '返回首页',
102
106
  download: '下载',
103
107
  copyLink: '复制链接',
108
+ moreActions: '更多操作',
104
109
  toastCopyLinkSuccess: '已复制链接到剪贴板',
105
110
  toastCopyLinkFailed: '复制链接失败',
106
111
  exportAsHtml: '导出为 HTML',
@@ -343,6 +348,7 @@ export const zhCN: Locale = {
343
348
  resizeRail: '调整缩略图栏宽度',
344
349
  transitionIndicator: '有换页转场',
345
350
  stepsIndicator: '有逐步揭示',
351
+ overviewAria: '幻灯片总览 (O)',
346
352
  },
347
353
 
348
354
  pdfToast: {
@@ -45,6 +45,10 @@ export const zhTW: Locale = {
45
45
  newFolder: '新增資料夾',
46
46
  folderName: '資料夾名稱',
47
47
  updateAvailable: 'open-slide {version} 已發布,請更新套件以取得最新版本。',
48
+ updatePackage: '更新',
49
+ updatingPackage: '更新中',
50
+ updatePackageDone: '已更新。請重新啟動 dev server 以使用新版本。',
51
+ updatePackageFailed: '更新失敗,請查看 dev server 輸出。',
48
52
  changeIcon: '變更圖示',
49
53
  iconEmojiTab: 'Emoji',
50
54
  iconColorTab: '顏色',
@@ -101,6 +105,7 @@ export const zhTW: Locale = {
101
105
  backToHome: '返回首頁',
102
106
  download: '下載',
103
107
  copyLink: '複製連結',
108
+ moreActions: '更多動作',
104
109
  toastCopyLinkSuccess: '已複製連結到剪貼簿',
105
110
  toastCopyLinkFailed: '複製連結失敗',
106
111
  exportAsHtml: '匯出為 HTML',
@@ -343,6 +348,7 @@ export const zhTW: Locale = {
343
348
  resizeRail: '調整縮圖欄寬度',
344
349
  transitionIndicator: '有換頁轉場',
345
350
  stepsIndicator: '有逐步揭示',
351
+ overviewAria: '投影片總覽 (O)',
346
352
  },
347
353
 
348
354
  pdfToast: {