markdown-flow-ui 0.3.2-dev.1 → 0.3.2

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 (313) hide show
  1. package/README.md +0 -13
  2. package/dist/_virtual/index.es6.js +3 -5
  3. package/dist/_virtual/index.es6.js.map +1 -1
  4. package/dist/_virtual/index.es7.js +5 -3
  5. package/dist/_virtual/index.es7.js.map +1 -1
  6. package/dist/_virtual/index.es8.js +2 -2
  7. package/dist/_virtual/index.es9.js +2 -2
  8. package/dist/_virtual/index6.cjs +1 -1
  9. package/dist/_virtual/index7.cjs +1 -1
  10. package/dist/_virtual/index8.cjs +1 -1
  11. package/dist/_virtual/index9.cjs +1 -1
  12. package/dist/assets/markdown-flow-ui.css +1 -1
  13. package/dist/components/ContentRender/IframeSandbox.cjs.map +1 -1
  14. package/dist/components/ContentRender/IframeSandbox.es.js.map +1 -1
  15. package/dist/components/ContentRender/utils/video-markdown-run.cjs.map +1 -1
  16. package/dist/components/ContentRender/utils/video-markdown-run.es.js.map +1 -1
  17. package/dist/components/MarkdownFlow/ScrollToBottomButton.cjs.map +1 -1
  18. package/dist/components/MarkdownFlow/ScrollToBottomButton.es.js.map +1 -1
  19. package/dist/components/MarkdownFlow/ScrollToBottomControl.cjs.map +1 -1
  20. package/dist/components/MarkdownFlow/ScrollToBottomControl.es.js.map +1 -1
  21. package/dist/components/MarkdownFlow/useScrollToBottom.cjs.map +1 -1
  22. package/dist/components/MarkdownFlow/useScrollToBottom.es.js.map +1 -1
  23. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs +1 -1
  24. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs.map +1 -1
  25. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.d.ts +2 -2
  26. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js +323 -558
  27. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js.map +1 -1
  28. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs +1 -1
  29. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs.map +1 -1
  30. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.d.ts +0 -8
  31. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.es.js +64 -107
  32. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.es.js.map +1 -1
  33. package/dist/components/MarkdownFlowEditor/editor-context.cjs +1 -1
  34. package/dist/components/MarkdownFlowEditor/editor-context.cjs.map +1 -1
  35. package/dist/components/MarkdownFlowEditor/editor-context.es.js +4 -10
  36. package/dist/components/MarkdownFlowEditor/editor-context.es.js.map +1 -1
  37. package/dist/components/MarkdownFlowEditor/editorI18n.d.ts +0 -308
  38. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.cjs +1 -1
  39. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.d.ts +1 -15
  40. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.es.js +87 -115
  41. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.es.js.map +1 -1
  42. package/dist/components/MarkdownFlowEditor/locales/de-DE.json.cjs +1 -1
  43. package/dist/components/MarkdownFlowEditor/locales/de-DE.json.d.ts +1 -15
  44. package/dist/components/MarkdownFlowEditor/locales/de-DE.json.es.js +88 -116
  45. package/dist/components/MarkdownFlowEditor/locales/de-DE.json.es.js.map +1 -1
  46. package/dist/components/MarkdownFlowEditor/locales/en-US.json.cjs +1 -1
  47. package/dist/components/MarkdownFlowEditor/locales/en-US.json.d.ts +1 -15
  48. package/dist/components/MarkdownFlowEditor/locales/en-US.json.es.js +88 -116
  49. package/dist/components/MarkdownFlowEditor/locales/en-US.json.es.js.map +1 -1
  50. package/dist/components/MarkdownFlowEditor/locales/es-ES.json.cjs +1 -1
  51. package/dist/components/MarkdownFlowEditor/locales/es-ES.json.d.ts +1 -15
  52. package/dist/components/MarkdownFlowEditor/locales/es-ES.json.es.js +80 -108
  53. package/dist/components/MarkdownFlowEditor/locales/es-ES.json.es.js.map +1 -1
  54. package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.cjs +1 -1
  55. package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.d.ts +1 -15
  56. package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.es.js +82 -110
  57. package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.es.js.map +1 -1
  58. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.cjs +1 -1
  59. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.d.ts +1 -15
  60. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.es.js +86 -114
  61. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.es.js.map +1 -1
  62. package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.cjs +1 -1
  63. package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.d.ts +1 -15
  64. package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.es.js +88 -116
  65. package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.es.js.map +1 -1
  66. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.cjs +1 -1
  67. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.d.ts +1 -15
  68. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.es.js +85 -113
  69. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.es.js.map +1 -1
  70. package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.cjs +1 -1
  71. package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.d.ts +1 -15
  72. package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.es.js +94 -122
  73. package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.es.js.map +1 -1
  74. package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.cjs +1 -1
  75. package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.d.ts +1 -15
  76. package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.es.js +74 -102
  77. package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.es.js.map +1 -1
  78. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.cjs +1 -1
  79. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.d.ts +1 -15
  80. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.es.js +72 -100
  81. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.es.js.map +1 -1
  82. package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.cjs +1 -1
  83. package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.cjs.map +1 -1
  84. package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.d.ts +2 -1
  85. package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.es.js +62 -53
  86. package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.es.js.map +1 -1
  87. package/dist/components/MarkdownFlowEditor/plugins/PlaceholderWidget.cjs.map +1 -1
  88. package/dist/components/MarkdownFlowEditor/plugins/PlaceholderWidget.d.ts +1 -1
  89. package/dist/components/MarkdownFlowEditor/plugins/PlaceholderWidget.es.js.map +1 -1
  90. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.cjs +3 -3
  91. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.cjs.map +1 -1
  92. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.d.ts +1 -5
  93. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.es.js +149 -154
  94. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.es.js.map +1 -1
  95. package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.cjs +1 -1
  96. package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.cjs.map +1 -1
  97. package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.d.ts +2 -1
  98. package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.es.js +53 -42
  99. package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.es.js.map +1 -1
  100. package/dist/components/MarkdownFlowEditor/types.cjs +1 -1
  101. package/dist/components/MarkdownFlowEditor/types.cjs.map +1 -1
  102. package/dist/components/MarkdownFlowEditor/types.d.ts +1 -11
  103. package/dist/components/MarkdownFlowEditor/types.es.js +2 -2
  104. package/dist/components/MarkdownFlowEditor/types.es.js.map +1 -1
  105. package/dist/components/MarkdownFlowEditor/utils.cjs +1 -1
  106. package/dist/components/MarkdownFlowEditor/utils.cjs.map +1 -1
  107. package/dist/components/MarkdownFlowEditor/utils.d.ts +0 -10
  108. package/dist/components/MarkdownFlowEditor/utils.es.js +59 -73
  109. package/dist/components/MarkdownFlowEditor/utils.es.js.map +1 -1
  110. package/dist/components/Slide/MarkdownSlideScaling.cjs.map +1 -1
  111. package/dist/components/Slide/MarkdownSlideScaling.es.js.map +1 -1
  112. package/dist/components/Slide/MobilePlayerSettingsSheet.es.js +16 -16
  113. package/dist/components/Slide/Player.cjs.map +1 -1
  114. package/dist/components/Slide/Player.es.js.map +1 -1
  115. package/dist/components/Slide/Slide.cjs.map +1 -1
  116. package/dist/components/Slide/Slide.es.js.map +1 -1
  117. package/dist/components/Slide/SubtitleOverlay.cjs.map +1 -1
  118. package/dist/components/Slide/SubtitleOverlay.es.js.map +1 -1
  119. package/dist/components/Slide/slideI18n.cjs.map +1 -1
  120. package/dist/components/Slide/slideI18n.es.js.map +1 -1
  121. package/dist/components/Slide/useSlide.cjs.map +1 -1
  122. package/dist/components/Slide/useSlide.es.js.map +1 -1
  123. package/dist/components/Slide/utils/streamingNavigation.cjs.map +1 -1
  124. package/dist/components/Slide/utils/streamingNavigation.es.js.map +1 -1
  125. package/dist/components/ui/dialog.cjs +1 -1
  126. package/dist/components/ui/dialog.cjs.map +1 -1
  127. package/dist/components/ui/dialog.es.js +27 -27
  128. package/dist/components/ui/dialog.es.js.map +1 -1
  129. package/dist/lib/interaction-defaults.cjs.map +1 -1
  130. package/dist/lib/interaction-defaults.es.js.map +1 -1
  131. package/dist/markdown-flow-ui-lib.css +1 -1
  132. package/dist/markdown-flow-ui.css +1 -1
  133. package/dist/node_modules/@braintree/sanitize-url/dist/index.cjs +1 -1
  134. package/dist/node_modules/@braintree/sanitize-url/dist/index.es.js +1 -1
  135. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs +1 -1
  136. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -1
  137. package/dist/node_modules/@radix-ui/react-context/dist/index.es.js +34 -49
  138. package/dist/node_modules/@radix-ui/react-context/dist/index.es.js.map +1 -1
  139. package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs +1 -5
  140. package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs.map +1 -1
  141. package/dist/node_modules/@radix-ui/react-dialog/dist/index.es.js +206 -220
  142. package/dist/node_modules/@radix-ui/react-dialog/dist/index.es.js.map +1 -1
  143. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.cjs +2 -0
  144. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.cjs.map +1 -0
  145. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.es.js +50 -0
  146. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.es.js.map +1 -0
  147. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +2 -0
  148. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +1 -0
  149. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +34 -0
  150. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +1 -0
  151. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.cjs +2 -0
  152. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -0
  153. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.es.js +82 -0
  154. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.es.js.map +1 -0
  155. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +2 -0
  156. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -0
  157. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js +216 -0
  158. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +1 -0
  159. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.cjs +2 -0
  160. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.cjs.map +1 -0
  161. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.es.js +15 -0
  162. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.es.js.map +1 -0
  163. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.cjs +2 -0
  164. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -0
  165. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.es.js +18 -0
  166. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.es.js.map +1 -0
  167. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.cjs +2 -0
  168. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.cjs.map +1 -0
  169. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.es.js +104 -0
  170. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.es.js.map +1 -0
  171. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.cjs +2 -0
  172. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -0
  173. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.es.js +39 -0
  174. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -0
  175. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +2 -0
  176. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +1 -0
  177. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +13 -0
  178. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +1 -0
  179. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +2 -0
  180. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.map +1 -0
  181. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js +70 -0
  182. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js.map +1 -0
  183. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-effect-event/dist/index.cjs +2 -0
  184. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-effect-event/dist/index.cjs.map +1 -0
  185. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-effect-event/dist/index.es.js +20 -0
  186. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-effect-event/dist/index.es.js.map +1 -0
  187. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +2 -0
  188. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.map +1 -0
  189. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js +7 -0
  190. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js.map +1 -0
  191. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.cjs +1 -1
  192. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.cjs.map +1 -1
  193. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.es.js +18 -9
  194. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.es.js.map +1 -1
  195. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +1 -1
  196. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -1
  197. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.js +148 -100
  198. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.js.map +1 -1
  199. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +2 -0
  200. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +1 -0
  201. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +34 -0
  202. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +1 -0
  203. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.cjs +2 -0
  204. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -0
  205. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.es.js +39 -0
  206. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -0
  207. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +2 -0
  208. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +1 -0
  209. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +13 -0
  210. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +1 -0
  211. package/dist/node_modules/@radix-ui/react-id/dist/index.cjs +1 -1
  212. package/dist/node_modules/@radix-ui/react-id/dist/index.cjs.map +1 -1
  213. package/dist/node_modules/@radix-ui/react-id/dist/index.es.js +8 -8
  214. package/dist/node_modules/@radix-ui/react-id/dist/index.es.js.map +1 -1
  215. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs +1 -1
  216. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -1
  217. package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js +1 -1
  218. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.cjs +2 -0
  219. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -0
  220. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.es.js +50 -0
  221. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -0
  222. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -1
  223. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
  224. package/dist/node_modules/@radix-ui/react-slot/dist/index.es.js +80 -41
  225. package/dist/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -1
  226. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +2 -0
  227. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +1 -0
  228. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +34 -0
  229. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +1 -0
  230. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs +1 -1
  231. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs.map +1 -1
  232. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.es.js +1 -1
  233. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.cjs +2 -0
  234. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -0
  235. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.es.js +12 -0
  236. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -0
  237. package/dist/node_modules/classnames/index.cjs +1 -1
  238. package/dist/node_modules/classnames/index.es.js +1 -1
  239. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.cjs +1 -1
  240. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.es.js +1 -1
  241. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-5PPSVZJV.cjs +1 -1
  242. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-5PPSVZJV.es.js +1 -1
  243. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-2GRJ4B5K.cjs +1 -1
  244. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-2GRJ4B5K.es.js +1 -1
  245. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-NSK5VX7P.cjs +1 -1
  246. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-NSK5VX7P.es.js +1 -1
  247. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-JCYQIIEL.cjs +1 -1
  248. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-JCYQIIEL.es.js +1 -1
  249. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-OCEON4UE.cjs +1 -1
  250. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-OCEON4UE.es.js +1 -1
  251. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-UKHOOZJN.cjs +1 -1
  252. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-UKHOOZJN.es.js +1 -1
  253. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-PKOTCBZU.cjs +1 -1
  254. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-PKOTCBZU.es.js +1 -1
  255. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-SI44F4Z6.cjs +1 -1
  256. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-SI44F4Z6.es.js +1 -1
  257. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-OKZ733FA.cjs +1 -1
  258. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-OKZ733FA.es.js +1 -1
  259. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-UEYNNEHI.cjs +1 -1
  260. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-UEYNNEHI.es.js +1 -1
  261. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-ULZ7WXOC.cjs +1 -1
  262. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-ULZ7WXOC.es.js +1 -1
  263. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs +2 -2
  264. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs.map +1 -1
  265. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.es.js +75 -72
  266. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.es.js.map +1 -1
  267. package/package.json +10 -10
  268. package/dist/components/MarkdownFlowEditor/components/CustomPopover.cjs +0 -2
  269. package/dist/components/MarkdownFlowEditor/components/CustomPopover.cjs.map +0 -1
  270. package/dist/components/MarkdownFlowEditor/components/CustomPopover.d.ts +0 -17
  271. package/dist/components/MarkdownFlowEditor/components/CustomPopover.es.js +0 -46
  272. package/dist/components/MarkdownFlowEditor/components/CustomPopover.es.js.map +0 -1
  273. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.cjs +0 -2
  274. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.cjs.map +0 -1
  275. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.d.ts +0 -18
  276. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.es.js +0 -184
  277. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.es.js.map +0 -1
  278. package/dist/components/MarkdownFlowEditor/components/VariableSelect.cjs +0 -2
  279. package/dist/components/MarkdownFlowEditor/components/VariableSelect.cjs.map +0 -1
  280. package/dist/components/MarkdownFlowEditor/components/VariableSelect.d.ts +0 -11
  281. package/dist/components/MarkdownFlowEditor/components/VariableSelect.es.js +0 -172
  282. package/dist/components/MarkdownFlowEditor/components/VariableSelect.es.js.map +0 -1
  283. package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.cjs +0 -2
  284. package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.cjs.map +0 -1
  285. package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.d.ts +0 -3
  286. package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.es.js +0 -32
  287. package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.es.js.map +0 -1
  288. package/dist/components/MarkdownFlowEditor/plugins/VariablePlaceholder.cjs +0 -3
  289. package/dist/components/MarkdownFlowEditor/plugins/VariablePlaceholder.cjs.map +0 -1
  290. package/dist/components/MarkdownFlowEditor/plugins/VariablePlaceholder.d.ts +0 -9
  291. package/dist/components/MarkdownFlowEditor/plugins/VariablePlaceholder.es.js +0 -53
  292. package/dist/components/MarkdownFlowEditor/plugins/VariablePlaceholder.es.js.map +0 -1
  293. package/dist/components/ui/popover.cjs +0 -2
  294. package/dist/components/ui/popover.cjs.map +0 -1
  295. package/dist/components/ui/popover.es.js +0 -24
  296. package/dist/components/ui/popover.es.js.map +0 -1
  297. package/dist/node_modules/@radix-ui/react-popover/dist/index.cjs +0 -2
  298. package/dist/node_modules/@radix-ui/react-popover/dist/index.cjs.map +0 -1
  299. package/dist/node_modules/@radix-ui/react-popover/dist/index.es.js +0 -241
  300. package/dist/node_modules/@radix-ui/react-popover/dist/index.es.js.map +0 -1
  301. package/dist/node_modules/lucide-react/dist/esm/icons/braces.cjs +0 -7
  302. package/dist/node_modules/lucide-react/dist/esm/icons/braces.cjs.map +0 -1
  303. package/dist/node_modules/lucide-react/dist/esm/icons/braces.es.js +0 -25
  304. package/dist/node_modules/lucide-react/dist/esm/icons/braces.es.js.map +0 -1
  305. package/dist/node_modules/lucide-react/dist/esm/icons/plus.cjs +0 -7
  306. package/dist/node_modules/lucide-react/dist/esm/icons/plus.cjs.map +0 -1
  307. package/dist/node_modules/lucide-react/dist/esm/icons/plus.es.js +0 -16
  308. package/dist/node_modules/lucide-react/dist/esm/icons/plus.es.js.map +0 -1
  309. package/dist/node_modules/lucide-react/dist/esm/icons/search.cjs +0 -7
  310. package/dist/node_modules/lucide-react/dist/esm/icons/search.cjs.map +0 -1
  311. package/dist/node_modules/lucide-react/dist/esm/icons/search.es.js +0 -16
  312. package/dist/node_modules/lucide-react/dist/esm/icons/search.es.js.map +0 -1
  313. /package/dist/components/MarkdownFlowEditor/plugins/{VariablePlaceholder.test.d.ts → MediaPlaceholder.variables.test.d.ts} +0 -0
@@ -1,696 +1,478 @@
1
- import { jsx as p, jsxs as $ } from "react/jsx-runtime";
2
- import { useEffect as I, useMemo as T, useState as L, useRef as U, useCallback as s } from "react";
3
- import Ze from "../../node_modules/@uiw/react-codemirror/esm/index.es.js";
4
- import { autocompletion as qe } from "../../node_modules/@codemirror/autocomplete/dist/index.es.js";
5
- import { EditorView as Te } from "../../node_modules/@codemirror/view/dist/index.es.js";
6
- import { markdown as Me } from "../../node_modules/@codemirror/lang-markdown/dist/index.es.js";
7
- import { syntaxHighlighting as et, defaultHighlightStyle as tt } from "../../node_modules/@codemirror/language/dist/index.es.js";
8
- import { Tooltip as rt, TooltipTrigger as nt, TooltipContent as ot } from "../ui/tooltip.es.js";
9
- import at from "./components/CustomDialog.es.js";
10
- import lt from "./components/CustomPopover.es.js";
11
- import it from "./components/EditorToolbar.es.js";
12
- import st from "./components/VariableSearchDropdown.es.js";
13
- import ct from "./editor-context.es.js";
14
- import ut from "./components/ImageInject.es.js";
15
- import mt from "./components/VideoInject.es.js";
16
- import ft from "./components/VariableSelect.es.js";
17
- import { SelectedOption as m } from "./types.es.js";
1
+ import { jsx as a, jsxs as w } from "react/jsx-runtime";
2
+ import { useEffect as L, useMemo as T, useState as j, useRef as ee, useCallback as s } from "react";
3
+ import we from "../../node_modules/@uiw/react-codemirror/esm/index.es.js";
4
+ import { autocompletion as Le } from "../../node_modules/@codemirror/autocomplete/dist/index.es.js";
5
+ import { EditorView as te } from "../../node_modules/@codemirror/view/dist/index.es.js";
6
+ import { markdown as Te } from "../../node_modules/@codemirror/lang-markdown/dist/index.es.js";
7
+ import { syntaxHighlighting as ke, defaultHighlightStyle as Ve } from "../../node_modules/@codemirror/language/dist/index.es.js";
8
+ import { Tooltip as Oe, TooltipTrigger as Ee, TooltipContent as Se } from "../ui/tooltip.es.js";
9
+ import ye from "./components/CustomDialog.es.js";
10
+ import xe from "./components/EditorToolbar.es.js";
11
+ import be from "./editor-context.es.js";
12
+ import Pe from "./components/ImageInject.es.js";
13
+ import De from "./components/VideoInject.es.js";
14
+ import { SelectedOption as f } from "./types.es.js";
18
15
  /* empty css */
19
- import { getImageContentToInsert as ht, getVideoContentToInsert as pt, createSlashCommands as gt, parseContentInfo as dt } from "./utils.es.js";
20
- import Vt from "./plugins/ImgPlaceholder.es.js";
21
- import bt from "./plugins/VideoPlaceholder.es.js";
22
- import { mediaPlaceholderLabels as Ct } from "./plugins/mediaPlaceholderLabels.es.js";
23
- import St from "./plugins/VariablePlaceholder.es.js";
24
- import It, { QuestionSyntaxHighlighter as vt } from "./plugins/SyntaxHighlighter.es.js";
25
- import ne from "../../node_modules/i18next/dist/esm/i18next.es.js";
26
- import { DEFAULT_EDITOR_LOCALE as oe, editorLocaleResources as Le, getEditorLocaleMessages as wt } from "./editorI18n.es.js";
27
- import { normalizeMarkdownFlowLocale as Tt, getMarkdownFlowDirection as Lt, getMarkdownFlowLanguage as kt } from "../../lib/locale.es.js";
28
- import { useDetachedLanguage as Et } from "../../lib/useDetachedLanguage.es.js";
29
- import { useResolvedDirection as yt } from "../../lib/useResolvedDirection.es.js";
30
- import { initReactI18next as Ot } from "../../node_modules/react-i18next/dist/es/initReactI18next.es.js";
31
- import { useTranslation as Pt } from "../../node_modules/react-i18next/dist/es/useTranslation.es.js";
32
- import { d as N } from "../../_virtual/index.es.js";
33
- ne.isInitialized ? Object.entries(Le).forEach(([C, g]) => {
34
- ne.addResourceBundle(
35
- C,
16
+ import { getImageContentToInsert as Ne, getVideoContentToInsert as Me, createSlashCommands as Re, parseContentInfo as Be } from "./utils.es.js";
17
+ import Fe from "./plugins/ImgPlaceholder.es.js";
18
+ import je from "./plugins/VideoPlaceholder.es.js";
19
+ import { mediaPlaceholderLabels as Ae } from "./plugins/mediaPlaceholderLabels.es.js";
20
+ import He from "./plugins/SyntaxHighlighter.es.js";
21
+ import A from "../../node_modules/i18next/dist/esm/i18next.es.js";
22
+ import { DEFAULT_EDITOR_LOCALE as H, editorLocaleResources as oe, getEditorLocaleMessages as $e } from "./editorI18n.es.js";
23
+ import { normalizeMarkdownFlowLocale as qe, getMarkdownFlowDirection as ze, getMarkdownFlowLanguage as Ge } from "../../lib/locale.es.js";
24
+ import { useDetachedLanguage as We } from "../../lib/useDetachedLanguage.es.js";
25
+ import { useResolvedDirection as _e } from "../../lib/useResolvedDirection.es.js";
26
+ import { initReactI18next as Ke } from "../../node_modules/react-i18next/dist/es/initReactI18next.es.js";
27
+ import { useTranslation as Qe } from "../../node_modules/react-i18next/dist/es/useTranslation.es.js";
28
+ A.isInitialized ? Object.entries(oe).forEach(([b, I]) => {
29
+ A.addResourceBundle(
30
+ b,
36
31
  "translation",
37
- g.translation,
32
+ I.translation,
38
33
  !0,
39
34
  !0
40
35
  );
41
- }) : ne.use(Ot).init({
42
- resources: Le,
43
- lng: oe,
44
- fallbackLng: oe,
36
+ }) : A.use(Ke).init({
37
+ resources: oe,
38
+ lng: H,
39
+ fallbackLng: H,
45
40
  interpolation: { escapeValue: !1 }
46
41
  });
47
- const ke = [], Ee = (C, g) => {
48
- if (!C || g < 0)
49
- return !1;
50
- for (const l of N.findDocumentVariableMarkers(C))
51
- if (l.name !== null && g >= l.start + 2 && g <= l.end - 2)
52
- return !0;
53
- return !1;
54
- }, xt = (C = "") => C ? N.formatVariableReference(C) : "{{ }}", ur = ({
55
- content: C = "",
56
- editMode: g = "codeEdit",
57
- questionMode: l = !1,
58
- variables: ae,
59
- systemVariables: le,
60
- onChange: D,
61
- onBlur: ye,
62
- locale: Y,
63
- lang: Oe,
64
- uploadProps: Pe,
65
- disabled: n = !1,
66
- toolbarActionsRight: J,
67
- onReady: xe
42
+ const Tt = ({
43
+ content: b = "",
44
+ editMode: I = "codeEdit",
45
+ onChange: k,
46
+ onBlur: ne,
47
+ locale: P,
48
+ lang: re,
49
+ uploadProps: ie,
50
+ disabled: t = !1,
51
+ toolbarActionsRight: D,
52
+ onReady: le
68
53
  }) => {
69
- const { t: i, i18n: X } = Pt(), H = Tt(
70
- Y ?? oe
71
- ), ie = Lt(Y), se = Oe ?? kt(Y);
72
- I(() => {
73
- X.language !== H && X.changeLanguage(H);
74
- }, [X, H]);
75
- const f = wt(H), S = T(
54
+ const { t: l, i18n: N } = Qe(), V = qe(
55
+ P ?? H
56
+ ), $ = ze(P), q = re ?? Ge(P);
57
+ L(() => {
58
+ N.language !== V && N.changeLanguage(V);
59
+ }, [N, V]);
60
+ const O = $e(V), u = T(
76
61
  () => ({
77
- image: i("toolbarInsertImage", {
62
+ image: l("toolbarInsertImage", {
78
63
  defaultValue: "Insert image"
79
64
  }),
80
- video: i("toolbarInsertVideo", {
65
+ video: l("toolbarInsertVideo", {
81
66
  defaultValue: "Insert video"
82
67
  }),
83
- variable: i("slashVariable", {
84
- defaultValue: "Variable"
85
- }),
86
- addVariable: i("toolbarInsertNewVariable", {
87
- defaultValue: "Insert new variable"
88
- }),
89
- search: i("toolbarInsertExistingVariable", {
90
- defaultValue: "Insert existing variable"
91
- }),
92
- confirmOutput: i("toolbarConfirmOutput", {
68
+ confirmOutput: l("toolbarConfirmOutput", {
93
69
  defaultValue: "Confirm output"
94
70
  }),
95
- insertLink: i("toolbarInsertLink", {
71
+ insertLink: l("toolbarInsertLink", {
96
72
  defaultValue: "Insert link"
97
73
  }),
98
- insertButton: i("toolbarInsertButton", {
74
+ insertButton: l("toolbarInsertButton", {
99
75
  defaultValue: "Insert button"
100
76
  }),
101
- insertSingleChoice: i("toolbarInsertSingleChoice", {
77
+ insertSingleChoice: l("toolbarInsertSingleChoice", {
102
78
  defaultValue: "Insert single choice"
103
79
  }),
104
- insertMultiChoice: i("toolbarInsertMultiChoice", {
80
+ insertMultiChoice: l("toolbarInsertMultiChoice", {
105
81
  defaultValue: "Insert multi choice"
106
82
  }),
107
- insertInput: i("toolbarInsertInput", {
83
+ insertInput: l("toolbarInsertInput", {
108
84
  defaultValue: "Insert input"
109
85
  }),
110
- singleChoiceOption1: i("toolbarChoiceOption1", {
86
+ singleChoiceOption1: l("toolbarChoiceOption1", {
111
87
  defaultValue: "Option 1"
112
88
  }),
113
- singleChoiceOption2: i("toolbarChoiceOption2", {
89
+ singleChoiceOption2: l("toolbarChoiceOption2", {
114
90
  defaultValue: "Option 2"
115
91
  }),
116
- inputPlaceholder: i("toolbarInputPlaceholder", {
92
+ inputPlaceholder: l("toolbarInputPlaceholder", {
117
93
  defaultValue: "Please enter"
118
94
  })
119
95
  }),
120
- [i]
121
- ), Ne = T(
122
- () => ({
123
- searchPlaceholder: i("variableSearchPlaceholder", {
124
- defaultValue: "Search variable"
125
- }),
126
- systemLabel: i("variableSectionSystem", "System Variables"),
127
- customLabel: i("variableSectionCustom", "Custom Variables"),
128
- emptyLabel: i("variableNotFound", "No variables found")
129
- }),
130
- [i]
131
- ), De = g === "quickEdit" ? i("placeholderQuickEdit", {
132
- defaultValue: i("placeholderCodeEdit", {
133
- defaultValue: i("placeholder")
96
+ [l]
97
+ ), se = I === "quickEdit" ? l("placeholderQuickEdit", {
98
+ defaultValue: l("placeholderCodeEdit", {
99
+ defaultValue: l("placeholder")
134
100
  })
135
- }) : i("placeholderCodeEdit", { defaultValue: i("placeholder") }), R = T(() => {
136
- const e = /* @__PURE__ */ new Set();
137
- return (le ?? ke).flatMap((r) => {
138
- const o = typeof r?.name == "string" ? N.normalizeVariableName(r.name) : null;
139
- return o === null || e.has(o) ? [] : (e.add(o), [{ ...r, name: o }]);
140
- });
141
- }, [le]), Z = T(() => {
142
- const e = new Set(
143
- R.map((o) => o.name)
144
- ), r = /* @__PURE__ */ new Set();
145
- return (ae ?? ke).flatMap((o) => {
146
- const t = typeof o?.name == "string" ? N.normalizeVariableName(o.name) : null;
147
- return t === null || e.has(t) || r.has(t) ? [] : (r.add(t), [{ ...o, name: t }]);
148
- });
149
- }, [ae, R]), [q, k] = L(!1), [M, y] = L(!1), j = U(null), A = Et(j, se), { resolvedDirection: z } = yt(
150
- j,
151
- ie
152
- ), [Re, B] = L(null), [ce, ee] = L(
153
- Z
154
- ), [_, Ae] = L(
155
- R
156
- );
157
- I(() => {
158
- ee(Z);
159
- }, [Z]), I(() => {
160
- Ae(R);
161
- }, [R]);
162
- const [v, E] = L(
163
- m.Empty
164
- ), [u, F] = L(), a = U(null), G = U(null), Q = U(null), [te, ue] = L(!1), b = s(() => {
165
- ue(!1), Q.current = null;
166
- }, []), ze = s(
167
- (e) => {
168
- if (!n) {
169
- if (te && Q.current === e) {
170
- b();
171
- return;
172
- }
173
- Q.current = e, ue(!0);
174
- }
175
- },
176
- [b, n, te]
177
- ), Be = {
101
+ }) : l("placeholderCodeEdit", { defaultValue: l("placeholder") }), [M, p] = j(!1), R = ee(null), E = We(R, q), { resolvedDirection: S } = _e(
102
+ R,
103
+ $
104
+ ), [v, g] = j(
105
+ f.Empty
106
+ ), [c, y] = j(), r = ee(null), ce = {
178
107
  selectedOption: v,
179
- setSelectedOption: E,
180
- dialogOpen: q,
181
- setDialogOpen: k,
182
- popoverOpen: M,
183
- setPopoverOpen: y,
184
- popoverPosition: Re,
185
- setPopoverPosition: B
108
+ setSelectedOption: g,
109
+ dialogOpen: M,
110
+ setDialogOpen: p
186
111
  };
187
- I(() => {
188
- n && (k(!1), y(!1), E(m.Empty), F(null), B(null), b());
189
- }, [
190
- b,
191
- n,
192
- k,
193
- y,
194
- B,
195
- E,
196
- F
197
- ]);
198
- const O = s(
199
- (e) => {
200
- if (l || g !== "quickEdit" || !e)
201
- return;
202
- const r = N.extractVariableNames(e);
203
- if (!r.length)
204
- return;
205
- const o = new Set(
206
- _.map((t) => t.name)
207
- );
208
- ee((t) => {
209
- const c = new Set(t.map((V) => V.name)), h = /* @__PURE__ */ new Set(), d = [];
210
- return r.forEach((V) => {
211
- const w = V;
212
- !V || o.has(w) || c.has(w) || h.has(w) || (d.push({ name: V }), h.add(w));
213
- }), d.length ? [...d, ...t] : t;
214
- });
215
- },
216
- [g, l, _]
217
- );
218
- I(() => {
219
- O(C);
220
- }, [C, O]);
221
- const re = s(
112
+ L(() => {
113
+ t && (p(!1), g(f.Empty), y(null));
114
+ }, [t, p, g, y]);
115
+ const B = s(
222
116
  (e) => {
223
- if (!(n || l && e === m.Variable))
224
- if (b(), E(e), e === m.Variable) {
225
- if (a.current) {
226
- const { state: r } = a.current, o = r.selection.main.from, t = a.current.coordsAtPos(o);
227
- t && B({
228
- x: t.left,
229
- y: t.bottom
230
- });
231
- }
232
- y(!0);
233
- } else
234
- k(!0);
117
+ t || (g(e), p(!0));
235
118
  },
236
- [b, n, l]
237
- ), P = s(
119
+ [t]
120
+ ), d = s(
238
121
  (e) => {
239
- if (n || !a.current) return;
240
- const { state: r, dispatch: o } = a.current, t = r.selection.main.from;
241
- o({
242
- changes: { from: t, insert: e },
243
- selection: { anchor: t + e.length }
122
+ if (t || !r.current) return;
123
+ const { state: n, dispatch: i } = r.current, o = n.selection.main.from;
124
+ i({
125
+ changes: { from: o, insert: e },
126
+ selection: { anchor: o + e.length }
244
127
  });
245
128
  },
246
- [a, n]
247
- ), me = s(
129
+ [r, t]
130
+ ), z = s(
248
131
  (e) => {
249
- if (n || !a.current)
132
+ if (t || !r.current)
250
133
  return;
251
- const { state: r, dispatch: o } = a.current, t = r.selection.main;
252
- o({
253
- changes: { from: t.from, to: t.to, insert: e },
254
- selection: { anchor: t.from + e.length }
134
+ const { state: n, dispatch: i } = r.current, o = n.selection.main;
135
+ i({
136
+ changes: { from: o.from, to: o.to, insert: e },
137
+ selection: { anchor: o.from + e.length }
255
138
  });
256
139
  },
257
- [n]
258
- ), fe = s(() => {
259
- a.current?.focus();
260
- }, []), he = s(() => a.current?.state.doc.toString() ?? "", []), pe = s(
140
+ [t]
141
+ ), G = s(() => {
142
+ r.current?.focus();
143
+ }, []), W = s(() => r.current?.state.doc.toString() ?? "", []), _ = s(
261
144
  (e) => {
262
- if (n)
145
+ if (t)
263
146
  return;
264
- if (!a.current) {
265
- D?.(e);
147
+ if (!r.current) {
148
+ k?.(e);
266
149
  return;
267
150
  }
268
- const r = a.current, { state: o, dispatch: t } = r;
269
- t({
270
- changes: { from: 0, to: o.doc.length, insert: e },
151
+ const n = r.current, { state: i, dispatch: o } = n;
152
+ o({
153
+ changes: { from: 0, to: i.doc.length, insert: e },
271
154
  selection: { anchor: e.length }
272
155
  });
273
156
  },
274
- [n, D]
275
- ), W = s(() => {
276
- if (n || !u || !a.current || u.from === -1)
157
+ [t, k]
158
+ ), x = s(() => {
159
+ if (t || !c || !r.current || c.from === -1)
277
160
  return;
278
- const { from: e, to: r } = u, { dispatch: o } = a.current;
279
- o({
280
- changes: { from: e, to: r, insert: "" }
161
+ const { from: e, to: n } = c, { dispatch: i } = r.current;
162
+ i({
163
+ changes: { from: e, to: n, insert: "" }
281
164
  });
282
- }, [u, a, n]), K = s(
283
- (e, r, o = !1) => {
284
- if (n || !a.current)
285
- return;
286
- const t = a.current, { state: c, dispatch: h } = t, d = r ?? c.selection.main, V = xt(e);
287
- if (!V) return;
288
- const w = N.normalizeVariableName(e) ?? "", Xe = o ? V.length : 3 + w.length;
289
- h({
290
- changes: {
291
- from: d.from,
292
- to: d.to,
293
- insert: V
294
- },
295
- selection: {
296
- anchor: d.from + Xe
297
- }
298
- }), t.focus();
299
- },
300
- [n]
301
- ), Fe = s(() => {
302
- n || (b(), K(""));
303
- }, [b, n, K]), $e = s(() => {
304
- if (n || !a.current)
165
+ }, [c, r, t]), ae = s(() => {
166
+ if (t || !r.current)
305
167
  return;
306
- const e = a.current, { state: r, dispatch: o } = e, t = r.selection.main;
307
- o({
168
+ const e = r.current, { state: n, dispatch: i } = e, o = n.selection.main;
169
+ i({
308
170
  changes: {
309
- from: t.from,
310
- to: t.to,
171
+ from: o.from,
172
+ to: o.to,
311
173
  insert: "======"
312
174
  },
313
175
  selection: {
314
- anchor: t.from + 3
176
+ anchor: o.from + 3
315
177
  }
316
178
  }), e.focus();
317
- }, [n]), He = s(() => {
318
- if (n || !a.current)
179
+ }, [t]), ue = s(() => {
180
+ if (t || !r.current)
319
181
  return;
320
- const e = a.current, { state: r, dispatch: o } = e, t = r.selection.main;
321
- o({
182
+ const e = r.current, { state: n, dispatch: i } = e, o = n.selection.main;
183
+ i({
322
184
  changes: {
323
- from: t.from,
324
- to: t.to,
185
+ from: o.from,
186
+ to: o.to,
325
187
  insert: "[]()"
326
188
  },
327
189
  selection: {
328
- anchor: t.from + 1
190
+ anchor: o.from + 1
329
191
  }
330
192
  }), e.focus();
331
- }, [n]), je = s(() => {
332
- if (n || !a.current)
193
+ }, [t]), me = s(() => {
194
+ if (t || !r.current)
333
195
  return;
334
- const e = a.current, { state: r, dispatch: o } = e, t = r.selection.main;
335
- o({
196
+ const e = r.current, { state: n, dispatch: i } = e, o = n.selection.main;
197
+ i({
336
198
  changes: {
337
- from: t.from,
338
- to: t.to,
199
+ from: o.from,
200
+ to: o.to,
339
201
  insert: "?[]"
340
202
  },
341
203
  selection: {
342
- anchor: t.from + 2
204
+ anchor: o.from + 2
343
205
  }
344
206
  }), e.focus();
345
- }, [n]), _e = s(() => {
346
- if (n || !a.current)
207
+ }, [t]), fe = s(() => {
208
+ if (t || !r.current)
347
209
  return;
348
- const e = a.current, { state: r, dispatch: o } = e, t = r.selection.main, c = S.singleChoiceOption1, h = S.singleChoiceOption2, d = `?[%{{ ${l ? f.questionPlaceholder : ""} }} ${c} | ${h}]`;
349
- o({
210
+ const e = r.current, { state: n, dispatch: i } = e, o = n.selection.main, m = u.singleChoiceOption1, h = u.singleChoiceOption2, F = `?[%{{ }} ${m} | ${h}]`;
211
+ i({
350
212
  changes: {
351
- from: t.from,
352
- to: t.to,
353
- insert: d
213
+ from: o.from,
214
+ to: o.to,
215
+ insert: F
354
216
  },
355
217
  selection: {
356
- anchor: t.from + 6,
357
- head: t.from + 6 + (l ? f.questionPlaceholder.length : 0)
218
+ anchor: o.from + 6
358
219
  }
359
220
  }), e.focus();
360
221
  }, [
361
- n,
362
- S.singleChoiceOption1,
363
- S.singleChoiceOption2,
364
- l,
365
- f.questionPlaceholder
366
- ]), Ge = s(() => {
367
- if (n || !a.current)
222
+ t,
223
+ u.singleChoiceOption1,
224
+ u.singleChoiceOption2
225
+ ]), pe = s(() => {
226
+ if (t || !r.current)
368
227
  return;
369
- const e = a.current, { state: r, dispatch: o } = e, t = r.selection.main, c = S.singleChoiceOption1, h = S.singleChoiceOption2, d = `?[%{{ ${l ? f.questionPlaceholder : ""} }} ${c} || ${h}]`;
370
- o({
228
+ const e = r.current, { state: n, dispatch: i } = e, o = n.selection.main, m = u.singleChoiceOption1, h = u.singleChoiceOption2, F = `?[%{{ }} ${m} || ${h}]`;
229
+ i({
371
230
  changes: {
372
- from: t.from,
373
- to: t.to,
374
- insert: d
231
+ from: o.from,
232
+ to: o.to,
233
+ insert: F
375
234
  },
376
235
  selection: {
377
- anchor: t.from + 6,
378
- head: t.from + 6 + (l ? f.questionPlaceholder.length : 0)
236
+ anchor: o.from + 6
379
237
  }
380
238
  }), e.focus();
381
239
  }, [
382
- n,
383
- S.singleChoiceOption1,
384
- S.singleChoiceOption2,
385
- l,
386
- f.questionPlaceholder
387
- ]), Qe = s(() => {
388
- if (n || !a.current)
240
+ t,
241
+ u.singleChoiceOption1,
242
+ u.singleChoiceOption2
243
+ ]), he = s(() => {
244
+ if (t || !r.current)
389
245
  return;
390
- const e = a.current, { state: r, dispatch: o } = e, t = r.selection.main, c = S.inputPlaceholder ?? "请输入", h = `?[%{{ ${l ? f.questionPlaceholder : ""} }}...${c}]`;
391
- o({
246
+ const e = r.current, { state: n, dispatch: i } = e, o = n.selection.main, h = `?[%{{ }}...${u.inputPlaceholder ?? "请输入"}]`;
247
+ i({
392
248
  changes: {
393
- from: t.from,
394
- to: t.to,
249
+ from: o.from,
250
+ to: o.to,
395
251
  insert: h
396
252
  },
397
253
  selection: {
398
- anchor: t.from + 6,
399
- head: t.from + 6 + (l ? f.questionPlaceholder.length : 0)
254
+ anchor: o.from + 6
400
255
  }
401
256
  }), e.focus();
402
- }, [
403
- n,
404
- S.inputPlaceholder,
405
- l,
406
- f.questionPlaceholder
407
- ]), We = s(
257
+ }, [t, u.inputPlaceholder]), ge = s(
408
258
  ({
409
259
  resourceUrl: e,
410
- resourceTitle: r,
411
- scalePercent: o
260
+ resourceTitle: n,
261
+ scalePercent: i
412
262
  }) => {
413
- if (!e || n) return;
414
- const t = ht({
263
+ if (!e || t) return;
264
+ const o = Ne({
415
265
  resourceUrl: e,
416
- resourceTitle: r,
417
- scalePercent: o
266
+ resourceTitle: n,
267
+ scalePercent: i
418
268
  });
419
- if (u?.type === m.Image) {
420
- if (W(), !a.current) return;
421
- const { dispatch: c } = a.current;
422
- c({
423
- changes: { from: u.from, insert: t }
269
+ if (c?.type === f.Image) {
270
+ if (x(), !r.current) return;
271
+ const { dispatch: m } = r.current;
272
+ m({
273
+ changes: { from: c.from, insert: o }
424
274
  });
425
275
  } else
426
- P(t);
427
- k(!1);
276
+ d(o);
277
+ p(!1);
428
278
  },
429
- [W, n, P, u]
430
- ), Ke = s(
279
+ [x, t, d, c]
280
+ ), de = s(
431
281
  ({
432
282
  resourceUrl: e,
433
- resourceTitle: r
283
+ resourceTitle: n
434
284
  }) => {
435
- if (n)
285
+ if (t)
436
286
  return;
437
- const o = pt(e, r);
438
- if (u?.type === m.Video) {
439
- if (W(), !a.current) return;
440
- const { dispatch: t } = a.current;
441
- t({
442
- changes: { from: u.from, insert: o }
287
+ const i = Me(e, n);
288
+ if (c?.type === f.Video) {
289
+ if (x(), !r.current) return;
290
+ const { dispatch: o } = r.current;
291
+ o({
292
+ changes: { from: c.from, insert: i }
443
293
  });
444
294
  } else
445
- P(o);
446
- k(!1);
295
+ d(i);
296
+ p(!1);
447
297
  },
448
- [W, n, P, u]
449
- ), ge = s(
450
- (e) => {
451
- if (n)
452
- return;
453
- const r = u?.type === m.Variable ? { from: u.from, to: u.to } : void 0;
454
- K(e.name, r, !0), y(!1), b();
455
- },
456
- [n, K, u, b]
457
- ), de = s(() => qe({
298
+ [x, t, d, c]
299
+ ), K = s(() => Le({
458
300
  override: [
459
- gt(
460
- re,
461
- {
462
- // divider: currentStrings.slashDivider,
463
- // fixedText: currentStrings.slashFixedText,
464
- image: f.slashImage,
465
- video: f.slashVideo,
466
- variable: f.slashVariable
467
- },
468
- { enableVariables: !l }
469
- )
301
+ Re(B, {
302
+ // divider: currentStrings.slashDivider,
303
+ // fixedText: currentStrings.slashFixedText,
304
+ image: O.slashImage,
305
+ video: O.slashVideo
306
+ })
470
307
  ]
471
308
  }), [
472
309
  // currentStrings.slashDivider,
473
310
  // currentStrings.slashFixedText,
474
- f.slashImage,
475
- f.slashVideo,
476
- f.slashVariable,
477
- re,
478
- l
479
- ]), Ve = s(
311
+ O.slashImage,
312
+ O.slashVideo,
313
+ B
314
+ ]), Q = s((e) => {
315
+ r.current = e.view;
316
+ }, []), U = s(
480
317
  (e) => {
481
- if (a.current = e.view, !l && g === "quickEdit" && G.current && e.selectionSet) {
482
- const r = e.state.selection.main.head, o = e.state.doc.toString();
483
- Ee(
484
- o,
485
- r
486
- ) || (O(o), G.current = null);
487
- }
488
- },
489
- [O, g, l]
490
- ), be = s(
491
- (e) => {
492
- if (e.stopPropagation(), n)
318
+ if (e.stopPropagation(), t)
493
319
  return;
494
- const { type: r, from: o, to: t, dataset: c, target: h } = e.detail;
495
- if (l && r === m.Variable) return;
496
- const d = dt(r, c);
497
- if (F({
498
- type: r,
499
- value: d,
500
- from: o,
501
- to: t
502
- }), E(r), r === m.Variable) {
503
- if (h) {
504
- const V = h.getBoundingClientRect(), w = h.ownerDocument.defaultView?.getComputedStyle(
505
- j.current ?? h
506
- ).direction;
507
- B({
508
- x: w === "rtl" ? V.right : V.left,
509
- y: V.bottom
510
- });
511
- }
512
- y(!0);
513
- } else
514
- k(!0);
320
+ const { type: n, from: i, to: o, dataset: m } = e.detail, h = Be(n, m);
321
+ y({
322
+ type: n,
323
+ value: h,
324
+ from: i,
325
+ to: o
326
+ }), g(n), p(!0);
515
327
  },
516
- [n, l]
328
+ [t]
517
329
  );
518
- I(() => {
519
- q || (E(m.Empty), F(null));
520
- }, [q]), I(() => {
521
- !M && v === m.Variable && (E(m.Empty), F(null));
522
- }, [M, v]), I(() => {
523
- const e = (r) => {
524
- r.detail.view === a.current && be(r);
330
+ L(() => {
331
+ M || (g(f.Empty), y(null));
332
+ }, [M]), L(() => {
333
+ const e = (n) => {
334
+ n.detail.view === r.current && U(n);
525
335
  };
526
336
  return window.addEventListener("globalTagClick", e), () => {
527
337
  window.removeEventListener("globalTagClick", e);
528
338
  };
529
- }, [be]);
530
- const Ce = i("imageDefaultTitle"), Se = i("videoDefaultTitle"), Ie = T(
531
- () => Ct.of({
532
- image: Ce,
533
- video: Se
339
+ }, [U]);
340
+ const J = l("imageDefaultTitle"), X = l("videoDefaultTitle"), Y = T(
341
+ () => Ae.of({
342
+ image: J,
343
+ video: X
534
344
  }),
535
- [Ce, Se]
536
- ), Ue = T(() => {
345
+ [J, X]
346
+ ), Ce = T(() => {
537
347
  const e = [
538
- Te.lineWrapping,
539
- Me(),
540
- et(tt),
541
- l ? vt : It
348
+ te.lineWrapping,
349
+ Te(),
350
+ ke(Ve),
351
+ He
542
352
  ];
543
- return n || e.push(de()), g === "quickEdit" && (e.push(
544
- Ie,
545
- Vt,
546
- bt
353
+ return t || e.push(K()), I === "quickEdit" && e.push(
354
+ Y,
355
+ Fe,
356
+ je
547
357
  // fixedTextPlaceholderExtension,
548
358
  // DividerPlaceholder,
549
- ), l || e.push(St)), e.push(
550
- Te.updateListener.of((r) => {
551
- Ve(r);
359
+ ), e.push(
360
+ te.updateListener.of((n) => {
361
+ Q(n);
552
362
  })
553
363
  ), e;
554
364
  }, [
555
- n,
556
- g,
557
- de,
558
- Ve,
559
- Ie,
560
- l
561
- ]), Ye = s(
365
+ t,
366
+ I,
367
+ K,
368
+ Q,
369
+ Y
370
+ ]), Ie = s(
562
371
  (e) => {
563
- if (n)
564
- return;
565
- if (l) {
566
- D?.(e);
567
- return;
568
- }
569
- const r = a.current?.state.selection.main.head ?? -1;
570
- Ee(
571
- e,
572
- r
573
- ) ? G.current = e : (G.current = null, O(e)), D?.(e);
372
+ t || k?.(e);
574
373
  },
575
- [O, D, n, l]
576
- ), ve = !l && !n && te, x = T(
374
+ [k, t]
375
+ ), C = T(
577
376
  () => ({
578
- insertTextAtCursor: P,
579
- replaceSelection: me,
580
- focus: fe,
581
- getContent: he,
582
- setContent: pe
377
+ insertTextAtCursor: d,
378
+ replaceSelection: z,
379
+ focus: G,
380
+ getContent: W,
381
+ setContent: _
583
382
  }),
584
- [fe, he, P, me, pe]
585
- ), we = s(
383
+ [G, W, d, z, _]
384
+ ), Z = s(
586
385
  (e) => {
587
- n || "render" in e || e.onClick?.(x);
386
+ t || "render" in e || e.onClick?.(C);
588
387
  },
589
- [n, x]
590
- ), Je = T(() => J?.length ? /* @__PURE__ */ p("div", { className: "markdown-flow-editor-toolbar-right", children: J.map((e) => {
388
+ [t, C]
389
+ ), ve = T(() => D?.length ? /* @__PURE__ */ a("div", { className: "markdown-flow-editor-toolbar-right", children: D.map((e) => {
591
390
  if ("render" in e)
592
- return /* @__PURE__ */ p(
391
+ return /* @__PURE__ */ a(
593
392
  "div",
594
393
  {
595
394
  className: "markdown-flow-editor-toolbar-right-item",
596
- children: e.render(x)
395
+ children: e.render(C)
597
396
  },
598
397
  e.key
599
398
  );
600
- const r = e.label || e.tooltip || void 0, o = /* @__PURE__ */ $(
399
+ const n = e.label || e.tooltip || void 0, i = /* @__PURE__ */ w(
601
400
  "button",
602
401
  {
603
402
  type: "button",
604
- disabled: n || e.disabled,
605
- onClick: () => we(e),
403
+ disabled: t || e.disabled,
404
+ onClick: () => Z(e),
606
405
  className: "markdown-flow-editor-toolbar-right-button",
607
- "aria-label": r,
406
+ "aria-label": n,
608
407
  title: e.label || e.tooltip,
609
408
  children: [
610
- e.icon ? /* @__PURE__ */ p("span", { className: "toolbar-right-icon", children: e.icon }) : null,
611
- e.label ? /* @__PURE__ */ p("span", { className: "toolbar-right-label", children: e.label }) : null
409
+ e.icon ? /* @__PURE__ */ a("span", { className: "toolbar-right-icon", children: e.icon }) : null,
410
+ e.label ? /* @__PURE__ */ a("span", { className: "toolbar-right-label", children: e.label }) : null
612
411
  ]
613
412
  },
614
413
  e.key
615
- ), t = e.tooltip ? /* @__PURE__ */ $(rt, { children: [
616
- /* @__PURE__ */ p(nt, { asChild: !0, children: o }),
617
- /* @__PURE__ */ p(
618
- ot,
414
+ ), o = e.tooltip ? /* @__PURE__ */ w(Oe, { children: [
415
+ /* @__PURE__ */ a(Ee, { asChild: !0, children: i }),
416
+ /* @__PURE__ */ a(
417
+ Se,
619
418
  {
620
419
  side: "top",
621
- dir: z,
622
- lang: A,
420
+ dir: S,
421
+ lang: E,
623
422
  children: e.tooltip
624
423
  }
625
424
  )
626
- ] }) : o;
627
- return /* @__PURE__ */ p(
425
+ ] }) : i;
426
+ return /* @__PURE__ */ a(
628
427
  "div",
629
428
  {
630
429
  className: "markdown-flow-editor-toolbar-right-item",
631
- children: t
430
+ children: o
632
431
  },
633
432
  e.key
634
433
  );
635
434
  }) }) : null, [
636
- n,
637
- x,
638
- we,
639
- z,
640
- A,
641
- J
435
+ t,
436
+ C,
437
+ Z,
438
+ S,
439
+ E,
440
+ D
642
441
  ]);
643
- return I(() => {
644
- xe?.(x);
645
- }, [x]), /* @__PURE__ */ $(
442
+ return L(() => {
443
+ le?.(C);
444
+ }, [C]), /* @__PURE__ */ w(
646
445
  "div",
647
446
  {
648
447
  className: "markdown-flow-editor",
649
- ref: j,
650
- dir: ie,
651
- lang: se,
652
- "data-disabled": n ? "true" : void 0,
653
- "aria-disabled": n,
448
+ ref: R,
449
+ dir: $,
450
+ lang: q,
451
+ "data-disabled": t ? "true" : void 0,
452
+ "aria-disabled": t,
654
453
  children: [
655
- /* @__PURE__ */ p(
656
- it,
657
- {
658
- disabled: n,
659
- enableVariables: !l,
660
- labels: S,
661
- tooltipDirection: z,
662
- tooltipLanguage: A,
663
- onSelect: re,
664
- onInsertVariablePlaceholder: Fe,
665
- onVariableSearchToggle: ze,
666
- onVariableSearchClose: b,
667
- onInsertConfirmOutput: $e,
668
- onInsertLink: He,
669
- onInsertButton: je,
670
- onInsertSingleChoice: _e,
671
- onInsertMultiChoice: Ge,
672
- onInsertInputField: Qe,
673
- variableSearchActive: ve,
674
- rightSlot: Je
675
- }
676
- ),
677
- !l && /* @__PURE__ */ p(
678
- st,
454
+ /* @__PURE__ */ a(
455
+ xe,
679
456
  {
680
- open: ve,
681
- anchorElement: Q.current,
682
- onClose: b,
683
- onSelect: ge,
684
- variables: ce,
685
- systemVariables: _,
686
- labels: Ne
457
+ disabled: t,
458
+ labels: u,
459
+ tooltipDirection: S,
460
+ tooltipLanguage: E,
461
+ onSelect: B,
462
+ onInsertConfirmOutput: ae,
463
+ onInsertLink: ue,
464
+ onInsertButton: me,
465
+ onInsertSingleChoice: fe,
466
+ onInsertMultiChoice: pe,
467
+ onInsertInputField: he,
468
+ rightSlot: ve
687
469
  }
688
470
  ),
689
- /* @__PURE__ */ p("div", { className: "markdown-flow-editor-body relative overflow-auto", children: /* @__PURE__ */ $(ct.Provider, { value: Be, children: [
690
- /* @__PURE__ */ p(
691
- Ze,
471
+ /* @__PURE__ */ a("div", { className: "markdown-flow-editor-body relative overflow-auto", children: /* @__PURE__ */ w(be.Provider, { value: ce, children: [
472
+ /* @__PURE__ */ a(
473
+ we,
692
474
  {
693
- extensions: Ue,
475
+ extensions: Ce,
694
476
  basicSetup: {
695
477
  lineNumbers: !1,
696
478
  searchKeymap: !1,
@@ -700,66 +482,49 @@ const ke = [], Ee = (C, g) => {
700
482
  foldGutter: !1
701
483
  },
702
484
  className: "rounded-md",
703
- placeholder: De,
704
- value: C,
485
+ placeholder: se,
486
+ value: b,
705
487
  theme: "light",
706
488
  minHeight: "2rem",
707
- editable: !n,
708
- onChange: Ye,
709
- onBlur: ye
489
+ editable: !t,
490
+ onChange: Ie,
491
+ onBlur: ne
710
492
  }
711
493
  ),
712
- !n && /* @__PURE__ */ $(
713
- at,
494
+ !t && /* @__PURE__ */ w(
495
+ ye,
714
496
  {
715
- dir: z,
716
- lang: A,
497
+ dir: S,
498
+ lang: E,
717
499
  labels: {
718
- closeButtonLabel: i("dialogCloseLabel"),
719
- title: v === m.Image ? i("dialogTitleImage") : v === m.Video ? i("dialogTitleVideo") : v === m.Variable ? i("dialogTitleVariable") : i("dialogTitle")
500
+ closeButtonLabel: l("dialogCloseLabel"),
501
+ title: v === f.Image ? l("dialogTitleImage") : v === f.Video ? l("dialogTitleVideo") : l("dialogTitle")
720
502
  },
721
503
  children: [
722
- v === m.Image && /* @__PURE__ */ p(
723
- ut,
504
+ v === f.Image && /* @__PURE__ */ a(
505
+ Pe,
724
506
  {
725
- value: u?.value,
726
- onSelect: We,
727
- uploadProps: Pe
507
+ value: c?.value,
508
+ onSelect: ge,
509
+ uploadProps: ie
728
510
  }
729
511
  ),
730
- v === m.Video && /* @__PURE__ */ p(
731
- mt,
512
+ v === f.Video && /* @__PURE__ */ a(
513
+ De,
732
514
  {
733
- value: u?.value,
734
- onSelect: Ke
515
+ value: c?.value,
516
+ onSelect: de
735
517
  }
736
518
  )
737
519
  ]
738
520
  }
739
- ),
740
- !n && !l && /* @__PURE__ */ p(lt, { dir: z, lang: A, children: /* @__PURE__ */ p(
741
- ft,
742
- {
743
- variables: ce,
744
- systemVariables: _,
745
- selectedName: u?.value?.variableName,
746
- onSelect: ge,
747
- onAddVariable: (e) => {
748
- ee((r) => {
749
- const o = e.name;
750
- return r.some(
751
- (c) => c.name === o
752
- ) ? r : [e, ...r];
753
- });
754
- }
755
- }
756
- ) })
521
+ )
757
522
  ] }) })
758
523
  ]
759
524
  }
760
525
  );
761
526
  };
762
527
  export {
763
- ur as default
528
+ Tt as default
764
529
  };
765
530
  //# sourceMappingURL=MarkdownFlowEditor.es.js.map