markdown-flow-ui 0.1.70-beta.0 → 0.1.70

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 (401) hide show
  1. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/@braintree_sanitize-url@7.1.1/node_modules/@braintree/sanitize-url/dist/index.js +1 -1
  2. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js +1 -1
  3. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/hast-util-to-jsx-runtime@2.3.6/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
  4. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/longest-streak@3.1.0/node_modules/longest-streak/index.js +6 -8
  5. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/longest-streak@3.1.0/node_modules/longest-streak/index.js.map +1 -1
  6. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-find-and-replace@3.0.2/node_modules/mdast-util-find-and-replace/lib/index.js +11 -11
  7. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-find-and-replace@3.0.2/node_modules/mdast-util-find-and-replace/lib/index.js.map +1 -1
  8. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/rc-input@1.8.0_react-dom@19.0.1_react@19.0.1__react@19.0.1/node_modules/rc-input/es/BaseInput.js +1 -1
  9. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/rc-textarea@1.10.2_react-dom@19.0.1_react@19.0.1__react@19.0.1/node_modules/rc-textarea/es/ResizableTextArea.js +1 -1
  10. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/rc-textarea@1.10.2_react-dom@19.0.1_react@19.0.1__react@19.0.1/node_modules/rc-textarea/es/TextArea.js +1 -1
  11. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/rc-textarea@1.10.2_react-dom@19.0.1_react@19.0.1__react@19.0.1/node_modules/rc-textarea/es/index.js +1 -1
  12. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-flow@0.1.3-beta.0/node_modules/remark-flow/dist/index.js.map +1 -0
  13. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/{remark-flow@0.1.6 → remark-flow@0.1.3-beta.0}/node_modules/remark-flow/dist/interaction-parser.js +51 -30
  14. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-flow@0.1.3-beta.0/node_modules/remark-flow/dist/interaction-parser.js.map +1 -0
  15. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-flow@0.1.3-beta.0/node_modules/remark-flow/dist/remark-custom-variable.js.map +1 -0
  16. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-flow@0.1.3-beta.0/node_modules/remark-flow/dist/remark-flow.js.map +1 -0
  17. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-flow@0.1.3-beta.0/node_modules/remark-flow/dist/remark-interaction.js.map +1 -0
  18. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/index.js +1 -1
  19. package/dist/_virtual/core.js +1 -1
  20. package/dist/_virtual/index.js +1 -1
  21. package/dist/_virtual/index10.js +2 -2
  22. package/dist/_virtual/index4.js +4 -4
  23. package/dist/_virtual/index5.js +4 -4
  24. package/dist/_virtual/index6.js +5 -5
  25. package/dist/_virtual/index9.js +2 -2
  26. package/dist/assets/markdown-flow-ui.css +1 -1
  27. package/dist/components/ContentRender/ContentRender.d.ts +10 -16
  28. package/dist/components/ContentRender/ContentRender.js +103 -126
  29. package/dist/components/ContentRender/ContentRender.js.map +1 -1
  30. package/dist/components/ContentRender/ContentRender.stories.d.ts +1 -12
  31. package/dist/components/ContentRender/index.d.ts +0 -1
  32. package/dist/components/ContentRender/utils/highlight-languages.js +22 -22
  33. package/dist/components/ContentRender/utils/mermaid-parse.d.ts +0 -4
  34. package/dist/components/ContentRender/utils/mermaid-parse.js +65 -112
  35. package/dist/components/ContentRender/utils/mermaid-parse.js.map +1 -1
  36. package/dist/components/MarkdownFlow/MarkdownFlow.d.ts +0 -7
  37. package/dist/components/MarkdownFlow/MarkdownFlow.js +21 -28
  38. package/dist/components/MarkdownFlow/MarkdownFlow.js.map +1 -1
  39. package/dist/components/MarkdownFlow/MarkdownFlow.stories.d.ts +1 -3
  40. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.js +1 -1
  41. package/dist/components/ui/inputGroup/textarea.js +1 -1
  42. package/dist/components/ui/tooltip.js +2 -2
  43. package/dist/components/ui/tooltip.js.map +1 -1
  44. package/dist/markdown-flow-ui-lib.css +1 -1
  45. package/dist/node_modules/ccount/index.js.map +1 -0
  46. package/dist/node_modules/devlop/lib/default.js +6 -0
  47. package/dist/node_modules/devlop/lib/default.js.map +1 -0
  48. package/dist/node_modules/escape-string-regexp/index.js +9 -0
  49. package/dist/node_modules/escape-string-regexp/index.js.map +1 -0
  50. package/dist/node_modules/hast-util-is-element/lib/index.js +66 -0
  51. package/dist/node_modules/hast-util-is-element/lib/index.js.map +1 -0
  52. package/dist/node_modules/hast-util-to-text/lib/index.js +227 -0
  53. package/dist/node_modules/hast-util-to-text/lib/index.js.map +1 -0
  54. package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/core.js +1 -1
  55. package/dist/node_modules/highlight.js/es/languages/arduino.js.map +1 -0
  56. package/dist/node_modules/highlight.js/es/languages/bash.js.map +1 -0
  57. package/dist/node_modules/highlight.js/es/languages/c.js.map +1 -0
  58. package/dist/node_modules/highlight.js/es/languages/cpp.js.map +1 -0
  59. package/dist/node_modules/highlight.js/es/languages/csharp.js.map +1 -0
  60. package/dist/node_modules/highlight.js/es/languages/css.js.map +1 -0
  61. package/dist/node_modules/highlight.js/es/languages/diff.js.map +1 -0
  62. package/dist/node_modules/highlight.js/es/languages/go.js.map +1 -0
  63. package/dist/node_modules/highlight.js/es/languages/graphql.js.map +1 -0
  64. package/dist/node_modules/highlight.js/es/languages/ini.js.map +1 -0
  65. package/dist/node_modules/highlight.js/es/languages/java.js.map +1 -0
  66. package/dist/node_modules/highlight.js/es/languages/javascript.js.map +1 -0
  67. package/dist/node_modules/highlight.js/es/languages/json.js.map +1 -0
  68. package/dist/node_modules/highlight.js/es/languages/kotlin.js.map +1 -0
  69. package/dist/node_modules/highlight.js/es/languages/latex.js.map +1 -0
  70. package/dist/node_modules/highlight.js/es/languages/less.js.map +1 -0
  71. package/dist/node_modules/highlight.js/es/languages/lua.js.map +1 -0
  72. package/dist/node_modules/highlight.js/es/languages/makefile.js.map +1 -0
  73. package/dist/node_modules/highlight.js/es/languages/markdown.js.map +1 -0
  74. package/dist/node_modules/highlight.js/es/languages/objectivec.js.map +1 -0
  75. package/dist/node_modules/highlight.js/es/languages/perl.js.map +1 -0
  76. package/dist/node_modules/highlight.js/es/languages/php-template.js.map +1 -0
  77. package/dist/node_modules/highlight.js/es/languages/php.js.map +1 -0
  78. package/dist/node_modules/highlight.js/es/languages/plaintext.js.map +1 -0
  79. package/dist/node_modules/highlight.js/es/languages/python-repl.js.map +1 -0
  80. package/dist/node_modules/highlight.js/es/languages/python.js.map +1 -0
  81. package/dist/node_modules/highlight.js/es/languages/r.js.map +1 -0
  82. package/dist/node_modules/highlight.js/es/languages/ruby.js.map +1 -0
  83. package/dist/node_modules/highlight.js/es/languages/rust.js.map +1 -0
  84. package/dist/node_modules/highlight.js/es/languages/scss.js.map +1 -0
  85. package/dist/node_modules/highlight.js/es/languages/shell.js.map +1 -0
  86. package/dist/node_modules/highlight.js/es/languages/sql.js.map +1 -0
  87. package/dist/node_modules/highlight.js/es/languages/swift.js.map +1 -0
  88. package/dist/node_modules/highlight.js/es/languages/typescript.js.map +1 -0
  89. package/dist/node_modules/highlight.js/es/languages/vbnet.js.map +1 -0
  90. package/dist/node_modules/highlight.js/es/languages/vhdl.js.map +1 -0
  91. package/dist/node_modules/highlight.js/es/languages/wasm.js.map +1 -0
  92. package/dist/node_modules/highlight.js/es/languages/xml.js.map +1 -0
  93. package/dist/node_modules/highlight.js/es/languages/yaml.js.map +1 -0
  94. package/dist/node_modules/highlight.js/lib/core.js.map +1 -0
  95. package/dist/node_modules/longest-streak/index.js +13 -0
  96. package/dist/node_modules/longest-streak/index.js.map +1 -0
  97. package/dist/node_modules/lowlight/lib/common.js +80 -0
  98. package/dist/node_modules/lowlight/lib/common.js.map +1 -0
  99. package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/lowlight@3.3.0/node_modules → node_modules}/lowlight/lib/index.js +1 -1
  100. package/dist/node_modules/lowlight/lib/index.js.map +1 -0
  101. package/dist/node_modules/markdown-table/index.js.map +1 -0
  102. package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +71 -0
  103. package/dist/node_modules/mdast-util-find-and-replace/lib/index.js.map +1 -0
  104. package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm@3.1.0/node_modules → node_modules}/mdast-util-gfm/lib/index.js +5 -5
  105. package/dist/node_modules/mdast-util-gfm/lib/index.js.map +1 -0
  106. package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm-autolink-literal@2.0.1/node_modules → node_modules}/mdast-util-gfm-autolink-literal/lib/index.js +4 -4
  107. package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js.map +1 -0
  108. package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm-footnote@2.1.0/node_modules → node_modules}/mdast-util-gfm-footnote/lib/index.js +2 -2
  109. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js.map +1 -0
  110. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js.map +1 -0
  111. package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm-table@2.0.0/node_modules → node_modules}/mdast-util-gfm-table/lib/index.js +3 -3
  112. package/dist/node_modules/mdast-util-gfm-table/lib/index.js.map +1 -0
  113. package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm-task-list-item@2.0.0/node_modules → node_modules}/mdast-util-gfm-task-list-item/lib/index.js +2 -2
  114. package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm-task-list-item@2.0.0/node_modules → node_modules}/mdast-util-gfm-task-list-item/lib/index.js.map +1 -1
  115. package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-phrasing@4.1.0/node_modules → node_modules}/mdast-util-phrasing/lib/index.js +1 -1
  116. package/dist/node_modules/mdast-util-phrasing/lib/index.js.map +1 -0
  117. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js.map +1 -0
  118. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js.map +1 -0
  119. package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/handle/code.js +1 -1
  120. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js.map +1 -0
  121. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js.map +1 -0
  122. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js.map +1 -0
  123. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js.map +1 -0
  124. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js.map +1 -0
  125. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js.map +1 -0
  126. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js.map +1 -0
  127. package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js.map +1 -0
  128. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js.map +1 -0
  129. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js.map +1 -0
  130. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js.map +1 -0
  131. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js.map +1 -0
  132. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js.map +1 -0
  133. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js.map +1 -0
  134. package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/handle/root.js +1 -1
  135. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js.map +1 -0
  136. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js.map +1 -0
  137. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js.map +1 -0
  138. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js.map +1 -0
  139. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js.map +1 -0
  140. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js.map +1 -0
  141. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js.map +1 -0
  142. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js.map +1 -0
  143. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js.map +1 -0
  144. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js.map +1 -0
  145. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js.map +1 -0
  146. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js.map +1 -0
  147. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js.map +1 -0
  148. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js.map +1 -0
  149. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js.map +1 -0
  150. package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/util/encode-info.js +1 -1
  151. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js.map +1 -0
  152. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js.map +1 -0
  153. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +14 -0
  154. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js.map +1 -0
  155. package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +1 -1
  156. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js.map +1 -0
  157. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js.map +1 -0
  158. package/dist/node_modules/mdast-util-to-string/lib/index.js +30 -0
  159. package/dist/node_modules/mdast-util-to-string/lib/index.js.map +1 -0
  160. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +19 -0
  161. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js.map +1 -0
  162. package/dist/node_modules/micromark-extension-gfm/index.js +19 -0
  163. package/dist/node_modules/micromark-extension-gfm/index.js.map +1 -0
  164. package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-autolink-literal@2.1.0/node_modules → node_modules}/micromark-extension-gfm-autolink-literal/lib/syntax.js +1 -1
  165. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js.map +1 -0
  166. package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-footnote@2.1.0/node_modules → node_modules}/micromark-extension-gfm-footnote/lib/syntax.js +4 -4
  167. package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js.map +1 -0
  168. package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-strikethrough@2.1.0/node_modules → node_modules}/micromark-extension-gfm-strikethrough/lib/syntax.js +3 -3
  169. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js.map +1 -0
  170. package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules → node_modules}/micromark-extension-gfm-table/lib/edit-map.js.map +1 -1
  171. package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules → node_modules}/micromark-extension-gfm-table/lib/infer.js.map +1 -1
  172. package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules → node_modules}/micromark-extension-gfm-table/lib/syntax.js +2 -2
  173. package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules → node_modules}/micromark-extension-gfm-table/lib/syntax.js.map +1 -1
  174. package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-task-list-item@2.1.0/node_modules → node_modules}/micromark-extension-gfm-task-list-item/lib/syntax.js +2 -2
  175. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js.map +1 -0
  176. package/dist/node_modules/micromark-factory-space/index.js +16 -0
  177. package/dist/node_modules/micromark-factory-space/index.js.map +1 -0
  178. package/dist/node_modules/micromark-util-character/index.js +35 -0
  179. package/dist/node_modules/micromark-util-character/index.js.map +1 -0
  180. package/dist/node_modules/micromark-util-chunked/index.js +13 -0
  181. package/dist/node_modules/micromark-util-chunked/index.js.map +1 -0
  182. package/dist/node_modules/micromark-util-classify-character/index.js +11 -0
  183. package/dist/node_modules/micromark-util-classify-character/index.js.map +1 -0
  184. package/dist/node_modules/micromark-util-combine-extensions/index.js +37 -0
  185. package/dist/node_modules/micromark-util-combine-extensions/index.js.map +1 -0
  186. package/dist/node_modules/micromark-util-normalize-identifier/index.js +7 -0
  187. package/dist/node_modules/micromark-util-normalize-identifier/index.js.map +1 -0
  188. package/dist/node_modules/micromark-util-resolve-all/index.js +13 -0
  189. package/dist/node_modules/micromark-util-resolve-all/index.js.map +1 -0
  190. package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/rehype-highlight@7.0.2/node_modules → node_modules}/rehype-highlight/lib/index.js +4 -4
  191. package/dist/node_modules/rehype-highlight/lib/index.js.map +1 -0
  192. package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-gfm@4.0.1/node_modules → node_modules}/remark-gfm/lib/index.js +2 -2
  193. package/dist/node_modules/remark-gfm/lib/index.js.map +1 -0
  194. package/dist/node_modules/unist-util-find-after/lib/index.js +33 -0
  195. package/dist/node_modules/unist-util-find-after/lib/index.js.map +1 -0
  196. package/dist/node_modules/unist-util-is/lib/index.js +85 -0
  197. package/dist/node_modules/unist-util-is/lib/index.js.map +1 -0
  198. package/dist/node_modules/unist-util-visit/lib/index.js +17 -0
  199. package/dist/node_modules/unist-util-visit/lib/index.js.map +1 -0
  200. package/dist/node_modules/unist-util-visit-parents/lib/color.js +7 -0
  201. package/dist/node_modules/unist-util-visit-parents/lib/color.js.map +1 -0
  202. package/dist/node_modules/unist-util-visit-parents/lib/index.js +57 -0
  203. package/dist/node_modules/unist-util-visit-parents/lib/index.js.map +1 -0
  204. package/package.json +1 -1
  205. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/ccount@2.0.1/node_modules/ccount/index.js.map +0 -1
  206. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/arduino.js.map +0 -1
  207. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/bash.js.map +0 -1
  208. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/c.js.map +0 -1
  209. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/cpp.js.map +0 -1
  210. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/csharp.js.map +0 -1
  211. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/css.js.map +0 -1
  212. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/diff.js.map +0 -1
  213. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/go.js.map +0 -1
  214. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/graphql.js.map +0 -1
  215. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ini.js.map +0 -1
  216. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/java.js.map +0 -1
  217. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/javascript.js.map +0 -1
  218. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/json.js.map +0 -1
  219. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/kotlin.js.map +0 -1
  220. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/latex.js.map +0 -1
  221. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/less.js.map +0 -1
  222. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/lua.js.map +0 -1
  223. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/makefile.js.map +0 -1
  224. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/markdown.js.map +0 -1
  225. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/objectivec.js.map +0 -1
  226. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/perl.js.map +0 -1
  227. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/php-template.js.map +0 -1
  228. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/php.js.map +0 -1
  229. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/plaintext.js.map +0 -1
  230. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python-repl.js.map +0 -1
  231. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python.js.map +0 -1
  232. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/r.js.map +0 -1
  233. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ruby.js.map +0 -1
  234. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/rust.js.map +0 -1
  235. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/scss.js.map +0 -1
  236. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/shell.js.map +0 -1
  237. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sql.js.map +0 -1
  238. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/swift.js.map +0 -1
  239. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/typescript.js.map +0 -1
  240. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vbnet.js.map +0 -1
  241. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vhdl.js.map +0 -1
  242. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/wasm.js.map +0 -1
  243. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/xml.js.map +0 -1
  244. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/yaml.js.map +0 -1
  245. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.js.map +0 -1
  246. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/common.js +0 -80
  247. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/common.js.map +0 -1
  248. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/index.js.map +0 -1
  249. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/lucide-react@0.525.0_react@19.0.1/node_modules/lucide-react/dist/esm/icons/fullscreen.js +0 -19
  250. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/lucide-react@0.525.0_react@19.0.1/node_modules/lucide-react/dist/esm/icons/fullscreen.js.map +0 -1
  251. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/markdown-table@3.0.4/node_modules/markdown-table/index.js.map +0 -1
  252. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm-autolink-literal@2.0.1/node_modules/mdast-util-gfm-autolink-literal/lib/index.js.map +0 -1
  253. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm-footnote@2.1.0/node_modules/mdast-util-gfm-footnote/lib/index.js.map +0 -1
  254. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm-strikethrough@2.0.0/node_modules/mdast-util-gfm-strikethrough/lib/index.js.map +0 -1
  255. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm-table@2.0.0/node_modules/mdast-util-gfm-table/lib/index.js.map +0 -1
  256. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm@3.1.0/node_modules/mdast-util-gfm/lib/index.js.map +0 -1
  257. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-phrasing@4.1.0/node_modules/mdast-util-phrasing/lib/index.js.map +0 -1
  258. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js.map +0 -1
  259. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/break.js.map +0 -1
  260. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/code.js.map +0 -1
  261. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/definition.js.map +0 -1
  262. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js.map +0 -1
  263. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/heading.js.map +0 -1
  264. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/html.js.map +0 -1
  265. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js.map +0 -1
  266. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image.js.map +0 -1
  267. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/index.js.map +0 -1
  268. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js.map +0 -1
  269. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js.map +0 -1
  270. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link.js.map +0 -1
  271. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list-item.js.map +0 -1
  272. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list.js.map +0 -1
  273. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js.map +0 -1
  274. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/root.js.map +0 -1
  275. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/strong.js.map +0 -1
  276. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/text.js.map +0 -1
  277. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js.map +0 -1
  278. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js.map +0 -1
  279. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js.map +0 -1
  280. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js.map +0 -1
  281. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js.map +0 -1
  282. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-fence.js.map +0 -1
  283. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js.map +0 -1
  284. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-quote.js.map +0 -1
  285. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js.map +0 -1
  286. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule.js.map +0 -1
  287. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-strong.js.map +0 -1
  288. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js.map +0 -1
  289. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-info.js.map +0 -1
  290. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js.map +0 -1
  291. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +0 -14
  292. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js.map +0 -1
  293. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js.map +0 -1
  294. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js.map +0 -1
  295. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-autolink-literal@2.1.0/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js.map +0 -1
  296. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-footnote@2.1.0/node_modules/micromark-extension-gfm-footnote/lib/syntax.js.map +0 -1
  297. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-strikethrough@2.1.0/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js.map +0 -1
  298. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-task-list-item@2.1.0/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js.map +0 -1
  299. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm@3.0.0/node_modules/micromark-extension-gfm/index.js +0 -19
  300. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm@3.0.0/node_modules/micromark-extension-gfm/index.js.map +0 -1
  301. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/rehype-highlight@7.0.2/node_modules/rehype-highlight/lib/index.js.map +0 -1
  302. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-flow@0.1.6/node_modules/remark-flow/dist/index.js.map +0 -1
  303. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-flow@0.1.6/node_modules/remark-flow/dist/interaction-parser.js.map +0 -1
  304. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-flow@0.1.6/node_modules/remark-flow/dist/remark-custom-variable.js.map +0 -1
  305. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-flow@0.1.6/node_modules/remark-flow/dist/remark-flow.js.map +0 -1
  306. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-flow@0.1.6/node_modules/remark-flow/dist/remark-interaction.js.map +0 -1
  307. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-gfm@4.0.1/node_modules/remark-gfm/lib/index.js.map +0 -1
  308. package/dist/components/ContentRender/ContentBlackboard.d.ts +0 -9
  309. package/dist/components/ContentRender/ContentBlackboard.js +0 -126
  310. package/dist/components/ContentRender/ContentBlackboard.js.map +0 -1
  311. package/dist/components/ContentRender/ContentHtml.d.ts +0 -22
  312. package/dist/components/ContentRender/ContentHtml.js +0 -108
  313. package/dist/components/ContentRender/ContentHtml.js.map +0 -1
  314. package/dist/components/ContentRender/utils/content-html-stream.d.ts +0 -8
  315. package/dist/components/ContentRender/utils/content-html-stream.js +0 -18
  316. package/dist/components/ContentRender/utils/content-html-stream.js.map +0 -1
  317. /package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/{remark-flow@0.1.6 → remark-flow@0.1.3-beta.0}/node_modules/remark-flow/dist/index.js +0 -0
  318. /package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/{remark-flow@0.1.6 → remark-flow@0.1.3-beta.0}/node_modules/remark-flow/dist/remark-custom-variable.js +0 -0
  319. /package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/{remark-flow@0.1.6 → remark-flow@0.1.3-beta.0}/node_modules/remark-flow/dist/remark-flow.js +0 -0
  320. /package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/{remark-flow@0.1.6 → remark-flow@0.1.3-beta.0}/node_modules/remark-flow/dist/remark-interaction.js +0 -0
  321. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules}/@codemirror/state/dist/index.js +0 -0
  322. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules}/@codemirror/state/dist/index.js.map +0 -0
  323. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules}/@marijn/find-cluster-break/src/index.js +0 -0
  324. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules}/@marijn/find-cluster-break/src/index.js.map +0 -0
  325. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/ccount@2.0.1/node_modules → node_modules}/ccount/index.js +0 -0
  326. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/core.js.map +0 -0
  327. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/arduino.js +0 -0
  328. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/bash.js +0 -0
  329. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/c.js +0 -0
  330. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/cpp.js +0 -0
  331. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/csharp.js +0 -0
  332. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/css.js +0 -0
  333. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/diff.js +0 -0
  334. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/go.js +0 -0
  335. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/graphql.js +0 -0
  336. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/ini.js +0 -0
  337. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/java.js +0 -0
  338. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/javascript.js +0 -0
  339. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/json.js +0 -0
  340. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/kotlin.js +0 -0
  341. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/latex.js +0 -0
  342. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/less.js +0 -0
  343. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/lua.js +0 -0
  344. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/makefile.js +0 -0
  345. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/markdown.js +0 -0
  346. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/objectivec.js +0 -0
  347. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/perl.js +0 -0
  348. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/php-template.js +0 -0
  349. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/php.js +0 -0
  350. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/plaintext.js +0 -0
  351. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/python-repl.js +0 -0
  352. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/python.js +0 -0
  353. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/r.js +0 -0
  354. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/ruby.js +0 -0
  355. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/rust.js +0 -0
  356. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/scss.js +0 -0
  357. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/shell.js +0 -0
  358. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/sql.js +0 -0
  359. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/swift.js +0 -0
  360. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/typescript.js +0 -0
  361. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/vbnet.js +0 -0
  362. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/vhdl.js +0 -0
  363. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/wasm.js +0 -0
  364. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/xml.js +0 -0
  365. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/es/languages/yaml.js +0 -0
  366. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules → node_modules}/highlight.js/lib/core.js +0 -0
  367. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/markdown-table@3.0.4/node_modules → node_modules}/markdown-table/index.js +0 -0
  368. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm-strikethrough@2.0.0/node_modules → node_modules}/mdast-util-gfm-strikethrough/lib/index.js +0 -0
  369. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/handle/blockquote.js +0 -0
  370. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/handle/break.js +0 -0
  371. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/handle/definition.js +0 -0
  372. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/handle/emphasis.js +0 -0
  373. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/handle/heading.js +0 -0
  374. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/handle/html.js +0 -0
  375. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/handle/image-reference.js +0 -0
  376. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/handle/image.js +0 -0
  377. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/handle/index.js +0 -0
  378. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/handle/inline-code.js +0 -0
  379. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/handle/link-reference.js +0 -0
  380. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/handle/link.js +0 -0
  381. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/handle/list-item.js +0 -0
  382. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/handle/list.js +0 -0
  383. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/handle/paragraph.js +0 -0
  384. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/handle/strong.js +0 -0
  385. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/handle/text.js +0 -0
  386. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/handle/thematic-break.js +0 -0
  387. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +0 -0
  388. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/util/check-bullet-other.js +0 -0
  389. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/util/check-bullet.js +0 -0
  390. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/util/check-emphasis.js +0 -0
  391. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/util/check-fence.js +0 -0
  392. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/util/check-list-item-indent.js +0 -0
  393. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/util/check-quote.js +0 -0
  394. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/util/check-rule-repetition.js +0 -0
  395. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/util/check-rule.js +0 -0
  396. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/util/check-strong.js +0 -0
  397. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/util/encode-character-reference.js +0 -0
  398. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/util/format-code-as-indented.js +0 -0
  399. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules → node_modules}/mdast-util-to-markdown/lib/util/pattern-in-scope.js +0 -0
  400. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules → node_modules}/micromark-extension-gfm-table/lib/edit-map.js +0 -0
  401. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules → node_modules}/micromark-extension-gfm-table/lib/infer.js +0 -0
@@ -3,16 +3,16 @@ import { CustomRenderBarProps, OnSendContentParams } from '../types';
3
3
  export interface ContentRenderProps {
4
4
  content: string;
5
5
  /**
6
- * Callback invoked when the custom button after content is clicked.
7
- * This button is rendered via the `<custom-button-after-content>` tag in markdown content.
8
- * @example
9
- * ```tsx
10
- * <ContentRender
11
- * content="Hello <custom-button-after-content>Ask</custom-button-after-content>"
12
- * onClickCustomButtonAfterContent={() => console.log('Button clicked')}
13
- * />
14
- * ```
15
- */
6
+ + * Callback invoked when the custom button after content is clicked.
7
+ + * This button is rendered via the `<custom-button-after-content>` tag in markdown content.
8
+ + * @example
9
+ + * ```tsx
10
+ + * <ContentRender
11
+ + * content="Hello <custom-button-after-content>Ask</custom-button-after-content>"
12
+ + * onClickCustomButtonAfterContent={() => console.log('Button clicked')}
13
+ + * />
14
+ + * ```
15
+ + */
16
16
  customRenderBar?: CustomRenderBarProps;
17
17
  onClickCustomButtonAfterContent?: () => void;
18
18
  onSend?: (content: OnSendContentParams) => void;
@@ -27,13 +27,7 @@ export interface ContentRenderProps {
27
27
  copyButtonText?: string;
28
28
  copiedButtonText?: string;
29
29
  dynamicInteractionFormat?: string;
30
- fullscreenButtonText?: string;
31
30
  beforeSend?: (param: OnSendContentParams) => boolean;
32
- contentHtmlPayload?: string;
33
- contentType?: "default" | "blackboard";
34
- renderNarrationAsCaption?: boolean;
35
- maxVisibleStepNumber?: number;
36
- visibleStepNumber?: number;
37
31
  }
38
32
  declare const ContentRender: React.FC<ContentRenderProps>;
39
33
  export default ContentRender;
@@ -1,103 +1,95 @@
1
1
  import { j as t } from "../../_virtual/jsx-runtime.js";
2
- /* empty css */
2
+ /* empty css */
3
3
  /* empty css */
4
- import P, { useRef as b, useEffect as i } from "react";
5
- import T from "../../_virtual/index.js";
6
- import G from "./ContentBlackboard.js";
4
+ import S, { useRef as x, useEffect as i } from "react";
5
+ import B from "../../_virtual/index.js";
7
6
  /* empty css */
8
7
  /* empty css */
9
- import H from "./CodeBlock.js";
10
- import K from "./plugins/CustomVariable.js";
11
- import j from "./plugins/MermaidChart.js";
12
- import { ContentHtml as k } from "./ContentHtml.js";
13
- import $ from "./useTypewriterStateMachine.js";
14
- import { preserveCustomVariableProperties as q, restoreCustomVariableProperties as D } from "./utils/custom-variable-props.js";
15
- import { subsetLanguages as F, highlightLanguages as J } from "./utils/highlight-languages.js";
16
- import { parseMarkdownSegments as O, mermaidBlockIsComplete as Q } from "./utils/mermaid-parse.js";
17
- import { Markdown as U } from "../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/react-markdown@10.1.0_@types_react@19.2.2_react@19.0.1/node_modules/react-markdown/lib/index.js";
18
- import W from "../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/rehype-raw@7.0.0/node_modules/rehype-raw/lib/index.js";
19
- import X from "../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/rehype-highlight@7.0.2/node_modules/rehype-highlight/lib/index.js";
20
- import Y from "../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/rehype-katex@7.0.1/node_modules/rehype-katex/lib/index.js";
21
- import Z from "../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-gfm@4.0.1/node_modules/remark-gfm/lib/index.js";
22
- import ee from "../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-math@6.0.0/node_modules/remark-math/lib/index.js";
23
- import te from "../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-breaks@4.0.0/node_modules/remark-breaks/lib/index.js";
24
- const re = ({ svg: o }) => {
25
- const n = b(null);
8
+ import P from "./CodeBlock.js";
9
+ import E from "./plugins/CustomVariable.js";
10
+ import h from "./plugins/MermaidChart.js";
11
+ import T from "./useTypewriterStateMachine.js";
12
+ import { preserveCustomVariableProperties as V, restoreCustomVariableProperties as _ } from "./utils/custom-variable-props.js";
13
+ import { subsetLanguages as z, highlightLanguages as A } from "./utils/highlight-languages.js";
14
+ import { parseMarkdownSegments as H, mermaidBlockIsComplete as G } from "./utils/mermaid-parse.js";
15
+ import { Markdown as K } from "../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/react-markdown@10.1.0_@types_react@19.2.2_react@19.0.1/node_modules/react-markdown/lib/index.js";
16
+ import $ from "../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/rehype-raw@7.0.0/node_modules/rehype-raw/lib/index.js";
17
+ import q from "../../node_modules/rehype-highlight/lib/index.js";
18
+ import D from "../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/rehype-katex@7.0.1/node_modules/rehype-katex/lib/index.js";
19
+ import F from "../../node_modules/remark-gfm/lib/index.js";
20
+ import J from "../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-math@6.0.0/node_modules/remark-math/lib/index.js";
21
+ import O from "../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-breaks@4.0.0/node_modules/remark-breaks/lib/index.js";
22
+ const Q = ({ svg: s }) => {
23
+ const n = x(null);
26
24
  return i(() => {
27
- const s = n.current;
28
- if (!s) return;
29
- const m = s.shadowRoot ?? s.attachShadow({ mode: "open" });
30
- m.innerHTML = o;
31
- }, [o]), /* @__PURE__ */ t.jsx("div", { className: "content-render-svg", ref: n });
32
- }, Ie = ({
33
- content: o,
25
+ const a = n.current;
26
+ if (!a) return;
27
+ const m = a.shadowRoot ?? a.attachShadow({ mode: "open" });
28
+ m.innerHTML = s;
29
+ }, [s]), /* @__PURE__ */ t.jsx("div", { className: "content-render-svg", ref: n });
30
+ }, ke = ({
31
+ content: s,
34
32
  customRenderBar: n,
35
- onSend: s,
33
+ onSend: a,
36
34
  typingSpeed: m = 30,
37
- enableTypewriter: g = !1,
38
- defaultButtonText: y,
39
- defaultInputText: N,
40
- defaultSelectedValues: C,
41
- readonly: v = !1,
42
- onTypeFinished: u,
43
- confirmButtonText: w,
44
- copyButtonText: R,
45
- copiedButtonText: M,
46
- fullscreenButtonText: p,
47
- onClickCustomButtonAfterContent: I,
48
- beforeSend: L,
49
- contentHtmlPayload: l,
50
- contentType: S = "default",
51
- renderNarrationAsCaption: B = !1,
52
- maxVisibleStepNumber: E,
53
- visibleStepNumber: V
35
+ enableTypewriter: j = !1,
36
+ defaultButtonText: k,
37
+ defaultInputText: b,
38
+ defaultSelectedValues: g,
39
+ readonly: N = !1,
40
+ onTypeFinished: l,
41
+ confirmButtonText: y,
42
+ copyButtonText: C,
43
+ copiedButtonText: v,
44
+ onClickCustomButtonAfterContent: w,
45
+ beforeSend: R
54
46
  // tooltipMinLength,
55
47
  }) => {
56
- const { displayContent: f, isComplete: d } = $({
48
+ const { displayContent: u, isComplete: p } = T({
57
49
  // processMarkdownText will let code block printf("You win!\n") become printf("You win!<br/>");
58
50
  // content: processMarkdownText(content),
59
- content: o,
51
+ content: s,
60
52
  typingSpeed: m,
61
- disabled: !g
62
- }), _ = {
53
+ disabled: !j
54
+ }), M = {
63
55
  "custom-button-after-content": ({
64
56
  children: e
65
57
  }) => /* @__PURE__ */ t.jsx(
66
58
  "button",
67
59
  {
68
60
  className: "content-render-custom-button-after-content",
69
- onClick: I,
61
+ onClick: w,
70
62
  children: e
71
63
  }
72
64
  ),
73
65
  "custom-variable": (e) => /* @__PURE__ */ t.jsx(
74
- K,
66
+ E,
75
67
  {
76
68
  ...e,
77
- readonly: v,
78
- defaultButtonText: y,
79
- defaultInputText: N,
80
- defaultSelectedValues: C,
81
- onSend: s,
82
- beforeSend: L,
83
- confirmButtonText: w
69
+ readonly: N,
70
+ defaultButtonText: k,
71
+ defaultInputText: b,
72
+ defaultSelectedValues: g,
73
+ onSend: a,
74
+ beforeSend: R,
75
+ confirmButtonText: y
84
76
  }
85
77
  ),
86
78
  code: (e) => {
87
- const { className: r, children: a, ...h } = e;
79
+ const { className: r, children: o, ...d } = e;
88
80
  if (/language-(\w+)/.exec(r || "")?.[1] === "mermaid") {
89
- const x = a?.toString().replace(/\n$/, "") || "", A = Q(o, x);
90
- return /* @__PURE__ */ t.jsx(j, { chart: x, frozen: A });
81
+ const f = o?.toString().replace(/\n$/, "") || "", L = G(s, f);
82
+ return /* @__PURE__ */ t.jsx(h, { chart: f, frozen: L });
91
83
  }
92
- return /* @__PURE__ */ t.jsx("code", { className: r, ...h, children: a });
84
+ return /* @__PURE__ */ t.jsx("code", { className: r, ...d, children: o });
93
85
  },
94
86
  table: ({ ...e }) => /* @__PURE__ */ t.jsx("div", { className: "content-render-table-container", children: /* @__PURE__ */ t.jsx("table", { className: "content-render-table", ...e }) }),
95
87
  th: ({ ...e }) => /* @__PURE__ */ t.jsx("th", { className: "content-render-th", ...e }),
96
88
  td: ({ ...e }) => /* @__PURE__ */ t.jsx("td", { className: "content-render-td", ...e }),
97
89
  tr: ({ ...e }) => /* @__PURE__ */ t.jsx("tr", { className: "content-render-tr", ...e }),
98
90
  li: ({ node: e, ...r }) => {
99
- const a = e?.properties?.className;
100
- return typeof a == "string" && a.includes("task-list-item") || Array.isArray(a) && a.includes("task-list-item") ? /* @__PURE__ */ t.jsx("li", { className: "content-render-task-list-item", ...r }) : /* @__PURE__ */ t.jsx("li", { ...r });
91
+ const o = e?.properties?.className;
92
+ return typeof o == "string" && o.includes("task-list-item") || Array.isArray(o) && o.includes("task-list-item") ? /* @__PURE__ */ t.jsx("li", { className: "content-render-task-list-item", ...r }) : /* @__PURE__ */ t.jsx("li", { ...r });
101
93
  },
102
94
  ol: ({ ...e }) => /* @__PURE__ */ t.jsx("ol", { className: "content-render-ol", ...e }),
103
95
  ul: ({ ...e }) => /* @__PURE__ */ t.jsx("ul", { className: "content-render-ul", ...e }),
@@ -112,77 +104,62 @@ const re = ({ svg: o }) => {
112
104
  ) : /* @__PURE__ */ t.jsx("input", { ...e }),
113
105
  a: ({ children: e, ...r }) => /* @__PURE__ */ t.jsx("a", { target: "_blank", rel: "noopener noreferrer", ...r, children: e }),
114
106
  pre: (e) => /* @__PURE__ */ t.jsx(
115
- H,
107
+ P,
116
108
  {
117
109
  ...e,
118
- copyButtonText: R,
119
- copiedButtonText: M
110
+ copyButtonText: C,
111
+ copiedButtonText: v
120
112
  }
121
113
  )
122
- }, c = b(!1);
114
+ }, c = x(!1);
123
115
  i(() => {
124
- d && !c.current && (c.current = !0, u?.());
125
- }, [d, u]), i(() => {
116
+ p && !c.current && (c.current = !0, l?.());
117
+ }, [p, l]), i(() => {
126
118
  c.current = !1;
127
- }, [o]);
128
- const z = O(f);
119
+ }, [s]);
120
+ const I = H(u);
129
121
  return /* @__PURE__ */ t.jsxs("div", { className: "content-render markdown-body", children: [
130
- z.map((e, r) => e.type === "text" ? /* @__PURE__ */ t.jsx(
131
- U,
132
- {
133
- remarkPlugins: [Z, ee, T, te],
134
- rehypePlugins: [
135
- q,
136
- W,
137
- D,
138
- [
139
- X,
140
- { languages: J, subset: F }
141
- ],
142
- Y
143
- ],
144
- components: _,
145
- children: e.value
146
- },
147
- r
148
- ) : e.type === "mermaid" ? /* @__PURE__ */ t.jsx(
149
- j,
150
- {
151
- chart: e.value,
152
- frozen: !e.complete
153
- },
154
- r
155
- ) : e.type === "svg" ? /* @__PURE__ */ t.jsx(re, { svg: e.value }, r) : e.type === "html" ? /* @__PURE__ */ t.jsx(
156
- k,
157
- {
158
- html: e.value,
159
- fullscreenButtonText: p
160
- },
161
- r
162
- ) : null),
163
- l && (S === "blackboard" ? /* @__PURE__ */ t.jsx(
164
- G,
165
- {
166
- payload: l,
167
- renderNarrationAsCaption: B,
168
- maxVisibleStepNumber: E,
169
- visibleStepNumber: V
170
- }
171
- ) : /* @__PURE__ */ t.jsx(
172
- k,
173
- {
174
- payload: l,
175
- fullscreenButtonText: p
176
- }
177
- )),
178
- n && P.createElement(n, {
179
- content: o,
180
- displayContent: f,
181
- onSend: s
122
+ I.map((e, r) => {
123
+ if (e.type === "text")
124
+ return /* @__PURE__ */ t.jsx(
125
+ K,
126
+ {
127
+ remarkPlugins: [F, J, B, O],
128
+ rehypePlugins: [
129
+ V,
130
+ $,
131
+ _,
132
+ [
133
+ q,
134
+ { languages: A, subset: z }
135
+ ],
136
+ D
137
+ ],
138
+ components: M,
139
+ children: e.value
140
+ },
141
+ r
142
+ );
143
+ if (e.type === "mermaid")
144
+ return /* @__PURE__ */ t.jsx(
145
+ h,
146
+ {
147
+ chart: e.value,
148
+ frozen: !e.complete
149
+ },
150
+ r
151
+ );
152
+ if (e.type === "svg")
153
+ return /* @__PURE__ */ t.jsx(Q, { svg: e.value }, r);
154
+ }),
155
+ n && S.createElement(n, {
156
+ content: s,
157
+ displayContent: u,
158
+ onSend: a
182
159
  })
183
160
  ] });
184
161
  };
185
162
  export {
186
- Ie as default
163
+ ke as default
187
164
  };
188
165
  //# sourceMappingURL=ContentRender.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContentRender.js","sources":["../../../src/components/ContentRender/ContentRender.tsx"],"sourcesContent":["import \"highlight.js/styles/github.css\";\nimport \"katex/dist/katex.min.css\";\nimport React, { useEffect, useRef } from \"react\";\nimport ReactMarkdown from \"react-markdown\";\nimport rehypeHighlight from \"rehype-highlight\";\nimport rehypeKatex from \"rehype-katex\";\nimport rehypeRaw from \"rehype-raw\";\nimport remarkBreaks from \"remark-breaks\";\nimport remarkFlow from \"remark-flow\";\nimport remarkGfm from \"remark-gfm\";\nimport remarkMath from \"remark-math\";\nimport { CustomRenderBarProps, OnSendContentParams } from \"../types\";\nimport ContentBlackboard from \"./ContentBlackboard\";\nimport \"./contentRender.css\";\nimport \"./github-markdown-light.css\";\nimport CodeBlock from \"./CodeBlock\";\nimport CustomButtonInputVariable, {\n ComponentsWithCustomVariable,\n} from \"./plugins/CustomVariable\";\nimport MermaidChart from \"./plugins/MermaidChart\";\nimport ContentHtml from \"./ContentHtml\";\nimport useTypewriterStateMachine from \"./useTypewriterStateMachine\";\nimport {\n preserveCustomVariableProperties,\n restoreCustomVariableProperties,\n} from \"./utils/custom-variable-props\";\nimport {\n highlightLanguages,\n subsetLanguages,\n} from \"./utils/highlight-languages\";\n// import { processMarkdownText } from \"./utils/process-markdown\";\nimport {\n parseMarkdownSegments,\n mermaidBlockIsComplete,\n} from \"./utils/mermaid-parse\";\n// Define component Props type\nexport interface ContentRenderProps {\n content: string;\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 enableTypewriter?: boolean;\n defaultButtonText?: string;\n defaultInputText?: string; // Text input by user\n defaultSelectedValues?: string[]; // Default selected values for multi-select\n readonly?: boolean;\n onTypeFinished?: () => void;\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 // Fullscreen button text for iframe rendering\n fullscreenButtonText?: string;\n beforeSend?: (param: OnSendContentParams) => boolean;\n // Raw payload for content_html stream messages\n contentHtmlPayload?: string;\n // Content render type, blackboard will use ContentBlackboard for streaming chunks\n contentType?: \"default\" | \"blackboard\";\n // Render narration as caption overlay for blackboard streaming mode\n renderNarrationAsCaption?: boolean;\n // Maximum visible step number when using blackboard streaming mode (manual stepping)\n maxVisibleStepNumber?: number;\n // Visible step number for single-step display (non-accumulated)\n visibleStepNumber?: number;\n // tooltipMinLength?: number; // Control minimum character length for tooltip display, default 10\n}\n\n// Render svg string via Shadow DOM to avoid markdown wrapping\nconst SvgBlockInShadow: React.FC<{ svg: string }> = ({ svg }) => {\n const hostRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n const host = hostRef.current;\n if (!host) return;\n const shadowRoot = host.shadowRoot ?? host.attachShadow({ mode: \"open\" });\n shadowRoot.innerHTML = svg;\n }, [svg]);\n\n return <div className=\"content-render-svg\" ref={hostRef} />;\n};\n\n// Extended component interface\ntype CustomComponents = ComponentsWithCustomVariable & {\n \"custom-button-after-content\"?: React.ComponentType<{\n children: React.ReactNode;\n }>;\n};\n\nconst ContentRender: React.FC<ContentRenderProps> = ({\n content,\n customRenderBar,\n onSend,\n typingSpeed = 30,\n enableTypewriter = false,\n defaultButtonText,\n defaultInputText,\n defaultSelectedValues,\n readonly = false,\n onTypeFinished,\n confirmButtonText,\n copyButtonText,\n copiedButtonText,\n fullscreenButtonText,\n onClickCustomButtonAfterContent,\n beforeSend,\n contentHtmlPayload,\n contentType = \"default\",\n renderNarrationAsCaption = false,\n maxVisibleStepNumber,\n visibleStepNumber,\n // tooltipMinLength,\n}) => {\n // Use custom Hook to handle typewriter effect\n const { displayContent, isComplete } = useTypewriterStateMachine({\n // processMarkdownText will let code block printf(\"You win!\\n\") become printf(\"You win!<br/>\");\n // content: processMarkdownText(content),\n content: content,\n typingSpeed,\n disabled: !enableTypewriter,\n });\n const components: CustomComponents = {\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={onClickCustomButtonAfterContent}\n >\n {children}\n </button>\n );\n },\n \"custom-variable\": (props) => (\n <CustomButtonInputVariable\n {...props}\n readonly={readonly}\n defaultButtonText={defaultButtonText}\n defaultInputText={defaultInputText}\n defaultSelectedValues={defaultSelectedValues}\n onSend={onSend}\n beforeSend={beforeSend}\n confirmButtonText={confirmButtonText}\n // tooltipMinLength={tooltipMinLength}\n />\n ),\n code: (props) => {\n const { className, children, ...rest } = props as {\n className?: string;\n children?: React.ReactNode;\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 frozen = mermaidBlockIsComplete(content, chartContent);\n return <MermaidChart chart={chartContent} frozen={frozen} />;\n }\n\n return (\n <code className={className} {...rest}>\n {children}\n </code>\n );\n },\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={copyButtonText}\n copiedButtonText={copiedButtonText}\n />\n ),\n };\n\n const hasCompleted = useRef(false);\n\n useEffect(() => {\n if (isComplete && !hasCompleted.current) {\n hasCompleted.current = true; // Mark as completed\n onTypeFinished?.(); // Call the passed callback\n }\n }, [isComplete, onTypeFinished]);\n useEffect(() => {\n hasCompleted.current = false; // Reset completion status when content changes\n }, [content]);\n\n const segments = parseMarkdownSegments(displayContent);\n\n return (\n <div className={`content-render markdown-body`}>\n {segments.map((seg, index) => {\n if (seg.type === \"text\") {\n return (\n <ReactMarkdown\n key={index}\n remarkPlugins={[remarkGfm, remarkMath, remarkFlow, remarkBreaks]}\n rehypePlugins={[\n preserveCustomVariableProperties,\n rehypeRaw,\n restoreCustomVariableProperties,\n [\n rehypeHighlight,\n { languages: highlightLanguages, subset: subsetLanguages },\n ],\n rehypeKatex,\n ]}\n components={components}\n >\n {seg.value}\n </ReactMarkdown>\n );\n }\n\n if (seg.type === \"mermaid\") {\n return (\n <MermaidChart\n key={index}\n chart={seg.value}\n frozen={!seg.complete}\n />\n );\n }\n\n if (seg.type === \"svg\") {\n return <SvgBlockInShadow key={index} svg={seg.value} />;\n }\n\n if (seg.type === \"html\") {\n return (\n <ContentHtml\n key={index}\n html={seg.value}\n fullscreenButtonText={fullscreenButtonText}\n />\n );\n }\n\n return null;\n })}\n\n {contentHtmlPayload &&\n (contentType === \"blackboard\" ? (\n <ContentBlackboard\n payload={contentHtmlPayload}\n renderNarrationAsCaption={renderNarrationAsCaption}\n maxVisibleStepNumber={maxVisibleStepNumber}\n visibleStepNumber={visibleStepNumber}\n />\n ) : (\n <ContentHtml\n payload={contentHtmlPayload}\n fullscreenButtonText={fullscreenButtonText}\n />\n ))}\n\n {customRenderBar &&\n React.createElement(customRenderBar, {\n content,\n displayContent,\n onSend,\n })}\n </div>\n );\n};\n\nexport default ContentRender;\n"],"names":["SvgBlockInShadow","svg","hostRef","useRef","useEffect","host","shadowRoot","jsx","ContentRender","content","customRenderBar","onSend","typingSpeed","enableTypewriter","defaultButtonText","defaultInputText","defaultSelectedValues","readonly","onTypeFinished","confirmButtonText","copyButtonText","copiedButtonText","fullscreenButtonText","onClickCustomButtonAfterContent","beforeSend","contentHtmlPayload","contentType","renderNarrationAsCaption","maxVisibleStepNumber","visibleStepNumber","displayContent","isComplete","useTypewriterStateMachine","components","children","props","CustomButtonInputVariable","className","rest","chartContent","frozen","mermaidBlockIsComplete","MermaidChart","node","CodeBlock","hasCompleted","segments","parseMarkdownSegments","jsxs","seg","index","ReactMarkdown","remarkGfm","remarkMath","remarkFlow","remarkBreaks","preserveCustomVariableProperties","rehypeRaw","restoreCustomVariableProperties","rehypeHighlight","highlightLanguages","subsetLanguages","rehypeKatex","ContentHtml","ContentBlackboard","React"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAoFA,MAAMA,KAA8C,CAAC,EAAE,KAAAC,QAAU;AAC/D,QAAMC,IAAUC,EAAuB,IAAI;AAE3C,SAAAC,EAAU,MAAM;AACd,UAAMC,IAAOH,EAAQ;AACrB,QAAI,CAACG,EAAM;AACX,UAAMC,IAAaD,EAAK,cAAcA,EAAK,aAAa,EAAE,MAAM,QAAQ;AACxE,IAAAC,EAAW,YAAYL;AAAA,EACzB,GAAG,CAACA,CAAG,CAAC,GAEDM,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAU,sBAAqB,KAAKL,GAAS;AAC3D,GASMM,KAA8C,CAAC;AAAA,EACnD,SAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,QAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,kBAAAC,IAAmB;AAAA,EACnB,mBAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,uBAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,gBAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,sBAAAC;AAAA,EACA,iCAAAC;AAAA,EACA,YAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,0BAAAC,IAA2B;AAAA,EAC3B,sBAAAC;AAAA,EACA,mBAAAC;AAAA;AAEF,MAAM;AAEJ,QAA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AAhBC,CAAuB,IAGnDD,EAAI,SAAS,SAEb1C,gBAAAA,EAAAA;AAAAA,MAACwD;AAAA,MAAA;AAAA,QAEC,MAAMd,EAAI;AAAA,QACV,sBAAA3B;AAAA,MAAA;AAAA,MAFK4B;AAAA,IAAA,IAOJ,IACR;AAAA,IAEAzB,MACEC,MAAgB,eACfnB,gBAAAA,EAAAA;AAAAA,MAACyD;AAAA,MAAA;AAAA,QACC,SAASvC;AAAA,QACT,0BAAAE;AAAA,QACA,sBAAAC;AAAA,QACA,mBAAAC;AAAA,MAAA;AAAA,IAAA,IAGFtB,gBAAAA,EAAAA;AAAAA,MAACwD;AAAA,MAAA;AAAA,QACC,SAAStC;AAAA,QACT,sBAAAH;AAAA,MAAA;AAAA,IAAA;AAAA,IAILZ,KACCuD,EAAM,cAAcvD,GAAiB;AAAA,MACnC,SAAAD;AAAA,MACA,gBAAAqB;AAAA,MACA,QAAAnB;AAAA,IAAA,CACD;AAAA,EAAA,GACL;AAEJ;"}
1
+ {"version":3,"file":"ContentRender.js","sources":["../../../src/components/ContentRender/ContentRender.tsx"],"sourcesContent":["import \"highlight.js/styles/github.css\";\nimport \"katex/dist/katex.min.css\";\nimport React, { useEffect, useRef } from \"react\";\nimport ReactMarkdown from \"react-markdown\";\nimport rehypeHighlight from \"rehype-highlight\";\nimport rehypeKatex from \"rehype-katex\";\nimport rehypeRaw from \"rehype-raw\";\nimport remarkBreaks from \"remark-breaks\";\nimport remarkFlow from \"remark-flow\";\nimport remarkGfm from \"remark-gfm\";\nimport remarkMath from \"remark-math\";\nimport { CustomRenderBarProps, OnSendContentParams } from \"../types\";\nimport \"./contentRender.css\";\nimport \"./github-markdown-light.css\";\nimport CodeBlock from \"./CodeBlock\";\nimport CustomButtonInputVariable, {\n ComponentsWithCustomVariable,\n} from \"./plugins/CustomVariable\";\nimport MermaidChart from \"./plugins/MermaidChart\";\nimport useTypewriterStateMachine from \"./useTypewriterStateMachine\";\nimport {\n preserveCustomVariableProperties,\n restoreCustomVariableProperties,\n} from \"./utils/custom-variable-props\";\nimport {\n highlightLanguages,\n subsetLanguages,\n} from \"./utils/highlight-languages\";\n// import { processMarkdownText } from \"./utils/process-markdown\";\nimport {\n parseMarkdownSegments,\n mermaidBlockIsComplete,\n} from \"./utils/mermaid-parse\";\n// Define component Props type\nexport interface ContentRenderProps {\n content: string;\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 enableTypewriter?: boolean;\n defaultButtonText?: string;\n defaultInputText?: string; // Text input by user\n defaultSelectedValues?: string[]; // Default selected values for multi-select\n readonly?: boolean;\n onTypeFinished?: () => void;\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 beforeSend?: (param: OnSendContentParams) => boolean;\n // tooltipMinLength?: number; // Control minimum character length for tooltip display, default 10\n}\n\n// Render svg string via Shadow DOM to avoid markdown wrapping\nconst SvgBlockInShadow: React.FC<{ svg: string }> = ({ svg }) => {\n const hostRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n const host = hostRef.current;\n if (!host) return;\n const shadowRoot = host.shadowRoot ?? host.attachShadow({ mode: \"open\" });\n shadowRoot.innerHTML = svg;\n }, [svg]);\n\n return <div className=\"content-render-svg\" ref={hostRef} />;\n};\n\n// Extended component interface\ntype CustomComponents = ComponentsWithCustomVariable & {\n \"custom-button-after-content\"?: React.ComponentType<{\n children: React.ReactNode;\n }>;\n};\n\nconst ContentRender: React.FC<ContentRenderProps> = ({\n content,\n customRenderBar,\n onSend,\n typingSpeed = 30,\n enableTypewriter = false,\n defaultButtonText,\n defaultInputText,\n defaultSelectedValues,\n readonly = false,\n onTypeFinished,\n confirmButtonText,\n copyButtonText,\n copiedButtonText,\n onClickCustomButtonAfterContent,\n beforeSend,\n // tooltipMinLength,\n}) => {\n // Use custom Hook to handle typewriter effect\n const { displayContent, isComplete } = useTypewriterStateMachine({\n // processMarkdownText will let code block printf(\"You win!\\n\") become printf(\"You win!<br/>\");\n // content: processMarkdownText(content),\n content: content,\n typingSpeed,\n disabled: !enableTypewriter,\n });\n\n const components: CustomComponents = {\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={onClickCustomButtonAfterContent}\n >\n {children}\n </button>\n );\n },\n \"custom-variable\": (props) => (\n <CustomButtonInputVariable\n {...props}\n readonly={readonly}\n defaultButtonText={defaultButtonText}\n defaultInputText={defaultInputText}\n defaultSelectedValues={defaultSelectedValues}\n onSend={onSend}\n beforeSend={beforeSend}\n confirmButtonText={confirmButtonText}\n // tooltipMinLength={tooltipMinLength}\n />\n ),\n code: (props) => {\n const { className, children, ...rest } = props as {\n className?: string;\n children?: React.ReactNode;\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 frozen = mermaidBlockIsComplete(content, chartContent);\n return <MermaidChart chart={chartContent} frozen={frozen} />;\n }\n\n return (\n <code className={className} {...rest}>\n {children}\n </code>\n );\n },\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={copyButtonText}\n copiedButtonText={copiedButtonText}\n />\n ),\n };\n\n const hasCompleted = useRef(false);\n\n useEffect(() => {\n if (isComplete && !hasCompleted.current) {\n hasCompleted.current = true; // Mark as completed\n onTypeFinished?.(); // Call the passed callback\n }\n }, [isComplete, onTypeFinished]);\n useEffect(() => {\n hasCompleted.current = false; // Reset completion status when content changes\n }, [content]);\n\n const segments = parseMarkdownSegments(displayContent);\n\n return (\n <div className={`content-render markdown-body`}>\n {segments.map((seg, index) => {\n if (seg.type === \"text\") {\n return (\n <ReactMarkdown\n key={index}\n remarkPlugins={[remarkGfm, remarkMath, remarkFlow, remarkBreaks]}\n rehypePlugins={[\n preserveCustomVariableProperties,\n rehypeRaw,\n restoreCustomVariableProperties,\n [\n rehypeHighlight,\n { languages: highlightLanguages, subset: subsetLanguages },\n ],\n rehypeKatex,\n ]}\n components={components}\n >\n {seg.value}\n </ReactMarkdown>\n );\n }\n\n if (seg.type === \"mermaid\") {\n return (\n <MermaidChart\n key={index}\n chart={seg.value}\n frozen={!seg.complete}\n />\n );\n }\n\n if (seg.type === \"svg\") {\n return <SvgBlockInShadow key={index} svg={seg.value} />;\n }\n })}\n\n {customRenderBar &&\n React.createElement(customRenderBar, {\n content,\n displayContent,\n onSend,\n })}\n </div>\n );\n};\n\nexport default ContentRender;\n"],"names":["SvgBlockInShadow","svg","hostRef","useRef","useEffect","host","shadowRoot","jsx","ContentRender","content","customRenderBar","onSend","typingSpeed","enableTypewriter","defaultButtonText","defaultInputText","defaultSelectedValues","readonly","onTypeFinished","confirmButtonText","copyButtonText","copiedButtonText","onClickCustomButtonAfterContent","beforeSend","displayContent","isComplete","useTypewriterStateMachine","components","children","props","CustomButtonInputVariable","className","rest","chartContent","frozen","mermaidBlockIsComplete","MermaidChart","node","CodeBlock","hasCompleted","segments","parseMarkdownSegments","jsxs","seg","index","ReactMarkdown","remarkGfm","remarkMath","remarkFlow","remarkBreaks","preserveCustomVariableProperties","rehypeRaw","restoreCustomVariableProperties","rehypeHighlight","highlightLanguages","subsetLanguages","rehypeKatex","React"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAsEA,MAAMA,IAA8C,CAAC,EAAE,KAAAC,QAAU;AAC/D,QAAMC,IAAUC,EAAuB,IAAI;AAE3C,SAAAC,EAAU,MAAM;AACd,UAAMC,IAAOH,EAAQ;AACrB,QAAI,CAACG,EAAM;AACX,UAAMC,IAAaD,EAAK,cAAcA,EAAK,aAAa,EAAE,MAAM,QAAQ;AACxE,IAAAC,EAAW,YAAYL;AAAA,EACzB,GAAG,CAACA,CAAG,CAAC,GAEDM,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAU,sBAAqB,KAAKL,GAAS;AAC3D,GASMM,KAA8C,CAAC;AAAA,EACnD,SAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,QAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,kBAAAC,IAAmB;AAAA,EACnB,mBAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,uBAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,gBAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,iCAAAC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UAAID,EAAI,SAAS;AACf,eAAOpC,gBAAAA,EAAAA,IAACP,GAAA,EAA6B,KAAK2C,EAAI,SAAhBC,CAAuB;AAAA,IAEzD,CAAC;AAAA,IAEAlC,KACC+C,EAAM,cAAc/C,GAAiB;AAAA,MACnC,SAAAD;AAAA,MACA,gBAAAe;AAAA,MACA,QAAAb;AAAA,IAAA,CACD;AAAA,EAAA,GACL;AAEJ;"}
@@ -1,8 +1,7 @@
1
1
  import { StoryObj } from '@storybook/nextjs-vite';
2
- import { default as React } from 'react';
3
2
  declare const meta: {
4
3
  title: string;
5
- component: React.FC<import('./ContentRender').ContentRenderProps>;
4
+ component: import('react').FC<import('./ContentRender').ContentRenderProps>;
6
5
  parameters: {
7
6
  layout: string;
8
7
  };
@@ -12,10 +11,6 @@ declare const meta: {
12
11
  control: "text";
13
12
  description: string;
14
13
  };
15
- fullscreenButtonText: {
16
- control: "text";
17
- description: string;
18
- };
19
14
  };
20
15
  args: {
21
16
  content: string;
@@ -36,11 +31,5 @@ export declare const InteractiveMultiSelectDemo: Story;
36
31
  export declare const ChineseMultiSelectDemo: Story;
37
32
  export declare const NativeHtmlElements: Story;
38
33
  export declare const CodeBlockShowcase: Story;
39
- export declare const HtmlCodeBlockAsCode: Story;
40
34
  export declare const EnglishChineseTypographyPreview: Story;
41
35
  export declare const SVGDemo: Story;
42
- export declare const HtmlIframeDemo: Story;
43
- export declare const HtmlIframeWithLoading: Story;
44
- export declare const HtmlChunkStreaming: Story;
45
- export declare const HtmlChunkStreamingWithCaption: Story;
46
- export declare const HtmlChunkStreamingManual: Story;
@@ -4,5 +4,4 @@ export { default as ContentRender } from './ContentRender';
4
4
  export { default as MarkdownFlowInput } from './MarkdownFlowInput';
5
5
  export { default as useTypewriter } from './useTypewriter';
6
6
  export { default as useTypewriterStateMachine } from './useTypewriterStateMachine';
7
- export { default as ContentBlackboard } from './ContentBlackboard';
8
7
  export type { MarkdownFlowInputProps } from './MarkdownFlowInput';
@@ -1,25 +1,25 @@
1
- import o from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/javascript.js";
2
- import m from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/typescript.js";
3
- import r from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python.js";
4
- import i from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/java.js";
5
- import t from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/xml.js";
6
- import a from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/css.js";
7
- import f from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/json.js";
8
- import p from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/bash.js";
9
- import l from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sql.js";
10
- import s from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/markdown.js";
11
- import h from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/c.js";
12
- import c from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/cpp.js";
13
- import e from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/go.js";
14
- import n from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/plaintext.js";
15
- import g from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/rust.js";
16
- import j from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/shell.js";
17
- import u from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/scss.js";
18
- import x from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/yaml.js";
19
- import y from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vhdl.js";
20
- import v from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/latex.js";
21
- import d from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/lua.js";
22
- import b from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/php.js";
1
+ import o from "../../../node_modules/highlight.js/es/languages/javascript.js";
2
+ import m from "../../../node_modules/highlight.js/es/languages/typescript.js";
3
+ import r from "../../../node_modules/highlight.js/es/languages/python.js";
4
+ import i from "../../../node_modules/highlight.js/es/languages/java.js";
5
+ import t from "../../../node_modules/highlight.js/es/languages/xml.js";
6
+ import a from "../../../node_modules/highlight.js/es/languages/css.js";
7
+ import f from "../../../node_modules/highlight.js/es/languages/json.js";
8
+ import p from "../../../node_modules/highlight.js/es/languages/bash.js";
9
+ import l from "../../../node_modules/highlight.js/es/languages/sql.js";
10
+ import s from "../../../node_modules/highlight.js/es/languages/markdown.js";
11
+ import h from "../../../node_modules/highlight.js/es/languages/c.js";
12
+ import c from "../../../node_modules/highlight.js/es/languages/cpp.js";
13
+ import e from "../../../node_modules/highlight.js/es/languages/go.js";
14
+ import n from "../../../node_modules/highlight.js/es/languages/plaintext.js";
15
+ import g from "../../../node_modules/highlight.js/es/languages/rust.js";
16
+ import j from "../../../node_modules/highlight.js/es/languages/shell.js";
17
+ import u from "../../../node_modules/highlight.js/es/languages/scss.js";
18
+ import x from "../../../node_modules/highlight.js/es/languages/yaml.js";
19
+ import y from "../../../node_modules/highlight.js/es/languages/vhdl.js";
20
+ import v from "../../../node_modules/highlight.js/es/languages/latex.js";
21
+ import d from "../../../node_modules/highlight.js/es/languages/lua.js";
22
+ import b from "../../../node_modules/highlight.js/es/languages/php.js";
23
23
  const S = {
24
24
  javascript: o,
25
25
  js: o,
@@ -9,10 +9,6 @@ export declare function parseMarkdownSegments(markdown: string): ({
9
9
  type: "svg";
10
10
  value: string;
11
11
  complete: boolean;
12
- } | {
13
- type: "html";
14
- value: string;
15
- complete: boolean;
16
12
  })[];
17
13
  export declare function parseMermaidBlocks(fullMarkdown: string): {
18
14
  code: string;