markdown-flow-ui 0.2.13 → 0.2.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (475) hide show
  1. package/README.md +7 -0
  2. package/dist/_virtual/index.es3.js +5 -4
  3. package/dist/_virtual/index.es3.js.map +1 -1
  4. package/dist/_virtual/index.es4.js +4 -5
  5. package/dist/_virtual/index.es4.js.map +1 -1
  6. package/dist/_virtual/index3.cjs +1 -1
  7. package/dist/_virtual/index4.cjs +1 -1
  8. package/dist/assets/markdown-flow-ui.css +10 -1
  9. package/dist/components/ContentRender/CodeBlock.cjs +1 -1
  10. package/dist/components/ContentRender/CodeBlock.cjs.map +1 -1
  11. package/dist/components/ContentRender/CodeBlock.d.ts +5 -0
  12. package/dist/components/ContentRender/CodeBlock.es.js +41 -38
  13. package/dist/components/ContentRender/CodeBlock.es.js.map +1 -1
  14. package/dist/components/ContentRender/ContentRender.cjs +2 -2
  15. package/dist/components/ContentRender/ContentRender.cjs.map +1 -1
  16. package/dist/components/ContentRender/ContentRender.d.ts +9 -4
  17. package/dist/components/ContentRender/ContentRender.es.js +389 -298
  18. package/dist/components/ContentRender/ContentRender.es.js.map +1 -1
  19. package/dist/components/ContentRender/IframeSandbox.cjs +7 -7
  20. package/dist/components/ContentRender/IframeSandbox.cjs.map +1 -1
  21. package/dist/components/ContentRender/IframeSandbox.d.ts +5 -1
  22. package/dist/components/ContentRender/IframeSandbox.es.js +311 -266
  23. package/dist/components/ContentRender/IframeSandbox.es.js.map +1 -1
  24. package/dist/components/ContentRender/MarkdownFlowInput.cjs +1 -1
  25. package/dist/components/ContentRender/MarkdownFlowInput.cjs.map +1 -1
  26. package/dist/components/ContentRender/MarkdownFlowInput.d.ts +5 -1
  27. package/dist/components/ContentRender/MarkdownFlowInput.es.js +37 -32
  28. package/dist/components/ContentRender/MarkdownFlowInput.es.js.map +1 -1
  29. package/dist/components/ContentRender/SandboxApp.cjs +2 -2
  30. package/dist/components/ContentRender/SandboxApp.cjs.map +1 -1
  31. package/dist/components/ContentRender/SandboxApp.d.ts +5 -1
  32. package/dist/components/ContentRender/SandboxApp.es.js +108 -103
  33. package/dist/components/ContentRender/SandboxApp.es.js.map +1 -1
  34. package/dist/components/ContentRender/blackboard-vendor.d.ts +1 -1
  35. package/dist/components/ContentRender/contentRenderI18n.cjs +1 -1
  36. package/dist/components/ContentRender/contentRenderI18n.cjs.map +1 -1
  37. package/dist/components/ContentRender/contentRenderI18n.d.ts +6 -1
  38. package/dist/components/ContentRender/contentRenderI18n.es.js +5 -56
  39. package/dist/components/ContentRender/contentRenderI18n.es.js.map +1 -1
  40. package/dist/components/ContentRender/contentRenderI18n.test.d.ts +1 -0
  41. package/dist/components/ContentRender/index.cjs +1 -1
  42. package/dist/components/ContentRender/index.d.ts +11 -11
  43. package/dist/components/ContentRender/index.es.js +1 -2
  44. package/dist/components/ContentRender/index.es.js.map +1 -1
  45. package/dist/components/ContentRender/locales/contentRender.json.cjs +2 -0
  46. package/dist/components/ContentRender/locales/contentRender.json.cjs.map +1 -0
  47. package/dist/components/ContentRender/locales/contentRender.json.d.ts +90 -0
  48. package/dist/components/ContentRender/locales/contentRender.json.es.js +11 -0
  49. package/dist/components/ContentRender/locales/contentRender.json.es.js.map +1 -0
  50. package/dist/components/ContentRender/plugins/CustomVariable.cjs +1 -1
  51. package/dist/components/ContentRender/plugins/CustomVariable.cjs.map +1 -1
  52. package/dist/components/ContentRender/plugins/CustomVariable.d.ts +7 -3
  53. package/dist/components/ContentRender/plugins/CustomVariable.es.js +165 -151
  54. package/dist/components/ContentRender/plugins/CustomVariable.es.js.map +1 -1
  55. package/dist/components/ContentRender/plugins/MermaidChart.cjs +1 -1
  56. package/dist/components/ContentRender/plugins/MermaidChart.cjs.map +1 -1
  57. package/dist/components/ContentRender/plugins/MermaidChart.d.ts +1 -0
  58. package/dist/components/ContentRender/plugins/MermaidChart.es.js +68 -44
  59. package/dist/components/ContentRender/plugins/MermaidChart.es.js.map +1 -1
  60. package/dist/components/MarkdownFlow/MarkdownFlow.cjs +1 -1
  61. package/dist/components/MarkdownFlow/MarkdownFlow.cjs.map +1 -1
  62. package/dist/components/MarkdownFlow/MarkdownFlow.d.ts +12 -4
  63. package/dist/components/MarkdownFlow/MarkdownFlow.es.js +51 -39
  64. package/dist/components/MarkdownFlow/MarkdownFlow.es.js.map +1 -1
  65. package/dist/components/MarkdownFlow/ScrollToBottomButton.cjs +1 -1
  66. package/dist/components/MarkdownFlow/ScrollToBottomButton.cjs.map +1 -1
  67. package/dist/components/MarkdownFlow/ScrollToBottomButton.d.ts +31 -1
  68. package/dist/components/MarkdownFlow/ScrollToBottomButton.es.js +46 -17
  69. package/dist/components/MarkdownFlow/ScrollToBottomButton.es.js.map +1 -1
  70. package/dist/components/MarkdownFlow/ScrollToBottomControl.cjs +2 -0
  71. package/dist/components/MarkdownFlow/ScrollToBottomControl.cjs.map +1 -0
  72. package/dist/components/MarkdownFlow/ScrollToBottomControl.d.ts +18 -0
  73. package/dist/components/MarkdownFlow/ScrollToBottomControl.es.js +47 -0
  74. package/dist/components/MarkdownFlow/ScrollToBottomControl.es.js.map +1 -0
  75. package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.cjs +1 -1
  76. package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.cjs.map +1 -1
  77. package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.d.ts +1 -1
  78. package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.es.js +33 -52
  79. package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.es.js.map +1 -1
  80. package/dist/components/MarkdownFlow/index.cjs +1 -1
  81. package/dist/components/MarkdownFlow/index.d.ts +9 -6
  82. package/dist/components/MarkdownFlow/index.es.js +6 -6
  83. package/dist/components/MarkdownFlow/index.es.js.map +1 -1
  84. package/dist/components/MarkdownFlow/useScrollToBottom.cjs +1 -1
  85. package/dist/components/MarkdownFlow/useScrollToBottom.cjs.map +1 -1
  86. package/dist/components/MarkdownFlow/useScrollToBottom.d.ts +40 -8
  87. package/dist/components/MarkdownFlow/useScrollToBottom.es.js +352 -83
  88. package/dist/components/MarkdownFlow/useScrollToBottom.es.js.map +1 -1
  89. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs +1 -1
  90. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs.map +1 -1
  91. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.d.ts +5 -3
  92. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js +371 -324
  93. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js.map +1 -1
  94. package/dist/components/MarkdownFlowEditor/components/CustomDialog.cjs +1 -1
  95. package/dist/components/MarkdownFlowEditor/components/CustomDialog.cjs.map +1 -1
  96. package/dist/components/MarkdownFlowEditor/components/CustomDialog.d.ts +10 -0
  97. package/dist/components/MarkdownFlowEditor/components/CustomDialog.es.js +22 -19
  98. package/dist/components/MarkdownFlowEditor/components/CustomDialog.es.js.map +1 -1
  99. package/dist/components/MarkdownFlowEditor/components/CustomPopover.cjs +1 -1
  100. package/dist/components/MarkdownFlowEditor/components/CustomPopover.cjs.map +1 -1
  101. package/dist/components/MarkdownFlowEditor/components/CustomPopover.d.ts +8 -0
  102. package/dist/components/MarkdownFlowEditor/components/CustomPopover.es.js +19 -15
  103. package/dist/components/MarkdownFlowEditor/components/CustomPopover.es.js.map +1 -1
  104. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs +1 -1
  105. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs.map +1 -1
  106. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.d.ts +4 -1
  107. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.es.js +99 -93
  108. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.es.js.map +1 -1
  109. package/dist/components/MarkdownFlowEditor/components/ImageInject.cjs +1 -1
  110. package/dist/components/MarkdownFlowEditor/components/ImageInject.cjs.map +1 -1
  111. package/dist/components/MarkdownFlowEditor/components/ImageInject.d.ts +1 -1
  112. package/dist/components/MarkdownFlowEditor/components/ImageInject.es.js +183 -182
  113. package/dist/components/MarkdownFlowEditor/components/ImageInject.es.js.map +1 -1
  114. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.cjs +1 -1
  115. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.cjs.map +1 -1
  116. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.d.ts +1 -1
  117. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.es.js +107 -103
  118. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.es.js.map +1 -1
  119. package/dist/components/MarkdownFlowEditor/components/VariableSelect.cjs +1 -1
  120. package/dist/components/MarkdownFlowEditor/components/VariableSelect.cjs.map +1 -1
  121. package/dist/components/MarkdownFlowEditor/components/VariableSelect.d.ts +1 -1
  122. package/dist/components/MarkdownFlowEditor/components/VariableSelect.es.js +106 -106
  123. package/dist/components/MarkdownFlowEditor/components/VariableSelect.es.js.map +1 -1
  124. package/dist/components/MarkdownFlowEditor/components/VideoInject.cjs +1 -1
  125. package/dist/components/MarkdownFlowEditor/components/VideoInject.cjs.map +1 -1
  126. package/dist/components/MarkdownFlowEditor/components/VideoInject.es.js +64 -63
  127. package/dist/components/MarkdownFlowEditor/components/VideoInject.es.js.map +1 -1
  128. package/dist/components/MarkdownFlowEditor/components/icons/ButtonIcon.cjs +1 -1
  129. package/dist/components/MarkdownFlowEditor/components/icons/ButtonIcon.cjs.map +1 -1
  130. package/dist/components/MarkdownFlowEditor/components/icons/ButtonIcon.es.js +13 -13
  131. package/dist/components/MarkdownFlowEditor/components/icons/ButtonIcon.es.js.map +1 -1
  132. package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.cjs +1 -1
  133. package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.cjs.map +1 -1
  134. package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.es.js +12 -12
  135. package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.es.js.map +1 -1
  136. package/dist/components/MarkdownFlowEditor/editor-context.d.ts +1 -1
  137. package/dist/components/MarkdownFlowEditor/editorI18n.cjs +1 -1
  138. package/dist/components/MarkdownFlowEditor/editorI18n.cjs.map +1 -1
  139. package/dist/components/MarkdownFlowEditor/editorI18n.d.ts +290 -0
  140. package/dist/components/MarkdownFlowEditor/editorI18n.es.js +12 -8
  141. package/dist/components/MarkdownFlowEditor/editorI18n.es.js.map +1 -1
  142. package/dist/components/MarkdownFlowEditor/editorI18n.test.d.ts +1 -0
  143. package/dist/components/MarkdownFlowEditor/index.d.ts +6 -6
  144. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.cjs +2 -0
  145. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.cjs.map +1 -0
  146. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.d.ts +72 -0
  147. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.es.js +140 -0
  148. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.es.js.map +1 -0
  149. package/dist/components/MarkdownFlowEditor/locales/en-US.json.cjs +1 -1
  150. package/dist/components/MarkdownFlowEditor/locales/en-US.json.d.ts +2 -0
  151. package/dist/components/MarkdownFlowEditor/locales/en-US.json.es.js +118 -114
  152. package/dist/components/MarkdownFlowEditor/locales/en-US.json.es.js.map +1 -1
  153. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.cjs +1 -1
  154. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.d.ts +2 -0
  155. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.es.js +118 -114
  156. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.es.js.map +1 -1
  157. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.cjs +2 -0
  158. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.cjs.map +1 -0
  159. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.d.ts +72 -0
  160. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.es.js +140 -0
  161. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.es.js.map +1 -0
  162. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.cjs +1 -1
  163. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.d.ts +2 -0
  164. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.es.js +70 -66
  165. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.es.js.map +1 -1
  166. package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.cjs +1 -1
  167. package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.cjs.map +1 -1
  168. package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.es.js +40 -35
  169. package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.es.js.map +1 -1
  170. package/dist/components/MarkdownFlowEditor/plugins/PlaceholderWidget.d.ts +1 -1
  171. package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.cjs +1 -1
  172. package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.cjs.map +1 -1
  173. package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.es.js +27 -23
  174. package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.es.js.map +1 -1
  175. package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.cjs +2 -0
  176. package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.cjs.map +1 -0
  177. package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.d.ts +7 -0
  178. package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.es.js +12 -0
  179. package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.es.js.map +1 -0
  180. package/dist/components/MarkdownFlowEditor/utils.d.ts +1 -1
  181. package/dist/components/Slide/MarkdownSlideScaling.cjs +1 -1
  182. package/dist/components/Slide/MarkdownSlideScaling.cjs.map +1 -1
  183. package/dist/components/Slide/MarkdownSlideScaling.d.ts +1 -1
  184. package/dist/components/Slide/MarkdownSlideScaling.es.js +20 -20
  185. package/dist/components/Slide/MarkdownSlideScaling.es.js.map +1 -1
  186. package/dist/components/Slide/MobilePlayerSettingsSheet.cjs +1 -1
  187. package/dist/components/Slide/MobilePlayerSettingsSheet.cjs.map +1 -1
  188. package/dist/components/Slide/MobilePlayerSettingsSheet.d.ts +7 -2
  189. package/dist/components/Slide/MobilePlayerSettingsSheet.es.js +61 -57
  190. package/dist/components/Slide/MobilePlayerSettingsSheet.es.js.map +1 -1
  191. package/dist/components/Slide/Player.cjs +1 -1
  192. package/dist/components/Slide/Player.cjs.map +1 -1
  193. package/dist/components/Slide/Player.d.ts +6 -6
  194. package/dist/components/Slide/Player.es.js +547 -541
  195. package/dist/components/Slide/Player.es.js.map +1 -1
  196. package/dist/components/Slide/Slide.cjs +1 -1
  197. package/dist/components/Slide/Slide.cjs.map +1 -1
  198. package/dist/components/Slide/Slide.d.ts +14 -12
  199. package/dist/components/Slide/Slide.es.js +745 -726
  200. package/dist/components/Slide/Slide.es.js.map +1 -1
  201. package/dist/components/Slide/SubtitleOverlay.cjs +1 -1
  202. package/dist/components/Slide/SubtitleOverlay.cjs.map +1 -1
  203. package/dist/components/Slide/SubtitleOverlay.d.ts +2 -2
  204. package/dist/components/Slide/SubtitleOverlay.es.js +17 -17
  205. package/dist/components/Slide/SubtitleOverlay.es.js.map +1 -1
  206. package/dist/components/Slide/diff-utils.d.ts +1 -1
  207. package/dist/components/Slide/index.d.ts +12 -12
  208. package/dist/components/Slide/locales/slide.json.cjs +2 -0
  209. package/dist/components/Slide/locales/slide.json.cjs.map +1 -0
  210. package/dist/components/Slide/locales/slide.json.d.ts +205 -0
  211. package/dist/components/Slide/locales/slide.json.es.js +11 -0
  212. package/dist/components/Slide/locales/slide.json.es.js.map +1 -0
  213. package/dist/components/Slide/slideI18n.cjs +1 -1
  214. package/dist/components/Slide/slideI18n.cjs.map +1 -1
  215. package/dist/components/Slide/slideI18n.d.ts +6 -3
  216. package/dist/components/Slide/slideI18n.es.js +10 -155
  217. package/dist/components/Slide/slideI18n.es.js.map +1 -1
  218. package/dist/components/Slide/useSlide.d.ts +1 -1
  219. package/dist/components/Slide/utils/appendedMarkerAdvance.d.ts +1 -1
  220. package/dist/components/Slide/utils/audioSegments.d.ts +1 -1
  221. package/dist/components/Slide/utils/interactionResolution.d.ts +2 -2
  222. package/dist/components/Slide/utils/listenModeElementList.d.ts +2 -2
  223. package/dist/components/Slide/utils/markdownScaling.d.ts +1 -1
  224. package/dist/components/Slide/utils/playerCustomActions.d.ts +2 -2
  225. package/dist/components/Slide/utils/playerKeyboardShortcuts.cjs +1 -1
  226. package/dist/components/Slide/utils/playerKeyboardShortcuts.cjs.map +1 -1
  227. package/dist/components/Slide/utils/playerKeyboardShortcuts.d.ts +1 -1
  228. package/dist/components/Slide/utils/playerKeyboardShortcuts.es.js +20 -20
  229. package/dist/components/Slide/utils/playerKeyboardShortcuts.es.js.map +1 -1
  230. package/dist/components/Slide/utils/runStreamFixture.d.ts +1 -1
  231. package/dist/components/Slide/utils/segmentSeek.d.ts +1 -1
  232. package/dist/components/Slide/utils/silentStepAutoAdvance.d.ts +1 -1
  233. package/dist/components/Slide/utils/streamingNavigation.d.ts +1 -1
  234. package/dist/components/Slide/utils/subtitleCue.d.ts +1 -1
  235. package/dist/components/Slide/utils/subtitleJumpNavigation.d.ts +1 -1
  236. package/dist/components/index.d.ts +22 -18
  237. package/dist/components/ui/button.cjs +1 -1
  238. package/dist/components/ui/button.cjs.map +1 -1
  239. package/dist/components/ui/button.es.js +12 -13
  240. package/dist/components/ui/button.es.js.map +1 -1
  241. package/dist/components/ui/checkbox.cjs +1 -1
  242. package/dist/components/ui/checkbox.cjs.map +1 -1
  243. package/dist/components/ui/checkbox.es.js +35 -35
  244. package/dist/components/ui/checkbox.es.js.map +1 -1
  245. package/dist/components/ui/dialog.cjs +1 -1
  246. package/dist/components/ui/dialog.cjs.map +1 -1
  247. package/dist/components/ui/dialog.d.ts +5 -1
  248. package/dist/components/ui/dialog.es.js +37 -37
  249. package/dist/components/ui/dialog.es.js.map +1 -1
  250. package/dist/components/ui/input.cjs +1 -1
  251. package/dist/components/ui/input.cjs.map +1 -1
  252. package/dist/components/ui/input.es.js +4 -4
  253. package/dist/components/ui/input.es.js.map +1 -1
  254. package/dist/components/ui/inputGroup/button.cjs +1 -1
  255. package/dist/components/ui/inputGroup/button.cjs.map +1 -1
  256. package/dist/components/ui/inputGroup/button.es.js +9 -10
  257. package/dist/components/ui/inputGroup/button.es.js.map +1 -1
  258. package/dist/components/ui/inputGroup/input-group.cjs +1 -1
  259. package/dist/components/ui/inputGroup/input-group.cjs.map +1 -1
  260. package/dist/components/ui/inputGroup/input-group.d.ts +1 -1
  261. package/dist/components/ui/inputGroup/input-group.es.js +10 -10
  262. package/dist/components/ui/inputGroup/input-group.es.js.map +1 -1
  263. package/dist/components/ui/inputGroup/textarea.cjs +1 -1
  264. package/dist/components/ui/inputGroup/textarea.cjs.map +1 -1
  265. package/dist/components/ui/inputGroup/textarea.es.js +3 -3
  266. package/dist/components/ui/inputGroup/textarea.es.js.map +1 -1
  267. package/dist/components/ui/loading-overlay-card.cjs +2 -2
  268. package/dist/components/ui/loading-overlay-card.cjs.map +1 -1
  269. package/dist/components/ui/loading-overlay-card.es.js +11 -11
  270. package/dist/components/ui/loading-overlay-card.es.js.map +1 -1
  271. package/dist/components/ui/popover.cjs +1 -1
  272. package/dist/components/ui/popover.cjs.map +1 -1
  273. package/dist/components/ui/popover.es.js +6 -6
  274. package/dist/components/ui/popover.es.js.map +1 -1
  275. package/dist/components/ui/tooltip.cjs +1 -1
  276. package/dist/components/ui/tooltip.cjs.map +1 -1
  277. package/dist/components/ui/tooltip.es.js +16 -16
  278. package/dist/components/ui/tooltip.es.js.map +1 -1
  279. package/dist/editor.d.ts +2 -2
  280. package/dist/fonts/KaTeX_AMS-Regular.ttf +0 -0
  281. package/dist/fonts/KaTeX_AMS-Regular.woff +0 -0
  282. package/dist/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  283. package/dist/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
  284. package/dist/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
  285. package/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  286. package/dist/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
  287. package/dist/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
  288. package/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  289. package/dist/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
  290. package/dist/fonts/KaTeX_Fraktur-Bold.woff +0 -0
  291. package/dist/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  292. package/dist/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
  293. package/dist/fonts/KaTeX_Fraktur-Regular.woff +0 -0
  294. package/dist/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  295. package/dist/fonts/KaTeX_Main-Bold.ttf +0 -0
  296. package/dist/fonts/KaTeX_Main-Bold.woff +0 -0
  297. package/dist/fonts/KaTeX_Main-Bold.woff2 +0 -0
  298. package/dist/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
  299. package/dist/fonts/KaTeX_Main-BoldItalic.woff +0 -0
  300. package/dist/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  301. package/dist/fonts/KaTeX_Main-Italic.ttf +0 -0
  302. package/dist/fonts/KaTeX_Main-Italic.woff +0 -0
  303. package/dist/fonts/KaTeX_Main-Italic.woff2 +0 -0
  304. package/dist/fonts/KaTeX_Main-Regular.ttf +0 -0
  305. package/dist/fonts/KaTeX_Main-Regular.woff +0 -0
  306. package/dist/fonts/KaTeX_Main-Regular.woff2 +0 -0
  307. package/dist/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
  308. package/dist/fonts/KaTeX_Math-BoldItalic.woff +0 -0
  309. package/dist/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  310. package/dist/fonts/KaTeX_Math-Italic.ttf +0 -0
  311. package/dist/fonts/KaTeX_Math-Italic.woff +0 -0
  312. package/dist/fonts/KaTeX_Math-Italic.woff2 +0 -0
  313. package/dist/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
  314. package/dist/fonts/KaTeX_SansSerif-Bold.woff +0 -0
  315. package/dist/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  316. package/dist/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
  317. package/dist/fonts/KaTeX_SansSerif-Italic.woff +0 -0
  318. package/dist/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  319. package/dist/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
  320. package/dist/fonts/KaTeX_SansSerif-Regular.woff +0 -0
  321. package/dist/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  322. package/dist/fonts/KaTeX_Script-Regular.ttf +0 -0
  323. package/dist/fonts/KaTeX_Script-Regular.woff +0 -0
  324. package/dist/fonts/KaTeX_Script-Regular.woff2 +0 -0
  325. package/dist/fonts/KaTeX_Size1-Regular.ttf +0 -0
  326. package/dist/fonts/KaTeX_Size1-Regular.woff +0 -0
  327. package/dist/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  328. package/dist/fonts/KaTeX_Size2-Regular.ttf +0 -0
  329. package/dist/fonts/KaTeX_Size2-Regular.woff +0 -0
  330. package/dist/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  331. package/dist/fonts/KaTeX_Size3-Regular.ttf +0 -0
  332. package/dist/fonts/KaTeX_Size3-Regular.woff +0 -0
  333. package/dist/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  334. package/dist/fonts/KaTeX_Size4-Regular.ttf +0 -0
  335. package/dist/fonts/KaTeX_Size4-Regular.woff +0 -0
  336. package/dist/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  337. package/dist/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
  338. package/dist/fonts/KaTeX_Typewriter-Regular.woff +0 -0
  339. package/dist/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  340. package/dist/index.cjs +1 -1
  341. package/dist/index.d.ts +2 -2
  342. package/dist/index.es.js +22 -19
  343. package/dist/index.es.js.map +1 -1
  344. package/dist/lib/locale.cjs +1 -1
  345. package/dist/lib/locale.cjs.map +1 -1
  346. package/dist/lib/locale.d.ts +5 -1
  347. package/dist/lib/locale.es.js +26 -13
  348. package/dist/lib/locale.es.js.map +1 -1
  349. package/dist/lib/locale.test.d.ts +1 -0
  350. package/dist/lib/useDetachedLanguage.cjs +2 -0
  351. package/dist/lib/useDetachedLanguage.cjs.map +1 -0
  352. package/dist/lib/useDetachedLanguage.d.ts +3 -0
  353. package/dist/lib/useDetachedLanguage.es.js +25 -0
  354. package/dist/lib/useDetachedLanguage.es.js.map +1 -0
  355. package/dist/lib/useResolvedDirection.cjs +2 -0
  356. package/dist/lib/useResolvedDirection.cjs.map +1 -0
  357. package/dist/lib/useResolvedDirection.d.ts +6 -0
  358. package/dist/lib/useResolvedDirection.es.js +37 -0
  359. package/dist/lib/useResolvedDirection.es.js.map +1 -0
  360. package/dist/markdown-flow-ui-lib.css +1 -1
  361. package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs +1 -1
  362. package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs.map +1 -1
  363. package/dist/node_modules/@radix-ui/react-arrow/dist/index.es.js +6 -6
  364. package/dist/node_modules/@radix-ui/react-arrow/dist/index.es.js.map +1 -1
  365. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs +1 -1
  366. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -1
  367. package/dist/node_modules/@radix-ui/react-context/dist/index.es.js +21 -21
  368. package/dist/node_modules/@radix-ui/react-context/dist/index.es.js.map +1 -1
  369. package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs +2 -2
  370. package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs.map +1 -1
  371. package/dist/node_modules/@radix-ui/react-dialog/dist/index.es.js +100 -100
  372. package/dist/node_modules/@radix-ui/react-dialog/dist/index.es.js.map +1 -1
  373. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +1 -1
  374. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -1
  375. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js +38 -38
  376. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +1 -1
  377. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +1 -1
  378. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -1
  379. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.js +9 -9
  380. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.js.map +1 -1
  381. package/dist/node_modules/@radix-ui/react-popover/dist/index.cjs +1 -1
  382. package/dist/node_modules/@radix-ui/react-popover/dist/index.cjs.map +1 -1
  383. package/dist/node_modules/@radix-ui/react-popover/dist/index.es.js +95 -95
  384. package/dist/node_modules/@radix-ui/react-popover/dist/index.es.js.map +1 -1
  385. package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs +1 -1
  386. package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs.map +1 -1
  387. package/dist/node_modules/@radix-ui/react-popper/dist/index.es.js +48 -48
  388. package/dist/node_modules/@radix-ui/react-popper/dist/index.es.js.map +1 -1
  389. package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs +1 -1
  390. package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -1
  391. package/dist/node_modules/@radix-ui/react-portal/dist/index.es.js +6 -6
  392. package/dist/node_modules/@radix-ui/react-portal/dist/index.es.js.map +1 -1
  393. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs +1 -1
  394. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -1
  395. package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js +9 -9
  396. package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -1
  397. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -1
  398. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
  399. package/dist/node_modules/@radix-ui/react-slot/dist/index.es.js +17 -17
  400. package/dist/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -1
  401. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs +1 -1
  402. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs.map +1 -1
  403. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.es.js +100 -100
  404. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.es.js.map +1 -1
  405. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +1 -1
  406. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs.map +1 -1
  407. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.es.js +6 -6
  408. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.es.js.map +1 -1
  409. package/dist/node_modules/@uiw/react-codemirror/esm/index.cjs +1 -1
  410. package/dist/node_modules/@uiw/react-codemirror/esm/index.cjs.map +1 -1
  411. package/dist/node_modules/@uiw/react-codemirror/esm/index.es.js +27 -27
  412. package/dist/node_modules/@uiw/react-codemirror/esm/index.es.js.map +1 -1
  413. package/dist/node_modules/lucide-react/dist/esm/icons/{chevron-down.cjs → chevrons-down.cjs} +2 -2
  414. package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-down.cjs.map +1 -0
  415. package/dist/node_modules/lucide-react/dist/esm/icons/{chevron-down.es.js → chevrons-down.es.js} +6 -3
  416. package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-down.es.js.map +1 -0
  417. package/dist/node_modules/rc-input/es/BaseInput.cjs +1 -1
  418. package/dist/node_modules/rc-input/es/BaseInput.es.js +1 -1
  419. package/dist/node_modules/rc-textarea/es/ResizableTextArea.cjs +1 -1
  420. package/dist/node_modules/rc-textarea/es/ResizableTextArea.es.js +1 -1
  421. package/dist/node_modules/rc-textarea/es/TextArea.cjs +1 -1
  422. package/dist/node_modules/rc-textarea/es/TextArea.es.js +1 -1
  423. package/dist/node_modules/rc-textarea/es/index.cjs +1 -1
  424. package/dist/node_modules/rc-textarea/es/index.es.js +1 -1
  425. package/dist/node_modules/react-markdown/lib/index.cjs +1 -1
  426. package/dist/node_modules/react-markdown/lib/index.cjs.map +1 -1
  427. package/dist/node_modules/react-markdown/lib/index.es.js +39 -39
  428. package/dist/node_modules/react-markdown/lib/index.es.js.map +1 -1
  429. package/dist/node_modules/remark-flow/dist/interaction-plugin-core.cjs +1 -1
  430. package/dist/node_modules/remark-flow/dist/interaction-plugin-core.es.js +1 -1
  431. package/dist/renderer.cjs +1 -1
  432. package/dist/renderer.d.ts +18 -17
  433. package/dist/renderer.es.js +20 -17
  434. package/dist/renderer.es.js.map +1 -1
  435. package/dist/scroll.cjs +2 -0
  436. package/dist/scroll.cjs.map +1 -0
  437. package/dist/scroll.d.ts +6 -0
  438. package/dist/scroll.es.js +9 -0
  439. package/dist/scroll.es.js.map +1 -0
  440. package/dist/slide.d.ts +3 -3
  441. package/package.json +13 -2
  442. package/dist/_virtual/jsx-runtime.cjs +0 -2
  443. package/dist/_virtual/jsx-runtime.cjs.map +0 -1
  444. package/dist/_virtual/jsx-runtime.es.js +0 -6
  445. package/dist/_virtual/jsx-runtime.es.js.map +0 -1
  446. package/dist/_virtual/jsx-runtime.es2.js +0 -5
  447. package/dist/_virtual/jsx-runtime.es2.js.map +0 -1
  448. package/dist/_virtual/jsx-runtime2.cjs +0 -2
  449. package/dist/_virtual/jsx-runtime2.cjs.map +0 -1
  450. package/dist/_virtual/react-jsx-runtime.development.cjs +0 -2
  451. package/dist/_virtual/react-jsx-runtime.development.cjs.map +0 -1
  452. package/dist/_virtual/react-jsx-runtime.development.es.js +0 -5
  453. package/dist/_virtual/react-jsx-runtime.development.es.js.map +0 -1
  454. package/dist/_virtual/react-jsx-runtime.production.cjs +0 -2
  455. package/dist/_virtual/react-jsx-runtime.production.cjs.map +0 -1
  456. package/dist/_virtual/react-jsx-runtime.production.es.js +0 -5
  457. package/dist/_virtual/react-jsx-runtime.production.es.js.map +0 -1
  458. package/dist/lib/localeTextMap.cjs +0 -2
  459. package/dist/lib/localeTextMap.cjs.map +0 -1
  460. package/dist/lib/localeTextMap.es.js +0 -5
  461. package/dist/lib/localeTextMap.es.js.map +0 -1
  462. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.cjs.map +0 -1
  463. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.es.js.map +0 -1
  464. package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs +0 -24
  465. package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.map +0 -1
  466. package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js +0 -409
  467. package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js.map +0 -1
  468. package/dist/node_modules/react/cjs/react-jsx-runtime.production.cjs +0 -10
  469. package/dist/node_modules/react/cjs/react-jsx-runtime.production.cjs.map +0 -1
  470. package/dist/node_modules/react/cjs/react-jsx-runtime.production.es.js +0 -36
  471. package/dist/node_modules/react/cjs/react-jsx-runtime.production.es.js.map +0 -1
  472. package/dist/node_modules/react/jsx-runtime.cjs +0 -2
  473. package/dist/node_modules/react/jsx-runtime.cjs.map +0 -1
  474. package/dist/node_modules/react/jsx-runtime.es.js +0 -11
  475. package/dist/node_modules/react/jsx-runtime.es.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"fr-FR.json.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"fr-FR.json.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="พิมพ์ '/' เพื่อแทรกเนื้อหาอย่างรวดเร็ว",o="โปรดป้อนเนื้อหาของคุณ",l="โปรดป้อนเนื้อหาของคุณ แล้วพิมพ์ / เพื่อดูตัวเลือกเพิ่มเติม",t="การตั้งค่า",a="ปิด",i="เพิ่มรูปภาพ",n="เพิ่มวิดีโอ",r="โปรดป้อน URL ของรูปภาพ",s="URL",c="ดูตัวอย่าง",d="โปรดป้อนชื่อรูปภาพ",b="ใช้รูปภาพ",u="ชื่อรูปภาพ",v="อัปโหลด",g="ลากไฟล์มาวางหรือคลิกเพื่ออัปโหลด",m="กำลังอัปโหลด...",h="อัปโหลดเสร็จสมบูรณ์",T="อัปโหลดไม่สำเร็จ โปรดลองอีกครั้ง",U="เพิ่มข้อความคงที่",I="ข้อความคงที่",p="เส้นแบ่ง",P="ชื่อรูปภาพ",L="สัดส่วนการปรับขนาด",B="ยกเลิก",C="โปรดป้อน URL ของรูปภาพ",f="โปรดป้อน URL ของรูปภาพที่ถูกต้อง",x="โปรดป้อน URL วิดีโอจาก Bilibili หรือ YouTube",S="URL",V="ดูตัวอย่าง",R="ใช้ทรัพยากร",E="โปรดป้อนชื่อวิดีโอ",D="ชื่อ",N="ชื่อวิดีโอ",w="วิดีโอ Bilibili",y="วิดีโอ YouTube",O="โปรดป้อน URL วิดีโอจาก Bilibili หรือ YouTube ที่ถูกต้อง",Y="ยกเลิก",k="ใช้วิดีโอ",A="ตัวอย่างจะแสดงที่นี่",F="ตัวอย่างวิดีโอ",M="รูปภาพ",q="วิดีโอ",Q="ตัวแปร",_="ข้อความคงที่",j="เลือกตัวแปร",H="ค้นหาตัวแปร",z="ไม่พบตัวแปร",G="ยังไม่มีตัวแปร",J="ชื่อตัวแปร",K="มีตัวแปรนี้อยู่แล้ว",W="ใช้ได้เฉพาะตัวอักษร ตัวเลข หรือขีดล่าง และห้ามมีช่องว่าง",X="ตัวแปรระบบ",Z="ตัวแปรที่กำหนดเอง",$="เพิ่มตัวแปร",ee="แทรกตัวแปรใหม่",oe="แทรกตัวแปรที่มีอยู่",le="แทรกผลลัพธ์การยืนยัน",te="แทรกลิงก์",ae="แทรกปุ่ม",ie="แทรกตัวเลือกเดียว",ne="ตัวเลือก 1",re="ตัวเลือก 2",se="แทรกตัวเลือกหลายรายการ",ce="แทรกช่องป้อนข้อมูล",de="โปรดป้อนข้อมูล",be="แทรกรูปภาพ",ue="แทรกวิดีโอ",ve={placeholder:e,placeholderCodeEdit:o,placeholderQuickEdit:l,dialogTitle:t,dialogCloseLabel:a,dialogTitleImage:i,dialogTitleVideo:n,imageUrlPlaceholder:r,imageUrlLabel:s,imageRunButton:c,imageTitlePlaceholder:d,imageUseButton:b,imageDefaultTitle:u,imageUploadLabel:v,imageUploadPlaceholder:g,imageUploading:m,imageUploadSuccess:h,imageUploadError:T,fixedTextPlaceholder:U,fixedTextTooltip:I,slashDivider:p,imageTitleLabel:P,imageScaleLabel:L,imageCancelButton:B,imageUrlRequired:C,imageInvalidUrl:f,videoUrlPlaceholder:x,videoUrlLabel:S,videoRunButton:V,videoUseButton:R,videoTitlePlaceholder:E,videoTitleLabel:D,videoDefaultTitle:N,videoDefaultTitleBilibili:w,videoDefaultTitleYoutube:y,videoInvalidUrl:O,videoCancelButton:Y,videoUseVideoButton:k,videoPreviewPlaceholder:A,videoPreviewTitle:F,slashImage:M,slashVideo:q,slashVariable:Q,slashFixedText:_,dialogTitleVariable:j,variableSearchPlaceholder:H,variableNotFound:z,variableEmpty:G,variableNamePlaceholder:J,variableAlreadyExists:K,variableNameInvalid:W,variableSectionSystem:X,variableSectionCustom:Z,variableAddNew:$,toolbarInsertNewVariable:ee,toolbarInsertExistingVariable:oe,toolbarConfirmOutput:le,toolbarInsertLink:te,toolbarInsertButton:ae,toolbarInsertSingleChoice:ie,toolbarChoiceOption1:ne,toolbarChoiceOption2:re,toolbarInsertMultiChoice:se,toolbarInsertInput:ce,toolbarInputPlaceholder:de,toolbarInsertImage:be,toolbarInsertVideo:ue};exports.default=ve;exports.dialogCloseLabel=a;exports.dialogTitle=t;exports.dialogTitleImage=i;exports.dialogTitleVariable=j;exports.dialogTitleVideo=n;exports.fixedTextPlaceholder=U;exports.fixedTextTooltip=I;exports.imageCancelButton=B;exports.imageDefaultTitle=u;exports.imageInvalidUrl=f;exports.imageRunButton=c;exports.imageScaleLabel=L;exports.imageTitleLabel=P;exports.imageTitlePlaceholder=d;exports.imageUploadError=T;exports.imageUploadLabel=v;exports.imageUploadPlaceholder=g;exports.imageUploadSuccess=h;exports.imageUploading=m;exports.imageUrlLabel=s;exports.imageUrlPlaceholder=r;exports.imageUrlRequired=C;exports.imageUseButton=b;exports.placeholder=e;exports.placeholderCodeEdit=o;exports.placeholderQuickEdit=l;exports.slashDivider=p;exports.slashFixedText=_;exports.slashImage=M;exports.slashVariable=Q;exports.slashVideo=q;exports.toolbarChoiceOption1=ne;exports.toolbarChoiceOption2=re;exports.toolbarConfirmOutput=le;exports.toolbarInputPlaceholder=de;exports.toolbarInsertButton=ae;exports.toolbarInsertExistingVariable=oe;exports.toolbarInsertImage=be;exports.toolbarInsertInput=ce;exports.toolbarInsertLink=te;exports.toolbarInsertMultiChoice=se;exports.toolbarInsertNewVariable=ee;exports.toolbarInsertSingleChoice=ie;exports.toolbarInsertVideo=ue;exports.variableAddNew=$;exports.variableAlreadyExists=K;exports.variableEmpty=G;exports.variableNameInvalid=W;exports.variableNamePlaceholder=J;exports.variableNotFound=z;exports.variableSearchPlaceholder=H;exports.variableSectionCustom=Z;exports.variableSectionSystem=X;exports.videoCancelButton=Y;exports.videoDefaultTitle=N;exports.videoDefaultTitleBilibili=w;exports.videoDefaultTitleYoutube=y;exports.videoInvalidUrl=O;exports.videoPreviewPlaceholder=A;exports.videoPreviewTitle=F;exports.videoRunButton=V;exports.videoTitleLabel=D;exports.videoTitlePlaceholder=E;exports.videoUrlLabel=S;exports.videoUrlPlaceholder=x;exports.videoUseButton=R;exports.videoUseVideoButton=k;
2
+ //# sourceMappingURL=th-TH.json.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"th-TH.json.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,72 @@
1
+ declare const _default: {
2
+ "placeholder": "พิมพ์ '/' เพื่อแทรกเนื้อหาอย่างรวดเร็ว",
3
+ "placeholderCodeEdit": "โปรดป้อนเนื้อหาของคุณ",
4
+ "placeholderQuickEdit": "โปรดป้อนเนื้อหาของคุณ แล้วพิมพ์ / เพื่อดูตัวเลือกเพิ่มเติม",
5
+ "dialogTitle": "การตั้งค่า",
6
+ "dialogCloseLabel": "ปิด",
7
+ "dialogTitleImage": "เพิ่มรูปภาพ",
8
+ "dialogTitleVideo": "เพิ่มวิดีโอ",
9
+ "imageUrlPlaceholder": "โปรดป้อน URL ของรูปภาพ",
10
+ "imageUrlLabel": "URL",
11
+ "imageRunButton": "ดูตัวอย่าง",
12
+ "imageTitlePlaceholder": "โปรดป้อนชื่อรูปภาพ",
13
+ "imageUseButton": "ใช้รูปภาพ",
14
+ "imageDefaultTitle": "ชื่อรูปภาพ",
15
+ "imageUploadLabel": "อัปโหลด",
16
+ "imageUploadPlaceholder": "ลากไฟล์มาวางหรือคลิกเพื่ออัปโหลด",
17
+ "imageUploading": "กำลังอัปโหลด...",
18
+ "imageUploadSuccess": "อัปโหลดเสร็จสมบูรณ์",
19
+ "imageUploadError": "อัปโหลดไม่สำเร็จ โปรดลองอีกครั้ง",
20
+ "fixedTextPlaceholder": "เพิ่มข้อความคงที่",
21
+ "fixedTextTooltip": "ข้อความคงที่",
22
+ "slashDivider": "เส้นแบ่ง",
23
+ "imageTitleLabel": "ชื่อรูปภาพ",
24
+ "imageScaleLabel": "สัดส่วนการปรับขนาด",
25
+ "imageCancelButton": "ยกเลิก",
26
+ "imageUrlRequired": "โปรดป้อน URL ของรูปภาพ",
27
+ "imageInvalidUrl": "โปรดป้อน URL ของรูปภาพที่ถูกต้อง",
28
+ "videoUrlPlaceholder": "โปรดป้อน URL วิดีโอจาก Bilibili หรือ YouTube",
29
+ "videoUrlLabel": "URL",
30
+ "videoRunButton": "ดูตัวอย่าง",
31
+ "videoUseButton": "ใช้ทรัพยากร",
32
+ "videoTitlePlaceholder": "โปรดป้อนชื่อวิดีโอ",
33
+ "videoTitleLabel": "ชื่อ",
34
+ "videoDefaultTitle": "ชื่อวิดีโอ",
35
+ "videoDefaultTitleBilibili": "วิดีโอ Bilibili",
36
+ "videoDefaultTitleYoutube": "วิดีโอ YouTube",
37
+ "videoInvalidUrl": "โปรดป้อน URL วิดีโอจาก Bilibili หรือ YouTube ที่ถูกต้อง",
38
+ "videoCancelButton": "ยกเลิก",
39
+ "videoUseVideoButton": "ใช้วิดีโอ",
40
+ "videoPreviewPlaceholder": "ตัวอย่างจะแสดงที่นี่",
41
+ "videoPreviewTitle": "ตัวอย่างวิดีโอ",
42
+ "slashImage": "รูปภาพ",
43
+ "slashVideo": "วิดีโอ",
44
+ "slashVariable": "ตัวแปร",
45
+ "slashFixedText": "ข้อความคงที่",
46
+ "dialogTitleVariable": "เลือกตัวแปร",
47
+ "variableSearchPlaceholder": "ค้นหาตัวแปร",
48
+ "variableNotFound": "ไม่พบตัวแปร",
49
+ "variableEmpty": "ยังไม่มีตัวแปร",
50
+ "variableNamePlaceholder": "ชื่อตัวแปร",
51
+ "variableAlreadyExists": "มีตัวแปรนี้อยู่แล้ว",
52
+ "variableNameInvalid": "ใช้ได้เฉพาะตัวอักษร ตัวเลข หรือขีดล่าง และห้ามมีช่องว่าง",
53
+ "variableSectionSystem": "ตัวแปรระบบ",
54
+ "variableSectionCustom": "ตัวแปรที่กำหนดเอง",
55
+ "variableAddNew": "เพิ่มตัวแปร",
56
+ "toolbarInsertNewVariable": "แทรกตัวแปรใหม่",
57
+ "toolbarInsertExistingVariable": "แทรกตัวแปรที่มีอยู่",
58
+ "toolbarConfirmOutput": "แทรกผลลัพธ์การยืนยัน",
59
+ "toolbarInsertLink": "แทรกลิงก์",
60
+ "toolbarInsertButton": "แทรกปุ่ม",
61
+ "toolbarInsertSingleChoice": "แทรกตัวเลือกเดียว",
62
+ "toolbarChoiceOption1": "ตัวเลือก 1",
63
+ "toolbarChoiceOption2": "ตัวเลือก 2",
64
+ "toolbarInsertMultiChoice": "แทรกตัวเลือกหลายรายการ",
65
+ "toolbarInsertInput": "แทรกช่องป้อนข้อมูล",
66
+ "toolbarInputPlaceholder": "โปรดป้อนข้อมูล",
67
+ "toolbarInsertImage": "แทรกรูปภาพ",
68
+ "toolbarInsertVideo": "แทรกวิดีโอ"
69
+ }
70
+ ;
71
+
72
+ export default _default;
@@ -0,0 +1,140 @@
1
+ const o = "พิมพ์ '/' เพื่อแทรกเนื้อหาอย่างรวดเร็ว", e = "โปรดป้อนเนื้อหาของคุณ", t = "โปรดป้อนเนื้อหาของคุณ แล้วพิมพ์ / เพื่อดูตัวเลือกเพิ่มเติม", l = "การตั้งค่า", bo = "ปิด", i = "เพิ่มรูปภาพ", a = "เพิ่มวิดีโอ", n = "โปรดป้อน URL ของรูปภาพ", uo = "URL", s = "ดูตัวอย่าง", c = "โปรดป้อนชื่อรูปภาพ", r = "ใช้รูปภาพ", d = "ชื่อรูปภาพ", b = "อัปโหลด", u = "ลากไฟล์มาวางหรือคลิกเพื่ออัปโหลด", v = "กำลังอัปโหลด...", g = "อัปโหลดเสร็จสมบูรณ์", m = "อัปโหลดไม่สำเร็จ โปรดลองอีกครั้ง", h = "เพิ่มข้อความคงที่", U = "ข้อความคงที่", T = "เส้นแบ่ง", L = "ชื่อรูปภาพ", I = "สัดส่วนการปรับขนาด", p = "ยกเลิก", B = "โปรดป้อน URL ของรูปภาพ", P = "โปรดป้อน URL ของรูปภาพที่ถูกต้อง", C = "โปรดป้อน URL วิดีโอจาก Bilibili หรือ YouTube", vo = "URL", R = "ดูตัวอย่าง", x = "ใช้ทรัพยากร", f = "โปรดป้อนชื่อวิดีโอ", V = "ชื่อ", S = "ชื่อวิดีโอ", E = "วิดีโอ Bilibili", D = "วิดีโอ YouTube", N = "โปรดป้อน URL วิดีโอจาก Bilibili หรือ YouTube ที่ถูกต้อง", w = "ยกเลิก", Y = "ใช้วิดีโอ", y = "ตัวอย่างจะแสดงที่นี่", O = "ตัวอย่างวิดีโอ", k = "รูปภาพ", A = "วิดีโอ", F = "ตัวแปร", q = "ข้อความคงที่", H = "เลือกตัวแปร", M = "ค้นหาตัวแปร", Q = "ไม่พบตัวแปร", j = "ยังไม่มีตัวแปร", z = "ชื่อตัวแปร", G = "มีตัวแปรนี้อยู่แล้ว", J = "ใช้ได้เฉพาะตัวอักษร ตัวเลข หรือขีดล่าง และห้ามมีช่องว่าง", K = "ตัวแปรระบบ", W = "ตัวแปรที่กำหนดเอง", X = "เพิ่มตัวแปร", Z = "แทรกตัวแปรใหม่", _ = "แทรกตัวแปรที่มีอยู่", $ = "แทรกผลลัพธ์การยืนยัน", oo = "แทรกลิงก์", eo = "แทรกปุ่ม", to = "แทรกตัวเลือกเดียว", lo = "ตัวเลือก 1", io = "ตัวเลือก 2", ao = "แทรกตัวเลือกหลายรายการ", no = "แทรกช่องป้อนข้อมูล", so = "โปรดป้อนข้อมูล", co = "แทรกรูปภาพ", ro = "แทรกวิดีโอ", go = {
2
+ placeholder: o,
3
+ placeholderCodeEdit: e,
4
+ placeholderQuickEdit: t,
5
+ dialogTitle: l,
6
+ dialogCloseLabel: "ปิด",
7
+ dialogTitleImage: i,
8
+ dialogTitleVideo: a,
9
+ imageUrlPlaceholder: n,
10
+ imageUrlLabel: "URL",
11
+ imageRunButton: s,
12
+ imageTitlePlaceholder: c,
13
+ imageUseButton: r,
14
+ imageDefaultTitle: d,
15
+ imageUploadLabel: b,
16
+ imageUploadPlaceholder: u,
17
+ imageUploading: v,
18
+ imageUploadSuccess: g,
19
+ imageUploadError: m,
20
+ fixedTextPlaceholder: h,
21
+ fixedTextTooltip: U,
22
+ slashDivider: T,
23
+ imageTitleLabel: L,
24
+ imageScaleLabel: I,
25
+ imageCancelButton: p,
26
+ imageUrlRequired: B,
27
+ imageInvalidUrl: P,
28
+ videoUrlPlaceholder: C,
29
+ videoUrlLabel: "URL",
30
+ videoRunButton: R,
31
+ videoUseButton: x,
32
+ videoTitlePlaceholder: f,
33
+ videoTitleLabel: V,
34
+ videoDefaultTitle: S,
35
+ videoDefaultTitleBilibili: E,
36
+ videoDefaultTitleYoutube: D,
37
+ videoInvalidUrl: N,
38
+ videoCancelButton: w,
39
+ videoUseVideoButton: Y,
40
+ videoPreviewPlaceholder: y,
41
+ videoPreviewTitle: O,
42
+ slashImage: k,
43
+ slashVideo: A,
44
+ slashVariable: F,
45
+ slashFixedText: q,
46
+ dialogTitleVariable: H,
47
+ variableSearchPlaceholder: M,
48
+ variableNotFound: Q,
49
+ variableEmpty: j,
50
+ variableNamePlaceholder: z,
51
+ variableAlreadyExists: G,
52
+ variableNameInvalid: J,
53
+ variableSectionSystem: K,
54
+ variableSectionCustom: W,
55
+ variableAddNew: X,
56
+ toolbarInsertNewVariable: Z,
57
+ toolbarInsertExistingVariable: _,
58
+ toolbarConfirmOutput: $,
59
+ toolbarInsertLink: oo,
60
+ toolbarInsertButton: eo,
61
+ toolbarInsertSingleChoice: to,
62
+ toolbarChoiceOption1: lo,
63
+ toolbarChoiceOption2: io,
64
+ toolbarInsertMultiChoice: ao,
65
+ toolbarInsertInput: no,
66
+ toolbarInputPlaceholder: so,
67
+ toolbarInsertImage: co,
68
+ toolbarInsertVideo: ro
69
+ };
70
+ export {
71
+ go as default,
72
+ bo as dialogCloseLabel,
73
+ l as dialogTitle,
74
+ i as dialogTitleImage,
75
+ H as dialogTitleVariable,
76
+ a as dialogTitleVideo,
77
+ h as fixedTextPlaceholder,
78
+ U as fixedTextTooltip,
79
+ p as imageCancelButton,
80
+ d as imageDefaultTitle,
81
+ P as imageInvalidUrl,
82
+ s as imageRunButton,
83
+ I as imageScaleLabel,
84
+ L as imageTitleLabel,
85
+ c as imageTitlePlaceholder,
86
+ m as imageUploadError,
87
+ b as imageUploadLabel,
88
+ u as imageUploadPlaceholder,
89
+ g as imageUploadSuccess,
90
+ v as imageUploading,
91
+ uo as imageUrlLabel,
92
+ n as imageUrlPlaceholder,
93
+ B as imageUrlRequired,
94
+ r as imageUseButton,
95
+ o as placeholder,
96
+ e as placeholderCodeEdit,
97
+ t as placeholderQuickEdit,
98
+ T as slashDivider,
99
+ q as slashFixedText,
100
+ k as slashImage,
101
+ F as slashVariable,
102
+ A as slashVideo,
103
+ lo as toolbarChoiceOption1,
104
+ io as toolbarChoiceOption2,
105
+ $ as toolbarConfirmOutput,
106
+ so as toolbarInputPlaceholder,
107
+ eo as toolbarInsertButton,
108
+ _ as toolbarInsertExistingVariable,
109
+ co as toolbarInsertImage,
110
+ no as toolbarInsertInput,
111
+ oo as toolbarInsertLink,
112
+ ao as toolbarInsertMultiChoice,
113
+ Z as toolbarInsertNewVariable,
114
+ to as toolbarInsertSingleChoice,
115
+ ro as toolbarInsertVideo,
116
+ X as variableAddNew,
117
+ G as variableAlreadyExists,
118
+ j as variableEmpty,
119
+ J as variableNameInvalid,
120
+ z as variableNamePlaceholder,
121
+ Q as variableNotFound,
122
+ M as variableSearchPlaceholder,
123
+ W as variableSectionCustom,
124
+ K as variableSectionSystem,
125
+ w as videoCancelButton,
126
+ S as videoDefaultTitle,
127
+ E as videoDefaultTitleBilibili,
128
+ D as videoDefaultTitleYoutube,
129
+ N as videoInvalidUrl,
130
+ y as videoPreviewPlaceholder,
131
+ O as videoPreviewTitle,
132
+ R as videoRunButton,
133
+ V as videoTitleLabel,
134
+ f as videoTitlePlaceholder,
135
+ vo as videoUrlLabel,
136
+ C as videoUrlPlaceholder,
137
+ x as videoUseButton,
138
+ Y as videoUseVideoButton
139
+ };
140
+ //# sourceMappingURL=th-TH.json.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"th-TH.json.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="输入'/'快速插入内容",o="请输入你的内容",t="请输入你的内容,输入 / 唤起更多",l="设置",a="添加图片",i="添加视频",n="请输入图片地址",r="URL",s="预览",c="请输入图片标题",d="使用图片",b="图片名称",u="上传",v="拖拽文件或点击上传",g="正在上传...",m="上传完成",h="上传失败,请重试",T="添加固定文本",I="固定文本",U="分割线",p="图片标题",P="缩放比例",B="取消",C="请输入图片地址",f="请输入有效的图片地址",x="请输入 B 站或 YouTube 视频链接",L="URL",S="预览",V="使用资源",E="请输入视频标题",N="标题",D="视频标题",R="哔哩哔哩视频",y="YouTube 视频",O="请输入有效的 B 站或 YouTube 视频链接",w="取消",Y="使用视频",k="预览将在这里显示",A="图片",F="视频",M="变量",q="固定文本",Q="选择变量",_="搜索变量",j="未找到变量",z="暂无变量",G="变量名称",H="变量已存在",J="仅可包含字母、数字或下划线,且不能有空格",K="系统变量",W="自定义变量",X="添加变量",Z="插入新变量",$="插入已有变量",ee="插入确定内容",oe="插入链接",te="插入按钮",le="插入单选",ae="选项1",ie="选项2",ne="插入多选",re="插入输入框",se="请输入",ce="插入图片",de="插入视频",be={placeholder:e,placeholderCodeEdit:o,placeholderQuickEdit:t,dialogTitle:l,dialogTitleImage:a,dialogTitleVideo:i,imageUrlPlaceholder:n,imageUrlLabel:r,imageRunButton:s,imageTitlePlaceholder:c,imageUseButton:d,imageDefaultTitle:b,imageUploadLabel:u,imageUploadPlaceholder:v,imageUploading:g,imageUploadSuccess:m,imageUploadError:h,fixedTextPlaceholder:T,fixedTextTooltip:I,slashDivider:U,imageTitleLabel:p,imageScaleLabel:P,imageCancelButton:B,imageUrlRequired:C,imageInvalidUrl:f,videoUrlPlaceholder:x,videoUrlLabel:L,videoRunButton:S,videoUseButton:V,videoTitlePlaceholder:E,videoTitleLabel:N,videoDefaultTitle:D,videoDefaultTitleBilibili:R,videoDefaultTitleYoutube:y,videoInvalidUrl:O,videoCancelButton:w,videoUseVideoButton:Y,videoPreviewPlaceholder:k,slashImage:A,slashVideo:F,slashVariable:M,slashFixedText:q,dialogTitleVariable:Q,variableSearchPlaceholder:_,variableNotFound:j,variableEmpty:z,variableNamePlaceholder:G,variableAlreadyExists:H,variableNameInvalid:J,variableSectionSystem:K,variableSectionCustom:W,variableAddNew:X,toolbarInsertNewVariable:Z,toolbarInsertExistingVariable:$,toolbarConfirmOutput:ee,toolbarInsertLink:oe,toolbarInsertButton:te,toolbarInsertSingleChoice:le,toolbarChoiceOption1:ae,toolbarChoiceOption2:ie,toolbarInsertMultiChoice:ne,toolbarInsertInput:re,toolbarInputPlaceholder:se,toolbarInsertImage:ce,toolbarInsertVideo:de};exports.default=be;exports.dialogTitle=l;exports.dialogTitleImage=a;exports.dialogTitleVariable=Q;exports.dialogTitleVideo=i;exports.fixedTextPlaceholder=T;exports.fixedTextTooltip=I;exports.imageCancelButton=B;exports.imageDefaultTitle=b;exports.imageInvalidUrl=f;exports.imageRunButton=s;exports.imageScaleLabel=P;exports.imageTitleLabel=p;exports.imageTitlePlaceholder=c;exports.imageUploadError=h;exports.imageUploadLabel=u;exports.imageUploadPlaceholder=v;exports.imageUploadSuccess=m;exports.imageUploading=g;exports.imageUrlLabel=r;exports.imageUrlPlaceholder=n;exports.imageUrlRequired=C;exports.imageUseButton=d;exports.placeholder=e;exports.placeholderCodeEdit=o;exports.placeholderQuickEdit=t;exports.slashDivider=U;exports.slashFixedText=q;exports.slashImage=A;exports.slashVariable=M;exports.slashVideo=F;exports.toolbarChoiceOption1=ae;exports.toolbarChoiceOption2=ie;exports.toolbarConfirmOutput=ee;exports.toolbarInputPlaceholder=se;exports.toolbarInsertButton=te;exports.toolbarInsertExistingVariable=$;exports.toolbarInsertImage=ce;exports.toolbarInsertInput=re;exports.toolbarInsertLink=oe;exports.toolbarInsertMultiChoice=ne;exports.toolbarInsertNewVariable=Z;exports.toolbarInsertSingleChoice=le;exports.toolbarInsertVideo=de;exports.variableAddNew=X;exports.variableAlreadyExists=H;exports.variableEmpty=z;exports.variableNameInvalid=J;exports.variableNamePlaceholder=G;exports.variableNotFound=j;exports.variableSearchPlaceholder=_;exports.variableSectionCustom=W;exports.variableSectionSystem=K;exports.videoCancelButton=w;exports.videoDefaultTitle=D;exports.videoDefaultTitleBilibili=R;exports.videoDefaultTitleYoutube=y;exports.videoInvalidUrl=O;exports.videoPreviewPlaceholder=k;exports.videoRunButton=S;exports.videoTitleLabel=N;exports.videoTitlePlaceholder=E;exports.videoUrlLabel=L;exports.videoUrlPlaceholder=x;exports.videoUseButton=V;exports.videoUseVideoButton=Y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="输入'/'快速插入内容",o="请输入你的内容",t="请输入你的内容,输入 / 唤起更多",l="设置",a="关闭",i="添加图片",n="添加视频",r="请输入图片地址",s="URL",c="预览",d="请输入图片标题",b="使用图片",u="图片名称",v="上传",g="拖拽文件或点击上传",m="正在上传...",h="上传完成",T="上传失败,请重试",I="添加固定文本",U="固定文本",p="分割线",P="图片标题",C="缩放比例",B="取消",L="请输入图片地址",f="请输入有效的图片地址",x="请输入 B 站或 YouTube 视频链接",S="URL",V="预览",E="使用资源",N="请输入视频标题",D="标题",w="视频标题",R="哔哩哔哩视频",y="YouTube 视频",O="请输入有效的 B 站或 YouTube 视频链接",Y="取消",k="使用视频",A="预览将在这里显示",F="视频预览",M="图片",q="视频",Q="变量",_="固定文本",j="选择变量",z="搜索变量",G="未找到变量",H="暂无变量",J="变量名称",K="变量已存在",W="仅可包含字母、数字或下划线,且不能有空格",X="系统变量",Z="自定义变量",$="添加变量",ee="插入新变量",oe="插入已有变量",te="插入确定内容",le="插入链接",ae="插入按钮",ie="插入单选",ne="选项1",re="选项2",se="插入多选",ce="插入输入框",de="请输入",be="插入图片",ue="插入视频",ve={placeholder:e,placeholderCodeEdit:o,placeholderQuickEdit:t,dialogTitle:l,dialogCloseLabel:a,dialogTitleImage:i,dialogTitleVideo:n,imageUrlPlaceholder:r,imageUrlLabel:s,imageRunButton:c,imageTitlePlaceholder:d,imageUseButton:b,imageDefaultTitle:u,imageUploadLabel:v,imageUploadPlaceholder:g,imageUploading:m,imageUploadSuccess:h,imageUploadError:T,fixedTextPlaceholder:I,fixedTextTooltip:U,slashDivider:p,imageTitleLabel:P,imageScaleLabel:C,imageCancelButton:B,imageUrlRequired:L,imageInvalidUrl:f,videoUrlPlaceholder:x,videoUrlLabel:S,videoRunButton:V,videoUseButton:E,videoTitlePlaceholder:N,videoTitleLabel:D,videoDefaultTitle:w,videoDefaultTitleBilibili:R,videoDefaultTitleYoutube:y,videoInvalidUrl:O,videoCancelButton:Y,videoUseVideoButton:k,videoPreviewPlaceholder:A,videoPreviewTitle:F,slashImage:M,slashVideo:q,slashVariable:Q,slashFixedText:_,dialogTitleVariable:j,variableSearchPlaceholder:z,variableNotFound:G,variableEmpty:H,variableNamePlaceholder:J,variableAlreadyExists:K,variableNameInvalid:W,variableSectionSystem:X,variableSectionCustom:Z,variableAddNew:$,toolbarInsertNewVariable:ee,toolbarInsertExistingVariable:oe,toolbarConfirmOutput:te,toolbarInsertLink:le,toolbarInsertButton:ae,toolbarInsertSingleChoice:ie,toolbarChoiceOption1:ne,toolbarChoiceOption2:re,toolbarInsertMultiChoice:se,toolbarInsertInput:ce,toolbarInputPlaceholder:de,toolbarInsertImage:be,toolbarInsertVideo:ue};exports.default=ve;exports.dialogCloseLabel=a;exports.dialogTitle=l;exports.dialogTitleImage=i;exports.dialogTitleVariable=j;exports.dialogTitleVideo=n;exports.fixedTextPlaceholder=I;exports.fixedTextTooltip=U;exports.imageCancelButton=B;exports.imageDefaultTitle=u;exports.imageInvalidUrl=f;exports.imageRunButton=c;exports.imageScaleLabel=C;exports.imageTitleLabel=P;exports.imageTitlePlaceholder=d;exports.imageUploadError=T;exports.imageUploadLabel=v;exports.imageUploadPlaceholder=g;exports.imageUploadSuccess=h;exports.imageUploading=m;exports.imageUrlLabel=s;exports.imageUrlPlaceholder=r;exports.imageUrlRequired=L;exports.imageUseButton=b;exports.placeholder=e;exports.placeholderCodeEdit=o;exports.placeholderQuickEdit=t;exports.slashDivider=p;exports.slashFixedText=_;exports.slashImage=M;exports.slashVariable=Q;exports.slashVideo=q;exports.toolbarChoiceOption1=ne;exports.toolbarChoiceOption2=re;exports.toolbarConfirmOutput=te;exports.toolbarInputPlaceholder=de;exports.toolbarInsertButton=ae;exports.toolbarInsertExistingVariable=oe;exports.toolbarInsertImage=be;exports.toolbarInsertInput=ce;exports.toolbarInsertLink=le;exports.toolbarInsertMultiChoice=se;exports.toolbarInsertNewVariable=ee;exports.toolbarInsertSingleChoice=ie;exports.toolbarInsertVideo=ue;exports.variableAddNew=$;exports.variableAlreadyExists=K;exports.variableEmpty=H;exports.variableNameInvalid=W;exports.variableNamePlaceholder=J;exports.variableNotFound=G;exports.variableSearchPlaceholder=z;exports.variableSectionCustom=Z;exports.variableSectionSystem=X;exports.videoCancelButton=Y;exports.videoDefaultTitle=w;exports.videoDefaultTitleBilibili=R;exports.videoDefaultTitleYoutube=y;exports.videoInvalidUrl=O;exports.videoPreviewPlaceholder=A;exports.videoPreviewTitle=F;exports.videoRunButton=V;exports.videoTitleLabel=D;exports.videoTitlePlaceholder=N;exports.videoUrlLabel=S;exports.videoUrlPlaceholder=x;exports.videoUseButton=E;exports.videoUseVideoButton=k;
2
2
  //# sourceMappingURL=zh-CN.json.cjs.map
@@ -3,6 +3,7 @@ declare const _default: {
3
3
  "placeholderCodeEdit": "请输入你的内容",
4
4
  "placeholderQuickEdit": "请输入你的内容,输入 / 唤起更多",
5
5
  "dialogTitle": "设置",
6
+ "dialogCloseLabel": "关闭",
6
7
  "dialogTitleImage": "添加图片",
7
8
  "dialogTitleVideo": "添加视频",
8
9
  "imageUrlPlaceholder": "请输入图片地址",
@@ -37,6 +38,7 @@ declare const _default: {
37
38
  "videoCancelButton": "取消",
38
39
  "videoUseVideoButton": "使用视频",
39
40
  "videoPreviewPlaceholder": "预览将在这里显示",
41
+ "videoPreviewTitle": "视频预览",
40
42
  "slashImage": "图片",
41
43
  "slashVideo": "视频",
42
44
  "slashVariable": "变量",
@@ -1,10 +1,11 @@
1
- const o = "输入'/'快速插入内容", e = "请输入你的内容", t = "请输入你的内容,输入 / 唤起更多", W = "设置", a = "添加图片", l = "添加视频", i = "请输入图片地址", X = "URL", Z = "预览", n = "请输入图片标题", s = "使用图片", c = "图片名称", _ = "上传", r = "拖拽文件或点击上传", d = "正在上传...", b = "上传完成", u = "上传失败,请重试", g = "添加固定文本", v = "固定文本", $ = "分割线", h = "图片标题", m = "缩放比例", oo = "取消", T = "请输入图片地址", p = "请输入有效的图片地址", U = "请输入 B 站或 YouTube 视频链接", eo = "URL", to = "预览", I = "使用资源", B = "请输入视频标题", ao = "标题", C = "视频标题", L = "哔哩哔哩视频", P = "YouTube 视频", V = "请输入有效的 B 站或 YouTube 视频链接", lo = "取消", x = "使用视频", f = "预览将在这里显示", io = "图片", no = "视频", so = "变量", R = "固定文本", S = "选择变量", D = "搜索变量", E = "未找到变量", N = "暂无变量", O = "变量名称", Y = "变量已存在", w = "仅可包含字母、数字或下划线,且不能有空格", y = "系统变量", k = "自定义变量", A = "添加变量", F = "插入新变量", q = "插入已有变量", z = "插入确定内容", M = "插入链接", Q = "插入按钮", j = "插入单选", co = "选项1", ro = "选项2", G = "插入多选", H = "插入输入框", bo = "请输入", J = "插入图片", K = "插入视频", uo = {
1
+ const o = "输入'/'快速插入内容", e = "请输入你的内容", t = "请输入你的内容,输入 / 唤起更多", X = "设置", Z = "关闭", l = "添加图片", a = "添加视频", i = "请输入图片地址", _ = "URL", $ = "预览", n = "请输入图片标题", s = "使用图片", c = "图片名称", oo = "上传", r = "拖拽文件或点击上传", d = "正在上传...", b = "上传完成", u = "上传失败,请重试", g = "添加固定文本", v = "固定文本", eo = "分割线", h = "图片标题", m = "缩放比例", to = "取消", T = "请输入图片地址", p = "请输入有效的图片地址", U = "请输入 B 站或 YouTube 视频链接", lo = "URL", ao = "预览", I = "使用资源", C = "请输入视频标题", io = "标题", B = "视频标题", L = "哔哩哔哩视频", P = "YouTube 视频", V = "请输入有效的 B 站或 YouTube 视频链接", no = "取消", x = "使用视频", f = "预览将在这里显示", R = "视频预览", so = "图片", co = "视频", ro = "变量", S = "固定文本", D = "选择变量", E = "搜索变量", N = "未找到变量", O = "暂无变量", w = "变量名称", Y = "变量已存在", y = "仅可包含字母、数字或下划线,且不能有空格", k = "系统变量", A = "自定义变量", F = "添加变量", q = "插入新变量", z = "插入已有变量", M = "插入确定内容", Q = "插入链接", j = "插入按钮", G = "插入单选", bo = "选项1", uo = "选项2", H = "插入多选", J = "插入输入框", go = "请输入", K = "插入图片", W = "插入视频", vo = {
2
2
  placeholder: o,
3
3
  placeholderCodeEdit: e,
4
4
  placeholderQuickEdit: t,
5
5
  dialogTitle: "设置",
6
- dialogTitleImage: a,
7
- dialogTitleVideo: l,
6
+ dialogCloseLabel: "关闭",
7
+ dialogTitleImage: l,
8
+ dialogTitleVideo: a,
8
9
  imageUrlPlaceholder: i,
9
10
  imageUrlLabel: "URL",
10
11
  imageRunButton: "预览",
@@ -28,107 +29,110 @@ const o = "输入'/'快速插入内容", e = "请输入你的内容", t = "请
28
29
  videoUrlLabel: "URL",
29
30
  videoRunButton: "预览",
30
31
  videoUseButton: I,
31
- videoTitlePlaceholder: B,
32
+ videoTitlePlaceholder: C,
32
33
  videoTitleLabel: "标题",
33
- videoDefaultTitle: C,
34
+ videoDefaultTitle: B,
34
35
  videoDefaultTitleBilibili: L,
35
36
  videoDefaultTitleYoutube: P,
36
37
  videoInvalidUrl: V,
37
38
  videoCancelButton: "取消",
38
39
  videoUseVideoButton: x,
39
40
  videoPreviewPlaceholder: f,
41
+ videoPreviewTitle: R,
40
42
  slashImage: "图片",
41
43
  slashVideo: "视频",
42
44
  slashVariable: "变量",
43
- slashFixedText: R,
44
- dialogTitleVariable: S,
45
- variableSearchPlaceholder: D,
46
- variableNotFound: E,
47
- variableEmpty: N,
48
- variableNamePlaceholder: O,
45
+ slashFixedText: S,
46
+ dialogTitleVariable: D,
47
+ variableSearchPlaceholder: E,
48
+ variableNotFound: N,
49
+ variableEmpty: O,
50
+ variableNamePlaceholder: w,
49
51
  variableAlreadyExists: Y,
50
- variableNameInvalid: w,
51
- variableSectionSystem: y,
52
- variableSectionCustom: k,
53
- variableAddNew: A,
54
- toolbarInsertNewVariable: F,
55
- toolbarInsertExistingVariable: q,
56
- toolbarConfirmOutput: z,
57
- toolbarInsertLink: M,
58
- toolbarInsertButton: Q,
59
- toolbarInsertSingleChoice: j,
52
+ variableNameInvalid: y,
53
+ variableSectionSystem: k,
54
+ variableSectionCustom: A,
55
+ variableAddNew: F,
56
+ toolbarInsertNewVariable: q,
57
+ toolbarInsertExistingVariable: z,
58
+ toolbarConfirmOutput: M,
59
+ toolbarInsertLink: Q,
60
+ toolbarInsertButton: j,
61
+ toolbarInsertSingleChoice: G,
60
62
  toolbarChoiceOption1: "选项1",
61
63
  toolbarChoiceOption2: "选项2",
62
- toolbarInsertMultiChoice: G,
63
- toolbarInsertInput: H,
64
+ toolbarInsertMultiChoice: H,
65
+ toolbarInsertInput: J,
64
66
  toolbarInputPlaceholder: "请输入",
65
- toolbarInsertImage: J,
66
- toolbarInsertVideo: K
67
+ toolbarInsertImage: K,
68
+ toolbarInsertVideo: W
67
69
  };
68
70
  export {
69
- uo as default,
70
- W as dialogTitle,
71
- a as dialogTitleImage,
72
- S as dialogTitleVariable,
73
- l as dialogTitleVideo,
71
+ vo as default,
72
+ Z as dialogCloseLabel,
73
+ X as dialogTitle,
74
+ l as dialogTitleImage,
75
+ D as dialogTitleVariable,
76
+ a as dialogTitleVideo,
74
77
  g as fixedTextPlaceholder,
75
78
  v as fixedTextTooltip,
76
- oo as imageCancelButton,
79
+ to as imageCancelButton,
77
80
  c as imageDefaultTitle,
78
81
  p as imageInvalidUrl,
79
- Z as imageRunButton,
82
+ $ as imageRunButton,
80
83
  m as imageScaleLabel,
81
84
  h as imageTitleLabel,
82
85
  n as imageTitlePlaceholder,
83
86
  u as imageUploadError,
84
- _ as imageUploadLabel,
87
+ oo as imageUploadLabel,
85
88
  r as imageUploadPlaceholder,
86
89
  b as imageUploadSuccess,
87
90
  d as imageUploading,
88
- X as imageUrlLabel,
91
+ _ as imageUrlLabel,
89
92
  i as imageUrlPlaceholder,
90
93
  T as imageUrlRequired,
91
94
  s as imageUseButton,
92
95
  o as placeholder,
93
96
  e as placeholderCodeEdit,
94
97
  t as placeholderQuickEdit,
95
- $ as slashDivider,
96
- R as slashFixedText,
97
- io as slashImage,
98
- so as slashVariable,
99
- no as slashVideo,
100
- co as toolbarChoiceOption1,
101
- ro as toolbarChoiceOption2,
102
- z as toolbarConfirmOutput,
103
- bo as toolbarInputPlaceholder,
104
- Q as toolbarInsertButton,
105
- q as toolbarInsertExistingVariable,
106
- J as toolbarInsertImage,
107
- H as toolbarInsertInput,
108
- M as toolbarInsertLink,
109
- G as toolbarInsertMultiChoice,
110
- F as toolbarInsertNewVariable,
111
- j as toolbarInsertSingleChoice,
112
- K as toolbarInsertVideo,
113
- A as variableAddNew,
98
+ eo as slashDivider,
99
+ S as slashFixedText,
100
+ so as slashImage,
101
+ ro as slashVariable,
102
+ co as slashVideo,
103
+ bo as toolbarChoiceOption1,
104
+ uo as toolbarChoiceOption2,
105
+ M as toolbarConfirmOutput,
106
+ go as toolbarInputPlaceholder,
107
+ j as toolbarInsertButton,
108
+ z as toolbarInsertExistingVariable,
109
+ K as toolbarInsertImage,
110
+ J as toolbarInsertInput,
111
+ Q as toolbarInsertLink,
112
+ H as toolbarInsertMultiChoice,
113
+ q as toolbarInsertNewVariable,
114
+ G as toolbarInsertSingleChoice,
115
+ W as toolbarInsertVideo,
116
+ F as variableAddNew,
114
117
  Y as variableAlreadyExists,
115
- N as variableEmpty,
116
- w as variableNameInvalid,
117
- O as variableNamePlaceholder,
118
- E as variableNotFound,
119
- D as variableSearchPlaceholder,
120
- k as variableSectionCustom,
121
- y as variableSectionSystem,
122
- lo as videoCancelButton,
123
- C as videoDefaultTitle,
118
+ O as variableEmpty,
119
+ y as variableNameInvalid,
120
+ w as variableNamePlaceholder,
121
+ N as variableNotFound,
122
+ E as variableSearchPlaceholder,
123
+ A as variableSectionCustom,
124
+ k as variableSectionSystem,
125
+ no as videoCancelButton,
126
+ B as videoDefaultTitle,
124
127
  L as videoDefaultTitleBilibili,
125
128
  P as videoDefaultTitleYoutube,
126
129
  V as videoInvalidUrl,
127
130
  f as videoPreviewPlaceholder,
128
- to as videoRunButton,
129
- ao as videoTitleLabel,
130
- B as videoTitlePlaceholder,
131
- eo as videoUrlLabel,
131
+ R as videoPreviewTitle,
132
+ ao as videoRunButton,
133
+ io as videoTitleLabel,
134
+ C as videoTitlePlaceholder,
135
+ lo as videoUrlLabel,
132
136
  U as videoUrlPlaceholder,
133
137
  I as videoUseButton,
134
138
  x as videoUseVideoButton
@@ -1 +1 @@
1
- {"version":3,"file":"zh-CN.json.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"zh-CN.json.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../../../node_modules/@codemirror/view/dist/index.cjs"),h=require("../types.cjs"),x=require("../utils.cjs"),f=require("./PlaceholderWidget.cjs"),w=/!\[([^\]]*)\]\(([^)]+)\)|<img\b[^>]*>/i,M=/===\s*(?:!\[[^\]]*\]\([^)]+\)|<img\b[^>]*>)\s*===|!\[[^\]]*\]\([^)]+\)|<img\b[^>]*>/gi,i=(e,r)=>{const t=new RegExp(`${r}\\s*=\\s*("(.*?)"|'(.*?)'|([^\\s"'<>]+))`,"i"),c=e.match(t);if(c)return c[2]??c[3]??c[4]},b=e=>Math.max(1,Math.min(1e3,Math.round(e))),P=e=>{const r=e?.[0]??"",t=x.unwrapFixedOutput(r),c=/^\s*===/.test(r);if(/^<img\b/i.test(t)){const p=i(t,"src")??"",n=i(t,"alt")??i(t,"title")??"",l=i(t,"width");let u;if(l){const d=Number.parseFloat(l);Number.isFinite(d)&&(u=b(d))}return{text:n||"Image",url:p,title:n,scalePercent:u,fixedOutput:c}}const a=t.match(w),s=a?.[1]??"",m=a?.[2]??"";return{text:s,url:m,title:s,scalePercent:void 0,fixedOutput:c}},g=new o.MatchDecorator({regexp:M,decoration:(e,r)=>{const t=P(e);return o.Decoration.replace({widget:new f.default(t.text,{tag:"image",url:t.url,title:t.title,scalePercent:t.scalePercent,fixedOutput:t.fixedOutput},"tag-image",h.SelectedOption.Image,r)})}}),I=o.ViewPlugin.fromClass(class{constructor(e){this.placeholders=g.createDeco(e)}update(e){this.placeholders=g.updateDeco(e,this.placeholders)}},{decorations:e=>e.placeholders,provide:e=>o.EditorView.atomicRanges.of(r=>r.plugin(e)?.placeholders||o.Decoration.none)});exports.default=I;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("../../../node_modules/@codemirror/view/dist/index.cjs"),f=require("../types.cjs"),x=require("../utils.cjs"),b=require("./PlaceholderWidget.cjs"),s=require("./mediaPlaceholderLabels.cjs"),P=/!\[([^\]]*)\]\(([^)]+)\)|<img\b[^>]*>/i,w=/===\s*(?:!\[[^\]]*\]\([^)]+\)|<img\b[^>]*>)\s*===|!\[[^\]]*\]\([^)]+\)|<img\b[^>]*>/gi,o=(e,r)=>{const t=new RegExp(`${r}\\s*=\\s*("(.*?)"|'(.*?)'|([^\\s"'<>]+))`,"i"),c=e.match(t);if(c)return c[2]??c[3]??c[4]},M=e=>Math.max(1,Math.min(1e3,Math.round(e))),D=e=>{const r=e?.[0]??"",t=x.unwrapFixedOutput(r),c=/^\s*===/.test(r);if(/^<img\b/i.test(t)){const p=o(t,"src")??"",u=o(t,"alt")??o(t,"title")??"",d=o(t,"width");let g;if(d){const m=Number.parseFloat(d);Number.isFinite(m)&&(g=M(m))}return{text:u,url:p,title:u,scalePercent:g,fixedOutput:c}}const l=t.match(P),n=l?.[1]??"",h=l?.[2]??"";return{text:n,url:h,title:n,scalePercent:void 0,fixedOutput:c}},i=new a.MatchDecorator({regexp:w,decoration:(e,r)=>{const t=D(e);return a.Decoration.replace({widget:new b.default(t.text||r.state.facet(s.mediaPlaceholderLabels).image,{tag:"image",url:t.url,title:t.title,scalePercent:t.scalePercent,fixedOutput:t.fixedOutput},"tag-image",f.SelectedOption.Image,r)})}}),O=a.ViewPlugin.fromClass(class{constructor(e){this.placeholders=i.createDeco(e)}update(e){if(e.startState.facet(s.mediaPlaceholderLabels)!==e.state.facet(s.mediaPlaceholderLabels)){this.placeholders=i.createDeco(e.view);return}this.placeholders=i.updateDeco(e,this.placeholders)}},{decorations:e=>e.placeholders,provide:e=>a.EditorView.atomicRanges.of(r=>r.plugin(e)?.placeholders||a.Decoration.none)});exports.default=O;
2
2
  //# sourceMappingURL=ImgPlaceholder.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ImgPlaceholder.cjs","sources":["../../../../src/components/MarkdownFlowEditor/plugins/ImgPlaceholder.ts"],"sourcesContent":["import {\n EditorView,\n Decoration,\n DecorationSet,\n ViewPlugin,\n ViewUpdate,\n MatchDecorator,\n} from \"@codemirror/view\";\nimport { SelectedOption } from \"../types\";\nimport { unwrapFixedOutput } from \"../utils\";\nimport PlaceholderWidget from \"./PlaceholderWidget\";\n\nconst imageMarkupRegexp = /!\\[([^\\]]*)\\]\\(([^)]+)\\)|<img\\b[^>]*>/i;\nconst agiImgContextRegexp =\n /===\\s*(?:!\\[[^\\]]*\\]\\([^)]+\\)|<img\\b[^>]*>)\\s*===|!\\[[^\\]]*\\]\\([^)]+\\)|<img\\b[^>]*>/gi;\n\nconst extractAttributeValue = (tag: string, attribute: string) => {\n const regexp = new RegExp(\n `${attribute}\\\\s*=\\\\s*(\"(.*?)\"|'(.*?)'|([^\\\\s\"'<>]+))`,\n \"i\"\n );\n const match = tag.match(regexp);\n if (!match) return undefined;\n return match[2] ?? match[3] ?? match[4];\n};\n\nconst clampScalePercent = (value: number) =>\n Math.max(1, Math.min(1000, Math.round(value)));\n\nconst getImageMatchInfo = (match: RegExpMatchArray) => {\n const source = match?.[0] ?? \"\";\n const raw = unwrapFixedOutput(source);\n const fixedOutput = /^\\s*===/.test(source);\n if (/^<img\\b/i.test(raw)) {\n const src = extractAttributeValue(raw, \"src\") ?? \"\";\n const alt =\n extractAttributeValue(raw, \"alt\") ??\n extractAttributeValue(raw, \"title\") ??\n \"\";\n const widthAttr = extractAttributeValue(raw, \"width\");\n let scalePercent: number | undefined;\n if (widthAttr) {\n const numeric = Number.parseFloat(widthAttr);\n if (Number.isFinite(numeric)) {\n scalePercent = clampScalePercent(numeric);\n }\n }\n return {\n text: alt || \"Image\",\n url: src,\n title: alt,\n scalePercent,\n fixedOutput,\n };\n }\n const markdownMatch = raw.match(imageMarkupRegexp);\n const title = markdownMatch?.[1] ?? \"\";\n const url = markdownMatch?.[2] ?? \"\";\n return {\n text: title,\n url,\n title,\n scalePercent: undefined,\n fixedOutput,\n };\n};\n\nconst imageUrlMatcher = new MatchDecorator({\n regexp: agiImgContextRegexp,\n decoration: (match, view) => {\n const info = getImageMatchInfo(match);\n return Decoration.replace({\n widget: new PlaceholderWidget(\n info.text,\n {\n tag: \"image\",\n url: info.url,\n title: info.title,\n scalePercent: info.scalePercent,\n fixedOutput: info.fixedOutput,\n },\n \"tag-image\",\n SelectedOption.Image,\n view\n ),\n });\n },\n});\n\nconst ImgPlaceholder = ViewPlugin.fromClass(\n class {\n placeholders: DecorationSet;\n constructor(view: EditorView) {\n this.placeholders = imageUrlMatcher.createDeco(view);\n }\n update(update: ViewUpdate) {\n this.placeholders = imageUrlMatcher.updateDeco(update, this.placeholders);\n }\n },\n {\n decorations: (instance) => instance.placeholders,\n provide: (plugin) =>\n EditorView.atomicRanges.of((view) => {\n return view.plugin(plugin)?.placeholders || Decoration.none;\n }),\n }\n);\n\nexport default ImgPlaceholder;\n"],"names":["imageMarkupRegexp","agiImgContextRegexp","extractAttributeValue","tag","attribute","regexp","match","clampScalePercent","value","getImageMatchInfo","source","raw","unwrapFixedOutput","fixedOutput","src","alt","widthAttr","scalePercent","numeric","markdownMatch","title","url","imageUrlMatcher","MatchDecorator","view","info","Decoration","PlaceholderWidget","SelectedOption","ImgPlaceholder","ViewPlugin","update","instance","plugin","EditorView"],"mappings":"8QAYMA,EAAoB,yCACpBC,EACJ,wFAEIC,EAAwB,CAACC,EAAaC,IAAsB,CAChE,MAAMC,EAAS,IAAI,OACjB,GAAGD,CAAS,2CACZ,GAAA,EAEIE,EAAQH,EAAI,MAAME,CAAM,EAC9B,GAAKC,EACL,OAAOA,EAAM,CAAC,GAAKA,EAAM,CAAC,GAAKA,EAAM,CAAC,CACxC,EAEMC,EAAqBC,GACzB,KAAK,IAAI,EAAG,KAAK,IAAI,IAAM,KAAK,MAAMA,CAAK,CAAC,CAAC,EAEzCC,EAAqBH,GAA4B,CACrD,MAAMI,EAASJ,IAAQ,CAAC,GAAK,GACvBK,EAAMC,EAAAA,kBAAkBF,CAAM,EAC9BG,EAAc,UAAU,KAAKH,CAAM,EACzC,GAAI,WAAW,KAAKC,CAAG,EAAG,CACxB,MAAMG,EAAMZ,EAAsBS,EAAK,KAAK,GAAK,GAC3CI,EACJb,EAAsBS,EAAK,KAAK,GAChCT,EAAsBS,EAAK,OAAO,GAClC,GACIK,EAAYd,EAAsBS,EAAK,OAAO,EACpD,IAAIM,EACJ,GAAID,EAAW,CACb,MAAME,EAAU,OAAO,WAAWF,CAAS,EACvC,OAAO,SAASE,CAAO,IACzBD,EAAeV,EAAkBW,CAAO,EAE5C,CACA,MAAO,CACL,KAAMH,GAAO,QACb,IAAKD,EACL,MAAOC,EACP,aAAAE,EACA,YAAAJ,CAAA,CAEJ,CACA,MAAMM,EAAgBR,EAAI,MAAMX,CAAiB,EAC3CoB,EAAQD,IAAgB,CAAC,GAAK,GAC9BE,EAAMF,IAAgB,CAAC,GAAK,GAClC,MAAO,CACL,KAAMC,EACN,IAAAC,EACA,MAAAD,EACA,aAAc,OACd,YAAAP,CAAA,CAEJ,EAEMS,EAAkB,IAAIC,EAAAA,eAAe,CACzC,OAAQtB,EACR,WAAY,CAACK,EAAOkB,IAAS,CAC3B,MAAMC,EAAOhB,EAAkBH,CAAK,EACpC,OAAOoB,EAAAA,WAAW,QAAQ,CACxB,OAAQ,IAAIC,EAAAA,QACVF,EAAK,KACL,CACE,IAAK,QACL,IAAKA,EAAK,IACV,MAAOA,EAAK,MACZ,aAAcA,EAAK,aACnB,YAAaA,EAAK,WAAA,EAEpB,YACAG,EAAAA,eAAe,MACfJ,CAAA,CACF,CACD,CACH,CACF,CAAC,EAEKK,EAAiBC,EAAAA,WAAW,UAChC,KAAM,CAEJ,YAAYN,EAAkB,CAC5B,KAAK,aAAeF,EAAgB,WAAWE,CAAI,CACrD,CACA,OAAOO,EAAoB,CACzB,KAAK,aAAeT,EAAgB,WAAWS,EAAQ,KAAK,YAAY,CAC1E,CAAA,EAEF,CACE,YAAcC,GAAaA,EAAS,aACpC,QAAUC,GACRC,EAAAA,WAAW,aAAa,GAAIV,GACnBA,EAAK,OAAOS,CAAM,GAAG,cAAgBP,EAAAA,WAAW,IACxD,CAAA,CAEP"}
1
+ {"version":3,"file":"ImgPlaceholder.cjs","sources":["../../../../src/components/MarkdownFlowEditor/plugins/ImgPlaceholder.ts"],"sourcesContent":["import {\n EditorView,\n Decoration,\n DecorationSet,\n ViewPlugin,\n ViewUpdate,\n MatchDecorator,\n} from \"@codemirror/view\";\nimport { SelectedOption } from \"../types\";\nimport { unwrapFixedOutput } from \"../utils\";\nimport PlaceholderWidget from \"./PlaceholderWidget\";\nimport { mediaPlaceholderLabels } from \"./mediaPlaceholderLabels\";\n\nconst imageMarkupRegexp = /!\\[([^\\]]*)\\]\\(([^)]+)\\)|<img\\b[^>]*>/i;\nconst agiImgContextRegexp =\n /===\\s*(?:!\\[[^\\]]*\\]\\([^)]+\\)|<img\\b[^>]*>)\\s*===|!\\[[^\\]]*\\]\\([^)]+\\)|<img\\b[^>]*>/gi;\n\nconst extractAttributeValue = (tag: string, attribute: string) => {\n const regexp = new RegExp(\n `${attribute}\\\\s*=\\\\s*(\"(.*?)\"|'(.*?)'|([^\\\\s\"'<>]+))`,\n \"i\"\n );\n const match = tag.match(regexp);\n if (!match) return undefined;\n return match[2] ?? match[3] ?? match[4];\n};\n\nconst clampScalePercent = (value: number) =>\n Math.max(1, Math.min(1000, Math.round(value)));\n\nconst getImageMatchInfo = (match: RegExpMatchArray) => {\n const source = match?.[0] ?? \"\";\n const raw = unwrapFixedOutput(source);\n const fixedOutput = /^\\s*===/.test(source);\n if (/^<img\\b/i.test(raw)) {\n const src = extractAttributeValue(raw, \"src\") ?? \"\";\n const alt =\n extractAttributeValue(raw, \"alt\") ??\n extractAttributeValue(raw, \"title\") ??\n \"\";\n const widthAttr = extractAttributeValue(raw, \"width\");\n let scalePercent: number | undefined;\n if (widthAttr) {\n const numeric = Number.parseFloat(widthAttr);\n if (Number.isFinite(numeric)) {\n scalePercent = clampScalePercent(numeric);\n }\n }\n return {\n text: alt,\n url: src,\n title: alt,\n scalePercent,\n fixedOutput,\n };\n }\n const markdownMatch = raw.match(imageMarkupRegexp);\n const title = markdownMatch?.[1] ?? \"\";\n const url = markdownMatch?.[2] ?? \"\";\n return {\n text: title,\n url,\n title,\n scalePercent: undefined,\n fixedOutput,\n };\n};\n\nconst imageUrlMatcher = new MatchDecorator({\n regexp: agiImgContextRegexp,\n decoration: (match, view) => {\n const info = getImageMatchInfo(match);\n return Decoration.replace({\n widget: new PlaceholderWidget(\n info.text || view.state.facet(mediaPlaceholderLabels).image,\n {\n tag: \"image\",\n url: info.url,\n title: info.title,\n scalePercent: info.scalePercent,\n fixedOutput: info.fixedOutput,\n },\n \"tag-image\",\n SelectedOption.Image,\n view\n ),\n });\n },\n});\n\nconst ImgPlaceholder = ViewPlugin.fromClass(\n class {\n placeholders: DecorationSet;\n constructor(view: EditorView) {\n this.placeholders = imageUrlMatcher.createDeco(view);\n }\n update(update: ViewUpdate) {\n if (\n update.startState.facet(mediaPlaceholderLabels) !==\n update.state.facet(mediaPlaceholderLabels)\n ) {\n this.placeholders = imageUrlMatcher.createDeco(update.view);\n return;\n }\n this.placeholders = imageUrlMatcher.updateDeco(update, this.placeholders);\n }\n },\n {\n decorations: (instance) => instance.placeholders,\n provide: (plugin) =>\n EditorView.atomicRanges.of((view) => {\n return view.plugin(plugin)?.placeholders || Decoration.none;\n }),\n }\n);\n\nexport default ImgPlaceholder;\n"],"names":["imageMarkupRegexp","agiImgContextRegexp","extractAttributeValue","tag","attribute","regexp","match","clampScalePercent","value","getImageMatchInfo","source","raw","unwrapFixedOutput","fixedOutput","src","alt","widthAttr","scalePercent","numeric","markdownMatch","title","url","imageUrlMatcher","MatchDecorator","view","info","Decoration","PlaceholderWidget","mediaPlaceholderLabels","SelectedOption","ImgPlaceholder","ViewPlugin","update","instance","plugin","EditorView"],"mappings":"wTAaMA,EAAoB,yCACpBC,EACJ,wFAEIC,EAAwB,CAACC,EAAaC,IAAsB,CAChE,MAAMC,EAAS,IAAI,OACjB,GAAGD,CAAS,2CACZ,GAAA,EAEIE,EAAQH,EAAI,MAAME,CAAM,EAC9B,GAAKC,EACL,OAAOA,EAAM,CAAC,GAAKA,EAAM,CAAC,GAAKA,EAAM,CAAC,CACxC,EAEMC,EAAqBC,GACzB,KAAK,IAAI,EAAG,KAAK,IAAI,IAAM,KAAK,MAAMA,CAAK,CAAC,CAAC,EAEzCC,EAAqBH,GAA4B,CACrD,MAAMI,EAASJ,IAAQ,CAAC,GAAK,GACvBK,EAAMC,EAAAA,kBAAkBF,CAAM,EAC9BG,EAAc,UAAU,KAAKH,CAAM,EACzC,GAAI,WAAW,KAAKC,CAAG,EAAG,CACxB,MAAMG,EAAMZ,EAAsBS,EAAK,KAAK,GAAK,GAC3CI,EACJb,EAAsBS,EAAK,KAAK,GAChCT,EAAsBS,EAAK,OAAO,GAClC,GACIK,EAAYd,EAAsBS,EAAK,OAAO,EACpD,IAAIM,EACJ,GAAID,EAAW,CACb,MAAME,EAAU,OAAO,WAAWF,CAAS,EACvC,OAAO,SAASE,CAAO,IACzBD,EAAeV,EAAkBW,CAAO,EAE5C,CACA,MAAO,CACL,KAAMH,EACN,IAAKD,EACL,MAAOC,EACP,aAAAE,EACA,YAAAJ,CAAA,CAEJ,CACA,MAAMM,EAAgBR,EAAI,MAAMX,CAAiB,EAC3CoB,EAAQD,IAAgB,CAAC,GAAK,GAC9BE,EAAMF,IAAgB,CAAC,GAAK,GAClC,MAAO,CACL,KAAMC,EACN,IAAAC,EACA,MAAAD,EACA,aAAc,OACd,YAAAP,CAAA,CAEJ,EAEMS,EAAkB,IAAIC,EAAAA,eAAe,CACzC,OAAQtB,EACR,WAAY,CAACK,EAAOkB,IAAS,CAC3B,MAAMC,EAAOhB,EAAkBH,CAAK,EACpC,OAAOoB,EAAAA,WAAW,QAAQ,CACxB,OAAQ,IAAIC,EAAAA,QACVF,EAAK,MAAQD,EAAK,MAAM,MAAMI,EAAAA,sBAAsB,EAAE,MACtD,CACE,IAAK,QACL,IAAKH,EAAK,IACV,MAAOA,EAAK,MACZ,aAAcA,EAAK,aACnB,YAAaA,EAAK,WAAA,EAEpB,YACAI,EAAAA,eAAe,MACfL,CAAA,CACF,CACD,CACH,CACF,CAAC,EAEKM,EAAiBC,EAAAA,WAAW,UAChC,KAAM,CAEJ,YAAYP,EAAkB,CAC5B,KAAK,aAAeF,EAAgB,WAAWE,CAAI,CACrD,CACA,OAAOQ,EAAoB,CACzB,GACEA,EAAO,WAAW,MAAMJ,EAAAA,sBAAsB,IAC9CI,EAAO,MAAM,MAAMJ,EAAAA,sBAAsB,EACzC,CACA,KAAK,aAAeN,EAAgB,WAAWU,EAAO,IAAI,EAC1D,MACF,CACA,KAAK,aAAeV,EAAgB,WAAWU,EAAQ,KAAK,YAAY,CAC1E,CAAA,EAEF,CACE,YAAcC,GAAaA,EAAS,aACpC,QAAUC,GACRC,EAAAA,WAAW,aAAa,GAAIX,GACnBA,EAAK,OAAOU,CAAM,GAAG,cAAgBR,EAAAA,WAAW,IACxD,CAAA,CAEP"}