markdown-flow-ui 0.3.4 → 0.3.6

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 (1211) hide show
  1. package/dist/_virtual/{advancedFormat.es2.js → advancedFormat2.es.js} +1 -1
  2. package/dist/_virtual/advancedFormat2.es.js.map +1 -0
  3. package/dist/_virtual/core.cjs +1 -1
  4. package/dist/_virtual/core.es.js +1 -1
  5. package/dist/_virtual/{cose-base.es2.js → cose-base2.es.js} +1 -1
  6. package/dist/_virtual/cose-base2.es.js.map +1 -0
  7. package/dist/_virtual/{customParseFormat.es2.js → customParseFormat2.es.js} +1 -1
  8. package/dist/_virtual/customParseFormat2.es.js.map +1 -0
  9. package/dist/_virtual/cytoscape-cose-bilkent2.es.js +5 -0
  10. package/dist/_virtual/cytoscape-cose-bilkent2.es.js.map +1 -0
  11. package/dist/_virtual/{cytoscape-fcose.es2.js → cytoscape-fcose2.es.js} +1 -1
  12. package/dist/_virtual/cytoscape-fcose2.es.js.map +1 -0
  13. package/dist/_virtual/{dayjs.min2.cjs → dayjs2.min.cjs} +1 -1
  14. package/dist/_virtual/dayjs2.min.cjs.map +1 -0
  15. package/dist/_virtual/{dayjs.min.es2.js → dayjs2.min.es.js} +1 -1
  16. package/dist/_virtual/dayjs2.min.es.js.map +1 -0
  17. package/dist/_virtual/{duration.es2.js → duration2.es.js} +1 -1
  18. package/dist/_virtual/duration2.es.js.map +1 -0
  19. package/dist/_virtual/{index.es10.js → index10.es.js} +1 -1
  20. package/dist/_virtual/index10.es.js.map +1 -0
  21. package/dist/_virtual/{index.es11.js → index11.es.js} +1 -1
  22. package/dist/_virtual/index11.es.js.map +1 -0
  23. package/dist/_virtual/{index.es12.js → index12.es.js} +1 -1
  24. package/dist/_virtual/index12.es.js.map +1 -0
  25. package/dist/_virtual/{index.es9.js → index2.es.js} +1 -1
  26. package/dist/_virtual/index2.es.js.map +1 -0
  27. package/dist/_virtual/index3.cjs +1 -1
  28. package/dist/_virtual/{index.es4.js → index3.es.js} +1 -1
  29. package/dist/_virtual/index3.es.js.map +1 -0
  30. package/dist/_virtual/index4.cjs +1 -1
  31. package/dist/_virtual/{index.es3.js → index4.es.js} +1 -1
  32. package/dist/_virtual/index4.es.js.map +1 -0
  33. package/dist/_virtual/{index.es5.js → index5.es.js} +1 -1
  34. package/dist/_virtual/index5.es.js.map +1 -0
  35. package/dist/_virtual/index6.cjs +1 -1
  36. package/dist/_virtual/{index.es7.js → index6.es.js} +1 -1
  37. package/dist/_virtual/index6.es.js.map +1 -0
  38. package/dist/_virtual/index7.cjs +1 -1
  39. package/dist/_virtual/{index.es6.js → index7.es.js} +1 -1
  40. package/dist/_virtual/index7.es.js.map +1 -0
  41. package/dist/_virtual/{index.es8.js → index8.es.js} +1 -1
  42. package/dist/_virtual/index8.es.js.map +1 -0
  43. package/dist/_virtual/{index.es2.js → index9.es.js} +1 -1
  44. package/dist/_virtual/index9.es.js.map +1 -0
  45. package/dist/_virtual/{isoWeek.es2.js → isoWeek2.es.js} +1 -1
  46. package/dist/_virtual/isoWeek2.es.js.map +1 -0
  47. package/dist/_virtual/{layout-base.es2.js → layout-base2.es.js} +1 -1
  48. package/dist/_virtual/layout-base2.es.js.map +1 -0
  49. package/dist/components/ContentRender/ContentRender.cjs +2 -2
  50. package/dist/components/ContentRender/ContentRender.cjs.map +1 -1
  51. package/dist/components/ContentRender/ContentRender.d.ts +2 -0
  52. package/dist/components/ContentRender/ContentRender.es.js +513 -509
  53. package/dist/components/ContentRender/ContentRender.es.js.map +1 -1
  54. package/dist/components/ContentRender/IframeSandbox.es.js +1 -1
  55. package/dist/components/ContentRender/MarkdownFlowInput.cjs +1 -1
  56. package/dist/components/ContentRender/MarkdownFlowInput.cjs.map +1 -1
  57. package/dist/components/ContentRender/MarkdownFlowInput.d.ts +2 -0
  58. package/dist/components/ContentRender/MarkdownFlowInput.es.js +40 -38
  59. package/dist/components/ContentRender/MarkdownFlowInput.es.js.map +1 -1
  60. package/dist/components/ContentRender/plugins/CustomVariable.cjs +1 -1
  61. package/dist/components/ContentRender/plugins/CustomVariable.cjs.map +1 -1
  62. package/dist/components/ContentRender/plugins/CustomVariable.d.ts +2 -1
  63. package/dist/components/ContentRender/plugins/CustomVariable.es.js +110 -90
  64. package/dist/components/ContentRender/plugins/CustomVariable.es.js.map +1 -1
  65. package/dist/components/ContentRender/plugins/MermaidChart.cjs.map +1 -1
  66. package/dist/components/ContentRender/utils/accept-placeholder.cjs +2 -0
  67. package/dist/components/ContentRender/utils/accept-placeholder.cjs.map +1 -0
  68. package/dist/components/ContentRender/utils/accept-placeholder.d.ts +3 -0
  69. package/dist/components/ContentRender/utils/accept-placeholder.es.js +10 -0
  70. package/dist/components/ContentRender/utils/accept-placeholder.es.js.map +1 -0
  71. package/dist/components/ContentRender/utils/video-markdown-run.es.js +2 -2
  72. package/dist/components/MarkdownFlow/MarkdownFlow.cjs +1 -1
  73. package/dist/components/MarkdownFlow/MarkdownFlow.cjs.map +1 -1
  74. package/dist/components/MarkdownFlow/MarkdownFlow.d.ts +2 -0
  75. package/dist/components/MarkdownFlow/MarkdownFlow.es.js +23 -21
  76. package/dist/components/MarkdownFlow/MarkdownFlow.es.js.map +1 -1
  77. package/dist/components/MarkdownFlow/ScrollToBottomControl.cjs +1 -1
  78. package/dist/components/MarkdownFlow/ScrollToBottomControl.cjs.map +1 -1
  79. package/dist/components/MarkdownFlow/ScrollToBottomControl.es.js +1 -1
  80. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs.map +1 -1
  81. package/dist/components/Slide/Slide.cjs +1 -1
  82. package/dist/components/Slide/Slide.cjs.map +1 -1
  83. package/dist/components/Slide/Slide.d.ts +2 -0
  84. package/dist/components/Slide/Slide.es.js +347 -343
  85. package/dist/components/Slide/Slide.es.js.map +1 -1
  86. package/dist/components/ui/inputGroup/input-group.d.ts +1 -1
  87. package/dist/components/ui/inputGroup/textarea.cjs +1 -1
  88. package/dist/components/ui/inputGroup/textarea.es.js +1 -1
  89. package/dist/components/ui/tooltip.cjs +1 -1
  90. package/dist/components/ui/tooltip.cjs.map +1 -1
  91. package/dist/components/ui/tooltip.es.js +12 -12
  92. package/dist/index.cjs +1 -1
  93. package/dist/index.es.js +3 -3
  94. package/dist/markdown-flow-ui-lib.css +2 -2
  95. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs +1 -1
  96. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs.map +1 -1
  97. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.es.js +4 -4
  98. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.es.js.map +1 -1
  99. package/dist/node_modules/@braintree/sanitize-url/dist/index.es.js +1 -1
  100. package/dist/node_modules/@codemirror/autocomplete/dist/index.cjs +1 -1
  101. package/dist/node_modules/@codemirror/autocomplete/dist/index.cjs.map +1 -1
  102. package/dist/node_modules/@codemirror/autocomplete/dist/index.es.js +172 -159
  103. package/dist/node_modules/@codemirror/autocomplete/dist/index.es.js.map +1 -1
  104. package/dist/node_modules/@codemirror/commands/dist/index.cjs +1 -1
  105. package/dist/node_modules/@codemirror/commands/dist/index.cjs.map +1 -1
  106. package/dist/node_modules/@codemirror/commands/dist/index.es.js +376 -333
  107. package/dist/node_modules/@codemirror/commands/dist/index.es.js.map +1 -1
  108. package/dist/node_modules/@codemirror/lang-css/dist/index.es.js +3 -3
  109. package/dist/node_modules/@codemirror/lang-html/dist/index.cjs +1 -1
  110. package/dist/node_modules/@codemirror/lang-html/dist/index.cjs.map +1 -1
  111. package/dist/node_modules/@codemirror/lang-html/dist/index.es.js +238 -228
  112. package/dist/node_modules/@codemirror/lang-html/dist/index.es.js.map +1 -1
  113. package/dist/node_modules/@codemirror/lang-javascript/dist/index.cjs +4 -4
  114. package/dist/node_modules/@codemirror/lang-javascript/dist/index.cjs.map +1 -1
  115. package/dist/node_modules/@codemirror/lang-javascript/dist/index.es.js +62 -50
  116. package/dist/node_modules/@codemirror/lang-javascript/dist/index.es.js.map +1 -1
  117. package/dist/node_modules/@codemirror/lang-markdown/dist/index.cjs +1 -1
  118. package/dist/node_modules/@codemirror/lang-markdown/dist/index.cjs.map +1 -1
  119. package/dist/node_modules/@codemirror/lang-markdown/dist/index.es.js +237 -207
  120. package/dist/node_modules/@codemirror/lang-markdown/dist/index.es.js.map +1 -1
  121. package/dist/node_modules/@codemirror/language/dist/index.cjs +1 -1
  122. package/dist/node_modules/@codemirror/language/dist/index.cjs.map +1 -1
  123. package/dist/node_modules/@codemirror/language/dist/index.es.js +302 -296
  124. package/dist/node_modules/@codemirror/language/dist/index.es.js.map +1 -1
  125. package/dist/node_modules/@codemirror/lint/dist/index.cjs +1 -1
  126. package/dist/node_modules/@codemirror/lint/dist/index.cjs.map +1 -1
  127. package/dist/node_modules/@codemirror/lint/dist/index.es.js +281 -236
  128. package/dist/node_modules/@codemirror/lint/dist/index.es.js.map +1 -1
  129. package/dist/node_modules/@codemirror/search/dist/index.cjs +2 -2
  130. package/dist/node_modules/@codemirror/search/dist/index.cjs.map +1 -1
  131. package/dist/node_modules/@codemirror/search/dist/index.es.js +427 -454
  132. package/dist/node_modules/@codemirror/search/dist/index.es.js.map +1 -1
  133. package/dist/node_modules/@codemirror/state/dist/index.cjs +5 -5
  134. package/dist/node_modules/@codemirror/state/dist/index.cjs.map +1 -1
  135. package/dist/node_modules/@codemirror/state/dist/index.es.js +556 -509
  136. package/dist/node_modules/@codemirror/state/dist/index.es.js.map +1 -1
  137. package/dist/node_modules/@codemirror/view/dist/index.cjs +5 -5
  138. package/dist/node_modules/@codemirror/view/dist/index.cjs.map +1 -1
  139. package/dist/node_modules/@codemirror/view/dist/index.es.js +3982 -3507
  140. package/dist/node_modules/@codemirror/view/dist/index.es.js.map +1 -1
  141. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +1 -1
  142. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.cjs.map +1 -1
  143. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.es.js +288 -309
  144. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.es.js.map +1 -1
  145. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +1 -1
  146. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs.map +1 -1
  147. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.es.js +244 -252
  148. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.es.js.map +1 -1
  149. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +1 -1
  150. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs.map +1 -1
  151. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +1 -1
  152. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs.map +1 -1
  153. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.es.js +8 -8
  154. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.es.js.map +1 -1
  155. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.es.js +47 -47
  156. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.es.js.map +1 -1
  157. package/dist/node_modules/@lezer/common/dist/index.cjs +1 -1
  158. package/dist/node_modules/@lezer/common/dist/index.cjs.map +1 -1
  159. package/dist/node_modules/@lezer/common/dist/index.es.js +266 -253
  160. package/dist/node_modules/@lezer/common/dist/index.es.js.map +1 -1
  161. package/dist/node_modules/@lezer/css/dist/index.cjs +1 -1
  162. package/dist/node_modules/@lezer/css/dist/index.cjs.map +1 -1
  163. package/dist/node_modules/@lezer/css/dist/index.es.js +95 -87
  164. package/dist/node_modules/@lezer/css/dist/index.es.js.map +1 -1
  165. package/dist/node_modules/@lezer/highlight/dist/index.cjs +1 -1
  166. package/dist/node_modules/@lezer/highlight/dist/index.cjs.map +1 -1
  167. package/dist/node_modules/@lezer/highlight/dist/index.es.js +150 -139
  168. package/dist/node_modules/@lezer/highlight/dist/index.es.js.map +1 -1
  169. package/dist/node_modules/@lezer/html/dist/index.cjs +1 -1
  170. package/dist/node_modules/@lezer/html/dist/index.cjs.map +1 -1
  171. package/dist/node_modules/@lezer/html/dist/index.es.js +88 -95
  172. package/dist/node_modules/@lezer/html/dist/index.es.js.map +1 -1
  173. package/dist/node_modules/@lezer/javascript/dist/index.cjs +1 -1
  174. package/dist/node_modules/@lezer/javascript/dist/index.cjs.map +1 -1
  175. package/dist/node_modules/@lezer/javascript/dist/index.es.js +49 -49
  176. package/dist/node_modules/@lezer/javascript/dist/index.es.js.map +1 -1
  177. package/dist/node_modules/@lezer/lr/dist/index.cjs +1 -1
  178. package/dist/node_modules/@lezer/lr/dist/index.cjs.map +1 -1
  179. package/dist/node_modules/@lezer/lr/dist/index.es.js +148 -137
  180. package/dist/node_modules/@lezer/lr/dist/index.es.js.map +1 -1
  181. package/dist/node_modules/@lezer/markdown/dist/index.cjs +5 -5
  182. package/dist/node_modules/@lezer/markdown/dist/index.cjs.map +1 -1
  183. package/dist/node_modules/@lezer/markdown/dist/index.es.js +305 -269
  184. package/dist/node_modules/@lezer/markdown/dist/index.es.js.map +1 -1
  185. package/dist/node_modules/@marijn/find-cluster-break/src/index.cjs +1 -1
  186. package/dist/node_modules/@marijn/find-cluster-break/src/index.cjs.map +1 -1
  187. package/dist/node_modules/@marijn/find-cluster-break/src/index.es.js +31 -31
  188. package/dist/node_modules/@marijn/find-cluster-break/src/index.es.js.map +1 -1
  189. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7GRP2DOG.es.js +4 -3
  190. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7GRP2DOG.es.js.map +1 -1
  191. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2ZTRR5NV.es.js +1 -1
  192. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-3Z5EZCMW.es.js +1 -1
  193. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5V3GS4D5.es.js +1 -1
  194. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-6AZGARVD.es.js +1 -1
  195. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-6EIED4P4.es.js +1 -1
  196. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-6K3QC6MW.es.js +1 -1
  197. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-6TQVIW2G.es.js +1 -1
  198. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-747NJXEK.es.js +1 -1
  199. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-I5DQTOEV.es.js +1 -1
  200. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ICYGCRZG.es.js +1 -1
  201. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-IH6LHLGP.es.js +1 -1
  202. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KI3K4JFJ.es.js +1 -1
  203. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-OUJLGHUK.es.js +1 -1
  204. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UY3FDG6J.es.js +1 -1
  205. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-XHIXRSVI.es.js +1 -1
  206. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/cynefin-OW5HDTMX.es.js +4 -3
  207. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/cynefin-OW5HDTMX.es.js.map +1 -1
  208. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-NTZA5JFV.es.js +4 -3
  209. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-NTZA5JFV.es.js.map +1 -1
  210. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-4MIJSDKK.es.js +3 -2
  211. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-4MIJSDKK.es.js.map +1 -1
  212. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-A6RAGUB7.es.js +4 -3
  213. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-A6RAGUB7.es.js.map +1 -1
  214. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-AYTQ26CC.es.js +4 -3
  215. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-AYTQ26CC.es.js.map +1 -1
  216. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-WAS4IAKB.es.js +4 -3
  217. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-WAS4IAKB.es.js.map +1 -1
  218. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-RG4KPBEZ.es.js +4 -3
  219. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-RG4KPBEZ.es.js.map +1 -1
  220. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-74A4TZTK.es.js +4 -3
  221. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-74A4TZTK.es.js.map +1 -1
  222. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-abnf-HS5TGJTU.es.js +4 -3
  223. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-abnf-HS5TGJTU.es.js.map +1 -1
  224. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-ebnf-LZEXJU2U.es.js +4 -3
  225. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-ebnf-LZEXJU2U.es.js.map +1 -1
  226. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-peg-WCYAUIDC.es.js +4 -3
  227. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-peg-WCYAUIDC.es.js.map +1 -1
  228. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-Q6P3EWNA.es.js +4 -3
  229. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-Q6P3EWNA.es.js.map +1 -1
  230. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-WGGIJYW6.es.js +4 -3
  231. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-WGGIJYW6.es.js.map +1 -1
  232. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-WFR3VGLG.es.js +4 -3
  233. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-WFR3VGLG.es.js.map +1 -1
  234. package/dist/node_modules/@radix-ui/primitive/dist/index.cjs +1 -1
  235. package/dist/node_modules/@radix-ui/primitive/dist/index.cjs.map +1 -1
  236. package/dist/node_modules/@radix-ui/primitive/dist/index.es.js +46 -6
  237. package/dist/node_modules/@radix-ui/primitive/dist/index.es.js.map +1 -1
  238. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +1 -1
  239. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +1 -1
  240. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +20 -16
  241. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +1 -1
  242. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs +1 -1
  243. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -1
  244. package/dist/node_modules/@radix-ui/react-context/dist/index.es.js +71 -43
  245. package/dist/node_modules/@radix-ui/react-context/dist/index.es.js.map +1 -1
  246. package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs +1 -1
  247. package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs.map +1 -1
  248. package/dist/node_modules/@radix-ui/react-dialog/dist/index.es.js +16 -16
  249. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +1 -1
  250. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -1
  251. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js +184 -96
  252. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +1 -1
  253. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +1 -1
  254. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -1
  255. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.js +3 -3
  256. package/dist/node_modules/@radix-ui/react-id/dist/index.cjs +1 -1
  257. package/dist/node_modules/@radix-ui/react-id/dist/index.cjs.map +1 -1
  258. package/dist/node_modules/@radix-ui/react-id/dist/index.es.js +10 -9
  259. package/dist/node_modules/@radix-ui/react-id/dist/index.es.js.map +1 -1
  260. package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs +1 -1
  261. package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -1
  262. package/dist/node_modules/@radix-ui/react-portal/dist/index.es.js +14 -12
  263. package/dist/node_modules/@radix-ui/react-portal/dist/index.es.js.map +1 -1
  264. package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs +1 -1
  265. package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs.map +1 -1
  266. package/dist/node_modules/@radix-ui/react-presence/dist/index.es.js +70 -37
  267. package/dist/node_modules/@radix-ui/react-presence/dist/index.es.js.map +1 -1
  268. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs +1 -1
  269. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -1
  270. package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js +16 -14
  271. package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -1
  272. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -1
  273. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
  274. package/dist/node_modules/@radix-ui/react-slot/dist/index.es.js +1 -1
  275. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs +1 -1
  276. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs.map +1 -1
  277. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.es.js +261 -250
  278. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.es.js.map +1 -1
  279. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/primitive/dist/index.cjs.map +1 -0
  280. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/primitive/dist/index.es.js.map +1 -0
  281. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-arrow/dist/index.cjs +2 -0
  282. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-arrow/dist/index.cjs.map +1 -0
  283. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-arrow/dist/index.es.js +25 -0
  284. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-arrow/dist/index.es.js.map +1 -0
  285. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -0
  286. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-context/dist/index.es.js.map +1 -0
  287. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +2 -0
  288. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -0
  289. package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js +1 -1
  290. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +1 -0
  291. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +2 -0
  292. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -0
  293. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-focus-scope/dist/index.es.js +105 -0
  294. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-focus-scope/dist/index.es.js.map +1 -0
  295. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/dist/index.cjs +2 -0
  296. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/dist/index.cjs.map +1 -0
  297. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/dist/index.es.js +271 -0
  298. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/dist/index.es.js.map +1 -0
  299. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-portal/dist/index.cjs +2 -0
  300. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -0
  301. package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/react-portal/dist/index.es.js +1 -1
  302. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-portal/dist/index.es.js.map +1 -0
  303. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-primitive/dist/index.cjs +2 -0
  304. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -0
  305. package/dist/node_modules/@radix-ui/{react-focus-scope → react-tooltip}/node_modules/@radix-ui/react-primitive/dist/index.es.js +1 -1
  306. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -0
  307. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -1
  308. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
  309. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.es.js +94 -7
  310. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -1
  311. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +2 -0
  312. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +1 -0
  313. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +16 -0
  314. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +1 -0
  315. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +2 -0
  316. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.map +1 -0
  317. package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js +2 -2
  318. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js.map +1 -0
  319. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +1 -1
  320. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +1 -1
  321. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +8 -6
  322. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +1 -1
  323. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +1 -1
  324. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.map +1 -1
  325. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js +56 -39
  326. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js.map +1 -1
  327. package/dist/node_modules/@radix-ui/react-use-effect-event/dist/index.cjs.map +1 -0
  328. package/dist/node_modules/@radix-ui/react-use-effect-event/dist/index.es.js.map +1 -0
  329. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.map +1 -1
  330. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js.map +1 -1
  331. package/dist/node_modules/@radix-ui/react-use-size/dist/index.cjs +1 -1
  332. package/dist/node_modules/@radix-ui/react-use-size/dist/index.cjs.map +1 -1
  333. package/dist/node_modules/@radix-ui/react-use-size/dist/index.es.js +28 -21
  334. package/dist/node_modules/@radix-ui/react-use-size/dist/index.es.js.map +1 -1
  335. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +1 -1
  336. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs.map +1 -1
  337. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.es.js +15 -15
  338. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.es.js.map +1 -1
  339. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive/dist/index.cjs +2 -0
  340. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -0
  341. package/dist/node_modules/@radix-ui/{react-dialog → react-visually-hidden}/node_modules/@radix-ui/react-primitive/dist/index.es.js +1 -1
  342. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -0
  343. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.cjs +2 -0
  344. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -0
  345. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.es.js +99 -0
  346. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -0
  347. package/dist/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.cjs +1 -1
  348. package/dist/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.cjs.map +1 -1
  349. package/dist/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.es.js +11 -13
  350. package/dist/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.es.js.map +1 -1
  351. package/dist/node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.cjs +1 -1
  352. package/dist/node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.cjs.map +1 -1
  353. package/dist/node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.es.js +20 -27
  354. package/dist/node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.es.js.map +1 -1
  355. package/dist/node_modules/@uiw/react-codemirror/esm/index.cjs +1 -1
  356. package/dist/node_modules/@uiw/react-codemirror/esm/index.cjs.map +1 -1
  357. package/dist/node_modules/@uiw/react-codemirror/esm/index.es.js +51 -80
  358. package/dist/node_modules/@uiw/react-codemirror/esm/index.es.js.map +1 -1
  359. package/dist/node_modules/@uiw/react-codemirror/esm/theme/dimensionTheme.cjs +2 -0
  360. package/dist/node_modules/@uiw/react-codemirror/esm/theme/dimensionTheme.cjs.map +1 -0
  361. package/dist/node_modules/@uiw/react-codemirror/esm/theme/dimensionTheme.es.js +33 -0
  362. package/dist/node_modules/@uiw/react-codemirror/esm/theme/dimensionTheme.es.js.map +1 -0
  363. package/dist/node_modules/@uiw/react-codemirror/esm/useCodeMirror.cjs +1 -1
  364. package/dist/node_modules/@uiw/react-codemirror/esm/useCodeMirror.cjs.map +1 -1
  365. package/dist/node_modules/@uiw/react-codemirror/esm/useCodeMirror.es.js +64 -98
  366. package/dist/node_modules/@uiw/react-codemirror/esm/useCodeMirror.es.js.map +1 -1
  367. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.cjs +1 -1
  368. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.cjs.map +1 -1
  369. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.es.js +65 -42
  370. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.es.js.map +1 -1
  371. package/dist/node_modules/@ungap/structured-clone/esm/serialize.cjs +1 -1
  372. package/dist/node_modules/@ungap/structured-clone/esm/serialize.cjs.map +1 -1
  373. package/dist/node_modules/@ungap/structured-clone/esm/serialize.es.js +62 -58
  374. package/dist/node_modules/@ungap/structured-clone/esm/serialize.es.js.map +1 -1
  375. package/dist/node_modules/classnames/index.es.js +1 -1
  376. package/dist/node_modules/clsx/dist/clsx.cjs +1 -1
  377. package/dist/node_modules/clsx/dist/clsx.cjs.map +1 -1
  378. package/dist/node_modules/clsx/dist/clsx.es.js +7 -8
  379. package/dist/node_modules/clsx/dist/clsx.es.js.map +1 -1
  380. package/dist/node_modules/cose-base/cose-base.es.js +1 -1
  381. package/dist/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.es.js +1 -1
  382. package/dist/node_modules/cytoscape-fcose/cytoscape-fcose.es.js +1 -1
  383. package/dist/node_modules/d3-color/src/lab.cjs +1 -1
  384. package/dist/node_modules/d3-color/src/lab.cjs.map +1 -1
  385. package/dist/node_modules/d3-color/src/lab.es.js +4 -5
  386. package/dist/node_modules/d3-format/src/defaultLocale.cjs +1 -1
  387. package/dist/node_modules/d3-format/src/defaultLocale.cjs.map +1 -1
  388. package/dist/node_modules/d3-format/src/defaultLocale.es.js +3 -4
  389. package/dist/node_modules/d3-time-format/src/defaultLocale.cjs +1 -1
  390. package/dist/node_modules/d3-time-format/src/defaultLocale.cjs.map +1 -1
  391. package/dist/node_modules/d3-time-format/src/defaultLocale.es.js +2 -3
  392. package/dist/node_modules/d3-time-format/src/locale.es.js +14 -14
  393. package/dist/node_modules/d3-transition/src/selection/transition.cjs +1 -1
  394. package/dist/node_modules/d3-transition/src/selection/transition.es.js +4 -4
  395. package/dist/node_modules/d3-transition/src/transition/interpolate.cjs +1 -1
  396. package/dist/node_modules/d3-transition/src/transition/interpolate.es.js +3 -3
  397. package/dist/node_modules/dagre-d3-es/src/dagre/layout.cjs +1 -1
  398. package/dist/node_modules/dagre-d3-es/src/dagre/layout.es.js +7 -7
  399. package/dist/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.cjs +1 -1
  400. package/dist/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.es.js +4 -4
  401. package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.cjs +1 -1
  402. package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.es.js +14 -14
  403. package/dist/node_modules/dagre-d3-es/src/dagre/util.cjs +1 -1
  404. package/dist/node_modules/dagre-d3-es/src/dagre/util.es.js +7 -7
  405. package/dist/node_modules/dayjs/dayjs.min.cjs +1 -1
  406. package/dist/node_modules/dayjs/dayjs.min.es.js +1 -1
  407. package/dist/node_modules/dayjs/plugin/advancedFormat.es.js +1 -1
  408. package/dist/node_modules/dayjs/plugin/customParseFormat.es.js +1 -1
  409. package/dist/node_modules/dayjs/plugin/duration.es.js +1 -1
  410. package/dist/node_modules/dayjs/plugin/isoWeek.es.js +1 -1
  411. package/dist/node_modules/decode-named-character-reference/index.dom.cjs.map +1 -1
  412. package/dist/node_modules/decode-named-character-reference/index.dom.es.js +1 -5
  413. package/dist/node_modules/decode-named-character-reference/index.dom.es.js.map +1 -1
  414. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.cjs +1 -1
  415. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.es.js +1 -1
  416. package/dist/node_modules/hast-util-to-parse5/lib/index.cjs +1 -1
  417. package/dist/node_modules/hast-util-to-parse5/lib/index.cjs.map +1 -1
  418. package/dist/node_modules/hast-util-to-parse5/lib/index.es.js +2 -2
  419. package/dist/node_modules/hast-util-to-parse5/lib/index.es.js.map +1 -1
  420. package/dist/node_modules/hast-util-to-text/lib/index.cjs +3 -3
  421. package/dist/node_modules/hast-util-to-text/lib/index.cjs.map +1 -1
  422. package/dist/node_modules/hast-util-to-text/lib/index.es.js +136 -84
  423. package/dist/node_modules/hast-util-to-text/lib/index.es.js.map +1 -1
  424. package/dist/node_modules/highlight.js/es/languages/c.cjs +1 -1
  425. package/dist/node_modules/highlight.js/es/languages/c.cjs.map +1 -1
  426. package/dist/node_modules/highlight.js/es/languages/c.es.js +122 -63
  427. package/dist/node_modules/highlight.js/es/languages/c.es.js.map +1 -1
  428. package/dist/node_modules/highlight.js/es/languages/cpp.cjs +1 -1
  429. package/dist/node_modules/highlight.js/es/languages/cpp.cjs.map +1 -1
  430. package/dist/node_modules/highlight.js/es/languages/cpp.es.js +65 -48
  431. package/dist/node_modules/highlight.js/es/languages/cpp.es.js.map +1 -1
  432. package/dist/node_modules/highlight.js/es/languages/css.cjs +1 -1
  433. package/dist/node_modules/highlight.js/es/languages/css.cjs.map +1 -1
  434. package/dist/node_modules/highlight.js/es/languages/css.es.js +17 -6
  435. package/dist/node_modules/highlight.js/es/languages/css.es.js.map +1 -1
  436. package/dist/node_modules/highlight.js/es/languages/go.cjs +1 -1
  437. package/dist/node_modules/highlight.js/es/languages/go.cjs.map +1 -1
  438. package/dist/node_modules/highlight.js/es/languages/go.es.js +7 -2
  439. package/dist/node_modules/highlight.js/es/languages/go.es.js.map +1 -1
  440. package/dist/node_modules/highlight.js/es/languages/java.cjs +1 -1
  441. package/dist/node_modules/highlight.js/es/languages/java.cjs.map +1 -1
  442. package/dist/node_modules/highlight.js/es/languages/java.es.js +48 -39
  443. package/dist/node_modules/highlight.js/es/languages/java.es.js.map +1 -1
  444. package/dist/node_modules/highlight.js/es/languages/javascript.cjs +1 -1
  445. package/dist/node_modules/highlight.js/es/languages/javascript.cjs.map +1 -1
  446. package/dist/node_modules/highlight.js/es/languages/javascript.es.js +4 -2
  447. package/dist/node_modules/highlight.js/es/languages/javascript.es.js.map +1 -1
  448. package/dist/node_modules/highlight.js/es/languages/json.cjs +1 -1
  449. package/dist/node_modules/highlight.js/es/languages/json.cjs.map +1 -1
  450. package/dist/node_modules/highlight.js/es/languages/json.es.js +15 -9
  451. package/dist/node_modules/highlight.js/es/languages/json.es.js.map +1 -1
  452. package/dist/node_modules/highlight.js/es/languages/lua.cjs +1 -1
  453. package/dist/node_modules/highlight.js/es/languages/lua.cjs.map +1 -1
  454. package/dist/node_modules/highlight.js/es/languages/lua.es.js +1 -1
  455. package/dist/node_modules/highlight.js/es/languages/lua.es.js.map +1 -1
  456. package/dist/node_modules/highlight.js/es/languages/markdown.cjs +1 -1
  457. package/dist/node_modules/highlight.js/es/languages/markdown.cjs.map +1 -1
  458. package/dist/node_modules/highlight.js/es/languages/markdown.es.js +9 -10
  459. package/dist/node_modules/highlight.js/es/languages/markdown.es.js.map +1 -1
  460. package/dist/node_modules/highlight.js/es/languages/php.cjs +2 -2
  461. package/dist/node_modules/highlight.js/es/languages/php.cjs.map +1 -1
  462. package/dist/node_modules/highlight.js/es/languages/php.es.js +39 -33
  463. package/dist/node_modules/highlight.js/es/languages/php.es.js.map +1 -1
  464. package/dist/node_modules/highlight.js/es/languages/python.cjs +1 -1
  465. package/dist/node_modules/highlight.js/es/languages/python.cjs.map +1 -1
  466. package/dist/node_modules/highlight.js/es/languages/python.es.js +20 -15
  467. package/dist/node_modules/highlight.js/es/languages/python.es.js.map +1 -1
  468. package/dist/node_modules/highlight.js/es/languages/rust.cjs +1 -1
  469. package/dist/node_modules/highlight.js/es/languages/rust.cjs.map +1 -1
  470. package/dist/node_modules/highlight.js/es/languages/rust.es.js +40 -26
  471. package/dist/node_modules/highlight.js/es/languages/rust.es.js.map +1 -1
  472. package/dist/node_modules/highlight.js/es/languages/scss.cjs +1 -1
  473. package/dist/node_modules/highlight.js/es/languages/scss.cjs.map +1 -1
  474. package/dist/node_modules/highlight.js/es/languages/scss.es.js +36 -25
  475. package/dist/node_modules/highlight.js/es/languages/scss.es.js.map +1 -1
  476. package/dist/node_modules/highlight.js/es/languages/shell.cjs +1 -1
  477. package/dist/node_modules/highlight.js/es/languages/shell.cjs.map +1 -1
  478. package/dist/node_modules/highlight.js/es/languages/shell.es.js +1 -1
  479. package/dist/node_modules/highlight.js/es/languages/shell.es.js.map +1 -1
  480. package/dist/node_modules/highlight.js/es/languages/typescript.cjs +1 -1
  481. package/dist/node_modules/highlight.js/es/languages/typescript.cjs.map +1 -1
  482. package/dist/node_modules/highlight.js/es/languages/typescript.es.js +4 -2
  483. package/dist/node_modules/highlight.js/es/languages/typescript.es.js.map +1 -1
  484. package/dist/node_modules/highlight.js/es/languages/xml.cjs +1 -1
  485. package/dist/node_modules/highlight.js/es/languages/xml.cjs.map +1 -1
  486. package/dist/node_modules/highlight.js/es/languages/xml.es.js +9 -16
  487. package/dist/node_modules/highlight.js/es/languages/xml.es.js.map +1 -1
  488. package/dist/node_modules/inline-style-parser/cjs/index.cjs +3 -0
  489. package/dist/node_modules/inline-style-parser/cjs/index.cjs.map +1 -0
  490. package/dist/node_modules/inline-style-parser/{index.es.js → cjs/index.es.js} +24 -24
  491. package/dist/node_modules/inline-style-parser/cjs/index.es.js.map +1 -0
  492. package/dist/node_modules/layout-base/layout-base.es.js +1 -1
  493. package/dist/node_modules/lowlight/lib/common.cjs +1 -1
  494. package/dist/node_modules/lowlight/lib/common.cjs.map +1 -1
  495. package/dist/node_modules/lowlight/lib/common.es.js +37 -37
  496. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/core.cjs +1 -1
  497. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/core.es.js +1 -1
  498. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/arduino.cjs +2 -0
  499. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/arduino.cjs.map +1 -0
  500. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/arduino.es.js +10 -14
  501. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/arduino.es.js.map +1 -0
  502. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/bash.cjs +2 -0
  503. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/bash.cjs.map +1 -0
  504. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/bash.es.js +378 -0
  505. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/bash.es.js.map +1 -0
  506. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/c.cjs +2 -0
  507. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/c.cjs.map +1 -0
  508. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/c.es.js +278 -0
  509. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/c.es.js.map +1 -0
  510. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/cpp.cjs +2 -0
  511. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/cpp.cjs.map +1 -0
  512. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/cpp.es.js +518 -0
  513. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/cpp.es.js.map +1 -0
  514. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/csharp.cjs +2 -0
  515. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/csharp.cjs.map +1 -0
  516. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/csharp.es.js +1 -1
  517. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/csharp.es.js.map +1 -0
  518. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/css.cjs +2 -0
  519. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/css.cjs.map +1 -0
  520. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/css.es.js +930 -0
  521. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/css.es.js.map +1 -0
  522. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/diff.cjs +2 -0
  523. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/diff.cjs.map +1 -0
  524. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/diff.es.js +10 -3
  525. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/diff.es.js.map +1 -0
  526. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/go.cjs +2 -0
  527. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/go.cjs.map +1 -0
  528. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/go.es.js +152 -0
  529. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/go.es.js.map +1 -0
  530. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/graphql.cjs.map +1 -0
  531. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/graphql.es.js.map +1 -0
  532. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/ini.cjs.map +1 -0
  533. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/ini.es.js.map +1 -0
  534. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/java.cjs +2 -0
  535. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/java.cjs.map +1 -0
  536. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/java.es.js +241 -0
  537. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/java.es.js.map +1 -0
  538. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/javascript.cjs +2 -0
  539. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/javascript.cjs.map +1 -0
  540. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/javascript.es.js +660 -0
  541. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/javascript.es.js.map +1 -0
  542. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/json.cjs +2 -0
  543. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/json.cjs.map +1 -0
  544. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/json.es.js +45 -0
  545. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/json.es.js.map +1 -0
  546. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/kotlin.cjs.map +1 -0
  547. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/kotlin.es.js.map +1 -0
  548. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/less.cjs +2 -0
  549. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/less.cjs.map +1 -0
  550. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/less.es.js +10 -4
  551. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/less.es.js.map +1 -0
  552. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/lua.cjs +2 -0
  553. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/lua.cjs.map +1 -0
  554. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/lua.es.js +60 -0
  555. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/lua.es.js.map +1 -0
  556. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/makefile.cjs.map +1 -0
  557. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/makefile.es.js.map +1 -0
  558. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/markdown.cjs +2 -0
  559. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/markdown.cjs.map +1 -0
  560. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/markdown.es.js +217 -0
  561. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/markdown.es.js.map +1 -0
  562. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/objectivec.cjs.map +1 -0
  563. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/objectivec.es.js.map +1 -0
  564. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/perl.cjs.map +1 -0
  565. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/perl.es.js.map +1 -0
  566. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php-template.cjs.map +1 -0
  567. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php-template.es.js.map +1 -0
  568. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php.cjs +3 -0
  569. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php.cjs.map +1 -0
  570. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php.es.js +573 -0
  571. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php.es.js.map +1 -0
  572. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/plaintext.cjs +2 -0
  573. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/plaintext.cjs.map +1 -0
  574. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/plaintext.es.js +14 -0
  575. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/plaintext.es.js.map +1 -0
  576. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python-repl.cjs.map +1 -0
  577. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python-repl.es.js.map +1 -0
  578. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python.cjs +2 -0
  579. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python.cjs.map +1 -0
  580. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python.es.js +400 -0
  581. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python.es.js.map +1 -0
  582. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/r.cjs.map +1 -0
  583. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/r.es.js.map +1 -0
  584. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/ruby.cjs.map +1 -0
  585. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/ruby.es.js.map +1 -0
  586. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/rust.cjs +2 -0
  587. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/rust.cjs.map +1 -0
  588. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/rust.es.js +306 -0
  589. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/rust.es.js.map +1 -0
  590. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/scss.cjs +2 -0
  591. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/scss.cjs.map +1 -0
  592. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/scss.es.js +915 -0
  593. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/scss.es.js.map +1 -0
  594. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/shell.cjs +2 -0
  595. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/shell.cjs.map +1 -0
  596. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/shell.es.js +26 -0
  597. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/shell.es.js.map +1 -0
  598. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/sql.cjs +2 -0
  599. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/sql.cjs.map +1 -0
  600. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/sql.es.js +616 -0
  601. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/sql.es.js.map +1 -0
  602. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/swift.cjs.map +1 -0
  603. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/swift.es.js.map +1 -0
  604. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/typescript.cjs +2 -0
  605. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/typescript.cjs.map +1 -0
  606. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/typescript.es.js +755 -0
  607. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/typescript.es.js.map +1 -0
  608. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/vbnet.cjs.map +1 -0
  609. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/vbnet.es.js.map +1 -0
  610. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/wasm.cjs.map +1 -0
  611. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/wasm.es.js.map +1 -0
  612. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/xml.cjs +2 -0
  613. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/xml.cjs.map +1 -0
  614. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/xml.es.js +220 -0
  615. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/xml.es.js.map +1 -0
  616. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/yaml.cjs +2 -0
  617. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/yaml.cjs.map +1 -0
  618. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/yaml.es.js +184 -0
  619. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/yaml.es.js.map +1 -0
  620. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/lib/core.cjs +3 -3
  621. package/dist/node_modules/lowlight/node_modules/highlight.js/lib/core.cjs.map +1 -0
  622. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/lib/core.es.js +66 -66
  623. package/dist/node_modules/lowlight/node_modules/highlight.js/lib/core.es.js.map +1 -0
  624. package/dist/node_modules/lucide-react/dist/esm/Icon.es.js +3 -3
  625. package/dist/node_modules/mdast-util-find-and-replace/lib/index.cjs +1 -1
  626. package/dist/node_modules/mdast-util-find-and-replace/lib/index.cjs.map +1 -1
  627. package/dist/node_modules/mdast-util-find-and-replace/lib/index.es.js +58 -56
  628. package/dist/node_modules/mdast-util-find-and-replace/lib/index.es.js.map +1 -1
  629. package/dist/node_modules/mdast-util-from-markdown/lib/index.cjs +1 -1
  630. package/dist/node_modules/mdast-util-from-markdown/lib/index.cjs.map +1 -1
  631. package/dist/node_modules/mdast-util-from-markdown/lib/index.es.js +274 -223
  632. package/dist/node_modules/mdast-util-from-markdown/lib/index.es.js.map +1 -1
  633. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.cjs +1 -1
  634. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.cjs.map +1 -1
  635. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.es.js +21 -17
  636. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.es.js.map +1 -1
  637. package/dist/node_modules/mdast-util-to-hast/lib/footer.cjs.map +1 -1
  638. package/dist/node_modules/mdast-util-to-hast/lib/footer.es.js.map +1 -1
  639. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.cjs.map +1 -1
  640. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.es.js.map +1 -1
  641. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.cjs.map +1 -1
  642. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.es.js.map +1 -1
  643. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.cjs +2 -2
  644. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.cjs.map +1 -1
  645. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.es.js +7 -7
  646. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.es.js.map +1 -1
  647. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.cjs.map +1 -1
  648. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.es.js.map +1 -1
  649. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.cjs.map +1 -1
  650. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.es.js.map +1 -1
  651. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.cjs.map +1 -1
  652. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.es.js.map +1 -1
  653. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.cjs.map +1 -1
  654. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.es.js.map +1 -1
  655. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.cjs.map +1 -1
  656. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.es.js.map +1 -1
  657. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.cjs.map +1 -1
  658. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.es.js.map +1 -1
  659. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.cjs.map +1 -1
  660. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.es.js.map +1 -1
  661. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.cjs.map +1 -1
  662. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.es.js.map +1 -1
  663. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.cjs.map +1 -1
  664. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.es.js.map +1 -1
  665. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.cjs.map +1 -1
  666. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.es.js.map +1 -1
  667. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.cjs.map +1 -1
  668. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.es.js.map +1 -1
  669. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.cjs.map +1 -1
  670. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.es.js.map +1 -1
  671. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.cjs.map +1 -1
  672. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.es.js.map +1 -1
  673. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.cjs.map +1 -1
  674. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.es.js.map +1 -1
  675. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.cjs.map +1 -1
  676. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.es.js.map +1 -1
  677. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.cjs.map +1 -1
  678. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.es.js.map +1 -1
  679. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.cjs.map +1 -1
  680. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.es.js.map +1 -1
  681. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.cjs.map +1 -1
  682. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.es.js.map +1 -1
  683. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.cjs.map +1 -1
  684. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.es.js.map +1 -1
  685. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.cjs.map +1 -1
  686. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.es.js.map +1 -1
  687. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.cjs.map +1 -1
  688. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.es.js.map +1 -1
  689. package/dist/node_modules/mdast-util-to-hast/lib/index.cjs.map +1 -1
  690. package/dist/node_modules/mdast-util-to-hast/lib/index.es.js.map +1 -1
  691. package/dist/node_modules/mdast-util-to-hast/lib/revert.cjs.map +1 -1
  692. package/dist/node_modules/mdast-util-to-hast/lib/revert.es.js.map +1 -1
  693. package/dist/node_modules/mdast-util-to-hast/lib/state.cjs.map +1 -1
  694. package/dist/node_modules/mdast-util-to-hast/lib/state.es.js.map +1 -1
  695. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.cjs.map +1 -1
  696. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.es.js.map +1 -1
  697. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.cjs +3 -3
  698. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.cjs.map +1 -1
  699. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.es.js +9 -7
  700. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.es.js.map +1 -1
  701. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.cjs +2 -2
  702. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.cjs.map +1 -1
  703. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.es.js +6 -6
  704. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.es.js.map +1 -1
  705. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.cjs.map +1 -1
  706. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.es.js.map +1 -1
  707. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.cjs +1 -1
  708. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.cjs.map +1 -1
  709. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.es.js +17 -29
  710. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.es.js.map +1 -1
  711. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.cjs +5 -5
  712. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.cjs.map +1 -1
  713. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.es.js +12 -11
  714. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.es.js.map +1 -1
  715. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.cjs.map +1 -1
  716. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.es.js.map +1 -1
  717. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.cjs +1 -1
  718. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.cjs.map +1 -1
  719. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.es.js +14 -12
  720. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.es.js.map +1 -1
  721. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.cjs.map +1 -1
  722. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.es.js.map +1 -1
  723. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.cjs +1 -1
  724. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.cjs.map +1 -1
  725. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.es.js +6 -6
  726. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.es.js.map +1 -1
  727. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.cjs +1 -1
  728. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.cjs.map +1 -1
  729. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.es.js +15 -13
  730. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.es.js.map +1 -1
  731. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.cjs +2 -1
  732. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.cjs.map +1 -1
  733. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.es.js +42 -32
  734. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.es.js.map +1 -1
  735. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.cjs.map +1 -1
  736. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.es.js.map +1 -1
  737. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.cjs.map +1 -1
  738. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.es.js.map +1 -1
  739. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.cjs.map +1 -1
  740. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.es.js.map +1 -1
  741. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.cjs +1 -1
  742. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.cjs.map +1 -1
  743. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.es.js +8 -6
  744. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.es.js.map +1 -1
  745. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.cjs +1 -1
  746. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.cjs.map +1 -1
  747. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.es.js +17 -29
  748. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.es.js.map +1 -1
  749. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.cjs +1 -1
  750. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.cjs.map +1 -1
  751. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.es.js +8 -3
  752. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.es.js.map +1 -1
  753. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.cjs.map +1 -1
  754. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.es.js.map +1 -1
  755. package/dist/node_modules/mdast-util-to-markdown/lib/util/character.cjs +2 -0
  756. package/dist/node_modules/mdast-util-to-markdown/lib/util/character.cjs.map +1 -0
  757. package/dist/node_modules/mdast-util-to-markdown/lib/util/character.es.js +13 -0
  758. package/dist/node_modules/mdast-util-to-markdown/lib/util/character.es.js.map +1 -0
  759. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.cjs.map +1 -1
  760. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.es.js.map +1 -1
  761. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.cjs.map +1 -1
  762. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.es.js.map +1 -1
  763. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.cjs.map +1 -1
  764. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.es.js.map +1 -1
  765. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.cjs.map +1 -1
  766. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.es.js.map +1 -1
  767. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.cjs.map +1 -1
  768. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.es.js.map +1 -1
  769. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.cjs.map +1 -1
  770. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.es.js.map +1 -1
  771. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.cjs.map +1 -1
  772. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.es.js.map +1 -1
  773. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.cjs.map +1 -1
  774. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.es.js.map +1 -1
  775. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.cjs.map +1 -1
  776. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.es.js.map +1 -1
  777. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.cjs.map +1 -1
  778. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.es.js.map +1 -1
  779. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.cjs +4 -0
  780. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.cjs.map +1 -0
  781. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.es.js +263 -0
  782. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.es.js.map +1 -0
  783. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.cjs.map +1 -1
  784. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.es.js.map +1 -1
  785. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.cjs +1 -1
  786. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.cjs.map +1 -1
  787. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.es.js +2 -2
  788. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.es.js.map +1 -1
  789. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.cjs.map +1 -1
  790. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.es.js.map +1 -1
  791. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.cjs +1 -1
  792. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.cjs.map +1 -1
  793. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.es.js +2 -2
  794. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.es.js.map +1 -1
  795. package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.cjs +2 -0
  796. package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.cjs.map +1 -0
  797. package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.es.js +22 -0
  798. package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.es.js.map +1 -0
  799. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.cjs.map +1 -1
  800. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.es.js.map +1 -1
  801. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VBNYF7ZC.cjs +2 -2
  802. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VBNYF7ZC.es.js +4 -4
  803. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-5PPSVZJV.cjs +1 -1
  804. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-5PPSVZJV.es.js +1 -1
  805. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-2GRJ4B5K.cjs +1 -1
  806. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-2GRJ4B5K.es.js +1 -1
  807. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JQJVKLGR.cjs +2 -2
  808. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JQJVKLGR.es.js +4 -4
  809. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-NSK5VX7P.cjs +1 -1
  810. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-NSK5VX7P.es.js +1 -1
  811. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-WRU74C26.es.js +3 -3
  812. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-JCYQIIEL.cjs +1 -1
  813. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-JCYQIIEL.es.js +1 -1
  814. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-OCEON4UE.cjs +1 -1
  815. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-OCEON4UE.es.js +1 -1
  816. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-B4RE2ZJO.cjs +3 -3
  817. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-B4RE2ZJO.es.js +4 -4
  818. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-JOGREHBK.cjs +2 -2
  819. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-JOGREHBK.es.js +4 -4
  820. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-UKHOOZJN.cjs +1 -1
  821. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-UKHOOZJN.es.js +5 -4
  822. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-UKHOOZJN.es.js.map +1 -1
  823. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-PKOTCBZU.cjs +1 -1
  824. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-PKOTCBZU.es.js +2 -2
  825. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-FAOFIHXS.cjs +1 -1
  826. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-FAOFIHXS.cjs.map +1 -1
  827. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-FAOFIHXS.es.js +1 -1
  828. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-CIZ2JOQS.cjs +1 -1
  829. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-CIZ2JOQS.es.js +4 -4
  830. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-W5VNT64P.cjs +1 -1
  831. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-W5VNT64P.es.js +1 -1
  832. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-SI44F4Z6.cjs +1 -1
  833. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-SI44F4Z6.es.js +1 -1
  834. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-OKZ733FA.cjs +1 -1
  835. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-OKZ733FA.es.js +1 -1
  836. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-UEYNNEHI.cjs +1 -1
  837. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-UEYNNEHI.es.js +1 -1
  838. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-ULZ7WXOC.cjs +1 -1
  839. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-ULZ7WXOC.es.js +1 -1
  840. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-T6HMQDX7.cjs +1 -1
  841. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-T6HMQDX7.es.js +2 -2
  842. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-ELKLHX3M.es.js +4 -4
  843. package/dist/node_modules/mermaid/dist/mermaid.core.cjs +1 -1
  844. package/dist/node_modules/mermaid/dist/mermaid.core.es.js +1 -1
  845. package/dist/node_modules/micromark/lib/constructs.cjs +1 -1
  846. package/dist/node_modules/micromark/lib/constructs.es.js +13 -13
  847. package/dist/node_modules/micromark-factory-space/index.cjs +1 -1
  848. package/dist/node_modules/micromark-factory-space/index.cjs.map +1 -1
  849. package/dist/node_modules/micromark-factory-space/index.es.js +9 -9
  850. package/dist/node_modules/micromark-factory-space/index.es.js.map +1 -1
  851. package/dist/node_modules/parse5/dist/parser/index.es.js +1 -1
  852. package/dist/node_modules/parse5/dist/tokenizer/index.cjs +1 -1
  853. package/dist/node_modules/parse5/dist/tokenizer/index.cjs.map +1 -1
  854. package/dist/node_modules/parse5/dist/tokenizer/index.es.js +2 -2
  855. package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.cjs.map +1 -0
  856. package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.es.js.map +1 -0
  857. package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode.cjs.map +1 -0
  858. package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode.es.js.map +1 -0
  859. package/dist/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.cjs.map +1 -0
  860. package/dist/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.es.js.map +1 -0
  861. package/dist/node_modules/property-information/lib/html.cjs +1 -1
  862. package/dist/node_modules/property-information/lib/html.cjs.map +1 -1
  863. package/dist/node_modules/property-information/lib/html.es.js +16 -6
  864. package/dist/node_modules/property-information/lib/html.es.js.map +1 -1
  865. package/dist/node_modules/property-information/lib/svg.cjs +1 -1
  866. package/dist/node_modules/property-information/lib/svg.cjs.map +1 -1
  867. package/dist/node_modules/property-information/lib/svg.es.js +4 -2
  868. package/dist/node_modules/property-information/lib/svg.es.js.map +1 -1
  869. package/dist/node_modules/rc-input/es/BaseInput.cjs +1 -1
  870. package/dist/node_modules/rc-input/es/BaseInput.es.js +1 -1
  871. package/dist/node_modules/rc-textarea/es/ResizableTextArea.cjs +1 -1
  872. package/dist/node_modules/rc-textarea/es/ResizableTextArea.es.js +1 -1
  873. package/dist/node_modules/rc-textarea/es/TextArea.cjs +1 -1
  874. package/dist/node_modules/rc-textarea/es/TextArea.es.js +1 -1
  875. package/dist/node_modules/rc-textarea/es/index.cjs +1 -1
  876. package/dist/node_modules/rc-textarea/es/index.es.js +1 -1
  877. package/dist/node_modules/rc-util/es/ref.es.js +1 -1
  878. package/dist/node_modules/rc-util/node_modules/react-is/index.es.js +1 -1
  879. package/dist/node_modules/react-i18next/dist/es/useTranslation.cjs +1 -1
  880. package/dist/node_modules/react-i18next/dist/es/useTranslation.es.js +7 -7
  881. package/dist/node_modules/remark-flow/dist/index.es.js +1 -1
  882. package/dist/node_modules/remark-flow/dist/interaction-parser.cjs.map +1 -1
  883. package/dist/node_modules/remark-flow/dist/interaction-parser.es.js +2 -2
  884. package/dist/node_modules/remark-flow/dist/interaction-parser.es.js.map +1 -1
  885. package/dist/node_modules/remark-flow/dist/interaction-plugin-core.cjs +1 -1
  886. package/dist/node_modules/remark-flow/dist/interaction-plugin-core.es.js +1 -1
  887. package/dist/node_modules/style-mod/src/style-mod.cjs +3 -3
  888. package/dist/node_modules/style-mod/src/style-mod.cjs.map +1 -1
  889. package/dist/node_modules/style-mod/src/style-mod.es.js +37 -35
  890. package/dist/node_modules/style-mod/src/style-mod.es.js.map +1 -1
  891. package/dist/node_modules/style-to-object/cjs/index.cjs +1 -1
  892. package/dist/node_modules/style-to-object/cjs/index.cjs.map +1 -1
  893. package/dist/node_modules/style-to-object/cjs/index.es.js +15 -15
  894. package/dist/node_modules/style-to-object/cjs/index.es.js.map +1 -1
  895. package/dist/node_modules/stylis/src/Parser.cjs +1 -1
  896. package/dist/node_modules/stylis/src/Parser.cjs.map +1 -1
  897. package/dist/node_modules/stylis/src/Parser.es.js +63 -52
  898. package/dist/node_modules/stylis/src/Parser.es.js.map +1 -1
  899. package/dist/node_modules/stylis/src/Utility.cjs +1 -1
  900. package/dist/node_modules/stylis/src/Utility.cjs.map +1 -1
  901. package/dist/node_modules/stylis/src/Utility.es.js +20 -24
  902. package/dist/node_modules/stylis/src/Utility.es.js.map +1 -1
  903. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs +1 -1
  904. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs.map +1 -1
  905. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.es.js +828 -561
  906. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.es.js.map +1 -1
  907. package/dist/node_modules/ts-dedent/esm/index.cjs +5 -5
  908. package/dist/node_modules/ts-dedent/esm/index.cjs.map +1 -1
  909. package/dist/node_modules/ts-dedent/esm/index.es.js +20 -21
  910. package/dist/node_modules/ts-dedent/esm/index.es.js.map +1 -1
  911. package/dist/node_modules/unified/lib/index.es.js +1 -1
  912. package/dist/node_modules/unist-util-is/lib/index.cjs.map +1 -1
  913. package/dist/node_modules/unist-util-is/lib/index.es.js +8 -1
  914. package/dist/node_modules/unist-util-is/lib/index.es.js.map +1 -1
  915. package/dist/node_modules/unist-util-visit/lib/index.cjs +1 -1
  916. package/dist/node_modules/unist-util-visit/lib/index.cjs.map +1 -1
  917. package/dist/node_modules/unist-util-visit/lib/index.es.js +22 -12
  918. package/dist/node_modules/unist-util-visit/lib/index.es.js.map +1 -1
  919. package/dist/node_modules/unist-util-visit-parents/lib/color.cjs.map +1 -1
  920. package/dist/node_modules/unist-util-visit-parents/lib/color.es.js.map +1 -1
  921. package/dist/node_modules/unist-util-visit-parents/lib/index.cjs +1 -1
  922. package/dist/node_modules/unist-util-visit-parents/lib/index.cjs.map +1 -1
  923. package/dist/node_modules/unist-util-visit-parents/lib/index.es.js +72 -37
  924. package/dist/node_modules/unist-util-visit-parents/lib/index.es.js.map +1 -1
  925. package/dist/node_modules/uuid/dist/rng.cjs +2 -0
  926. package/dist/node_modules/uuid/dist/rng.cjs.map +1 -0
  927. package/dist/node_modules/uuid/dist/rng.es.js +8 -0
  928. package/dist/node_modules/uuid/dist/rng.es.js.map +1 -0
  929. package/dist/node_modules/uuid/dist/stringify.cjs.map +1 -0
  930. package/dist/node_modules/uuid/dist/stringify.es.js.map +1 -0
  931. package/dist/node_modules/uuid/dist/v4.cjs +2 -0
  932. package/dist/node_modules/uuid/dist/v4.cjs.map +1 -0
  933. package/dist/node_modules/uuid/dist/v4.es.js +16 -0
  934. package/dist/node_modules/uuid/dist/v4.es.js.map +1 -0
  935. package/dist/renderer.cjs +1 -1
  936. package/dist/renderer.es.js +3 -3
  937. package/dist/scroll.cjs +1 -1
  938. package/dist/scroll.es.js +2 -2
  939. package/package.json +18 -14
  940. package/dist/_virtual/advancedFormat.es2.js.map +0 -1
  941. package/dist/_virtual/cose-base.es2.js.map +0 -1
  942. package/dist/_virtual/customParseFormat.es2.js.map +0 -1
  943. package/dist/_virtual/cytoscape-cose-bilkent.es2.js +0 -5
  944. package/dist/_virtual/cytoscape-cose-bilkent.es2.js.map +0 -1
  945. package/dist/_virtual/cytoscape-fcose.es2.js.map +0 -1
  946. package/dist/_virtual/dayjs.min.es2.js.map +0 -1
  947. package/dist/_virtual/dayjs.min2.cjs.map +0 -1
  948. package/dist/_virtual/duration.es2.js.map +0 -1
  949. package/dist/_virtual/index.es10.js.map +0 -1
  950. package/dist/_virtual/index.es11.js.map +0 -1
  951. package/dist/_virtual/index.es12.js.map +0 -1
  952. package/dist/_virtual/index.es2.js.map +0 -1
  953. package/dist/_virtual/index.es3.js.map +0 -1
  954. package/dist/_virtual/index.es4.js.map +0 -1
  955. package/dist/_virtual/index.es5.js.map +0 -1
  956. package/dist/_virtual/index.es6.js.map +0 -1
  957. package/dist/_virtual/index.es7.js.map +0 -1
  958. package/dist/_virtual/index.es8.js.map +0 -1
  959. package/dist/_virtual/index.es9.js.map +0 -1
  960. package/dist/_virtual/isoWeek.es2.js.map +0 -1
  961. package/dist/_virtual/layout-base.es2.js.map +0 -1
  962. package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs +0 -2
  963. package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs.map +0 -1
  964. package/dist/node_modules/@radix-ui/react-arrow/dist/index.es.js +0 -25
  965. package/dist/node_modules/@radix-ui/react-arrow/dist/index.es.js.map +0 -1
  966. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.cjs.map +0 -1
  967. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.es.js.map +0 -1
  968. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +0 -2
  969. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +0 -1
  970. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +0 -34
  971. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +0 -1
  972. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.cjs.map +0 -1
  973. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.es.js.map +0 -1
  974. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +0 -2
  975. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +0 -1
  976. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +0 -1
  977. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.cjs +0 -2
  978. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.cjs.map +0 -1
  979. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.es.js +0 -15
  980. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.es.js.map +0 -1
  981. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.cjs +0 -2
  982. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.cjs.map +0 -1
  983. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.es.js.map +0 -1
  984. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.cjs +0 -2
  985. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.cjs.map +0 -1
  986. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.es.js +0 -104
  987. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.es.js.map +0 -1
  988. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.cjs +0 -2
  989. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +0 -1
  990. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +0 -1
  991. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +0 -2
  992. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +0 -1
  993. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +0 -13
  994. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +0 -1
  995. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +0 -2
  996. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.map +0 -1
  997. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js.map +0 -1
  998. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-effect-event/dist/index.cjs.map +0 -1
  999. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-effect-event/dist/index.es.js.map +0 -1
  1000. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +0 -2
  1001. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.map +0 -1
  1002. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js +0 -7
  1003. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js.map +0 -1
  1004. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +0 -2
  1005. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +0 -1
  1006. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +0 -34
  1007. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +0 -1
  1008. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.cjs +0 -2
  1009. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +0 -1
  1010. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +0 -1
  1011. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +0 -2
  1012. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +0 -1
  1013. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +0 -13
  1014. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +0 -1
  1015. package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs +0 -2
  1016. package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs.map +0 -1
  1017. package/dist/node_modules/@radix-ui/react-popper/dist/index.es.js +0 -220
  1018. package/dist/node_modules/@radix-ui/react-popper/dist/index.es.js.map +0 -1
  1019. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.cjs +0 -2
  1020. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.cjs.map +0 -1
  1021. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.es.js +0 -50
  1022. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.es.js.map +0 -1
  1023. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +0 -2
  1024. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +0 -1
  1025. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +0 -34
  1026. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +0 -1
  1027. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs +0 -2
  1028. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs.map +0 -1
  1029. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.es.js +0 -15
  1030. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.es.js.map +0 -1
  1031. package/dist/node_modules/entities/dist/esm/decode-codepoint.cjs.map +0 -1
  1032. package/dist/node_modules/entities/dist/esm/decode-codepoint.es.js.map +0 -1
  1033. package/dist/node_modules/entities/dist/esm/decode.cjs.map +0 -1
  1034. package/dist/node_modules/entities/dist/esm/decode.es.js.map +0 -1
  1035. package/dist/node_modules/entities/dist/esm/generated/decode-data-html.cjs.map +0 -1
  1036. package/dist/node_modules/entities/dist/esm/generated/decode-data-html.es.js.map +0 -1
  1037. package/dist/node_modules/hast-util-is-element/lib/index.cjs +0 -2
  1038. package/dist/node_modules/hast-util-is-element/lib/index.cjs.map +0 -1
  1039. package/dist/node_modules/hast-util-is-element/lib/index.es.js +0 -66
  1040. package/dist/node_modules/hast-util-is-element/lib/index.es.js.map +0 -1
  1041. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.cjs +0 -2
  1042. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.cjs.map +0 -1
  1043. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.es.js +0 -13
  1044. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.es.js.map +0 -1
  1045. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.cjs +0 -2
  1046. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.cjs.map +0 -1
  1047. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.es.js +0 -62
  1048. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.es.js.map +0 -1
  1049. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.cjs +0 -2
  1050. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.cjs.map +0 -1
  1051. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.es.js +0 -34
  1052. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.es.js.map +0 -1
  1053. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.cjs +0 -2
  1054. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.cjs.map +0 -1
  1055. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.es.js +0 -369
  1056. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.es.js.map +0 -1
  1057. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.cjs +0 -2
  1058. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.cjs.map +0 -1
  1059. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.es.js +0 -7
  1060. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.es.js.map +0 -1
  1061. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.cjs +0 -2
  1062. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.cjs.map +0 -1
  1063. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.es.js +0 -567
  1064. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.es.js.map +0 -1
  1065. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.cjs +0 -2
  1066. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.cjs.map +0 -1
  1067. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.es.js +0 -8
  1068. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.es.js.map +0 -1
  1069. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.cjs +0 -2
  1070. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.cjs.map +0 -1
  1071. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.es.js +0 -7
  1072. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.es.js.map +0 -1
  1073. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.cjs +0 -2
  1074. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.cjs.map +0 -1
  1075. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.es.js +0 -23
  1076. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.es.js.map +0 -1
  1077. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.cjs +0 -2
  1078. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.cjs.map +0 -1
  1079. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.es.js +0 -28
  1080. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.es.js.map +0 -1
  1081. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.cjs +0 -2
  1082. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.cjs.map +0 -1
  1083. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.es.js +0 -24
  1084. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.es.js.map +0 -1
  1085. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.cjs +0 -2
  1086. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.cjs.map +0 -1
  1087. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.es.js +0 -12
  1088. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.es.js.map +0 -1
  1089. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.cjs +0 -2
  1090. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.cjs.map +0 -1
  1091. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.es.js +0 -18
  1092. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.es.js.map +0 -1
  1093. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.cjs +0 -2
  1094. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.cjs.map +0 -1
  1095. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.es.js +0 -15
  1096. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.es.js.map +0 -1
  1097. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.cjs +0 -2
  1098. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.cjs.map +0 -1
  1099. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.es.js +0 -20
  1100. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.es.js.map +0 -1
  1101. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.cjs +0 -2
  1102. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.cjs.map +0 -1
  1103. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.es.js +0 -12
  1104. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.es.js.map +0 -1
  1105. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.cjs +0 -2
  1106. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.cjs.map +0 -1
  1107. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.es.js +0 -12
  1108. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.es.js.map +0 -1
  1109. package/dist/node_modules/highlight.js/es/languages/arduino.cjs +0 -2
  1110. package/dist/node_modules/highlight.js/es/languages/arduino.cjs.map +0 -1
  1111. package/dist/node_modules/highlight.js/es/languages/arduino.es.js.map +0 -1
  1112. package/dist/node_modules/highlight.js/es/languages/csharp.cjs +0 -2
  1113. package/dist/node_modules/highlight.js/es/languages/csharp.cjs.map +0 -1
  1114. package/dist/node_modules/highlight.js/es/languages/csharp.es.js.map +0 -1
  1115. package/dist/node_modules/highlight.js/es/languages/diff.cjs +0 -2
  1116. package/dist/node_modules/highlight.js/es/languages/diff.cjs.map +0 -1
  1117. package/dist/node_modules/highlight.js/es/languages/diff.es.js.map +0 -1
  1118. package/dist/node_modules/highlight.js/es/languages/graphql.cjs.map +0 -1
  1119. package/dist/node_modules/highlight.js/es/languages/graphql.es.js.map +0 -1
  1120. package/dist/node_modules/highlight.js/es/languages/ini.cjs.map +0 -1
  1121. package/dist/node_modules/highlight.js/es/languages/ini.es.js.map +0 -1
  1122. package/dist/node_modules/highlight.js/es/languages/kotlin.cjs.map +0 -1
  1123. package/dist/node_modules/highlight.js/es/languages/kotlin.es.js.map +0 -1
  1124. package/dist/node_modules/highlight.js/es/languages/less.cjs +0 -2
  1125. package/dist/node_modules/highlight.js/es/languages/less.cjs.map +0 -1
  1126. package/dist/node_modules/highlight.js/es/languages/less.es.js.map +0 -1
  1127. package/dist/node_modules/highlight.js/es/languages/makefile.cjs.map +0 -1
  1128. package/dist/node_modules/highlight.js/es/languages/makefile.es.js.map +0 -1
  1129. package/dist/node_modules/highlight.js/es/languages/objectivec.cjs.map +0 -1
  1130. package/dist/node_modules/highlight.js/es/languages/objectivec.es.js.map +0 -1
  1131. package/dist/node_modules/highlight.js/es/languages/perl.cjs.map +0 -1
  1132. package/dist/node_modules/highlight.js/es/languages/perl.es.js.map +0 -1
  1133. package/dist/node_modules/highlight.js/es/languages/php-template.cjs.map +0 -1
  1134. package/dist/node_modules/highlight.js/es/languages/php-template.es.js.map +0 -1
  1135. package/dist/node_modules/highlight.js/es/languages/python-repl.cjs.map +0 -1
  1136. package/dist/node_modules/highlight.js/es/languages/python-repl.es.js.map +0 -1
  1137. package/dist/node_modules/highlight.js/es/languages/r.cjs.map +0 -1
  1138. package/dist/node_modules/highlight.js/es/languages/r.es.js.map +0 -1
  1139. package/dist/node_modules/highlight.js/es/languages/ruby.cjs.map +0 -1
  1140. package/dist/node_modules/highlight.js/es/languages/ruby.es.js.map +0 -1
  1141. package/dist/node_modules/highlight.js/es/languages/swift.cjs.map +0 -1
  1142. package/dist/node_modules/highlight.js/es/languages/swift.es.js.map +0 -1
  1143. package/dist/node_modules/highlight.js/es/languages/vbnet.cjs.map +0 -1
  1144. package/dist/node_modules/highlight.js/es/languages/vbnet.es.js.map +0 -1
  1145. package/dist/node_modules/highlight.js/es/languages/wasm.cjs.map +0 -1
  1146. package/dist/node_modules/highlight.js/es/languages/wasm.es.js.map +0 -1
  1147. package/dist/node_modules/highlight.js/lib/core.cjs.map +0 -1
  1148. package/dist/node_modules/highlight.js/lib/core.es.js.map +0 -1
  1149. package/dist/node_modules/inline-style-parser/index.cjs +0 -3
  1150. package/dist/node_modules/inline-style-parser/index.cjs.map +0 -1
  1151. package/dist/node_modules/inline-style-parser/index.es.js.map +0 -1
  1152. package/dist/node_modules/unist-util-find-after/lib/index.cjs +0 -2
  1153. package/dist/node_modules/unist-util-find-after/lib/index.cjs.map +0 -1
  1154. package/dist/node_modules/unist-util-find-after/lib/index.es.js +0 -33
  1155. package/dist/node_modules/unist-util-find-after/lib/index.es.js.map +0 -1
  1156. package/dist/node_modules/uuid/dist/esm-browser/native.cjs +0 -2
  1157. package/dist/node_modules/uuid/dist/esm-browser/native.cjs.map +0 -1
  1158. package/dist/node_modules/uuid/dist/esm-browser/native.es.js +0 -5
  1159. package/dist/node_modules/uuid/dist/esm-browser/native.es.js.map +0 -1
  1160. package/dist/node_modules/uuid/dist/esm-browser/rng.cjs +0 -2
  1161. package/dist/node_modules/uuid/dist/esm-browser/rng.cjs.map +0 -1
  1162. package/dist/node_modules/uuid/dist/esm-browser/rng.es.js +0 -14
  1163. package/dist/node_modules/uuid/dist/esm-browser/rng.es.js.map +0 -1
  1164. package/dist/node_modules/uuid/dist/esm-browser/stringify.cjs.map +0 -1
  1165. package/dist/node_modules/uuid/dist/esm-browser/stringify.es.js.map +0 -1
  1166. package/dist/node_modules/uuid/dist/esm-browser/v4.cjs +0 -2
  1167. package/dist/node_modules/uuid/dist/esm-browser/v4.cjs.map +0 -1
  1168. package/dist/node_modules/uuid/dist/esm-browser/v4.es.js +0 -16
  1169. package/dist/node_modules/uuid/dist/esm-browser/v4.es.js.map +0 -1
  1170. /package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/primitive/dist/index.cjs +0 -0
  1171. /package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/primitive/dist/index.es.js +0 -0
  1172. /package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/react-context/dist/index.cjs +0 -0
  1173. /package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/react-context/dist/index.es.js +0 -0
  1174. /package/dist/node_modules/@radix-ui/{react-dialog/node_modules/@radix-ui/react-use-effect-event → react-use-effect-event}/dist/index.cjs +0 -0
  1175. /package/dist/node_modules/@radix-ui/{react-dialog/node_modules/@radix-ui/react-use-effect-event → react-use-effect-event}/dist/index.es.js +0 -0
  1176. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/core.cjs.map +0 -0
  1177. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/core.es.js.map +0 -0
  1178. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/graphql.cjs +0 -0
  1179. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/graphql.es.js +0 -0
  1180. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/ini.cjs +0 -0
  1181. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/ini.es.js +0 -0
  1182. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/kotlin.cjs +0 -0
  1183. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/kotlin.es.js +0 -0
  1184. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/makefile.cjs +0 -0
  1185. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/makefile.es.js +0 -0
  1186. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/objectivec.cjs +0 -0
  1187. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/objectivec.es.js +0 -0
  1188. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/perl.cjs +0 -0
  1189. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/perl.es.js +0 -0
  1190. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/php-template.cjs +0 -0
  1191. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/php-template.es.js +0 -0
  1192. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/python-repl.cjs +0 -0
  1193. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/python-repl.es.js +0 -0
  1194. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/r.cjs +0 -0
  1195. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/r.es.js +0 -0
  1196. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/ruby.cjs +0 -0
  1197. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/ruby.es.js +0 -0
  1198. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/swift.cjs +0 -0
  1199. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/swift.es.js +0 -0
  1200. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/vbnet.cjs +0 -0
  1201. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/vbnet.es.js +0 -0
  1202. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/wasm.cjs +0 -0
  1203. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/wasm.es.js +0 -0
  1204. /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/decode-codepoint.cjs +0 -0
  1205. /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/decode-codepoint.es.js +0 -0
  1206. /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/decode.cjs +0 -0
  1207. /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/decode.es.js +0 -0
  1208. /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/generated/decode-data-html.cjs +0 -0
  1209. /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/generated/decode-data-html.es.js +0 -0
  1210. /package/dist/node_modules/uuid/dist/{esm-browser/stringify.cjs → stringify.cjs} +0 -0
  1211. /package/dist/node_modules/uuid/dist/{esm-browser/stringify.es.js → stringify.es.js} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"CustomVariable.es.js","sources":["../../../../src/components/ContentRender/plugins/CustomVariable.tsx"],"sourcesContent":["import React from \"react\";\nimport { normalizeVariableName } from \"remark-flow\";\nimport type { Components } from \"react-markdown\";\nimport { OnSendContentParams } from \"../../types\";\nimport { Button } from \"../../ui/button\";\nimport { Checkbox } from \"../../ui/checkbox\";\nimport MarkdownFlowInput from \"../MarkdownFlowInput\";\nimport {\n InputGroup,\n InputGroupTextarea,\n} from \"../../ui/inputGroup/input-group\";\nimport type { MarkdownFlowLocale } from \"../../../lib/locale\";\nimport { cn } from \"../../../lib/utils\";\nimport { getContentRenderLocaleTexts } from \"../contentRenderI18n\";\n\n// Define custom variable node type\ninterface CustomVariableNode {\n tagName: \"custom-variable\";\n properties?: {\n variableName?: string;\n buttonTexts?: string[];\n buttonValues?: string[];\n placeholder?: string;\n isMultiSelect?: boolean;\n };\n}\n\n// Define custom variable component Props type\ninterface CustomVariableProps {\n /** Explicit direction for nested input controls. */\n dir?: React.HTMLAttributes<HTMLDivElement>[\"dir\"];\n /** Explicit language for nested input controls. */\n lang?: string;\n node: CustomVariableNode;\n defaultButtonText?: string;\n defaultInputText?: string;\n defaultSelectedValues?: string[];\n locale?: MarkdownFlowLocale;\n readonly?: boolean;\n onSend?: (content: OnSendContentParams) => void;\n // Multi-select confirm button text (i18n support)\n confirmButtonText?: string;\n beforeSend?: (param: OnSendContentParams) => boolean;\n}\n\ninterface ComponentsWithCustomVariable extends Components {\n \"custom-variable\"?: React.ComponentType<CustomVariableProps>;\n}\n\n// Multi select section( with checkboxes and input)\ninterface MultiSelectSectionProps {\n node: CustomVariableNode;\n readonly?: boolean;\n selectedValues: string[];\n inputValue: string;\n confirmButtonText: string;\n handleCheckboxChange: (value: string, checked: boolean) => void;\n handleInputChange: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;\n handleKeyDown: (event: React.KeyboardEvent<HTMLTextAreaElement>) => void;\n handleConfirmClick: () => void;\n}\n\nconst MultiSelectSection = ({\n node,\n readonly,\n selectedValues,\n inputValue,\n confirmButtonText,\n handleCheckboxChange,\n handleInputChange,\n handleKeyDown,\n handleConfirmClick,\n}: MultiSelectSectionProps) => {\n const placeholder = node.properties?.placeholder;\n const confirmDisabled =\n readonly || (selectedValues.length === 0 && !inputValue?.trim());\n\n const renderConfirmButton = (extraWrapperClassName?: string) => (\n <span\n className={cn(\n \"multi-select-confirm-wrapper flex flex-col items-center\",\n confirmDisabled ? \"opacity-50 cursor-not-allowed\" : \"cursor-pointer\",\n extraWrapperClassName\n )}\n >\n <button\n type=\"button\"\n className=\"multi-select-confirm-button text-sm font-medium text-primary\"\n disabled={confirmDisabled}\n onClick={handleConfirmClick}\n >\n {confirmButtonText}\n </button>\n </span>\n );\n\n return (\n <span className=\"multi-select-container flex w-full flex-col\">\n <span className=\"flex flex-wrap gap-y-[9px] gap-x-6\">\n {node.properties?.buttonTexts?.map((text, index) => {\n const value = node.properties?.buttonValues?.[index];\n const buttonValue = value !== undefined ? value : text;\n return (\n <Checkbox\n key={index}\n label={text}\n disabled={readonly}\n checked={selectedValues.includes(buttonValue)}\n onCheckedChange={(checked) =>\n handleCheckboxChange(buttonValue, checked)\n }\n className=\"text-sm\"\n />\n );\n })}\n </span>\n {placeholder ? (\n <span className=\"block mb-1 w-full max-w-[500px]\">\n <span className=\"multi-select-input-row flex w-full items-end gap-3\">\n <InputGroup data-disabled={readonly} className=\"flex-1\">\n <InputGroupTextarea\n disabled={readonly}\n placeholder={placeholder}\n value={inputValue}\n onChange={handleInputChange}\n onKeyDown={handleKeyDown}\n className=\"text-sm px-3\"\n title={placeholder}\n />\n </InputGroup>\n {renderConfirmButton(\"shrink-0\")}\n </span>\n </span>\n ) : (\n renderConfirmButton(\"self-start multi-select-confirm-wrapper--stacked\")\n )}\n </span>\n );\n};\n\n// Single select section( with buttons and input)\ninterface SingleSelectSectionProps {\n dir?: CustomVariableProps[\"dir\"];\n lang?: string;\n node: CustomVariableNode;\n readonly?: boolean;\n locale?: MarkdownFlowLocale;\n resolvedDefaultButtonText?: string;\n handleButtonClick: (value: string) => void;\n inputValue: string;\n handleInputChange: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;\n handleSendClick: () => void;\n}\n\nconst SingleSelectSection = ({\n dir,\n lang,\n node,\n readonly,\n locale,\n resolvedDefaultButtonText,\n handleButtonClick,\n inputValue,\n handleInputChange,\n handleSendClick,\n}: SingleSelectSectionProps) => (\n <span className=\"single-select-container inline-flex w-full flex-col\">\n <span className=\"flex flex-wrap gap-y-[9px] gap-x-2\">\n {node.properties?.buttonTexts?.map((text, index) => {\n const value = node.properties?.buttonValues?.[index];\n const buttonValue = value !== undefined ? value : text;\n return (\n <Button\n key={index}\n disabled={readonly}\n variant=\"outline\"\n type=\"button\"\n size=\"sm\"\n onClick={() => handleButtonClick(buttonValue)}\n className={cn(\n \"max-w-full shrink whitespace-normal break-words text-start leading-5 h-auto min-h-8 px-3 py-1.5\",\n \"hover:bg-gray-200\",\n resolvedDefaultButtonText === text && \"select\"\n )}\n >\n {text}\n </Button>\n );\n })}\n </span>\n {node.properties?.placeholder && (\n <span className=\"mt-[9px] mb-1\">\n <MarkdownFlowInput\n dir={dir}\n lang={lang}\n disabled={readonly}\n locale={locale}\n placeholder={node.properties.placeholder}\n value={inputValue}\n onChange={handleInputChange}\n onSend={handleSendClick}\n title={node.properties.placeholder}\n />\n </span>\n )}\n </span>\n);\n\n// Pure input\ninterface InputSectionProps {\n dir?: CustomVariableProps[\"dir\"];\n lang?: string;\n readonly?: boolean;\n locale?: MarkdownFlowLocale;\n placeholder?: string;\n value: string;\n onChange: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;\n onSend: () => void;\n}\n\nconst InputSection = ({\n dir,\n lang,\n readonly,\n locale,\n placeholder,\n value,\n onChange,\n onSend,\n}: InputSectionProps) => {\n if (!placeholder) {\n return null;\n }\n\n return (\n <MarkdownFlowInput\n dir={dir}\n lang={lang}\n disabled={readonly}\n locale={locale}\n placeholder={placeholder}\n value={value}\n onChange={onChange}\n onSend={onSend}\n title={placeholder}\n />\n );\n};\n\n// Define custom variable component\nconst CustomButtonInputVariable = ({\n dir,\n lang,\n node,\n readonly,\n locale,\n defaultButtonText,\n defaultInputText,\n defaultSelectedValues,\n onSend,\n confirmButtonText,\n beforeSend = () => true,\n}: CustomVariableProps) => {\n const localeTexts = getContentRenderLocaleTexts(locale);\n const resolvedConfirmButtonText =\n confirmButtonText || localeTexts.confirmButtonText;\n const [inputValue, setInputValue] = React.useState(defaultInputText || \"\");\n const [selectedValues, setSelectedValues] = React.useState<string[]>(\n defaultSelectedValues || []\n );\n const interactionDefinitionKey = JSON.stringify({\n buttonTexts: node.properties?.buttonTexts,\n buttonValues: node.properties?.buttonValues,\n isMultiSelect: node.properties?.isMultiSelect,\n placeholder: node.properties?.placeholder,\n variableName: node.properties?.variableName,\n });\n const isMultiSelect = node.properties?.isMultiSelect ?? false;\n const baseButtonTexts = node.properties?.buttonTexts || [];\n const shouldUseFallbackButton =\n !isMultiSelect &&\n baseButtonTexts.length === 0 &&\n !node.properties?.placeholder;\n const fallbackButtonLabel =\n normalizeVariableName(node.properties?.variableName || \"\") ||\n defaultButtonText ||\n resolvedConfirmButtonText;\n\n const singleSelectNode = React.useMemo<CustomVariableNode>(() => {\n if (!shouldUseFallbackButton) {\n return node;\n }\n return {\n ...node,\n properties: {\n ...(node.properties || {}),\n buttonTexts: [fallbackButtonLabel],\n buttonValues: [fallbackButtonLabel],\n },\n };\n }, [fallbackButtonLabel, node, shouldUseFallbackButton]);\n\n const singleSelectButtonTexts =\n singleSelectNode.properties?.buttonTexts || [];\n const singleSelectButtonValues =\n singleSelectNode.properties?.buttonValues || [];\n const isSingleSelect = !isMultiSelect && singleSelectButtonTexts.length > 0;\n\n const handleButtonClick = (value: string) => {\n const param = {\n variableName: node.properties?.variableName || \"\",\n buttonText: value,\n };\n if (!beforeSend?.(param)) return;\n onSend?.(param);\n };\n\n const handleCheckboxChange = (value: string, checked: boolean) => {\n setSelectedValues((prev) => {\n if (checked) {\n return [...prev, value];\n } else {\n return prev.filter((v) => v !== value);\n }\n });\n };\n\n const handleConfirmClick = () => {\n const noSelection = selectedValues.length === 0 && !inputValue?.trim();\n const param = {\n variableName: node.properties?.variableName || \"\",\n selectedValues,\n inputText: inputValue?.trim() || undefined,\n };\n if (readonly || noSelection) return;\n if (!beforeSend?.(param)) return;\n onSend?.(param);\n };\n\n const handleInputChange = (e: React.ChangeEvent<HTMLTextAreaElement>) => {\n setInputValue(e.target.value);\n };\n const handleKeyDown = (e: React.KeyboardEvent<HTMLTextAreaElement>) => {\n if (e.nativeEvent.isComposing || e.keyCode === 229) {\n return;\n }\n if (e.key === \"Enter\" && !e.shiftKey) {\n e.preventDefault();\n if (isMultiSelect) {\n const noSelection = selectedValues.length === 0 && !inputValue.trim();\n if (!noSelection) handleConfirmClick();\n } else {\n handleSendClick();\n }\n }\n };\n const handleSendClick = () => {\n const param = {\n variableName: node.properties?.variableName || \"\",\n inputText: inputValue,\n };\n if (!beforeSend?.(param)) return;\n onSend?.(param);\n };\n\n const resolvedDefaultButtonText = React.useMemo(() => {\n if (!defaultButtonText) {\n return undefined;\n }\n const valueIndex = singleSelectButtonValues.indexOf(defaultButtonText);\n if (valueIndex > -1) {\n return singleSelectButtonTexts[valueIndex] ?? defaultButtonText;\n }\n const textIndex = singleSelectButtonTexts.indexOf(defaultButtonText);\n if (textIndex > -1) {\n return singleSelectButtonTexts[textIndex];\n }\n return undefined;\n }, [defaultButtonText, singleSelectButtonTexts, singleSelectButtonValues]);\n\n React.useEffect(() => {\n setInputValue(defaultInputText || \"\");\n }, [defaultInputText, interactionDefinitionKey]);\n\n React.useEffect(() => {\n setSelectedValues(defaultSelectedValues || []);\n }, [defaultSelectedValues, interactionDefinitionKey]);\n\n return (\n <span className=\"custom-variable-container inline-flex items-center flex-wrap\">\n {isMultiSelect && (\n <MultiSelectSection\n node={node}\n readonly={readonly}\n selectedValues={selectedValues}\n inputValue={inputValue}\n confirmButtonText={resolvedConfirmButtonText}\n handleCheckboxChange={handleCheckboxChange}\n handleInputChange={handleInputChange}\n handleKeyDown={handleKeyDown}\n handleConfirmClick={handleConfirmClick}\n />\n )}\n\n {!isMultiSelect && isSingleSelect && (\n <SingleSelectSection\n dir={dir}\n lang={lang}\n node={singleSelectNode}\n readonly={readonly}\n locale={locale}\n resolvedDefaultButtonText={resolvedDefaultButtonText}\n handleButtonClick={handleButtonClick}\n inputValue={inputValue}\n handleInputChange={handleInputChange}\n handleSendClick={handleSendClick}\n />\n )}\n\n {!isMultiSelect && !isSingleSelect && node.properties?.placeholder && (\n <InputSection\n dir={dir}\n lang={lang}\n readonly={readonly}\n locale={locale}\n placeholder={node.properties.placeholder}\n value={inputValue}\n onChange={handleInputChange}\n onSend={handleSendClick}\n />\n )}\n </span>\n );\n};\n\nexport default CustomButtonInputVariable;\nexport type {\n ComponentsWithCustomVariable,\n CustomVariableNode,\n CustomVariableProps,\n};\n"],"names":["MultiSelectSection","node","readonly","selectedValues","inputValue","confirmButtonText","handleCheckboxChange","handleInputChange","handleKeyDown","handleConfirmClick","placeholder","confirmDisabled","renderConfirmButton","extraWrapperClassName","jsx","cn","jsxs","text","index","value","buttonValue","Checkbox","checked","InputGroup","InputGroupTextarea","SingleSelectSection","dir","lang","locale","resolvedDefaultButtonText","handleButtonClick","handleSendClick","Button","MarkdownFlowInput","InputSection","onChange","onSend","CustomButtonInputVariable","defaultButtonText","defaultInputText","defaultSelectedValues","beforeSend","localeTexts","getContentRenderLocaleTexts","resolvedConfirmButtonText","setInputValue","React","setSelectedValues","interactionDefinitionKey","isMultiSelect","baseButtonTexts","shouldUseFallbackButton","fallbackButtonLabel","normalizeVariableName","singleSelectNode","singleSelectButtonTexts","singleSelectButtonValues","isSingleSelect","param","prev","v","noSelection","e","valueIndex","textIndex"],"mappings":";;;;;;;;;AA8DA,MAAMA,IAAqB,CAAC;AAAA,EAC1B,MAAAC;AAAA,EACA,UAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,YAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,sBAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,eAAAC;AAAA,EACA,oBAAAC;AACF,MAA+B;AAC7B,QAAMC,IAAcT,EAAK,YAAY,aAC/BU,IACJT,KAAaC,EAAe,WAAW,KAAK,CAACC,GAAY,KAAA,GAErDQ,IAAsB,CAACC,MAC3B,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC;AAAA,QACT;AAAA,QACAJ,IAAkB,kCAAkC;AAAA,QACpDE;AAAA,MAAA;AAAA,MAGF,UAAA,gBAAAC;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,WAAU;AAAA,UACV,UAAUH;AAAA,UACV,SAASF;AAAA,UAER,UAAAJ;AAAA,QAAA;AAAA,MAAA;AAAA,IACH;AAAA,EAAA;AAIJ,SACE,gBAAAW,EAAC,QAAA,EAAK,WAAU,+CACd,UAAA;AAAA,IAAA,gBAAAF,EAAC,QAAA,EAAK,WAAU,sCACb,UAAAb,EAAK,YAAY,aAAa,IAAI,CAACgB,GAAMC,MAAU;AAClD,YAAMC,IAAQlB,EAAK,YAAY,eAAeiB,CAAK,GAC7CE,IAAcD,MAAU,SAAYA,IAAQF;AAClD,aACE,gBAAAH;AAAA,QAACO;AAAA,QAAA;AAAA,UAEC,OAAOJ;AAAA,UACP,UAAUf;AAAA,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IAAAD,EAAcN,KAAoB,EAAE;AAAA,EACtC,GAAG,CAACA,GAAkBS,CAAwB,CAAC,GAE/CF,EAAM,UAAU,MAAM;AACpB,IAAAC,EAAkBP,KAAyB,EAAE;AAAA,EAC/C,GAAG,CAACA,GAAuBQ,CAAwB,CAAC,GAGlD,gBAAAhC,EAAC,QAAA,EAAK,WAAU,gEACb,UAAA;AAAA,IAAAiC,KACC,gBAAAnC;AAAA,MAACd;AAAA,MAAA;AAAA,QACC,MAAAC;AAAA,QACA,UAAAC;AAAA,QACA,gBAAAC;AAAA,QACA,YAAAC;AAAA,QACA,mBAAmBwC;AAAA,QACnB,sBAAAtC;AAAA,QACA,mBAAAC;AAAA,QACA,eAAAC;AAAA,QACA,oBAAAC;AAAA,MAAA;AAAA,IAAA;AAAA,IAIH,CAACwC,KAAiBQ,KACjB,gBAAA3C;AAAA,MAACW;AAAA,MAAA;AAAA,QACC,KAAAC;AAAA,QACA,MAAAC;AAAA,QACA,MAAM2B;AAAA,QACN,UAAApD;AAAA,QACA,QAAA0B;AAAA,QACA,2BAAAC;AAAA,QACA,mBAAAC;AAAA,QACA,YAAA1B;AAAA,QACA,mBAAAG;AAAA,QACA,iBAAAwB;AAAA,MAAA;AAAA,IAAA;AAAA,IAIH,CAACkB,KAAiB,CAACQ,KAAkBxD,EAAK,YAAY,eACrD,gBAAAa;AAAA,MAACoB;AAAA,MAAA;AAAA,QACC,KAAAR;AAAA,QACA,MAAAC;AAAA,QACA,UAAAzB;AAAA,QACA,QAAA0B;AAAA,QACA,aAAa3B,EAAK,WAAW;AAAA,QAC7B,OAAOG;AAAA,QACP,UAAUG;AAAA,QACV,QAAQwB;AAAA,MAAA;AAAA,IAAA;AAAA,EACV,GAEJ;AAEJ;"}
1
+ {"version":3,"file":"CustomVariable.es.js","sources":["../../../../src/components/ContentRender/plugins/CustomVariable.tsx"],"sourcesContent":["import React from \"react\";\nimport { normalizeVariableName } from \"remark-flow\";\nimport type { Components } from \"react-markdown\";\nimport { OnSendContentParams } from \"../../types\";\nimport { Button } from \"../../ui/button\";\nimport { Checkbox } from \"../../ui/checkbox\";\nimport MarkdownFlowInput from \"../MarkdownFlowInput\";\nimport { acceptPlaceholder } from \"../utils/accept-placeholder\";\nimport {\n InputGroup,\n InputGroupTextarea,\n} from \"../../ui/inputGroup/input-group\";\nimport type { MarkdownFlowLocale } from \"../../../lib/locale\";\nimport { cn } from \"../../../lib/utils\";\nimport { getContentRenderLocaleTexts } from \"../contentRenderI18n\";\n\n// Define custom variable node type\ninterface CustomVariableNode {\n tagName: \"custom-variable\";\n properties?: {\n variableName?: string;\n buttonTexts?: string[];\n buttonValues?: string[];\n placeholder?: string;\n isMultiSelect?: boolean;\n };\n}\n\n// Define custom variable component Props type\ninterface CustomVariableProps {\n /** Explicit direction for nested input controls. */\n dir?: React.HTMLAttributes<HTMLDivElement>[\"dir\"];\n /** Explicit language for nested input controls. */\n lang?: string;\n node: CustomVariableNode;\n defaultButtonText?: string;\n defaultInputText?: string;\n defaultSelectedValues?: string[];\n locale?: MarkdownFlowLocale;\n readonly?: boolean;\n onSend?: (content: OnSendContentParams) => void;\n onPlaceholderAccepted?: () => void;\n // Multi-select confirm button text (i18n support)\n confirmButtonText?: string;\n beforeSend?: (param: OnSendContentParams) => boolean;\n}\n\ninterface ComponentsWithCustomVariable extends Components {\n \"custom-variable\"?: React.ComponentType<CustomVariableProps>;\n}\n\n// Multi select section( with checkboxes and input)\ninterface MultiSelectSectionProps {\n node: CustomVariableNode;\n readonly?: boolean;\n selectedValues: string[];\n inputValue: string;\n confirmButtonText: string;\n handleCheckboxChange: (value: string, checked: boolean) => void;\n handleInputChange: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;\n handleKeyDown: (event: React.KeyboardEvent<HTMLTextAreaElement>) => void;\n handleConfirmClick: () => void;\n}\n\nconst MultiSelectSection = ({\n node,\n readonly,\n selectedValues,\n inputValue,\n confirmButtonText,\n handleCheckboxChange,\n handleInputChange,\n handleKeyDown,\n handleConfirmClick,\n}: MultiSelectSectionProps) => {\n const placeholder = node.properties?.placeholder;\n const confirmDisabled =\n readonly || (selectedValues.length === 0 && !inputValue?.trim());\n\n const renderConfirmButton = (extraWrapperClassName?: string) => (\n <span\n className={cn(\n \"multi-select-confirm-wrapper flex flex-col items-center\",\n confirmDisabled ? \"opacity-50 cursor-not-allowed\" : \"cursor-pointer\",\n extraWrapperClassName\n )}\n >\n <button\n type=\"button\"\n className=\"multi-select-confirm-button text-sm font-medium text-primary\"\n disabled={confirmDisabled}\n onClick={handleConfirmClick}\n >\n {confirmButtonText}\n </button>\n </span>\n );\n\n return (\n <span className=\"multi-select-container flex w-full flex-col\">\n <span className=\"flex flex-wrap gap-y-[9px] gap-x-6\">\n {node.properties?.buttonTexts?.map((text, index) => {\n const value = node.properties?.buttonValues?.[index];\n const buttonValue = value !== undefined ? value : text;\n return (\n <Checkbox\n key={index}\n label={text}\n disabled={readonly}\n checked={selectedValues.includes(buttonValue)}\n onCheckedChange={(checked) =>\n handleCheckboxChange(buttonValue, checked)\n }\n className=\"text-sm\"\n />\n );\n })}\n </span>\n {placeholder ? (\n <span className=\"block mb-1 w-full max-w-[500px]\">\n <span className=\"multi-select-input-row flex w-full items-end gap-3\">\n <InputGroup data-disabled={readonly} className=\"flex-1\">\n <InputGroupTextarea\n disabled={readonly}\n placeholder={placeholder}\n value={inputValue}\n onChange={handleInputChange}\n onKeyDown={handleKeyDown}\n className=\"text-sm px-3\"\n title={placeholder}\n />\n </InputGroup>\n {renderConfirmButton(\"shrink-0\")}\n </span>\n </span>\n ) : (\n renderConfirmButton(\"self-start multi-select-confirm-wrapper--stacked\")\n )}\n </span>\n );\n};\n\n// Single select section( with buttons and input)\ninterface SingleSelectSectionProps {\n dir?: CustomVariableProps[\"dir\"];\n lang?: string;\n node: CustomVariableNode;\n readonly?: boolean;\n locale?: MarkdownFlowLocale;\n resolvedDefaultButtonText?: string;\n handleButtonClick: (value: string) => void;\n inputValue: string;\n handleInputChange: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;\n handleSendClick: () => void;\n onAcceptPlaceholder: (value: string) => void;\n}\n\nconst SingleSelectSection = ({\n dir,\n lang,\n node,\n readonly,\n locale,\n resolvedDefaultButtonText,\n handleButtonClick,\n inputValue,\n handleInputChange,\n handleSendClick,\n onAcceptPlaceholder,\n}: SingleSelectSectionProps) => (\n <span className=\"single-select-container inline-flex w-full flex-col\">\n <span className=\"flex flex-wrap gap-y-[9px] gap-x-2\">\n {node.properties?.buttonTexts?.map((text, index) => {\n const value = node.properties?.buttonValues?.[index];\n const buttonValue = value !== undefined ? value : text;\n return (\n <Button\n key={index}\n disabled={readonly}\n variant=\"outline\"\n type=\"button\"\n size=\"sm\"\n onClick={() => handleButtonClick(buttonValue)}\n className={cn(\n \"max-w-full shrink whitespace-normal break-words text-start leading-5 h-auto min-h-8 px-3 py-1.5\",\n \"hover:bg-gray-200\",\n resolvedDefaultButtonText === text && \"select\"\n )}\n >\n {text}\n </Button>\n );\n })}\n </span>\n {node.properties?.placeholder && (\n <span className=\"mt-[9px] mb-1\">\n <MarkdownFlowInput\n dir={dir}\n lang={lang}\n disabled={readonly}\n locale={locale}\n placeholder={node.properties.placeholder}\n value={inputValue}\n onChange={handleInputChange}\n onSend={handleSendClick}\n onAcceptPlaceholder={onAcceptPlaceholder}\n title={node.properties.placeholder}\n />\n </span>\n )}\n </span>\n);\n\n// Pure input\ninterface InputSectionProps {\n dir?: CustomVariableProps[\"dir\"];\n lang?: string;\n readonly?: boolean;\n locale?: MarkdownFlowLocale;\n placeholder?: string;\n value: string;\n onChange: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;\n onSend: () => void;\n onAcceptPlaceholder: (value: string) => void;\n}\n\nconst InputSection = ({\n dir,\n lang,\n readonly,\n locale,\n placeholder,\n value,\n onChange,\n onSend,\n onAcceptPlaceholder,\n}: InputSectionProps) => {\n if (!placeholder) {\n return null;\n }\n\n return (\n <MarkdownFlowInput\n dir={dir}\n lang={lang}\n disabled={readonly}\n locale={locale}\n placeholder={placeholder}\n value={value}\n onChange={onChange}\n onSend={onSend}\n onAcceptPlaceholder={onAcceptPlaceholder}\n title={placeholder}\n />\n );\n};\n\n// Define custom variable component\nconst CustomButtonInputVariable = ({\n dir,\n lang,\n node,\n readonly,\n locale,\n defaultButtonText,\n defaultInputText,\n defaultSelectedValues,\n onSend,\n confirmButtonText,\n beforeSend = () => true,\n onPlaceholderAccepted,\n}: CustomVariableProps) => {\n const localeTexts = getContentRenderLocaleTexts(locale);\n const resolvedConfirmButtonText =\n confirmButtonText || localeTexts.confirmButtonText;\n const [inputValue, setInputValue] = React.useState(defaultInputText || \"\");\n const [selectedValues, setSelectedValues] = React.useState<string[]>(\n defaultSelectedValues || []\n );\n const interactionDefinitionKey = JSON.stringify({\n buttonTexts: node.properties?.buttonTexts,\n buttonValues: node.properties?.buttonValues,\n isMultiSelect: node.properties?.isMultiSelect,\n placeholder: node.properties?.placeholder,\n variableName: node.properties?.variableName,\n });\n const isMultiSelect = node.properties?.isMultiSelect ?? false;\n const baseButtonTexts = node.properties?.buttonTexts || [];\n const shouldUseFallbackButton =\n !isMultiSelect &&\n baseButtonTexts.length === 0 &&\n !node.properties?.placeholder;\n const fallbackButtonLabel =\n normalizeVariableName(node.properties?.variableName || \"\") ||\n defaultButtonText ||\n resolvedConfirmButtonText;\n\n const singleSelectNode = React.useMemo<CustomVariableNode>(() => {\n if (!shouldUseFallbackButton) {\n return node;\n }\n return {\n ...node,\n properties: {\n ...(node.properties || {}),\n buttonTexts: [fallbackButtonLabel],\n buttonValues: [fallbackButtonLabel],\n },\n };\n }, [fallbackButtonLabel, node, shouldUseFallbackButton]);\n\n const singleSelectButtonTexts =\n singleSelectNode.properties?.buttonTexts || [];\n const singleSelectButtonValues =\n singleSelectNode.properties?.buttonValues || [];\n const isSingleSelect = !isMultiSelect && singleSelectButtonTexts.length > 0;\n\n const handleButtonClick = (value: string) => {\n const param = {\n variableName: node.properties?.variableName || \"\",\n buttonText: value,\n };\n if (!beforeSend?.(param)) return;\n onSend?.(param);\n };\n\n const handleCheckboxChange = (value: string, checked: boolean) => {\n setSelectedValues((prev) => {\n if (checked) {\n return [...prev, value];\n } else {\n return prev.filter((v) => v !== value);\n }\n });\n };\n\n const handleConfirmClick = () => {\n const noSelection = selectedValues.length === 0 && !inputValue?.trim();\n const param = {\n variableName: node.properties?.variableName || \"\",\n selectedValues,\n inputText: inputValue?.trim() || undefined,\n };\n if (readonly || noSelection) return;\n if (!beforeSend?.(param)) return;\n onSend?.(param);\n };\n\n const handleInputChange = (e: React.ChangeEvent<HTMLTextAreaElement>) => {\n setInputValue(e.target.value);\n };\n const handleAcceptPlaceholder = (value: string) => {\n setInputValue(value);\n // Observer failures must never prevent editing or submitting an answer.\n try {\n void Promise.resolve(onPlaceholderAccepted?.()).catch(() => {});\n } catch {}\n };\n const handleKeyDown = (e: React.KeyboardEvent<HTMLTextAreaElement>) => {\n if (\n acceptPlaceholder(\n e,\n node.properties?.placeholder,\n readonly,\n handleAcceptPlaceholder\n )\n ) {\n return;\n }\n if (e.nativeEvent.isComposing || e.keyCode === 229) {\n return;\n }\n if (e.key === \"Enter\" && !e.shiftKey) {\n e.preventDefault();\n if (isMultiSelect) {\n const noSelection = selectedValues.length === 0 && !inputValue.trim();\n if (!noSelection) handleConfirmClick();\n } else {\n handleSendClick();\n }\n }\n };\n const handleSendClick = () => {\n const param = {\n variableName: node.properties?.variableName || \"\",\n inputText: inputValue,\n };\n if (!beforeSend?.(param)) return;\n onSend?.(param);\n };\n\n const resolvedDefaultButtonText = React.useMemo(() => {\n if (!defaultButtonText) {\n return undefined;\n }\n const valueIndex = singleSelectButtonValues.indexOf(defaultButtonText);\n if (valueIndex > -1) {\n return singleSelectButtonTexts[valueIndex] ?? defaultButtonText;\n }\n const textIndex = singleSelectButtonTexts.indexOf(defaultButtonText);\n if (textIndex > -1) {\n return singleSelectButtonTexts[textIndex];\n }\n return undefined;\n }, [defaultButtonText, singleSelectButtonTexts, singleSelectButtonValues]);\n\n React.useEffect(() => {\n setInputValue(defaultInputText || \"\");\n }, [defaultInputText, interactionDefinitionKey]);\n\n React.useEffect(() => {\n setSelectedValues(defaultSelectedValues || []);\n }, [defaultSelectedValues, interactionDefinitionKey]);\n\n return (\n <span className=\"custom-variable-container inline-flex items-center flex-wrap\">\n {isMultiSelect && (\n <MultiSelectSection\n node={node}\n readonly={readonly}\n selectedValues={selectedValues}\n inputValue={inputValue}\n confirmButtonText={resolvedConfirmButtonText}\n handleCheckboxChange={handleCheckboxChange}\n handleInputChange={handleInputChange}\n handleKeyDown={handleKeyDown}\n handleConfirmClick={handleConfirmClick}\n />\n )}\n\n {!isMultiSelect && isSingleSelect && (\n <SingleSelectSection\n dir={dir}\n lang={lang}\n node={singleSelectNode}\n readonly={readonly}\n locale={locale}\n resolvedDefaultButtonText={resolvedDefaultButtonText}\n handleButtonClick={handleButtonClick}\n inputValue={inputValue}\n handleInputChange={handleInputChange}\n handleSendClick={handleSendClick}\n onAcceptPlaceholder={handleAcceptPlaceholder}\n />\n )}\n\n {!isMultiSelect && !isSingleSelect && node.properties?.placeholder && (\n <InputSection\n dir={dir}\n lang={lang}\n readonly={readonly}\n locale={locale}\n placeholder={node.properties.placeholder}\n value={inputValue}\n onChange={handleInputChange}\n onSend={handleSendClick}\n onAcceptPlaceholder={handleAcceptPlaceholder}\n />\n )}\n </span>\n );\n};\n\nexport default CustomButtonInputVariable;\nexport type {\n ComponentsWithCustomVariable,\n CustomVariableNode,\n CustomVariableProps,\n};\n"],"names":["MultiSelectSection","node","readonly","selectedValues","inputValue","confirmButtonText","handleCheckboxChange","handleInputChange","handleKeyDown","handleConfirmClick","placeholder","confirmDisabled","renderConfirmButton","extraWrapperClassName","jsx","cn","jsxs","text","index","value","buttonValue","Checkbox","checked","InputGroup","InputGroupTextarea","SingleSelectSection","dir","lang","locale","resolvedDefaultButtonText","handleButtonClick","handleSendClick","onAcceptPlaceholder","Button","MarkdownFlowInput","InputSection","onChange","onSend","CustomButtonInputVariable","defaultButtonText","defaultInputText","defaultSelectedValues","beforeSend","onPlaceholderAccepted","localeTexts","getContentRenderLocaleTexts","resolvedConfirmButtonText","setInputValue","React","setSelectedValues","interactionDefinitionKey","isMultiSelect","baseButtonTexts","shouldUseFallbackButton","fallbackButtonLabel","normalizeVariableName","singleSelectNode","singleSelectButtonTexts","singleSelectButtonValues","isSingleSelect","param","prev","v","noSelection","e","handleAcceptPlaceholder","acceptPlaceholder","valueIndex","textIndex"],"mappings":";;;;;;;;;;AAgEA,MAAMA,IAAqB,CAAC;AAAA,EAC1B,MAAAC;AAAA,EACA,UAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,YAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,sBAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,eAAAC;AAAA,EACA,oBAAAC;AACF,MAA+B;AAC7B,QAAMC,IAAcT,EAAK,YAAY,aAC/BU,IACJT,KAAaC,EAAe,WAAW,KAAK,CAACC,GAAY,KAAA,GAErDQ,IAAsB,CAACC,MAC3B,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC;AAAA,QACT;AAAA,QACAJ,IAAkB,kCAAkC;AAAA,QACpDE;AAAA,MAAA;AAAA,MAGF,UAAA,gBAAAC;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,WAAU;AAAA,UACV,UAAUH;AAAA,UACV,SAASF;AAAA,UAER,UAAAJ;AAAA,QAAA;AAAA,MAAA;AAAA,IACH;AAAA,EAAA;AAIJ,SACE,gBAAAW,EAAC,QAAA,EAAK,WAAU,+CACd,UAAA;AAAA,IAAA,gBAAAF,EAAC,QAAA,EAAK,WAAU,sCACb,UAAAb,EAAK,YAAY,aAAa,IAAI,CAACgB,GAAMC,MAAU;AAClD,YAAMC,IAAQlB,EAAK,YAAY,eAAeiB,CAAK,GAC7CE,IAAcD,MAAU,SAAYA,IAAQF;AAClD,aACE,gBAAAH;AAAA,QAACO;AAAA,QAAA;AAAA,UA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B1D,EAAK,YAAY,eACrD,gBAAAa;AAAA,MAACqB;AAAA,MAAA;AAAA,QACC,KAAAT;AAAA,QACA,MAAAC;AAAA,QACA,UAAAzB;AAAA,QACA,QAAA0B;AAAA,QACA,aAAa3B,EAAK,WAAW;AAAA,QAC7B,OAAOG;AAAA,QACP,UAAUG;AAAA,QACV,QAAQwB;AAAA,QACR,qBAAqBkC;AAAA,MAAA;AAAA,IAAA;AAAA,EACvB,GAEJ;AAEJ;"}
@@ -1 +1 @@
1
- {"version":3,"file":"MermaidChart.cjs","sources":["../../../../src/components/ContentRender/plugins/MermaidChart.tsx"],"sourcesContent":["import React, { useEffect, useState } from \"react\";\nimport mermaid, { type ParseResult } from \"mermaid\";\nimport { CJK_SAFE_SANS_FONT_FAMILY } from \"../cjkFontFamily\";\n\nexport interface MermaidChartProps {\n chart: string;\n messages?: {\n emptyChart?: string;\n loading?: string;\n error?: string;\n badge?: string;\n };\n frozen?: boolean;\n}\n\nconst DEFAULT_MESSAGES = {\n emptyChart: \"Empty chart content\",\n loading: \"Loading Mermaid chart...\",\n error: \"Unable to display the Mermaid chart\",\n badge: \"mermaid\",\n} as const;\n\nconst preprocessChart = (raw: string) =>\n raw.trim().replace(/^_streaming\\s*/i, \"\");\n\nlet renderSequence = 0;\n\nconst createMeasurementContainer = (parsed: ParseResult | false) => {\n const container = document.createElement(\"div\");\n container.className = \"content-render-mermaid-measurement\";\n let width = document.documentElement.clientWidth || window.innerWidth;\n if (parsed && parsed.diagramType === \"xychart\") {\n // XY charts measure text after setting their fixed SVG viewBox. Keep that\n // SVG at its natural size while measuring, even on a narrow screen.\n width = Math.max(\n width,\n parsed.config.xyChart?.width ??\n mermaid.mermaidAPI.defaultConfig.xyChart!.width!\n );\n }\n Object.assign(container.style, {\n position: \"fixed\",\n top: \"0\",\n left: \"0\",\n width: `${width}px`,\n display: \"block\",\n visibility: \"hidden\",\n pointerEvents: \"none\",\n margin: \"0\",\n padding: \"0\",\n border: \"0\",\n transformOrigin: \"0 0\",\n });\n container.setAttribute(\"aria-hidden\", \"true\");\n document.body.appendChild(container);\n\n // Mermaid uses screen-space getBoundingClientRect values as SVG units.\n // Cancel inherited scaling locally without changing the consumer's body.\n const probe = document.createElement(\"div\");\n Object.assign(probe.style, {\n width: \"100px\",\n height: \"100px\",\n padding: \"0\",\n border: \"0\",\n margin: \"0\",\n boxSizing: \"border-box\",\n });\n container.appendChild(probe);\n const bounds = probe.getBoundingClientRect();\n if (bounds.width > 0 && bounds.height > 0) {\n container.style.transform = `scale(${100 / bounds.width}, ${100 / bounds.height})`;\n }\n probe.remove();\n return container;\n};\n\nconst fitXYViewBox = (svg: string, container: HTMLElement) => {\n container.innerHTML = svg;\n const element = container.querySelector(\"svg\");\n if (!element?.hasAttribute(\"viewBox\")) return svg;\n const viewBox = element.viewBox.baseVal;\n const screenToSvg = element.getScreenCTM()?.inverse();\n if (!screenToSvg) return svg;\n // Some fonts extend above the top tick's middle-aligned baseline. Include\n // their actual glyph bounds instead of clipping them to the fixed XY canvas.\n let left = viewBox.x;\n let top = viewBox.y;\n let right = viewBox.x + viewBox.width;\n let bottom = viewBox.y + viewBox.height;\n const labels = element.querySelectorAll<SVGGraphicsElement>(\n \".left-axis .label, .right-axis .label, .top-axis .label, .bottom-axis .label\"\n );\n for (const label of labels) {\n const transform = label.getScreenCTM();\n if (!transform) continue;\n const matrix = screenToSvg.multiply(transform);\n const bounds = label.getBBox();\n for (const x of [bounds.x, bounds.x + bounds.width]) {\n for (const y of [bounds.y, bounds.y + bounds.height]) {\n const point = new DOMPoint(x, y).matrixTransform(matrix);\n if (!Number.isFinite(point.x) || !Number.isFinite(point.y)) continue;\n left = Math.min(left, Math.floor(point.x));\n top = Math.min(top, Math.floor(point.y));\n right = Math.max(right, Math.ceil(point.x));\n bottom = Math.max(bottom, Math.ceil(point.y));\n }\n }\n }\n if (\n left === viewBox.x &&\n top === viewBox.y &&\n right === viewBox.x + viewBox.width &&\n bottom === viewBox.y + viewBox.height\n ) {\n return svg;\n }\n element.setAttribute(\n \"viewBox\",\n `${left} ${top} ${right - left} ${bottom - top}`\n );\n return element.outerHTML;\n};\n\nconst MermaidChart: React.FC<MermaidChartProps> = ({\n chart,\n messages,\n frozen,\n}) => {\n const [svg, setSvg] = useState(\"\");\n const [error, setError] = useState(\"\");\n const [hasRendered, setHasRendered] = useState(false);\n\n const renderChart = async () => {\n try {\n const cleaned = preprocessChart(chart);\n\n if (!cleaned) {\n setError(\"\");\n setSvg(\"\");\n return;\n }\n\n // Initialize Mermaid with an explicit CJK-safe font stack.\n // Using a concrete stack avoids clipping caused by `inherit` resolving to\n // Storybook's default font during off-screen rendering.\n mermaid.initialize({\n startOnLoad: false,\n theme: \"default\",\n securityLevel: \"loose\",\n fontFamily: CJK_SAFE_SANS_FONT_FAMILY,\n themeVariables: {\n fontFamily: CJK_SAFE_SANS_FONT_FAMILY,\n },\n });\n\n // use mermaid.parse to check for errors\n let parsed: ParseResult | false;\n try {\n parsed = await mermaid.parse(cleaned);\n } catch (parseErr) {\n const parseErrorMsg = String(parseErr).toLowerCase();\n setError(parseErrorMsg);\n setSvg(\"\");\n // once render success, setHasRendered flag\n setHasRendered(true);\n return;\n }\n\n const id = `mermaid-${Date.now()}-${++renderSequence}`;\n\n const container = createMeasurementContainer(parsed);\n try {\n const { svg: renderedSvg } = await mermaid.render(\n id,\n cleaned,\n container\n );\n let displaySvg = renderedSvg;\n if (parsed && parsed.diagramType === \"xychart\") {\n try {\n displaySvg = fitXYViewBox(renderedSvg, container);\n } catch {\n // Geometry fitting is optional; preserve a successful diagram if\n // the browser cannot measure its glyphs.\n displaySvg = renderedSvg;\n }\n }\n setSvg(displaySvg);\n setError(\"\");\n } finally {\n container.remove();\n }\n } catch (err) {\n const errorMsg = String(err).toLowerCase();\n setError(errorMsg);\n setSvg(\"\");\n }\n };\n\n useEffect(() => {\n if (frozen && hasRendered) return; // 核心:被冻结就不渲染\n renderChart();\n }, [chart, frozen]);\n\n const cleanedChart = preprocessChart(chart);\n if (error || !cleanedChart) {\n const displayChart = cleanedChart || chart.trim();\n return (\n <div\n className=\"my-4 border border-gray-200 rounded-lg bg-gray-50\"\n data-mermaid-error={error || undefined}\n >\n <div className=\"px-4 py-3 bg-gray-100 border-b border-gray-200 flex items-center gap-2\">\n <span className=\"text-yellow-600\">⚠️</span>\n <span\n dir=\"auto\"\n className=\"text-sm text-yellow-700 font-medium whitespace-pre-wrap\"\n >\n {cleanedChart\n ? (messages?.error ?? DEFAULT_MESSAGES.error)\n : (messages?.emptyChart ?? DEFAULT_MESSAGES.emptyChart)}\n </span>\n </div>\n <div className=\"relative\">\n <pre\n dir=\"ltr\"\n className=\"p-4 text-sm font-mono text-yellow-800 text-start [unicode-bidi:isolate]\"\n >\n <code>{displayChart}</code>\n </pre>\n <div className=\"absolute top-2 right-2 px-2 py-1 text-xs text-yellow-700 bg-white/90 rounded border border-gray-200\">\n {messages?.badge ?? DEFAULT_MESSAGES.badge}\n </div>\n </div>\n </div>\n );\n }\n\n return (\n <div className=\"my-4 text-center overflow-auto content-render-mermaid\">\n {svg ? (\n <div\n className=\"content-render-mermaid-inner\"\n dangerouslySetInnerHTML={{ __html: svg }}\n />\n ) : (\n <div className=\"py-8 text-gray-500 italic\">\n {messages?.loading ?? DEFAULT_MESSAGES.loading}\n </div>\n )}\n </div>\n );\n};\n\nexport default React.memo(MermaidChart, (prev, next) => {\n return (\n prev.chart === next.chart &&\n prev.frozen === next.frozen &&\n prev.messages?.emptyChart === next.messages?.emptyChart &&\n prev.messages?.loading === next.messages?.loading &&\n prev.messages?.error === next.messages?.error &&\n prev.messages?.badge === next.messages?.badge\n );\n});\n"],"names":["DEFAULT_MESSAGES","preprocessChart","raw","renderSequence","createMeasurementContainer","parsed","container","width","mermaid","probe","bounds","fitXYViewBox","svg","element","viewBox","screenToSvg","left","top","right","bottom","labels","label","transform","matrix","y","point","MermaidChart","chart","messages","frozen","setSvg","useState","error","setError","hasRendered","setHasRendered","renderChart","cleaned","CJK_SAFE_SANS_FONT_FAMILY","parseErr","parseErrorMsg","id","renderedSvg","displaySvg","err","errorMsg","useEffect","cleanedChart","displayChart","jsxs","jsx","MermaidChart$1","React","prev","next"],"mappings":"uQAeMA,EAAmB,CACvB,WAAY,sBACZ,QAAS,2BACT,MAAO,sCACP,MAAO,SACT,EAEMC,EAAmBC,GACvBA,EAAI,OAAO,QAAQ,kBAAmB,EAAE,EAE1C,IAAIC,EAAiB,EAErB,MAAMC,EAA8BC,GAAgC,CAClE,MAAMC,EAAY,SAAS,cAAc,KAAK,EAC9CA,EAAU,UAAY,qCACtB,IAAIC,EAAQ,SAAS,gBAAgB,aAAe,OAAO,WACvDF,GAAUA,EAAO,cAAgB,YAGnCE,EAAQ,KAAK,IACXA,EACAF,EAAO,OAAO,SAAS,OACrBG,EAAAA,QAAQ,WAAW,cAAc,QAAS,KAAA,GAGhD,OAAO,OAAOF,EAAU,MAAO,CAC7B,SAAU,QACV,IAAK,IACL,KAAM,IACN,MAAO,GAAGC,CAAK,KACf,QAAS,QACT,WAAY,SACZ,cAAe,OACf,OAAQ,IACR,QAAS,IACT,OAAQ,IACR,gBAAiB,KAAA,CAClB,EACDD,EAAU,aAAa,cAAe,MAAM,EAC5C,SAAS,KAAK,YAAYA,CAAS,EAInC,MAAMG,EAAQ,SAAS,cAAc,KAAK,EAC1C,OAAO,OAAOA,EAAM,MAAO,CACzB,MAAO,QACP,OAAQ,QACR,QAAS,IACT,OAAQ,IACR,OAAQ,IACR,UAAW,YAAA,CACZ,EACDH,EAAU,YAAYG,CAAK,EAC3B,MAAMC,EAASD,EAAM,sBAAA,EACrB,OAAIC,EAAO,MAAQ,GAAKA,EAAO,OAAS,IACtCJ,EAAU,MAAM,UAAY,SAAS,IAAMI,EAAO,KAAK,KAAK,IAAMA,EAAO,MAAM,KAEjFD,EAAM,OAAA,EACCH,CACT,EAEMK,EAAe,CAACC,EAAaN,IAA2B,CAC5DA,EAAU,UAAYM,EACtB,MAAMC,EAAUP,EAAU,cAAc,KAAK,EA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AAU,UAAYC,EAAK,UAAU,SAC1CD,EAAK,UAAU,QAAUC,EAAK,UAAU,OACxCD,EAAK,UAAU,QAAUC,EAAK,UAAU,KAE3C"}
1
+ {"version":3,"file":"MermaidChart.cjs","sources":["../../../../src/components/ContentRender/plugins/MermaidChart.tsx"],"sourcesContent":["import React, { useEffect, useState } from \"react\";\nimport mermaid, { type ParseResult } from \"mermaid\";\nimport { CJK_SAFE_SANS_FONT_FAMILY } from \"../cjkFontFamily\";\n\nexport interface MermaidChartProps {\n chart: string;\n messages?: {\n emptyChart?: string;\n loading?: string;\n error?: string;\n badge?: string;\n };\n frozen?: boolean;\n}\n\nconst DEFAULT_MESSAGES = {\n emptyChart: \"Empty chart content\",\n loading: \"Loading Mermaid chart...\",\n error: \"Unable to display the Mermaid chart\",\n badge: \"mermaid\",\n} as const;\n\nconst preprocessChart = (raw: string) =>\n raw.trim().replace(/^_streaming\\s*/i, \"\");\n\nlet renderSequence = 0;\n\nconst createMeasurementContainer = (parsed: ParseResult | false) => {\n const container = document.createElement(\"div\");\n container.className = \"content-render-mermaid-measurement\";\n let width = document.documentElement.clientWidth || window.innerWidth;\n if (parsed && parsed.diagramType === \"xychart\") {\n // XY charts measure text after setting their fixed SVG viewBox. Keep that\n // SVG at its natural size while measuring, even on a narrow screen.\n width = Math.max(\n width,\n parsed.config.xyChart?.width ??\n mermaid.mermaidAPI.defaultConfig.xyChart!.width!\n );\n }\n Object.assign(container.style, {\n position: \"fixed\",\n top: \"0\",\n left: \"0\",\n width: `${width}px`,\n display: \"block\",\n visibility: \"hidden\",\n pointerEvents: \"none\",\n margin: \"0\",\n padding: \"0\",\n border: \"0\",\n transformOrigin: \"0 0\",\n });\n container.setAttribute(\"aria-hidden\", \"true\");\n document.body.appendChild(container);\n\n // Mermaid uses screen-space getBoundingClientRect values as SVG units.\n // Cancel inherited scaling locally without changing the consumer's body.\n const probe = document.createElement(\"div\");\n Object.assign(probe.style, {\n width: \"100px\",\n height: \"100px\",\n padding: \"0\",\n border: \"0\",\n margin: \"0\",\n boxSizing: \"border-box\",\n });\n container.appendChild(probe);\n const bounds = probe.getBoundingClientRect();\n if (bounds.width > 0 && bounds.height > 0) {\n container.style.transform = `scale(${100 / bounds.width}, ${100 / bounds.height})`;\n }\n probe.remove();\n return container;\n};\n\nconst fitXYViewBox = (svg: string, container: HTMLElement) => {\n container.innerHTML = svg;\n const element = container.querySelector(\"svg\");\n if (!element?.hasAttribute(\"viewBox\")) return svg;\n const viewBox = element.viewBox.baseVal;\n const screenToSvg = element.getScreenCTM()?.inverse();\n if (!screenToSvg) return svg;\n // Some fonts extend above the top tick's middle-aligned baseline. Include\n // their actual glyph bounds instead of clipping them to the fixed XY canvas.\n let left = viewBox.x;\n let top = viewBox.y;\n let right = viewBox.x + viewBox.width;\n let bottom = viewBox.y + viewBox.height;\n const labels = element.querySelectorAll<SVGGraphicsElement>(\n \".left-axis .label, .right-axis .label, .top-axis .label, .bottom-axis .label\"\n );\n for (const label of labels) {\n const transform = label.getScreenCTM();\n if (!transform) continue;\n const matrix = screenToSvg.multiply(transform);\n const bounds = label.getBBox();\n for (const x of [bounds.x, bounds.x + bounds.width]) {\n for (const y of [bounds.y, bounds.y + bounds.height]) {\n const point = new DOMPoint(x, y).matrixTransform(matrix);\n if (!Number.isFinite(point.x) || !Number.isFinite(point.y)) continue;\n left = Math.min(left, Math.floor(point.x));\n top = Math.min(top, Math.floor(point.y));\n right = Math.max(right, Math.ceil(point.x));\n bottom = Math.max(bottom, Math.ceil(point.y));\n }\n }\n }\n if (\n left === viewBox.x &&\n top === viewBox.y &&\n right === viewBox.x + viewBox.width &&\n bottom === viewBox.y + viewBox.height\n ) {\n return svg;\n }\n element.setAttribute(\n \"viewBox\",\n `${left} ${top} ${right - left} ${bottom - top}`\n );\n return element.outerHTML;\n};\n\nconst MermaidChart: React.FC<MermaidChartProps> = ({\n chart,\n messages,\n frozen,\n}) => {\n const [svg, setSvg] = useState(\"\");\n const [error, setError] = useState(\"\");\n const [hasRendered, setHasRendered] = useState(false);\n\n const renderChart = async () => {\n try {\n const cleaned = preprocessChart(chart);\n\n if (!cleaned) {\n setError(\"\");\n setSvg(\"\");\n return;\n }\n\n // Initialize Mermaid with an explicit CJK-safe font stack.\n // Using a concrete stack avoids clipping caused by `inherit` resolving to\n // Storybook's default font during off-screen rendering.\n mermaid.initialize({\n startOnLoad: false,\n theme: \"default\",\n securityLevel: \"loose\",\n fontFamily: CJK_SAFE_SANS_FONT_FAMILY,\n themeVariables: {\n fontFamily: CJK_SAFE_SANS_FONT_FAMILY,\n },\n });\n\n // use mermaid.parse to check for errors\n let parsed: ParseResult | false;\n try {\n parsed = await mermaid.parse(cleaned);\n } catch (parseErr) {\n const parseErrorMsg = String(parseErr).toLowerCase();\n setError(parseErrorMsg);\n setSvg(\"\");\n // once render success, setHasRendered flag\n setHasRendered(true);\n return;\n }\n\n const id = `mermaid-${Date.now()}-${++renderSequence}`;\n\n const container = createMeasurementContainer(parsed);\n try {\n const { svg: renderedSvg } = await mermaid.render(\n id,\n cleaned,\n container\n );\n let displaySvg = renderedSvg;\n if (parsed && parsed.diagramType === \"xychart\") {\n try {\n displaySvg = fitXYViewBox(renderedSvg, container);\n } catch {\n // Geometry fitting is optional; preserve a successful diagram if\n // the browser cannot measure its glyphs.\n displaySvg = renderedSvg;\n }\n }\n setSvg(displaySvg);\n setError(\"\");\n } finally {\n container.remove();\n }\n } catch (err) {\n const errorMsg = String(err).toLowerCase();\n setError(errorMsg);\n setSvg(\"\");\n }\n };\n\n useEffect(() => {\n if (frozen && hasRendered) return; // 核心:被冻结就不渲染\n renderChart();\n }, [chart, frozen]);\n\n const cleanedChart = preprocessChart(chart);\n if (error || !cleanedChart) {\n const displayChart = cleanedChart || chart.trim();\n return (\n <div\n className=\"my-4 border border-gray-200 rounded-lg bg-gray-50\"\n data-mermaid-error={error || undefined}\n >\n <div className=\"px-4 py-3 bg-gray-100 border-b border-gray-200 flex items-center gap-2\">\n <span className=\"text-yellow-600\">⚠️</span>\n <span\n dir=\"auto\"\n className=\"text-sm text-yellow-700 font-medium whitespace-pre-wrap\"\n >\n {cleanedChart\n ? (messages?.error ?? DEFAULT_MESSAGES.error)\n : (messages?.emptyChart ?? DEFAULT_MESSAGES.emptyChart)}\n </span>\n </div>\n <div className=\"relative\">\n <pre\n dir=\"ltr\"\n className=\"p-4 text-sm font-mono text-yellow-800 text-start [unicode-bidi:isolate]\"\n >\n <code>{displayChart}</code>\n </pre>\n <div className=\"absolute top-2 right-2 px-2 py-1 text-xs text-yellow-700 bg-white/90 rounded border border-gray-200\">\n {messages?.badge ?? DEFAULT_MESSAGES.badge}\n </div>\n </div>\n </div>\n );\n }\n\n return (\n <div className=\"my-4 text-center overflow-auto content-render-mermaid\">\n {svg ? (\n <div\n className=\"content-render-mermaid-inner\"\n dangerouslySetInnerHTML={{ __html: svg }}\n />\n ) : (\n <div className=\"py-8 text-gray-500 italic\">\n {messages?.loading ?? DEFAULT_MESSAGES.loading}\n </div>\n )}\n </div>\n );\n};\n\nexport default React.memo(MermaidChart, (prev, next) => {\n return (\n prev.chart === next.chart &&\n prev.frozen === next.frozen &&\n prev.messages?.emptyChart === next.messages?.emptyChart &&\n prev.messages?.loading === next.messages?.loading &&\n prev.messages?.error === next.messages?.error &&\n prev.messages?.badge === next.messages?.badge\n );\n});\n"],"names":["DEFAULT_MESSAGES","preprocessChart","raw","renderSequence","createMeasurementContainer","parsed","container","width","mermaid","probe","bounds","fitXYViewBox","svg","element","viewBox","screenToSvg","left","top","right","bottom","labels","label","transform","matrix","y","point","MermaidChart","chart","messages","frozen","setSvg","useState","error","setError","hasRendered","setHasRendered","renderChart","cleaned","CJK_SAFE_SANS_FONT_FAMILY","parseErr","parseErrorMsg","id","renderedSvg","displaySvg","err","errorMsg","useEffect","cleanedChart","displayChart","jsxs","jsx","React","prev","next"],"mappings":"uQAeMA,EAAmB,CACvB,WAAY,sBACZ,QAAS,2BACT,MAAO,sCACP,MAAO,SACT,EAEMC,EAAmBC,GACvBA,E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e.defaultPrevented||e.key!=="Tab"||e.shiftKey||e.ctrlKey||e.altKey||e.metaKey||e.repeat||e.nativeEvent.isComposing||e.keyCode===229||i||t.readOnly||t.value!==""||t.ownerDocument.activeElement!==t||!a?.trim()||!r?!1:(e.preventDefault(),r(a),requestAnimationFrame(()=>{t.ownerDocument.activeElement===t&&t.value===a&&t.setSelectionRange(a.length,a.length)}),!0)}exports.acceptPlaceholder=n;
2
+ //# sourceMappingURL=accept-placeholder.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accept-placeholder.cjs","sources":["../../../../src/components/ContentRender/utils/accept-placeholder.ts"],"sourcesContent":["import type React from \"react\";\n\n/** Accept a hint only for an unmodified Tab in a focused, empty input. */\nexport function acceptPlaceholder(\n event: React.KeyboardEvent<HTMLTextAreaElement>,\n placeholder: string | undefined,\n disabled: boolean | undefined,\n onAccept: ((value: string) => void) | undefined\n): boolean {\n const textarea = event.currentTarget;\n if (\n event.defaultPrevented ||\n event.key !== \"Tab\" ||\n event.shiftKey ||\n event.ctrlKey ||\n event.altKey ||\n event.metaKey ||\n event.repeat ||\n event.nativeEvent.isComposing ||\n event.keyCode === 229 ||\n disabled ||\n textarea.readOnly ||\n textarea.value !== \"\" ||\n textarea.ownerDocument.activeElement !== textarea ||\n !placeholder?.trim() ||\n !onAccept\n ) {\n return false;\n }\n\n event.preventDefault();\n onAccept(placeholder);\n // The controlled value is committed after the keyboard handler returns.\n requestAnimationFrame(() => {\n if (\n textarea.ownerDocument.activeElement === textarea &&\n textarea.value === placeholder\n ) {\n textarea.setSelectionRange(placeholder.length, placeholder.length);\n }\n });\n return true;\n}\n"],"names":["acceptPlaceholder","event","placeholder","disabled","onAccept","textarea"],"mappings":"gFAGO,SAASA,EACdC,EACAC,EACAC,EACAC,EACS,CACT,MAAMC,EAAWJ,EAAM,cACvB,OACEA,EAAM,kBACNA,EAAM,MAAQ,OACdA,EAAM,UACNA,EAAM,SACNA,EAAM,QACNA,EAAM,SACNA,EAAM,QACNA,EAAM,YAAY,aAClBA,EAAM,UAAY,KAClBE,GACAE,EAAS,UACTA,EAAS,QAAU,IACnBA,EAAS,cAAc,gBAAkBA,GACzC,CAACH,GAAa,KAAA,GACd,CAACE,EAEM,IAGTH,EAAM,eAAA,EACNG,EAASF,CAAW,EAEpB,sBAAsB,IAAM,CAExBG,EAAS,cAAc,gBAAkBA,GACzCA,EAAS,QAAUH,GAEnBG,EAAS,kBAAkBH,EAAY,OAAQA,EAAY,MAAM,CAErE,CAAC,EACM,GACT"}
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ /** Accept a hint only for an unmodified Tab in a focused, empty input. */
3
+ export declare function acceptPlaceholder(event: React.KeyboardEvent<HTMLTextAreaElement>, placeholder: string | undefined, disabled: boolean | undefined, onAccept: ((value: string) => void) | undefined): boolean;
@@ -0,0 +1,10 @@
1
+ function n(e, a, i, r) {
2
+ const t = e.currentTarget;
3
+ return e.defaultPrevented || e.key !== "Tab" || e.shiftKey || e.ctrlKey || e.altKey || e.metaKey || e.repeat || e.nativeEvent.isComposing || e.keyCode === 229 || i || t.readOnly || t.value !== "" || t.ownerDocument.activeElement !== t || !a?.trim() || !r ? !1 : (e.preventDefault(), r(a), requestAnimationFrame(() => {
4
+ t.ownerDocument.activeElement === t && t.value === a && t.setSelectionRange(a.length, a.length);
5
+ }), !0);
6
+ }
7
+ export {
8
+ n as acceptPlaceholder
9
+ };
10
+ //# sourceMappingURL=accept-placeholder.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accept-placeholder.es.js","sources":["../../../../src/components/ContentRender/utils/accept-placeholder.ts"],"sourcesContent":["import type React from \"react\";\n\n/** Accept a hint only for an unmodified Tab in a focused, empty input. */\nexport function acceptPlaceholder(\n event: React.KeyboardEvent<HTMLTextAreaElement>,\n placeholder: string | undefined,\n disabled: boolean | undefined,\n onAccept: ((value: string) => void) | undefined\n): boolean {\n const textarea = event.currentTarget;\n if (\n event.defaultPrevented ||\n event.key !== \"Tab\" ||\n event.shiftKey ||\n event.ctrlKey ||\n event.altKey ||\n event.metaKey ||\n event.repeat ||\n event.nativeEvent.isComposing ||\n event.keyCode === 229 ||\n disabled ||\n textarea.readOnly ||\n textarea.value !== \"\" ||\n textarea.ownerDocument.activeElement !== textarea ||\n !placeholder?.trim() ||\n !onAccept\n ) {\n return false;\n }\n\n event.preventDefault();\n onAccept(placeholder);\n // The controlled value is committed after the keyboard handler returns.\n requestAnimationFrame(() => {\n if (\n textarea.ownerDocument.activeElement === textarea &&\n textarea.value === placeholder\n ) {\n textarea.setSelectionRange(placeholder.length, placeholder.length);\n }\n });\n return true;\n}\n"],"names":["acceptPlaceholder","event","placeholder","disabled","onAccept","textarea"],"mappings":"AAGO,SAASA,EACdC,GACAC,GACAC,GACAC,GACS;AACT,QAAMC,IAAWJ,EAAM;AACvB,SACEA,EAAM,oBACNA,EAAM,QAAQ,SACdA,EAAM,YACNA,EAAM,WACNA,EAAM,UACNA,EAAM,WACNA,EAAM,UACNA,EAAM,YAAY,eAClBA,EAAM,YAAY,OAClBE,KACAE,EAAS,YACTA,EAAS,UAAU,MACnBA,EAAS,cAAc,kBAAkBA,KACzC,CAACH,GAAa,KAAA,KACd,CAACE,IAEM,MAGTH,EAAM,eAAA,GACNG,EAASF,CAAW,GAEpB,sBAAsB,MAAM;AAC1B,IACEG,EAAS,cAAc,kBAAkBA,KACzCA,EAAS,UAAUH,KAEnBG,EAAS,kBAAkBH,EAAY,QAAQA,EAAY,MAAM;AAAA,EAErE,CAAC,GACM;AACT;"}
@@ -1,7 +1,7 @@
1
1
  import { decodeString as j } from "../../../node_modules/micromark-util-decode-string/index.es.js";
2
2
  import { getMarkdownSourceAnalysis as U } from "./inline-code-ranges.es.js";
3
3
  import { normalizeInlineHtml as K } from "./normalize-inline-html.es.js";
4
- import { readHtmlMarkup as L, findStreamingHtmlElementEnd as q, isHtmlRawTextTag as D } from "./html-block-end.es.js";
4
+ import { readHtmlMarkup as L, isHtmlRawTextTag as q, findStreamingHtmlElementEnd as D } from "./html-block-end.es.js";
5
5
  const F = "contentRenderVisibility", b = (e, a) => {
6
6
  let o = 0, n = e.length;
7
7
  for (; o < n; ) {
@@ -32,7 +32,7 @@ const F = "contentRenderVisibility", b = (e, a) => {
32
32
  const i = L(e, d);
33
33
  if (i.kind === "incomplete")
34
34
  return /^<svg(?=[\s/>]|$)/i.test(e.slice(d)) ? { start: d, end: e.length } : void 0;
35
- o = i.kind === "tag" && !i.closing && !i.selfClosing && D(i.name) ? q(e, d) : i.kind === "invalid" ? d + 1 : i.end;
35
+ o = i.kind === "tag" && !i.closing && !i.selfClosing && q(i.name) ? D(e, d) : i.kind === "invalid" ? d + 1 : i.end;
36
36
  }
37
37
  }, J = (e, a) => {
38
38
  if (e === a) return;
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),d=require("../../lib/locale.cjs"),x=require("../ContentRender/ContentRender.cjs");require("react");require("react-dom/client");require("../ContentRender/utils/inline-code-ranges.cjs");require("../ui/inputGroup/input-group.cjs");;/* empty css */const C=({initialContentList:i=[],locale:t,lang:r,dir:u,customRenderBar:n,onSend:s,confirmButtonText:l,copyButtonText:o,copiedButtonText:c,beforeSend:m,interactionDefaultValueOptions:q})=>a.jsx("div",{className:"markdown-flow",dir:u??d.getMarkdownFlowDirection(t),lang:r??d.getMarkdownFlowLanguage(t),children:i.map((e,w)=>{const F=e.isFinished??!1?void 0:s,S=m??(()=>!0);return a.jsx(x.default,{content:e.content,userInput:e.userInput,defaultInputText:e.defaultInputText,defaultButtonText:e.defaultButtonText,defaultSelectedValues:e.defaultSelectedValues,readonly:e.readonly,customRenderBar:e.customRenderBar||n,onSend:F,beforeSend:S,locale:t,lang:r,dir:u,interactionDefaultValueOptions:q,onClickCustomButtonAfterContent:e.onClickCustomButtonAfterContent,confirmButtonText:l,copyButtonText:o,copiedButtonText:c,dynamicInteractionFormat:e.dynamicInteractionFormat},w)})});exports.default=C;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),d=require("../../lib/locale.cjs"),C=require("../ContentRender/ContentRender.cjs");require("react");require("react-dom/client");require("../ContentRender/utils/inline-code-ranges.cjs");require("../ui/inputGroup/input-group.cjs");;/* empty css */const f=({initialContentList:i=[],locale:t,lang:r,dir:u,customRenderBar:n,onSend:s,onPlaceholderAccepted:l,confirmButtonText:o,copyButtonText:c,copiedButtonText:m,beforeSend:q,interactionDefaultValueOptions:w})=>a.jsx("div",{className:"markdown-flow",dir:u??d.getMarkdownFlowDirection(t),lang:r??d.getMarkdownFlowLanguage(t),children:i.map((e,F)=>{const S=e.isFinished??!1?void 0:s,x=q??(()=>!0);return a.jsx(C.default,{content:e.content,userInput:e.userInput,defaultInputText:e.defaultInputText,defaultButtonText:e.defaultButtonText,defaultSelectedValues:e.defaultSelectedValues,readonly:e.readonly,customRenderBar:e.customRenderBar||n,onSend:S,onPlaceholderAccepted:l,beforeSend:x,locale:t,lang:r,dir:u,interactionDefaultValueOptions:w,onClickCustomButtonAfterContent:e.onClickCustomButtonAfterContent,confirmButtonText:o,copyButtonText:c,copiedButtonText:m,dynamicInteractionFormat:e.dynamicInteractionFormat},F)})});exports.default=f;
2
2
  //# sourceMappingURL=MarkdownFlow.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"MarkdownFlow.cjs","sources":["../../../src/components/MarkdownFlow/MarkdownFlow.tsx"],"sourcesContent":["import React from \"react\";\nimport type { InteractionDefaultValueOptions } from \"../../lib/interaction-defaults\";\nimport {\n getMarkdownFlowDirection,\n getMarkdownFlowLanguage,\n type MarkdownFlowLocale,\n} from \"../../lib/locale\";\nimport ContentRender from \"../ContentRender\";\nimport { CustomRenderBarProps, OnSendContentParams } from \"../types\";\nimport \"./markdownFlow.css\";\n\nexport interface MarkdownFlowProps {\n initialContentList?: {\n content: string;\n isFinished?: boolean;\n userInput?: string;\n defaultInputText?: string;\n defaultButtonText?: string;\n defaultSelectedValues?: string[];\n readonly?: boolean;\n customRenderBar?: CustomRenderBarProps;\n onClickCustomButtonAfterContent?: () => void;\n dynamicInteractionFormat?: string;\n }[];\n /**\n * Locale used for built-in UI text when a more specific text prop is not provided.\n * Arabic sets RTL direction; other supported locales set LTR direction.\n * When omitted, direction is inherited from the host and UI text uses the default locale.\n */\n locale?: MarkdownFlowLocale;\n /** Overrides the locale-derived language. */\n lang?: string;\n /** Overrides the locale-derived direction. */\n dir?: React.HTMLAttributes<HTMLDivElement>[\"dir\"];\n customRenderBar?: CustomRenderBarProps;\n onSend?: (content: OnSendContentParams) => void;\n // Multi-select confirm button text (i18n support)\n confirmButtonText?: string;\n // Copy button text for code blocks\n copyButtonText?: string;\n // Copied state text for code blocks\n copiedButtonText?: string;\n beforeSend?: (content: OnSendContentParams) => boolean;\n interactionDefaultValueOptions?: InteractionDefaultValueOptions;\n}\n\nconst MarkdownFlow: React.FC<MarkdownFlowProps> = ({\n initialContentList = [],\n locale,\n lang,\n dir,\n customRenderBar,\n onSend: onSendProp,\n confirmButtonText,\n copyButtonText,\n copiedButtonText,\n beforeSend: beforeSendProp,\n interactionDefaultValueOptions,\n}) => {\n return (\n <div\n className=\"markdown-flow\"\n dir={dir ?? getMarkdownFlowDirection(locale)}\n lang={lang ?? getMarkdownFlowLanguage(locale)}\n >\n {initialContentList.map((contentInfo, index) => {\n const isFinished = contentInfo.isFinished ?? false;\n const onSend = isFinished ? undefined : onSendProp;\n const beforeSend = beforeSendProp ?? (() => true);\n return (\n <ContentRender\n key={index}\n content={contentInfo.content}\n userInput={contentInfo.userInput}\n defaultInputText={contentInfo.defaultInputText}\n defaultButtonText={contentInfo.defaultButtonText}\n defaultSelectedValues={contentInfo.defaultSelectedValues}\n readonly={contentInfo.readonly}\n customRenderBar={contentInfo.customRenderBar || customRenderBar}\n onSend={onSend}\n beforeSend={beforeSend}\n locale={locale}\n lang={lang}\n dir={dir}\n interactionDefaultValueOptions={interactionDefaultValueOptions}\n onClickCustomButtonAfterContent={\n contentInfo.onClickCustomButtonAfterContent\n }\n confirmButtonText={confirmButtonText}\n copyButtonText={copyButtonText}\n copiedButtonText={copiedButtonText}\n dynamicInteractionFormat={contentInfo.dynamicInteractionFormat}\n />\n );\n })}\n </div>\n );\n};\n\nexport default MarkdownFlow;\n"],"names":["MarkdownFlow","initialContentList","locale","lang","dir","customRenderBar","onSendProp","confirmButtonText","copyButtonText","copiedButtonText","beforeSendProp","interactionDefaultValueOptions","jsx","getMarkdownFlowDirection","getMarkdownFlowLanguage","contentInfo","index","onSend","beforeSend","ContentRender"],"mappings":"uZA8CA,MAAMA,EAA4C,CAAC,CACjD,mBAAAC,EAAqB,CAAA,EAAC,OACtBC,EACA,KAAAC,EACA,IAAAC,EACA,gBAAAC,EACA,OAAQC,EACR,kBAAAC,EACA,eAAAC,EACA,iBAAAC,EACA,WAAYC,EACZ,+BAAAC,CACF,IAEIC,EAAAA,IAAC,MAAA,CACC,UAAU,gBACV,IAAKR,GAAOS,EAAAA,yBAAyBX,CAAM,EAC3C,KAAMC,GAAQW,EAAAA,wBAAwBZ,CAAM,EAE3C,SAAAD,EAAmB,IAAI,CAACc,EAAaC,IAAU,CAE9C,MAAMC,EADaF,EAAY,YAAc,GACjB,OAAYT,EAClCY,EAAaR,IAAmB,IAAM,IAC5C,OACEE,EAAAA,IAACO,EAAAA,QAAA,CAEC,QAASJ,EAAY,QACrB,UAAWA,EAAY,UACvB,iBAAkBA,EAAY,iBAC9B,kBAAmBA,EAAY,kBAC/B,sBAAuBA,EAAY,sBACnC,SAAUA,EAAY,SACtB,gBAAiBA,EAAY,iBAAmBV,EAChD,OAAAY,EACA,WAAAC,EAAA,OACAhB,EACA,KAAAC,EACA,IAAAC,EACA,+BAAAO,EACA,gCACEI,EAAY,gCAEd,kBAAAR,EACA,eAAAC,EACA,iBAAAC,EACA,yBAA0BM,EAAY,wBAAA,EApBjCC,CAAA,CAuBX,CAAC,CAAA,CAAA"}
1
+ {"version":3,"file":"MarkdownFlow.cjs","sources":["../../../src/components/MarkdownFlow/MarkdownFlow.tsx"],"sourcesContent":["import React from \"react\";\nimport type { InteractionDefaultValueOptions } from \"../../lib/interaction-defaults\";\nimport {\n getMarkdownFlowDirection,\n getMarkdownFlowLanguage,\n type MarkdownFlowLocale,\n} from \"../../lib/locale\";\nimport ContentRender from \"../ContentRender\";\nimport { CustomRenderBarProps, OnSendContentParams } from \"../types\";\nimport \"./markdownFlow.css\";\n\nexport interface MarkdownFlowProps {\n initialContentList?: {\n content: string;\n isFinished?: boolean;\n userInput?: string;\n defaultInputText?: string;\n defaultButtonText?: string;\n defaultSelectedValues?: string[];\n readonly?: boolean;\n customRenderBar?: CustomRenderBarProps;\n onClickCustomButtonAfterContent?: () => void;\n dynamicInteractionFormat?: string;\n }[];\n /**\n * Locale used for built-in UI text when a more specific text prop is not provided.\n * Arabic sets RTL direction; other supported locales set LTR direction.\n * When omitted, direction is inherited from the host and UI text uses the default locale.\n */\n locale?: MarkdownFlowLocale;\n /** Overrides the locale-derived language. */\n lang?: string;\n /** Overrides the locale-derived direction. */\n dir?: React.HTMLAttributes<HTMLDivElement>[\"dir\"];\n customRenderBar?: CustomRenderBarProps;\n onSend?: (content: OnSendContentParams) => void;\n /** Observes an accepted Tab completion without receiving authored text. */\n onPlaceholderAccepted?: () => void;\n // Multi-select confirm button text (i18n support)\n confirmButtonText?: string;\n // Copy button text for code blocks\n copyButtonText?: string;\n // Copied state text for code blocks\n copiedButtonText?: string;\n beforeSend?: (content: OnSendContentParams) => boolean;\n interactionDefaultValueOptions?: InteractionDefaultValueOptions;\n}\n\nconst MarkdownFlow: React.FC<MarkdownFlowProps> = ({\n initialContentList = [],\n locale,\n lang,\n dir,\n customRenderBar,\n onSend: onSendProp,\n onPlaceholderAccepted,\n confirmButtonText,\n copyButtonText,\n copiedButtonText,\n beforeSend: beforeSendProp,\n interactionDefaultValueOptions,\n}) => {\n return (\n <div\n className=\"markdown-flow\"\n dir={dir ?? getMarkdownFlowDirection(locale)}\n lang={lang ?? getMarkdownFlowLanguage(locale)}\n >\n {initialContentList.map((contentInfo, index) => {\n const isFinished = contentInfo.isFinished ?? false;\n const onSend = isFinished ? undefined : onSendProp;\n const beforeSend = beforeSendProp ?? (() => true);\n return (\n <ContentRender\n key={index}\n content={contentInfo.content}\n userInput={contentInfo.userInput}\n defaultInputText={contentInfo.defaultInputText}\n defaultButtonText={contentInfo.defaultButtonText}\n defaultSelectedValues={contentInfo.defaultSelectedValues}\n readonly={contentInfo.readonly}\n customRenderBar={contentInfo.customRenderBar || customRenderBar}\n onSend={onSend}\n onPlaceholderAccepted={onPlaceholderAccepted}\n beforeSend={beforeSend}\n locale={locale}\n lang={lang}\n dir={dir}\n interactionDefaultValueOptions={interactionDefaultValueOptions}\n onClickCustomButtonAfterContent={\n contentInfo.onClickCustomButtonAfterContent\n }\n confirmButtonText={confirmButtonText}\n copyButtonText={copyButtonText}\n copiedButtonText={copiedButtonText}\n dynamicInteractionFormat={contentInfo.dynamicInteractionFormat}\n />\n );\n })}\n </div>\n );\n};\n\nexport default MarkdownFlow;\n"],"names":["MarkdownFlow","initialContentList","locale","lang","dir","customRenderBar","onSendProp","onPlaceholderAccepted","confirmButtonText","copyButtonText","copiedButtonText","beforeSendProp","interactionDefaultValueOptions","jsx","getMarkdownFlowDirection","getMarkdownFlowLanguage","contentInfo","index","onSend","beforeSend","ContentRender"],"mappings":"uZAgDA,MAAMA,EAA4C,CAAC,CACjD,mBAAAC,EAAqB,CAAA,EAAC,OACtBC,EACA,KAAAC,EACA,IAAAC,EACA,gBAAAC,EACA,OAAQC,EACR,sBAAAC,EACA,kBAAAC,EACA,eAAAC,EACA,iBAAAC,EACA,WAAYC,EACZ,+BAAAC,CACF,IAEIC,EAAAA,IAAC,MAAA,CACC,UAAU,gBACV,IAAKT,GAAOU,EAAAA,yBAAyBZ,CAAM,EAC3C,KAAMC,GAAQY,EAAAA,wBAAwBb,CAAM,EAE3C,SAAAD,EAAmB,IAAI,CAACe,EAAaC,IAAU,CAE9C,MAAMC,EADaF,EAAY,YAAc,GACjB,OAAYV,EAClCa,EAAaR,IAAmB,IAAM,IAC5C,OACEE,EAAAA,IAACO,EAAAA,QAAA,CAEC,QAASJ,EAAY,QACrB,UAAWA,EAAY,UACvB,iBAAkBA,EAAY,iBAC9B,kBAAmBA,EAAY,kBAC/B,sBAAuBA,EAAY,sBACnC,SAAUA,EAAY,SACtB,gBAAiBA,EAAY,iBAAmBX,EAChD,OAAAa,EACA,sBAAAX,EACA,WAAAY,EAAA,OACAjB,EACA,KAAAC,EACA,IAAAC,EACA,+BAAAQ,EACA,gCACEI,EAAY,gCAEd,kBAAAR,EACA,eAAAC,EACA,iBAAAC,EACA,yBAA0BM,EAAY,wBAAA,EArBjCC,CAAA,CAwBX,CAAC,CAAA,CAAA"}
@@ -27,6 +27,8 @@ export interface MarkdownFlowProps {
27
27
  dir?: React.HTMLAttributes<HTMLDivElement>["dir"];
28
28
  customRenderBar?: CustomRenderBarProps;
29
29
  onSend?: (content: OnSendContentParams) => void;
30
+ /** Observes an accepted Tab completion without receiving authored text. */
31
+ onPlaceholderAccepted?: () => void;
30
32
  confirmButtonText?: string;
31
33
  copyButtonText?: string;
32
34
  copiedButtonText?: string;
@@ -1,33 +1,34 @@
1
1
  import { jsx as d } from "react/jsx-runtime";
2
- import { getMarkdownFlowLanguage as f, getMarkdownFlowDirection as C } from "../../lib/locale.es.js";
3
- import k from "../ContentRender/ContentRender.es.js";
2
+ import { getMarkdownFlowLanguage as C, getMarkdownFlowDirection as k } from "../../lib/locale.es.js";
3
+ import x from "../ContentRender/ContentRender.es.js";
4
4
  import "react";
5
5
  import "react-dom/client";
6
6
  import "../ContentRender/utils/inline-code-ranges.es.js";
7
7
  import "../ui/inputGroup/input-group.es.js";
8
8
  /* empty css */
9
- const b = ({
9
+ const v = ({
10
10
  initialContentList: a = [],
11
11
  locale: t,
12
12
  lang: r,
13
13
  dir: o,
14
14
  customRenderBar: i,
15
15
  onSend: u,
16
- confirmButtonText: n,
17
- copyButtonText: s,
18
- copiedButtonText: m,
19
- beforeSend: l,
20
- interactionDefaultValueOptions: p
16
+ onPlaceholderAccepted: n,
17
+ confirmButtonText: s,
18
+ copyButtonText: m,
19
+ copiedButtonText: l,
20
+ beforeSend: p,
21
+ interactionDefaultValueOptions: c
21
22
  }) => /* @__PURE__ */ d(
22
23
  "div",
23
24
  {
24
25
  className: "markdown-flow",
25
- dir: o ?? C(t),
26
- lang: r ?? f(t),
27
- children: a.map((e, c) => {
28
- const w = e.isFinished ?? !1 ? void 0 : u, F = l ?? (() => !0);
26
+ dir: o ?? k(t),
27
+ lang: r ?? C(t),
28
+ children: a.map((e, w) => {
29
+ const F = e.isFinished ?? !1 ? void 0 : u, f = p ?? (() => !0);
29
30
  return /* @__PURE__ */ d(
30
- k,
31
+ x,
31
32
  {
32
33
  content: e.content,
33
34
  userInput: e.userInput,
@@ -36,24 +37,25 @@ const b = ({
36
37
  defaultSelectedValues: e.defaultSelectedValues,
37
38
  readonly: e.readonly,
38
39
  customRenderBar: e.customRenderBar || i,
39
- onSend: w,
40
- beforeSend: F,
40
+ onSend: F,
41
+ onPlaceholderAccepted: n,
42
+ beforeSend: f,
41
43
  locale: t,
42
44
  lang: r,
43
45
  dir: o,
44
- interactionDefaultValueOptions: p,
46
+ interactionDefaultValueOptions: c,
45
47
  onClickCustomButtonAfterContent: e.onClickCustomButtonAfterContent,
46
- confirmButtonText: n,
47
- copyButtonText: s,
48
- copiedButtonText: m,
48
+ confirmButtonText: s,
49
+ copyButtonText: m,
50
+ copiedButtonText: l,
49
51
  dynamicInteractionFormat: e.dynamicInteractionFormat
50
52
  },
51
- c
53
+ w
52
54
  );
53
55
  })
54
56
  }
55
57
  );
56
58
  export {
57
- b as default
59
+ v as default
58
60
  };
59
61
  //# sourceMappingURL=MarkdownFlow.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MarkdownFlow.es.js","sources":["../../../src/components/MarkdownFlow/MarkdownFlow.tsx"],"sourcesContent":["import React from \"react\";\nimport type { InteractionDefaultValueOptions } from \"../../lib/interaction-defaults\";\nimport {\n getMarkdownFlowDirection,\n getMarkdownFlowLanguage,\n type MarkdownFlowLocale,\n} from \"../../lib/locale\";\nimport ContentRender from \"../ContentRender\";\nimport { CustomRenderBarProps, OnSendContentParams } from \"../types\";\nimport \"./markdownFlow.css\";\n\nexport interface MarkdownFlowProps {\n initialContentList?: {\n content: string;\n isFinished?: boolean;\n userInput?: string;\n defaultInputText?: string;\n defaultButtonText?: string;\n defaultSelectedValues?: string[];\n readonly?: boolean;\n customRenderBar?: CustomRenderBarProps;\n onClickCustomButtonAfterContent?: () => void;\n dynamicInteractionFormat?: string;\n }[];\n /**\n * Locale used for built-in UI text when a more specific text prop is not provided.\n * Arabic sets RTL direction; other supported locales set LTR direction.\n * When omitted, direction is inherited from the host and UI text uses the default locale.\n */\n locale?: MarkdownFlowLocale;\n /** Overrides the locale-derived language. */\n lang?: string;\n /** Overrides the locale-derived direction. */\n dir?: React.HTMLAttributes<HTMLDivElement>[\"dir\"];\n customRenderBar?: CustomRenderBarProps;\n onSend?: (content: OnSendContentParams) => void;\n // Multi-select confirm button text (i18n support)\n confirmButtonText?: string;\n // Copy button text for code blocks\n copyButtonText?: string;\n // Copied state text for code blocks\n copiedButtonText?: string;\n beforeSend?: (content: OnSendContentParams) => boolean;\n interactionDefaultValueOptions?: InteractionDefaultValueOptions;\n}\n\nconst MarkdownFlow: React.FC<MarkdownFlowProps> = ({\n initialContentList = [],\n locale,\n lang,\n dir,\n customRenderBar,\n onSend: onSendProp,\n confirmButtonText,\n copyButtonText,\n copiedButtonText,\n beforeSend: beforeSendProp,\n interactionDefaultValueOptions,\n}) => {\n return (\n <div\n className=\"markdown-flow\"\n dir={dir ?? getMarkdownFlowDirection(locale)}\n lang={lang ?? getMarkdownFlowLanguage(locale)}\n >\n {initialContentList.map((contentInfo, index) => {\n const isFinished = contentInfo.isFinished ?? false;\n const onSend = isFinished ? undefined : onSendProp;\n const beforeSend = beforeSendProp ?? (() => true);\n return (\n <ContentRender\n key={index}\n content={contentInfo.content}\n userInput={contentInfo.userInput}\n defaultInputText={contentInfo.defaultInputText}\n defaultButtonText={contentInfo.defaultButtonText}\n defaultSelectedValues={contentInfo.defaultSelectedValues}\n readonly={contentInfo.readonly}\n customRenderBar={contentInfo.customRenderBar || customRenderBar}\n onSend={onSend}\n beforeSend={beforeSend}\n locale={locale}\n lang={lang}\n dir={dir}\n interactionDefaultValueOptions={interactionDefaultValueOptions}\n onClickCustomButtonAfterContent={\n contentInfo.onClickCustomButtonAfterContent\n }\n confirmButtonText={confirmButtonText}\n copyButtonText={copyButtonText}\n copiedButtonText={copiedButtonText}\n dynamicInteractionFormat={contentInfo.dynamicInteractionFormat}\n />\n );\n })}\n </div>\n );\n};\n\nexport default MarkdownFlow;\n"],"names":["MarkdownFlow","initialContentList","locale","lang","dir","customRenderBar","onSendProp","confirmButtonText","copyButtonText","copiedButtonText","beforeSendProp","interactionDefaultValueOptions","jsx","getMarkdownFlowDirection","getMarkdownFlowLanguage","contentInfo","index","onSend","beforeSend","ContentRender"],"mappings":";;;;;;;;AA8CA,MAAMA,IAA4C,CAAC;AAAA,EACjD,oBAAAC,IAAqB,CAAA;AAAA,EACrB,QAAAC;AAAA,EACA,MAAAC;AAAA,EACA,KAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,QAAQC;AAAA,EACR,mBAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,YAAYC;AAAA,EACZ,gCAAAC;AACF,MAEI,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAU;AAAA,IACV,KAAKR,KAAOS,EAAyBX,CAAM;AAAA,IAC3C,MAAMC,KAAQW,EAAwBZ,CAAM;AAAA,IAE3C,UAAAD,EAAmB,IAAI,CAACc,GAAaC,MAAU;AAE9C,YAAMC,IADaF,EAAY,cAAc,KACjB,SAAYT,GAClCY,IAAaR,MAAmB,MAAM;AAC5C,aACE,gBAAAE;AAAA,QAACO;AAAA,QAAA;AAAA,UAEC,SAASJ,EAAY;AAAA,UACrB,WAAWA,EAAY;AAAA,UACvB,kBAAkBA,EAAY;AAAA,UAC9B,mBAAmBA,EAAY;AAAA,UAC/B,uBAAuBA,EAAY;AAAA,UACnC,UAAUA,EAAY;AAAA,UACtB,iBAAiBA,EAAY,mBAAmBV;AAAA,UAChD,QAAAY;AAAA,UACA,YAAAC;AAAA,UACA,QAAAhB;AAAA,UACA,MAAAC;AAAA,UACA,KAAAC;AAAA,UACA,gCAAAO;AAAA,UACA,iCACEI,EAAY;AAAA,UAEd,mBAAAR;AAAA,UACA,gBAAAC;AAAA,UACA,kBAAAC;AAAA,UACA,0BAA0BM,EAAY;AAAA,QAAA;AAAA,QApBjCC;AAAA,MAAA;AAAA,IAuBX,CAAC;AAAA,EAAA;AAAA;"}
1
+ {"version":3,"file":"MarkdownFlow.es.js","sources":["../../../src/components/MarkdownFlow/MarkdownFlow.tsx"],"sourcesContent":["import React from \"react\";\nimport type { InteractionDefaultValueOptions } from \"../../lib/interaction-defaults\";\nimport {\n getMarkdownFlowDirection,\n getMarkdownFlowLanguage,\n type MarkdownFlowLocale,\n} from \"../../lib/locale\";\nimport ContentRender from \"../ContentRender\";\nimport { CustomRenderBarProps, OnSendContentParams } from \"../types\";\nimport \"./markdownFlow.css\";\n\nexport interface MarkdownFlowProps {\n initialContentList?: {\n content: string;\n isFinished?: boolean;\n userInput?: string;\n defaultInputText?: string;\n defaultButtonText?: string;\n defaultSelectedValues?: string[];\n readonly?: boolean;\n customRenderBar?: CustomRenderBarProps;\n onClickCustomButtonAfterContent?: () => void;\n dynamicInteractionFormat?: string;\n }[];\n /**\n * Locale used for built-in UI text when a more specific text prop is not provided.\n * Arabic sets RTL direction; other supported locales set LTR direction.\n * When omitted, direction is inherited from the host and UI text uses the default locale.\n */\n locale?: MarkdownFlowLocale;\n /** Overrides the locale-derived language. */\n lang?: string;\n /** Overrides the locale-derived direction. */\n dir?: React.HTMLAttributes<HTMLDivElement>[\"dir\"];\n customRenderBar?: CustomRenderBarProps;\n onSend?: (content: OnSendContentParams) => void;\n /** Observes an accepted Tab completion without receiving authored text. */\n onPlaceholderAccepted?: () => void;\n // Multi-select confirm button text (i18n support)\n confirmButtonText?: string;\n // Copy button text for code blocks\n copyButtonText?: string;\n // Copied state text for code blocks\n copiedButtonText?: string;\n beforeSend?: (content: OnSendContentParams) => boolean;\n interactionDefaultValueOptions?: InteractionDefaultValueOptions;\n}\n\nconst MarkdownFlow: React.FC<MarkdownFlowProps> = ({\n initialContentList = [],\n locale,\n lang,\n dir,\n customRenderBar,\n onSend: onSendProp,\n onPlaceholderAccepted,\n confirmButtonText,\n copyButtonText,\n copiedButtonText,\n beforeSend: beforeSendProp,\n interactionDefaultValueOptions,\n}) => {\n return (\n <div\n className=\"markdown-flow\"\n dir={dir ?? getMarkdownFlowDirection(locale)}\n lang={lang ?? getMarkdownFlowLanguage(locale)}\n >\n {initialContentList.map((contentInfo, index) => {\n const isFinished = contentInfo.isFinished ?? false;\n const onSend = isFinished ? undefined : onSendProp;\n const beforeSend = beforeSendProp ?? (() => true);\n return (\n <ContentRender\n key={index}\n content={contentInfo.content}\n userInput={contentInfo.userInput}\n defaultInputText={contentInfo.defaultInputText}\n defaultButtonText={contentInfo.defaultButtonText}\n defaultSelectedValues={contentInfo.defaultSelectedValues}\n readonly={contentInfo.readonly}\n customRenderBar={contentInfo.customRenderBar || customRenderBar}\n onSend={onSend}\n onPlaceholderAccepted={onPlaceholderAccepted}\n beforeSend={beforeSend}\n locale={locale}\n lang={lang}\n dir={dir}\n interactionDefaultValueOptions={interactionDefaultValueOptions}\n onClickCustomButtonAfterContent={\n contentInfo.onClickCustomButtonAfterContent\n }\n confirmButtonText={confirmButtonText}\n copyButtonText={copyButtonText}\n copiedButtonText={copiedButtonText}\n dynamicInteractionFormat={contentInfo.dynamicInteractionFormat}\n />\n );\n })}\n </div>\n );\n};\n\nexport default MarkdownFlow;\n"],"names":["MarkdownFlow","initialContentList","locale","lang","dir","customRenderBar","onSendProp","onPlaceholderAccepted","confirmButtonText","copyButtonText","copiedButtonText","beforeSendProp","interactionDefaultValueOptions","jsx","getMarkdownFlowDirection","getMarkdownFlowLanguage","contentInfo","index","onSend","beforeSend","ContentRender"],"mappings":";;;;;;;;AAgDA,MAAMA,IAA4C,CAAC;AAAA,EACjD,oBAAAC,IAAqB,CAAA;AAAA,EACrB,QAAAC;AAAA,EACA,MAAAC;AAAA,EACA,KAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,QAAQC;AAAA,EACR,uBAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,YAAYC;AAAA,EACZ,gCAAAC;AACF,MAEI,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAU;AAAA,IACV,KAAKT,KAAOU,EAAyBZ,CAAM;AAAA,IAC3C,MAAMC,KAAQY,EAAwBb,CAAM;AAAA,IAE3C,UAAAD,EAAmB,IAAI,CAACe,GAAaC,MAAU;AAE9C,YAAMC,IADaF,EAAY,cAAc,KACjB,SAAYV,GAClCa,IAAaR,MAAmB,MAAM;AAC5C,aACE,gBAAAE;AAAA,QAACO;AAAA,QAAA;AAAA,UAEC,SAASJ,EAAY;AAAA,UACrB,WAAWA,EAAY;AAAA,UACvB,kBAAkBA,EAAY;AAAA,UAC9B,mBAAmBA,EAAY;AAAA,UAC/B,uBAAuBA,EAAY;AAAA,UACnC,UAAUA,EAAY;AAAA,UACtB,iBAAiBA,EAAY,mBAAmBX;AAAA,UAChD,QAAAa;AAAA,UACA,uBAAAX;AAAA,UACA,YAAAY;AAAA,UACA,QAAAjB;AAAA,UACA,MAAAC;AAAA,UACA,KAAAC;AAAA,UACA,gCAAAQ;AAAA,UACA,iCACEI,EAAY;AAAA,UAEd,mBAAAR;AAAA,UACA,gBAAAC;AAAA,UACA,kBAAAC;AAAA,UACA,0BAA0BM,EAAY;AAAA,QAAA;AAAA,QArBjCC;AAAA,MAAA;AAAA,IAwBX,CAAC;AAAA,EAAA;AAAA;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("react/jsx-runtime"),b=require("./ScrollToBottomButton.cjs"),j=require("./useScrollToBottom.cjs"),o=({viewportRef:t,contentRef:l,endRef:e,scrollTarget:r,pageScrollFallback:c,scrollThreshold:s,contentVersion:u,followNewContent:n,autoScrollOnInit:i,behavior:m,onScrollToBottom:B,...S})=>{const{showScrollToBottom:T,scrollToBottom:a}=j.useScrollToBottom(t,{contentRef:l,endRef:e,scrollTarget:r,pageScrollFallback:c,scrollThreshold:s,contentVersion:u,followNewContent:n,autoScrollOnInit:i,behavior:m});return d.jsx(b.ScrollToBottomButton,{...S,visible:T,onClick:()=>{a(),B?.()}})};exports.ScrollToBottomControl=o;exports.default=o;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("react/jsx-runtime"),b=require("./ScrollToBottomButton.cjs"),f=require("./useScrollToBottom.cjs"),o=({viewportRef:t,contentRef:l,endRef:e,scrollTarget:r,pageScrollFallback:u,scrollThreshold:c,contentVersion:s,followNewContent:n,autoScrollOnInit:i,behavior:m,onScrollToBottom:B,...S})=>{const{showScrollToBottom:T,scrollToBottom:a}=f.default(t,{contentRef:l,endRef:e,scrollTarget:r,pageScrollFallback:u,scrollThreshold:c,contentVersion:s,followNewContent:n,autoScrollOnInit:i,behavior:m});return d.jsx(b.ScrollToBottomButton,{...S,visible:T,onClick:()=>{a(),B?.()}})};exports.ScrollToBottomControl=o;exports.default=o;
2
2
  //# sourceMappingURL=ScrollToBottomControl.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScrollToBottomControl.cjs","sources":["../../../src/components/MarkdownFlow/ScrollToBottomControl.tsx"],"sourcesContent":["import React, { type RefObject } from \"react\";\nimport ScrollToBottomButton, {\n type ScrollToBottomButtonProps,\n} from \"./ScrollToBottomButton\";\nimport useScrollToBottom, {\n type UseScrollToBottomOptions,\n} from \"./useScrollToBottom\";\n\nexport interface ScrollToBottomControlProps\n extends\n UseScrollToBottomOptions,\n Omit<ScrollToBottomButtonProps, \"onClick\" | \"visible\"> {\n /** Existing host viewport; no wrapper or content ownership is required. */\n viewportRef: RefObject<HTMLElement | null>;\n /** Optional notification after the control requests a scroll to the end. */\n onScrollToBottom?: () => void;\n}\n\n/**\n * Complete scroll-to-bottom control for streaming or asynchronously growing content.\n *\n * The control owns target resolution, follow state, visibility, click behavior,\n * the accessible icon button, and optional portal rendering. Consumers only\n * provide host refs, localized text, and layout inputs.\n */\nexport const ScrollToBottomControl: React.FC<ScrollToBottomControlProps> = ({\n viewportRef,\n contentRef,\n endRef,\n scrollTarget,\n pageScrollFallback,\n scrollThreshold,\n contentVersion,\n followNewContent,\n autoScrollOnInit,\n behavior,\n onScrollToBottom,\n ...buttonProps\n}) => {\n const { showScrollToBottom, scrollToBottom } = useScrollToBottom(\n viewportRef,\n {\n contentRef,\n endRef,\n scrollTarget,\n pageScrollFallback,\n scrollThreshold,\n contentVersion,\n followNewContent,\n autoScrollOnInit,\n behavior,\n }\n );\n\n return (\n <ScrollToBottomButton\n {...buttonProps}\n visible={showScrollToBottom}\n onClick={() => {\n scrollToBottom();\n onScrollToBottom?.();\n }}\n />\n );\n};\n\nexport default ScrollToBottomControl;\n"],"names":["ScrollToBottomControl","viewportRef","contentRef","endRef","scrollTarget","pageScrollFallback","scrollThreshold","contentVersion","followNewContent","autoScrollOnInit","behavior","onScrollToBottom","buttonProps","showScrollToBottom","scrollToBottom","useScrollToBottom","jsx","ScrollToBottomButton"],"mappings":"8NAyBaA,EAA8D,CAAC,CAC1E,YAAAC,EACA,WAAAC,EACA,OAAAC,EACA,aAAAC,EACA,mBAAAC,EACA,gBAAAC,EACA,eAAAC,EACA,iBAAAC,EACA,iBAAAC,EACA,SAAAC,EACA,iBAAAC,EACA,GAAGC,CACL,IAAM,CACJ,KAAM,CAAE,mBAAAC,EAAoB,eAAAC,CAAA,EAAmBC,EAAAA,kBAC7Cd,EACA,CACE,WAAAC,EACA,OAAAC,EACA,aAAAC,EACA,mBAAAC,EACA,gBAAAC,EACA,eAAAC,EACA,iBAAAC,EACA,iBAAAC,EACA,SAAAC,CAAA,CACF,EAGF,OACEM,EAAAA,IAACC,EAAAA,qBAAA,CACE,GAAGL,EACJ,QAASC,EACT,QAAS,IAAM,CACbC,EAAA,EACAH,IAAA,CACF,CAAA,CAAA,CAGN"}
1
+ {"version":3,"file":"ScrollToBottomControl.cjs","sources":["../../../src/components/MarkdownFlow/ScrollToBottomControl.tsx"],"sourcesContent":["import React, { type RefObject } from \"react\";\nimport ScrollToBottomButton, {\n type ScrollToBottomButtonProps,\n} from \"./ScrollToBottomButton\";\nimport useScrollToBottom, {\n type UseScrollToBottomOptions,\n} from \"./useScrollToBottom\";\n\nexport interface ScrollToBottomControlProps\n extends\n UseScrollToBottomOptions,\n Omit<ScrollToBottomButtonProps, \"onClick\" | \"visible\"> {\n /** Existing host viewport; no wrapper or content ownership is required. */\n viewportRef: RefObject<HTMLElement | null>;\n /** Optional notification after the control requests a scroll to the end. */\n onScrollToBottom?: () => void;\n}\n\n/**\n * Complete scroll-to-bottom control for streaming or asynchronously growing content.\n *\n * The control owns target resolution, follow state, visibility, click behavior,\n * the accessible icon button, and optional portal rendering. Consumers only\n * provide host refs, localized text, and layout inputs.\n */\nexport const ScrollToBottomControl: React.FC<ScrollToBottomControlProps> = ({\n viewportRef,\n contentRef,\n endRef,\n scrollTarget,\n pageScrollFallback,\n scrollThreshold,\n contentVersion,\n followNewContent,\n autoScrollOnInit,\n behavior,\n onScrollToBottom,\n ...buttonProps\n}) => {\n const { showScrollToBottom, scrollToBottom } = useScrollToBottom(\n viewportRef,\n {\n contentRef,\n endRef,\n scrollTarget,\n pageScrollFallback,\n scrollThreshold,\n contentVersion,\n followNewContent,\n autoScrollOnInit,\n behavior,\n }\n );\n\n return (\n <ScrollToBottomButton\n {...buttonProps}\n visible={showScrollToBottom}\n onClick={() => {\n scrollToBottom();\n onScrollToBottom?.();\n }}\n />\n );\n};\n\nexport default ScrollToBottomControl;\n"],"names":["ScrollToBottomControl","viewportRef","contentRef","endRef","scrollTarget","pageScrollFallback","scrollThreshold","contentVersion","followNewContent","autoScrollOnInit","behavior","onScrollToBottom","buttonProps","showScrollToBottom","scrollToBottom","useScrollToBottom","jsx","ScrollToBottomButton"],"mappings":"8NAyBaA,EAA8D,CAAC,CAC1E,YAAAC,EACA,WAAAC,EACA,OAAAC,EACA,aAAAC,EACA,mBAAAC,EACA,gBAAAC,EACA,eAAAC,EACA,iBAAAC,EACA,iBAAAC,EACA,SAAAC,EACA,iBAAAC,EACA,GAAGC,CACL,IAAM,CACJ,KAAM,CAAE,mBAAAC,EAAoB,eAAAC,CAAA,EAAmBC,EAAAA,QAC7Cd,EACA,CACE,WAAAC,EACA,OAAAC,EACA,aAAAC,EACA,mBAAAC,EACA,gBAAAC,EACA,eAAAC,EACA,iBAAAC,EACA,iBAAAC,EACA,SAAAC,CAAA,CACF,EAGF,OACEM,EAAAA,IAACC,EAAAA,qBAAA,CACE,GAAGL,EACJ,QAASC,EACT,QAAS,IAAM,CACbC,EAAA,EACAH,IAAA,CACF,CAAA,CAAA,CAGN"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as u } from "react/jsx-runtime";
2
2
  import { ScrollToBottomButton as S } from "./ScrollToBottomButton.es.js";
3
- import { useScrollToBottom as a } from "./useScrollToBottom.es.js";
3
+ import a from "./useScrollToBottom.es.js";
4
4
  const d = ({
5
5
  viewportRef: o,
6
6
  contentRef: t,
@@ -1 +1 @@
1
- {"version":3,"file":"EditorToolbar.cjs","sources":["../../../../src/components/MarkdownFlowEditor/components/EditorToolbar.tsx"],"sourcesContent":["import { memo, useCallback } from \"react\";\nimport {\n FileType,\n Image as ImageIcon,\n TextCursorInput,\n SquareCheck,\n SquarePlay,\n CircleCheck,\n} from \"lucide-react\";\nimport { SelectedOption } from \"../types\";\nimport ButtonIcon from \"./icons/ButtonIcon\";\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from \"../../ui/tooltip\";\nimport type { MarkdownFlowDirection } from \"../../../lib/locale\";\n\ntype ToolbarLabels = {\n confirmOutput: string | undefined;\n insertLink: string | undefined;\n insertButton: string | undefined;\n insertSingleChoice: string | undefined;\n insertMultiChoice: string | undefined;\n insertInput: string | undefined;\n image: string;\n video: string;\n};\n\ninterface EditorToolbarProps {\n disabled?: boolean;\n labels: ToolbarLabels;\n tooltipDirection?: MarkdownFlowDirection;\n tooltipLanguage?: string;\n onSelect: (selectedOption: SelectedOption) => void;\n onInsertConfirmOutput?: () => void;\n onInsertLink?: () => void;\n onInsertButton?: () => void;\n onInsertSingleChoice?: () => void;\n onInsertMultiChoice?: () => void;\n onInsertInputField?: () => void;\n rightSlot?: React.ReactNode;\n}\n\n/**\n * EditorToolbar renders quick action buttons that mirror the slash commands.\n */\nconst ICON_SIZE = 18;\n\nconst EditorToolbar: React.FC<EditorToolbarProps> = ({\n disabled = false,\n labels,\n tooltipDirection,\n tooltipLanguage,\n onSelect,\n onInsertConfirmOutput,\n onInsertButton,\n onInsertSingleChoice,\n onInsertMultiChoice,\n onInsertInputField,\n rightSlot,\n}) => {\n const handleConfirmOutput = useCallback(() => {\n if (disabled) {\n return;\n }\n onInsertConfirmOutput?.();\n }, [disabled, onInsertConfirmOutput]);\n\n const handleInsertButton = useCallback(() => {\n if (disabled) {\n return;\n }\n onInsertButton?.();\n }, [disabled, onInsertButton]);\n\n const handleInsertSingleChoice = useCallback(() => {\n if (disabled) {\n return;\n }\n onInsertSingleChoice?.();\n }, [disabled, onInsertSingleChoice]);\n\n const handleInsertMultiChoice = useCallback(() => {\n if (disabled) {\n return;\n }\n onInsertMultiChoice?.();\n }, [disabled, onInsertMultiChoice]);\n\n const handleInsertInputField = useCallback(() => {\n if (disabled) {\n return;\n }\n onInsertInputField?.();\n }, [disabled, onInsertInputField]);\n\n const tooltipContentProps = {\n dir: tooltipDirection,\n lang: tooltipLanguage,\n side: \"top\" as const,\n };\n\n return (\n <TooltipProvider delayDuration={150}>\n <div className=\"markdown-flow-editor-toolbar\" aria-disabled={disabled}>\n <div className=\"markdown-flow-editor-toolbar-left\">\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={handleInsertSingleChoice}\n aria-label={labels.insertSingleChoice}\n >\n <CircleCheck strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent {...tooltipContentProps}>\n {labels.insertSingleChoice ?? \"\"}\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={handleInsertMultiChoice}\n aria-label={labels.insertMultiChoice}\n >\n <SquareCheck strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent {...tooltipContentProps}>\n {labels.insertMultiChoice ?? \"\"}\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={handleInsertInputField}\n aria-label={labels.insertInput}\n >\n <TextCursorInput strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent {...tooltipContentProps}>\n {labels.insertInput ?? \"\"}\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={handleInsertButton}\n aria-label={labels.insertButton}\n >\n <ButtonIcon strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent {...tooltipContentProps}>\n {labels.insertButton ?? \"\"}\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={handleConfirmOutput}\n aria-label={labels.confirmOutput}\n >\n <FileType strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent {...tooltipContentProps}>\n {labels.confirmOutput ?? \"\"}\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={() => onSelect(SelectedOption.Image)}\n aria-label={labels.image}\n >\n <ImageIcon strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent {...tooltipContentProps}>\n {labels.image ?? \"\"}\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={() => onSelect(SelectedOption.Video)}\n aria-label={labels.video}\n >\n <SquarePlay strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent {...tooltipContentProps}>\n {labels.video ?? \"\"}\n </TooltipContent>\n </Tooltip>\n </div>\n {rightSlot ? (\n <div className=\"markdown-flow-editor-toolbar-right-wrapper\">\n {rightSlot}\n </div>\n ) : null}\n </div>\n </TooltipProvider>\n );\n};\n\nexport default memo(EditorToolbar);\n"],"names":["ICON_SIZE","EditorToolbar","disabled","labels","tooltipDirection","tooltipLanguage","onSelect","onInsertConfirmOutput","onInsertButton","onInsertSingleChoice","onInsertMultiChoice","onInsertInputField","rightSlot","handleConfirmOutput","useCallback","handleInsertButton","handleInsertSingleChoice","handleInsertMultiChoice","handleInsertInputField","tooltipContentProps","jsx","TooltipProvider","jsxs","Tooltip","TooltipTrigger","CircleCheck","TooltipContent","SquareCheck","TextCursorInput","ButtonIcon","FileType","SelectedOption","ImageIcon","SquarePlay","EditorToolbar$1","memo"],"mappings":"8tBAgDMA,EAAY,GAEZC,EAA8C,CAAC,CACnD,SAAAC,EAAW,GACX,OAAAC,EACA,iBAAAC,EACA,gBAAAC,EACA,SAAAC,EACA,sBAAAC,EACA,eAAAC,EACA,qBAAA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AAA,CAC3B,CAAA,EACF,SACCoB,EAAAA,QAAA,CACC,SAAA,CAAAH,EAAAA,IAACI,EAAAA,eAAA,CAAe,QAAO,GACrB,SAAAJ,EAAAA,IAAC,SAAA,CACC,KAAK,SACL,SAAAlB,EACA,QAAS,IAAMI,EAASyB,EAAAA,eAAe,KAAK,EAC5C,aAAY5B,EAAO,MAEnB,SAAAiB,EAAAA,IAACY,UAAA,CAAU,YAAa,KAAM,KAAMhC,CAAA,CAAW,CAAA,CAAA,EAEnD,QACC0B,EAAAA,eAAA,CAAgB,GAAGP,EACjB,SAAAhB,EAAO,OAAS,EAAA,CACnB,CAAA,EACF,SACCoB,EAAAA,QAAA,CACC,SAAA,CAAAH,EAAAA,IAACI,EAAAA,eAAA,CAAe,QAAO,GACrB,SAAAJ,EAAAA,IAAC,SAAA,CACC,KAAK,SACL,SAAAlB,EACA,QAAS,IAAMI,EAASyB,EAAAA,eAAe,KAAK,EAC5C,aAAY5B,EAAO,MAEnB,SAAAiB,EAAAA,IAACa,UAAA,CAAW,YAAa,KAAM,KAAMjC,CAAA,CAAW,CAAA,CAAA,EAEpD,QACC0B,EAAAA,eAAA,CAAgB,GAAGP,EACjB,SAAAhB,EAAO,OAAS,EAAA,CACnB,CAAA,CAAA,CACF,CAAA,EACF,EACCS,EACCQ,EAAAA,IAAC,MAAA,CAAI,UAAU,6CACZ,WACH,EACE,IAAA,CAAA,CACN,CAAA,CACF,CAEJ,EAEAc,EAAeC,EAAAA,KAAKlC,CAAa"}
1
+ {"version":3,"file":"EditorToolbar.cjs","sources":["../../../../src/components/MarkdownFlowEditor/components/EditorToolbar.tsx"],"sourcesContent":["import { memo, useCallback } from \"react\";\nimport {\n FileType,\n Image as ImageIcon,\n TextCursorInput,\n SquareCheck,\n SquarePlay,\n CircleCheck,\n} from \"lucide-react\";\nimport { SelectedOption } from \"../types\";\nimport ButtonIcon from \"./icons/ButtonIcon\";\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from \"../../ui/tooltip\";\nimport type { MarkdownFlowDirection } from \"../../../lib/locale\";\n\ntype ToolbarLabels = {\n confirmOutput: string | undefined;\n insertLink: string | undefined;\n insertButton: string | undefined;\n insertSingleChoice: string | undefined;\n insertMultiChoice: string | undefined;\n insertInput: string | undefined;\n image: string;\n video: string;\n};\n\ninterface EditorToolbarProps {\n disabled?: boolean;\n labels: ToolbarLabels;\n tooltipDirection?: MarkdownFlowDirection;\n tooltipLanguage?: string;\n onSelect: (selectedOption: SelectedOption) => void;\n onInsertConfirmOutput?: () => void;\n onInsertLink?: () => void;\n onInsertButton?: () => void;\n onInsertSingleChoice?: () => void;\n onInsertMultiChoice?: () => void;\n onInsertInputField?: () => void;\n rightSlot?: React.ReactNode;\n}\n\n/**\n * EditorToolbar renders quick action buttons that mirror the slash commands.\n */\nconst ICON_SIZE = 18;\n\nconst EditorToolbar: React.FC<EditorToolbarProps> = ({\n disabled = false,\n labels,\n tooltipDirection,\n tooltipLanguage,\n onSelect,\n onInsertConfirmOutput,\n onInsertButton,\n onInsertSingleChoice,\n onInsertMultiChoice,\n onInsertInputField,\n rightSlot,\n}) => {\n const handleConfirmOutput = useCallback(() => {\n if (disabled) {\n return;\n }\n onInsertConfirmOutput?.();\n }, [disabled, onInsertConfirmOutput]);\n\n const handleInsertButton = useCallback(() => {\n if (disabled) {\n return;\n }\n onInsertButton?.();\n }, [disabled, onInsertButton]);\n\n const handleInsertSingleChoice = useCallback(() => {\n if (disabled) {\n return;\n }\n onInsertSingleChoice?.();\n }, [disabled, onInsertSingleChoice]);\n\n const handleInsertMultiChoice = useCallback(() => {\n if (disabled) {\n return;\n }\n onInsertMultiChoice?.();\n }, [disabled, onInsertMultiChoice]);\n\n const handleInsertInputField = useCallback(() => {\n if (disabled) {\n return;\n }\n onInsertInputField?.();\n }, [disabled, onInsertInputField]);\n\n const tooltipContentProps = {\n dir: tooltipDirection,\n lang: tooltipLanguage,\n side: \"top\" as const,\n };\n\n return (\n <TooltipProvider delayDuration={150}>\n <div className=\"markdown-flow-editor-toolbar\" aria-disabled={disabled}>\n <div className=\"markdown-flow-editor-toolbar-left\">\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={handleInsertSingleChoice}\n aria-label={labels.insertSingleChoice}\n >\n <CircleCheck strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent {...tooltipContentProps}>\n {labels.insertSingleChoice ?? \"\"}\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={handleInsertMultiChoice}\n aria-label={labels.insertMultiChoice}\n >\n <SquareCheck strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent {...tooltipContentProps}>\n {labels.insertMultiChoice ?? \"\"}\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={handleInsertInputField}\n aria-label={labels.insertInput}\n >\n <TextCursorInput strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent {...tooltipContentProps}>\n {labels.insertInput ?? \"\"}\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={handleInsertButton}\n aria-label={labels.insertButton}\n >\n <ButtonIcon strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent {...tooltipContentProps}>\n {labels.insertButton ?? \"\"}\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={handleConfirmOutput}\n aria-label={labels.confirmOutput}\n >\n <FileType strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent {...tooltipContentProps}>\n {labels.confirmOutput ?? \"\"}\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={() => onSelect(SelectedOption.Image)}\n aria-label={labels.image}\n >\n <ImageIcon strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent {...tooltipContentProps}>\n {labels.image ?? \"\"}\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={() => onSelect(SelectedOption.Video)}\n aria-label={labels.video}\n >\n <SquarePlay strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent {...tooltipContentProps}>\n {labels.video ?? \"\"}\n </TooltipContent>\n </Tooltip>\n </div>\n {rightSlot ? (\n <div className=\"markdown-flow-editor-toolbar-right-wrapper\">\n {rightSlot}\n </div>\n ) : null}\n </div>\n </TooltipProvider>\n );\n};\n\nexport default memo(EditorToolbar);\n"],"names":["ICON_SIZE","EditorToolbar","disabled","labels","tooltipDirection","tooltipLanguage","onSelect","onInsertConfirmOutput","onInsertButton","onInsertSingleChoice","onInsertMultiChoice","onInsertInputField","rightSlot","handleConfirmOutput","useCallback","handleInsertButton","handleInsertSingleChoice","handleInsertMultiChoice","handleInsertInputField","tooltipContentProps","jsx","TooltipProvider","jsxs","Tooltip","TooltipTrigger","CircleCheck","TooltipContent","SquareCheck","TextCursorInput","ButtonIcon","FileType","SelectedOption","ImageIcon","SquarePlay","memo"],"mappings":"8tBAgDMA,EAAY,GAEZC,EAA8C,CAAC,CACnD,SAAAC,EAAW,GACX,OAAAC,EACA,iBAAAC,EACA,gBAAAC,EACA,SAAAC,EACA,sBAAAC,EACA,eAAAC,EACA,qBAAAC,EACA,oBAAAC,EACA,mBAAAC,EACA,UAAAC,CACF,IAAM,CACJ,MAAMC,EAAsBC,EAAAA,YAAY,IAAM,CACxCZ,GAGJK,IAAA,CACF,EAAG,CAACL,EAAUK,CAAqB,CAAC,EAE9BQ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