markdown-flow-ui 0.1.129 → 0.2.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.
Files changed (131) hide show
  1. package/dist/_virtual/index.cjs8.js +1 -1
  2. package/dist/_virtual/index.cjs9.js +1 -1
  3. package/dist/_virtual/index.es8.js +2 -2
  4. package/dist/_virtual/index.es9.js +2 -2
  5. package/dist/components/ContentRender/ContentRender.cjs.js +2 -2
  6. package/dist/components/ContentRender/ContentRender.cjs.js.map +1 -1
  7. package/dist/components/ContentRender/ContentRender.d.ts +4 -0
  8. package/dist/components/ContentRender/ContentRender.es.js +217 -211
  9. package/dist/components/ContentRender/ContentRender.es.js.map +1 -1
  10. package/dist/components/ContentRender/ContentRender.stories.d.ts +1 -0
  11. package/dist/components/ContentRender/IframeSandbox.cjs.js +4 -4
  12. package/dist/components/ContentRender/IframeSandbox.cjs.js.map +1 -1
  13. package/dist/components/ContentRender/IframeSandbox.d.ts +3 -0
  14. package/dist/components/ContentRender/IframeSandbox.es.js +210 -196
  15. package/dist/components/ContentRender/IframeSandbox.es.js.map +1 -1
  16. package/dist/components/ContentRender/MarkdownFlowInput.cjs.js +1 -1
  17. package/dist/components/ContentRender/MarkdownFlowInput.cjs.js.map +1 -1
  18. package/dist/components/ContentRender/MarkdownFlowInput.d.ts +3 -0
  19. package/dist/components/ContentRender/MarkdownFlowInput.es.js +35 -32
  20. package/dist/components/ContentRender/MarkdownFlowInput.es.js.map +1 -1
  21. package/dist/components/ContentRender/MarkdownFlowInput.stories.d.ts +6 -0
  22. package/dist/components/ContentRender/SandboxApp.cjs.js +2 -2
  23. package/dist/components/ContentRender/SandboxApp.cjs.js.map +1 -1
  24. package/dist/components/ContentRender/SandboxApp.d.ts +3 -0
  25. package/dist/components/ContentRender/SandboxApp.es.js +117 -104
  26. package/dist/components/ContentRender/SandboxApp.es.js.map +1 -1
  27. package/dist/components/ContentRender/blackboard-vendor.cjs.js +1 -1
  28. package/dist/components/ContentRender/blackboard-vendor.cjs.js.map +1 -1
  29. package/dist/components/ContentRender/blackboard-vendor.es.js +14 -9
  30. package/dist/components/ContentRender/blackboard-vendor.es.js.map +1 -1
  31. package/dist/components/ContentRender/cjkFontFamily.cjs.js +2 -0
  32. package/dist/components/ContentRender/cjkFontFamily.cjs.js.map +1 -0
  33. package/dist/components/ContentRender/cjkFontFamily.d.ts +5 -0
  34. package/dist/components/ContentRender/cjkFontFamily.es.js +45 -0
  35. package/dist/components/ContentRender/cjkFontFamily.es.js.map +1 -0
  36. package/dist/components/ContentRender/cjkFontFamily.test.d.ts +1 -0
  37. package/dist/components/ContentRender/contentRenderI18n.cjs.js +2 -0
  38. package/dist/components/ContentRender/contentRenderI18n.cjs.js.map +1 -0
  39. package/dist/components/ContentRender/contentRenderI18n.d.ts +15 -0
  40. package/dist/components/ContentRender/contentRenderI18n.es.js +59 -0
  41. package/dist/components/ContentRender/contentRenderI18n.es.js.map +1 -0
  42. package/dist/components/ContentRender/index.cjs.js +1 -1
  43. package/dist/components/ContentRender/index.d.ts +1 -0
  44. package/dist/components/ContentRender/index.es.js +1 -0
  45. package/dist/components/ContentRender/index.es.js.map +1 -1
  46. package/dist/components/ContentRender/plugins/CustomVariable.cjs.js +1 -1
  47. package/dist/components/ContentRender/plugins/CustomVariable.cjs.js.map +1 -1
  48. package/dist/components/ContentRender/plugins/CustomVariable.d.ts +3 -1
  49. package/dist/components/ContentRender/plugins/CustomVariable.es.js +131 -124
  50. package/dist/components/ContentRender/plugins/CustomVariable.es.js.map +1 -1
  51. package/dist/components/ContentRender/plugins/MermaidChart.cjs.js +1 -1
  52. package/dist/components/ContentRender/plugins/MermaidChart.cjs.js.map +1 -1
  53. package/dist/components/ContentRender/plugins/MermaidChart.es.js +19 -18
  54. package/dist/components/ContentRender/plugins/MermaidChart.es.js.map +1 -1
  55. package/dist/components/MarkdownFlow/MarkdownFlow.cjs.js +1 -1
  56. package/dist/components/MarkdownFlow/MarkdownFlow.cjs.js.map +1 -1
  57. package/dist/components/MarkdownFlow/MarkdownFlow.d.ts +3 -0
  58. package/dist/components/MarkdownFlow/MarkdownFlow.es.js +18 -15
  59. package/dist/components/MarkdownFlow/MarkdownFlow.es.js.map +1 -1
  60. package/dist/components/MarkdownFlow/MarkdownFlow.stories.d.ts +6 -0
  61. package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.d.ts +1 -0
  62. package/dist/components/MarkdownFlow/index.cjs.js +1 -1
  63. package/dist/components/MarkdownFlow/index.es.js +1 -0
  64. package/dist/components/MarkdownFlow/index.es.js.map +1 -1
  65. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs.js +1 -1
  66. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs.js.map +1 -1
  67. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.d.ts +2 -2
  68. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js +23 -22
  69. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js.map +1 -1
  70. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.stories.d.ts +1 -1
  71. package/dist/components/MarkdownFlowEditor/editorI18n.cjs.js +1 -1
  72. package/dist/components/MarkdownFlowEditor/editorI18n.cjs.js.map +1 -1
  73. package/dist/components/MarkdownFlowEditor/editorI18n.d.ts +0 -2
  74. package/dist/components/MarkdownFlowEditor/editorI18n.es.js +12 -24
  75. package/dist/components/MarkdownFlowEditor/editorI18n.es.js.map +1 -1
  76. package/dist/components/MarkdownFlowEditor/index.d.ts +1 -1
  77. package/dist/components/Slide/Player.cjs.js +1 -1
  78. package/dist/components/Slide/Player.cjs.js.map +1 -1
  79. package/dist/components/Slide/Player.d.ts +14 -30
  80. package/dist/components/Slide/Player.es.js +395 -383
  81. package/dist/components/Slide/Player.es.js.map +1 -1
  82. package/dist/components/Slide/Slide.cjs.js +1 -1
  83. package/dist/components/Slide/Slide.cjs.js.map +1 -1
  84. package/dist/components/Slide/Slide.d.ts +22 -4
  85. package/dist/components/Slide/Slide.es.js +701 -659
  86. package/dist/components/Slide/Slide.es.js.map +1 -1
  87. package/dist/components/Slide/Slide.stories.d.ts +19 -20
  88. package/dist/components/Slide/constants.d.ts +0 -24
  89. package/dist/components/Slide/index.d.ts +2 -1
  90. package/dist/components/Slide/slideI18n.cjs.js +2 -0
  91. package/dist/components/Slide/slideI18n.cjs.js.map +1 -0
  92. package/dist/components/Slide/slideI18n.d.ts +44 -0
  93. package/dist/components/Slide/slideI18n.es.js +158 -0
  94. package/dist/components/Slide/slideI18n.es.js.map +1 -0
  95. package/dist/components/Slide/slideI18n.test.d.ts +1 -0
  96. package/dist/components/Slide/utils/playerVisibility.cjs.js +2 -0
  97. package/dist/components/Slide/utils/playerVisibility.cjs.js.map +1 -0
  98. package/dist/components/Slide/utils/playerVisibility.d.ts +10 -0
  99. package/dist/components/Slide/utils/playerVisibility.es.js +11 -0
  100. package/dist/components/Slide/utils/playerVisibility.es.js.map +1 -0
  101. package/dist/components/Slide/utils/playerVisibility.test.d.ts +1 -0
  102. package/dist/components/index.d.ts +2 -1
  103. package/dist/editor.d.ts +3 -2
  104. package/dist/index.cjs.js +1 -1
  105. package/dist/index.es.js +14 -13
  106. package/dist/index.es.js.map +1 -1
  107. package/dist/lib/locale.cjs.js +2 -0
  108. package/dist/lib/locale.cjs.js.map +1 -0
  109. package/dist/lib/locale.d.ts +4 -0
  110. package/dist/lib/locale.es.js +19 -0
  111. package/dist/lib/locale.es.js.map +1 -0
  112. package/dist/lib/localeTextMap.cjs.js +2 -0
  113. package/dist/lib/localeTextMap.cjs.js.map +1 -0
  114. package/dist/lib/localeTextMap.d.ts +4 -0
  115. package/dist/lib/localeTextMap.es.js +5 -0
  116. package/dist/lib/localeTextMap.es.js.map +1 -0
  117. package/dist/markdown-flow-ui-lib.css +1 -1
  118. package/dist/node_modules/@braintree/sanitize-url/dist/index.cjs.js +1 -1
  119. package/dist/node_modules/@braintree/sanitize-url/dist/index.es.js +1 -1
  120. package/dist/node_modules/classnames/index.cjs.js +1 -1
  121. package/dist/node_modules/classnames/index.es.js +1 -1
  122. package/dist/renderer.cjs.js +1 -1
  123. package/dist/renderer.d.ts +1 -0
  124. package/dist/renderer.es.js +15 -14
  125. package/dist/renderer.es.js.map +1 -1
  126. package/dist/slide.d.ts +1 -0
  127. package/package.json +1 -1
  128. package/dist/components/Slide/constants.cjs.js +0 -2
  129. package/dist/components/Slide/constants.cjs.js.map +0 -1
  130. package/dist/components/Slide/constants.es.js +0 -28
  131. package/dist/components/Slide/constants.es.js.map +0 -1
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../../lib/locale.cjs.js"),t=require("../../lib/localeTextMap.cjs.js"),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;
2
+ //# sourceMappingURL=slideI18n.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slideI18n.cjs.js","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":"uKAoDMA,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"}
@@ -0,0 +1,44 @@
1
+ import { MarkdownFlowLocale } from '../../lib/locale';
2
+ export interface SlidePlayerLocaleTexts {
3
+ closeSettingsLabel: string;
4
+ enterFullscreenLabel: string;
5
+ exitFullscreenLabel: string;
6
+ moreOptionsAriaLabel: string;
7
+ nextLabel: string;
8
+ nextSubtitleLabel: string;
9
+ notesLabel: string;
10
+ pauseAutoplayLabel: string;
11
+ pauseLabel: string;
12
+ playAutoplayLabel: string;
13
+ playLabel: string;
14
+ previousLabel: string;
15
+ previousSubtitleLabel: string;
16
+ screenModeLabel: string;
17
+ settingsTitle: string;
18
+ subtitleLabel: string;
19
+ subtitleToggleAriaLabel: string;
20
+ volumeAriaLabel: string;
21
+ screenLabel: string;
22
+ nonFullscreenLabel: string;
23
+ fullscreenLabel: string;
24
+ fullscreenHintText: string;
25
+ }
26
+ export interface SlideInteractionLocaleTexts {
27
+ title: string;
28
+ confirmButtonText: string;
29
+ copyButtonText: string;
30
+ copiedButtonText: string;
31
+ }
32
+ export type SlideBufferingReason = "waitingForAudio" | import('./Player').SlidePlayerLoadingReason;
33
+ export interface SlideLocaleTexts {
34
+ bufferingText: Record<SlideBufferingReason, string>;
35
+ fullscreenBackAriaLabel: string;
36
+ interactionTexts: SlideInteractionLocaleTexts;
37
+ playerTexts: SlidePlayerLocaleTexts;
38
+ }
39
+ export declare const DEFAULT_SLIDE_PLAYER_TEXTS: SlidePlayerLocaleTexts;
40
+ export declare const DEFAULT_SLIDE_INTERACTION_TEXTS: SlideInteractionLocaleTexts;
41
+ export declare const DEFAULT_SLIDE_BUFFERING_TEXTS: Record<SlideBufferingReason, string>;
42
+ export declare const SLIDE_LOCALE_TEXTS: Record<MarkdownFlowLocale, SlideLocaleTexts>;
43
+ export declare const getSlideLocaleTexts: (locale?: string | null) => SlideLocaleTexts;
44
+ export declare const getSlidePlayerTexts: (locale?: string | null) => SlidePlayerLocaleTexts;
@@ -0,0 +1,158 @@
1
+ import { normalizeMarkdownFlowLocale as u } from "../../lib/locale.es.js";
2
+ import { buildLocaleTexts as t } from "../../lib/localeTextMap.es.js";
3
+ const c = [
4
+ "closeSettingsLabel",
5
+ "enterFullscreenLabel",
6
+ "exitFullscreenLabel",
7
+ "moreOptionsAriaLabel",
8
+ "nextLabel",
9
+ "nextSubtitleLabel",
10
+ "notesLabel",
11
+ "pauseAutoplayLabel",
12
+ "pauseLabel",
13
+ "playAutoplayLabel",
14
+ "playLabel",
15
+ "previousLabel",
16
+ "previousSubtitleLabel",
17
+ "screenModeLabel",
18
+ "settingsTitle",
19
+ "subtitleLabel",
20
+ "subtitleToggleAriaLabel",
21
+ "volumeAriaLabel",
22
+ "screenLabel",
23
+ "nonFullscreenLabel",
24
+ "fullscreenLabel",
25
+ "fullscreenHintText"
26
+ ], L = [
27
+ "title",
28
+ "confirmButtonText",
29
+ "copyButtonText",
30
+ "copiedButtonText"
31
+ ], T = [
32
+ "waitingForAudio",
33
+ "loadingAudio",
34
+ "waitingForMoreAudio"
35
+ ], n = (e) => t(c, e), a = (e) => t(
36
+ L,
37
+ e
38
+ ), l = (e) => t(T, e), o = (e, r, s, i) => ({
39
+ bufferingText: l(r),
40
+ fullscreenBackAriaLabel: e,
41
+ interactionTexts: a(s),
42
+ playerTexts: n(i)
43
+ }), p = n([
44
+ "Close settings",
45
+ "Enter fullscreen",
46
+ "Exit fullscreen",
47
+ "More options",
48
+ "Next page",
49
+ "Next sentence",
50
+ "Notes",
51
+ "Pause autoplay",
52
+ "Pause",
53
+ "Play autoplay",
54
+ "Play",
55
+ "Previous page",
56
+ "Previous sentence",
57
+ "Screen mode",
58
+ "Settings",
59
+ "Subtitles",
60
+ "Toggle subtitles",
61
+ "Volume",
62
+ "Screen",
63
+ "Non-fullscreen",
64
+ "Fullscreen",
65
+ "Please rotate your screen for the best experience"
66
+ ]), d = a([
67
+ "Submit the content below to continue.",
68
+ "Submit",
69
+ "Copy",
70
+ "Copied"
71
+ ]), b = l([
72
+ "Waiting for current slide audio...",
73
+ "Loading audio...",
74
+ "Waiting for more audio..."
75
+ ]), S = {
76
+ "en-US": {
77
+ bufferingText: b,
78
+ fullscreenBackAriaLabel: "Back to non-full screen",
79
+ interactionTexts: d,
80
+ playerTexts: p
81
+ },
82
+ "fr-FR": o(
83
+ "Retour au mode non plein écran",
84
+ [
85
+ "En attente de l'audio de la diapositive actuelle...",
86
+ "Chargement audio...",
87
+ "En attente de plus d'audio..."
88
+ ],
89
+ [
90
+ "Soumettez le contenu ci-dessous pour continuer.",
91
+ "Soumettre",
92
+ "Copier",
93
+ "Copié"
94
+ ],
95
+ [
96
+ "Fermer les paramètres",
97
+ "Passer en plein écran",
98
+ "Quitter le plein écran",
99
+ "Plus d'options",
100
+ "Page suivante",
101
+ "Phrase suivante",
102
+ "Notes",
103
+ "Suspendre la lecture automatique",
104
+ "Pause",
105
+ "Lancer la lecture automatique",
106
+ "Lecture",
107
+ "Page précédente",
108
+ "Phrase précédente",
109
+ "Mode d'affichage",
110
+ "Paramètres",
111
+ "Sous-titres",
112
+ "Afficher ou masquer les sous-titres",
113
+ "Volume",
114
+ "Écran",
115
+ "Hors plein écran",
116
+ "Plein écran",
117
+ "Veuillez tourner votre écran pour une meilleure expérience"
118
+ ]
119
+ ),
120
+ "zh-CN": o(
121
+ "返回非全屏",
122
+ ["正在等待当前页音频...", "正在加载音频", "正在等待音频"],
123
+ ["提交下面的内容以继续", "提交", "复制", "已复制"],
124
+ [
125
+ "关闭设置",
126
+ "进入全屏",
127
+ "退出全屏",
128
+ "更多选项",
129
+ "下一页",
130
+ "下一句",
131
+ "笔记",
132
+ "暂停自动播放",
133
+ "暂停",
134
+ "开始自动播放",
135
+ "播放",
136
+ "上一页",
137
+ "上一句",
138
+ "屏幕模式",
139
+ "设置",
140
+ "字幕",
141
+ "切换字幕",
142
+ "音量",
143
+ "屏幕",
144
+ "非全屏",
145
+ "全屏",
146
+ "请旋转屏幕以获得最佳体验"
147
+ ]
148
+ )
149
+ }, E = (e) => S[u(e)], m = (e) => E(e).playerTexts;
150
+ export {
151
+ b as DEFAULT_SLIDE_BUFFERING_TEXTS,
152
+ d as DEFAULT_SLIDE_INTERACTION_TEXTS,
153
+ p as DEFAULT_SLIDE_PLAYER_TEXTS,
154
+ S as SLIDE_LOCALE_TEXTS,
155
+ E as getSlideLocaleTexts,
156
+ m as getSlidePlayerTexts
157
+ };
158
+ //# sourceMappingURL=slideI18n.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slideI18n.es.js","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":";;AAoDA,MAAMA,IAAyB;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAEMC,IAA8B;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAEMC,IAA4B;AAAA,EAChC;AAAA,EACA;AAAA,EACA;AACF,GAEMC,IAAyB,CAC7BC,MAEAC,EAAiBL,GAAwBI,CAAM,GAE3CE,IAA8B,CAClCF,MAEAC;AAAA,EACEJ;AAAA,EACAG;AACF,GAEIG,IAA4B,CAChCH,MAEAC,EAAiBH,GAA2BE,CAAM,GAK9CI,IAAyB,CAC7BC,GACAC,GACAC,GACAC,OACsB;AAAA,EACtB,eAAeL,EAA0BG,CAAe;AAAA,EACxD,yBAAAD;AAAA,EACA,kBAAkBH,EAA4BK,CAAiB;AAAA,EAC/D,aAAaR,EAAuBS,CAAY;AAClD,IAEaC,IACXV,EAAuB;AAAA,EACrB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC,GAEUW,IACXR,EAA4B;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC,GAEUS,IAAgCR,EAA0B;AAAA,EACrE;AAAA,EACA;AAAA,EACA;AACF,CAAC,GAEYS,IACX;AAAA,EACE,SAAS;AAAA,IACP,eAAeD;AAAA,IACf,yBAAyB;AAAA,IACzB,kBAAkBD;AAAA,IAClB,aAAaD;AAAA,EAAA;AAAA,EAEf,SAASL;AAAA,IACP;AAAA,IACA;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,IAAA;AAAA,IAEF;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAAA;AAAA,IAEF;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAAA;AAAA,EACF;AAAA,EAEF,SAASA;AAAA,IACP;AAAA,IACA,CAAC,gBAAgB,UAAU,QAAQ;AAAA,IACnC,CAAC,cAAc,MAAM,MAAM,KAAK;AAAA,IAChC;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAAA;AAAA,EACF;AAEJ,GAEWS,IAAsB,CAACC,MAClCF,EAAmBG,EAA4BD,CAAM,CAAC,GAE3CE,IAAsB,CACjCF,MAC2BD,EAAoBC,CAAM,EAAE;"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=({playerEnabled:e,playerControlsVisibility:i})=>({playerEnabled:e??!0,playerControlsVisibility:i??"auto"});exports.resolveSlidePlayerVisibility=l;
2
+ //# sourceMappingURL=playerVisibility.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"playerVisibility.cjs.js","sources":["../../../../src/components/Slide/utils/playerVisibility.ts"],"sourcesContent":["export type SlidePlayerControlsVisibility = \"auto\" | \"visible\" | \"hidden\";\n\nexport interface ResolveSlidePlayerVisibilityOptions {\n playerEnabled?: boolean;\n playerControlsVisibility?: SlidePlayerControlsVisibility;\n}\n\nexport interface ResolvedSlidePlayerVisibility {\n playerEnabled: boolean;\n playerControlsVisibility: SlidePlayerControlsVisibility;\n}\n\nexport const resolveSlidePlayerVisibility = ({\n playerEnabled,\n playerControlsVisibility,\n}: ResolveSlidePlayerVisibilityOptions): ResolvedSlidePlayerVisibility => ({\n playerEnabled: playerEnabled ?? true,\n playerControlsVisibility: playerControlsVisibility ?? \"auto\",\n});\n"],"names":["resolveSlidePlayerVisibility","playerEnabled","playerControlsVisibility"],"mappings":"gFAYO,MAAMA,EAA+B,CAAC,CAC3C,cAAAC,EACA,yBAAAC,CACF,KAA2E,CACzE,cAAeD,GAAiB,GAChC,yBAA0BC,GAA4B,MACxD"}
@@ -0,0 +1,10 @@
1
+ export type SlidePlayerControlsVisibility = "auto" | "visible" | "hidden";
2
+ export interface ResolveSlidePlayerVisibilityOptions {
3
+ playerEnabled?: boolean;
4
+ playerControlsVisibility?: SlidePlayerControlsVisibility;
5
+ }
6
+ export interface ResolvedSlidePlayerVisibility {
7
+ playerEnabled: boolean;
8
+ playerControlsVisibility: SlidePlayerControlsVisibility;
9
+ }
10
+ export declare const resolveSlidePlayerVisibility: ({ playerEnabled, playerControlsVisibility, }: ResolveSlidePlayerVisibilityOptions) => ResolvedSlidePlayerVisibility;
@@ -0,0 +1,11 @@
1
+ const l = ({
2
+ playerEnabled: e,
3
+ playerControlsVisibility: i
4
+ }) => ({
5
+ playerEnabled: e ?? !0,
6
+ playerControlsVisibility: i ?? "auto"
7
+ });
8
+ export {
9
+ l as resolveSlidePlayerVisibility
10
+ };
11
+ //# sourceMappingURL=playerVisibility.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"playerVisibility.es.js","sources":["../../../../src/components/Slide/utils/playerVisibility.ts"],"sourcesContent":["export type SlidePlayerControlsVisibility = \"auto\" | \"visible\" | \"hidden\";\n\nexport interface ResolveSlidePlayerVisibilityOptions {\n playerEnabled?: boolean;\n playerControlsVisibility?: SlidePlayerControlsVisibility;\n}\n\nexport interface ResolvedSlidePlayerVisibility {\n playerEnabled: boolean;\n playerControlsVisibility: SlidePlayerControlsVisibility;\n}\n\nexport const resolveSlidePlayerVisibility = ({\n playerEnabled,\n playerControlsVisibility,\n}: ResolveSlidePlayerVisibilityOptions): ResolvedSlidePlayerVisibility => ({\n playerEnabled: playerEnabled ?? true,\n playerControlsVisibility: playerControlsVisibility ?? \"auto\",\n});\n"],"names":["resolveSlidePlayerVisibility","playerEnabled","playerControlsVisibility"],"mappings":"AAYO,MAAMA,IAA+B,CAAC;AAAA,EAC3C,eAAAC;AAAA,EACA,0BAAAC;AACF,OAA2E;AAAA,EACzE,eAAeD,KAAiB;AAAA,EAChC,0BAA0BC,KAA4B;AACxD;"}
@@ -6,9 +6,10 @@ export { default as Slide } from './Slide';
6
6
  export { Player, useSlide } from './Slide';
7
7
  export { getInteractionDefaultValues, getInteractionDefaultSelectedValues, } from '../lib/interaction-defaults';
8
8
  export type { ContentRenderProps } from './ContentRender/ContentRender';
9
+ export type { MarkdownFlowLocale } from '../lib/locale';
9
10
  export type { OnSendContentParams, CustomRenderBarProps } from './types';
10
11
  export type { EditMode, UploadProps, ImageResource, } from './MarkdownFlowEditor';
11
- export type { Element, ElementSubtitleCue, SlideInteractionTexts, SlideProps, } from './Slide';
12
+ export type { Element, ElementSubtitleCue, SlideInteractionTexts, SlidePlayerControlsVisibility, SlideProps, } from './Slide';
12
13
  export type { InteractionDefaultResolver, InteractionDefaultResolverParams, InteractionDefaultValueOptions, InteractionDefaultValues, InteractionParseResult, } from '../lib/interaction-defaults';
13
14
  export type { PlayerProps, SlidePlayerNavigationContext } from './Slide';
14
15
  export type { UseSlideResult } from './Slide';
package/dist/editor.d.ts CHANGED
@@ -1,3 +1,4 @@
1
- import { default as MarkdownFlowEditor, EditMode, EditorLocale, UploadProps, ImageResource } from './components/MarkdownFlowEditor';
1
+ import { default as MarkdownFlowEditor, EditMode, UploadProps, ImageResource } from './components/MarkdownFlowEditor';
2
2
  export { MarkdownFlowEditor };
3
- export type { EditMode, EditorLocale, UploadProps, ImageResource };
3
+ export type { EditMode, UploadProps, ImageResource };
4
+ export type { MarkdownFlowLocale } from './lib/locale';
package/dist/index.cjs.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./components/MarkdownFlowEditor/MarkdownFlowEditor.cjs.js"),n=require("./components/MarkdownFlow/MarkdownFlow.cjs.js");require("./_virtual/jsx-runtime.cjs.js");require("react");;/* empty css */const r=require("./components/ContentRender/ContentRender.cjs.js"),o=require("./components/ContentRender/IframeSandbox.cjs.js"),a=require("./components/ContentRender/utils/split-content.cjs.js"),u=require("./components/ContentRender/MarkdownFlowInput.cjs.js"),e=require("./lib/interaction-defaults.cjs.js");exports.MarkdownFlowEditor=t.default;exports.MarkdownFlow=n.default;exports.ContentRender=r.default;exports.IframeSandbox=o.default;exports.splitContentSegments=a.splitContentSegments;exports.MarkdownFlowInput=u.default;exports.getInteractionDefaultSelectedValues=e.getInteractionDefaultSelectedValues;exports.getInteractionDefaultValues=e.getInteractionDefaultValues;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./components/MarkdownFlowEditor/MarkdownFlowEditor.cjs.js"),n=require("./components/MarkdownFlow/MarkdownFlow.cjs.js");require("./_virtual/jsx-runtime.cjs.js");require("react");require("./components/ContentRender/contentRenderI18n.cjs.js");;/* empty css */const r=require("./components/ContentRender/ContentRender.cjs.js"),o=require("./components/ContentRender/IframeSandbox.cjs.js"),a=require("./components/ContentRender/utils/split-content.cjs.js"),u=require("./components/ContentRender/MarkdownFlowInput.cjs.js"),e=require("./lib/interaction-defaults.cjs.js");exports.MarkdownFlowEditor=t.default;exports.MarkdownFlow=n.default;exports.ContentRender=r.default;exports.IframeSandbox=o.default;exports.splitContentSegments=a.splitContentSegments;exports.MarkdownFlowInput=u.default;exports.getInteractionDefaultSelectedValues=e.getInteractionDefaultSelectedValues;exports.getInteractionDefaultValues=e.getInteractionDefaultValues;
2
2
  //# sourceMappingURL=index.cjs.js.map
package/dist/index.es.js CHANGED
@@ -1,21 +1,22 @@
1
- import { default as f } from "./components/MarkdownFlowEditor/MarkdownFlowEditor.es.js";
2
- import { default as l } from "./components/MarkdownFlow/MarkdownFlow.es.js";
1
+ import { default as n } from "./components/MarkdownFlowEditor/MarkdownFlowEditor.es.js";
2
+ import { default as m } from "./components/MarkdownFlow/MarkdownFlow.es.js";
3
3
  import "./_virtual/jsx-runtime.es.js";
4
4
  import "react";
5
+ import "./components/ContentRender/contentRenderI18n.es.js";
5
6
  /* empty css */
6
- import { default as m } from "./components/ContentRender/ContentRender.es.js";
7
- import { default as u } from "./components/ContentRender/IframeSandbox.es.js";
7
+ import { default as d } from "./components/ContentRender/ContentRender.es.js";
8
+ import { default as s } from "./components/ContentRender/IframeSandbox.es.js";
8
9
  import { splitContentSegments as x } from "./components/ContentRender/utils/split-content.es.js";
9
- import { default as w } from "./components/ContentRender/MarkdownFlowInput.es.js";
10
- import { getInteractionDefaultSelectedValues as c, getInteractionDefaultValues as g } from "./lib/interaction-defaults.es.js";
10
+ import { default as I } from "./components/ContentRender/MarkdownFlowInput.es.js";
11
+ import { getInteractionDefaultSelectedValues as g, getInteractionDefaultValues as k } from "./lib/interaction-defaults.es.js";
11
12
  export {
12
- m as ContentRender,
13
- u as IframeSandbox,
14
- l as MarkdownFlow,
15
- f as MarkdownFlowEditor,
16
- w as MarkdownFlowInput,
17
- c as getInteractionDefaultSelectedValues,
18
- g as getInteractionDefaultValues,
13
+ d as ContentRender,
14
+ s as IframeSandbox,
15
+ m as MarkdownFlow,
16
+ n as MarkdownFlowEditor,
17
+ I as MarkdownFlowInput,
18
+ g as getInteractionDefaultSelectedValues,
19
+ k as getInteractionDefaultValues,
19
20
  x as splitContentSegments
20
21
  };
21
22
  //# sourceMappingURL=index.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
1
+ {"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o="en-US",r=["en-US","fr-FR","zh-CN"],t={en:"en-US",fr:"fr-FR",zh:"zh-CN"},l=n=>{if(!n)return o;const e=n.split("_").join("-");if(r.includes(e))return e;const L=e.split("-")[0]?.toLowerCase();return t[L]??o};exports.DEFAULT_MARKDOWN_FLOW_LOCALE=o;exports.MARKDOWN_FLOW_LOCALES=r;exports.normalizeMarkdownFlowLocale=l;
2
+ //# sourceMappingURL=locale.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locale.cjs.js","sources":["../../src/lib/locale.ts"],"sourcesContent":["export const DEFAULT_MARKDOWN_FLOW_LOCALE = \"en-US\";\n\nexport const MARKDOWN_FLOW_LOCALES = [\"en-US\", \"fr-FR\", \"zh-CN\"] as const;\n\nexport type MarkdownFlowLocale = (typeof MARKDOWN_FLOW_LOCALES)[number];\n\nconst localeAliasMap: Record<string, MarkdownFlowLocale> = {\n en: \"en-US\",\n fr: \"fr-FR\",\n zh: \"zh-CN\",\n};\n\nexport const normalizeMarkdownFlowLocale = (\n locale?: string | null\n): MarkdownFlowLocale => {\n if (!locale) {\n return DEFAULT_MARKDOWN_FLOW_LOCALE;\n }\n\n const normalizedLocale = locale.split(\"_\").join(\"-\");\n if (MARKDOWN_FLOW_LOCALES.includes(normalizedLocale as MarkdownFlowLocale)) {\n return normalizedLocale as MarkdownFlowLocale;\n }\n\n const baseLocale = normalizedLocale.split(\"-\")[0]?.toLowerCase();\n return localeAliasMap[baseLocale] ?? DEFAULT_MARKDOWN_FLOW_LOCALE;\n};\n"],"names":["DEFAULT_MARKDOWN_FLOW_LOCALE","MARKDOWN_FLOW_LOCALES","localeAliasMap","normalizeMarkdownFlowLocale","locale","normalizedLocale","baseLocale"],"mappings":"gFAAO,MAAMA,EAA+B,QAE/BC,EAAwB,CAAC,QAAS,QAAS,OAAO,EAIzDC,EAAqD,CACzD,GAAI,QACJ,GAAI,QACJ,GAAI,OACN,EAEaC,EACXC,GACuB,CACvB,GAAI,CAACA,EACH,OAAOJ,EAGT,MAAMK,EAAmBD,EAAO,MAAM,GAAG,EAAE,KAAK,GAAG,EACnD,GAAIH,EAAsB,SAASI,CAAsC,EACvE,OAAOA,EAGT,MAAMC,EAAaD,EAAiB,MAAM,GAAG,EAAE,CAAC,GAAG,YAAA,EACnD,OAAOH,EAAeI,CAAU,GAAKN,CACvC"}
@@ -0,0 +1,4 @@
1
+ export declare const DEFAULT_MARKDOWN_FLOW_LOCALE = "en-US";
2
+ export declare const MARKDOWN_FLOW_LOCALES: readonly ["en-US", "fr-FR", "zh-CN"];
3
+ export type MarkdownFlowLocale = (typeof MARKDOWN_FLOW_LOCALES)[number];
4
+ export declare const normalizeMarkdownFlowLocale: (locale?: string | null) => MarkdownFlowLocale;
@@ -0,0 +1,19 @@
1
+ const o = "en-US", t = ["en-US", "fr-FR", "zh-CN"], s = {
2
+ en: "en-US",
3
+ fr: "fr-FR",
4
+ zh: "zh-CN"
5
+ }, L = (e) => {
6
+ if (!e)
7
+ return o;
8
+ const n = e.split("_").join("-");
9
+ if (t.includes(n))
10
+ return n;
11
+ const r = n.split("-")[0]?.toLowerCase();
12
+ return s[r] ?? o;
13
+ };
14
+ export {
15
+ o as DEFAULT_MARKDOWN_FLOW_LOCALE,
16
+ t as MARKDOWN_FLOW_LOCALES,
17
+ L as normalizeMarkdownFlowLocale
18
+ };
19
+ //# sourceMappingURL=locale.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locale.es.js","sources":["../../src/lib/locale.ts"],"sourcesContent":["export const DEFAULT_MARKDOWN_FLOW_LOCALE = \"en-US\";\n\nexport const MARKDOWN_FLOW_LOCALES = [\"en-US\", \"fr-FR\", \"zh-CN\"] as const;\n\nexport type MarkdownFlowLocale = (typeof MARKDOWN_FLOW_LOCALES)[number];\n\nconst localeAliasMap: Record<string, MarkdownFlowLocale> = {\n en: \"en-US\",\n fr: \"fr-FR\",\n zh: \"zh-CN\",\n};\n\nexport const normalizeMarkdownFlowLocale = (\n locale?: string | null\n): MarkdownFlowLocale => {\n if (!locale) {\n return DEFAULT_MARKDOWN_FLOW_LOCALE;\n }\n\n const normalizedLocale = locale.split(\"_\").join(\"-\");\n if (MARKDOWN_FLOW_LOCALES.includes(normalizedLocale as MarkdownFlowLocale)) {\n return normalizedLocale as MarkdownFlowLocale;\n }\n\n const baseLocale = normalizedLocale.split(\"-\")[0]?.toLowerCase();\n return localeAliasMap[baseLocale] ?? DEFAULT_MARKDOWN_FLOW_LOCALE;\n};\n"],"names":["DEFAULT_MARKDOWN_FLOW_LOCALE","MARKDOWN_FLOW_LOCALES","localeAliasMap","normalizeMarkdownFlowLocale","locale","normalizedLocale","baseLocale"],"mappings":"AAAO,MAAMA,IAA+B,SAE/BC,IAAwB,CAAC,SAAS,SAAS,OAAO,GAIzDC,IAAqD;AAAA,EACzD,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN,GAEaC,IAA8B,CACzCC,MACuB;AACvB,MAAI,CAACA;AACH,WAAOJ;AAGT,QAAMK,IAAmBD,EAAO,MAAM,GAAG,EAAE,KAAK,GAAG;AACnD,MAAIH,EAAsB,SAASI,CAAsC;AACvE,WAAOA;AAGT,QAAMC,IAAaD,EAAiB,MAAM,GAAG,EAAE,CAAC,GAAG,YAAA;AACnD,SAAOH,EAAeI,CAAU,KAAKN;AACvC;"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=(e,t)=>Object.fromEntries(e.map((o,l)=>[o,t[l]]));exports.buildLocaleTexts=c;
2
+ //# sourceMappingURL=localeTextMap.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"localeTextMap.cjs.js","sources":["../../src/lib/localeTextMap.ts"],"sourcesContent":["export type LocaleTextValues<T extends readonly unknown[]> = {\n readonly [Index in keyof T]: string;\n};\n\nexport const buildLocaleTexts = <const TKeys extends readonly string[]>(\n keys: TKeys,\n values: LocaleTextValues<TKeys>\n): Record<TKeys[number], string> =>\n Object.fromEntries(keys.map((key, index) => [key, values[index]])) as Record<\n TKeys[number],\n string\n >;\n"],"names":["buildLocaleTexts","keys","values","key","index"],"mappings":"gFAIO,MAAMA,EAAmB,CAC9BC,EACAC,IAEA,OAAO,YAAYD,EAAK,IAAI,CAACE,EAAKC,IAAU,CAACD,EAAKD,EAAOE,CAAK,CAAC,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export type LocaleTextValues<T extends readonly unknown[]> = {
2
+ readonly [Index in keyof T]: string;
3
+ };
4
+ export declare const buildLocaleTexts: <const TKeys extends readonly string[]>(keys: TKeys, values: LocaleTextValues<TKeys>) => Record<TKeys[number], string>;
@@ -0,0 +1,5 @@
1
+ const r = (e, t) => Object.fromEntries(e.map((o, c) => [o, t[c]]));
2
+ export {
3
+ r as buildLocaleTexts
4
+ };
5
+ //# sourceMappingURL=localeTextMap.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"localeTextMap.es.js","sources":["../../src/lib/localeTextMap.ts"],"sourcesContent":["export type LocaleTextValues<T extends readonly unknown[]> = {\n readonly [Index in keyof T]: string;\n};\n\nexport const buildLocaleTexts = <const TKeys extends readonly string[]>(\n keys: TKeys,\n values: LocaleTextValues<TKeys>\n): Record<TKeys[number], string> =>\n Object.fromEntries(keys.map((key, index) => [key, values[index]])) as Record<\n TKeys[number],\n string\n >;\n"],"names":["buildLocaleTexts","keys","values","key","index"],"mappings":"AAIO,MAAMA,IAAmB,CAC9BC,GACAC,MAEA,OAAO,YAAYD,EAAK,IAAI,CAACE,GAAKC,MAAU,CAACD,GAAKD,EAAOE,CAAK,CAAC,CAAC,CAAC;"}