markdown-flow-ui 0.2.13 → 0.2.15

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 (475) hide show
  1. package/README.md +7 -0
  2. package/dist/_virtual/index.es3.js +5 -4
  3. package/dist/_virtual/index.es3.js.map +1 -1
  4. package/dist/_virtual/index.es4.js +4 -5
  5. package/dist/_virtual/index.es4.js.map +1 -1
  6. package/dist/_virtual/index3.cjs +1 -1
  7. package/dist/_virtual/index4.cjs +1 -1
  8. package/dist/assets/markdown-flow-ui.css +10 -1
  9. package/dist/components/ContentRender/CodeBlock.cjs +1 -1
  10. package/dist/components/ContentRender/CodeBlock.cjs.map +1 -1
  11. package/dist/components/ContentRender/CodeBlock.d.ts +5 -0
  12. package/dist/components/ContentRender/CodeBlock.es.js +41 -38
  13. package/dist/components/ContentRender/CodeBlock.es.js.map +1 -1
  14. package/dist/components/ContentRender/ContentRender.cjs +2 -2
  15. package/dist/components/ContentRender/ContentRender.cjs.map +1 -1
  16. package/dist/components/ContentRender/ContentRender.d.ts +9 -4
  17. package/dist/components/ContentRender/ContentRender.es.js +389 -298
  18. package/dist/components/ContentRender/ContentRender.es.js.map +1 -1
  19. package/dist/components/ContentRender/IframeSandbox.cjs +7 -7
  20. package/dist/components/ContentRender/IframeSandbox.cjs.map +1 -1
  21. package/dist/components/ContentRender/IframeSandbox.d.ts +5 -1
  22. package/dist/components/ContentRender/IframeSandbox.es.js +311 -266
  23. package/dist/components/ContentRender/IframeSandbox.es.js.map +1 -1
  24. package/dist/components/ContentRender/MarkdownFlowInput.cjs +1 -1
  25. package/dist/components/ContentRender/MarkdownFlowInput.cjs.map +1 -1
  26. package/dist/components/ContentRender/MarkdownFlowInput.d.ts +5 -1
  27. package/dist/components/ContentRender/MarkdownFlowInput.es.js +37 -32
  28. package/dist/components/ContentRender/MarkdownFlowInput.es.js.map +1 -1
  29. package/dist/components/ContentRender/SandboxApp.cjs +2 -2
  30. package/dist/components/ContentRender/SandboxApp.cjs.map +1 -1
  31. package/dist/components/ContentRender/SandboxApp.d.ts +5 -1
  32. package/dist/components/ContentRender/SandboxApp.es.js +108 -103
  33. package/dist/components/ContentRender/SandboxApp.es.js.map +1 -1
  34. package/dist/components/ContentRender/blackboard-vendor.d.ts +1 -1
  35. package/dist/components/ContentRender/contentRenderI18n.cjs +1 -1
  36. package/dist/components/ContentRender/contentRenderI18n.cjs.map +1 -1
  37. package/dist/components/ContentRender/contentRenderI18n.d.ts +6 -1
  38. package/dist/components/ContentRender/contentRenderI18n.es.js +5 -56
  39. package/dist/components/ContentRender/contentRenderI18n.es.js.map +1 -1
  40. package/dist/components/ContentRender/contentRenderI18n.test.d.ts +1 -0
  41. package/dist/components/ContentRender/index.cjs +1 -1
  42. package/dist/components/ContentRender/index.d.ts +11 -11
  43. package/dist/components/ContentRender/index.es.js +1 -2
  44. package/dist/components/ContentRender/index.es.js.map +1 -1
  45. package/dist/components/ContentRender/locales/contentRender.json.cjs +2 -0
  46. package/dist/components/ContentRender/locales/contentRender.json.cjs.map +1 -0
  47. package/dist/components/ContentRender/locales/contentRender.json.d.ts +90 -0
  48. package/dist/components/ContentRender/locales/contentRender.json.es.js +11 -0
  49. package/dist/components/ContentRender/locales/contentRender.json.es.js.map +1 -0
  50. package/dist/components/ContentRender/plugins/CustomVariable.cjs +1 -1
  51. package/dist/components/ContentRender/plugins/CustomVariable.cjs.map +1 -1
  52. package/dist/components/ContentRender/plugins/CustomVariable.d.ts +7 -3
  53. package/dist/components/ContentRender/plugins/CustomVariable.es.js +165 -151
  54. package/dist/components/ContentRender/plugins/CustomVariable.es.js.map +1 -1
  55. package/dist/components/ContentRender/plugins/MermaidChart.cjs +1 -1
  56. package/dist/components/ContentRender/plugins/MermaidChart.cjs.map +1 -1
  57. package/dist/components/ContentRender/plugins/MermaidChart.d.ts +1 -0
  58. package/dist/components/ContentRender/plugins/MermaidChart.es.js +68 -44
  59. package/dist/components/ContentRender/plugins/MermaidChart.es.js.map +1 -1
  60. package/dist/components/MarkdownFlow/MarkdownFlow.cjs +1 -1
  61. package/dist/components/MarkdownFlow/MarkdownFlow.cjs.map +1 -1
  62. package/dist/components/MarkdownFlow/MarkdownFlow.d.ts +12 -4
  63. package/dist/components/MarkdownFlow/MarkdownFlow.es.js +51 -39
  64. package/dist/components/MarkdownFlow/MarkdownFlow.es.js.map +1 -1
  65. package/dist/components/MarkdownFlow/ScrollToBottomButton.cjs +1 -1
  66. package/dist/components/MarkdownFlow/ScrollToBottomButton.cjs.map +1 -1
  67. package/dist/components/MarkdownFlow/ScrollToBottomButton.d.ts +31 -1
  68. package/dist/components/MarkdownFlow/ScrollToBottomButton.es.js +46 -17
  69. package/dist/components/MarkdownFlow/ScrollToBottomButton.es.js.map +1 -1
  70. package/dist/components/MarkdownFlow/ScrollToBottomControl.cjs +2 -0
  71. package/dist/components/MarkdownFlow/ScrollToBottomControl.cjs.map +1 -0
  72. package/dist/components/MarkdownFlow/ScrollToBottomControl.d.ts +18 -0
  73. package/dist/components/MarkdownFlow/ScrollToBottomControl.es.js +47 -0
  74. package/dist/components/MarkdownFlow/ScrollToBottomControl.es.js.map +1 -0
  75. package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.cjs +1 -1
  76. package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.cjs.map +1 -1
  77. package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.d.ts +1 -1
  78. package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.es.js +33 -52
  79. package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.es.js.map +1 -1
  80. package/dist/components/MarkdownFlow/index.cjs +1 -1
  81. package/dist/components/MarkdownFlow/index.d.ts +9 -6
  82. package/dist/components/MarkdownFlow/index.es.js +6 -6
  83. package/dist/components/MarkdownFlow/index.es.js.map +1 -1
  84. package/dist/components/MarkdownFlow/useScrollToBottom.cjs +1 -1
  85. package/dist/components/MarkdownFlow/useScrollToBottom.cjs.map +1 -1
  86. package/dist/components/MarkdownFlow/useScrollToBottom.d.ts +40 -8
  87. package/dist/components/MarkdownFlow/useScrollToBottom.es.js +352 -83
  88. package/dist/components/MarkdownFlow/useScrollToBottom.es.js.map +1 -1
  89. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs +1 -1
  90. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs.map +1 -1
  91. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.d.ts +5 -3
  92. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js +371 -324
  93. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js.map +1 -1
  94. package/dist/components/MarkdownFlowEditor/components/CustomDialog.cjs +1 -1
  95. package/dist/components/MarkdownFlowEditor/components/CustomDialog.cjs.map +1 -1
  96. package/dist/components/MarkdownFlowEditor/components/CustomDialog.d.ts +10 -0
  97. package/dist/components/MarkdownFlowEditor/components/CustomDialog.es.js +22 -19
  98. package/dist/components/MarkdownFlowEditor/components/CustomDialog.es.js.map +1 -1
  99. package/dist/components/MarkdownFlowEditor/components/CustomPopover.cjs +1 -1
  100. package/dist/components/MarkdownFlowEditor/components/CustomPopover.cjs.map +1 -1
  101. package/dist/components/MarkdownFlowEditor/components/CustomPopover.d.ts +8 -0
  102. package/dist/components/MarkdownFlowEditor/components/CustomPopover.es.js +19 -15
  103. package/dist/components/MarkdownFlowEditor/components/CustomPopover.es.js.map +1 -1
  104. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs +1 -1
  105. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs.map +1 -1
  106. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.d.ts +4 -1
  107. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.es.js +99 -93
  108. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.es.js.map +1 -1
  109. package/dist/components/MarkdownFlowEditor/components/ImageInject.cjs +1 -1
  110. package/dist/components/MarkdownFlowEditor/components/ImageInject.cjs.map +1 -1
  111. package/dist/components/MarkdownFlowEditor/components/ImageInject.d.ts +1 -1
  112. package/dist/components/MarkdownFlowEditor/components/ImageInject.es.js +183 -182
  113. package/dist/components/MarkdownFlowEditor/components/ImageInject.es.js.map +1 -1
  114. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.cjs +1 -1
  115. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.cjs.map +1 -1
  116. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.d.ts +1 -1
  117. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.es.js +107 -103
  118. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.es.js.map +1 -1
  119. package/dist/components/MarkdownFlowEditor/components/VariableSelect.cjs +1 -1
  120. package/dist/components/MarkdownFlowEditor/components/VariableSelect.cjs.map +1 -1
  121. package/dist/components/MarkdownFlowEditor/components/VariableSelect.d.ts +1 -1
  122. package/dist/components/MarkdownFlowEditor/components/VariableSelect.es.js +106 -106
  123. package/dist/components/MarkdownFlowEditor/components/VariableSelect.es.js.map +1 -1
  124. package/dist/components/MarkdownFlowEditor/components/VideoInject.cjs +1 -1
  125. package/dist/components/MarkdownFlowEditor/components/VideoInject.cjs.map +1 -1
  126. package/dist/components/MarkdownFlowEditor/components/VideoInject.es.js +64 -63
  127. package/dist/components/MarkdownFlowEditor/components/VideoInject.es.js.map +1 -1
  128. package/dist/components/MarkdownFlowEditor/components/icons/ButtonIcon.cjs +1 -1
  129. package/dist/components/MarkdownFlowEditor/components/icons/ButtonIcon.cjs.map +1 -1
  130. package/dist/components/MarkdownFlowEditor/components/icons/ButtonIcon.es.js +13 -13
  131. package/dist/components/MarkdownFlowEditor/components/icons/ButtonIcon.es.js.map +1 -1
  132. package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.cjs +1 -1
  133. package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.cjs.map +1 -1
  134. package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.es.js +12 -12
  135. package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.es.js.map +1 -1
  136. package/dist/components/MarkdownFlowEditor/editor-context.d.ts +1 -1
  137. package/dist/components/MarkdownFlowEditor/editorI18n.cjs +1 -1
  138. package/dist/components/MarkdownFlowEditor/editorI18n.cjs.map +1 -1
  139. package/dist/components/MarkdownFlowEditor/editorI18n.d.ts +290 -0
  140. package/dist/components/MarkdownFlowEditor/editorI18n.es.js +12 -8
  141. package/dist/components/MarkdownFlowEditor/editorI18n.es.js.map +1 -1
  142. package/dist/components/MarkdownFlowEditor/editorI18n.test.d.ts +1 -0
  143. package/dist/components/MarkdownFlowEditor/index.d.ts +6 -6
  144. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.cjs +2 -0
  145. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.cjs.map +1 -0
  146. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.d.ts +72 -0
  147. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.es.js +140 -0
  148. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.es.js.map +1 -0
  149. package/dist/components/MarkdownFlowEditor/locales/en-US.json.cjs +1 -1
  150. package/dist/components/MarkdownFlowEditor/locales/en-US.json.d.ts +2 -0
  151. package/dist/components/MarkdownFlowEditor/locales/en-US.json.es.js +118 -114
  152. package/dist/components/MarkdownFlowEditor/locales/en-US.json.es.js.map +1 -1
  153. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.cjs +1 -1
  154. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.d.ts +2 -0
  155. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.es.js +118 -114
  156. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.es.js.map +1 -1
  157. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.cjs +2 -0
  158. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.cjs.map +1 -0
  159. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.d.ts +72 -0
  160. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.es.js +140 -0
  161. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.es.js.map +1 -0
  162. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.cjs +1 -1
  163. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.d.ts +2 -0
  164. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.es.js +70 -66
  165. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.es.js.map +1 -1
  166. package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.cjs +1 -1
  167. package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.cjs.map +1 -1
  168. package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.es.js +40 -35
  169. package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.es.js.map +1 -1
  170. package/dist/components/MarkdownFlowEditor/plugins/PlaceholderWidget.d.ts +1 -1
  171. package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.cjs +1 -1
  172. package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.cjs.map +1 -1
  173. package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.es.js +27 -23
  174. package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.es.js.map +1 -1
  175. package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.cjs +2 -0
  176. package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.cjs.map +1 -0
  177. package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.d.ts +7 -0
  178. package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.es.js +12 -0
  179. package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.es.js.map +1 -0
  180. package/dist/components/MarkdownFlowEditor/utils.d.ts +1 -1
  181. package/dist/components/Slide/MarkdownSlideScaling.cjs +1 -1
  182. package/dist/components/Slide/MarkdownSlideScaling.cjs.map +1 -1
  183. package/dist/components/Slide/MarkdownSlideScaling.d.ts +1 -1
  184. package/dist/components/Slide/MarkdownSlideScaling.es.js +20 -20
  185. package/dist/components/Slide/MarkdownSlideScaling.es.js.map +1 -1
  186. package/dist/components/Slide/MobilePlayerSettingsSheet.cjs +1 -1
  187. package/dist/components/Slide/MobilePlayerSettingsSheet.cjs.map +1 -1
  188. package/dist/components/Slide/MobilePlayerSettingsSheet.d.ts +7 -2
  189. package/dist/components/Slide/MobilePlayerSettingsSheet.es.js +61 -57
  190. package/dist/components/Slide/MobilePlayerSettingsSheet.es.js.map +1 -1
  191. package/dist/components/Slide/Player.cjs +1 -1
  192. package/dist/components/Slide/Player.cjs.map +1 -1
  193. package/dist/components/Slide/Player.d.ts +6 -6
  194. package/dist/components/Slide/Player.es.js +547 -541
  195. package/dist/components/Slide/Player.es.js.map +1 -1
  196. package/dist/components/Slide/Slide.cjs +1 -1
  197. package/dist/components/Slide/Slide.cjs.map +1 -1
  198. package/dist/components/Slide/Slide.d.ts +14 -12
  199. package/dist/components/Slide/Slide.es.js +745 -726
  200. package/dist/components/Slide/Slide.es.js.map +1 -1
  201. package/dist/components/Slide/SubtitleOverlay.cjs +1 -1
  202. package/dist/components/Slide/SubtitleOverlay.cjs.map +1 -1
  203. package/dist/components/Slide/SubtitleOverlay.d.ts +2 -2
  204. package/dist/components/Slide/SubtitleOverlay.es.js +17 -17
  205. package/dist/components/Slide/SubtitleOverlay.es.js.map +1 -1
  206. package/dist/components/Slide/diff-utils.d.ts +1 -1
  207. package/dist/components/Slide/index.d.ts +12 -12
  208. package/dist/components/Slide/locales/slide.json.cjs +2 -0
  209. package/dist/components/Slide/locales/slide.json.cjs.map +1 -0
  210. package/dist/components/Slide/locales/slide.json.d.ts +205 -0
  211. package/dist/components/Slide/locales/slide.json.es.js +11 -0
  212. package/dist/components/Slide/locales/slide.json.es.js.map +1 -0
  213. package/dist/components/Slide/slideI18n.cjs +1 -1
  214. package/dist/components/Slide/slideI18n.cjs.map +1 -1
  215. package/dist/components/Slide/slideI18n.d.ts +6 -3
  216. package/dist/components/Slide/slideI18n.es.js +10 -155
  217. package/dist/components/Slide/slideI18n.es.js.map +1 -1
  218. package/dist/components/Slide/useSlide.d.ts +1 -1
  219. package/dist/components/Slide/utils/appendedMarkerAdvance.d.ts +1 -1
  220. package/dist/components/Slide/utils/audioSegments.d.ts +1 -1
  221. package/dist/components/Slide/utils/interactionResolution.d.ts +2 -2
  222. package/dist/components/Slide/utils/listenModeElementList.d.ts +2 -2
  223. package/dist/components/Slide/utils/markdownScaling.d.ts +1 -1
  224. package/dist/components/Slide/utils/playerCustomActions.d.ts +2 -2
  225. package/dist/components/Slide/utils/playerKeyboardShortcuts.cjs +1 -1
  226. package/dist/components/Slide/utils/playerKeyboardShortcuts.cjs.map +1 -1
  227. package/dist/components/Slide/utils/playerKeyboardShortcuts.d.ts +1 -1
  228. package/dist/components/Slide/utils/playerKeyboardShortcuts.es.js +20 -20
  229. package/dist/components/Slide/utils/playerKeyboardShortcuts.es.js.map +1 -1
  230. package/dist/components/Slide/utils/runStreamFixture.d.ts +1 -1
  231. package/dist/components/Slide/utils/segmentSeek.d.ts +1 -1
  232. package/dist/components/Slide/utils/silentStepAutoAdvance.d.ts +1 -1
  233. package/dist/components/Slide/utils/streamingNavigation.d.ts +1 -1
  234. package/dist/components/Slide/utils/subtitleCue.d.ts +1 -1
  235. package/dist/components/Slide/utils/subtitleJumpNavigation.d.ts +1 -1
  236. package/dist/components/index.d.ts +22 -18
  237. package/dist/components/ui/button.cjs +1 -1
  238. package/dist/components/ui/button.cjs.map +1 -1
  239. package/dist/components/ui/button.es.js +12 -13
  240. package/dist/components/ui/button.es.js.map +1 -1
  241. package/dist/components/ui/checkbox.cjs +1 -1
  242. package/dist/components/ui/checkbox.cjs.map +1 -1
  243. package/dist/components/ui/checkbox.es.js +35 -35
  244. package/dist/components/ui/checkbox.es.js.map +1 -1
  245. package/dist/components/ui/dialog.cjs +1 -1
  246. package/dist/components/ui/dialog.cjs.map +1 -1
  247. package/dist/components/ui/dialog.d.ts +5 -1
  248. package/dist/components/ui/dialog.es.js +37 -37
  249. package/dist/components/ui/dialog.es.js.map +1 -1
  250. package/dist/components/ui/input.cjs +1 -1
  251. package/dist/components/ui/input.cjs.map +1 -1
  252. package/dist/components/ui/input.es.js +4 -4
  253. package/dist/components/ui/input.es.js.map +1 -1
  254. package/dist/components/ui/inputGroup/button.cjs +1 -1
  255. package/dist/components/ui/inputGroup/button.cjs.map +1 -1
  256. package/dist/components/ui/inputGroup/button.es.js +9 -10
  257. package/dist/components/ui/inputGroup/button.es.js.map +1 -1
  258. package/dist/components/ui/inputGroup/input-group.cjs +1 -1
  259. package/dist/components/ui/inputGroup/input-group.cjs.map +1 -1
  260. package/dist/components/ui/inputGroup/input-group.d.ts +1 -1
  261. package/dist/components/ui/inputGroup/input-group.es.js +10 -10
  262. package/dist/components/ui/inputGroup/input-group.es.js.map +1 -1
  263. package/dist/components/ui/inputGroup/textarea.cjs +1 -1
  264. package/dist/components/ui/inputGroup/textarea.cjs.map +1 -1
  265. package/dist/components/ui/inputGroup/textarea.es.js +3 -3
  266. package/dist/components/ui/inputGroup/textarea.es.js.map +1 -1
  267. package/dist/components/ui/loading-overlay-card.cjs +2 -2
  268. package/dist/components/ui/loading-overlay-card.cjs.map +1 -1
  269. package/dist/components/ui/loading-overlay-card.es.js +11 -11
  270. package/dist/components/ui/loading-overlay-card.es.js.map +1 -1
  271. package/dist/components/ui/popover.cjs +1 -1
  272. package/dist/components/ui/popover.cjs.map +1 -1
  273. package/dist/components/ui/popover.es.js +6 -6
  274. package/dist/components/ui/popover.es.js.map +1 -1
  275. package/dist/components/ui/tooltip.cjs +1 -1
  276. package/dist/components/ui/tooltip.cjs.map +1 -1
  277. package/dist/components/ui/tooltip.es.js +16 -16
  278. package/dist/components/ui/tooltip.es.js.map +1 -1
  279. package/dist/editor.d.ts +2 -2
  280. package/dist/fonts/KaTeX_AMS-Regular.ttf +0 -0
  281. package/dist/fonts/KaTeX_AMS-Regular.woff +0 -0
  282. package/dist/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  283. package/dist/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
  284. package/dist/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
  285. package/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  286. package/dist/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
  287. package/dist/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
  288. package/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  289. package/dist/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
  290. package/dist/fonts/KaTeX_Fraktur-Bold.woff +0 -0
  291. package/dist/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  292. package/dist/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
  293. package/dist/fonts/KaTeX_Fraktur-Regular.woff +0 -0
  294. package/dist/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  295. package/dist/fonts/KaTeX_Main-Bold.ttf +0 -0
  296. package/dist/fonts/KaTeX_Main-Bold.woff +0 -0
  297. package/dist/fonts/KaTeX_Main-Bold.woff2 +0 -0
  298. package/dist/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
  299. package/dist/fonts/KaTeX_Main-BoldItalic.woff +0 -0
  300. package/dist/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  301. package/dist/fonts/KaTeX_Main-Italic.ttf +0 -0
  302. package/dist/fonts/KaTeX_Main-Italic.woff +0 -0
  303. package/dist/fonts/KaTeX_Main-Italic.woff2 +0 -0
  304. package/dist/fonts/KaTeX_Main-Regular.ttf +0 -0
  305. package/dist/fonts/KaTeX_Main-Regular.woff +0 -0
  306. package/dist/fonts/KaTeX_Main-Regular.woff2 +0 -0
  307. package/dist/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
  308. package/dist/fonts/KaTeX_Math-BoldItalic.woff +0 -0
  309. package/dist/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  310. package/dist/fonts/KaTeX_Math-Italic.ttf +0 -0
  311. package/dist/fonts/KaTeX_Math-Italic.woff +0 -0
  312. package/dist/fonts/KaTeX_Math-Italic.woff2 +0 -0
  313. package/dist/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
  314. package/dist/fonts/KaTeX_SansSerif-Bold.woff +0 -0
  315. package/dist/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  316. package/dist/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
  317. package/dist/fonts/KaTeX_SansSerif-Italic.woff +0 -0
  318. package/dist/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  319. package/dist/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
  320. package/dist/fonts/KaTeX_SansSerif-Regular.woff +0 -0
  321. package/dist/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  322. package/dist/fonts/KaTeX_Script-Regular.ttf +0 -0
  323. package/dist/fonts/KaTeX_Script-Regular.woff +0 -0
  324. package/dist/fonts/KaTeX_Script-Regular.woff2 +0 -0
  325. package/dist/fonts/KaTeX_Size1-Regular.ttf +0 -0
  326. package/dist/fonts/KaTeX_Size1-Regular.woff +0 -0
  327. package/dist/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  328. package/dist/fonts/KaTeX_Size2-Regular.ttf +0 -0
  329. package/dist/fonts/KaTeX_Size2-Regular.woff +0 -0
  330. package/dist/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  331. package/dist/fonts/KaTeX_Size3-Regular.ttf +0 -0
  332. package/dist/fonts/KaTeX_Size3-Regular.woff +0 -0
  333. package/dist/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  334. package/dist/fonts/KaTeX_Size4-Regular.ttf +0 -0
  335. package/dist/fonts/KaTeX_Size4-Regular.woff +0 -0
  336. package/dist/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  337. package/dist/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
  338. package/dist/fonts/KaTeX_Typewriter-Regular.woff +0 -0
  339. package/dist/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  340. package/dist/index.cjs +1 -1
  341. package/dist/index.d.ts +2 -2
  342. package/dist/index.es.js +22 -19
  343. package/dist/index.es.js.map +1 -1
  344. package/dist/lib/locale.cjs +1 -1
  345. package/dist/lib/locale.cjs.map +1 -1
  346. package/dist/lib/locale.d.ts +5 -1
  347. package/dist/lib/locale.es.js +26 -13
  348. package/dist/lib/locale.es.js.map +1 -1
  349. package/dist/lib/locale.test.d.ts +1 -0
  350. package/dist/lib/useDetachedLanguage.cjs +2 -0
  351. package/dist/lib/useDetachedLanguage.cjs.map +1 -0
  352. package/dist/lib/useDetachedLanguage.d.ts +3 -0
  353. package/dist/lib/useDetachedLanguage.es.js +25 -0
  354. package/dist/lib/useDetachedLanguage.es.js.map +1 -0
  355. package/dist/lib/useResolvedDirection.cjs +2 -0
  356. package/dist/lib/useResolvedDirection.cjs.map +1 -0
  357. package/dist/lib/useResolvedDirection.d.ts +6 -0
  358. package/dist/lib/useResolvedDirection.es.js +37 -0
  359. package/dist/lib/useResolvedDirection.es.js.map +1 -0
  360. package/dist/markdown-flow-ui-lib.css +1 -1
  361. package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs +1 -1
  362. package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs.map +1 -1
  363. package/dist/node_modules/@radix-ui/react-arrow/dist/index.es.js +6 -6
  364. package/dist/node_modules/@radix-ui/react-arrow/dist/index.es.js.map +1 -1
  365. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs +1 -1
  366. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -1
  367. package/dist/node_modules/@radix-ui/react-context/dist/index.es.js +21 -21
  368. package/dist/node_modules/@radix-ui/react-context/dist/index.es.js.map +1 -1
  369. package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs +2 -2
  370. package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs.map +1 -1
  371. package/dist/node_modules/@radix-ui/react-dialog/dist/index.es.js +100 -100
  372. package/dist/node_modules/@radix-ui/react-dialog/dist/index.es.js.map +1 -1
  373. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +1 -1
  374. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -1
  375. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js +38 -38
  376. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +1 -1
  377. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +1 -1
  378. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -1
  379. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.js +9 -9
  380. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.js.map +1 -1
  381. package/dist/node_modules/@radix-ui/react-popover/dist/index.cjs +1 -1
  382. package/dist/node_modules/@radix-ui/react-popover/dist/index.cjs.map +1 -1
  383. package/dist/node_modules/@radix-ui/react-popover/dist/index.es.js +95 -95
  384. package/dist/node_modules/@radix-ui/react-popover/dist/index.es.js.map +1 -1
  385. package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs +1 -1
  386. package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs.map +1 -1
  387. package/dist/node_modules/@radix-ui/react-popper/dist/index.es.js +48 -48
  388. package/dist/node_modules/@radix-ui/react-popper/dist/index.es.js.map +1 -1
  389. package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs +1 -1
  390. package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -1
  391. package/dist/node_modules/@radix-ui/react-portal/dist/index.es.js +6 -6
  392. package/dist/node_modules/@radix-ui/react-portal/dist/index.es.js.map +1 -1
  393. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs +1 -1
  394. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -1
  395. package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js +9 -9
  396. package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -1
  397. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -1
  398. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
  399. package/dist/node_modules/@radix-ui/react-slot/dist/index.es.js +17 -17
  400. package/dist/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -1
  401. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs +1 -1
  402. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs.map +1 -1
  403. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.es.js +100 -100
  404. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.es.js.map +1 -1
  405. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +1 -1
  406. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs.map +1 -1
  407. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.es.js +6 -6
  408. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.es.js.map +1 -1
  409. package/dist/node_modules/@uiw/react-codemirror/esm/index.cjs +1 -1
  410. package/dist/node_modules/@uiw/react-codemirror/esm/index.cjs.map +1 -1
  411. package/dist/node_modules/@uiw/react-codemirror/esm/index.es.js +27 -27
  412. package/dist/node_modules/@uiw/react-codemirror/esm/index.es.js.map +1 -1
  413. package/dist/node_modules/lucide-react/dist/esm/icons/{chevron-down.cjs → chevrons-down.cjs} +2 -2
  414. package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-down.cjs.map +1 -0
  415. package/dist/node_modules/lucide-react/dist/esm/icons/{chevron-down.es.js → chevrons-down.es.js} +6 -3
  416. package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-down.es.js.map +1 -0
  417. package/dist/node_modules/rc-input/es/BaseInput.cjs +1 -1
  418. package/dist/node_modules/rc-input/es/BaseInput.es.js +1 -1
  419. package/dist/node_modules/rc-textarea/es/ResizableTextArea.cjs +1 -1
  420. package/dist/node_modules/rc-textarea/es/ResizableTextArea.es.js +1 -1
  421. package/dist/node_modules/rc-textarea/es/TextArea.cjs +1 -1
  422. package/dist/node_modules/rc-textarea/es/TextArea.es.js +1 -1
  423. package/dist/node_modules/rc-textarea/es/index.cjs +1 -1
  424. package/dist/node_modules/rc-textarea/es/index.es.js +1 -1
  425. package/dist/node_modules/react-markdown/lib/index.cjs +1 -1
  426. package/dist/node_modules/react-markdown/lib/index.cjs.map +1 -1
  427. package/dist/node_modules/react-markdown/lib/index.es.js +39 -39
  428. package/dist/node_modules/react-markdown/lib/index.es.js.map +1 -1
  429. package/dist/node_modules/remark-flow/dist/interaction-plugin-core.cjs +1 -1
  430. package/dist/node_modules/remark-flow/dist/interaction-plugin-core.es.js +1 -1
  431. package/dist/renderer.cjs +1 -1
  432. package/dist/renderer.d.ts +18 -17
  433. package/dist/renderer.es.js +20 -17
  434. package/dist/renderer.es.js.map +1 -1
  435. package/dist/scroll.cjs +2 -0
  436. package/dist/scroll.cjs.map +1 -0
  437. package/dist/scroll.d.ts +6 -0
  438. package/dist/scroll.es.js +9 -0
  439. package/dist/scroll.es.js.map +1 -0
  440. package/dist/slide.d.ts +3 -3
  441. package/package.json +13 -2
  442. package/dist/_virtual/jsx-runtime.cjs +0 -2
  443. package/dist/_virtual/jsx-runtime.cjs.map +0 -1
  444. package/dist/_virtual/jsx-runtime.es.js +0 -6
  445. package/dist/_virtual/jsx-runtime.es.js.map +0 -1
  446. package/dist/_virtual/jsx-runtime.es2.js +0 -5
  447. package/dist/_virtual/jsx-runtime.es2.js.map +0 -1
  448. package/dist/_virtual/jsx-runtime2.cjs +0 -2
  449. package/dist/_virtual/jsx-runtime2.cjs.map +0 -1
  450. package/dist/_virtual/react-jsx-runtime.development.cjs +0 -2
  451. package/dist/_virtual/react-jsx-runtime.development.cjs.map +0 -1
  452. package/dist/_virtual/react-jsx-runtime.development.es.js +0 -5
  453. package/dist/_virtual/react-jsx-runtime.development.es.js.map +0 -1
  454. package/dist/_virtual/react-jsx-runtime.production.cjs +0 -2
  455. package/dist/_virtual/react-jsx-runtime.production.cjs.map +0 -1
  456. package/dist/_virtual/react-jsx-runtime.production.es.js +0 -5
  457. package/dist/_virtual/react-jsx-runtime.production.es.js.map +0 -1
  458. package/dist/lib/localeTextMap.cjs +0 -2
  459. package/dist/lib/localeTextMap.cjs.map +0 -1
  460. package/dist/lib/localeTextMap.es.js +0 -5
  461. package/dist/lib/localeTextMap.es.js.map +0 -1
  462. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.cjs.map +0 -1
  463. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.es.js.map +0 -1
  464. package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs +0 -24
  465. package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.map +0 -1
  466. package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js +0 -409
  467. package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js.map +0 -1
  468. package/dist/node_modules/react/cjs/react-jsx-runtime.production.cjs +0 -10
  469. package/dist/node_modules/react/cjs/react-jsx-runtime.production.cjs.map +0 -1
  470. package/dist/node_modules/react/cjs/react-jsx-runtime.production.es.js +0 -36
  471. package/dist/node_modules/react/cjs/react-jsx-runtime.production.es.js.map +0 -1
  472. package/dist/node_modules/react/jsx-runtime.cjs +0 -2
  473. package/dist/node_modules/react/jsx-runtime.cjs.map +0 -1
  474. package/dist/node_modules/react/jsx-runtime.es.js +0 -11
  475. package/dist/node_modules/react/jsx-runtime.es.js.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("../../_virtual/jsx-runtime.cjs"),l=require("react"),v=require("../../lib/utils.cjs"),f=require("./utils/subtitleCue.cjs"),p=require("./utils/playbackTimeStore.cjs");;/* empty css */const S=({className:c,extraBottomOffset:n=0,hasPlayerGap:m=!1,isEnabled:e=!0,isPlayerHidden:b=!1,onVisibilityChange:i,playbackTimeStore:d,style:x,subtitleCues:r=[],...y})=>{const u=p.usePlaybackTimeStore(d),t=l.useMemo(()=>f.getVisibleSubtitleText(r,u),[u,r]),a=!!t;return l.useEffect(()=>{i?.(e&&a)},[a,e,i]),!e||!t?null:s.jsxRuntimeExports.jsx("div",{"aria-live":"off",className:v.cn("slide-subtitle-overlay",m&&"slide-subtitle-overlay--with-player-gap",b&&"slide-subtitle-overlay--player-hidden",c),style:{...x,"--slide-subtitle-extra-offset":`${Math.max(n,0)}px`},...y,children:s.jsxRuntimeExports.jsx("div",{className:"slide-subtitle-overlay__surface",children:s.jsxRuntimeExports.jsx("p",{className:"slide-subtitle-overlay__text",children:t})})})},o=l.memo(S);o.displayName="SubtitleOverlay";exports.default=o;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("react/jsx-runtime"),s=require("react"),f=require("../../lib/utils.cjs"),S=require("./utils/subtitleCue.cjs"),x=require("./utils/playbackTimeStore.cjs");;/* empty css */const p=({className:c,extraBottomOffset:n=0,hasPlayerGap:b=!1,isEnabled:e=!0,isPlayerHidden:d=!1,onVisibilityChange:i,playbackTimeStore:m,style:y,subtitleCues:r=[],...v})=>{const a=x.usePlaybackTimeStore(m),t=s.useMemo(()=>S.getVisibleSubtitleText(r,a),[a,r]),u=!!t;return s.useEffect(()=>{i?.(e&&u)},[u,e,i]),!e||!t?null:l.jsx("div",{"aria-live":"off",className:f.cn("slide-subtitle-overlay",b&&"slide-subtitle-overlay--with-player-gap",d&&"slide-subtitle-overlay--player-hidden",c),style:{...y,"--slide-subtitle-extra-offset":`${Math.max(n,0)}px`},...v,children:l.jsx("div",{className:"slide-subtitle-overlay__surface",children:l.jsx("p",{className:"slide-subtitle-overlay__text",children:t})})})},o=s.memo(p);o.displayName="SubtitleOverlay";exports.default=o;
2
2
  //# sourceMappingURL=SubtitleOverlay.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"SubtitleOverlay.cjs","sources":["../../../src/components/Slide/SubtitleOverlay.tsx"],"sourcesContent":["import React, { memo, useEffect, useMemo } from \"react\";\n\nimport { cn } from \"../../lib/utils\";\nimport { getVisibleSubtitleText } from \"./utils/subtitleCue\";\nimport { usePlaybackTimeStore } from \"./utils/playbackTimeStore\";\nimport type { PlaybackTimeStore } from \"./utils/playbackTimeStore\";\nimport type { ElementSubtitleCue } from \"./types\";\nimport \"./subtitle-overlay.css\";\n\nexport interface SubtitleOverlayProps\n extends Omit<React.ComponentProps<\"div\">, \"children\"> {\n extraBottomOffset?: number;\n hasPlayerGap?: boolean;\n isEnabled?: boolean;\n isPlayerHidden?: boolean;\n onVisibilityChange?: (visible: boolean) => void;\n playbackTimeStore: PlaybackTimeStore;\n subtitleCues?: ElementSubtitleCue[];\n}\n\nconst SubtitleOverlay = ({\n className,\n extraBottomOffset = 0,\n hasPlayerGap = false,\n isEnabled = true,\n isPlayerHidden = false,\n onVisibilityChange,\n playbackTimeStore,\n style,\n subtitleCues = [],\n ...props\n}: SubtitleOverlayProps) => {\n const currentTimeMs = usePlaybackTimeStore(playbackTimeStore);\n const visibleSubtitleText = useMemo(\n () => getVisibleSubtitleText(subtitleCues, currentTimeMs),\n [currentTimeMs, subtitleCues]\n );\n const hasVisibleSubtitle = Boolean(visibleSubtitleText);\n\n useEffect(() => {\n onVisibilityChange?.(isEnabled && hasVisibleSubtitle);\n }, [hasVisibleSubtitle, isEnabled, onVisibilityChange]);\n\n if (!isEnabled || !visibleSubtitleText) {\n return null;\n }\n\n return (\n <div\n aria-live=\"off\"\n className={cn(\n \"slide-subtitle-overlay\",\n hasPlayerGap && \"slide-subtitle-overlay--with-player-gap\",\n isPlayerHidden && \"slide-subtitle-overlay--player-hidden\",\n className\n )}\n style={\n {\n ...style,\n \"--slide-subtitle-extra-offset\": `${Math.max(extraBottomOffset, 0)}px`,\n } as React.CSSProperties\n }\n {...props}\n >\n <div className=\"slide-subtitle-overlay__surface\">\n <p className=\"slide-subtitle-overlay__text\">{visibleSubtitleText}</p>\n </div>\n </div>\n );\n};\n\nconst MemoizedSubtitleOverlay = memo(SubtitleOverlay);\n\nMemoizedSubtitleOverlay.displayName = \"SubtitleOverlay\";\n\nexport default MemoizedSubtitleOverlay;\n"],"names":["SubtitleOverlay","className","extraBottomOffset","hasPlayerGap","isEnabled","isPlayerHidden","onVisibilityChange","playbackTimeStore","style","subtitleCues","props","currentTimeMs","usePlaybackTimeStore","visibleSubtitleText","useMemo","getVisibleSubtitleText","hasVisibleSubtitle","useEffect","jsx","cn","MemoizedSubtitleOverlay","memo"],"mappings":"wUAoBA,MAAMA,EAAkB,CAAC,CACvB,UAAAC,EACA,kBAAAC,EAAoB,EACpB,aAAAC,EAAe,GACf,UAAAC,EAAY,GACZ,eAAAC,EAAiB,GACjB,mBAAAC,EAAA,kBACAC,EACA,MAAAC,EACA,aAAAC,EAAe,CAAA,EACf,GAAGC,CACL,IAA4B,CAC1B,MAAMC,EAAgBC,EAAAA,qBAAqBL,CAAiB,EACtDM,EAAsBC,EAAAA,QAC1B,IAAMC,EAAAA,uBAAuBN,EAAcE,CAAa,EACxD,CAACA,EAAeF,CAAY,CAAA,EAExBO,EAAqB,EAAQH,EAMnC,OAJAI,EAAAA,UAAU,IAAM,CACdX,IAAqBF,GAAaY,CAAkB,CACtD,EAAG,CAACA,EAAoBZ,EAAWE,CAAkB,CAAC,EAElD,CAACF,GAAa,CAACS,EACV,KAIPK,EAAAA,kBAAAA,IAAC,MAAA,CACC,YAAU,MACV,UAAWC,EAAAA,GACT,yBACAhB,GAAgB,0CAChBE,GAAkB,wCAClBJ,CAAA,EAEF,MACE,CACE,GAAGO,EACH,gCAAiC,GAAG,KAAK,IAAIN,EAAmB,CAAC,CAAC,IAAA,EAGrE,GAAGQ,EAEJ,SAAAQ,EAAAA,kBAAAA,IAAC,OAAI,UAAU,kCACb,iCAAC,IAAA,CAAE,UAAU,+BAAgC,SAAAL,CAAA,CAAoB,CAAA,CACnE,CAAA,CAAA,CAGN,EAEMO,EAA0BC,EAAAA,KAAKrB,CAAe,EAEpDoB,EAAwB,YAAc"}
1
+ {"version":3,"file":"SubtitleOverlay.cjs","sources":["../../../src/components/Slide/SubtitleOverlay.tsx"],"sourcesContent":["import React, { memo, useEffect, useMemo } from \"react\";\n\nimport { cn } from \"../../lib/utils\";\nimport { getVisibleSubtitleText } from \"./utils/subtitleCue\";\nimport { usePlaybackTimeStore } from \"./utils/playbackTimeStore\";\nimport type { PlaybackTimeStore } from \"./utils/playbackTimeStore\";\nimport type { ElementSubtitleCue } from \"./types\";\nimport \"./subtitle-overlay.css\";\n\nexport interface SubtitleOverlayProps\n extends Omit<React.ComponentProps<\"div\">, \"children\"> {\n extraBottomOffset?: number;\n hasPlayerGap?: boolean;\n isEnabled?: boolean;\n isPlayerHidden?: boolean;\n onVisibilityChange?: (visible: boolean) => void;\n playbackTimeStore: PlaybackTimeStore;\n subtitleCues?: ElementSubtitleCue[];\n}\n\nconst SubtitleOverlay = ({\n className,\n extraBottomOffset = 0,\n hasPlayerGap = false,\n isEnabled = true,\n isPlayerHidden = false,\n onVisibilityChange,\n playbackTimeStore,\n style,\n subtitleCues = [],\n ...props\n}: SubtitleOverlayProps) => {\n const currentTimeMs = usePlaybackTimeStore(playbackTimeStore);\n const visibleSubtitleText = useMemo(\n () => getVisibleSubtitleText(subtitleCues, currentTimeMs),\n [currentTimeMs, subtitleCues]\n );\n const hasVisibleSubtitle = Boolean(visibleSubtitleText);\n\n useEffect(() => {\n onVisibilityChange?.(isEnabled && hasVisibleSubtitle);\n }, [hasVisibleSubtitle, isEnabled, onVisibilityChange]);\n\n if (!isEnabled || !visibleSubtitleText) {\n return null;\n }\n\n return (\n <div\n aria-live=\"off\"\n className={cn(\n \"slide-subtitle-overlay\",\n hasPlayerGap && \"slide-subtitle-overlay--with-player-gap\",\n isPlayerHidden && \"slide-subtitle-overlay--player-hidden\",\n className\n )}\n style={\n {\n ...style,\n \"--slide-subtitle-extra-offset\": `${Math.max(extraBottomOffset, 0)}px`,\n } as React.CSSProperties\n }\n {...props}\n >\n <div className=\"slide-subtitle-overlay__surface\">\n <p className=\"slide-subtitle-overlay__text\">{visibleSubtitleText}</p>\n </div>\n </div>\n );\n};\n\nconst MemoizedSubtitleOverlay = memo(SubtitleOverlay);\n\nMemoizedSubtitleOverlay.displayName = \"SubtitleOverlay\";\n\nexport default MemoizedSubtitleOverlay;\n"],"names":["SubtitleOverlay","className","extraBottomOffset","hasPlayerGap","isEnabled","isPlayerHidden","onVisibilityChange","playbackTimeStore","style","subtitleCues","props","currentTimeMs","usePlaybackTimeStore","visibleSubtitleText","useMemo","getVisibleSubtitleText","hasVisibleSubtitle","useEffect","jsx","cn","MemoizedSubtitleOverlay","memo"],"mappings":"2TAoBA,MAAMA,EAAkB,CAAC,CACvB,UAAAC,EACA,kBAAAC,EAAoB,EACpB,aAAAC,EAAe,GACf,UAAAC,EAAY,GACZ,eAAAC,EAAiB,GACjB,mBAAAC,EAAA,kBACAC,EACA,MAAAC,EACA,aAAAC,EAAe,CAAA,EACf,GAAGC,CACL,IAA4B,CAC1B,MAAMC,EAAgBC,EAAAA,qBAAqBL,CAAiB,EACtDM,EAAsBC,EAAAA,QAC1B,IAAMC,EAAAA,uBAAuBN,EAAcE,CAAa,EACxD,CAACA,EAAeF,CAAY,CAAA,EAExBO,EAAqB,EAAQH,EAMnC,OAJAI,EAAAA,UAAU,IAAM,CACdX,IAAqBF,GAAaY,CAAkB,CACtD,EAAG,CAACA,EAAoBZ,EAAWE,CAAkB,CAAC,EAElD,CAACF,GAAa,CAACS,EACV,KAIPK,EAAAA,IAAC,MAAA,CACC,YAAU,MACV,UAAWC,EAAAA,GACT,yBACAhB,GAAgB,0CAChBE,GAAkB,wCAClBJ,CAAA,EAEF,MACE,CACE,GAAGO,EACH,gCAAiC,GAAG,KAAK,IAAIN,EAAmB,CAAC,CAAC,IAAA,EAGrE,GAAGQ,EAEJ,SAAAQ,EAAAA,IAAC,OAAI,UAAU,kCACb,eAAC,IAAA,CAAE,UAAU,+BAAgC,SAAAL,CAAA,CAAoB,CAAA,CACnE,CAAA,CAAA,CAGN,EAEMO,EAA0BC,EAAAA,KAAKrB,CAAe,EAEpDoB,EAAwB,YAAc"}
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
- import { PlaybackTimeStore } from './utils/playbackTimeStore';
3
- import { ElementSubtitleCue } from './types';
2
+ import { PlaybackTimeStore } from './utils/playbackTimeStore.js';
3
+ import { ElementSubtitleCue } from './types.js';
4
4
  export interface SubtitleOverlayProps extends Omit<React.ComponentProps<"div">, "children"> {
5
5
  extraBottomOffset?: number;
6
6
  hasPlayerGap?: boolean;
@@ -1,7 +1,7 @@
1
- import { j as l } from "../../_virtual/jsx-runtime.es.js";
2
- import { memo as b, useMemo as n, useEffect as v } from "react";
3
- import { cn as x } from "../../lib/utils.es.js";
4
- import { getVisibleSubtitleText as y } from "./utils/subtitleCue.es.js";
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { memo as b, useMemo as v, useEffect as y } from "react";
3
+ import { cn as n } from "../../lib/utils.es.js";
4
+ import { getVisibleSubtitleText as x } from "./utils/subtitleCue.es.js";
5
5
  import { usePlaybackTimeStore as S } from "./utils/playbackTimeStore.es.js";
6
6
  /* empty css */
7
7
  const h = ({
@@ -10,23 +10,23 @@ const h = ({
10
10
  hasPlayerGap: u = !1,
11
11
  isEnabled: e = !0,
12
12
  isPlayerHidden: c = !1,
13
- onVisibilityChange: s,
13
+ onVisibilityChange: i,
14
14
  playbackTimeStore: f,
15
15
  style: d,
16
- subtitleCues: i = [],
16
+ subtitleCues: r = [],
17
17
  ...p
18
18
  }) => {
19
- const r = S(f), t = n(
20
- () => y(i, r),
21
- [r, i]
19
+ const s = S(f), t = v(
20
+ () => x(r, s),
21
+ [s, r]
22
22
  ), a = !!t;
23
- return v(() => {
24
- s?.(e && a);
25
- }, [a, e, s]), !e || !t ? null : /* @__PURE__ */ l.jsx(
23
+ return y(() => {
24
+ i?.(e && a);
25
+ }, [a, e, i]), !e || !t ? null : /* @__PURE__ */ l(
26
26
  "div",
27
27
  {
28
28
  "aria-live": "off",
29
- className: x(
29
+ className: n(
30
30
  "slide-subtitle-overlay",
31
31
  u && "slide-subtitle-overlay--with-player-gap",
32
32
  c && "slide-subtitle-overlay--player-hidden",
@@ -37,12 +37,12 @@ const h = ({
37
37
  "--slide-subtitle-extra-offset": `${Math.max(m, 0)}px`
38
38
  },
39
39
  ...p,
40
- children: /* @__PURE__ */ l.jsx("div", { className: "slide-subtitle-overlay__surface", children: /* @__PURE__ */ l.jsx("p", { className: "slide-subtitle-overlay__text", children: t }) })
40
+ children: /* @__PURE__ */ l("div", { className: "slide-subtitle-overlay__surface", children: /* @__PURE__ */ l("p", { className: "slide-subtitle-overlay__text", children: t }) })
41
41
  }
42
42
  );
43
- }, j = b(h);
44
- j.displayName = "SubtitleOverlay";
43
+ }, M = b(h);
44
+ M.displayName = "SubtitleOverlay";
45
45
  export {
46
- j as default
46
+ M as default
47
47
  };
48
48
  //# sourceMappingURL=SubtitleOverlay.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SubtitleOverlay.es.js","sources":["../../../src/components/Slide/SubtitleOverlay.tsx"],"sourcesContent":["import React, { memo, useEffect, useMemo } from \"react\";\n\nimport { cn } from \"../../lib/utils\";\nimport { getVisibleSubtitleText } from \"./utils/subtitleCue\";\nimport { usePlaybackTimeStore } from \"./utils/playbackTimeStore\";\nimport type { PlaybackTimeStore } from \"./utils/playbackTimeStore\";\nimport type { ElementSubtitleCue } from \"./types\";\nimport \"./subtitle-overlay.css\";\n\nexport interface SubtitleOverlayProps\n extends Omit<React.ComponentProps<\"div\">, \"children\"> {\n extraBottomOffset?: number;\n hasPlayerGap?: boolean;\n isEnabled?: boolean;\n isPlayerHidden?: boolean;\n onVisibilityChange?: (visible: boolean) => void;\n playbackTimeStore: PlaybackTimeStore;\n subtitleCues?: ElementSubtitleCue[];\n}\n\nconst SubtitleOverlay = ({\n className,\n extraBottomOffset = 0,\n hasPlayerGap = false,\n isEnabled = true,\n isPlayerHidden = false,\n onVisibilityChange,\n playbackTimeStore,\n style,\n subtitleCues = [],\n ...props\n}: SubtitleOverlayProps) => {\n const currentTimeMs = usePlaybackTimeStore(playbackTimeStore);\n const visibleSubtitleText = useMemo(\n () => getVisibleSubtitleText(subtitleCues, currentTimeMs),\n [currentTimeMs, subtitleCues]\n );\n const hasVisibleSubtitle = Boolean(visibleSubtitleText);\n\n useEffect(() => {\n onVisibilityChange?.(isEnabled && hasVisibleSubtitle);\n }, [hasVisibleSubtitle, isEnabled, onVisibilityChange]);\n\n if (!isEnabled || !visibleSubtitleText) {\n return null;\n }\n\n return (\n <div\n aria-live=\"off\"\n className={cn(\n \"slide-subtitle-overlay\",\n hasPlayerGap && \"slide-subtitle-overlay--with-player-gap\",\n isPlayerHidden && \"slide-subtitle-overlay--player-hidden\",\n className\n )}\n style={\n {\n ...style,\n \"--slide-subtitle-extra-offset\": `${Math.max(extraBottomOffset, 0)}px`,\n } as React.CSSProperties\n }\n {...props}\n >\n <div className=\"slide-subtitle-overlay__surface\">\n <p className=\"slide-subtitle-overlay__text\">{visibleSubtitleText}</p>\n </div>\n </div>\n );\n};\n\nconst MemoizedSubtitleOverlay = memo(SubtitleOverlay);\n\nMemoizedSubtitleOverlay.displayName = \"SubtitleOverlay\";\n\nexport default MemoizedSubtitleOverlay;\n"],"names":["SubtitleOverlay","className","extraBottomOffset","hasPlayerGap","isEnabled","isPlayerHidden","onVisibilityChange","playbackTimeStore","style","subtitleCues","props","currentTimeMs","usePlaybackTimeStore","visibleSubtitleText","useMemo","getVisibleSubtitleText","hasVisibleSubtitle","useEffect","jsx","cn","MemoizedSubtitleOverlay","memo"],"mappings":";;;;;;AAoBA,MAAMA,IAAkB,CAAC;AAAA,EACvB,WAAAC;AAAA,EACA,mBAAAC,IAAoB;AAAA,EACpB,cAAAC,IAAe;AAAA,EACf,WAAAC,IAAY;AAAA,EACZ,gBAAAC,IAAiB;AAAA,EACjB,oBAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,OAAAC;AAAA,EACA,cAAAC,IAAe,CAAA;AAAA,EACf,GAAGC;AACL,MAA4B;AAC1B,QAAMC,IAAgBC,EAAqBL,CAAiB,GACtDM,IAAsBC;AAAA,IAC1B,MAAMC,EAAuBN,GAAcE,CAAa;AAAA,IACxD,CAACA,GAAeF,CAAY;AAAA,EAAA,GAExBO,IAAqB,EAAQH;AAMnC,SAJAI,EAAU,MAAM;AACd,IAAAX,IAAqBF,KAAaY,CAAkB;AAAA,EACtD,GAAG,CAACA,GAAoBZ,GAAWE,CAAkB,CAAC,GAElD,CAACF,KAAa,CAACS,IACV,OAIPK,gBAAAA,EAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWC;AAAA,QACT;AAAA,QACAhB,KAAgB;AAAA,QAChBE,KAAkB;AAAA,QAClBJ;AAAA,MAAA;AAAA,MAEF,OACE;AAAA,QACE,GAAGO;AAAA,QACH,iCAAiC,GAAG,KAAK,IAAIN,GAAmB,CAAC,CAAC;AAAA,MAAA;AAAA,MAGrE,GAAGQ;AAAA,MAEJ,UAAAQ,gBAAAA,EAAAA,IAAC,SAAI,WAAU,mCACb,gCAAC,KAAA,EAAE,WAAU,gCAAgC,UAAAL,EAAA,CAAoB,EAAA,CACnE;AAAA,IAAA;AAAA,EAAA;AAGN,GAEMO,IAA0BC,EAAKrB,CAAe;AAEpDoB,EAAwB,cAAc;"}
1
+ {"version":3,"file":"SubtitleOverlay.es.js","sources":["../../../src/components/Slide/SubtitleOverlay.tsx"],"sourcesContent":["import React, { memo, useEffect, useMemo } from \"react\";\n\nimport { cn } from \"../../lib/utils\";\nimport { getVisibleSubtitleText } from \"./utils/subtitleCue\";\nimport { usePlaybackTimeStore } from \"./utils/playbackTimeStore\";\nimport type { PlaybackTimeStore } from \"./utils/playbackTimeStore\";\nimport type { ElementSubtitleCue } from \"./types\";\nimport \"./subtitle-overlay.css\";\n\nexport interface SubtitleOverlayProps\n extends Omit<React.ComponentProps<\"div\">, \"children\"> {\n extraBottomOffset?: number;\n hasPlayerGap?: boolean;\n isEnabled?: boolean;\n isPlayerHidden?: boolean;\n onVisibilityChange?: (visible: boolean) => void;\n playbackTimeStore: PlaybackTimeStore;\n subtitleCues?: ElementSubtitleCue[];\n}\n\nconst SubtitleOverlay = ({\n className,\n extraBottomOffset = 0,\n hasPlayerGap = false,\n isEnabled = true,\n isPlayerHidden = false,\n onVisibilityChange,\n playbackTimeStore,\n style,\n subtitleCues = [],\n ...props\n}: SubtitleOverlayProps) => {\n const currentTimeMs = usePlaybackTimeStore(playbackTimeStore);\n const visibleSubtitleText = useMemo(\n () => getVisibleSubtitleText(subtitleCues, currentTimeMs),\n [currentTimeMs, subtitleCues]\n );\n const hasVisibleSubtitle = Boolean(visibleSubtitleText);\n\n useEffect(() => {\n onVisibilityChange?.(isEnabled && hasVisibleSubtitle);\n }, [hasVisibleSubtitle, isEnabled, onVisibilityChange]);\n\n if (!isEnabled || !visibleSubtitleText) {\n return null;\n }\n\n return (\n <div\n aria-live=\"off\"\n className={cn(\n \"slide-subtitle-overlay\",\n hasPlayerGap && \"slide-subtitle-overlay--with-player-gap\",\n isPlayerHidden && \"slide-subtitle-overlay--player-hidden\",\n className\n )}\n style={\n {\n ...style,\n \"--slide-subtitle-extra-offset\": `${Math.max(extraBottomOffset, 0)}px`,\n } as React.CSSProperties\n }\n {...props}\n >\n <div className=\"slide-subtitle-overlay__surface\">\n <p className=\"slide-subtitle-overlay__text\">{visibleSubtitleText}</p>\n </div>\n </div>\n );\n};\n\nconst MemoizedSubtitleOverlay = memo(SubtitleOverlay);\n\nMemoizedSubtitleOverlay.displayName = \"SubtitleOverlay\";\n\nexport default MemoizedSubtitleOverlay;\n"],"names":["SubtitleOverlay","className","extraBottomOffset","hasPlayerGap","isEnabled","isPlayerHidden","onVisibilityChange","playbackTimeStore","style","subtitleCues","props","currentTimeMs","usePlaybackTimeStore","visibleSubtitleText","useMemo","getVisibleSubtitleText","hasVisibleSubtitle","useEffect","jsx","cn","MemoizedSubtitleOverlay","memo"],"mappings":";;;;;;AAoBA,MAAMA,IAAkB,CAAC;AAAA,EACvB,WAAAC;AAAA,EACA,mBAAAC,IAAoB;AAAA,EACpB,cAAAC,IAAe;AAAA,EACf,WAAAC,IAAY;AAAA,EACZ,gBAAAC,IAAiB;AAAA,EACjB,oBAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,OAAAC;AAAA,EACA,cAAAC,IAAe,CAAA;AAAA,EACf,GAAGC;AACL,MAA4B;AAC1B,QAAMC,IAAgBC,EAAqBL,CAAiB,GACtDM,IAAsBC;AAAA,IAC1B,MAAMC,EAAuBN,GAAcE,CAAa;AAAA,IACxD,CAACA,GAAeF,CAAY;AAAA,EAAA,GAExBO,IAAqB,EAAQH;AAMnC,SAJAI,EAAU,MAAM;AACd,IAAAX,IAAqBF,KAAaY,CAAkB;AAAA,EACtD,GAAG,CAACA,GAAoBZ,GAAWE,CAAkB,CAAC,GAElD,CAACF,KAAa,CAACS,IACV,OAIP,gBAAAK;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWC;AAAA,QACT;AAAA,QACAhB,KAAgB;AAAA,QAChBE,KAAkB;AAAA,QAClBJ;AAAA,MAAA;AAAA,MAEF,OACE;AAAA,QACE,GAAGO;AAAA,QACH,iCAAiC,GAAG,KAAK,IAAIN,GAAmB,CAAC,CAAC;AAAA,MAAA;AAAA,MAGrE,GAAGQ;AAAA,MAEJ,UAAA,gBAAAQ,EAAC,SAAI,WAAU,mCACb,4BAAC,KAAA,EAAE,WAAU,gCAAgC,UAAAL,EAAA,CAAoB,EAAA,CACnE;AAAA,IAAA;AAAA,EAAA;AAGN,GAEMO,IAA0BC,EAAKrB,CAAe;AAEpDoB,EAAwB,cAAc;"}
@@ -1,4 +1,4 @@
1
- import { Element } from './types';
1
+ import { Element } from './types.js';
2
2
  type DiffHunk = {
3
3
  oldStart: number;
4
4
  lines: string[];
@@ -1,14 +1,14 @@
1
- import { default as Slide } from './Slide';
2
- import { default as Player } from './Player';
3
- import { applyDiffElement, applyUnifiedDiff, parseUnifiedDiff, splitDiffContent } from './diff-utils';
4
- import { getInteractionDefaultSelectedValues, getInteractionDefaultValues } from '../../lib/interaction-defaults';
5
- import { default as useSlide } from './useSlide';
1
+ import { default as Slide } from './Slide.js';
2
+ import { default as Player } from './Player.js';
3
+ import { applyDiffElement, applyUnifiedDiff, parseUnifiedDiff, splitDiffContent } from './diff-utils.js';
4
+ import { getInteractionDefaultSelectedValues, getInteractionDefaultValues } from '../../lib/interaction-defaults.js';
5
+ import { default as useSlide } from './useSlide.js';
6
6
  export default Slide;
7
7
  export { Slide, applyDiffElement, applyUnifiedDiff, parseUnifiedDiff, splitDiffContent, Player, useSlide, getInteractionDefaultValues, getInteractionDefaultSelectedValues, };
8
- export type { SlideInteractionTexts, SlideFullscreenHeader, SlidePlayerControlsVisibility, SlideProps, } from './Slide';
9
- export type { InteractionDefaultResolver, InteractionDefaultResolverParams, InteractionDefaultValueOptions, InteractionDefaultValues, InteractionParseResult, } from '../../lib/interaction-defaults';
10
- export type { Element, ElementAudioSegment, ElementSubtitleCue, SlidePlayerCustomActionContext, SlidePlayerCustomActions, } from './types';
11
- export type { PlayerProps, SlidePlayerNavigationContext, SlidePlayerTexts, } from './Player';
12
- export type { MarkdownFlowLocale } from '../../lib/locale';
13
- export type { UseSlideResult } from './useSlide';
14
- export type { MobileViewMode } from './utils/mobileScreenMode';
8
+ export type { SlideInteractionTexts, SlideFullscreenHeader, SlidePlayerControlsVisibility, SlideProps, } from './Slide.js';
9
+ export type { InteractionDefaultResolver, InteractionDefaultResolverParams, InteractionDefaultValueOptions, InteractionDefaultValues, InteractionParseResult, } from '../../lib/interaction-defaults.js';
10
+ export type { Element, ElementAudioSegment, ElementSubtitleCue, SlidePlayerCustomActionContext, SlidePlayerCustomActions, } from './types.js';
11
+ export type { PlayerProps, SlidePlayerNavigationContext, SlidePlayerTexts, } from './Player.js';
12
+ export type { MarkdownFlowLocale } from '../../lib/locale.js';
13
+ export type { UseSlideResult } from './useSlide.js';
14
+ export type { MobileViewMode } from './utils/mobileScreenMode.js';
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={"en-US":{bufferingText:{waitingForAudio:"Waiting for current slide audio...",loadingAudio:"Loading audio...",waitingForMoreAudio:"Waiting for more audio..."},fullscreenBackAriaLabel:"Back to non-full screen",interactionTexts:{title:"Submit the content below to continue.",confirmButtonText:"Submit",copyButtonText:"Copy",copiedButtonText:"Copied",dragHandleAriaLabel:"Move interaction"},playerTexts:{closeSettingsLabel:"Close settings",enterFullscreenLabel:"Enter fullscreen",exitFullscreenLabel:"Exit fullscreen",moreOptionsAriaLabel:"More options",nextLabel:"Next page",nextSubtitleLabel:"Next sentence",notesLabel:"Notes",pauseAutoplayLabel:"Pause autoplay",pauseLabel:"Pause",playAutoplayLabel:"Play autoplay",playLabel:"Play",playbackShortcutLabel:"Space",previousLabel:"Previous page",previousSubtitleLabel:"Previous sentence",screenModeLabel:"Screen mode",settingsTitle:"Settings",subtitleLabel:"Subtitles",subtitleToggleAriaLabel:"Toggle subtitles",volumeAriaLabel:"Volume",screenLabel:"Screen",nonFullscreenLabel:"Non-fullscreen",fullscreenLabel:"Fullscreen",fullscreenHintText:"Please rotate your screen for the best experience"}},"fr-FR":{bufferingText:{waitingForAudio:"En attente de l'audio de la diapositive actuelle...",loadingAudio:"Chargement audio...",waitingForMoreAudio:"En attente de plus d'audio..."},fullscreenBackAriaLabel:"Retour au mode non plein écran",interactionTexts:{title:"Soumettez le contenu ci-dessous pour continuer.",confirmButtonText:"Soumettre",copyButtonText:"Copier",copiedButtonText:"Copié",dragHandleAriaLabel:"Déplacer le panneau d’interaction"},playerTexts:{closeSettingsLabel:"Fermer les paramètres",enterFullscreenLabel:"Passer en plein écran",exitFullscreenLabel:"Quitter le plein écran",moreOptionsAriaLabel:"Plus d'options",nextLabel:"Page suivante",nextSubtitleLabel:"Phrase suivante",notesLabel:"Notes",pauseAutoplayLabel:"Suspendre la lecture automatique",pauseLabel:"Pause",playAutoplayLabel:"Lancer la lecture automatique",playLabel:"Lecture",playbackShortcutLabel:"Barre d’espace",previousLabel:"Page précédente",previousSubtitleLabel:"Phrase précédente",screenModeLabel:"Mode d'affichage",settingsTitle:"Paramètres",subtitleLabel:"Sous-titres",subtitleToggleAriaLabel:"Afficher ou masquer les sous-titres",volumeAriaLabel:"Volume",screenLabel:"Écran",nonFullscreenLabel:"Hors plein écran",fullscreenLabel:"Plein écran",fullscreenHintText:"Veuillez tourner votre écran pour une meilleure expérience"}},"zh-CN":{bufferingText:{waitingForAudio:"正在等待当前页音频...",loadingAudio:"正在加载音频",waitingForMoreAudio:"正在等待音频"},fullscreenBackAriaLabel:"返回非全屏",interactionTexts:{title:"提交下面的内容以继续",confirmButtonText:"提交",copyButtonText:"复制",copiedButtonText:"已复制",dragHandleAriaLabel:"移动交互面板"},playerTexts:{closeSettingsLabel:"关闭设置",enterFullscreenLabel:"进入全屏",exitFullscreenLabel:"退出全屏",moreOptionsAriaLabel:"更多选项",nextLabel:"下一页",nextSubtitleLabel:"下一句",notesLabel:"笔记",pauseAutoplayLabel:"暂停自动播放",pauseLabel:"暂停",playAutoplayLabel:"开始自动播放",playLabel:"播放",playbackShortcutLabel:"空格键",previousLabel:"上一页",previousSubtitleLabel:"上一句",screenModeLabel:"屏幕模式",settingsTitle:"设置",subtitleLabel:"字幕",subtitleToggleAriaLabel:"切换字幕",volumeAriaLabel:"音量",screenLabel:"屏幕",nonFullscreenLabel:"非全屏",fullscreenLabel:"全屏",fullscreenHintText:"请旋转屏幕以获得最佳体验"}},"ar-SA":{bufferingText:{waitingForAudio:"في انتظار صوت الشريحة الحالية...",loadingAudio:"جارٍ تحميل الصوت...",waitingForMoreAudio:"في انتظار المزيد من الصوت..."},fullscreenBackAriaLabel:"العودة إلى العرض العادي",interactionTexts:{title:"أرسل المحتوى أدناه للمتابعة.",confirmButtonText:"إرسال",copyButtonText:"نسخ",copiedButtonText:"تم النسخ",dragHandleAriaLabel:"تحريك لوحة التفاعل"},playerTexts:{closeSettingsLabel:"إغلاق الإعدادات",enterFullscreenLabel:"الدخول إلى ملء الشاشة",exitFullscreenLabel:"الخروج من ملء الشاشة",moreOptionsAriaLabel:"مزيد من الخيارات",nextLabel:"الصفحة التالية",nextSubtitleLabel:"الجملة التالية",notesLabel:"الملاحظات",pauseAutoplayLabel:"إيقاف التشغيل التلقائي مؤقتًا",pauseLabel:"إيقاف مؤقت",playAutoplayLabel:"بدء التشغيل التلقائي",playLabel:"تشغيل",playbackShortcutLabel:"مفتاح المسافة",previousLabel:"الصفحة السابقة",previousSubtitleLabel:"الجملة السابقة",screenModeLabel:"وضع الشاشة",settingsTitle:"الإعدادات",subtitleLabel:"الترجمة النصية",subtitleToggleAriaLabel:"تبديل الترجمة النصية",volumeAriaLabel:"مستوى الصوت",screenLabel:"الشاشة",nonFullscreenLabel:"الوضع العادي",fullscreenLabel:"ملء الشاشة",fullscreenHintText:"يرجى تدوير الشاشة للحصول على أفضل تجربة"}},"th-TH":{bufferingText:{waitingForAudio:"กำลังรอเสียงของสไลด์ปัจจุบัน...",loadingAudio:"กำลังโหลดเสียง...",waitingForMoreAudio:"กำลังรอเสียงเพิ่มเติม..."},fullscreenBackAriaLabel:"กลับสู่โหมดปกติ",interactionTexts:{title:"ส่งเนื้อหาด้านล่างเพื่อดำเนินการต่อ",confirmButtonText:"ส่งคำตอบ",copyButtonText:"คัดลอก",copiedButtonText:"คัดลอกแล้ว",dragHandleAriaLabel:"ย้ายแผงโต้ตอบ"},playerTexts:{closeSettingsLabel:"ปิดการตั้งค่า",enterFullscreenLabel:"เข้าสู่โหมดเต็มหน้าจอ",exitFullscreenLabel:"ออกจากโหมดเต็มหน้าจอ",moreOptionsAriaLabel:"ตัวเลือกเพิ่มเติม",nextLabel:"หน้าถัดไป",nextSubtitleLabel:"ประโยคถัดไป",notesLabel:"บันทึกย่อ",pauseAutoplayLabel:"หยุดเล่นอัตโนมัติชั่วคราว",pauseLabel:"หยุดชั่วคราว",playAutoplayLabel:"เริ่มเล่นอัตโนมัติ",playLabel:"เล่น",playbackShortcutLabel:"แป้นเว้นวรรค",previousLabel:"หน้าก่อนหน้า",previousSubtitleLabel:"ประโยคก่อนหน้า",screenModeLabel:"โหมดหน้าจอ",settingsTitle:"การตั้งค่า",subtitleLabel:"คำบรรยาย",subtitleToggleAriaLabel:"สลับคำบรรยาย",volumeAriaLabel:"ระดับเสียง",screenLabel:"หน้าจอ",nonFullscreenLabel:"โหมดไม่เต็มหน้าจอ",fullscreenLabel:"เต็มหน้าจอ",fullscreenHintText:"โปรดหมุนหน้าจอเพื่อประสบการณ์การใช้งานที่ดีที่สุด"}}};exports.default=e;
2
+ //# sourceMappingURL=slide.json.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slide.json.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,205 @@
1
+ declare const _default: {
2
+ "en-US": {
3
+ "bufferingText": {
4
+ "waitingForAudio": "Waiting for current slide audio...",
5
+ "loadingAudio": "Loading audio...",
6
+ "waitingForMoreAudio": "Waiting for more audio..."
7
+ },
8
+ "fullscreenBackAriaLabel": "Back to non-full screen",
9
+ "interactionTexts": {
10
+ "title": "Submit the content below to continue.",
11
+ "confirmButtonText": "Submit",
12
+ "copyButtonText": "Copy",
13
+ "copiedButtonText": "Copied",
14
+ "dragHandleAriaLabel": "Move interaction"
15
+ },
16
+ "playerTexts": {
17
+ "closeSettingsLabel": "Close settings",
18
+ "enterFullscreenLabel": "Enter fullscreen",
19
+ "exitFullscreenLabel": "Exit fullscreen",
20
+ "moreOptionsAriaLabel": "More options",
21
+ "nextLabel": "Next page",
22
+ "nextSubtitleLabel": "Next sentence",
23
+ "notesLabel": "Notes",
24
+ "pauseAutoplayLabel": "Pause autoplay",
25
+ "pauseLabel": "Pause",
26
+ "playAutoplayLabel": "Play autoplay",
27
+ "playLabel": "Play",
28
+ "playbackShortcutLabel": "Space",
29
+ "previousLabel": "Previous page",
30
+ "previousSubtitleLabel": "Previous sentence",
31
+ "screenModeLabel": "Screen mode",
32
+ "settingsTitle": "Settings",
33
+ "subtitleLabel": "Subtitles",
34
+ "subtitleToggleAriaLabel": "Toggle subtitles",
35
+ "volumeAriaLabel": "Volume",
36
+ "screenLabel": "Screen",
37
+ "nonFullscreenLabel": "Non-fullscreen",
38
+ "fullscreenLabel": "Fullscreen",
39
+ "fullscreenHintText": "Please rotate your screen for the best experience"
40
+ }
41
+ },
42
+ "fr-FR": {
43
+ "bufferingText": {
44
+ "waitingForAudio": "En attente de l'audio de la diapositive actuelle...",
45
+ "loadingAudio": "Chargement audio...",
46
+ "waitingForMoreAudio": "En attente de plus d'audio..."
47
+ },
48
+ "fullscreenBackAriaLabel": "Retour au mode non plein écran",
49
+ "interactionTexts": {
50
+ "title": "Soumettez le contenu ci-dessous pour continuer.",
51
+ "confirmButtonText": "Soumettre",
52
+ "copyButtonText": "Copier",
53
+ "copiedButtonText": "Copié",
54
+ "dragHandleAriaLabel": "Déplacer le panneau d’interaction"
55
+ },
56
+ "playerTexts": {
57
+ "closeSettingsLabel": "Fermer les paramètres",
58
+ "enterFullscreenLabel": "Passer en plein écran",
59
+ "exitFullscreenLabel": "Quitter le plein écran",
60
+ "moreOptionsAriaLabel": "Plus d'options",
61
+ "nextLabel": "Page suivante",
62
+ "nextSubtitleLabel": "Phrase suivante",
63
+ "notesLabel": "Notes",
64
+ "pauseAutoplayLabel": "Suspendre la lecture automatique",
65
+ "pauseLabel": "Pause",
66
+ "playAutoplayLabel": "Lancer la lecture automatique",
67
+ "playLabel": "Lecture",
68
+ "playbackShortcutLabel": "Barre d’espace",
69
+ "previousLabel": "Page précédente",
70
+ "previousSubtitleLabel": "Phrase précédente",
71
+ "screenModeLabel": "Mode d'affichage",
72
+ "settingsTitle": "Paramètres",
73
+ "subtitleLabel": "Sous-titres",
74
+ "subtitleToggleAriaLabel": "Afficher ou masquer les sous-titres",
75
+ "volumeAriaLabel": "Volume",
76
+ "screenLabel": "Écran",
77
+ "nonFullscreenLabel": "Hors plein écran",
78
+ "fullscreenLabel": "Plein écran",
79
+ "fullscreenHintText": "Veuillez tourner votre écran pour une meilleure expérience"
80
+ }
81
+ },
82
+ "zh-CN": {
83
+ "bufferingText": {
84
+ "waitingForAudio": "正在等待当前页音频...",
85
+ "loadingAudio": "正在加载音频",
86
+ "waitingForMoreAudio": "正在等待音频"
87
+ },
88
+ "fullscreenBackAriaLabel": "返回非全屏",
89
+ "interactionTexts": {
90
+ "title": "提交下面的内容以继续",
91
+ "confirmButtonText": "提交",
92
+ "copyButtonText": "复制",
93
+ "copiedButtonText": "已复制",
94
+ "dragHandleAriaLabel": "移动交互面板"
95
+ },
96
+ "playerTexts": {
97
+ "closeSettingsLabel": "关闭设置",
98
+ "enterFullscreenLabel": "进入全屏",
99
+ "exitFullscreenLabel": "退出全屏",
100
+ "moreOptionsAriaLabel": "更多选项",
101
+ "nextLabel": "下一页",
102
+ "nextSubtitleLabel": "下一句",
103
+ "notesLabel": "笔记",
104
+ "pauseAutoplayLabel": "暂停自动播放",
105
+ "pauseLabel": "暂停",
106
+ "playAutoplayLabel": "开始自动播放",
107
+ "playLabel": "播放",
108
+ "playbackShortcutLabel": "空格键",
109
+ "previousLabel": "上一页",
110
+ "previousSubtitleLabel": "上一句",
111
+ "screenModeLabel": "屏幕模式",
112
+ "settingsTitle": "设置",
113
+ "subtitleLabel": "字幕",
114
+ "subtitleToggleAriaLabel": "切换字幕",
115
+ "volumeAriaLabel": "音量",
116
+ "screenLabel": "屏幕",
117
+ "nonFullscreenLabel": "非全屏",
118
+ "fullscreenLabel": "全屏",
119
+ "fullscreenHintText": "请旋转屏幕以获得最佳体验"
120
+ }
121
+ },
122
+ "ar-SA": {
123
+ "bufferingText": {
124
+ "waitingForAudio": "في انتظار صوت الشريحة الحالية...",
125
+ "loadingAudio": "جارٍ تحميل الصوت...",
126
+ "waitingForMoreAudio": "في انتظار المزيد من الصوت..."
127
+ },
128
+ "fullscreenBackAriaLabel": "العودة إلى العرض العادي",
129
+ "interactionTexts": {
130
+ "title": "أرسل المحتوى أدناه للمتابعة.",
131
+ "confirmButtonText": "إرسال",
132
+ "copyButtonText": "نسخ",
133
+ "copiedButtonText": "تم النسخ",
134
+ "dragHandleAriaLabel": "تحريك لوحة التفاعل"
135
+ },
136
+ "playerTexts": {
137
+ "closeSettingsLabel": "إغلاق الإعدادات",
138
+ "enterFullscreenLabel": "الدخول إلى ملء الشاشة",
139
+ "exitFullscreenLabel": "الخروج من ملء الشاشة",
140
+ "moreOptionsAriaLabel": "مزيد من الخيارات",
141
+ "nextLabel": "الصفحة التالية",
142
+ "nextSubtitleLabel": "الجملة التالية",
143
+ "notesLabel": "الملاحظات",
144
+ "pauseAutoplayLabel": "إيقاف التشغيل التلقائي مؤقتًا",
145
+ "pauseLabel": "إيقاف مؤقت",
146
+ "playAutoplayLabel": "بدء التشغيل التلقائي",
147
+ "playLabel": "تشغيل",
148
+ "playbackShortcutLabel": "مفتاح المسافة",
149
+ "previousLabel": "الصفحة السابقة",
150
+ "previousSubtitleLabel": "الجملة السابقة",
151
+ "screenModeLabel": "وضع الشاشة",
152
+ "settingsTitle": "الإعدادات",
153
+ "subtitleLabel": "الترجمة النصية",
154
+ "subtitleToggleAriaLabel": "تبديل الترجمة النصية",
155
+ "volumeAriaLabel": "مستوى الصوت",
156
+ "screenLabel": "الشاشة",
157
+ "nonFullscreenLabel": "الوضع العادي",
158
+ "fullscreenLabel": "ملء الشاشة",
159
+ "fullscreenHintText": "يرجى تدوير الشاشة للحصول على أفضل تجربة"
160
+ }
161
+ },
162
+ "th-TH": {
163
+ "bufferingText": {
164
+ "waitingForAudio": "กำลังรอเสียงของสไลด์ปัจจุบัน...",
165
+ "loadingAudio": "กำลังโหลดเสียง...",
166
+ "waitingForMoreAudio": "กำลังรอเสียงเพิ่มเติม..."
167
+ },
168
+ "fullscreenBackAriaLabel": "กลับสู่โหมดปกติ",
169
+ "interactionTexts": {
170
+ "title": "ส่งเนื้อหาด้านล่างเพื่อดำเนินการต่อ",
171
+ "confirmButtonText": "ส่งคำตอบ",
172
+ "copyButtonText": "คัดลอก",
173
+ "copiedButtonText": "คัดลอกแล้ว",
174
+ "dragHandleAriaLabel": "ย้ายแผงโต้ตอบ"
175
+ },
176
+ "playerTexts": {
177
+ "closeSettingsLabel": "ปิดการตั้งค่า",
178
+ "enterFullscreenLabel": "เข้าสู่โหมดเต็มหน้าจอ",
179
+ "exitFullscreenLabel": "ออกจากโหมดเต็มหน้าจอ",
180
+ "moreOptionsAriaLabel": "ตัวเลือกเพิ่มเติม",
181
+ "nextLabel": "หน้าถัดไป",
182
+ "nextSubtitleLabel": "ประโยคถัดไป",
183
+ "notesLabel": "บันทึกย่อ",
184
+ "pauseAutoplayLabel": "หยุดเล่นอัตโนมัติชั่วคราว",
185
+ "pauseLabel": "หยุดชั่วคราว",
186
+ "playAutoplayLabel": "เริ่มเล่นอัตโนมัติ",
187
+ "playLabel": "เล่น",
188
+ "playbackShortcutLabel": "แป้นเว้นวรรค",
189
+ "previousLabel": "หน้าก่อนหน้า",
190
+ "previousSubtitleLabel": "ประโยคก่อนหน้า",
191
+ "screenModeLabel": "โหมดหน้าจอ",
192
+ "settingsTitle": "การตั้งค่า",
193
+ "subtitleLabel": "คำบรรยาย",
194
+ "subtitleToggleAriaLabel": "สลับคำบรรยาย",
195
+ "volumeAriaLabel": "ระดับเสียง",
196
+ "screenLabel": "หน้าจอ",
197
+ "nonFullscreenLabel": "โหมดไม่เต็มหน้าจอ",
198
+ "fullscreenLabel": "เต็มหน้าจอ",
199
+ "fullscreenHintText": "โปรดหมุนหน้าจอเพื่อประสบการณ์การใช้งานที่ดีที่สุด"
200
+ }
201
+ }
202
+ }
203
+ ;
204
+
205
+ export default _default;
@@ -0,0 +1,11 @@
1
+ const e = {
2
+ "en-US": { bufferingText: { waitingForAudio: "Waiting for current slide audio...", loadingAudio: "Loading audio...", waitingForMoreAudio: "Waiting for more audio..." }, fullscreenBackAriaLabel: "Back to non-full screen", interactionTexts: { title: "Submit the content below to continue.", confirmButtonText: "Submit", copyButtonText: "Copy", copiedButtonText: "Copied", dragHandleAriaLabel: "Move interaction" }, playerTexts: { closeSettingsLabel: "Close settings", enterFullscreenLabel: "Enter fullscreen", exitFullscreenLabel: "Exit fullscreen", moreOptionsAriaLabel: "More options", nextLabel: "Next page", nextSubtitleLabel: "Next sentence", notesLabel: "Notes", pauseAutoplayLabel: "Pause autoplay", pauseLabel: "Pause", playAutoplayLabel: "Play autoplay", playLabel: "Play", playbackShortcutLabel: "Space", previousLabel: "Previous page", previousSubtitleLabel: "Previous sentence", screenModeLabel: "Screen mode", settingsTitle: "Settings", subtitleLabel: "Subtitles", subtitleToggleAriaLabel: "Toggle subtitles", volumeAriaLabel: "Volume", screenLabel: "Screen", nonFullscreenLabel: "Non-fullscreen", fullscreenLabel: "Fullscreen", fullscreenHintText: "Please rotate your screen for the best experience" } },
3
+ "fr-FR": { bufferingText: { waitingForAudio: "En attente de l'audio de la diapositive actuelle...", loadingAudio: "Chargement audio...", waitingForMoreAudio: "En attente de plus d'audio..." }, fullscreenBackAriaLabel: "Retour au mode non plein écran", interactionTexts: { title: "Soumettez le contenu ci-dessous pour continuer.", confirmButtonText: "Soumettre", copyButtonText: "Copier", copiedButtonText: "Copié", dragHandleAriaLabel: "Déplacer le panneau d’interaction" }, playerTexts: { closeSettingsLabel: "Fermer les paramètres", enterFullscreenLabel: "Passer en plein écran", exitFullscreenLabel: "Quitter le plein écran", moreOptionsAriaLabel: "Plus d'options", nextLabel: "Page suivante", nextSubtitleLabel: "Phrase suivante", notesLabel: "Notes", pauseAutoplayLabel: "Suspendre la lecture automatique", pauseLabel: "Pause", playAutoplayLabel: "Lancer la lecture automatique", playLabel: "Lecture", playbackShortcutLabel: "Barre d’espace", previousLabel: "Page précédente", previousSubtitleLabel: "Phrase précédente", screenModeLabel: "Mode d'affichage", settingsTitle: "Paramètres", subtitleLabel: "Sous-titres", subtitleToggleAriaLabel: "Afficher ou masquer les sous-titres", volumeAriaLabel: "Volume", screenLabel: "Écran", nonFullscreenLabel: "Hors plein écran", fullscreenLabel: "Plein écran", fullscreenHintText: "Veuillez tourner votre écran pour une meilleure expérience" } },
4
+ "zh-CN": { bufferingText: { waitingForAudio: "正在等待当前页音频...", loadingAudio: "正在加载音频", waitingForMoreAudio: "正在等待音频" }, fullscreenBackAriaLabel: "返回非全屏", interactionTexts: { title: "提交下面的内容以继续", confirmButtonText: "提交", copyButtonText: "复制", copiedButtonText: "已复制", dragHandleAriaLabel: "移动交互面板" }, playerTexts: { closeSettingsLabel: "关闭设置", enterFullscreenLabel: "进入全屏", exitFullscreenLabel: "退出全屏", moreOptionsAriaLabel: "更多选项", nextLabel: "下一页", nextSubtitleLabel: "下一句", notesLabel: "笔记", pauseAutoplayLabel: "暂停自动播放", pauseLabel: "暂停", playAutoplayLabel: "开始自动播放", playLabel: "播放", playbackShortcutLabel: "空格键", previousLabel: "上一页", previousSubtitleLabel: "上一句", screenModeLabel: "屏幕模式", settingsTitle: "设置", subtitleLabel: "字幕", subtitleToggleAriaLabel: "切换字幕", volumeAriaLabel: "音量", screenLabel: "屏幕", nonFullscreenLabel: "非全屏", fullscreenLabel: "全屏", fullscreenHintText: "请旋转屏幕以获得最佳体验" } },
5
+ "ar-SA": { bufferingText: { waitingForAudio: "في انتظار صوت الشريحة الحالية...", loadingAudio: "جارٍ تحميل الصوت...", waitingForMoreAudio: "في انتظار المزيد من الصوت..." }, fullscreenBackAriaLabel: "العودة إلى العرض العادي", interactionTexts: { title: "أرسل المحتوى أدناه للمتابعة.", confirmButtonText: "إرسال", copyButtonText: "نسخ", copiedButtonText: "تم النسخ", dragHandleAriaLabel: "تحريك لوحة التفاعل" }, playerTexts: { closeSettingsLabel: "إغلاق الإعدادات", enterFullscreenLabel: "الدخول إلى ملء الشاشة", exitFullscreenLabel: "الخروج من ملء الشاشة", moreOptionsAriaLabel: "مزيد من الخيارات", nextLabel: "الصفحة التالية", nextSubtitleLabel: "الجملة التالية", notesLabel: "الملاحظات", pauseAutoplayLabel: "إيقاف التشغيل التلقائي مؤقتًا", pauseLabel: "إيقاف مؤقت", playAutoplayLabel: "بدء التشغيل التلقائي", playLabel: "تشغيل", playbackShortcutLabel: "مفتاح المسافة", previousLabel: "الصفحة السابقة", previousSubtitleLabel: "الجملة السابقة", screenModeLabel: "وضع الشاشة", settingsTitle: "الإعدادات", subtitleLabel: "الترجمة النصية", subtitleToggleAriaLabel: "تبديل الترجمة النصية", volumeAriaLabel: "مستوى الصوت", screenLabel: "الشاشة", nonFullscreenLabel: "الوضع العادي", fullscreenLabel: "ملء الشاشة", fullscreenHintText: "يرجى تدوير الشاشة للحصول على أفضل تجربة" } },
6
+ "th-TH": { bufferingText: { waitingForAudio: "กำลังรอเสียงของสไลด์ปัจจุบัน...", loadingAudio: "กำลังโหลดเสียง...", waitingForMoreAudio: "กำลังรอเสียงเพิ่มเติม..." }, fullscreenBackAriaLabel: "กลับสู่โหมดปกติ", interactionTexts: { title: "ส่งเนื้อหาด้านล่างเพื่อดำเนินการต่อ", confirmButtonText: "ส่งคำตอบ", copyButtonText: "คัดลอก", copiedButtonText: "คัดลอกแล้ว", dragHandleAriaLabel: "ย้ายแผงโต้ตอบ" }, playerTexts: { closeSettingsLabel: "ปิดการตั้งค่า", enterFullscreenLabel: "เข้าสู่โหมดเต็มหน้าจอ", exitFullscreenLabel: "ออกจากโหมดเต็มหน้าจอ", moreOptionsAriaLabel: "ตัวเลือกเพิ่มเติม", nextLabel: "หน้าถัดไป", nextSubtitleLabel: "ประโยคถัดไป", notesLabel: "บันทึกย่อ", pauseAutoplayLabel: "หยุดเล่นอัตโนมัติชั่วคราว", pauseLabel: "หยุดชั่วคราว", playAutoplayLabel: "เริ่มเล่นอัตโนมัติ", playLabel: "เล่น", playbackShortcutLabel: "แป้นเว้นวรรค", previousLabel: "หน้าก่อนหน้า", previousSubtitleLabel: "ประโยคก่อนหน้า", screenModeLabel: "โหมดหน้าจอ", settingsTitle: "การตั้งค่า", subtitleLabel: "คำบรรยาย", subtitleToggleAriaLabel: "สลับคำบรรยาย", volumeAriaLabel: "ระดับเสียง", screenLabel: "หน้าจอ", nonFullscreenLabel: "โหมดไม่เต็มหน้าจอ", fullscreenLabel: "เต็มหน้าจอ", fullscreenHintText: "โปรดหมุนหน้าจอเพื่อประสบการณ์การใช้งานที่ดีที่สุด" } }
7
+ };
8
+ export {
9
+ e as default
10
+ };
11
+ //# sourceMappingURL=slide.json.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slide.json.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../../lib/locale.cjs"),t=require("../../lib/localeTextMap.cjs"),d=["closeSettingsLabel","enterFullscreenLabel","exitFullscreenLabel","moreOptionsAriaLabel","nextLabel","nextSubtitleLabel","notesLabel","pauseAutoplayLabel","pauseLabel","playAutoplayLabel","playLabel","previousLabel","previousSubtitleLabel","screenModeLabel","settingsTitle","subtitleLabel","subtitleToggleAriaLabel","volumeAriaLabel","screenLabel","nonFullscreenLabel","fullscreenLabel","fullscreenHintText"],p=["title","confirmButtonText","copyButtonText","copiedButtonText"],b=["waitingForAudio","loadingAudio","waitingForMoreAudio"],a=e=>t.buildLocaleTexts(d,e),o=e=>t.buildLocaleTexts(p,e),n=e=>t.buildLocaleTexts(b,e),l=(e,T,L,E)=>({bufferingText:n(T),fullscreenBackAriaLabel:e,interactionTexts:o(L),playerTexts:a(E)}),r=a(["Close settings","Enter fullscreen","Exit fullscreen","More options","Next page","Next sentence","Notes","Pause autoplay","Pause","Play autoplay","Play","Previous page","Previous sentence","Screen mode","Settings","Subtitles","Toggle subtitles","Volume","Screen","Non-fullscreen","Fullscreen","Please rotate your screen for the best experience"]),s=o(["Submit the content below to continue.","Submit","Copy","Copied"]),i=n(["Waiting for current slide audio...","Loading audio...","Waiting for more audio..."]),u={"en-US":{bufferingText:i,fullscreenBackAriaLabel:"Back to non-full screen",interactionTexts:s,playerTexts:r},"fr-FR":l("Retour au mode non plein écran",["En attente de l'audio de la diapositive actuelle...","Chargement audio...","En attente de plus d'audio..."],["Soumettez le contenu ci-dessous pour continuer.","Soumettre","Copier","Copié"],["Fermer les paramètres","Passer en plein écran","Quitter le plein écran","Plus d'options","Page suivante","Phrase suivante","Notes","Suspendre la lecture automatique","Pause","Lancer la lecture automatique","Lecture","Page précédente","Phrase précédente","Mode d'affichage","Paramètres","Sous-titres","Afficher ou masquer les sous-titres","Volume","Écran","Hors plein écran","Plein écran","Veuillez tourner votre écran pour une meilleure expérience"]),"zh-CN":l("返回非全屏",["正在等待当前页音频...","正在加载音频","正在等待音频"],["提交下面的内容以继续","提交","复制","已复制"],["关闭设置","进入全屏","退出全屏","更多选项","下一页","下一句","笔记","暂停自动播放","暂停","开始自动播放","播放","上一页","上一句","屏幕模式","设置","字幕","切换字幕","音量","屏幕","非全屏","全屏","请旋转屏幕以获得最佳体验"])},c=e=>u[S.normalizeMarkdownFlowLocale(e)],x=e=>c(e).playerTexts;exports.DEFAULT_SLIDE_BUFFERING_TEXTS=i;exports.DEFAULT_SLIDE_INTERACTION_TEXTS=s;exports.DEFAULT_SLIDE_PLAYER_TEXTS=r;exports.SLIDE_LOCALE_TEXTS=u;exports.getSlideLocaleTexts=c;exports.getSlidePlayerTexts=x;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("../../lib/locale.cjs"),o=require("./locales/slide.json.cjs"),e=o.default;e["en-US"].playerTexts;e["en-US"].interactionTexts;const S=e["en-US"].bufferingText,l=t=>e[T.normalizeMarkdownFlowLocale(t)],n=t=>l(t).playerTexts;exports.DEFAULT_SLIDE_BUFFERING_TEXTS=S;exports.SLIDE_LOCALE_TEXTS=e;exports.getSlideLocaleTexts=l;exports.getSlidePlayerTexts=n;
2
2
  //# sourceMappingURL=slideI18n.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"slideI18n.cjs","sources":["../../../src/components/Slide/slideI18n.ts"],"sourcesContent":["import {\n normalizeMarkdownFlowLocale,\n type MarkdownFlowLocale,\n} from \"../../lib/locale\";\nimport {\n buildLocaleTexts,\n type LocaleTextValues,\n} from \"../../lib/localeTextMap\";\n\nexport interface SlidePlayerLocaleTexts {\n closeSettingsLabel: string;\n enterFullscreenLabel: string;\n exitFullscreenLabel: string;\n moreOptionsAriaLabel: string;\n nextLabel: string;\n nextSubtitleLabel: string;\n notesLabel: string;\n pauseAutoplayLabel: string;\n pauseLabel: string;\n playAutoplayLabel: string;\n playLabel: string;\n previousLabel: string;\n previousSubtitleLabel: string;\n screenModeLabel: string;\n settingsTitle: string;\n subtitleLabel: string;\n subtitleToggleAriaLabel: string;\n volumeAriaLabel: string;\n screenLabel: string;\n nonFullscreenLabel: string;\n fullscreenLabel: string;\n fullscreenHintText: string;\n}\n\nexport interface SlideInteractionLocaleTexts {\n title: string;\n confirmButtonText: string;\n copyButtonText: string;\n copiedButtonText: string;\n}\n\nexport type SlideBufferingReason =\n | \"waitingForAudio\"\n | import(\"./Player\").SlidePlayerLoadingReason;\n\nexport interface SlideLocaleTexts {\n bufferingText: Record<SlideBufferingReason, string>;\n fullscreenBackAriaLabel: string;\n interactionTexts: SlideInteractionLocaleTexts;\n playerTexts: SlidePlayerLocaleTexts;\n}\n\nconst SLIDE_PLAYER_TEXT_KEYS = [\n \"closeSettingsLabel\",\n \"enterFullscreenLabel\",\n \"exitFullscreenLabel\",\n \"moreOptionsAriaLabel\",\n \"nextLabel\",\n \"nextSubtitleLabel\",\n \"notesLabel\",\n \"pauseAutoplayLabel\",\n \"pauseLabel\",\n \"playAutoplayLabel\",\n \"playLabel\",\n \"previousLabel\",\n \"previousSubtitleLabel\",\n \"screenModeLabel\",\n \"settingsTitle\",\n \"subtitleLabel\",\n \"subtitleToggleAriaLabel\",\n \"volumeAriaLabel\",\n \"screenLabel\",\n \"nonFullscreenLabel\",\n \"fullscreenLabel\",\n \"fullscreenHintText\",\n] as const satisfies readonly (keyof SlidePlayerLocaleTexts)[];\n\nconst SLIDE_INTERACTION_TEXT_KEYS = [\n \"title\",\n \"confirmButtonText\",\n \"copyButtonText\",\n \"copiedButtonText\",\n] as const satisfies readonly (keyof SlideInteractionLocaleTexts)[];\n\nconst SLIDE_BUFFERING_TEXT_KEYS = [\n \"waitingForAudio\",\n \"loadingAudio\",\n \"waitingForMoreAudio\",\n] as const satisfies readonly SlideBufferingReason[];\n\nconst createSlidePlayerTexts = (\n values: LocaleTextValues<typeof SLIDE_PLAYER_TEXT_KEYS>\n): SlidePlayerLocaleTexts =>\n buildLocaleTexts(SLIDE_PLAYER_TEXT_KEYS, values) as SlidePlayerLocaleTexts;\n\nconst createSlideInteractionTexts = (\n values: LocaleTextValues<typeof SLIDE_INTERACTION_TEXT_KEYS>\n): SlideInteractionLocaleTexts =>\n buildLocaleTexts(\n SLIDE_INTERACTION_TEXT_KEYS,\n values\n ) as SlideInteractionLocaleTexts;\n\nconst createSlideBufferingTexts = (\n values: LocaleTextValues<typeof SLIDE_BUFFERING_TEXT_KEYS>\n): Record<SlideBufferingReason, string> =>\n buildLocaleTexts(SLIDE_BUFFERING_TEXT_KEYS, values) as Record<\n SlideBufferingReason,\n string\n >;\n\nconst createSlideLocaleTexts = (\n fullscreenBackAriaLabel: string,\n bufferingValues: LocaleTextValues<typeof SLIDE_BUFFERING_TEXT_KEYS>,\n interactionValues: LocaleTextValues<typeof SLIDE_INTERACTION_TEXT_KEYS>,\n playerValues: LocaleTextValues<typeof SLIDE_PLAYER_TEXT_KEYS>\n): SlideLocaleTexts => ({\n bufferingText: createSlideBufferingTexts(bufferingValues),\n fullscreenBackAriaLabel,\n interactionTexts: createSlideInteractionTexts(interactionValues),\n playerTexts: createSlidePlayerTexts(playerValues),\n});\n\nexport const DEFAULT_SLIDE_PLAYER_TEXTS: SlidePlayerLocaleTexts =\n createSlidePlayerTexts([\n \"Close settings\",\n \"Enter fullscreen\",\n \"Exit fullscreen\",\n \"More options\",\n \"Next page\",\n \"Next sentence\",\n \"Notes\",\n \"Pause autoplay\",\n \"Pause\",\n \"Play autoplay\",\n \"Play\",\n \"Previous page\",\n \"Previous sentence\",\n \"Screen mode\",\n \"Settings\",\n \"Subtitles\",\n \"Toggle subtitles\",\n \"Volume\",\n \"Screen\",\n \"Non-fullscreen\",\n \"Fullscreen\",\n \"Please rotate your screen for the best experience\",\n ]);\n\nexport const DEFAULT_SLIDE_INTERACTION_TEXTS: SlideInteractionLocaleTexts =\n createSlideInteractionTexts([\n \"Submit the content below to continue.\",\n \"Submit\",\n \"Copy\",\n \"Copied\",\n ]);\n\nexport const DEFAULT_SLIDE_BUFFERING_TEXTS = createSlideBufferingTexts([\n \"Waiting for current slide audio...\",\n \"Loading audio...\",\n \"Waiting for more audio...\",\n]);\n\nexport const SLIDE_LOCALE_TEXTS: Record<MarkdownFlowLocale, SlideLocaleTexts> =\n {\n \"en-US\": {\n bufferingText: DEFAULT_SLIDE_BUFFERING_TEXTS,\n fullscreenBackAriaLabel: \"Back to non-full screen\",\n interactionTexts: DEFAULT_SLIDE_INTERACTION_TEXTS,\n playerTexts: DEFAULT_SLIDE_PLAYER_TEXTS,\n },\n \"fr-FR\": createSlideLocaleTexts(\n \"Retour au mode non plein écran\",\n [\n \"En attente de l'audio de la diapositive actuelle...\",\n \"Chargement audio...\",\n \"En attente de plus d'audio...\",\n ],\n [\n \"Soumettez le contenu ci-dessous pour continuer.\",\n \"Soumettre\",\n \"Copier\",\n \"Copié\",\n ],\n [\n \"Fermer les paramètres\",\n \"Passer en plein écran\",\n \"Quitter le plein écran\",\n \"Plus d'options\",\n \"Page suivante\",\n \"Phrase suivante\",\n \"Notes\",\n \"Suspendre la lecture automatique\",\n \"Pause\",\n \"Lancer la lecture automatique\",\n \"Lecture\",\n \"Page précédente\",\n \"Phrase précédente\",\n \"Mode d'affichage\",\n \"Paramètres\",\n \"Sous-titres\",\n \"Afficher ou masquer les sous-titres\",\n \"Volume\",\n \"Écran\",\n \"Hors plein écran\",\n \"Plein écran\",\n \"Veuillez tourner votre écran pour une meilleure expérience\",\n ]\n ),\n \"zh-CN\": createSlideLocaleTexts(\n \"返回非全屏\",\n [\"正在等待当前页音频...\", \"正在加载音频\", \"正在等待音频\"],\n [\"提交下面的内容以继续\", \"提交\", \"复制\", \"已复制\"],\n [\n \"关闭设置\",\n \"进入全屏\",\n \"退出全屏\",\n \"更多选项\",\n \"下一页\",\n \"下一句\",\n \"笔记\",\n \"暂停自动播放\",\n \"暂停\",\n \"开始自动播放\",\n \"播放\",\n \"上一页\",\n \"上一句\",\n \"屏幕模式\",\n \"设置\",\n \"字幕\",\n \"切换字幕\",\n \"音量\",\n \"屏幕\",\n \"非全屏\",\n \"全屏\",\n \"请旋转屏幕以获得最佳体验\",\n ]\n ),\n };\n\nexport const getSlideLocaleTexts = (locale?: string | null): SlideLocaleTexts =>\n SLIDE_LOCALE_TEXTS[normalizeMarkdownFlowLocale(locale)];\n\nexport const getSlidePlayerTexts = (\n locale?: string | null\n): SlidePlayerLocaleTexts => getSlideLocaleTexts(locale).playerTexts;\n"],"names":["SLIDE_PLAYER_TEXT_KEYS","SLIDE_INTERACTION_TEXT_KEYS","SLIDE_BUFFERING_TEXT_KEYS","createSlidePlayerTexts","values","buildLocaleTexts","createSlideInteractionTexts","createSlideBufferingTexts","createSlideLocaleTexts","fullscreenBackAriaLabel","bufferingValues","interactionValues","playerValues","DEFAULT_SLIDE_PLAYER_TEXTS","DEFAULT_SLIDE_INTERACTION_TEXTS","DEFAULT_SLIDE_BUFFERING_TEXTS","SLIDE_LOCALE_TEXTS","getSlideLocaleTexts","locale","normalizeMarkdownFlowLocale","getSlidePlayerTexts"],"mappings":"iKAoDMA,EAAyB,CAC7B,qBACA,uBACA,sBACA,uBACA,YACA,oBACA,aACA,qBACA,aACA,oBACA,YACA,gBACA,wBACA,kBACA,gBACA,gBACA,0BACA,kBACA,cACA,qBACA,kBACA,oBACF,EAEMC,EAA8B,CAClC,QACA,oBACA,iBACA,kBACF,EAEMC,EAA4B,CAChC,kBACA,eACA,qBACF,EAEMC,EACJC,GAEAC,mBAAiBL,EAAwBI,CAAM,EAE3CE,EACJF,GAEAC,EAAAA,iBACEJ,EACAG,CACF,EAEIG,EACJH,GAEAC,mBAAiBH,EAA2BE,CAAM,EAK9CI,EAAyB,CAC7BC,EACAC,EACAC,EACAC,KACsB,CACtB,cAAeL,EAA0BG,CAAe,EACxD,wBAAAD,EACA,iBAAkBH,EAA4BK,CAAiB,EAC/D,YAAaR,EAAuBS,CAAY,CAClD,GAEaC,EACXV,EAAuB,CACrB,iBACA,mBACA,kBACA,eACA,YACA,gBACA,QACA,iBACA,QACA,gBACA,OACA,gBACA,oBACA,cACA,WACA,YACA,mBACA,SACA,SACA,iBACA,aACA,mDACF,CAAC,EAEUW,EACXR,EAA4B,CAC1B,wCACA,SACA,OACA,QACF,CAAC,EAEUS,EAAgCR,EAA0B,CACrE,qCACA,mBACA,2BACF,CAAC,EAEYS,EACX,CACE,QAAS,CACP,cAAeD,EACf,wBAAyB,0BACzB,iBAAkBD,EAClB,YAAaD,CAAA,EAEf,QAASL,EACP,iCACA,CACE,sDACA,sBACA,+BAAA,EAEF,CACE,kDACA,YACA,SACA,OAAA,EAEF,CACE,wBACA,wBACA,yBACA,iBACA,gBACA,kBACA,QACA,mCACA,QACA,gCACA,UACA,kBACA,oBACA,mBACA,aACA,cACA,sCACA,SACA,QACA,mBACA,cACA,4DAAA,CACF,EAEF,QAASA,EACP,QACA,CAAC,eAAgB,SAAU,QAAQ,EACnC,CAAC,aAAc,KAAM,KAAM,KAAK,EAChC,CACE,OACA,OACA,OACA,OACA,MACA,MACA,KACA,SACA,KACA,SACA,KACA,MACA,MACA,OACA,KACA,KACA,OACA,KACA,KACA,MACA,KACA,cAAA,CACF,CAEJ,EAEWS,EAAuBC,GAClCF,EAAmBG,EAAAA,4BAA4BD,CAAM,CAAC,EAE3CE,EACXF,GAC2BD,EAAoBC,CAAM,EAAE"}
1
+ {"version":3,"file":"slideI18n.cjs","sources":["../../../src/components/Slide/slideI18n.ts"],"sourcesContent":["import {\n normalizeMarkdownFlowLocale,\n type MarkdownFlowLocale,\n} from \"../../lib/locale\";\nimport localeTexts from \"./locales/slide.json\";\n\nexport interface SlidePlayerLocaleTexts {\n closeSettingsLabel: string;\n enterFullscreenLabel: string;\n exitFullscreenLabel: string;\n moreOptionsAriaLabel: string;\n nextLabel: string;\n nextSubtitleLabel: string;\n notesLabel: string;\n pauseAutoplayLabel: string;\n pauseLabel: string;\n playAutoplayLabel: string;\n playLabel: string;\n /** Display name of the spacebar in playback hints; does not change the key binding. */\n playbackShortcutLabel: string;\n previousLabel: string;\n previousSubtitleLabel: string;\n screenModeLabel: string;\n settingsTitle: string;\n subtitleLabel: string;\n subtitleToggleAriaLabel: string;\n volumeAriaLabel: string;\n screenLabel: string;\n nonFullscreenLabel: string;\n fullscreenLabel: string;\n fullscreenHintText: string;\n}\n\nexport interface SlideInteractionLocaleTexts {\n title: string;\n confirmButtonText: string;\n copyButtonText: string;\n copiedButtonText: string;\n dragHandleAriaLabel: string;\n}\n\nexport type SlideBufferingReason =\n | \"waitingForAudio\"\n | import(\"./Player\").SlidePlayerLoadingReason;\n\nexport interface SlideLocaleTexts {\n bufferingText: Record<SlideBufferingReason, string>;\n fullscreenBackAriaLabel: string;\n interactionTexts: SlideInteractionLocaleTexts;\n playerTexts: SlidePlayerLocaleTexts;\n}\n\nexport const SLIDE_LOCALE_TEXTS: Record<MarkdownFlowLocale, SlideLocaleTexts> =\n localeTexts;\n\nexport const DEFAULT_SLIDE_PLAYER_TEXTS: SlidePlayerLocaleTexts =\n SLIDE_LOCALE_TEXTS[\"en-US\"].playerTexts;\n\nexport const DEFAULT_SLIDE_INTERACTION_TEXTS: SlideInteractionLocaleTexts =\n SLIDE_LOCALE_TEXTS[\"en-US\"].interactionTexts;\n\nexport const DEFAULT_SLIDE_BUFFERING_TEXTS: Record<\n SlideBufferingReason,\n string\n> = SLIDE_LOCALE_TEXTS[\"en-US\"].bufferingText;\n\nexport const getSlideLocaleTexts = (locale?: string | null): SlideLocaleTexts =>\n SLIDE_LOCALE_TEXTS[normalizeMarkdownFlowLocale(locale)];\n\nexport const getSlidePlayerTexts = (\n locale?: string | null\n): SlidePlayerLocaleTexts => getSlideLocaleTexts(locale).playerTexts;\n"],"names":["SLIDE_LOCALE_TEXTS","localeTexts","DEFAULT_SLIDE_BUFFERING_TEXTS","getSlideLocaleTexts","locale","normalizeMarkdownFlowLocale","getSlidePlayerTexts"],"mappings":"8JAoDaA,EACXC,EAAAA,QAGAD,EAAmB,OAAO,EAAE,YAG5BA,EAAmB,OAAO,EAAE,iBAEvB,MAAME,EAGTF,EAAmB,OAAO,EAAE,cAEnBG,EAAuBC,GAClCJ,EAAmBK,EAAAA,4BAA4BD,CAAM,CAAC,EAE3CE,EACXF,GAC2BD,EAAoBC,CAAM,EAAE"}
@@ -1,4 +1,4 @@
1
- import { MarkdownFlowLocale } from '../../lib/locale';
1
+ import { MarkdownFlowLocale } from '../../lib/locale.js';
2
2
  export interface SlidePlayerLocaleTexts {
3
3
  closeSettingsLabel: string;
4
4
  enterFullscreenLabel: string;
@@ -11,6 +11,8 @@ export interface SlidePlayerLocaleTexts {
11
11
  pauseLabel: string;
12
12
  playAutoplayLabel: string;
13
13
  playLabel: string;
14
+ /** Display name of the spacebar in playback hints; does not change the key binding. */
15
+ playbackShortcutLabel: string;
14
16
  previousLabel: string;
15
17
  previousSubtitleLabel: string;
16
18
  screenModeLabel: string;
@@ -28,17 +30,18 @@ export interface SlideInteractionLocaleTexts {
28
30
  confirmButtonText: string;
29
31
  copyButtonText: string;
30
32
  copiedButtonText: string;
33
+ dragHandleAriaLabel: string;
31
34
  }
32
- export type SlideBufferingReason = "waitingForAudio" | import('./Player').SlidePlayerLoadingReason;
35
+ export type SlideBufferingReason = "waitingForAudio" | import('./Player.js').SlidePlayerLoadingReason;
33
36
  export interface SlideLocaleTexts {
34
37
  bufferingText: Record<SlideBufferingReason, string>;
35
38
  fullscreenBackAriaLabel: string;
36
39
  interactionTexts: SlideInteractionLocaleTexts;
37
40
  playerTexts: SlidePlayerLocaleTexts;
38
41
  }
42
+ export declare const SLIDE_LOCALE_TEXTS: Record<MarkdownFlowLocale, SlideLocaleTexts>;
39
43
  export declare const DEFAULT_SLIDE_PLAYER_TEXTS: SlidePlayerLocaleTexts;
40
44
  export declare const DEFAULT_SLIDE_INTERACTION_TEXTS: SlideInteractionLocaleTexts;
41
45
  export declare const DEFAULT_SLIDE_BUFFERING_TEXTS: Record<SlideBufferingReason, string>;
42
- export declare const SLIDE_LOCALE_TEXTS: Record<MarkdownFlowLocale, SlideLocaleTexts>;
43
46
  export declare const getSlideLocaleTexts: (locale?: string | null) => SlideLocaleTexts;
44
47
  export declare const getSlidePlayerTexts: (locale?: string | null) => SlidePlayerLocaleTexts;