markdown-flow-ui 0.2.14 → 0.2.16-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/dist/assets/markdown-flow-ui.css +10 -1
- package/dist/components/ContentRender/CodeBlock.cjs +1 -1
- package/dist/components/ContentRender/CodeBlock.cjs.map +1 -1
- package/dist/components/ContentRender/CodeBlock.d.ts +5 -0
- package/dist/components/ContentRender/CodeBlock.es.js +41 -38
- package/dist/components/ContentRender/CodeBlock.es.js.map +1 -1
- package/dist/components/ContentRender/ContentRender.cjs +2 -2
- package/dist/components/ContentRender/ContentRender.cjs.map +1 -1
- package/dist/components/ContentRender/ContentRender.d.ts +12 -4
- package/dist/components/ContentRender/ContentRender.es.js +436 -306
- package/dist/components/ContentRender/ContentRender.es.js.map +1 -1
- package/dist/components/ContentRender/IframeSandbox.cjs +7 -7
- package/dist/components/ContentRender/IframeSandbox.cjs.map +1 -1
- package/dist/components/ContentRender/IframeSandbox.d.ts +5 -1
- package/dist/components/ContentRender/IframeSandbox.es.js +311 -266
- package/dist/components/ContentRender/IframeSandbox.es.js.map +1 -1
- package/dist/components/ContentRender/MarkdownFlowInput.cjs +1 -1
- package/dist/components/ContentRender/MarkdownFlowInput.cjs.map +1 -1
- package/dist/components/ContentRender/MarkdownFlowInput.d.ts +5 -1
- package/dist/components/ContentRender/MarkdownFlowInput.es.js +37 -32
- package/dist/components/ContentRender/MarkdownFlowInput.es.js.map +1 -1
- package/dist/components/ContentRender/SandboxApp.cjs +2 -2
- package/dist/components/ContentRender/SandboxApp.cjs.map +1 -1
- package/dist/components/ContentRender/SandboxApp.d.ts +5 -1
- package/dist/components/ContentRender/SandboxApp.es.js +108 -103
- package/dist/components/ContentRender/SandboxApp.es.js.map +1 -1
- package/dist/components/ContentRender/blackboard-vendor.d.ts +1 -1
- package/dist/components/ContentRender/contentRenderI18n.cjs +1 -1
- package/dist/components/ContentRender/contentRenderI18n.cjs.map +1 -1
- package/dist/components/ContentRender/contentRenderI18n.d.ts +6 -1
- package/dist/components/ContentRender/contentRenderI18n.es.js +5 -56
- package/dist/components/ContentRender/contentRenderI18n.es.js.map +1 -1
- package/dist/components/ContentRender/contentRenderI18n.test.d.ts +1 -0
- package/dist/components/ContentRender/index.cjs +1 -1
- package/dist/components/ContentRender/index.d.ts +11 -11
- package/dist/components/ContentRender/index.es.js +1 -2
- package/dist/components/ContentRender/index.es.js.map +1 -1
- package/dist/components/ContentRender/locales/contentRender.json.cjs +2 -0
- package/dist/components/ContentRender/locales/contentRender.json.cjs.map +1 -0
- package/dist/components/ContentRender/locales/contentRender.json.d.ts +90 -0
- package/dist/components/ContentRender/locales/contentRender.json.es.js +11 -0
- package/dist/components/ContentRender/locales/contentRender.json.es.js.map +1 -0
- package/dist/components/ContentRender/plugins/CustomVariable.cjs +1 -1
- package/dist/components/ContentRender/plugins/CustomVariable.cjs.map +1 -1
- package/dist/components/ContentRender/plugins/CustomVariable.d.ts +7 -3
- package/dist/components/ContentRender/plugins/CustomVariable.es.js +165 -151
- package/dist/components/ContentRender/plugins/CustomVariable.es.js.map +1 -1
- package/dist/components/ContentRender/plugins/MermaidChart.cjs +1 -1
- package/dist/components/ContentRender/plugins/MermaidChart.cjs.map +1 -1
- package/dist/components/ContentRender/plugins/MermaidChart.d.ts +1 -0
- package/dist/components/ContentRender/plugins/MermaidChart.es.js +68 -44
- package/dist/components/ContentRender/plugins/MermaidChart.es.js.map +1 -1
- package/dist/components/ContentRender/typewriterPacing.fixtures.d.ts +14 -0
- package/dist/components/ContentRender/utils/typewriter-pacing.cjs +3 -0
- package/dist/components/ContentRender/utils/typewriter-pacing.cjs.map +1 -0
- package/dist/components/ContentRender/utils/typewriter-pacing.d.ts +27 -0
- package/dist/components/ContentRender/utils/typewriter-pacing.es.js +98 -0
- package/dist/components/ContentRender/utils/typewriter-pacing.es.js.map +1 -0
- package/dist/components/ContentRender/utils/typewriter-pacing.test.d.ts +1 -0
- package/dist/components/MarkdownFlow/MarkdownFlow.cjs +1 -1
- package/dist/components/MarkdownFlow/MarkdownFlow.cjs.map +1 -1
- package/dist/components/MarkdownFlow/MarkdownFlow.d.ts +12 -4
- package/dist/components/MarkdownFlow/MarkdownFlow.es.js +51 -39
- package/dist/components/MarkdownFlow/MarkdownFlow.es.js.map +1 -1
- package/dist/components/MarkdownFlow/ScrollToBottomButton.cjs +1 -1
- package/dist/components/MarkdownFlow/ScrollToBottomButton.cjs.map +1 -1
- package/dist/components/MarkdownFlow/ScrollToBottomButton.d.ts +31 -1
- package/dist/components/MarkdownFlow/ScrollToBottomButton.es.js +46 -17
- package/dist/components/MarkdownFlow/ScrollToBottomButton.es.js.map +1 -1
- package/dist/components/MarkdownFlow/ScrollToBottomControl.cjs +2 -0
- package/dist/components/MarkdownFlow/ScrollToBottomControl.cjs.map +1 -0
- package/dist/components/MarkdownFlow/ScrollToBottomControl.d.ts +18 -0
- package/dist/components/MarkdownFlow/ScrollToBottomControl.es.js +47 -0
- package/dist/components/MarkdownFlow/ScrollToBottomControl.es.js.map +1 -0
- package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.cjs +1 -1
- package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.cjs.map +1 -1
- package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.d.ts +1 -1
- package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.es.js +33 -52
- package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.es.js.map +1 -1
- package/dist/components/MarkdownFlow/index.cjs +1 -1
- package/dist/components/MarkdownFlow/index.d.ts +9 -6
- package/dist/components/MarkdownFlow/index.es.js +6 -6
- package/dist/components/MarkdownFlow/index.es.js.map +1 -1
- package/dist/components/MarkdownFlow/useScrollToBottom.cjs +1 -1
- package/dist/components/MarkdownFlow/useScrollToBottom.cjs.map +1 -1
- package/dist/components/MarkdownFlow/useScrollToBottom.d.ts +40 -8
- package/dist/components/MarkdownFlow/useScrollToBottom.es.js +352 -83
- package/dist/components/MarkdownFlow/useScrollToBottom.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.d.ts +5 -3
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js +371 -324
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/CustomDialog.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/components/CustomDialog.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/CustomDialog.d.ts +10 -0
- package/dist/components/MarkdownFlowEditor/components/CustomDialog.es.js +22 -19
- package/dist/components/MarkdownFlowEditor/components/CustomDialog.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/CustomPopover.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/components/CustomPopover.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/CustomPopover.d.ts +8 -0
- package/dist/components/MarkdownFlowEditor/components/CustomPopover.es.js +19 -15
- package/dist/components/MarkdownFlowEditor/components/CustomPopover.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/EditorToolbar.d.ts +4 -1
- package/dist/components/MarkdownFlowEditor/components/EditorToolbar.es.js +99 -93
- package/dist/components/MarkdownFlowEditor/components/EditorToolbar.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/ImageInject.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/components/ImageInject.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/ImageInject.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/components/ImageInject.es.js +183 -182
- package/dist/components/MarkdownFlowEditor/components/ImageInject.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.es.js +107 -103
- package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/VariableSelect.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/components/VariableSelect.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/VariableSelect.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/components/VariableSelect.es.js +106 -106
- package/dist/components/MarkdownFlowEditor/components/VariableSelect.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/VideoInject.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/components/VideoInject.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/VideoInject.es.js +64 -63
- package/dist/components/MarkdownFlowEditor/components/VideoInject.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/icons/ButtonIcon.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/components/icons/ButtonIcon.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/icons/ButtonIcon.es.js +13 -13
- package/dist/components/MarkdownFlowEditor/components/icons/ButtonIcon.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.es.js +12 -12
- package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/editor-context.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/editorI18n.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/editorI18n.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/editorI18n.d.ts +290 -0
- package/dist/components/MarkdownFlowEditor/editorI18n.es.js +12 -8
- package/dist/components/MarkdownFlowEditor/editorI18n.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/editorI18n.test.d.ts +1 -0
- package/dist/components/MarkdownFlowEditor/index.d.ts +6 -6
- package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.cjs +2 -0
- package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.cjs.map +1 -0
- package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.d.ts +72 -0
- package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.es.js +140 -0
- package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.es.js.map +1 -0
- package/dist/components/MarkdownFlowEditor/locales/en-US.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/en-US.json.d.ts +2 -0
- package/dist/components/MarkdownFlowEditor/locales/en-US.json.es.js +118 -114
- package/dist/components/MarkdownFlowEditor/locales/en-US.json.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.d.ts +2 -0
- package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.es.js +118 -114
- package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/locales/th-TH.json.cjs +2 -0
- package/dist/components/MarkdownFlowEditor/locales/th-TH.json.cjs.map +1 -0
- package/dist/components/MarkdownFlowEditor/locales/th-TH.json.d.ts +72 -0
- package/dist/components/MarkdownFlowEditor/locales/th-TH.json.es.js +140 -0
- package/dist/components/MarkdownFlowEditor/locales/th-TH.json.es.js.map +1 -0
- package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.d.ts +2 -0
- package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.es.js +70 -66
- package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.es.js +40 -35
- package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/PlaceholderWidget.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.es.js +27 -23
- package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.cjs +2 -0
- package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.cjs.map +1 -0
- package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.d.ts +7 -0
- package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.es.js +12 -0
- package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.es.js.map +1 -0
- package/dist/components/MarkdownFlowEditor/utils.d.ts +1 -1
- package/dist/components/Slide/MarkdownSlideScaling.cjs +1 -1
- package/dist/components/Slide/MarkdownSlideScaling.cjs.map +1 -1
- package/dist/components/Slide/MarkdownSlideScaling.d.ts +1 -1
- package/dist/components/Slide/MarkdownSlideScaling.es.js +20 -20
- package/dist/components/Slide/MarkdownSlideScaling.es.js.map +1 -1
- package/dist/components/Slide/MobilePlayerSettingsSheet.cjs +1 -1
- package/dist/components/Slide/MobilePlayerSettingsSheet.cjs.map +1 -1
- package/dist/components/Slide/MobilePlayerSettingsSheet.d.ts +7 -2
- package/dist/components/Slide/MobilePlayerSettingsSheet.es.js +61 -57
- package/dist/components/Slide/MobilePlayerSettingsSheet.es.js.map +1 -1
- package/dist/components/Slide/Player.cjs +1 -1
- package/dist/components/Slide/Player.cjs.map +1 -1
- package/dist/components/Slide/Player.d.ts +6 -6
- package/dist/components/Slide/Player.es.js +547 -541
- package/dist/components/Slide/Player.es.js.map +1 -1
- package/dist/components/Slide/Slide.cjs +1 -1
- package/dist/components/Slide/Slide.cjs.map +1 -1
- package/dist/components/Slide/Slide.d.ts +14 -12
- package/dist/components/Slide/Slide.es.js +745 -726
- package/dist/components/Slide/Slide.es.js.map +1 -1
- package/dist/components/Slide/SubtitleOverlay.cjs +1 -1
- package/dist/components/Slide/SubtitleOverlay.cjs.map +1 -1
- package/dist/components/Slide/SubtitleOverlay.d.ts +2 -2
- package/dist/components/Slide/SubtitleOverlay.es.js +17 -17
- package/dist/components/Slide/SubtitleOverlay.es.js.map +1 -1
- package/dist/components/Slide/diff-utils.d.ts +1 -1
- package/dist/components/Slide/index.d.ts +12 -12
- package/dist/components/Slide/locales/slide.json.cjs +2 -0
- package/dist/components/Slide/locales/slide.json.cjs.map +1 -0
- package/dist/components/Slide/locales/slide.json.d.ts +205 -0
- package/dist/components/Slide/locales/slide.json.es.js +11 -0
- package/dist/components/Slide/locales/slide.json.es.js.map +1 -0
- package/dist/components/Slide/slideI18n.cjs +1 -1
- package/dist/components/Slide/slideI18n.cjs.map +1 -1
- package/dist/components/Slide/slideI18n.d.ts +6 -3
- package/dist/components/Slide/slideI18n.es.js +10 -155
- package/dist/components/Slide/slideI18n.es.js.map +1 -1
- package/dist/components/Slide/useSlide.d.ts +1 -1
- package/dist/components/Slide/utils/appendedMarkerAdvance.d.ts +1 -1
- package/dist/components/Slide/utils/audioSegments.d.ts +1 -1
- package/dist/components/Slide/utils/interactionResolution.d.ts +2 -2
- package/dist/components/Slide/utils/listenModeElementList.d.ts +2 -2
- package/dist/components/Slide/utils/markdownScaling.d.ts +1 -1
- package/dist/components/Slide/utils/playerCustomActions.d.ts +2 -2
- package/dist/components/Slide/utils/playerKeyboardShortcuts.cjs +1 -1
- package/dist/components/Slide/utils/playerKeyboardShortcuts.cjs.map +1 -1
- package/dist/components/Slide/utils/playerKeyboardShortcuts.d.ts +1 -1
- package/dist/components/Slide/utils/playerKeyboardShortcuts.es.js +20 -20
- package/dist/components/Slide/utils/playerKeyboardShortcuts.es.js.map +1 -1
- package/dist/components/Slide/utils/runStreamFixture.d.ts +1 -1
- package/dist/components/Slide/utils/segmentSeek.d.ts +1 -1
- package/dist/components/Slide/utils/silentStepAutoAdvance.d.ts +1 -1
- package/dist/components/Slide/utils/streamingNavigation.d.ts +1 -1
- package/dist/components/Slide/utils/subtitleCue.d.ts +1 -1
- package/dist/components/Slide/utils/subtitleJumpNavigation.d.ts +1 -1
- package/dist/components/index.d.ts +22 -18
- package/dist/components/ui/button.cjs +1 -1
- package/dist/components/ui/button.cjs.map +1 -1
- package/dist/components/ui/button.es.js +12 -13
- package/dist/components/ui/button.es.js.map +1 -1
- package/dist/components/ui/checkbox.cjs +1 -1
- package/dist/components/ui/checkbox.cjs.map +1 -1
- package/dist/components/ui/checkbox.es.js +35 -35
- package/dist/components/ui/checkbox.es.js.map +1 -1
- package/dist/components/ui/dialog.cjs +1 -1
- package/dist/components/ui/dialog.cjs.map +1 -1
- package/dist/components/ui/dialog.d.ts +5 -1
- package/dist/components/ui/dialog.es.js +37 -37
- package/dist/components/ui/dialog.es.js.map +1 -1
- package/dist/components/ui/input.cjs +1 -1
- package/dist/components/ui/input.cjs.map +1 -1
- package/dist/components/ui/input.es.js +4 -4
- package/dist/components/ui/input.es.js.map +1 -1
- package/dist/components/ui/inputGroup/button.cjs +1 -1
- package/dist/components/ui/inputGroup/button.cjs.map +1 -1
- package/dist/components/ui/inputGroup/button.es.js +9 -10
- package/dist/components/ui/inputGroup/button.es.js.map +1 -1
- package/dist/components/ui/inputGroup/input-group.cjs +1 -1
- package/dist/components/ui/inputGroup/input-group.cjs.map +1 -1
- package/dist/components/ui/inputGroup/input-group.d.ts +1 -1
- package/dist/components/ui/inputGroup/input-group.es.js +10 -10
- package/dist/components/ui/inputGroup/input-group.es.js.map +1 -1
- package/dist/components/ui/inputGroup/textarea.cjs +1 -1
- package/dist/components/ui/inputGroup/textarea.cjs.map +1 -1
- package/dist/components/ui/inputGroup/textarea.es.js +2 -2
- package/dist/components/ui/inputGroup/textarea.es.js.map +1 -1
- package/dist/components/ui/loading-overlay-card.cjs +2 -2
- package/dist/components/ui/loading-overlay-card.cjs.map +1 -1
- package/dist/components/ui/loading-overlay-card.es.js +11 -11
- package/dist/components/ui/loading-overlay-card.es.js.map +1 -1
- package/dist/components/ui/popover.cjs +1 -1
- package/dist/components/ui/popover.cjs.map +1 -1
- package/dist/components/ui/popover.es.js +6 -6
- package/dist/components/ui/popover.es.js.map +1 -1
- package/dist/components/ui/tooltip.cjs +1 -1
- package/dist/components/ui/tooltip.cjs.map +1 -1
- package/dist/components/ui/tooltip.es.js +16 -16
- package/dist/components/ui/tooltip.es.js.map +1 -1
- package/dist/editor.d.ts +2 -2
- package/dist/fonts/KaTeX_AMS-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_AMS-Regular.woff +0 -0
- package/dist/fonts/KaTeX_AMS-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
- package/dist/fonts/KaTeX_Fraktur-Bold.woff +0 -0
- package/dist/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Fraktur-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-Bold.ttf +0 -0
- package/dist/fonts/KaTeX_Main-Bold.woff +0 -0
- package/dist/fonts/KaTeX_Main-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
- package/dist/fonts/KaTeX_Main-BoldItalic.woff +0 -0
- package/dist/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-Italic.ttf +0 -0
- package/dist/fonts/KaTeX_Main-Italic.woff +0 -0
- package/dist/fonts/KaTeX_Main-Italic.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Main-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Main-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
- package/dist/fonts/KaTeX_Math-BoldItalic.woff +0 -0
- package/dist/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/dist/fonts/KaTeX_Math-Italic.ttf +0 -0
- package/dist/fonts/KaTeX_Math-Italic.woff +0 -0
- package/dist/fonts/KaTeX_Math-Italic.woff2 +0 -0
- package/dist/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
- package/dist/fonts/KaTeX_SansSerif-Bold.woff +0 -0
- package/dist/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
- package/dist/fonts/KaTeX_SansSerif-Italic.woff +0 -0
- package/dist/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/dist/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_SansSerif-Regular.woff +0 -0
- package/dist/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Script-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Script-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Script-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size1-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Size1-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Size1-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size2-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Size2-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Size2-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size3-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Size3-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Size3-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size4-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Size4-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Size4-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Typewriter-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.es.js +22 -19
- package/dist/index.es.js.map +1 -1
- package/dist/lib/locale.cjs +1 -1
- package/dist/lib/locale.cjs.map +1 -1
- package/dist/lib/locale.d.ts +5 -1
- package/dist/lib/locale.es.js +26 -13
- package/dist/lib/locale.es.js.map +1 -1
- package/dist/lib/locale.test.d.ts +1 -0
- package/dist/lib/useDetachedLanguage.cjs +2 -0
- package/dist/lib/useDetachedLanguage.cjs.map +1 -0
- package/dist/lib/useDetachedLanguage.d.ts +3 -0
- package/dist/lib/useDetachedLanguage.es.js +25 -0
- package/dist/lib/useDetachedLanguage.es.js.map +1 -0
- package/dist/lib/useResolvedDirection.cjs +2 -0
- package/dist/lib/useResolvedDirection.cjs.map +1 -0
- package/dist/lib/useResolvedDirection.d.ts +6 -0
- package/dist/lib/useResolvedDirection.es.js +37 -0
- package/dist/lib/useResolvedDirection.es.js.map +1 -0
- package/dist/markdown-flow-ui-lib.css +1 -1
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.es.js +6 -6
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-context/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-context/dist/index.es.js +21 -21
- package/dist/node_modules/@radix-ui/react-context/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs +2 -2
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.es.js +100 -100
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js +38 -38
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.js +9 -9
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-popover/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-popover/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-popover/dist/index.es.js +95 -95
- package/dist/node_modules/@radix-ui/react-popover/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-popper/dist/index.es.js +48 -48
- package/dist/node_modules/@radix-ui/react-popper/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-portal/dist/index.es.js +6 -6
- package/dist/node_modules/@radix-ui/react-portal/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js +9 -9
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-slot/dist/index.es.js +17 -17
- package/dist/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.es.js +100 -100
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.es.js +6 -6
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.es.js.map +1 -1
- package/dist/node_modules/@uiw/react-codemirror/esm/index.cjs +1 -1
- package/dist/node_modules/@uiw/react-codemirror/esm/index.cjs.map +1 -1
- package/dist/node_modules/@uiw/react-codemirror/esm/index.es.js +27 -27
- package/dist/node_modules/@uiw/react-codemirror/esm/index.es.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/{chevron-down.cjs → chevrons-down.cjs} +2 -2
- package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-down.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/{chevron-down.es.js → chevrons-down.es.js} +6 -3
- package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-down.es.js.map +1 -0
- package/dist/node_modules/react-markdown/lib/index.cjs +1 -1
- package/dist/node_modules/react-markdown/lib/index.cjs.map +1 -1
- package/dist/node_modules/react-markdown/lib/index.es.js +39 -39
- package/dist/node_modules/react-markdown/lib/index.es.js.map +1 -1
- package/dist/renderer.cjs +1 -1
- package/dist/renderer.d.ts +18 -17
- package/dist/renderer.es.js +20 -17
- package/dist/renderer.es.js.map +1 -1
- package/dist/scroll.cjs +1 -1
- package/dist/scroll.d.ts +6 -3
- package/dist/scroll.es.js +4 -2
- package/dist/scroll.es.js.map +1 -1
- package/dist/slide.d.ts +3 -3
- package/package.json +5 -2
- package/dist/_virtual/jsx-runtime.cjs +0 -2
- package/dist/_virtual/jsx-runtime.cjs.map +0 -1
- package/dist/_virtual/jsx-runtime.es.js +0 -6
- package/dist/_virtual/jsx-runtime.es.js.map +0 -1
- package/dist/_virtual/jsx-runtime.es2.js +0 -5
- package/dist/_virtual/jsx-runtime.es2.js.map +0 -1
- package/dist/_virtual/jsx-runtime2.cjs +0 -2
- package/dist/_virtual/jsx-runtime2.cjs.map +0 -1
- package/dist/_virtual/react-jsx-runtime.development.cjs +0 -2
- package/dist/_virtual/react-jsx-runtime.development.cjs.map +0 -1
- package/dist/_virtual/react-jsx-runtime.development.es.js +0 -5
- package/dist/_virtual/react-jsx-runtime.development.es.js.map +0 -1
- package/dist/_virtual/react-jsx-runtime.production.cjs +0 -2
- package/dist/_virtual/react-jsx-runtime.production.cjs.map +0 -1
- package/dist/_virtual/react-jsx-runtime.production.es.js +0 -5
- package/dist/_virtual/react-jsx-runtime.production.es.js.map +0 -1
- package/dist/lib/localeTextMap.cjs +0 -2
- package/dist/lib/localeTextMap.cjs.map +0 -1
- package/dist/lib/localeTextMap.es.js +0 -5
- package/dist/lib/localeTextMap.es.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.cjs.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.es.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs +0 -24
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js +0 -409
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.cjs +0 -10
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.cjs.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.es.js +0 -36
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.es.js.map +0 -1
- package/dist/node_modules/react/jsx-runtime.cjs +0 -2
- package/dist/node_modules/react/jsx-runtime.cjs.map +0 -1
- package/dist/node_modules/react/jsx-runtime.es.js +0 -11
- 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
|
|
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":"
|
|
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 {
|
|
2
|
-
import { memo as b, useMemo as
|
|
3
|
-
import { cn as
|
|
4
|
-
import { getVisibleSubtitleText as
|
|
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:
|
|
13
|
+
onVisibilityChange: i,
|
|
14
14
|
playbackTimeStore: f,
|
|
15
15
|
style: d,
|
|
16
|
-
subtitleCues:
|
|
16
|
+
subtitleCues: r = [],
|
|
17
17
|
...p
|
|
18
18
|
}) => {
|
|
19
|
-
const
|
|
20
|
-
() =>
|
|
21
|
-
[
|
|
19
|
+
const s = S(f), t = v(
|
|
20
|
+
() => x(r, s),
|
|
21
|
+
[s, r]
|
|
22
22
|
), a = !!t;
|
|
23
|
-
return
|
|
24
|
-
|
|
25
|
-
}, [a, e,
|
|
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:
|
|
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
|
|
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
|
-
},
|
|
44
|
-
|
|
43
|
+
}, M = b(h);
|
|
44
|
+
M.displayName = "SubtitleOverlay";
|
|
45
45
|
export {
|
|
46
|
-
|
|
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,
|
|
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,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
|
|
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
|
|
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;
|