@open-slide/core 1.17.1 → 1.19.0

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 (37) hide show
  1. package/dist/{build-DaL4Gjn-.js → build-CaV_vhIw.js} +1 -1
  2. package/dist/cli/bin.js +3 -3
  3. package/dist/{config-DIvIP8vY.d.ts → config-CDHB8Oow.d.ts} +2 -1
  4. package/dist/{config-CCHio3pk.js → config-GA6NMgs_.js} +1 -0
  5. package/dist/{dev-DLRQoCkT.js → dev-D57ui2yV.js} +1 -1
  6. package/dist/{format-CxmsgcBh.js → format-74A3B6zu.js} +120 -4
  7. package/dist/index.d.ts +7 -7
  8. package/dist/index.js +1 -1
  9. package/dist/locale/index.d.ts +1 -1
  10. package/dist/locale/index.js +1 -1
  11. package/dist/{preview-D3qVGc0S.js → preview-D40Zw_o0.js} +1 -1
  12. package/dist/{types-Di7nvL8V.d.ts → types-8HghULIe.d.ts} +32 -0
  13. package/dist/vite/index.d.ts +2 -2
  14. package/dist/vite/index.js +1 -1
  15. package/package.json +6 -3
  16. package/src/app/components/command/command-menu.tsx +227 -0
  17. package/src/app/components/command/command.tsx +142 -0
  18. package/src/app/components/command/home-command-menu.tsx +96 -0
  19. package/src/app/components/command/slide-command-menu.tsx +171 -0
  20. package/src/app/components/icon-tooltip.tsx +34 -0
  21. package/src/app/components/language-toggle.tsx +15 -8
  22. package/src/app/components/player.tsx +8 -1
  23. package/src/app/components/present/use-presenter-channel.ts +2 -1
  24. package/src/app/components/sidebar/sidebar-footer.tsx +2 -37
  25. package/src/app/components/sidebar/sidebar.tsx +4 -0
  26. package/src/app/components/theme-toggle.tsx +16 -9
  27. package/src/app/lib/export-html.ts +15 -2
  28. package/src/app/lib/use-restart-server.ts +78 -0
  29. package/src/app/lib/use-slide-titles.ts +29 -0
  30. package/src/app/routes/home-shell.tsx +15 -0
  31. package/src/app/routes/presenter.tsx +214 -8
  32. package/src/app/routes/slide.tsx +92 -17
  33. package/src/locale/en.ts +30 -0
  34. package/src/locale/ja.ts +30 -0
  35. package/src/locale/types.ts +33 -0
  36. package/src/locale/zh-cn.ts +30 -0
  37. package/src/locale/zh-tw.ts +30 -0
package/src/locale/en.ts CHANGED
@@ -167,6 +167,9 @@ export const en: Locale = {
167
167
  jump: 'Jump',
168
168
  loadingSlide: 'Loading {slideId}…',
169
169
  loadingAssets: 'Loading assets…',
170
+ switchDeck: 'Switch presentation',
171
+ searchDecks: 'Search presentations…',
172
+ noDecksFound: 'No presentations match',
170
173
  },
171
174
 
172
175
  present: {
@@ -406,6 +409,33 @@ export const en: Locale = {
406
409
  done: 'Done',
407
410
  },
408
411
 
412
+ commandMenu: {
413
+ trigger: 'Commands',
414
+ triggerAria: 'Open command menu',
415
+ triggerTooltip: 'Search',
416
+ placeholder: 'Search slides or run a command…',
417
+ slidePlaceholder: 'Search this deck or run a command…',
418
+ empty: 'No results.',
419
+ groupSlides: 'Slides',
420
+ groupFolders: 'Folders',
421
+ groupNavigation: 'Go to',
422
+ groupPresent: 'Present',
423
+ groupDeck: 'This deck',
424
+ groupExport: 'Export',
425
+ groupPages: 'Pages',
426
+ groupAppearance: 'Appearance',
427
+ groupDeveloper: 'Developer',
428
+ goToPage: 'Page {n}',
429
+ overview: 'Slide overview',
430
+ designPanel: 'Toggle design panel',
431
+ backToSlides: 'Back to all slides',
432
+ themeItem: 'Theme: {name}',
433
+ languageItem: 'Language: {name}',
434
+ hintNavigate: 'Navigate',
435
+ hintSelect: 'Select',
436
+ hintClose: 'Close',
437
+ },
438
+
409
439
  themeToggle: {
410
440
  toggleAria: 'Toggle theme',
411
441
  title: 'Theme',
package/src/locale/ja.ts CHANGED
@@ -167,6 +167,9 @@ export const ja: Locale = {
167
167
  jump: 'ジャンプ',
168
168
  loadingSlide: '{slideId} を読み込み中…',
169
169
  loadingAssets: 'アセットを読み込み中…',
170
+ switchDeck: 'デッキを切り替え',
171
+ searchDecks: 'デッキを検索…',
172
+ noDecksFound: '一致するデッキがありません',
170
173
  },
171
174
 
172
175
  present: {
@@ -410,6 +413,33 @@ export const ja: Locale = {
410
413
  done: '完了',
411
414
  },
412
415
 
416
+ commandMenu: {
417
+ trigger: 'コマンド',
418
+ triggerAria: 'コマンドメニューを開く',
419
+ triggerTooltip: '検索',
420
+ placeholder: 'スライドを検索、またはコマンドを実行…',
421
+ slidePlaceholder: 'このデッキを検索、またはコマンドを実行…',
422
+ empty: '結果がありません。',
423
+ groupSlides: 'スライド',
424
+ groupFolders: 'フォルダ',
425
+ groupNavigation: '移動',
426
+ groupPresent: '発表',
427
+ groupDeck: 'このデッキ',
428
+ groupExport: 'エクスポート',
429
+ groupPages: 'ページ',
430
+ groupAppearance: '外観',
431
+ groupDeveloper: '開発',
432
+ goToPage: '{n} ページ目',
433
+ overview: 'ページ一覧',
434
+ designPanel: 'デザインパネルの切り替え',
435
+ backToSlides: 'すべてのスライドへ戻る',
436
+ themeItem: 'テーマ: {name}',
437
+ languageItem: '言語: {name}',
438
+ hintNavigate: '移動',
439
+ hintSelect: '選択',
440
+ hintClose: '閉じる',
441
+ },
442
+
413
443
  themeToggle: {
414
444
  toggleAria: 'テーマを切り替え',
415
445
  title: 'テーマ',
@@ -168,6 +168,9 @@ export type Locale = {
168
168
  /** template: "Loading {slideId}…" */
169
169
  loadingSlide: string;
170
170
  loadingAssets: string;
171
+ switchDeck: string;
172
+ searchDecks: string;
173
+ noDecksFound: string;
171
174
  };
172
175
 
173
176
  present: {
@@ -433,6 +436,36 @@ export type Locale = {
433
436
  done: string;
434
437
  };
435
438
 
439
+ commandMenu: {
440
+ trigger: string;
441
+ triggerAria: string;
442
+ triggerTooltip: string;
443
+ placeholder: string;
444
+ slidePlaceholder: string;
445
+ empty: string;
446
+ groupSlides: string;
447
+ groupFolders: string;
448
+ groupNavigation: string;
449
+ groupPresent: string;
450
+ groupDeck: string;
451
+ groupExport: string;
452
+ groupPages: string;
453
+ groupAppearance: string;
454
+ groupDeveloper: string;
455
+ /** template: "Page {n}" */
456
+ goToPage: string;
457
+ overview: string;
458
+ designPanel: string;
459
+ backToSlides: string;
460
+ /** template: "Theme: {name}" */
461
+ themeItem: string;
462
+ /** template: "Language: {name}" */
463
+ languageItem: string;
464
+ hintNavigate: string;
465
+ hintSelect: string;
466
+ hintClose: string;
467
+ };
468
+
436
469
  themeToggle: {
437
470
  toggleAria: string;
438
471
  title: string;
@@ -165,6 +165,9 @@ export const zhCN: Locale = {
165
165
  jump: '跳至',
166
166
  loadingSlide: '正在加载 {slideId}…',
167
167
  loadingAssets: '正在加载资源…',
168
+ switchDeck: '切换演示文稿',
169
+ searchDecks: '搜索演示文稿…',
170
+ noDecksFound: '没有匹配的演示文稿',
168
171
  },
169
172
 
170
173
  present: {
@@ -404,6 +407,33 @@ export const zhCN: Locale = {
404
407
  done: '完成',
405
408
  },
406
409
 
410
+ commandMenu: {
411
+ trigger: '命令',
412
+ triggerAria: '打开命令菜单',
413
+ triggerTooltip: '搜索',
414
+ placeholder: '搜索幻灯片或执行命令…',
415
+ slidePlaceholder: '搜索这份幻灯片或执行命令…',
416
+ empty: '没有匹配的结果。',
417
+ groupSlides: '幻灯片',
418
+ groupFolders: '文件夹',
419
+ groupNavigation: '前往',
420
+ groupPresent: '放映',
421
+ groupDeck: '这份幻灯片',
422
+ groupExport: '导出',
423
+ groupPages: '页面',
424
+ groupAppearance: '外观',
425
+ groupDeveloper: '开发',
426
+ goToPage: '第 {n} 页',
427
+ overview: '页面总览',
428
+ designPanel: '切换设计面板',
429
+ backToSlides: '回到所有幻灯片',
430
+ themeItem: '主题:{name}',
431
+ languageItem: '语言:{name}',
432
+ hintNavigate: '移动',
433
+ hintSelect: '选择',
434
+ hintClose: '关闭',
435
+ },
436
+
407
437
  themeToggle: {
408
438
  toggleAria: '切换主题',
409
439
  title: '主题',
@@ -165,6 +165,9 @@ export const zhTW: Locale = {
165
165
  jump: '跳至',
166
166
  loadingSlide: '正在載入 {slideId}…',
167
167
  loadingAssets: '正在載入資源…',
168
+ switchDeck: '切換簡報',
169
+ searchDecks: '搜尋簡報…',
170
+ noDecksFound: '沒有符合的簡報',
168
171
  },
169
172
 
170
173
  present: {
@@ -404,6 +407,33 @@ export const zhTW: Locale = {
404
407
  done: '完成',
405
408
  },
406
409
 
410
+ commandMenu: {
411
+ trigger: '指令',
412
+ triggerAria: '開啟指令選單',
413
+ triggerTooltip: '搜尋',
414
+ placeholder: '搜尋簡報或執行指令…',
415
+ slidePlaceholder: '搜尋這份簡報或執行指令…',
416
+ empty: '沒有符合的結果。',
417
+ groupSlides: '簡報',
418
+ groupFolders: '資料夾',
419
+ groupNavigation: '前往',
420
+ groupPresent: '播放',
421
+ groupDeck: '這份簡報',
422
+ groupExport: '匯出',
423
+ groupPages: '頁面',
424
+ groupAppearance: '外觀',
425
+ groupDeveloper: '開發',
426
+ goToPage: '第 {n} 頁',
427
+ overview: '頁面總覽',
428
+ designPanel: '切換設計面板',
429
+ backToSlides: '回到所有簡報',
430
+ themeItem: '主題:{name}',
431
+ languageItem: '語言:{name}',
432
+ hintNavigate: '移動',
433
+ hintSelect: '選擇',
434
+ hintClose: '關閉',
435
+ },
436
+
407
437
  themeToggle: {
408
438
  toggleAria: '切換主題',
409
439
  title: '主題',