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":"ContentRender.es.js","sources":["../../../src/components/ContentRender/ContentRender.tsx"],"sourcesContent":["import { trimVariablePadding } from \"remark-flow\";\nimport React, { useEffect, useMemo, useRef, useState } from \"react\";\nimport ReactMarkdown from \"react-markdown\";\nimport rehypeHighlight from \"rehype-highlight\";\nimport rehypeKatex from \"rehype-katex\";\nimport rehypeRaw from \"rehype-raw\";\nimport { unified, type PluggableList, type Plugin } from \"unified\";\nimport remarkRehype from \"remark-rehype\";\nimport type { Element, Root } from \"hast\";\nimport { CustomRenderBarProps, OnSendContentParams } from \"../types\";\nimport { sanitizeInvalidTagName } from \"./utils/sanitize-invalid-tag-name\";\nimport { stripSvgTextLineBreaks } from \"./utils/strip-svg-text-line-breaks\";\nimport \"./contentRender.css\";\nimport \"./github-markdown-light.css\";\nimport \"highlight.js/styles/github.css\";\nimport \"katex/dist/katex.min.css\";\nimport CodeBlock, { CodeBlockContext } from \"./CodeBlock\";\nimport CustomButtonInputVariable, {\n ComponentsWithCustomVariable,\n} from \"./plugins/CustomVariable\";\nimport MermaidChart, { type MermaidChartProps } from \"./plugins/MermaidChart\";\nimport {\n preserveCustomVariableProperties,\n restoreCustomVariableProperties,\n} from \"./utils/custom-variable-props\";\nimport {\n highlightLanguages,\n subsetLanguages,\n} from \"./utils/highlight-languages\";\nimport {\n parseMarkdownSegments,\n mermaidBlockIsComplete,\n} from \"./utils/mermaid-parse\";\nimport {\n getInlineCodeRanges,\n getMarkdownSourceAnalysis,\n} from \"./utils/inline-code-ranges\";\nimport { remarkPlugins } from \"./utils/markdown-plugins\";\nimport { normalizeInlineHtml } from \"./utils/normalize-inline-html\";\nimport {\n escapeTypedMarkdownMetadata,\n type MarkdownMetadataRange,\n} from \"./utils/escape-typed-metadata\";\nimport IframeSandbox from \"./IframeSandbox\";\nimport {\n appendContentAwareTypewriterQueue,\n CONTENT_AWARE_TYPEWRITER_TICK_BUDGET,\n consumeContentAwareTypewriterQueue,\n getTrailingTypewriterGrapheme,\n isContentAwareTypewriterQueueEmpty,\n type ContentAwareTypewriterQueue,\n} from \"./utils/typewriter-pacing\";\nimport {\n normalizeWrappedSandboxContent,\n splitContentSegments,\n type RenderSegment,\n} from \"./utils/split-content\";\nimport {\n getInteractionDefaultValues,\n type InteractionDefaultValueOptions,\n} from \"../../lib/interaction-defaults\";\nimport {\n getMarkdownFlowDirection,\n getMarkdownFlowLanguage,\n type MarkdownFlowLocale,\n} from \"../../lib/locale\";\nimport { getContentRenderLocaleTexts } from \"./contentRenderI18n\";\nimport {\n createVideoMarkdownRunPlan,\n cloneVideoMarkdownSourceTree,\n projectVideoMarkdownRun,\n prepareVideoMarkdownRun,\n getVideoMarkdownNodeState,\n type VideoMarkdownRunPlan,\n} from \"./utils/video-markdown-run\";\n\nconst FIXED_TYPEWRITER_CHUNK_SIZE = 2;\n\nexport type ContentRenderTypewriterPacing = \"fixed\" | \"content-aware\";\n\n// Define component Props type\nexport interface ContentRenderProps {\n content: string;\n contentType?: string;\n /** Locale used for built-in UI text when a more specific text prop is not provided. */\n locale?: MarkdownFlowLocale;\n /** Overrides the locale-derived language; omitted values inherit from the host. */\n lang?: string;\n /** Overrides locale-derived direction; omitted values inherit when no locale is set. */\n dir?: React.HTMLAttributes<HTMLDivElement>[\"dir\"];\n /**\n * Callback invoked when the custom button after content is clicked.\n * This button is rendered via the `<custom-button-after-content>` tag in markdown content.\n * @example\n * ```tsx\n * <ContentRender\n * content=\"Hello <custom-button-after-content>Ask</custom-button-after-content>\"\n * onClickCustomButtonAfterContent={() => console.log('Button clicked')}\n * />\n * ```\n */\n customRenderBar?: CustomRenderBarProps;\n onClickCustomButtonAfterContent?: () => void;\n onSend?: (content: OnSendContentParams) => void;\n typingSpeed?: number;\n /** Types prose only; following HTML renders progressively once preceding prose is displayed. */\n enableTypewriter?: boolean;\n /** Controls how much text is revealed per tick. Defaults to the legacy fixed pacing. */\n typewriterPacing?: ContentRenderTypewriterPacing;\n onTypeFinished?: () => void;\n onTypewriterStateChange?: (state: ContentRenderTypewriterState) => void;\n userInput?: string;\n interactionDefaultValueOptions?: InteractionDefaultValueOptions;\n defaultButtonText?: string;\n defaultInputText?: string; // Text input by user\n defaultSelectedValues?: string[]; // Default selected values for multi-select\n readonly?: boolean;\n // Multi-select confirm button text (i18n support)\n confirmButtonText?: string;\n // Copy button text (i18n support)\n copyButtonText?: string;\n // Copied state text (i18n support)\n copiedButtonText?: string;\n // Dynamic interaction format for multi-select support\n dynamicInteractionFormat?: string;\n // Loading text before first HTML block renders inside iframe (i18n support)\n sandboxLoadingText?: string;\n // Loading text while styles are being generated inside iframe\n sandboxStyleLoadingText?: string;\n // Loading text while scripts are being cached/executed inside iframe\n sandboxScriptLoadingText?: string;\n // Disable sandbox loading overlays when upper layers have already entered an error state\n disableSandboxLoadingOverlay?: boolean;\n // Fullscreen button text for iframe sandbox\n sandboxFullscreenButtonText?: string;\n // Exit fullscreen button text for iframe sandbox\n sandboxExitFullscreenButtonText?: string;\n // Sandbox render mode\n sandboxMode?: \"content\" | \"blackboard\";\n beforeSend?: (param: OnSendContentParams) => boolean;\n}\n\nexport interface ContentRenderTypewriterState {\n isTypewriterEnabled: boolean;\n isTyping: boolean;\n isComplete: boolean;\n /** Received source units already displayed, including unpaced HTML. */\n renderedLength: number;\n totalLength: number;\n}\n\n// Render svg string via Shadow DOM to avoid markdown wrapping\nconst SvgBlockInShadow: React.FC<{ svg: string; inline?: boolean }> = ({\n svg,\n inline = false,\n}) => {\n const hostRef = useRef<HTMLElement | null>(null);\n const Wrapper = inline ? \"span\" : \"div\";\n\n useEffect(() => {\n const host = hostRef.current;\n if (!host) return;\n const shadowRoot = host.shadowRoot ?? host.attachShadow({ mode: \"open\" });\n const styleId = \"content-render-svg-style\";\n let styleEl = shadowRoot.getElementById(styleId) as HTMLStyleElement | null;\n\n if (!styleEl) {\n styleEl = document.createElement(\"style\");\n styleEl.id = styleId;\n // Keep intrinsic SVG width so the wrapper can scroll horizontally when needed\n styleEl.textContent = `\n svg { height: auto; display: inline-block; }\n svg.content-render-svg-el--responsive { width: 100%; max-width: 100%; }\n svg.content-render-svg-el--fixed { max-width: none; }\n `;\n shadowRoot.appendChild(styleEl);\n }\n\n const nodesToRemove = Array.from(shadowRoot.childNodes).filter(\n (node) => node !== styleEl\n );\n nodesToRemove.forEach((node) => shadowRoot.removeChild(node));\n\n const template = document.createElement(\"template\");\n const cleanedSvg = stripSvgTextLineBreaks(svg);\n template.innerHTML = cleanedSvg;\n shadowRoot.append(template.content.cloneNode(true));\n\n let hasResponsiveSvg = false;\n let hasFixedSvg = false;\n\n shadowRoot.querySelectorAll(\"svg\").forEach((svgEl) => {\n // Derive responsive sizing from viewBox so pure viewBox SVGs stay visible and fluid\n const viewBox = svgEl.getAttribute(\"viewBox\");\n if (!viewBox) return;\n\n const dimensions = viewBox\n .trim()\n .split(/[\\s,]+/)\n .map((value) => Number(value));\n\n if (dimensions.length !== 4 || dimensions.some(Number.isNaN)) return;\n\n const [, , viewBoxWidth, viewBoxHeight] = dimensions;\n const widthAttr = svgEl.getAttribute(\"width\");\n const heightAttr = svgEl.getAttribute(\"height\");\n const isRelativeLength = (value?: string | null) => {\n if (!value) return false;\n const normalized = value.trim().toLowerCase();\n return normalized === \"auto\" || normalized.endsWith(\"%\");\n };\n const toNumericLength = (value?: string | null) => {\n if (!value) return null;\n const normalized = value.trim().toLowerCase();\n if (normalized === \"auto\" || normalized.endsWith(\"%\")) {\n return null;\n }\n const parsed = Number.parseFloat(normalized);\n return Number.isNaN(parsed) ? null : parsed;\n };\n // Treat percentage/auto sizing as responsive so viewBox drives the layout\n const isWidthRelative = isRelativeLength(widthAttr);\n const isHeightRelative = isRelativeLength(heightAttr);\n const widthMissing = !widthAttr || widthAttr === \"0\";\n const heightMissing = !heightAttr || heightAttr === \"0\";\n const numericWidth = toNumericLength(widthAttr);\n const numericHeight = toNumericLength(heightAttr);\n const matchesViewBox =\n numericWidth === viewBoxWidth && numericHeight === viewBoxHeight;\n\n // Prefer responsive layout when sizing is relative or matches the viewBox\n const shouldUseResponsiveSize =\n isWidthRelative ||\n isHeightRelative ||\n (widthMissing && heightMissing) ||\n matchesViewBox;\n\n if (shouldUseResponsiveSize) {\n hasResponsiveSvg = true;\n svgEl.classList.add(\"content-render-svg-el--responsive\");\n svgEl.classList.remove(\"content-render-svg-el--fixed\");\n svgEl.style.width = \"100%\";\n svgEl.style.height = \"auto\";\n if (!svgEl.style.aspectRatio && viewBoxHeight > 0) {\n svgEl.style.aspectRatio = `${viewBoxWidth} / ${viewBoxHeight}`;\n }\n return;\n }\n\n hasFixedSvg = true;\n svgEl.classList.add(\"content-render-svg-el--fixed\");\n svgEl.classList.remove(\"content-render-svg-el--responsive\");\n if (widthMissing && viewBoxWidth > 0) {\n svgEl.setAttribute(\"width\", `${viewBoxWidth}`);\n }\n if (heightMissing && viewBoxHeight > 0) {\n svgEl.setAttribute(\"height\", `${viewBoxHeight}`);\n }\n });\n\n const hostResponsive = hasResponsiveSvg && !hasFixedSvg;\n host.classList.toggle(\"content-render-svg--responsive\", hostResponsive);\n host.classList.toggle(\"content-render-svg--fixed\", !hostResponsive);\n }, [svg]);\n\n return (\n <Wrapper className=\"content-render-svg-scroll\">\n <Wrapper\n className=\"content-render-svg\"\n ref={(node) => {\n hostRef.current = node;\n }}\n />\n </Wrapper>\n );\n};\n\n// Extended component interface\ntype CustomComponents = ComponentsWithCustomVariable & {\n \"custom-button-after-content\"?: React.ComponentType<{\n children: React.ReactNode;\n }>;\n};\n\ntype MarkdownComponentRuntimeValues = {\n direction?: ContentRenderProps[\"dir\"];\n language?: string;\n mermaidMessages: MermaidChartProps[\"messages\"];\n beforeSend?: (param: OnSendContentParams) => boolean;\n locale?: MarkdownFlowLocale;\n onClickCustomButtonAfterContent?: () => void;\n onSend?: (content: OnSendContentParams) => void;\n readonly: boolean;\n renderContent: string;\n resolvedConfirmButtonText: string;\n resolvedCopiedButtonText: string;\n resolvedCopyButtonText: string;\n resolvedDefaultButtonText?: string;\n resolvedDefaultInputText?: string;\n resolvedDefaultSelectedValues?: string[];\n};\n\nconst MarkdownComponentRuntimeContext =\n React.createContext<React.RefObject<MarkdownComponentRuntimeValues> | null>(\n null\n );\n\nconst MarkdownCode = (\n props: React.ComponentProps<\"code\"> & { receivedTree?: boolean }\n) => {\n const { receivedTree, ...codeProps } = props;\n const runtimeValuesRef = React.useContext(MarkdownComponentRuntimeContext);\n const isInCodeBlock = React.useContext(CodeBlockContext);\n if (!runtimeValuesRef) {\n throw new Error(\"Markdown code renderer requires ContentRender context.\");\n }\n const { className, children, ...rest } = codeProps as {\n className?: string;\n children?: React.ReactNode;\n dir?: string;\n };\n const match = /language-(\\w+)/.exec(className || \"\");\n const language = match?.[1];\n if (language === \"mermaid\") {\n const chartContent = children?.toString().replace(/\\n$/, \"\") || \"\";\n const complete = mermaidBlockIsComplete(\n runtimeValuesRef.current.renderContent,\n chartContent\n );\n // The received-tree path replaces standalone Mermaid segments, whose\n // unfinished charts freeze until the closing fence reaches the prose budget.\n const frozen = receivedTree ? !complete : complete;\n return (\n <MermaidChart\n chart={chartContent}\n frozen={frozen}\n messages={runtimeValuesRef.current.mermaidMessages}\n />\n );\n }\n\n return (\n <code\n className={className}\n {...rest}\n dir={rest.dir ?? (isInCodeBlock ? undefined : \"ltr\")}\n >\n {children}\n </code>\n );\n};\n\nconst sourceRehypePlugins: PluggableList = [\n preserveCustomVariableProperties,\n rehypeRaw,\n sanitizeInvalidTagName,\n restoreCustomVariableProperties,\n];\nconst formattingRehypePlugins: PluggableList = [\n [rehypeHighlight, { languages: highlightLanguages, subset: subsetLanguages }],\n rehypeKatex,\n];\nconst rehypePlugins: PluggableList = [\n ...sourceRehypePlugins,\n ...formattingRehypePlugins,\n];\n\nexport const MarkdownRenderer: React.FC<{\n content: string;\n components: CustomComponents;\n locale?: MarkdownFlowLocale;\n}> = ({ content: markdownContent, components, locale }) => {\n const texts = getContentRenderLocaleTexts(locale);\n return (\n <div className=\"markdown-renderer\">\n <ReactMarkdown\n remarkPlugins={remarkPlugins}\n rehypePlugins={rehypePlugins}\n remarkRehypeOptions={{\n footnoteLabel: texts.footnoteLabel,\n footnoteBackLabel: (referenceIndex, rereferenceIndex) => {\n const reference =\n String(referenceIndex + 1) +\n (rereferenceIndex > 1 ? `-${rereferenceIndex}` : \"\");\n return texts.footnoteBackLabel.replace(\"{reference}\", reference);\n },\n }}\n components={components}\n >\n {markdownContent}\n </ReactMarkdown>\n </div>\n );\n};\n\n// ReactMarkdown still owns URL handling and JSX conversion. Its parser is\n// bypassed because the received source was already parsed and transformed.\nconst usePreparedTree: Plugin = function () {\n this.parser = () => ({ type: \"root\", children: [] });\n};\n\nconst StableVideoMarkdownRenderer: React.FC<{\n plan: VideoMarkdownRunPlan;\n renderedSegments: readonly RenderSegment[];\n components: CustomComponents;\n locale?: MarkdownFlowLocale;\n}> = ({ plan, renderedSegments, components, locale }) => {\n const prepared = useMemo(() => {\n const texts = getContentRenderLocaleTexts(locale);\n const sourceProcessor = unified()\n .use(remarkPlugins)\n .use(remarkRehype, {\n allowDangerousHtml: true,\n footnoteLabel: texts.footnoteLabel,\n footnoteBackLabel: (referenceIndex, rereferenceIndex) =>\n texts.footnoteBackLabel.replace(\n \"{reference}\",\n String(referenceIndex + 1) +\n (rereferenceIndex > 1 ? `-${rereferenceIndex}` : \"\")\n ),\n })\n .use(sourceRehypePlugins);\n const formattingProcessor = unified().use(formattingRehypePlugins);\n const tree = sourceProcessor.runSync(\n cloneVideoMarkdownSourceTree(plan),\n plan.markdownSource\n ) as Root;\n return prepareVideoMarkdownRun(\n plan,\n tree,\n (value) => formattingProcessor.runSync(value, plan.fullSource) as Root\n );\n }, [plan, locale]);\n const projected = useMemo(\n () => projectVideoMarkdownRun(prepared, renderedSegments),\n [prepared, renderedSegments]\n );\n const originalComponents = useRef(components);\n originalComponents.current = components;\n const wrappers = useRef(\n new Map<\n string,\n React.ComponentType<{\n node: Element;\n children?: React.ReactNode;\n }>\n >()\n );\n const stableComponents = useMemo(() => {\n const tags = new Set<string>();\n const collect = (node: Root | Root[\"children\"][number]) => {\n if (node.type === \"element\") tags.add(node.tagName);\n if (\"children\" in node) node.children.forEach(collect);\n };\n collect(prepared.tree!);\n const result: Record<\n string,\n React.ComponentType<{\n node: Element;\n children?: React.ReactNode;\n }>\n > = {};\n for (const tag of tags) {\n if (!wrappers.current.has(tag)) {\n const Component = ({\n node,\n children,\n ...props\n }: {\n node: Element;\n children?: React.ReactNode;\n }) => {\n const state = getVideoMarkdownNodeState(node);\n if (state?.svg) {\n return state.svgSource ? (\n <SvgBlockInShadow svg={state.svgSource} inline />\n ) : null;\n }\n if (state?.atomic) {\n return state.active ? <>{children}</> : null;\n }\n if (state?.active === false && tag !== \"a\") return null;\n const current = originalComponents.current as Record<\n string,\n React.ElementType\n >;\n const Original = current[tag];\n const visibleProps =\n state?.active === false\n ? { ...props, href: undefined, tabIndex: -1 }\n : props;\n return Original\n ? React.createElement(\n Original,\n {\n ...visibleProps,\n node,\n ...(Original === MarkdownCode ? { receivedTree: true } : {}),\n },\n children\n )\n : React.createElement(tag, visibleProps, children);\n };\n Component.displayName = `StableMarkdown(${tag})`;\n wrappers.current.set(tag, Component);\n }\n result[tag] = wrappers.current.get(tag)!;\n }\n return result as CustomComponents;\n }, [prepared]);\n const preparedPlugins = useMemo<PluggableList>(\n () => [() => () => projected],\n [projected]\n );\n return (\n <div className=\"markdown-renderer\">\n <ReactMarkdown\n remarkPlugins={[usePreparedTree]}\n rehypePlugins={preparedPlugins}\n components={stableComponents}\n >\n {\"\"}\n </ReactMarkdown>\n </div>\n );\n};\n\nconst isImmediateSegment = (segment: RenderSegment) =>\n segment.type === \"markdown\" && segment.immediate === true;\n\nconst mergeNonSandboxSegments = (segments: RenderSegment[]) => {\n if (segments.length <= 1) return segments;\n const merged: RenderSegment[] = [];\n\n segments.forEach((segment) => {\n if (segment.type === \"sandbox\" || isImmediateSegment(segment)) {\n merged.push(segment);\n return;\n }\n\n const last = merged[merged.length - 1];\n if (last && last.type !== \"sandbox\" && !isImmediateSegment(last)) {\n merged[merged.length - 1] = {\n type: \"markdown\",\n value: `${last.value}${segment.value}`,\n };\n return;\n }\n\n merged.push({ type: \"markdown\", value: segment.value });\n });\n\n return merged;\n};\n\nconst closeTypedInlineCode = (\n visible: string,\n source: string,\n ranges: ReturnType<typeof getInlineCodeRanges>\n) => {\n if (visible.length >= source.length) return visible;\n const range = ranges.find(\n ({ start, end }) => start < visible.length && visible.length < end\n );\n if (!range) return visible;\n const delimiter = /^`+/.exec(source.slice(range.start))?.[0];\n if (!delimiter || visible.length < range.start + delimiter.length) {\n return visible;\n }\n const closingStart = range.end - delimiter.length;\n if (visible.length > closingStart) {\n return visible + delimiter.slice(visible.length - closingStart);\n }\n // Close only the render copy so a typed prefix cannot activate code as HTML.\n return visible + (visible.endsWith(\"`\") ? \" \" : \"\") + delimiter;\n};\n\nconst protectTypedMarkdownPrefix = (\n visible: string,\n source: string,\n inlineCodeRanges: ReturnType<typeof getInlineCodeRanges>,\n metadataRanges: readonly MarkdownMetadataRange[],\n sourceOffset = 0\n) => {\n // Both protections use raw coordinates. Append any synthetic code delimiter\n // after escaping so encoded '<' characters cannot shift the typing budget.\n const closed = closeTypedInlineCode(visible, source, inlineCodeRanges);\n return (\n escapeTypedMarkdownMetadata(visible, metadataRanges, sourceOffset) +\n closed.slice(visible.length)\n );\n};\n\nconst splitTextByCharacterChunk = (value: string, chunkSize: number) => {\n const safeChunkSize = Math.max(1, chunkSize);\n const characters = Array.from(value);\n\n return {\n chunk: characters.slice(0, safeChunkSize).join(\"\"),\n rest: characters.slice(safeChunkSize).join(\"\"),\n };\n};\n\nconst areStringArraysEqual = (left?: string[], right?: string[]) => {\n if (left === right) {\n return true;\n }\n if (!left || !right || left.length !== right.length) {\n return false;\n }\n return left.every((value, index) => value === right[index]);\n};\n\nconst useStableStringArray = (values?: string[]) => {\n const valuesRef = useRef<string[] | undefined>(values);\n\n if (!areStringArraysEqual(valuesRef.current, values)) {\n valuesRef.current = values;\n }\n\n return valuesRef.current;\n};\n\nconst ContentRender: React.FC<ContentRenderProps> = ({\n content,\n contentType,\n locale,\n lang,\n dir,\n customRenderBar,\n onSend,\n typingSpeed = 30,\n enableTypewriter = false,\n typewriterPacing = \"fixed\",\n onTypeFinished,\n onTypewriterStateChange,\n userInput,\n interactionDefaultValueOptions,\n defaultButtonText,\n defaultInputText,\n defaultSelectedValues,\n readonly = false,\n confirmButtonText,\n copyButtonText,\n copiedButtonText,\n sandboxLoadingText,\n sandboxStyleLoadingText,\n sandboxScriptLoadingText,\n disableSandboxLoadingOverlay = false,\n sandboxFullscreenButtonText,\n sandboxExitFullscreenButtonText,\n sandboxMode = \"content\",\n onClickCustomButtonAfterContent,\n beforeSend,\n}) => {\n const localeTexts = getContentRenderLocaleTexts(locale);\n const mermaidMessages = useMemo(\n () => ({\n loading: localeTexts.mermaidLoadingText,\n emptyChart: localeTexts.mermaidEmptyChartText,\n error: localeTexts.mermaidErrorText,\n }),\n [localeTexts]\n );\n const direction = dir ?? getMarkdownFlowDirection(locale);\n const language = lang ?? getMarkdownFlowLanguage(locale);\n const resolvedConfirmButtonText =\n confirmButtonText || localeTexts.confirmButtonText;\n const resolvedCopyButtonText = copyButtonText || localeTexts.copyButtonText;\n const resolvedCopiedButtonText =\n copiedButtonText || localeTexts.copiedButtonText;\n const resolvedSandboxFullscreenButtonText =\n sandboxFullscreenButtonText || localeTexts.sandboxFullscreenButtonText;\n const resolvedSandboxExitFullscreenButtonText =\n sandboxExitFullscreenButtonText ||\n localeTexts.sandboxExitFullscreenButtonText;\n const shouldApplyTypewriterByContentType =\n !contentType || contentType === \"text\";\n const isTypewriterEnabled =\n Boolean(enableTypewriter) && shouldApplyTypewriterByContentType;\n const sourceContent = useMemo(\n () => normalizeWrappedSandboxContent(content),\n [content]\n );\n const sourceAnalysis = useMemo(\n () => getMarkdownSourceAnalysis(sourceContent),\n [sourceContent]\n );\n // Parse the received source, never a typewriter-truncated HTML string.\n const sourceSegments = useMemo(() => {\n const segments = mergeNonSandboxSegments(\n splitContentSegments(sourceContent, true, true, sourceAnalysis)\n );\n if (\n sourceContent !== content &&\n segments.length &&\n (segments[0].type === \"sandbox\" || isImmediateSegment(segments[0]))\n ) {\n // The removed opening quote occupied a prose slot before the wrapper\n // completed. Retain its empty slot so the existing iframe keeps its key.\n return [{ type: \"text\" as const, value: \"\" }, ...segments];\n }\n return segments;\n }, [content, sourceContent, sourceAnalysis]);\n const hasRichSegments = sourceSegments.some(\n (segment) => segment.type === \"sandbox\" || isImmediateSegment(segment)\n );\n const typewriterContent = hasRichSegments\n ? sourceSegments\n .filter(\n (segment) =>\n segment.type !== \"sandbox\" && !isImmediateSegment(segment)\n )\n .map((segment) => segment.value)\n .join(\"\")\n : sourceContent;\n const typewriterTickMs = Math.max(0, typingSpeed);\n const fixedTypewriterContentVersion =\n typewriterPacing === \"fixed\" ? typewriterContent : undefined;\n const [displayContent, setDisplayContent] = useState(() =>\n isTypewriterEnabled ? \"\" : typewriterContent\n );\n const displayContentRef = useRef(displayContent);\n const pendingContentRef = useRef(\"\");\n const contentAwareQueueRef = useRef<ContentAwareTypewriterQueue>({\n tokens: [],\n head: 0,\n trailingGrapheme: \"\",\n });\n const contentAwareBudgetRef = useRef(0);\n const previousTypewriterEnabledRef = useRef(isTypewriterEnabled);\n const previousTypewriterPacingRef = useRef(typewriterPacing);\n const previousSourceContentRef = useRef(typewriterContent);\n const previousReceivedContentRef = useRef(content);\n const hasReportedTypeFinishedRef = useRef(false);\n const [typewriterWakeVersion, setTypewriterWakeVersion] = useState(0);\n\n useEffect(() => {\n const wasTypewriterEnabled = previousTypewriterEnabledRef.current;\n const previousTypewriterPacing = previousTypewriterPacingRef.current;\n const previousSourceContent = previousSourceContentRef.current;\n const wasPending = Boolean(pendingContentRef.current);\n const receivedContentChanged =\n previousReceivedContentRef.current !== content;\n const receivedContentAppended =\n receivedContentChanged &&\n content.startsWith(previousReceivedContentRef.current);\n previousReceivedContentRef.current = content;\n\n previousTypewriterEnabledRef.current = isTypewriterEnabled;\n previousTypewriterPacingRef.current = typewriterPacing;\n previousSourceContentRef.current = typewriterContent;\n\n if (\n receivedContentChanged ||\n isTypewriterEnabled !== wasTypewriterEnabled\n ) {\n hasReportedTypeFinishedRef.current = false;\n }\n\n const clearPendingContent = () => {\n pendingContentRef.current = \"\";\n contentAwareQueueRef.current = {\n tokens: [],\n head: 0,\n trailingGrapheme: \"\",\n };\n contentAwareBudgetRef.current = 0;\n };\n\n const updateDisplayContent = (nextContent: string) => {\n displayContentRef.current = nextContent;\n setDisplayContent(nextContent);\n };\n\n if (!isTypewriterEnabled) {\n clearPendingContent();\n updateDisplayContent(typewriterContent);\n return;\n }\n\n if (!wasTypewriterEnabled) {\n clearPendingContent();\n updateDisplayContent(\"\");\n }\n\n let visibleContent = !wasTypewriterEnabled ? \"\" : displayContentRef.current;\n\n if (!typewriterContent.startsWith(visibleContent)) {\n clearPendingContent();\n if (!receivedContentAppended) {\n updateDisplayContent(typewriterContent);\n if (typewriterPacing === \"content-aware\") {\n contentAwareQueueRef.current = {\n tokens: [],\n head: 0,\n trailingGrapheme: getTrailingTypewriterGrapheme(typewriterContent),\n };\n }\n return;\n }\n // A newly recognized HTML tag can replace a previously literal prefix.\n // Keep the shared prose visible and pace only the newly received prose.\n let sharedLength = 0;\n while (\n sharedLength < visibleContent.length &&\n sharedLength < typewriterContent.length &&\n visibleContent[sharedLength] === typewriterContent[sharedLength]\n ) {\n sharedLength += 1;\n }\n visibleContent = visibleContent.slice(0, sharedLength);\n updateDisplayContent(visibleContent);\n }\n\n let nextPendingContent = typewriterContent.slice(visibleContent.length);\n if (!nextPendingContent) {\n pendingContentRef.current = \"\";\n contentAwareBudgetRef.current = 0;\n contentAwareQueueRef.current =\n typewriterPacing === \"content-aware\"\n ? {\n tokens: [],\n head: 0,\n trailingGrapheme: getTrailingTypewriterGrapheme(visibleContent),\n }\n : { tokens: [], head: 0, trailingGrapheme: \"\" };\n return;\n }\n\n if (typewriterPacing === \"content-aware\") {\n const previousPendingContent = previousSourceContent.slice(\n visibleContent.length\n );\n const canAppendToCachedQueue =\n wasTypewriterEnabled &&\n previousTypewriterPacing === \"content-aware\" &&\n typewriterContent.startsWith(previousSourceContent) &&\n pendingContentRef.current === previousPendingContent;\n\n if (canAppendToCachedQueue) {\n const appended = appendContentAwareTypewriterQueue(\n contentAwareQueueRef.current,\n typewriterContent.slice(previousSourceContent.length)\n );\n contentAwareQueueRef.current = appended.queue;\n\n if (appended.immediateChunk) {\n nextPendingContent = nextPendingContent.slice(\n appended.immediateChunk.length\n );\n updateDisplayContent(`${visibleContent}${appended.immediateChunk}`);\n }\n } else {\n const appended = appendContentAwareTypewriterQueue(\n {\n tokens: [],\n head: 0,\n trailingGrapheme: getTrailingTypewriterGrapheme(visibleContent),\n },\n nextPendingContent\n );\n contentAwareQueueRef.current = appended.queue;\n\n if (appended.immediateChunk) {\n nextPendingContent = nextPendingContent.slice(\n appended.immediateChunk.length\n );\n updateDisplayContent(`${visibleContent}${appended.immediateChunk}`);\n }\n\n contentAwareBudgetRef.current = 0;\n }\n } else {\n contentAwareQueueRef.current = {\n tokens: [],\n head: 0,\n trailingGrapheme: \"\",\n };\n contentAwareBudgetRef.current = 0;\n }\n\n pendingContentRef.current = nextPendingContent;\n\n if (!wasPending && nextPendingContent) {\n setTypewriterWakeVersion((version) => version + 1);\n }\n }, [content, typewriterContent, isTypewriterEnabled, typewriterPacing]);\n\n useEffect(() => {\n if (!isTypewriterEnabled) {\n return;\n }\n\n if (\n hasReportedTypeFinishedRef.current ||\n pendingContentRef.current ||\n displayContent !== typewriterContent\n ) {\n return;\n }\n\n hasReportedTypeFinishedRef.current = true;\n onTypeFinished?.();\n }, [\n content,\n typewriterContent,\n displayContent,\n isTypewriterEnabled,\n onTypeFinished,\n ]);\n\n useEffect(() => {\n if (!isTypewriterEnabled || !pendingContentRef.current) {\n return undefined;\n }\n\n const typewriterTimer = window.setTimeout(() => {\n if (!pendingContentRef.current) {\n return;\n }\n\n let chunk = \"\";\n\n if (typewriterPacing === \"content-aware\") {\n const result = consumeContentAwareTypewriterQueue(\n contentAwareQueueRef.current,\n contentAwareBudgetRef.current + CONTENT_AWARE_TYPEWRITER_TICK_BUDGET\n );\n\n chunk = result.chunk;\n contentAwareQueueRef.current = result.queue;\n\n if (isContentAwareTypewriterQueueEmpty(result.queue)) {\n contentAwareBudgetRef.current = 0;\n } else {\n contentAwareBudgetRef.current = result.remainingBudget;\n }\n } else {\n const fixedChunk = splitTextByCharacterChunk(\n pendingContentRef.current,\n FIXED_TYPEWRITER_CHUNK_SIZE\n );\n chunk = fixedChunk.chunk;\n }\n\n if (!chunk) {\n return;\n }\n\n pendingContentRef.current = pendingContentRef.current.slice(chunk.length);\n if (!pendingContentRef.current) {\n contentAwareQueueRef.current =\n typewriterPacing === \"content-aware\"\n ? {\n tokens: [],\n head: 0,\n trailingGrapheme: contentAwareQueueRef.current.trailingGrapheme,\n }\n : { tokens: [], head: 0, trailingGrapheme: \"\" };\n contentAwareBudgetRef.current = 0;\n }\n\n const nextDisplayContent = `${displayContentRef.current}${chunk}`;\n displayContentRef.current = nextDisplayContent;\n setDisplayContent(nextDisplayContent);\n }, typewriterTickMs);\n\n return () => window.clearTimeout(typewriterTimer);\n }, [\n displayContent,\n fixedTypewriterContentVersion,\n isTypewriterEnabled,\n typewriterPacing,\n typewriterTickMs,\n typewriterWakeVersion,\n ]);\n\n const mergedRenderSegments = useMemo(() => {\n let textOffset = 0;\n return sourceSegments.map((segment) => {\n if (!isTypewriterEnabled) return segment;\n if (segment.type === \"sandbox\" || isImmediateSegment(segment)) {\n // HTML skips the prose budget only after earlier prose has caught up.\n // Retain its source slot so later updates keep the same render key.\n return displayContent.length >= textOffset\n ? segment\n : { ...segment, value: \"\" };\n }\n const value = displayContent.slice(\n textOffset,\n textOffset + segment.value.length\n );\n textOffset += segment.value.length;\n // Keep empty prose slots so an existing sandbox never changes its key.\n return { ...segment, value };\n });\n }, [sourceSegments, displayContent, isTypewriterEnabled]);\n const typewriterState = useMemo<ContentRenderTypewriterState>(\n () => ({\n isTypewriterEnabled,\n isTyping: isTypewriterEnabled && displayContent !== typewriterContent,\n isComplete: displayContent === typewriterContent,\n renderedLength:\n content.length -\n sourceSegments.reduce(\n (remaining, segment, index) =>\n remaining +\n segment.value.length -\n mergedRenderSegments[index].value.length,\n 0\n ),\n totalLength: content.length,\n }),\n [\n content,\n typewriterContent,\n displayContent,\n isTypewriterEnabled,\n sourceSegments,\n mergedRenderSegments,\n ]\n );\n\n useEffect(() => {\n onTypewriterStateChange?.(typewriterState);\n }, [onTypewriterStateChange, typewriterState]);\n const sourceSegmentOffsets = useMemo(() => {\n let offset = 0;\n return sourceSegments.map((segment) => {\n const start = offset;\n offset += segment.value.length;\n return start;\n });\n }, [sourceSegments]);\n const sourceInlineCodeRanges = useMemo(\n () =>\n isTypewriterEnabled\n ? sourceSegments.map((segment) =>\n segment.type === \"sandbox\" || isImmediateSegment(segment)\n ? []\n : segment.value === sourceContent\n ? sourceAnalysis.inline\n : getInlineCodeRanges(segment.value)\n )\n : [],\n [isTypewriterEnabled, sourceSegments, sourceContent, sourceAnalysis]\n );\n const safeRichMarkdownContent = useMemo(\n () =>\n hasRichSegments\n ? mergedRenderSegments.map((segment, index) =>\n segment.type === \"sandbox\" || isImmediateSegment(segment)\n ? segment.value\n : isTypewriterEnabled\n ? protectTypedMarkdownPrefix(\n segment.value,\n sourceSegments[index].value,\n sourceInlineCodeRanges[index] ?? [],\n sourceAnalysis.metadata,\n sourceSegmentOffsets[index]\n )\n : escapeTypedMarkdownMetadata(\n segment.value,\n sourceAnalysis.metadata,\n sourceSegmentOffsets[index]\n )\n )\n : [],\n [\n hasRichSegments,\n isTypewriterEnabled,\n mergedRenderSegments,\n sourceInlineCodeRanges,\n sourceSegments,\n sourceAnalysis.metadata,\n sourceSegmentOffsets,\n ]\n );\n const richRenderRuns = useMemo(() => {\n const runs: Array<{\n indices: number[];\n sandbox: boolean;\n plan?: ReturnType<typeof createVideoMarkdownRunPlan>;\n }> = [];\n sourceSegments.forEach((segment, index) => {\n const previous = runs.at(-1);\n if (segment.type !== \"sandbox\" && previous && !previous.sandbox) {\n previous.indices.push(index);\n } else {\n runs.push({ indices: [index], sandbox: segment.type === \"sandbox\" });\n }\n });\n for (const run of runs) {\n if (\n !run.sandbox &&\n run.indices.some((index) => isImmediateSegment(sourceSegments[index]))\n ) {\n const segments = run.indices.map((index) => sourceSegments[index]);\n const fullSource = segments.map((segment) => segment.value).join(\"\");\n run.plan = createVideoMarkdownRunPlan(\n segments,\n fullSource === sourceContent ? sourceAnalysis : undefined\n );\n }\n }\n return runs;\n }, [sourceSegments, sourceContent, sourceAnalysis]);\n const renderContent = hasRichSegments\n ? mergedRenderSegments.map((segment) => segment.value).join(\"\")\n : isTypewriterEnabled\n ? displayContent\n : sourceContent;\n const normalizedContent = useMemo(\n () => (customRenderBar ? normalizeInlineHtml(renderContent) : \"\"),\n [customRenderBar, renderContent]\n );\n\n const safeMarkdownContent = useMemo(\n () =>\n hasRichSegments\n ? \"\"\n : normalizeInlineHtml(\n isTypewriterEnabled\n ? protectTypedMarkdownPrefix(\n renderContent,\n sourceContent,\n sourceInlineCodeRanges[0] ?? [],\n sourceAnalysis.metadata\n )\n : escapeTypedMarkdownMetadata(\n renderContent,\n sourceAnalysis.metadata\n )\n ),\n [\n sourceContent,\n hasRichSegments,\n isTypewriterEnabled,\n renderContent,\n sourceInlineCodeRanges,\n sourceAnalysis.metadata,\n ]\n );\n\n const interactionDefaults = useMemo(\n () =>\n getInteractionDefaultValues(\n renderContent,\n userInput,\n interactionDefaultValueOptions\n ),\n [interactionDefaultValueOptions, renderContent, userInput]\n );\n\n const resolvedDefaultButtonText =\n (defaultButtonText ? trimVariablePadding(defaultButtonText) : undefined) ||\n interactionDefaults.buttonText;\n const resolvedDefaultInputText =\n defaultInputText?.trim() || interactionDefaults.inputText;\n const fallbackSelectedValues = useMemo(\n () =>\n userInput\n ? userInput\n .split(\",\")\n .map((value) => trimVariablePadding(value))\n .filter(Boolean)\n : undefined,\n [userInput]\n );\n const resolvedDefaultSelectedValues = defaultSelectedValues?.length\n ? defaultSelectedValues\n : interactionDefaults.selectedValues || fallbackSelectedValues;\n const stableDefaultSelectedValues = useStableStringArray(\n resolvedDefaultSelectedValues\n );\n const componentRuntimeValuesRef = useRef<MarkdownComponentRuntimeValues>({\n direction,\n language,\n mermaidMessages,\n beforeSend,\n locale,\n onClickCustomButtonAfterContent,\n onSend,\n readonly,\n renderContent,\n resolvedConfirmButtonText,\n resolvedCopiedButtonText,\n resolvedCopyButtonText,\n resolvedDefaultButtonText,\n resolvedDefaultInputText,\n resolvedDefaultSelectedValues: stableDefaultSelectedValues,\n });\n\n componentRuntimeValuesRef.current = {\n direction,\n language,\n mermaidMessages,\n beforeSend,\n locale,\n onClickCustomButtonAfterContent,\n onSend,\n readonly,\n renderContent,\n resolvedConfirmButtonText,\n resolvedCopiedButtonText,\n resolvedCopyButtonText,\n resolvedDefaultButtonText,\n resolvedDefaultInputText,\n resolvedDefaultSelectedValues: stableDefaultSelectedValues,\n };\n\n const components = useMemo<CustomComponents>(\n () => ({\n \"custom-button-after-content\": ({\n children,\n }: {\n children: React.ReactNode;\n }) => {\n return (\n <button\n className=\"content-render-custom-button-after-content\"\n onClick={\n componentRuntimeValuesRef.current.onClickCustomButtonAfterContent\n }\n >\n <span className=\"content-render-custom-button-after-content-inner\">\n {children}\n </span>\n </button>\n );\n },\n \"custom-variable\": (props) => (\n <CustomButtonInputVariable\n {...props}\n readonly={componentRuntimeValuesRef.current.readonly}\n defaultButtonText={\n componentRuntimeValuesRef.current.resolvedDefaultButtonText\n }\n defaultInputText={\n componentRuntimeValuesRef.current.resolvedDefaultInputText\n }\n defaultSelectedValues={\n componentRuntimeValuesRef.current.resolvedDefaultSelectedValues\n }\n onSend={componentRuntimeValuesRef.current.onSend}\n beforeSend={componentRuntimeValuesRef.current.beforeSend}\n locale={componentRuntimeValuesRef.current.locale}\n dir={componentRuntimeValuesRef.current.direction}\n lang={componentRuntimeValuesRef.current.language}\n confirmButtonText={\n componentRuntimeValuesRef.current.resolvedConfirmButtonText\n }\n />\n ),\n code: MarkdownCode,\n table: ({ ...props }) => (\n <div className=\"content-render-table-container\">\n <table className=\"content-render-table\" {...props} />\n </div>\n ),\n th: ({ ...props }) => <th className=\"content-render-th\" {...props} />,\n td: ({ ...props }) => <td className=\"content-render-td\" {...props} />,\n tr: ({ ...props }) => <tr className=\"content-render-tr\" {...props} />,\n li: ({ node, ...props }) => {\n const className = node?.properties?.className;\n const hasTaskListItem =\n (typeof className === \"string\" &&\n className.includes(\"task-list-item\")) ||\n (Array.isArray(className) && className.includes(\"task-list-item\"));\n if (hasTaskListItem) {\n return <li className=\"content-render-task-list-item\" {...props} />;\n }\n return <li {...props} />;\n },\n ol: ({ ...props }) => <ol className=\"content-render-ol\" {...props} />,\n ul: ({ ...props }) => <ul className=\"content-render-ul\" {...props} />,\n input: ({ ...props }) => {\n if (props.type === \"checkbox\") {\n return (\n <input\n type=\"checkbox\"\n className=\"content-render-checkbox\"\n disabled\n {...props}\n />\n );\n }\n return <input {...props} />;\n },\n a: ({ children, ...props }) => (\n <a target=\"_blank\" rel=\"noopener noreferrer\" {...props}>\n {children}\n </a>\n ),\n pre: (props) => (\n <CodeBlock\n {...props}\n copyButtonText={\n componentRuntimeValuesRef.current.resolvedCopyButtonText\n }\n copiedButtonText={\n componentRuntimeValuesRef.current.resolvedCopiedButtonText\n }\n />\n ),\n }),\n []\n );\n\n const segments = useMemo(\n () => parseMarkdownSegments(safeMarkdownContent),\n [safeMarkdownContent]\n );\n\n const renderMarkdownSegments = (raw: string, keyPrefix: string) => {\n const normalized = normalizeInlineHtml(raw);\n const parsed = parseMarkdownSegments(normalized);\n\n return parsed.map((seg, index) => {\n const key = `${keyPrefix}-${seg.type}-${index}`;\n\n if (seg.type === \"text\") {\n return (\n <MarkdownComponentRuntimeContext.Provider\n key={key}\n value={componentRuntimeValuesRef}\n >\n <MarkdownRenderer\n locale={locale}\n components={components}\n content={seg.value}\n />\n </MarkdownComponentRuntimeContext.Provider>\n );\n }\n\n if (seg.type === \"mermaid\") {\n return (\n <MermaidChart\n key={key}\n chart={seg.value}\n frozen={!seg.complete}\n messages={mermaidMessages}\n />\n );\n }\n\n if (seg.type === \"svg\") {\n return <SvgBlockInShadow key={key} svg={seg.value} />;\n }\n\n return null;\n });\n };\n\n const customBar = customRenderBar ? (\n <div className=\"content-render-custom-bar\">\n {React.createElement(customRenderBar, {\n content,\n displayContent: normalizedContent,\n onSend,\n })}\n </div>\n ) : null;\n\n if (hasRichSegments) {\n return (\n <div\n className=\"content-render markdown-body\"\n dir={direction}\n lang={language}\n >\n {richRenderRuns.map((run) => {\n const idx = run.indices[0];\n const segment = mergedRenderSegments[idx];\n if (run.sandbox)\n return segment.type === \"sandbox\" &&\n segment.value &&\n !segment.pending ? (\n <IframeSandbox\n key={`sandbox-${idx}`}\n hideFullScreen\n type=\"sandbox\"\n content={segment.value}\n className=\"content-render-iframe\"\n locale={locale}\n dir={direction}\n lang={language}\n loadingText={sandboxLoadingText}\n styleLoadingText={sandboxStyleLoadingText}\n scriptLoadingText={sandboxScriptLoadingText}\n disableLoadingOverlay={disableSandboxLoadingOverlay}\n fullScreenButtonText={resolvedSandboxFullscreenButtonText}\n exitFullScreenButtonText={\n resolvedSandboxExitFullscreenButtonText\n }\n mode={sandboxMode}\n />\n ) : null;\n if (run.plan)\n return (\n <MarkdownComponentRuntimeContext.Provider\n key={`md-${idx}`}\n value={componentRuntimeValuesRef}\n >\n <StableVideoMarkdownRenderer\n locale={locale}\n components={components}\n plan={run.plan}\n renderedSegments={run.indices.map(\n (index) => mergedRenderSegments[index]\n )}\n />\n </MarkdownComponentRuntimeContext.Provider>\n );\n return run.indices.map((index) => (\n <React.Fragment key={`md-${index}`}>\n {mergedRenderSegments[index].type === \"markdown\" &&\n mergedRenderSegments[index].pending\n ? null\n : renderMarkdownSegments(\n safeRichMarkdownContent[index],\n `md-${index}`\n )}\n </React.Fragment>\n ));\n })}\n {customBar}\n </div>\n );\n }\n\n return (\n <div\n className=\"content-render markdown-body\"\n dir={direction}\n lang={language}\n >\n {segments.map((seg, index) => {\n if (seg.type === \"text\") {\n return (\n <MarkdownComponentRuntimeContext.Provider\n key={index}\n value={componentRuntimeValuesRef}\n >\n <MarkdownRenderer\n locale={locale}\n components={components}\n content={seg.value}\n />\n </MarkdownComponentRuntimeContext.Provider>\n );\n }\n\n if (seg.type === \"mermaid\") {\n return (\n <MermaidChart\n key={index}\n chart={seg.value}\n frozen={!seg.complete}\n messages={mermaidMessages}\n />\n );\n }\n\n if (seg.type === \"svg\") {\n return <SvgBlockInShadow key={index} svg={seg.value} />;\n }\n })}\n\n {customBar}\n </div>\n );\n};\n\nexport default ContentRender;\n"],"names":["FIXED_TYPEWRITER_CHUNK_SIZE","SvgBlockInShadow","svg","inline","hostRef","useRef","Wrapper","useEffect","host","shadowRoot","styleId","styleEl","node","template","cleanedSvg","stripSvgTextLineBreaks","hasResponsiveSvg","hasFixedSvg","svgEl","viewBox","dimensions","value","viewBoxWidth","viewBoxHeight","widthAttr","heightAttr","isRelativeLength","normalized","toNumericLength","parsed","isWidthRelative","isHeightRelative","widthMissing","heightMissing","numericWidth","numericHeight","hostResponsive","jsx","MarkdownComponentRuntimeContext","React","MarkdownCode","props","receivedTree","codeProps","runtimeValuesRef","isInCodeBlock","CodeBlockContext","className","children","rest","chartContent","complete","mermaidBlockIsComplete","MermaidChart","sourceRehypePlugins","preserveCustomVariableProperties","rehypeRaw","sanitizeInvalidTagName","restoreCustomVariableProperties","formattingRehypePlugins","rehypeHighlight","highlightLanguages","subsetLanguages","rehypeKatex","rehypePlugins","MarkdownRenderer","markdownContent","components","locale","texts","getContentRenderLocaleTexts","ReactMarkdown","remarkPlugins","referenceIndex","rereferenceIndex","reference","usePreparedTree","StableVideoMarkdownRenderer","plan","renderedSegments","prepared","useMemo","sourceProcessor","unified","remarkRehype","formattingProcessor","tree","cloneVideoMarkdownSourceTree","prepareVideoMarkdownRun","projected","projectVideoMarkdownRun","originalComponents","wrappers","stableComponents","tags","collect","result","tag","Component","state","getVideoMarkdownNodeState","Fragment","Original","visibleProps","preparedPlugins","isImmediateSegment","segment","mergeNonSandboxSegments","segments","merged","last","closeTypedInlineCode","visible","source","ranges","range","start","end","delimiter","closingStart","protectTypedMarkdownPrefix","inlineCodeRanges","metadataRanges","sourceOffset","closed","escapeTypedMarkdownMetadata","splitTextByCharacterChunk","chunkSize","safeChunkSize","characters","areStringArraysEqual","left","right","index","useStableStringArray","values","valuesRef","ContentRender","content","contentType","lang","dir","customRenderBar","onSend","typingSpeed","enableTypewriter","typewriterPacing","onTypeFinished","onTypewriterStateChange","userInput","interactionDefaultValueOptions","defaultButtonText","defaultInputText","defaultSelectedValues","readonly","confirmButtonText","copyButtonText","copiedButtonText","sandboxLoadingText","sandboxStyleLoadingText","sandboxScriptLoadingText","disableSandboxLoadingOverlay","sandboxFullscreenButtonText","sandboxExitFullscreenButtonText","sandboxMode","onClickCustomButtonAfterContent","beforeSend","localeTexts","mermaidMessages","direction","getMarkdownFlowDirection","language","getMarkdownFlowLanguage","resolvedConfirmButtonText","resolvedCopyButtonText","resolvedCopiedButtonText","resolvedSandboxFullscreenButtonText","resolvedSandboxExitFullscreenButtonText","isTypewriterEnabled","sourceContent","normalizeWrappedSandboxContent","sourceAnalysis","getMarkdownSourceAnalysis","sourceSegments","splitContentSegments","hasRichSegments","typewriterContent","typewriterTickMs","fixedTypewriterContentVersion","displayContent","setDisplayContent","useState","displayContentRef","pendingContentRef","contentAwareQueueRef","contentAwareBudgetRef","previousTypewriterEnabledRef","previousTypewriterPacingRef","previousSourceContentRef","previousReceivedContentRef","hasReportedTypeFinishedRef","typewriterWakeVersion","setTypewriterWakeVersion","wasTypewriterEnabled","previousTypewriterPacing","previousSourceContent","wasPending","receivedContentChanged","receivedContentAppended","clearPendingContent","updateDisplayContent","nextContent","visibleContent","getTrailingTypewriterGrapheme","sharedLength","nextPendingContent","previousPendingContent","appended","appendContentAwareTypewriterQueue","version","typewriterTimer","chunk","consumeContentAwareTypewriterQueue","CONTENT_AWARE_TYPEWRITER_TICK_BUDGET","isContentAwareTypewriterQueueEmpty","nextDisplayContent","mergedRenderSegments","textOffset","typewriterState","remaining","sourceSegmentOffsets","offset","sourceInlineCodeRanges","getInlineCodeRanges","safeRichMarkdownContent","richRenderRuns","runs","previous","run","fullSource","createVideoMarkdownRunPlan","renderContent","normalizedContent","normalizeInlineHtml","safeMarkdownContent","interactionDefaults","getInteractionDefaultValues","resolvedDefaultButtonText","trimVariablePadding","resolvedDefaultInputText","fallbackSelectedValues","resolvedDefaultSelectedValues","stableDefaultSelectedValues","componentRuntimeValuesRef","CustomButtonInputVariable","CodeBlock","parseMarkdownSegments","renderMarkdownSegments","raw","keyPrefix","seg","key","customBar","jsxs","idx","IframeSandbox"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4EA,MAAMA,KAA8B,GA4E9BC,KAAgE,CAAC;AAAA,EACrE,KAAAC;AAAA,EACA,QAAAC,IAAS;AACX,MAAM;AACJ,QAAMC,IAAUC,EAA2B,IAAI,GACzCC,IAAUH,IAAS,SAAS;AAElC,SAAAI,GAAU,MAAM;AACd,UAAMC,IAAOJ,EAAQ;AACrB,QAAI,CAACI,EAAM;AACX,UAAMC,IAAaD,EAAK,cAAcA,EAAK,aAAa,EAAE,MAAM,QAAQ,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AK,EAQhC,CACD;AAAA,QACH,CAAC;AAAA,QACAiI;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA,IAML,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAU;AAAA,MACV,KAAK9F;AAAA,MACL,MAAME;AAAA,MAEL,UAAA;AAAA,QAAA/D,GAAS,IAAI,CAACwJ,GAAK/H,MAAU;AAC5B,cAAI+H,EAAI,SAAS;AACf,mBACE,gBAAA/N;AAAA,cAACC,GAAgC;AAAA,cAAhC;AAAA,gBAEC,OAAOuN;AAAA,gBAEP,UAAA,gBAAAxN;AAAA,kBAAC4B;AAAA,kBAAA;AAAA,oBACC,QAAAG;AAAA,oBACA,YAAAD;AAAA,oBACA,SAASiM,EAAI;AAAA,kBAAA;AAAA,gBAAA;AAAA,cACf;AAAA,cAPK/H;AAAA,YAAA;AAYX,cAAI+H,EAAI,SAAS;AACf,mBACE,gBAAA/N;AAAA,cAACgB;AAAA,cAAA;AAAA,gBAEC,OAAO+M,EAAI;AAAA,gBACX,QAAQ,CAACA,EAAI;AAAA,gBACb,UAAU5F;AAAA,cAAA;AAAA,cAHLnC;AAAA,YAAA;AAQX,cAAI+H,EAAI,SAAS;AACf,mBAAO,gBAAA/N,EAACpC,IAAA,EAA6B,KAAKmQ,EAAI,SAAhB/H,CAAuB;AAAA,QAEzD,CAAC;AAAA,QAEAiI;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGP;"}
1
+ {"version":3,"file":"ContentRender.es.js","sources":["../../../src/components/ContentRender/ContentRender.tsx"],"sourcesContent":["import { trimVariablePadding } from \"remark-flow\";\nimport React, { useEffect, useMemo, useRef, useState } from \"react\";\nimport ReactMarkdown from \"react-markdown\";\nimport rehypeHighlight from \"rehype-highlight\";\nimport rehypeKatex from \"rehype-katex\";\nimport rehypeRaw from \"rehype-raw\";\nimport { unified, type PluggableList, type Plugin } from \"unified\";\nimport remarkRehype from \"remark-rehype\";\nimport type { Element, Root } from \"hast\";\nimport { CustomRenderBarProps, OnSendContentParams } from \"../types\";\nimport { sanitizeInvalidTagName } from \"./utils/sanitize-invalid-tag-name\";\nimport { stripSvgTextLineBreaks } from \"./utils/strip-svg-text-line-breaks\";\nimport \"./contentRender.css\";\nimport \"./github-markdown-light.css\";\nimport \"highlight.js/styles/github.css\";\nimport \"katex/dist/katex.min.css\";\nimport CodeBlock, { CodeBlockContext } from \"./CodeBlock\";\nimport CustomButtonInputVariable, {\n ComponentsWithCustomVariable,\n} from \"./plugins/CustomVariable\";\nimport MermaidChart, { type MermaidChartProps } from \"./plugins/MermaidChart\";\nimport {\n preserveCustomVariableProperties,\n restoreCustomVariableProperties,\n} from \"./utils/custom-variable-props\";\nimport {\n highlightLanguages,\n subsetLanguages,\n} from \"./utils/highlight-languages\";\nimport {\n parseMarkdownSegments,\n mermaidBlockIsComplete,\n} from \"./utils/mermaid-parse\";\nimport {\n getInlineCodeRanges,\n getMarkdownSourceAnalysis,\n} from \"./utils/inline-code-ranges\";\nimport { remarkPlugins } from \"./utils/markdown-plugins\";\nimport { normalizeInlineHtml } from \"./utils/normalize-inline-html\";\nimport {\n escapeTypedMarkdownMetadata,\n type MarkdownMetadataRange,\n} from \"./utils/escape-typed-metadata\";\nimport IframeSandbox from \"./IframeSandbox\";\nimport {\n appendContentAwareTypewriterQueue,\n CONTENT_AWARE_TYPEWRITER_TICK_BUDGET,\n consumeContentAwareTypewriterQueue,\n getTrailingTypewriterGrapheme,\n isContentAwareTypewriterQueueEmpty,\n type ContentAwareTypewriterQueue,\n} from \"./utils/typewriter-pacing\";\nimport {\n normalizeWrappedSandboxContent,\n splitContentSegments,\n type RenderSegment,\n} from \"./utils/split-content\";\nimport {\n getInteractionDefaultValues,\n type InteractionDefaultValueOptions,\n} from \"../../lib/interaction-defaults\";\nimport {\n getMarkdownFlowDirection,\n getMarkdownFlowLanguage,\n type MarkdownFlowLocale,\n} from \"../../lib/locale\";\nimport { getContentRenderLocaleTexts } from \"./contentRenderI18n\";\nimport {\n createVideoMarkdownRunPlan,\n cloneVideoMarkdownSourceTree,\n projectVideoMarkdownRun,\n prepareVideoMarkdownRun,\n getVideoMarkdownNodeState,\n type VideoMarkdownRunPlan,\n} from \"./utils/video-markdown-run\";\n\nconst FIXED_TYPEWRITER_CHUNK_SIZE = 2;\n\nexport type ContentRenderTypewriterPacing = \"fixed\" | \"content-aware\";\n\n// Define component Props type\nexport interface ContentRenderProps {\n content: string;\n contentType?: string;\n /** Locale used for built-in UI text when a more specific text prop is not provided. */\n locale?: MarkdownFlowLocale;\n /** Overrides the locale-derived language; omitted values inherit from the host. */\n lang?: string;\n /** Overrides locale-derived direction; omitted values inherit when no locale is set. */\n dir?: React.HTMLAttributes<HTMLDivElement>[\"dir\"];\n /**\n * Callback invoked when the custom button after content is clicked.\n * This button is rendered via the `<custom-button-after-content>` tag in markdown content.\n * @example\n * ```tsx\n * <ContentRender\n * content=\"Hello <custom-button-after-content>Ask</custom-button-after-content>\"\n * onClickCustomButtonAfterContent={() => console.log('Button clicked')}\n * />\n * ```\n */\n customRenderBar?: CustomRenderBarProps;\n onClickCustomButtonAfterContent?: () => void;\n onSend?: (content: OnSendContentParams) => void;\n /** Observes an accepted Tab completion without receiving authored text. */\n onPlaceholderAccepted?: () => void;\n typingSpeed?: number;\n /** Types prose only; following HTML renders progressively once preceding prose is displayed. */\n enableTypewriter?: boolean;\n /** Controls how much text is revealed per tick. Defaults to the legacy fixed pacing. */\n typewriterPacing?: ContentRenderTypewriterPacing;\n onTypeFinished?: () => void;\n onTypewriterStateChange?: (state: ContentRenderTypewriterState) => void;\n userInput?: string;\n interactionDefaultValueOptions?: InteractionDefaultValueOptions;\n defaultButtonText?: string;\n defaultInputText?: string; // Text input by user\n defaultSelectedValues?: string[]; // Default selected values for multi-select\n readonly?: boolean;\n // Multi-select confirm button text (i18n support)\n confirmButtonText?: string;\n // Copy button text (i18n support)\n copyButtonText?: string;\n // Copied state text (i18n support)\n copiedButtonText?: string;\n // Dynamic interaction format for multi-select support\n dynamicInteractionFormat?: string;\n // Loading text before first HTML block renders inside iframe (i18n support)\n sandboxLoadingText?: string;\n // Loading text while styles are being generated inside iframe\n sandboxStyleLoadingText?: string;\n // Loading text while scripts are being cached/executed inside iframe\n sandboxScriptLoadingText?: string;\n // Disable sandbox loading overlays when upper layers have already entered an error state\n disableSandboxLoadingOverlay?: boolean;\n // Fullscreen button text for iframe sandbox\n sandboxFullscreenButtonText?: string;\n // Exit fullscreen button text for iframe sandbox\n sandboxExitFullscreenButtonText?: string;\n // Sandbox render mode\n sandboxMode?: \"content\" | \"blackboard\";\n beforeSend?: (param: OnSendContentParams) => boolean;\n}\n\nexport interface ContentRenderTypewriterState {\n isTypewriterEnabled: boolean;\n isTyping: boolean;\n isComplete: boolean;\n /** Received source units already displayed, including unpaced HTML. */\n renderedLength: number;\n totalLength: number;\n}\n\n// Render svg string via Shadow DOM to avoid markdown wrapping\nconst SvgBlockInShadow: React.FC<{ svg: string; inline?: boolean }> = ({\n svg,\n inline = false,\n}) => {\n const hostRef = useRef<HTMLElement | null>(null);\n const Wrapper = inline ? \"span\" : \"div\";\n\n useEffect(() => {\n const host = hostRef.current;\n if (!host) return;\n const shadowRoot = host.shadowRoot ?? host.attachShadow({ mode: \"open\" });\n const styleId = \"content-render-svg-style\";\n let styleEl = shadowRoot.getElementById(styleId) as HTMLStyleElement | null;\n\n if (!styleEl) {\n styleEl = document.createElement(\"style\");\n styleEl.id = styleId;\n // Keep intrinsic SVG width so the wrapper can scroll horizontally when needed\n styleEl.textContent = `\n svg { height: auto; display: inline-block; }\n svg.content-render-svg-el--responsive { width: 100%; max-width: 100%; }\n svg.content-render-svg-el--fixed { max-width: none; }\n `;\n shadowRoot.appendChild(styleEl);\n }\n\n const nodesToRemove = Array.from(shadowRoot.childNodes).filter(\n (node) => node !== styleEl\n );\n nodesToRemove.forEach((node) => shadowRoot.removeChild(node));\n\n const template = document.createElement(\"template\");\n const cleanedSvg = stripSvgTextLineBreaks(svg);\n template.innerHTML = cleanedSvg;\n shadowRoot.append(template.content.cloneNode(true));\n\n let hasResponsiveSvg = false;\n let hasFixedSvg = false;\n\n shadowRoot.querySelectorAll(\"svg\").forEach((svgEl) => {\n // Derive responsive sizing from viewBox so pure viewBox SVGs stay visible and fluid\n const viewBox = svgEl.getAttribute(\"viewBox\");\n if (!viewBox) return;\n\n const dimensions = viewBox\n .trim()\n .split(/[\\s,]+/)\n .map((value) => Number(value));\n\n if (dimensions.length !== 4 || dimensions.some(Number.isNaN)) return;\n\n const [, , viewBoxWidth, viewBoxHeight] = dimensions;\n const widthAttr = svgEl.getAttribute(\"width\");\n const heightAttr = svgEl.getAttribute(\"height\");\n const isRelativeLength = (value?: string | null) => {\n if (!value) return false;\n const normalized = value.trim().toLowerCase();\n return normalized === \"auto\" || normalized.endsWith(\"%\");\n };\n const toNumericLength = (value?: string | null) => {\n if (!value) return null;\n const normalized = value.trim().toLowerCase();\n if (normalized === \"auto\" || normalized.endsWith(\"%\")) {\n return null;\n }\n const parsed = Number.parseFloat(normalized);\n return Number.isNaN(parsed) ? null : parsed;\n };\n // Treat percentage/auto sizing as responsive so viewBox drives the layout\n const isWidthRelative = isRelativeLength(widthAttr);\n const isHeightRelative = isRelativeLength(heightAttr);\n const widthMissing = !widthAttr || widthAttr === \"0\";\n const heightMissing = !heightAttr || heightAttr === \"0\";\n const numericWidth = toNumericLength(widthAttr);\n const numericHeight = toNumericLength(heightAttr);\n const matchesViewBox =\n numericWidth === viewBoxWidth && numericHeight === viewBoxHeight;\n\n // Prefer responsive layout when sizing is relative or matches the viewBox\n const shouldUseResponsiveSize =\n isWidthRelative ||\n isHeightRelative ||\n (widthMissing && heightMissing) ||\n matchesViewBox;\n\n if (shouldUseResponsiveSize) {\n hasResponsiveSvg = true;\n svgEl.classList.add(\"content-render-svg-el--responsive\");\n svgEl.classList.remove(\"content-render-svg-el--fixed\");\n svgEl.style.width = \"100%\";\n svgEl.style.height = \"auto\";\n if (!svgEl.style.aspectRatio && viewBoxHeight > 0) {\n svgEl.style.aspectRatio = `${viewBoxWidth} / ${viewBoxHeight}`;\n }\n return;\n }\n\n hasFixedSvg = true;\n svgEl.classList.add(\"content-render-svg-el--fixed\");\n svgEl.classList.remove(\"content-render-svg-el--responsive\");\n if (widthMissing && viewBoxWidth > 0) {\n svgEl.setAttribute(\"width\", `${viewBoxWidth}`);\n }\n if (heightMissing && viewBoxHeight > 0) {\n svgEl.setAttribute(\"height\", `${viewBoxHeight}`);\n }\n });\n\n const hostResponsive = hasResponsiveSvg && !hasFixedSvg;\n host.classList.toggle(\"content-render-svg--responsive\", hostResponsive);\n host.classList.toggle(\"content-render-svg--fixed\", !hostResponsive);\n }, [svg]);\n\n return (\n <Wrapper className=\"content-render-svg-scroll\">\n <Wrapper\n className=\"content-render-svg\"\n ref={(node) => {\n hostRef.current = node;\n }}\n />\n </Wrapper>\n );\n};\n\n// Extended component interface\ntype CustomComponents = ComponentsWithCustomVariable & {\n \"custom-button-after-content\"?: React.ComponentType<{\n children: React.ReactNode;\n }>;\n};\n\ntype MarkdownComponentRuntimeValues = {\n onPlaceholderAccepted?: () => void;\n direction?: ContentRenderProps[\"dir\"];\n language?: string;\n mermaidMessages: MermaidChartProps[\"messages\"];\n beforeSend?: (param: OnSendContentParams) => boolean;\n locale?: MarkdownFlowLocale;\n onClickCustomButtonAfterContent?: () => void;\n onSend?: (content: OnSendContentParams) => void;\n readonly: boolean;\n renderContent: string;\n resolvedConfirmButtonText: string;\n resolvedCopiedButtonText: string;\n resolvedCopyButtonText: string;\n resolvedDefaultButtonText?: string;\n resolvedDefaultInputText?: string;\n resolvedDefaultSelectedValues?: string[];\n};\n\nconst MarkdownComponentRuntimeContext =\n React.createContext<React.RefObject<MarkdownComponentRuntimeValues> | null>(\n null\n );\n\nconst MarkdownCode = (\n props: React.ComponentProps<\"code\"> & { receivedTree?: boolean }\n) => {\n const { receivedTree, ...codeProps } = props;\n const runtimeValuesRef = React.useContext(MarkdownComponentRuntimeContext);\n const isInCodeBlock = React.useContext(CodeBlockContext);\n if (!runtimeValuesRef) {\n throw new Error(\"Markdown code renderer requires ContentRender context.\");\n }\n const { className, children, ...rest } = codeProps as {\n className?: string;\n children?: React.ReactNode;\n dir?: string;\n };\n const match = /language-(\\w+)/.exec(className || \"\");\n const language = match?.[1];\n if (language === \"mermaid\") {\n const chartContent = children?.toString().replace(/\\n$/, \"\") || \"\";\n const complete = mermaidBlockIsComplete(\n runtimeValuesRef.current.renderContent,\n chartContent\n );\n // The received-tree path replaces standalone Mermaid segments, whose\n // unfinished charts freeze until the closing fence reaches the prose budget.\n const frozen = receivedTree ? !complete : complete;\n return (\n <MermaidChart\n chart={chartContent}\n frozen={frozen}\n messages={runtimeValuesRef.current.mermaidMessages}\n />\n );\n }\n\n return (\n <code\n className={className}\n {...rest}\n dir={rest.dir ?? (isInCodeBlock ? undefined : \"ltr\")}\n >\n {children}\n </code>\n );\n};\n\nconst sourceRehypePlugins: PluggableList = [\n preserveCustomVariableProperties,\n rehypeRaw,\n sanitizeInvalidTagName,\n restoreCustomVariableProperties,\n];\nconst formattingRehypePlugins: PluggableList = [\n [rehypeHighlight, { languages: highlightLanguages, subset: subsetLanguages }],\n rehypeKatex,\n];\nconst rehypePlugins: PluggableList = [\n ...sourceRehypePlugins,\n ...formattingRehypePlugins,\n];\n\nexport const MarkdownRenderer: React.FC<{\n content: string;\n components: CustomComponents;\n locale?: MarkdownFlowLocale;\n}> = ({ content: markdownContent, components, locale }) => {\n const texts = getContentRenderLocaleTexts(locale);\n return (\n <div className=\"markdown-renderer\">\n <ReactMarkdown\n remarkPlugins={remarkPlugins}\n rehypePlugins={rehypePlugins}\n remarkRehypeOptions={{\n footnoteLabel: texts.footnoteLabel,\n footnoteBackLabel: (referenceIndex, rereferenceIndex) => {\n const reference =\n String(referenceIndex + 1) +\n (rereferenceIndex > 1 ? `-${rereferenceIndex}` : \"\");\n return texts.footnoteBackLabel.replace(\"{reference}\", reference);\n },\n }}\n components={components}\n >\n {markdownContent}\n </ReactMarkdown>\n </div>\n );\n};\n\n// ReactMarkdown still owns URL handling and JSX conversion. Its parser is\n// bypassed because the received source was already parsed and transformed.\nconst usePreparedTree: Plugin = function () {\n this.parser = () => ({ type: \"root\", children: [] });\n};\n\nconst StableVideoMarkdownRenderer: React.FC<{\n plan: VideoMarkdownRunPlan;\n renderedSegments: readonly RenderSegment[];\n components: CustomComponents;\n locale?: MarkdownFlowLocale;\n}> = ({ plan, renderedSegments, components, locale }) => {\n const prepared = useMemo(() => {\n const texts = getContentRenderLocaleTexts(locale);\n const sourceProcessor = unified()\n .use(remarkPlugins)\n .use(remarkRehype, {\n allowDangerousHtml: true,\n footnoteLabel: texts.footnoteLabel,\n footnoteBackLabel: (referenceIndex, rereferenceIndex) =>\n texts.footnoteBackLabel.replace(\n \"{reference}\",\n String(referenceIndex + 1) +\n (rereferenceIndex > 1 ? `-${rereferenceIndex}` : \"\")\n ),\n })\n .use(sourceRehypePlugins);\n const formattingProcessor = unified().use(formattingRehypePlugins);\n const tree = sourceProcessor.runSync(\n cloneVideoMarkdownSourceTree(plan),\n plan.markdownSource\n ) as Root;\n return prepareVideoMarkdownRun(\n plan,\n tree,\n (value) => formattingProcessor.runSync(value, plan.fullSource) as Root\n );\n }, [plan, locale]);\n const projected = useMemo(\n () => projectVideoMarkdownRun(prepared, renderedSegments),\n [prepared, renderedSegments]\n );\n const originalComponents = useRef(components);\n originalComponents.current = components;\n const wrappers = useRef(\n new Map<\n string,\n React.ComponentType<{\n node: Element;\n children?: React.ReactNode;\n }>\n >()\n );\n const stableComponents = useMemo(() => {\n const tags = new Set<string>();\n const collect = (node: Root | Root[\"children\"][number]) => {\n if (node.type === \"element\") tags.add(node.tagName);\n if (\"children\" in node) node.children.forEach(collect);\n };\n collect(prepared.tree!);\n const result: Record<\n string,\n React.ComponentType<{\n node: Element;\n children?: React.ReactNode;\n }>\n > = {};\n for (const tag of tags) {\n if (!wrappers.current.has(tag)) {\n const Component = ({\n node,\n children,\n ...props\n }: {\n node: Element;\n children?: React.ReactNode;\n }) => {\n const state = getVideoMarkdownNodeState(node);\n if (state?.svg) {\n return state.svgSource ? (\n <SvgBlockInShadow svg={state.svgSource} inline />\n ) : null;\n }\n if (state?.atomic) {\n return state.active ? <>{children}</> : null;\n }\n if (state?.active === false && tag !== \"a\") return null;\n const current = originalComponents.current as Record<\n string,\n React.ElementType\n >;\n const Original = current[tag];\n const visibleProps =\n state?.active === false\n ? { ...props, href: undefined, tabIndex: -1 }\n : props;\n return Original\n ? React.createElement(\n Original,\n {\n ...visibleProps,\n node,\n ...(Original === MarkdownCode ? { receivedTree: true } : {}),\n },\n children\n )\n : React.createElement(tag, visibleProps, children);\n };\n Component.displayName = `StableMarkdown(${tag})`;\n wrappers.current.set(tag, Component);\n }\n result[tag] = wrappers.current.get(tag)!;\n }\n return result as CustomComponents;\n }, [prepared]);\n const preparedPlugins = useMemo<PluggableList>(\n () => [() => () => projected],\n [projected]\n );\n return (\n <div className=\"markdown-renderer\">\n <ReactMarkdown\n remarkPlugins={[usePreparedTree]}\n rehypePlugins={preparedPlugins}\n components={stableComponents}\n >\n {\"\"}\n </ReactMarkdown>\n </div>\n );\n};\n\nconst isImmediateSegment = (segment: RenderSegment) =>\n segment.type === \"markdown\" && segment.immediate === true;\n\nconst mergeNonSandboxSegments = (segments: RenderSegment[]) => {\n if (segments.length <= 1) return segments;\n const merged: RenderSegment[] = [];\n\n segments.forEach((segment) => {\n if (segment.type === \"sandbox\" || isImmediateSegment(segment)) {\n merged.push(segment);\n return;\n }\n\n const last = merged[merged.length - 1];\n if (last && last.type !== \"sandbox\" && !isImmediateSegment(last)) {\n merged[merged.length - 1] = {\n type: \"markdown\",\n value: `${last.value}${segment.value}`,\n };\n return;\n }\n\n merged.push({ type: \"markdown\", value: segment.value });\n });\n\n return merged;\n};\n\nconst closeTypedInlineCode = (\n visible: string,\n source: string,\n ranges: ReturnType<typeof getInlineCodeRanges>\n) => {\n if (visible.length >= source.length) return visible;\n const range = ranges.find(\n ({ start, end }) => start < visible.length && visible.length < end\n );\n if (!range) return visible;\n const delimiter = /^`+/.exec(source.slice(range.start))?.[0];\n if (!delimiter || visible.length < range.start + delimiter.length) {\n return visible;\n }\n const closingStart = range.end - delimiter.length;\n if (visible.length > closingStart) {\n return visible + delimiter.slice(visible.length - closingStart);\n }\n // Close only the render copy so a typed prefix cannot activate code as HTML.\n return visible + (visible.endsWith(\"`\") ? \" \" : \"\") + delimiter;\n};\n\nconst protectTypedMarkdownPrefix = (\n visible: string,\n source: string,\n inlineCodeRanges: ReturnType<typeof getInlineCodeRanges>,\n metadataRanges: readonly MarkdownMetadataRange[],\n sourceOffset = 0\n) => {\n // Both protections use raw coordinates. Append any synthetic code delimiter\n // after escaping so encoded '<' characters cannot shift the typing budget.\n const closed = closeTypedInlineCode(visible, source, inlineCodeRanges);\n return (\n escapeTypedMarkdownMetadata(visible, metadataRanges, sourceOffset) +\n closed.slice(visible.length)\n );\n};\n\nconst splitTextByCharacterChunk = (value: string, chunkSize: number) => {\n const safeChunkSize = Math.max(1, chunkSize);\n const characters = Array.from(value);\n\n return {\n chunk: characters.slice(0, safeChunkSize).join(\"\"),\n rest: characters.slice(safeChunkSize).join(\"\"),\n };\n};\n\nconst areStringArraysEqual = (left?: string[], right?: string[]) => {\n if (left === right) {\n return true;\n }\n if (!left || !right || left.length !== right.length) {\n return false;\n }\n return left.every((value, index) => value === right[index]);\n};\n\nconst useStableStringArray = (values?: string[]) => {\n const valuesRef = useRef<string[] | undefined>(values);\n\n if (!areStringArraysEqual(valuesRef.current, values)) {\n valuesRef.current = values;\n }\n\n return valuesRef.current;\n};\n\nconst ContentRender: React.FC<ContentRenderProps> = ({\n onPlaceholderAccepted,\n content,\n contentType,\n locale,\n lang,\n dir,\n customRenderBar,\n onSend,\n typingSpeed = 30,\n enableTypewriter = false,\n typewriterPacing = \"fixed\",\n onTypeFinished,\n onTypewriterStateChange,\n userInput,\n interactionDefaultValueOptions,\n defaultButtonText,\n defaultInputText,\n defaultSelectedValues,\n readonly = false,\n confirmButtonText,\n copyButtonText,\n copiedButtonText,\n sandboxLoadingText,\n sandboxStyleLoadingText,\n sandboxScriptLoadingText,\n disableSandboxLoadingOverlay = false,\n sandboxFullscreenButtonText,\n sandboxExitFullscreenButtonText,\n sandboxMode = \"content\",\n onClickCustomButtonAfterContent,\n beforeSend,\n}) => {\n const localeTexts = getContentRenderLocaleTexts(locale);\n const mermaidMessages = useMemo(\n () => ({\n loading: localeTexts.mermaidLoadingText,\n emptyChart: localeTexts.mermaidEmptyChartText,\n error: localeTexts.mermaidErrorText,\n }),\n [localeTexts]\n );\n const direction = dir ?? getMarkdownFlowDirection(locale);\n const language = lang ?? getMarkdownFlowLanguage(locale);\n const resolvedConfirmButtonText =\n confirmButtonText || localeTexts.confirmButtonText;\n const resolvedCopyButtonText = copyButtonText || localeTexts.copyButtonText;\n const resolvedCopiedButtonText =\n copiedButtonText || localeTexts.copiedButtonText;\n const resolvedSandboxFullscreenButtonText =\n sandboxFullscreenButtonText || localeTexts.sandboxFullscreenButtonText;\n const resolvedSandboxExitFullscreenButtonText =\n sandboxExitFullscreenButtonText ||\n localeTexts.sandboxExitFullscreenButtonText;\n const shouldApplyTypewriterByContentType =\n !contentType || contentType === \"text\";\n const isTypewriterEnabled =\n Boolean(enableTypewriter) && shouldApplyTypewriterByContentType;\n const sourceContent = useMemo(\n () => normalizeWrappedSandboxContent(content),\n [content]\n );\n const sourceAnalysis = useMemo(\n () => getMarkdownSourceAnalysis(sourceContent),\n [sourceContent]\n );\n // Parse the received source, never a typewriter-truncated HTML string.\n const sourceSegments = useMemo(() => {\n const segments = mergeNonSandboxSegments(\n splitContentSegments(sourceContent, true, true, sourceAnalysis)\n );\n if (\n sourceContent !== content &&\n segments.length &&\n (segments[0].type === \"sandbox\" || isImmediateSegment(segments[0]))\n ) {\n // The removed opening quote occupied a prose slot before the wrapper\n // completed. Retain its empty slot so the existing iframe keeps its key.\n return [{ type: \"text\" as const, value: \"\" }, ...segments];\n }\n return segments;\n }, [content, sourceContent, sourceAnalysis]);\n const hasRichSegments = sourceSegments.some(\n (segment) => segment.type === \"sandbox\" || isImmediateSegment(segment)\n );\n const typewriterContent = hasRichSegments\n ? sourceSegments\n .filter(\n (segment) =>\n segment.type !== \"sandbox\" && !isImmediateSegment(segment)\n )\n .map((segment) => segment.value)\n .join(\"\")\n : sourceContent;\n const typewriterTickMs = Math.max(0, typingSpeed);\n const fixedTypewriterContentVersion =\n typewriterPacing === \"fixed\" ? typewriterContent : undefined;\n const [displayContent, setDisplayContent] = useState(() =>\n isTypewriterEnabled ? \"\" : typewriterContent\n );\n const displayContentRef = useRef(displayContent);\n const pendingContentRef = useRef(\"\");\n const contentAwareQueueRef = useRef<ContentAwareTypewriterQueue>({\n tokens: [],\n head: 0,\n trailingGrapheme: \"\",\n });\n const contentAwareBudgetRef = useRef(0);\n const previousTypewriterEnabledRef = useRef(isTypewriterEnabled);\n const previousTypewriterPacingRef = useRef(typewriterPacing);\n const previousSourceContentRef = useRef(typewriterContent);\n const previousReceivedContentRef = useRef(content);\n const hasReportedTypeFinishedRef = useRef(false);\n const [typewriterWakeVersion, setTypewriterWakeVersion] = useState(0);\n\n useEffect(() => {\n const wasTypewriterEnabled = previousTypewriterEnabledRef.current;\n const previousTypewriterPacing = previousTypewriterPacingRef.current;\n const previousSourceContent = previousSourceContentRef.current;\n const wasPending = Boolean(pendingContentRef.current);\n const receivedContentChanged =\n previousReceivedContentRef.current !== content;\n const receivedContentAppended =\n receivedContentChanged &&\n content.startsWith(previousReceivedContentRef.current);\n previousReceivedContentRef.current = content;\n\n previousTypewriterEnabledRef.current = isTypewriterEnabled;\n previousTypewriterPacingRef.current = typewriterPacing;\n previousSourceContentRef.current = typewriterContent;\n\n if (\n receivedContentChanged ||\n isTypewriterEnabled !== wasTypewriterEnabled\n ) {\n hasReportedTypeFinishedRef.current = false;\n }\n\n const clearPendingContent = () => {\n pendingContentRef.current = \"\";\n contentAwareQueueRef.current = {\n tokens: [],\n head: 0,\n trailingGrapheme: \"\",\n };\n contentAwareBudgetRef.current = 0;\n };\n\n const updateDisplayContent = (nextContent: string) => {\n displayContentRef.current = nextContent;\n setDisplayContent(nextContent);\n };\n\n if (!isTypewriterEnabled) {\n clearPendingContent();\n updateDisplayContent(typewriterContent);\n return;\n }\n\n if (!wasTypewriterEnabled) {\n clearPendingContent();\n updateDisplayContent(\"\");\n }\n\n let visibleContent = !wasTypewriterEnabled ? \"\" : displayContentRef.current;\n\n if (!typewriterContent.startsWith(visibleContent)) {\n clearPendingContent();\n if (!receivedContentAppended) {\n updateDisplayContent(typewriterContent);\n if (typewriterPacing === \"content-aware\") {\n contentAwareQueueRef.current = {\n tokens: [],\n head: 0,\n trailingGrapheme: getTrailingTypewriterGrapheme(typewriterContent),\n };\n }\n return;\n }\n // A newly recognized HTML tag can replace a previously literal prefix.\n // Keep the shared prose visible and pace only the newly received prose.\n let sharedLength = 0;\n while (\n sharedLength < visibleContent.length &&\n sharedLength < typewriterContent.length &&\n visibleContent[sharedLength] === typewriterContent[sharedLength]\n ) {\n sharedLength += 1;\n }\n visibleContent = visibleContent.slice(0, sharedLength);\n updateDisplayContent(visibleContent);\n }\n\n let nextPendingContent = typewriterContent.slice(visibleContent.length);\n if (!nextPendingContent) {\n pendingContentRef.current = \"\";\n contentAwareBudgetRef.current = 0;\n contentAwareQueueRef.current =\n typewriterPacing === \"content-aware\"\n ? {\n tokens: [],\n head: 0,\n trailingGrapheme: getTrailingTypewriterGrapheme(visibleContent),\n }\n : { tokens: [], head: 0, trailingGrapheme: \"\" };\n return;\n }\n\n if (typewriterPacing === \"content-aware\") {\n const previousPendingContent = previousSourceContent.slice(\n visibleContent.length\n );\n const canAppendToCachedQueue =\n wasTypewriterEnabled &&\n previousTypewriterPacing === \"content-aware\" &&\n typewriterContent.startsWith(previousSourceContent) &&\n pendingContentRef.current === previousPendingContent;\n\n if (canAppendToCachedQueue) {\n const appended = appendContentAwareTypewriterQueue(\n contentAwareQueueRef.current,\n typewriterContent.slice(previousSourceContent.length)\n );\n contentAwareQueueRef.current = appended.queue;\n\n if (appended.immediateChunk) {\n nextPendingContent = nextPendingContent.slice(\n appended.immediateChunk.length\n );\n updateDisplayContent(`${visibleContent}${appended.immediateChunk}`);\n }\n } else {\n const appended = appendContentAwareTypewriterQueue(\n {\n tokens: [],\n head: 0,\n trailingGrapheme: getTrailingTypewriterGrapheme(visibleContent),\n },\n nextPendingContent\n );\n contentAwareQueueRef.current = appended.queue;\n\n if (appended.immediateChunk) {\n nextPendingContent = nextPendingContent.slice(\n appended.immediateChunk.length\n );\n updateDisplayContent(`${visibleContent}${appended.immediateChunk}`);\n }\n\n contentAwareBudgetRef.current = 0;\n }\n } else {\n contentAwareQueueRef.current = {\n tokens: [],\n head: 0,\n trailingGrapheme: \"\",\n };\n contentAwareBudgetRef.current = 0;\n }\n\n pendingContentRef.current = nextPendingContent;\n\n if (!wasPending && nextPendingContent) {\n setTypewriterWakeVersion((version) => version + 1);\n }\n }, [content, typewriterContent, isTypewriterEnabled, typewriterPacing]);\n\n useEffect(() => {\n if (!isTypewriterEnabled) {\n return;\n }\n\n if (\n hasReportedTypeFinishedRef.current ||\n pendingContentRef.current ||\n displayContent !== typewriterContent\n ) {\n return;\n }\n\n hasReportedTypeFinishedRef.current = true;\n onTypeFinished?.();\n }, [\n content,\n typewriterContent,\n displayContent,\n isTypewriterEnabled,\n onTypeFinished,\n ]);\n\n useEffect(() => {\n if (!isTypewriterEnabled || !pendingContentRef.current) {\n return undefined;\n }\n\n const typewriterTimer = window.setTimeout(() => {\n if (!pendingContentRef.current) {\n return;\n }\n\n let chunk = \"\";\n\n if (typewriterPacing === \"content-aware\") {\n const result = consumeContentAwareTypewriterQueue(\n contentAwareQueueRef.current,\n contentAwareBudgetRef.current + CONTENT_AWARE_TYPEWRITER_TICK_BUDGET\n );\n\n chunk = result.chunk;\n contentAwareQueueRef.current = result.queue;\n\n if (isContentAwareTypewriterQueueEmpty(result.queue)) {\n contentAwareBudgetRef.current = 0;\n } else {\n contentAwareBudgetRef.current = result.remainingBudget;\n }\n } else {\n const fixedChunk = splitTextByCharacterChunk(\n pendingContentRef.current,\n FIXED_TYPEWRITER_CHUNK_SIZE\n );\n chunk = fixedChunk.chunk;\n }\n\n if (!chunk) {\n return;\n }\n\n pendingContentRef.current = pendingContentRef.current.slice(chunk.length);\n if (!pendingContentRef.current) {\n contentAwareQueueRef.current =\n typewriterPacing === \"content-aware\"\n ? {\n tokens: [],\n head: 0,\n trailingGrapheme: contentAwareQueueRef.current.trailingGrapheme,\n }\n : { tokens: [], head: 0, trailingGrapheme: \"\" };\n contentAwareBudgetRef.current = 0;\n }\n\n const nextDisplayContent = `${displayContentRef.current}${chunk}`;\n displayContentRef.current = nextDisplayContent;\n setDisplayContent(nextDisplayContent);\n }, typewriterTickMs);\n\n return () => window.clearTimeout(typewriterTimer);\n }, [\n displayContent,\n fixedTypewriterContentVersion,\n isTypewriterEnabled,\n typewriterPacing,\n typewriterTickMs,\n typewriterWakeVersion,\n ]);\n\n const mergedRenderSegments = useMemo(() => {\n let textOffset = 0;\n return sourceSegments.map((segment) => {\n if (!isTypewriterEnabled) return segment;\n if (segment.type === \"sandbox\" || isImmediateSegment(segment)) {\n // HTML skips the prose budget only after earlier prose has caught up.\n // Retain its source slot so later updates keep the same render key.\n return displayContent.length >= textOffset\n ? segment\n : { ...segment, value: \"\" };\n }\n const value = displayContent.slice(\n textOffset,\n textOffset + segment.value.length\n );\n textOffset += segment.value.length;\n // Keep empty prose slots so an existing sandbox never changes its key.\n return { ...segment, value };\n });\n }, [sourceSegments, displayContent, isTypewriterEnabled]);\n const typewriterState = useMemo<ContentRenderTypewriterState>(\n () => ({\n isTypewriterEnabled,\n isTyping: isTypewriterEnabled && displayContent !== typewriterContent,\n isComplete: displayContent === typewriterContent,\n renderedLength:\n content.length -\n sourceSegments.reduce(\n (remaining, segment, index) =>\n remaining +\n segment.value.length -\n mergedRenderSegments[index].value.length,\n 0\n ),\n totalLength: content.length,\n }),\n [\n content,\n typewriterContent,\n displayContent,\n isTypewriterEnabled,\n sourceSegments,\n mergedRenderSegments,\n ]\n );\n\n useEffect(() => {\n onTypewriterStateChange?.(typewriterState);\n }, [onTypewriterStateChange, typewriterState]);\n const sourceSegmentOffsets = useMemo(() => {\n let offset = 0;\n return sourceSegments.map((segment) => {\n const start = offset;\n offset += segment.value.length;\n return start;\n });\n }, [sourceSegments]);\n const sourceInlineCodeRanges = useMemo(\n () =>\n isTypewriterEnabled\n ? sourceSegments.map((segment) =>\n segment.type === \"sandbox\" || isImmediateSegment(segment)\n ? []\n : segment.value === sourceContent\n ? sourceAnalysis.inline\n : getInlineCodeRanges(segment.value)\n )\n : [],\n [isTypewriterEnabled, sourceSegments, sourceContent, sourceAnalysis]\n );\n const safeRichMarkdownContent = useMemo(\n () =>\n hasRichSegments\n ? mergedRenderSegments.map((segment, index) =>\n segment.type === \"sandbox\" || isImmediateSegment(segment)\n ? segment.value\n : isTypewriterEnabled\n ? protectTypedMarkdownPrefix(\n segment.value,\n sourceSegments[index].value,\n sourceInlineCodeRanges[index] ?? [],\n sourceAnalysis.metadata,\n sourceSegmentOffsets[index]\n )\n : escapeTypedMarkdownMetadata(\n segment.value,\n sourceAnalysis.metadata,\n sourceSegmentOffsets[index]\n )\n )\n : [],\n [\n hasRichSegments,\n isTypewriterEnabled,\n mergedRenderSegments,\n sourceInlineCodeRanges,\n sourceSegments,\n sourceAnalysis.metadata,\n sourceSegmentOffsets,\n ]\n );\n const richRenderRuns = useMemo(() => {\n const runs: Array<{\n indices: number[];\n sandbox: boolean;\n plan?: ReturnType<typeof createVideoMarkdownRunPlan>;\n }> = [];\n sourceSegments.forEach((segment, index) => {\n const previous = runs.at(-1);\n if (segment.type !== \"sandbox\" && previous && !previous.sandbox) {\n previous.indices.push(index);\n } else {\n runs.push({ indices: [index], sandbox: segment.type === \"sandbox\" });\n }\n });\n for (const run of runs) {\n if (\n !run.sandbox &&\n run.indices.some((index) => isImmediateSegment(sourceSegments[index]))\n ) {\n const segments = run.indices.map((index) => sourceSegments[index]);\n const fullSource = segments.map((segment) => segment.value).join(\"\");\n run.plan = createVideoMarkdownRunPlan(\n segments,\n fullSource === sourceContent ? sourceAnalysis : undefined\n );\n }\n }\n return runs;\n }, [sourceSegments, sourceContent, sourceAnalysis]);\n const renderContent = hasRichSegments\n ? mergedRenderSegments.map((segment) => segment.value).join(\"\")\n : isTypewriterEnabled\n ? displayContent\n : sourceContent;\n const normalizedContent = useMemo(\n () => (customRenderBar ? normalizeInlineHtml(renderContent) : \"\"),\n [customRenderBar, renderContent]\n );\n\n const safeMarkdownContent = useMemo(\n () =>\n hasRichSegments\n ? \"\"\n : normalizeInlineHtml(\n isTypewriterEnabled\n ? protectTypedMarkdownPrefix(\n renderContent,\n sourceContent,\n sourceInlineCodeRanges[0] ?? [],\n sourceAnalysis.metadata\n )\n : escapeTypedMarkdownMetadata(\n renderContent,\n sourceAnalysis.metadata\n )\n ),\n [\n sourceContent,\n hasRichSegments,\n isTypewriterEnabled,\n renderContent,\n sourceInlineCodeRanges,\n sourceAnalysis.metadata,\n ]\n );\n\n const interactionDefaults = useMemo(\n () =>\n getInteractionDefaultValues(\n renderContent,\n userInput,\n interactionDefaultValueOptions\n ),\n [interactionDefaultValueOptions, renderContent, userInput]\n );\n\n const resolvedDefaultButtonText =\n (defaultButtonText ? trimVariablePadding(defaultButtonText) : undefined) ||\n interactionDefaults.buttonText;\n const resolvedDefaultInputText =\n defaultInputText?.trim() || interactionDefaults.inputText;\n const fallbackSelectedValues = useMemo(\n () =>\n userInput\n ? userInput\n .split(\",\")\n .map((value) => trimVariablePadding(value))\n .filter(Boolean)\n : undefined,\n [userInput]\n );\n const resolvedDefaultSelectedValues = defaultSelectedValues?.length\n ? defaultSelectedValues\n : interactionDefaults.selectedValues || fallbackSelectedValues;\n const stableDefaultSelectedValues = useStableStringArray(\n resolvedDefaultSelectedValues\n );\n const componentRuntimeValuesRef = useRef<MarkdownComponentRuntimeValues>({\n onPlaceholderAccepted,\n direction,\n language,\n mermaidMessages,\n beforeSend,\n locale,\n onClickCustomButtonAfterContent,\n onSend,\n readonly,\n renderContent,\n resolvedConfirmButtonText,\n resolvedCopiedButtonText,\n resolvedCopyButtonText,\n resolvedDefaultButtonText,\n resolvedDefaultInputText,\n resolvedDefaultSelectedValues: stableDefaultSelectedValues,\n });\n\n componentRuntimeValuesRef.current = {\n onPlaceholderAccepted,\n direction,\n language,\n mermaidMessages,\n beforeSend,\n locale,\n onClickCustomButtonAfterContent,\n onSend,\n readonly,\n renderContent,\n resolvedConfirmButtonText,\n resolvedCopiedButtonText,\n resolvedCopyButtonText,\n resolvedDefaultButtonText,\n resolvedDefaultInputText,\n resolvedDefaultSelectedValues: stableDefaultSelectedValues,\n };\n\n const components = useMemo<CustomComponents>(\n () => ({\n \"custom-button-after-content\": ({\n children,\n }: {\n children: React.ReactNode;\n }) => {\n return (\n <button\n className=\"content-render-custom-button-after-content\"\n onClick={\n componentRuntimeValuesRef.current.onClickCustomButtonAfterContent\n }\n >\n <span className=\"content-render-custom-button-after-content-inner\">\n {children}\n </span>\n </button>\n );\n },\n \"custom-variable\": (props) => (\n <CustomButtonInputVariable\n {...props}\n readonly={componentRuntimeValuesRef.current.readonly}\n defaultButtonText={\n componentRuntimeValuesRef.current.resolvedDefaultButtonText\n }\n defaultInputText={\n componentRuntimeValuesRef.current.resolvedDefaultInputText\n }\n defaultSelectedValues={\n componentRuntimeValuesRef.current.resolvedDefaultSelectedValues\n }\n onSend={componentRuntimeValuesRef.current.onSend}\n onPlaceholderAccepted={\n componentRuntimeValuesRef.current.onPlaceholderAccepted\n }\n beforeSend={componentRuntimeValuesRef.current.beforeSend}\n locale={componentRuntimeValuesRef.current.locale}\n dir={componentRuntimeValuesRef.current.direction}\n lang={componentRuntimeValuesRef.current.language}\n confirmButtonText={\n componentRuntimeValuesRef.current.resolvedConfirmButtonText\n }\n />\n ),\n code: MarkdownCode,\n table: ({ ...props }) => (\n <div className=\"content-render-table-container\">\n <table className=\"content-render-table\" {...props} />\n </div>\n ),\n th: ({ ...props }) => <th className=\"content-render-th\" {...props} />,\n td: ({ ...props }) => <td className=\"content-render-td\" {...props} />,\n tr: ({ ...props }) => <tr className=\"content-render-tr\" {...props} />,\n li: ({ node, ...props }) => {\n const className: unknown = node?.properties?.className;\n const hasTaskListItem =\n (typeof className === \"string\" &&\n className.includes(\"task-list-item\")) ||\n (Array.isArray(className) && className.includes(\"task-list-item\"));\n if (hasTaskListItem) {\n return <li className=\"content-render-task-list-item\" {...props} />;\n }\n return <li {...props} />;\n },\n ol: ({ ...props }) => <ol className=\"content-render-ol\" {...props} />,\n ul: ({ ...props }) => <ul className=\"content-render-ul\" {...props} />,\n input: ({ ...props }) => {\n if (props.type === \"checkbox\") {\n return (\n <input\n type=\"checkbox\"\n className=\"content-render-checkbox\"\n disabled\n {...props}\n />\n );\n }\n return <input {...props} />;\n },\n a: ({ children, ...props }) => (\n <a target=\"_blank\" rel=\"noopener noreferrer\" {...props}>\n {children}\n </a>\n ),\n pre: (props) => (\n <CodeBlock\n {...props}\n copyButtonText={\n componentRuntimeValuesRef.current.resolvedCopyButtonText\n }\n copiedButtonText={\n componentRuntimeValuesRef.current.resolvedCopiedButtonText\n }\n />\n ),\n }),\n []\n );\n\n const segments = useMemo(\n () => parseMarkdownSegments(safeMarkdownContent),\n [safeMarkdownContent]\n );\n\n const renderMarkdownSegments = (raw: string, keyPrefix: string) => {\n const normalized = normalizeInlineHtml(raw);\n const parsed = parseMarkdownSegments(normalized);\n\n return parsed.map((seg, index) => {\n const key = `${keyPrefix}-${seg.type}-${index}`;\n\n if (seg.type === \"text\") {\n return (\n <MarkdownComponentRuntimeContext.Provider\n key={key}\n value={componentRuntimeValuesRef}\n >\n <MarkdownRenderer\n locale={locale}\n components={components}\n content={seg.value}\n />\n </MarkdownComponentRuntimeContext.Provider>\n );\n }\n\n if (seg.type === \"mermaid\") {\n return (\n <MermaidChart\n key={key}\n chart={seg.value}\n frozen={!seg.complete}\n messages={mermaidMessages}\n />\n );\n }\n\n if (seg.type === \"svg\") {\n return <SvgBlockInShadow key={key} svg={seg.value} />;\n }\n\n return null;\n });\n };\n\n const customBar = customRenderBar ? (\n <div className=\"content-render-custom-bar\">\n {React.createElement(customRenderBar, {\n content,\n displayContent: normalizedContent,\n onSend,\n })}\n </div>\n ) : null;\n\n if (hasRichSegments) {\n return (\n <div\n className=\"content-render markdown-body\"\n dir={direction}\n lang={language}\n >\n {richRenderRuns.map((run) => {\n const idx = run.indices[0];\n const segment = mergedRenderSegments[idx];\n if (run.sandbox)\n return segment.type === \"sandbox\" &&\n segment.value &&\n !segment.pending ? (\n <IframeSandbox\n key={`sandbox-${idx}`}\n hideFullScreen\n type=\"sandbox\"\n content={segment.value}\n className=\"content-render-iframe\"\n locale={locale}\n dir={direction}\n lang={language}\n loadingText={sandboxLoadingText}\n styleLoadingText={sandboxStyleLoadingText}\n scriptLoadingText={sandboxScriptLoadingText}\n disableLoadingOverlay={disableSandboxLoadingOverlay}\n fullScreenButtonText={resolvedSandboxFullscreenButtonText}\n exitFullScreenButtonText={\n resolvedSandboxExitFullscreenButtonText\n }\n mode={sandboxMode}\n />\n ) : null;\n if (run.plan)\n return (\n <MarkdownComponentRuntimeContext.Provider\n key={`md-${idx}`}\n value={componentRuntimeValuesRef}\n >\n <StableVideoMarkdownRenderer\n locale={locale}\n components={components}\n plan={run.plan}\n renderedSegments={run.indices.map(\n (index) => mergedRenderSegments[index]\n )}\n />\n </MarkdownComponentRuntimeContext.Provider>\n );\n return run.indices.map((index) => (\n <React.Fragment key={`md-${index}`}>\n {mergedRenderSegments[index].type === \"markdown\" &&\n mergedRenderSegments[index].pending\n ? null\n : renderMarkdownSegments(\n safeRichMarkdownContent[index],\n `md-${index}`\n )}\n </React.Fragment>\n ));\n })}\n {customBar}\n </div>\n );\n }\n\n return (\n <div\n className=\"content-render markdown-body\"\n dir={direction}\n lang={language}\n >\n {segments.map((seg, index) => {\n if (seg.type === \"text\") {\n return (\n <MarkdownComponentRuntimeContext.Provider\n key={index}\n value={componentRuntimeValuesRef}\n >\n <MarkdownRenderer\n locale={locale}\n components={components}\n content={seg.value}\n />\n </MarkdownComponentRuntimeContext.Provider>\n );\n }\n\n if (seg.type === \"mermaid\") {\n return (\n <MermaidChart\n key={index}\n chart={seg.value}\n frozen={!seg.complete}\n messages={mermaidMessages}\n />\n );\n }\n\n if (seg.type === \"svg\") {\n return <SvgBlockInShadow key={index} svg={seg.value} />;\n }\n })}\n\n {customBar}\n </div>\n );\n};\n\nexport default ContentRender;\n"],"names":["FIXED_TYPEWRITER_CHUNK_SIZE","SvgBlockInShadow","svg","inline","hostRef","useRef","Wrapper","useEffect","host","shadowRoot","styleId","styleEl","node","template","cleanedSvg","stripSvgTextLineBreaks","hasResponsiveSvg","hasFixedSvg","svgEl","viewBox","dimensions","value","viewBoxWidth","viewBoxHeight","widthAttr","heightAttr","isRelativeLength","normalized","toNumericLength","parsed","isWidthRelative","isHeightRelative","widthMissing","heightMissing","numericWidth","numericHeight","hostResponsive","jsx","MarkdownComponentRuntimeContext","React","MarkdownCode","props","receivedTree","codeProps","runtimeValuesRef","isInCodeBlock","CodeBlockContext","className","children","rest","chartContent","complete","mermaidBlockIsComplete","MermaidChart","sourceRehypePlugins","preserveCustomVariableProperties","rehypeRaw","sanitizeInvalidTagName","restoreCustomVariableProperties","formattingRehypePlugins","rehypeHighlight","highlightLanguages","subsetLanguages","rehypeKatex","rehypePlugins","MarkdownRenderer","markdownContent","components","locale","texts","getContentRenderLocaleTexts","ReactMarkdown","remarkPlugins","referenceIndex","rereferenceIndex","reference","usePreparedTree","StableVideoMarkdownRenderer","plan","renderedSegments","prepared","useMemo","sourceProcessor","unified","remarkRehype","formattingProcessor","tree","cloneVideoMarkdownSourceTree","prepareVideoMarkdownRun","projected","projectVideoMarkdownRun","originalComponents","wrappers","stableComponents","tags","collect","result","tag","Component","state","getVideoMarkdownNodeState","Fragment","Original","visibleProps","preparedPlugins","isImmediateSegment","segment","mergeNonSandboxSegments","segments","merged","last","closeTypedInlineCode","visible","source","ranges","range","start","end","delimiter","closingStart","protectTypedMarkdownPrefix","inlineCodeRanges","metadataRanges","sourceOffset","closed","escapeTypedMarkdownMetadata","splitTextByCharacterChunk","chunkSize","safeChunkSize","characters","areStringArraysEqual","left","right","index","useStableStringArray","values","valuesRef","ContentRender","onPlaceholderAccepted","content","contentType","lang","dir","customRenderBar","onSend","typingSpeed","enableTypewriter","typewriterPacing","onTypeFinished","onTypewriterStateChange","userInput","interactionDefaultValueOptions","defaultButtonText","defaultInputText","defaultSelectedValues","readonly","confirmButtonText","copyButtonText","copiedButtonText","sandboxLoadingText","sandboxStyleLoadingText","sandboxScriptLoadingText","disableSandboxLoadingOverlay","sandboxFullscreenButtonText","sandboxExitFullscreenButtonText","sandboxMode","onClickCustomButtonAfterContent","beforeSend","localeTexts","mermaidMessages","direction","getMarkdownFlowDirection","language","getMarkdownFlowLanguage","resolvedConfirmButtonText","resolvedCopyButtonText","resolvedCopiedButtonText","resolvedSandboxFullscreenButtonText","resolvedSandboxExitFullscreenButtonText","isTypewriterEnabled","sourceContent","normalizeWrappedSandboxContent","sourceAnalysis","getMarkdownSourceAnalysis","sourceSegments","splitContentSegments","hasRichSegments","typewriterContent","typewriterTickMs","fixedTypewriterContentVersion","displayContent","setDisplayContent","useState","displayContentRef","pendingContentRef","contentAwareQueueRef","contentAwareBudgetRef","previousTypewriterEnabledRef","previousTypewriterPacingRef","previousSourceContentRef","previousReceivedContentRef","hasReportedTypeFinishedRef","typewriterWakeVersion","setTypewriterWakeVersion","wasTypewriterEnabled","previousTypewriterPacing","previousSourceContent","wasPending","receivedContentChanged","receivedContentAppended","clearPendingContent","updateDisplayContent","nextContent","visibleContent","getTrailingTypewriterGrapheme","sharedLength","nextPendingContent","previousPendingContent","appended","appendContentAwareTypewriterQueue","version","typewriterTimer","chunk","consumeContentAwareTypewriterQueue","CONTENT_AWARE_TYPEWRITER_TICK_BUDGET","isContentAwareTypewriterQueueEmpty","nextDisplayContent","mergedRenderSegments","textOffset","typewriterState","remaining","sourceSegmentOffsets","offset","sourceInlineCodeRanges","getInlineCodeRanges","safeRichMarkdownContent","richRenderRuns","runs","previous","run","fullSource","createVideoMarkdownRunPlan","renderContent","normalizedContent","normalizeInlineHtml","safeMarkdownContent","interactionDefaults","getInteractionDefaultValues","resolvedDefaultButtonText","trimVariablePadding","resolvedDefaultInputText","fallbackSelectedValues","resolvedDefaultSelectedValues","stableDefaultSelectedValues","componentRuntimeValuesRef","CustomButtonInputVariable","CodeBlock","parseMarkdownSegments","renderMarkdownSegments","raw","keyPrefix","seg","key","customBar","jsxs","idx","IframeSandbox"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4EA,MAAMA,KAA8B,GA8E9BC,KAAgE,CAAC;AAAA,EACrE,KAAAC;AAAA,EACA,QAAAC,IAAS;AACX,MAAM;AACJ,QAAMC,IAAUC,EAA2B,IAAI,GACzCC,IAAUH,IAAS,SAAS;AAElC,SAAAI,GAAU,MAAM;AACd,UAAMC,IAAOJ,EAAQ;AACrB,QAAI,CAACI,EAAM;AACX,UAAMC,IAAaD,EAAK,cAAcA,EAAK,aAAa,EAAE,MAAM,QAAQ,GAClEE,IAAU;AAChB,QAAIC,IAAUF,EAAW,eAAeC,CAAO;AAE/C,IAAKC,MACHA,IAAU,SAAS,cAAc,OAAO,GACxCA,EAAQ,KAAKD,GAEbC,EAAQ,cAAc;AAAA;AAAA;AAAA;AAAA,SAKtBF,EAAW,YAAYE,CAAO,IAGV,MAAM,KAAKF,EAAW,UAAU,EAAE;AAAA,MACtD,CAACG,MAASA,MAASD;AAAA,IAAA,EAEP,QAAQ,CAACC,MAASH,EAAW,YAAYG,CAAI,CAAC;AAE5D,UAAMC,IAAW,SAAS,cAAc,UAAU,GAC5CC,IAAaC,GAAuBb,CAAG;AAC7C,IAAAW,EAAS,YAAYC,GACrBL,EAAW,OAAOI,EAAS,QAAQ,UAAU,EAAI,CAAC;AAElD,QAAIG,IAAmB,IACnBC,IAAc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AAAA,oBACC,QAAAG;AAAA,oBACA,YAAAD;AAAA,oBACA,SAASkM,EAAI;AAAA,kBAAA;AAAA,gBAAA;AAAA,cACf;AAAA,cAPKhI;AAAA,YAAA;AAYX,cAAIgI,EAAI,SAAS;AACf,mBACE,gBAAAhO;AAAA,cAACgB;AAAA,cAAA;AAAA,gBAEC,OAAOgN,EAAI;AAAA,gBACX,QAAQ,CAACA,EAAI;AAAA,gBACb,UAAU5F;AAAA,cAAA;AAAA,cAHLpC;AAAA,YAAA;AAQX,cAAIgI,EAAI,SAAS;AACf,mBAAO,gBAAAhO,EAACpC,IAAA,EAA6B,KAAKoQ,EAAI,SAAhBhI,CAAuB;AAAA,QAEzD,CAAC;AAAA,QAEAkI;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGP;"}
@@ -4,7 +4,7 @@ import { createRoot as kt } from "react-dom/client";
4
4
  import At from "./SandboxApp.es.js";
5
5
  import { normalizeContentViewportMinHeight as Ft } from "./utils/content-viewport-min-height.es.js";
6
6
  import _t from "./ContentRender.es.js";
7
- import { inspectViewportHeightFromHtmlRootString as tt, EMPTY_ROOT_HEIGHT_META as Dt, parseExplicitHeight as nt, inspectViewportHeightFromNodeChain as It, resolveExplicitHeightFromNodeChain as Ot } from "./utils/iframe-viewport-height.es.js";
7
+ import { EMPTY_ROOT_HEIGHT_META as Dt, inspectViewportHeightFromHtmlRootString as tt, parseExplicitHeight as nt, inspectViewportHeightFromNodeChain as It, resolveExplicitHeightFromNodeChain as Ot } from "./utils/iframe-viewport-height.es.js";
8
8
  import { SANDBOX_INTERACTION_MESSAGE_TYPE as Nt, SANDBOX_INTERACTION_MESSAGE_SOURCE as Vt } from "../../lib/sandboxInteraction.es.js";
9
9
  import { injectScalingSystem as Bt } from "./utils/iframe-scaling.es.js";
10
10
  import { getMarkdownFlowDirection as Wt, getMarkdownFlowLanguage as zt } from "../../lib/locale.es.js";
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),v=require("../../assets/icons/send_disable.svg.cjs"),_=require("../../assets/icons/send_enable.svg.cjs"),a=require("../ui/inputGroup/input-group.cjs"),u=require("../../lib/locale.cjs"),j=require("./contentRenderI18n.cjs"),k=e=>typeof e=="string"?e:e.src,q=({disabled:e,locale:o,lang:c,dir:d,placeholder:p,sendButtonLabel:x,value:i,title:g,onChange:b,onSend:s,sendShortcut:m="enter",className:f,textareaClassName:w})=>{const h=j.getContentRenderLocaleTexts(o),l=x||h.sendButtonLabel,n=e||!i?.trim(),y=t=>{m!=="enter"||!s||t.nativeEvent.isComposing||t.keyCode===229||t.key==="Enter"&&!t.shiftKey&&(t.preventDefault(),n||s())};return r.jsxs(a.InputGroup,{dir:d??u.getMarkdownFlowDirection(o),lang:c??u.getMarkdownFlowLanguage(o),"data-disabled":e,className:`input-container h-auto items-end bg-white border-[#e5e5e5] shadow-[0_1px_2px_rgba(0,0,0,0.05)] ${f||""}`,children:[r.jsx(a.InputGroupTextarea,{disabled:e,placeholder:p,value:i,onChange:b,onKeyDown:y,className:`text-[16px] leading-5 font-normal text-[#0A0A0A] placeholder:text-[rgba(99,114,128,1)] bg-transparent border-0 shadow-none ps-3 pe-0 py-1.5 min-h-[32px] ${w||""}`,title:g}),r.jsx(a.InputGroupButton,{type:"button",variant:"ghost",size:"icon-sm",onClick:s,disabled:n,"aria-label":l,style:{margin:"0px 7px 4px 7px",cursor:n?"not-allowed":"pointer"},className:"size-6 group self-end mb-[2px]",children:r.jsx("img",{src:k(n?v.default:_.default),alt:l,className:"size-6"})})]})};exports.default=q;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),v=require("../../assets/icons/send_disable.svg.cjs"),_=require("../../assets/icons/send_enable.svg.cjs"),a=require("../ui/inputGroup/input-group.cjs"),c=require("../../lib/locale.cjs"),j=require("./contentRenderI18n.cjs"),k=require("./utils/accept-placeholder.cjs"),D=e=>typeof e=="string"?e:e.src,I=({disabled:e,locale:o,lang:p,dir:d,placeholder:i,sendButtonLabel:x,value:l,title:g,onChange:b,onSend:s,onAcceptPlaceholder:m,sendShortcut:f="enter",className:h,textareaClassName:w})=>{const y=j.getContentRenderLocaleTexts(o),u=x||y.sendButtonLabel,n=e||!l?.trim(),q=t=>{k.acceptPlaceholder(t,i,e,m)||f!=="enter"||!s||t.nativeEvent.isComposing||t.keyCode===229||t.key==="Enter"&&!t.shiftKey&&(t.preventDefault(),n||s())};return r.jsxs(a.InputGroup,{dir:d??c.getMarkdownFlowDirection(o),lang:p??c.getMarkdownFlowLanguage(o),"data-disabled":e,className:`input-container h-auto items-end bg-white border-[#e5e5e5] shadow-[0_1px_2px_rgba(0,0,0,0.05)] ${h||""}`,children:[r.jsx(a.InputGroupTextarea,{disabled:e,placeholder:i,value:l,onChange:b,onKeyDown:q,className:`text-[16px] leading-5 font-normal text-[#0A0A0A] placeholder:text-[rgba(99,114,128,1)] bg-transparent border-0 shadow-none ps-3 pe-0 py-1.5 min-h-[32px] ${w||""}`,title:g}),r.jsx(a.InputGroupButton,{type:"button",variant:"ghost",size:"icon-sm",onClick:s,disabled:n,"aria-label":u,style:{margin:"0px 7px 4px 7px",cursor:n?"not-allowed":"pointer"},className:"size-6 group self-end mb-[2px]",children:r.jsx("img",{src:D(n?v.default:_.default),alt:u,className:"size-6"})})]})};exports.default=I;
2
2
  //# sourceMappingURL=MarkdownFlowInput.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"MarkdownFlowInput.cjs","sources":["../../../src/components/ContentRender/MarkdownFlowInput.tsx"],"sourcesContent":["import React from \"react\";\n\nimport sendIconDisable from \"@/assets/icons/send_disable.svg\";\nimport sendIconEnable from \"@/assets/icons/send_enable.svg\";\n\nimport {\n InputGroup,\n InputGroupButton,\n InputGroupTextarea,\n} from \"../ui/inputGroup/input-group\";\nimport {\n getMarkdownFlowDirection,\n getMarkdownFlowLanguage,\n type MarkdownFlowLocale,\n} from \"../../lib/locale\";\nimport { getContentRenderLocaleTexts } from \"./contentRenderI18n\";\n\ntype MarkdownFlowInputSendShortcut = \"enter\" | \"none\";\n\ninterface MarkdownFlowInputProps {\n /** Overrides locale-derived input direction. */\n dir?: React.HTMLAttributes<HTMLDivElement>[\"dir\"];\n disabled?: boolean;\n locale?: MarkdownFlowLocale;\n /** Overrides the locale-derived language. */\n lang?: string;\n placeholder?: string;\n sendButtonLabel?: string;\n value?: string;\n title?: string;\n onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;\n onSend?: () => void;\n /**\n * Keyboard policy for sending a multi-line input. `enter` sends on Enter\n * while Shift+Enter keeps its native newline behavior. `none` leaves Enter\n * untouched, which lets mobile consumers reserve the keyboard return key\n * for newlines.\n */\n sendShortcut?: MarkdownFlowInputSendShortcut;\n className?: string;\n textareaClassName?: string;\n}\n\nconst resolveAssetSrc = (asset: string | { src: string }) =>\n typeof asset === \"string\" ? asset : asset.src;\n\nconst MarkdownFlowInput: React.FC<MarkdownFlowInputProps> = ({\n disabled,\n locale,\n lang,\n dir,\n placeholder,\n sendButtonLabel,\n value,\n title,\n onChange,\n onSend,\n sendShortcut = \"enter\",\n className,\n textareaClassName,\n}) => {\n const localeTexts = getContentRenderLocaleTexts(locale);\n const resolvedSendButtonLabel =\n sendButtonLabel || localeTexts.sendButtonLabel;\n const isSendDisabled = disabled || !value?.trim();\n const handleKeyDown = (e: React.KeyboardEvent<HTMLTextAreaElement>) => {\n if (sendShortcut !== \"enter\" || !onSend) {\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 (!isSendDisabled) {\n onSend();\n }\n }\n };\n\n return (\n <InputGroup\n dir={dir ?? getMarkdownFlowDirection(locale)}\n lang={lang ?? getMarkdownFlowLanguage(locale)}\n data-disabled={disabled}\n className={`input-container h-auto items-end bg-white border-[#e5e5e5] shadow-[0_1px_2px_rgba(0,0,0,0.05)] ${className || \"\"}`}\n >\n <InputGroupTextarea\n disabled={disabled}\n placeholder={placeholder}\n value={value}\n onChange={onChange}\n onKeyDown={handleKeyDown}\n className={`text-[16px] leading-5 font-normal text-[#0A0A0A] placeholder:text-[rgba(99,114,128,1)] bg-transparent border-0 shadow-none ps-3 pe-0 py-1.5 min-h-[32px] ${textareaClassName || \"\"}`}\n title={title}\n />\n <InputGroupButton\n type=\"button\"\n variant=\"ghost\"\n size=\"icon-sm\"\n onClick={onSend}\n disabled={isSendDisabled}\n aria-label={resolvedSendButtonLabel}\n style={{\n margin: \"0px 7px 4px 7px\",\n cursor: isSendDisabled ? \"not-allowed\" : \"pointer\",\n }}\n className=\"size-6 group self-end mb-[2px]\"\n >\n <img\n src={resolveAssetSrc(\n isSendDisabled ? sendIconDisable : sendIconEnable\n )}\n alt={resolvedSendButtonLabel}\n className=\"size-6\"\n />\n </InputGroupButton>\n </InputGroup>\n );\n};\n\nexport type { MarkdownFlowInputProps, MarkdownFlowInputSendShortcut };\nexport default MarkdownFlowInput;\n"],"names":["resolveAssetSrc","asset","MarkdownFlowInput","disabled","locale","lang","dir","placeholder","sendButtonLabel","value","title","onChange","onSend","sendShortcut","className","textareaClassName","localeTexts","getContentRenderLocaleTexts","resolvedSendButtonLabel","isSendDisabled","handleKeyDown","e","jsxs","InputGroup","getMarkdownFlowDirection","getMarkdownFlowLanguage","jsx","InputGroupTextarea","InputGroupButton","sendIconDisable","sendIconEnable"],"mappings":"+WA2CMA,EAAmBC,GACvB,OAAOA,GAAU,SAAWA,EAAQA,EAAM,IAEtCC,EAAsD,CAAC,CAC3D,SAAAC,EAAA,OACAC,EACA,KAAAC,EACA,IAAAC,EACA,YAAAC,EACA,gBAAAC,EACA,MAAAC,EACA,MAAAC,EACA,SAAAC,EACA,OAAAC,EACA,aAAAC,EAAe,QACf,UAAAC,EACA,kBAAAC,CACF,IAAM,CACJ,MAAMC,EAAcC,EAAAA,4BAA4Bb,CAAM,EAChDc,EACJV,GAAmBQ,EAAY,gBAC3BG,EAAiBhB,GAAY,CAACM,GAAO,KAAA,EACrCW,EAAiBC,GAAgD,CACjER,IAAiB,SAAW,CAACD,GAG7BS,EAAE,YAAY,aAAeA,EAAE,UAAY,KAG3CA,EAAE,MAAQ,SAAW,CAACA,EAAE,WAC1BA,EAAE,eAAA,EACGF,GACHP,EAAA,EAGN,EAEA,OACEU,EAAAA,KAACC,EAAAA,WAAA,CACC,IAAKjB,GAAOkB,EAAAA,yBAAyBpB,CAAM,EAC3C,KAAMC,GAAQoB,EAAAA,wBAAwBrB,CAAM,EAC5C,gBAAeD,EACf,UAAW,kGAAkGW,GAAa,EAAE,GAE5H,SAAA,CAAAY,EAAAA,IAACC,EAAAA,mBAAA,CACC,SAAAxB,EACA,YAAAI,EACA,MAAAE,EACA,SAAAE,EACA,UAAWS,EACX,UAAW,4JAA4JL,GAAqB,EAAE,GAC9L,MAAAL,CAAA,CAAA,EAEFgB,EAAAA,IAACE,EAAAA,iBAAA,CACC,KAAK,SACL,QAAQ,QACR,KAAK,UACL,QAAShB,EACT,SAAUO,EACV,aAAYD,EACZ,MAAO,CACL,OAAQ,kBACR,OAAQC,EAAiB,cAAgB,SAAA,EAE3C,UAAU,iCAEV,SAAAO,EAAAA,IAAC,MAAA,CACC,IAAK1B,EACHmB,EAAiBU,EAAAA,QAAkBC,EAAAA,OAAA,EAErC,IAAKZ,EACL,UAAU,QAAA,CAAA,CACZ,CAAA,CACF,CAAA,CAAA,CAGN"}
1
+ {"version":3,"file":"MarkdownFlowInput.cjs","sources":["../../../src/components/ContentRender/MarkdownFlowInput.tsx"],"sourcesContent":["import React from \"react\";\n\nimport sendIconDisable from \"@/assets/icons/send_disable.svg\";\nimport sendIconEnable from \"@/assets/icons/send_enable.svg\";\n\nimport {\n InputGroup,\n InputGroupButton,\n InputGroupTextarea,\n} from \"../ui/inputGroup/input-group\";\nimport {\n getMarkdownFlowDirection,\n getMarkdownFlowLanguage,\n type MarkdownFlowLocale,\n} from \"../../lib/locale\";\nimport { getContentRenderLocaleTexts } from \"./contentRenderI18n\";\nimport { acceptPlaceholder } from \"./utils/accept-placeholder\";\n\ntype MarkdownFlowInputSendShortcut = \"enter\" | \"none\";\n\ninterface MarkdownFlowInputProps {\n /** Overrides locale-derived input direction. */\n dir?: React.HTMLAttributes<HTMLDivElement>[\"dir\"];\n disabled?: boolean;\n locale?: MarkdownFlowLocale;\n /** Overrides the locale-derived language. */\n lang?: string;\n placeholder?: string;\n sendButtonLabel?: string;\n value?: string;\n title?: string;\n onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;\n onSend?: () => void;\n /** Enables Tab completion of an empty input; the host must update its value. */\n onAcceptPlaceholder?: (value: string) => void;\n /**\n * Keyboard policy for sending a multi-line input. `enter` sends on Enter\n * while Shift+Enter keeps its native newline behavior. `none` leaves Enter\n * untouched, which lets mobile consumers reserve the keyboard return key\n * for newlines.\n */\n sendShortcut?: MarkdownFlowInputSendShortcut;\n className?: string;\n textareaClassName?: string;\n}\n\nconst resolveAssetSrc = (asset: string | { src: string }) =>\n typeof asset === \"string\" ? asset : asset.src;\n\nconst MarkdownFlowInput: React.FC<MarkdownFlowInputProps> = ({\n disabled,\n locale,\n lang,\n dir,\n placeholder,\n sendButtonLabel,\n value,\n title,\n onChange,\n onSend,\n onAcceptPlaceholder,\n sendShortcut = \"enter\",\n className,\n textareaClassName,\n}) => {\n const localeTexts = getContentRenderLocaleTexts(locale);\n const resolvedSendButtonLabel =\n sendButtonLabel || localeTexts.sendButtonLabel;\n const isSendDisabled = disabled || !value?.trim();\n const handleKeyDown = (e: React.KeyboardEvent<HTMLTextAreaElement>) => {\n if (acceptPlaceholder(e, placeholder, disabled, onAcceptPlaceholder)) {\n return;\n }\n if (sendShortcut !== \"enter\" || !onSend) {\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 (!isSendDisabled) {\n onSend();\n }\n }\n };\n\n return (\n <InputGroup\n dir={dir ?? getMarkdownFlowDirection(locale)}\n lang={lang ?? getMarkdownFlowLanguage(locale)}\n data-disabled={disabled}\n className={`input-container h-auto items-end bg-white border-[#e5e5e5] shadow-[0_1px_2px_rgba(0,0,0,0.05)] ${className || \"\"}`}\n >\n <InputGroupTextarea\n disabled={disabled}\n placeholder={placeholder}\n value={value}\n onChange={onChange}\n onKeyDown={handleKeyDown}\n className={`text-[16px] leading-5 font-normal text-[#0A0A0A] placeholder:text-[rgba(99,114,128,1)] bg-transparent border-0 shadow-none ps-3 pe-0 py-1.5 min-h-[32px] ${textareaClassName || \"\"}`}\n title={title}\n />\n <InputGroupButton\n type=\"button\"\n variant=\"ghost\"\n size=\"icon-sm\"\n onClick={onSend}\n disabled={isSendDisabled}\n aria-label={resolvedSendButtonLabel}\n style={{\n margin: \"0px 7px 4px 7px\",\n cursor: isSendDisabled ? \"not-allowed\" : \"pointer\",\n }}\n className=\"size-6 group self-end mb-[2px]\"\n >\n <img\n src={resolveAssetSrc(\n isSendDisabled ? sendIconDisable : sendIconEnable\n )}\n alt={resolvedSendButtonLabel}\n className=\"size-6\"\n />\n </InputGroupButton>\n </InputGroup>\n );\n};\n\nexport type { MarkdownFlowInputProps, MarkdownFlowInputSendShortcut };\nexport default MarkdownFlowInput;\n"],"names":["resolveAssetSrc","asset","MarkdownFlowInput","disabled","locale","lang","dir","placeholder","sendButtonLabel","value","title","onChange","onSend","onAcceptPlaceholder","sendShortcut","className","textareaClassName","localeTexts","getContentRenderLocaleTexts","resolvedSendButtonLabel","isSendDisabled","handleKeyDown","e","acceptPlaceholder","jsxs","InputGroup","getMarkdownFlowDirection","getMarkdownFlowLanguage","jsx","InputGroupTextarea","InputGroupButton","sendIconDisable","sendIconEnable"],"mappings":"2ZA8CMA,EAAmBC,GACvB,OAAOA,GAAU,SAAWA,EAAQA,EAAM,IAEtCC,EAAsD,CAAC,CAC3D,SAAAC,EAAA,OACAC,EACA,K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{
14
14
  title?: string;
15
15
  onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;
16
16
  onSend?: () => void;
17
+ /** Enables Tab completion of an empty input; the host must update its value. */
18
+ onAcceptPlaceholder?: (value: string) => void;
17
19
  /**
18
20
  * Keyboard policy for sending a multi-line input. `enter` sends on Enter
19
21
  * while Shift+Enter keeps its native newline behavior. `none` leaves Enter
@@ -1,68 +1,70 @@
1
- import { jsxs as h, jsx as s } from "react/jsx-runtime";
2
- import y from "../../assets/icons/send_disable.svg.es.js";
3
- import k from "../../assets/icons/send_enable.svg.es.js";
4
- import { InputGroup as D, InputGroupTextarea as I, InputGroupButton as v } from "../ui/inputGroup/input-group.es.js";
5
- import { getMarkdownFlowLanguage as A, getMarkdownFlowDirection as C } from "../../lib/locale.es.js";
6
- import { getContentRenderLocaleTexts as L } from "./contentRenderI18n.es.js";
7
- const N = (e) => typeof e == "string" ? e : e.src, M = ({
1
+ import { jsxs as y, jsx as a } from "react/jsx-runtime";
2
+ import k from "../../assets/icons/send_disable.svg.es.js";
3
+ import D from "../../assets/icons/send_enable.svg.es.js";
4
+ import { InputGroup as I, InputGroupTextarea as v, InputGroupButton as A } from "../ui/inputGroup/input-group.es.js";
5
+ import { getMarkdownFlowLanguage as C, getMarkdownFlowDirection as L } from "../../lib/locale.es.js";
6
+ import { getContentRenderLocaleTexts as N } from "./contentRenderI18n.es.js";
7
+ import { acceptPlaceholder as z } from "./utils/accept-placeholder.es.js";
8
+ const B = (e) => typeof e == "string" ? e : e.src, j = ({
8
9
  disabled: e,
9
- locale: o,
10
- lang: p,
11
- dir: l,
12
- placeholder: d,
13
- sendButtonLabel: m,
14
- value: a,
15
- title: c,
10
+ locale: r,
11
+ lang: l,
12
+ dir: m,
13
+ placeholder: s,
14
+ sendButtonLabel: c,
15
+ value: i,
16
+ title: d,
16
17
  onChange: u,
17
- onSend: r,
18
+ onSend: o,
19
+ onAcceptPlaceholder: f,
18
20
  sendShortcut: x = "enter",
19
21
  className: g,
20
- textareaClassName: f
22
+ textareaClassName: b
21
23
  }) => {
22
- const b = L(o), i = m || b.sendButtonLabel, n = e || !a?.trim(), w = (t) => {
23
- x !== "enter" || !r || t.nativeEvent.isComposing || t.keyCode === 229 || t.key === "Enter" && !t.shiftKey && (t.preventDefault(), n || r());
24
+ const w = N(r), p = c || w.sendButtonLabel, n = e || !i?.trim(), h = (t) => {
25
+ z(t, s, e, f) || x !== "enter" || !o || t.nativeEvent.isComposing || t.keyCode === 229 || t.key === "Enter" && !t.shiftKey && (t.preventDefault(), n || o());
24
26
  };
25
- return /* @__PURE__ */ h(
26
- D,
27
+ return /* @__PURE__ */ y(
28
+ I,
27
29
  {
28
- dir: l ?? C(o),
29
- lang: p ?? A(o),
30
+ dir: m ?? L(r),
31
+ lang: l ?? C(r),
30
32
  "data-disabled": e,
31
33
  className: `input-container h-auto items-end bg-white border-[#e5e5e5] shadow-[0_1px_2px_rgba(0,0,0,0.05)] ${g || ""}`,
32
34
  children: [
33
- /* @__PURE__ */ s(
34
- I,
35
+ /* @__PURE__ */ a(
36
+ v,
35
37
  {
36
38
  disabled: e,
37
- placeholder: d,
38
- value: a,
39
+ placeholder: s,
40
+ value: i,
39
41
  onChange: u,
40
- onKeyDown: w,
41
- className: `text-[16px] leading-5 font-normal text-[#0A0A0A] placeholder:text-[rgba(99,114,128,1)] bg-transparent border-0 shadow-none ps-3 pe-0 py-1.5 min-h-[32px] ${f || ""}`,
42
- title: c
42
+ onKeyDown: h,
43
+ className: `text-[16px] leading-5 font-normal text-[#0A0A0A] placeholder:text-[rgba(99,114,128,1)] bg-transparent border-0 shadow-none ps-3 pe-0 py-1.5 min-h-[32px] ${b || ""}`,
44
+ title: d
43
45
  }
44
46
  ),
45
- /* @__PURE__ */ s(
46
- v,
47
+ /* @__PURE__ */ a(
48
+ A,
47
49
  {
48
50
  type: "button",
49
51
  variant: "ghost",
50
52
  size: "icon-sm",
51
- onClick: r,
53
+ onClick: o,
52
54
  disabled: n,
53
- "aria-label": i,
55
+ "aria-label": p,
54
56
  style: {
55
57
  margin: "0px 7px 4px 7px",
56
58
  cursor: n ? "not-allowed" : "pointer"
57
59
  },
58
60
  className: "size-6 group self-end mb-[2px]",
59
- children: /* @__PURE__ */ s(
61
+ children: /* @__PURE__ */ a(
60
62
  "img",
61
63
  {
62
- src: N(
63
- n ? y : k
64
+ src: B(
65
+ n ? k : D
64
66
  ),
65
- alt: i,
67
+ alt: p,
66
68
  className: "size-6"
67
69
  }
68
70
  )
@@ -73,6 +75,6 @@ const N = (e) => typeof e == "string" ? e : e.src, M = ({
73
75
  );
74
76
  };
75
77
  export {
76
- M as default
78
+ j as default
77
79
  };
78
80
  //# sourceMappingURL=MarkdownFlowInput.es.js.map