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
@@ -1,143 +1,96 @@
1
- function B(s) {
2
- const e = [], u = (c) => {
3
- const r = /```/g;
4
- let l, n = !1;
5
- for (; (l = r.exec(s)) !== null && l.index < c; )
6
- n = !n;
7
- return n;
8
- }, o = /```[\s\S]*?```|<!DOCTYPE html[\s\S]*?<\/html>|<html[\s\S]*?<\/html>|<svg[\s\S]*?<\/svg>/gi;
9
- let t = 0, i;
10
- for (; (i = o.exec(s)) !== null; ) {
11
- const c = i.index, r = o.lastIndex, l = i[0];
12
- if (c > t && e.push({
1
+ function d(e) {
2
+ const t = [], n = /```[\s\S]*?```|<svg[\s\S]*?<\/svg>/g;
3
+ let s = 0, i;
4
+ for (; (i = n.exec(e)) !== null; ) {
5
+ const u = i.index, a = n.lastIndex, r = i[0];
6
+ if (u > s && t.push({
13
7
  type: "text",
14
- value: s.slice(t, c)
15
- }), l.startsWith("```mermaid")) {
16
- const n = l.replace(/^```mermaid/, "").replace(/```$/, "").trim();
17
- e.push({
8
+ value: e.slice(s, u)
9
+ }), r.startsWith("```mermaid")) {
10
+ const f = r.replace(/^```mermaid/, "").replace(/```$/, "").trim();
11
+ t.push({
18
12
  type: "mermaid",
19
- value: n,
13
+ value: f,
20
14
  complete: !0
21
15
  });
22
- } else if (l.startsWith("```"))
23
- e.push({
24
- type: "text",
25
- value: l
26
- });
27
- else if (/^<svg/i.test(l)) {
28
- if (u(c)) {
29
- e.push({
30
- type: "text",
31
- value: l
32
- }), t = r;
33
- continue;
34
- }
35
- e.push({
36
- type: "svg",
37
- value: l,
38
- complete: !0
39
- });
40
- } else {
41
- if (u(c)) {
42
- e.push({
43
- type: "text",
44
- value: l
45
- }), t = r;
46
- continue;
47
- }
48
- e.push({
49
- type: "html",
50
- value: l,
51
- complete: !0
52
- });
53
- }
54
- t = r;
16
+ } else r.startsWith("```") ? t.push({
17
+ type: "text",
18
+ value: r
19
+ }) : t.push({
20
+ type: "svg",
21
+ value: r,
22
+ complete: !0
23
+ });
24
+ s = a;
55
25
  }
56
- const p = s.indexOf("```", t), a = s.toLowerCase(), d = (c, r, l) => {
57
- let n = a.lastIndexOf(c);
58
- const f = a.lastIndexOf(r);
59
- if (n === -1 || f !== -1 && f > n) {
60
- const v = l.find(
61
- (I) => a.endsWith(I)
62
- );
63
- v && (n = s.length - v.length);
64
- }
65
- return !(p !== -1 && p < n) && n !== -1 && (f === -1 || f < n) && n >= t ? n : -1;
66
- }, x = d("<html", "</html>", [
67
- "<htm",
68
- "<ht"
69
- ]), g = d("<svg", "</svg>", [
70
- "<sv",
71
- "<s"
72
- ]), h = Math.max(x, g);
73
- if (h !== -1)
74
- return h > t && e.push({
26
+ let l = e.lastIndexOf("<svg");
27
+ const c = e.lastIndexOf("</svg>");
28
+ (l === -1 || c !== -1 && c > l) && (e.endsWith("<sv") ? l = e.length - 3 : e.endsWith("<s") && (l = e.length - 2));
29
+ const o = e.indexOf("```", s);
30
+ if (!(o !== -1 && o < l) && l !== -1 && (c === -1 || c < l) && l >= s)
31
+ return l > s && t.push({
75
32
  type: "text",
76
- value: s.slice(t, h)
77
- }), h === x ? e.push({
78
- type: "html",
79
- value: s.slice(h),
80
- complete: !1
81
- }) : e.push({
33
+ value: e.slice(s, l)
34
+ }), t.push({
82
35
  type: "svg",
83
- value: s.slice(h),
36
+ value: e.slice(l),
84
37
  complete: !1
85
- }), e;
86
- const m = s.lastIndexOf("```mermaid");
87
- if (m !== -1 && m >= t && // Ensure this mermaid block isn't inside another code block (unlikely but safe to check)
38
+ }), t;
39
+ const p = e.lastIndexOf("```mermaid");
40
+ if (p !== -1 && p >= s && // Ensure this mermaid block isn't inside another code block (unlikely but safe to check)
88
41
  // Actually, incompleteCodeBlockStart would capture this "```mermaid" as just "```"
89
42
  // so we need to be careful.
90
43
  // If incompleteCodeBlockStart points to THIS mermaid block, we process it as mermaid.
91
- m === p) {
92
- const c = s.slice(m + 10);
93
- return e.push({
44
+ p === o) {
45
+ const u = e.slice(p + 10);
46
+ return t.push({
94
47
  type: "mermaid",
95
- value: c.trim(),
48
+ value: u.trim(),
96
49
  complete: !1
97
- }), m > t && e.push({
50
+ }), p > s && t.push({
98
51
  type: "text",
99
- value: s.slice(t, m)
100
- }), e;
52
+ value: e.slice(s, p)
53
+ }), t;
101
54
  }
102
- return t < s.length && e.push({
55
+ return s < e.length && t.push({
103
56
  type: "text",
104
- value: s.slice(t)
105
- }), e;
57
+ value: e.slice(s)
58
+ }), t;
106
59
  }
107
- function y(s) {
108
- const e = [], u = s.split(/\r?\n/);
109
- let o = !1, t = [], i = 0;
110
- return u.forEach((p, a) => {
111
- if (!o) {
112
- p.trim().startsWith("```mermaid") && (o = !0, i = a, t = []);
60
+ function h(e) {
61
+ const t = [], n = e.split(/\r?\n/);
62
+ let s = !1, i = [], l = 0;
63
+ return n.forEach((c, o) => {
64
+ if (!s) {
65
+ c.trim().startsWith("```mermaid") && (s = !0, l = o, i = []);
113
66
  return;
114
67
  }
115
- if (p.trim() === "```") {
116
- e.push({
117
- code: t.join(`
68
+ if (c.trim() === "```") {
69
+ t.push({
70
+ code: i.join(`
118
71
  `).trim(),
119
- startLine: i,
120
- endLine: a,
72
+ startLine: l,
73
+ endLine: o,
121
74
  complete: !0
122
- }), o = !1;
75
+ }), s = !1;
123
76
  return;
124
77
  }
125
- t.push(p);
126
- }), o && e.push({
127
- code: t.join(`
78
+ i.push(c);
79
+ }), s && t.push({
80
+ code: i.join(`
128
81
  `).trim(),
129
- startLine: i,
82
+ startLine: l,
130
83
  endLine: null,
131
84
  complete: !1
132
- }), e;
85
+ }), t;
133
86
  }
134
- function M(s, e) {
135
- const u = e.trim(), t = y(s).find((i) => i.code === u);
136
- return t ? t.complete : !1;
87
+ function g(e, t) {
88
+ const n = t.trim(), i = h(e).find((l) => l.code === n);
89
+ return i ? i.complete : !1;
137
90
  }
138
91
  export {
139
- M as mermaidBlockIsComplete,
140
- B as parseMarkdownSegments,
141
- y as parseMermaidBlocks
92
+ g as mermaidBlockIsComplete,
93
+ d as parseMarkdownSegments,
94
+ h as parseMermaidBlocks
142
95
  };
143
96
  //# sourceMappingURL=mermaid-parse.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mermaid-parse.js","sources":["../../../../src/components/ContentRender/utils/mermaid-parse.ts"],"sourcesContent":["export function parseMarkdownSegments(markdown: string) {\n const segments: Array<\n | { type: \"text\"; value: string }\n | { type: \"mermaid\"; value: string; complete: boolean }\n | { type: \"svg\"; value: string; complete: boolean }\n | { type: \"html\"; value: string; complete: boolean }\n > = [];\n\n const isInsideCodeFence = (position: number) => {\n const fenceRegex = /```/g;\n let matchFence;\n let inside = false;\n while (\n (matchFence = fenceRegex.exec(markdown)) !== null &&\n matchFence.index < position\n ) {\n inside = !inside;\n }\n return inside;\n };\n\n // Match:\n // 1. Generic code blocks (including mermaid): ``` ... ```\n // 2. SVG blocks: <svg ... </svg>\n // 3. Full HTML documents: <!DOCTYPE html> ... </html> or <html ... </html>\n const regex =\n /```[\\s\\S]*?```|<!DOCTYPE html[\\s\\S]*?<\\/html>|<html[\\s\\S]*?<\\/html>|<svg[\\s\\S]*?<\\/svg>/gi;\n\n let lastIndex = 0;\n let match;\n\n while ((match = regex.exec(markdown)) !== null) {\n const start = match.index;\n const end = regex.lastIndex;\n const rawMatch = match[0];\n\n // Preceding plain text\n if (start > lastIndex) {\n segments.push({\n type: \"text\",\n value: markdown.slice(lastIndex, start),\n });\n }\n\n // Complete mermaid block, generic code block, or svg block\n if (rawMatch.startsWith(\"```mermaid\")) {\n const code = rawMatch\n .replace(/^```mermaid/, \"\")\n .replace(/```$/, \"\")\n .trim();\n segments.push({\n type: \"mermaid\",\n value: code,\n complete: true,\n });\n } else if (rawMatch.startsWith(\"```\")) {\n // Generic code block - treat as text so ReactMarkdown renders it\n segments.push({\n type: \"text\",\n value: rawMatch,\n });\n } else if (/^<svg/i.test(rawMatch)) {\n if (isInsideCodeFence(start)) {\n segments.push({\n type: \"text\",\n value: rawMatch,\n });\n lastIndex = end;\n continue;\n }\n // SVG block\n segments.push({\n type: \"svg\",\n value: rawMatch,\n complete: true,\n });\n } else {\n if (isInsideCodeFence(start)) {\n segments.push({\n type: \"text\",\n value: rawMatch,\n });\n lastIndex = end;\n continue;\n }\n // HTML block\n segments.push({\n type: \"html\",\n value: rawMatch,\n complete: true,\n });\n }\n\n lastIndex = end;\n }\n\n // Check if we are inside an unclosed code block\n // If an unclosed code block starts AFTER the last complete segment (lastIndex),\n // and BEFORE the potential SVG start, then the SVG is inside the code block.\n const incompleteCodeBlockStart = markdown.indexOf(\"```\", lastIndex);\n const lowerMarkdown = markdown.toLowerCase();\n\n const findIncompleteBlockStart = (\n openTag: string,\n closeTag: string,\n partialEndings: string[]\n ) => {\n let openIndex = lowerMarkdown.lastIndexOf(openTag);\n const closeIndex = lowerMarkdown.lastIndexOf(closeTag);\n\n if (openIndex === -1 || (closeIndex !== -1 && closeIndex > openIndex)) {\n const partial = partialEndings.find((ending) =>\n lowerMarkdown.endsWith(ending)\n );\n if (partial) {\n openIndex = markdown.length - partial.length;\n }\n }\n\n const isInsideCodeBlock =\n incompleteCodeBlockStart !== -1 && incompleteCodeBlockStart < openIndex;\n\n const hasIncomplete =\n !isInsideCodeBlock &&\n openIndex !== -1 &&\n (closeIndex === -1 || closeIndex < openIndex) &&\n openIndex >= lastIndex;\n\n return hasIncomplete ? openIndex : -1;\n };\n\n const incompleteHtmlStart = findIncompleteBlockStart(\"<html\", \"</html>\", [\n \"<htm\",\n \"<ht\",\n ]);\n const incompleteSvgStart = findIncompleteBlockStart(\"<svg\", \"</svg>\", [\n \"<sv\",\n \"<s\",\n ]);\n\n const nextIncompleteStart = Math.max(incompleteHtmlStart, incompleteSvgStart);\n\n if (nextIncompleteStart !== -1) {\n if (nextIncompleteStart > lastIndex) {\n segments.push({\n type: \"text\",\n value: markdown.slice(lastIndex, nextIncompleteStart),\n });\n }\n\n if (nextIncompleteStart === incompleteHtmlStart) {\n segments.push({\n type: \"html\",\n value: markdown.slice(nextIncompleteStart),\n complete: false,\n });\n } else {\n segments.push({\n type: \"svg\",\n value: markdown.slice(nextIncompleteStart),\n complete: false,\n });\n }\n return segments;\n }\n\n // Check whether there is an unfinished mermaid block\n // Only if we are NOT inside a generic incomplete code block that started earlier\n // Actually, standard mermaid block starts with ```mermaid, so it IS a code block start.\n // We just need to check if it's specifically mermaid.\n const incompleteStart = markdown.lastIndexOf(\"```mermaid\");\n if (\n incompleteStart !== -1 &&\n incompleteStart >= lastIndex &&\n // Ensure this mermaid block isn't inside another code block (unlikely but safe to check)\n // Actually, incompleteCodeBlockStart would capture this \"```mermaid\" as just \"```\"\n // so we need to be careful.\n // If incompleteCodeBlockStart points to THIS mermaid block, we process it as mermaid.\n incompleteStart === incompleteCodeBlockStart\n ) {\n const code = markdown.slice(incompleteStart + 10);\n segments.push({\n type: \"mermaid\",\n value: code.trim(),\n complete: false,\n });\n\n if (incompleteStart > lastIndex) {\n segments.push({\n type: \"text\",\n value: markdown.slice(lastIndex, incompleteStart),\n });\n }\n\n return segments;\n }\n\n // Remaining text\n if (lastIndex < markdown.length) {\n segments.push({\n type: \"text\",\n value: markdown.slice(lastIndex),\n });\n }\n\n return segments;\n}\n\nexport function parseMermaidBlocks(fullMarkdown: string) {\n const blocks = [];\n const lines: string[] = fullMarkdown.split(/\\r?\\n/);\n\n let inside = false;\n let current: string[] = [];\n let startLine = 0;\n\n lines.forEach((line, index) => {\n if (!inside) {\n if (line.trim().startsWith(\"```mermaid\")) {\n inside = true;\n startLine = index;\n current = [];\n }\n return;\n }\n\n // inside mermaid mode\n if (line.trim() === \"```\") {\n // block complete\n blocks.push({\n code: current.join(\"\\n\").trim(),\n startLine,\n endLine: index,\n complete: true,\n });\n inside = false;\n return;\n }\n\n current.push(line);\n });\n\n // if still inside → incomplete block\n if (inside) {\n blocks.push({\n code: current.join(\"\\n\").trim(),\n startLine,\n endLine: null,\n complete: false,\n });\n }\n\n return blocks;\n}\n\n/**\n * Determine whether the mermaid block for the given codeString is fully closed.\n * @param fullMarkdown Full markdown text (grows over time in streaming scenarios)\n * @param codeString Mermaid block code passed to the renderer (children)\n */\nexport function mermaidBlockIsComplete(\n fullMarkdown: string,\n codeString: string\n) {\n const cleaned = codeString.trim();\n const blocks = parseMermaidBlocks(fullMarkdown);\n // Locate the block that matches the current codeString\n const block = blocks.find((b) => b.code === cleaned);\n\n if (!block) return false;\n\n // Block is complete when the closing fence already exists\n return block.complete;\n}\n"],"names":["parseMarkdownSegments","markdown","segments","isInsideCodeFence","position","fenceRegex","matchFence","inside","regex","lastIndex","match","start","end","rawMatch","code","incompleteCodeBlockStart","lowerMarkdown","findIncompleteBlockStart","openTag","closeTag","partialEndings","openIndex","closeIndex","partial","ending","incompleteHtmlStart","incompleteSvgStart","nextIncompleteStart","incompleteStart","parseMermaidBlocks","fullMarkdown","blocks","lines","current","startLine","line","index","mermaidBlockIsComplete","codeString","cleaned","block","b"],"mappings":"AAAO,SAASA,EAAsBC,GAAkB;AACtD,QAAMC,IAKF,CAAA,GAEEC,IAAoB,CAACC,MAAqB;AAC9C,UAAMC,IAAa;AACnB,QAAIC,GACAC,IAAS;AACb,YACGD,IAAaD,EAAW,KAAKJ,CAAQ,OAAO,QAC7CK,EAAW,QAAQF;AAEnB,MAAAG,IAAS,CAACA;AAEZ,WAAOA;AAAA,EACT,GAMMC,IACJ;AAEF,MAAIC,IAAY,GACZC;AAEJ,UAAQA,IAAQF,EAAM,KAAKP,CAAQ,OAAO,QAAM;AAC9C,UAAMU,IAAQD,EAAM,OACdE,IAAMJ,EAAM,WACZK,IAAWH,EAAM,CAAC;AAWxB,QARIC,IAAQF,KACVP,EAAS,KAAK;AAAA,MACZ,MAAM;AAAA,MACN,OAAOD,EAAS,MAAMQ,GAAWE,CAAK;AAAA,IAAA,CACvC,GAICE,EAAS,WAAW,YAAY,GAAG;AACrC,YAAMC,IAAOD,EACV,QAAQ,eAAe,EAAE,EACzB,QAAQ,QAAQ,EAAE,EAClB,KAAA;AACH,MAAAX,EAAS,KAAK;AAAA,QACZ,MAAM;AAAA,QACN,OAAOY;AAAA,QACP,UAAU;AAAA,MAAA,CACX;AAAA,IACH,WAAWD,EAAS,WAAW,KAAK;AAElC,MAAAX,EAAS,KAAK;AAAA,QACZ,MAAM;AAAA,QACN,OAAOW;AAAA,MAAA,CACR;AAAA,aACQ,SAAS,KAAKA,CAAQ,GAAG;AAClC,UAAIV,EAAkBQ,CAAK,GAAG;AAC5B,QAAAT,EAAS,KAAK;AAAA,UACZ,MAAM;AAAA,UACN,OAAOW;AAAA,QAAA,CACR,GACDJ,IAAYG;AACZ;AAAA,MACF;AAEA,MAAAV,EAAS,KAAK;AAAA,QACZ,MAAM;AAAA,QACN,OAAOW;AAAA,QACP,UAAU;AAAA,MAAA,CACX;AAAA,IACH,OAAO;AACL,UAAIV,EAAkBQ,CAAK,GAAG;AAC5B,QAAAT,EAAS,KAAK;AAAA,UACZ,MAAM;AAAA,UACN,OAAOW;AAAA,QAAA,CACR,GACDJ,IAAYG;AACZ;AAAA,MACF;AAEA,MAAAV,EAAS,KAAK;AAAA,QACZ,MAAM;AAAA,QACN,OAAOW;AAAA,QACP,UAAU;AAAA,MAAA,CACX;AAAA,IACH;AAEA,IAAAJ,IAAYG;AAAA,EACd;AAKA,QAAMG,IAA2Bd,EAAS,QAAQ,OAAOQ,CAAS,GAC5DO,IAAgBf,EAAS,YAAA,GAEzBgB,IAA2B,CAC/BC,GACAC,GACAC,MACG;AACH,QAAIC,IAAYL,EAAc,YAAYE,CAAO;AACjD,UAAMI,IAAaN,EAAc,YAAYG,CAAQ;AAErD,QAAIE,MAAc,MAAOC,MAAe,MAAMA,IAAaD,GAAY;AACrE,YAAME,IAAUH,EAAe;AAAA,QAAK,CAACI,MACnCR,EAAc,SAASQ,CAAM;AAAA,MAAA;AAE/B,MAAID,MACFF,IAAYpB,EAAS,SAASsB,EAAQ;AAAA,IAE1C;AAWA,WALE,EAHAR,MAA6B,MAAMA,IAA2BM,MAI9DA,MAAc,OACbC,MAAe,MAAMA,IAAaD,MACnCA,KAAaZ,IAEQY,IAAY;AAAA,EACrC,GAEMI,IAAsBR,EAAyB,SAAS,WAAW;AAAA,IACvE;AAAA,IACA;AAAA,EAAA,CACD,GACKS,IAAqBT,EAAyB,QAAQ,UAAU;AAAA,IACpE;AAAA,IACA;AAAA,EAAA,CACD,GAEKU,IAAsB,KAAK,IAAIF,GAAqBC,CAAkB;AAE5E,MAAIC,MAAwB;AAC1B,WAAIA,IAAsBlB,KACxBP,EAAS,KAAK;AAAA,MACZ,MAAM;AAAA,MACN,OAAOD,EAAS,MAAMQ,GAAWkB,CAAmB;AAAA,IAAA,CACrD,GAGCA,MAAwBF,IAC1BvB,EAAS,KAAK;AAAA,MACZ,MAAM;AAAA,MACN,OAAOD,EAAS,MAAM0B,CAAmB;AAAA,MACzC,UAAU;AAAA,IAAA,CACX,IAEDzB,EAAS,KAAK;AAAA,MACZ,MAAM;AAAA,MACN,OAAOD,EAAS,MAAM0B,CAAmB;AAAA,MACzC,UAAU;AAAA,IAAA,CACX,GAEIzB;AAOT,QAAM0B,IAAkB3B,EAAS,YAAY,YAAY;AACzD,MACE2B,MAAoB,MACpBA,KAAmBnB;AAAA;AAAA;AAAA;AAAA,EAKnBmB,MAAoBb,GACpB;AACA,UAAMD,IAAOb,EAAS,MAAM2B,IAAkB,EAAE;AAChD,WAAA1B,EAAS,KAAK;AAAA,MACZ,MAAM;AAAA,MACN,OAAOY,EAAK,KAAA;AAAA,MACZ,UAAU;AAAA,IAAA,CACX,GAEGc,IAAkBnB,KACpBP,EAAS,KAAK;AAAA,MACZ,MAAM;AAAA,MACN,OAAOD,EAAS,MAAMQ,GAAWmB,CAAe;AAAA,IAAA,CACjD,GAGI1B;AAAA,EACT;AAGA,SAAIO,IAAYR,EAAS,UACvBC,EAAS,KAAK;AAAA,IACZ,MAAM;AAAA,IACN,OAAOD,EAAS,MAAMQ,CAAS;AAAA,EAAA,CAChC,GAGIP;AACT;AAEO,SAAS2B,EAAmBC,GAAsB;AACvD,QAAMC,IAAS,CAAA,GACTC,IAAkBF,EAAa,MAAM,OAAO;AAElD,MAAIvB,IAAS,IACT0B,IAAoB,CAAA,GACpBC,IAAY;AAEhB,SAAAF,EAAM,QAAQ,CAACG,GAAMC,MAAU;AAC7B,QAAI,CAAC7B,GAAQ;AACX,MAAI4B,EAAK,KAAA,EAAO,WAAW,YAAY,MACrC5B,IAAS,IACT2B,IAAYE,GACZH,IAAU,CAAA;AAEZ;AAAA,IACF;AAGA,QAAIE,EAAK,KAAA,MAAW,OAAO;AAEzB,MAAAJ,EAAO,KAAK;AAAA,QACV,MAAME,EAAQ,KAAK;AAAA,CAAI,EAAE,KAAA;AAAA,QACzB,WAAAC;AAAA,QACA,SAASE;AAAA,QACT,UAAU;AAAA,MAAA,CACX,GACD7B,IAAS;AACT;AAAA,IACF;AAEA,IAAA0B,EAAQ,KAAKE,CAAI;AAAA,EACnB,CAAC,GAGG5B,KACFwB,EAAO,KAAK;AAAA,IACV,MAAME,EAAQ,KAAK;AAAA,CAAI,EAAE,KAAA;AAAA,IACzB,WAAAC;AAAA,IACA,SAAS;AAAA,IACT,UAAU;AAAA,EAAA,CACX,GAGIH;AACT;AAOO,SAASM,EACdP,GACAQ,GACA;AACA,QAAMC,IAAUD,EAAW,KAAA,GAGrBE,IAFSX,EAAmBC,CAAY,EAEzB,KAAK,CAACW,MAAMA,EAAE,SAASF,CAAO;AAEnD,SAAKC,IAGEA,EAAM,WAHM;AAIrB;"}
1
+ {"version":3,"file":"mermaid-parse.js","sources":["../../../../src/components/ContentRender/utils/mermaid-parse.ts"],"sourcesContent":["export function parseMarkdownSegments(markdown: string) {\n const segments: Array<\n | { type: \"text\"; value: string }\n | { type: \"mermaid\"; value: string; complete: boolean }\n | { type: \"svg\"; value: string; complete: boolean }\n > = [];\n\n // Match:\n // 1. Generic code blocks (including mermaid): ``` ... ```\n // 2. SVG blocks: <svg ... </svg>\n const regex = /```[\\s\\S]*?```|<svg[\\s\\S]*?<\\/svg>/g;\n\n let lastIndex = 0;\n let match;\n\n while ((match = regex.exec(markdown)) !== null) {\n const start = match.index;\n const end = regex.lastIndex;\n const rawMatch = match[0];\n\n // Preceding plain text\n if (start > lastIndex) {\n segments.push({\n type: \"text\",\n value: markdown.slice(lastIndex, start),\n });\n }\n\n // Complete mermaid block, generic code block, or svg block\n if (rawMatch.startsWith(\"```mermaid\")) {\n const code = rawMatch\n .replace(/^```mermaid/, \"\")\n .replace(/```$/, \"\")\n .trim();\n segments.push({\n type: \"mermaid\",\n value: code,\n complete: true,\n });\n } else if (rawMatch.startsWith(\"```\")) {\n // Generic code block - treat as text so ReactMarkdown renders it\n segments.push({\n type: \"text\",\n value: rawMatch,\n });\n } else {\n // SVG block\n segments.push({\n type: \"svg\",\n value: rawMatch,\n complete: true,\n });\n }\n\n lastIndex = end;\n }\n\n // Handle unfinished svg block to avoid leaking raw tags while streaming\n let incompleteSvgStart = markdown.lastIndexOf(\"<svg\");\n const lastSvgClose = markdown.lastIndexOf(\"</svg>\");\n\n // If we haven't found an open <svg tag (or the last one is closed),\n // check if the string ends with a partial <svg tag (<s, <sv).\n if (\n incompleteSvgStart === -1 ||\n (lastSvgClose !== -1 && lastSvgClose > incompleteSvgStart)\n ) {\n if (markdown.endsWith(\"<sv\")) {\n incompleteSvgStart = markdown.length - 3;\n } else if (markdown.endsWith(\"<s\")) {\n incompleteSvgStart = markdown.length - 2;\n }\n }\n\n // Check if we are inside an unclosed code block\n // If an unclosed code block starts AFTER the last complete segment (lastIndex),\n // and BEFORE the potential SVG start, then the SVG is inside the code block.\n const incompleteCodeBlockStart = markdown.indexOf(\"```\", lastIndex);\n const isInsideCodeBlock =\n incompleteCodeBlockStart !== -1 &&\n incompleteCodeBlockStart < incompleteSvgStart;\n\n const hasIncompleteSvg =\n !isInsideCodeBlock &&\n incompleteSvgStart !== -1 &&\n (lastSvgClose === -1 || lastSvgClose < incompleteSvgStart) &&\n incompleteSvgStart >= lastIndex;\n\n if (hasIncompleteSvg) {\n if (incompleteSvgStart > lastIndex) {\n segments.push({\n type: \"text\",\n value: markdown.slice(lastIndex, incompleteSvgStart),\n });\n }\n\n segments.push({\n type: \"svg\",\n value: markdown.slice(incompleteSvgStart),\n complete: false,\n });\n return segments;\n }\n\n // Check whether there is an unfinished mermaid block\n // Only if we are NOT inside a generic incomplete code block that started earlier\n // Actually, standard mermaid block starts with ```mermaid, so it IS a code block start.\n // We just need to check if it's specifically mermaid.\n const incompleteStart = markdown.lastIndexOf(\"```mermaid\");\n if (\n incompleteStart !== -1 &&\n incompleteStart >= lastIndex &&\n // Ensure this mermaid block isn't inside another code block (unlikely but safe to check)\n // Actually, incompleteCodeBlockStart would capture this \"```mermaid\" as just \"```\"\n // so we need to be careful.\n // If incompleteCodeBlockStart points to THIS mermaid block, we process it as mermaid.\n incompleteStart === incompleteCodeBlockStart\n ) {\n const code = markdown.slice(incompleteStart + 10);\n segments.push({\n type: \"mermaid\",\n value: code.trim(),\n complete: false,\n });\n\n if (incompleteStart > lastIndex) {\n segments.push({\n type: \"text\",\n value: markdown.slice(lastIndex, incompleteStart),\n });\n }\n\n return segments;\n }\n\n // Remaining text\n if (lastIndex < markdown.length) {\n segments.push({\n type: \"text\",\n value: markdown.slice(lastIndex),\n });\n }\n\n return segments;\n}\n\nexport function parseMermaidBlocks(fullMarkdown: string) {\n const blocks = [];\n const lines: string[] = fullMarkdown.split(/\\r?\\n/);\n\n let inside = false;\n let current: string[] = [];\n let startLine = 0;\n\n lines.forEach((line, index) => {\n if (!inside) {\n if (line.trim().startsWith(\"```mermaid\")) {\n inside = true;\n startLine = index;\n current = [];\n }\n return;\n }\n\n // inside mermaid mode\n if (line.trim() === \"```\") {\n // block complete\n blocks.push({\n code: current.join(\"\\n\").trim(),\n startLine,\n endLine: index,\n complete: true,\n });\n inside = false;\n return;\n }\n\n current.push(line);\n });\n\n // if still inside → incomplete block\n if (inside) {\n blocks.push({\n code: current.join(\"\\n\").trim(),\n startLine,\n endLine: null,\n complete: false,\n });\n }\n\n return blocks;\n}\n\n/**\n * Determine whether the mermaid block for the given codeString is fully closed.\n * @param fullMarkdown Full markdown text (grows over time in streaming scenarios)\n * @param codeString Mermaid block code passed to the renderer (children)\n */\nexport function mermaidBlockIsComplete(\n fullMarkdown: string,\n codeString: string\n) {\n const cleaned = codeString.trim();\n const blocks = parseMermaidBlocks(fullMarkdown);\n // Locate the block that matches the current codeString\n const block = blocks.find((b) => b.code === cleaned);\n\n if (!block) return false;\n\n // Block is complete when the closing fence already exists\n return block.complete;\n}\n"],"names":["parseMarkdownSegments","markdown","segments","regex","lastIndex","match","start","end","rawMatch","code","incompleteSvgStart","lastSvgClose","incompleteCodeBlockStart","incompleteStart","parseMermaidBlocks","fullMarkdown","blocks","lines","inside","current","startLine","line","index","mermaidBlockIsComplete","codeString","cleaned","block","b"],"mappings":"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"}
@@ -11,12 +11,6 @@ export interface MarkdownFlowProps {
11
11
  customRenderBar?: CustomRenderBarProps;
12
12
  onClickCustomButtonAfterContent?: () => void;
13
13
  dynamicInteractionFormat?: string;
14
- fullscreenButtonText?: string;
15
- contentHtmlPayload?: string;
16
- contentType?: "default" | "blackboard";
17
- renderNarrationAsCaption?: boolean;
18
- maxVisibleStepNumber?: number;
19
- visibleStepNumber?: number;
20
14
  }[];
21
15
  customRenderBar?: CustomRenderBarProps;
22
16
  onSend?: (content: OnSendContentParams) => void;
@@ -27,7 +21,6 @@ export interface MarkdownFlowProps {
27
21
  copyButtonText?: string;
28
22
  copiedButtonText?: string;
29
23
  beforeSend?: (content: OnSendContentParams) => boolean;
30
- fullscreenButtonText?: string;
31
24
  }
32
25
  declare const MarkdownFlow: React.FC<MarkdownFlowProps>;
33
26
  export default MarkdownFlow;
@@ -1,23 +1,22 @@
1
- import { j as a } from "../../_virtual/jsx-runtime.js";
1
+ import { j as o } from "../../_virtual/jsx-runtime.js";
2
2
  import B from "../ContentRender/ContentRender.js";
3
3
  import "../ui/inputGroup/input-group.js";
4
4
  import "react";
5
5
  /* empty css */
6
- const v = ({
7
- initialContentList: i = [],
8
- customRenderBar: l,
9
- onSend: s,
10
- typingSpeed: d,
11
- enableTypewriter: o = !1,
12
- onBlockComplete: u,
13
- confirmButtonText: n,
6
+ const b = ({
7
+ initialContentList: a = [],
8
+ customRenderBar: d,
9
+ onSend: n,
10
+ typingSpeed: i,
11
+ enableTypewriter: s = !1,
12
+ onBlockComplete: l,
13
+ confirmButtonText: u,
14
14
  copyButtonText: m,
15
15
  copiedButtonText: p,
16
- beforeSend: c,
17
- fullscreenButtonText: y
18
- }) => /* @__PURE__ */ a.jsx("div", { className: "markdown-flow", children: i.map((e, r) => {
19
- const t = e.isFinished ?? !1, b = !t && o, x = t ? void 0 : s, S = t ? void 0 : d, T = c ?? (() => !0);
20
- return /* @__PURE__ */ a.jsx(
16
+ beforeSend: c
17
+ }) => /* @__PURE__ */ o.jsx("div", { className: "markdown-flow", children: a.map((e, r) => {
18
+ const t = e.isFinished ?? !1, y = !t && s, f = t ? void 0 : n, x = t ? void 0 : i, S = c ?? (() => !0);
19
+ return /* @__PURE__ */ o.jsx(
21
20
  B,
22
21
  {
23
22
  content: e.content,
@@ -25,30 +24,24 @@ const v = ({
25
24
  defaultButtonText: e.defaultButtonText,
26
25
  defaultSelectedValues: e.defaultSelectedValues,
27
26
  readonly: e.readonly,
28
- enableTypewriter: b,
29
- customRenderBar: e.customRenderBar || l,
30
- onSend: x,
31
- beforeSend: T,
27
+ enableTypewriter: y,
28
+ customRenderBar: e.customRenderBar || d,
29
+ onSend: f,
30
+ beforeSend: S,
32
31
  onClickCustomButtonAfterContent: e.onClickCustomButtonAfterContent,
33
- typingSpeed: S,
34
- confirmButtonText: n,
32
+ typingSpeed: x,
33
+ confirmButtonText: u,
35
34
  copyButtonText: m,
36
35
  copiedButtonText: p,
37
36
  dynamicInteractionFormat: e.dynamicInteractionFormat,
38
- fullscreenButtonText: e.fullscreenButtonText || y,
39
- contentHtmlPayload: e.contentHtmlPayload,
40
- contentType: e.contentType,
41
- renderNarrationAsCaption: e.renderNarrationAsCaption,
42
- maxVisibleStepNumber: e.maxVisibleStepNumber,
43
- visibleStepNumber: e.visibleStepNumber,
44
37
  onTypeFinished: () => {
45
- u?.(r);
38
+ l?.(r);
46
39
  }
47
40
  },
48
41
  r
49
42
  );
50
43
  }) });
51
44
  export {
52
- v as default
45
+ b as default
53
46
  };
54
47
  //# sourceMappingURL=MarkdownFlow.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MarkdownFlow.js","sources":["../../../src/components/MarkdownFlow/MarkdownFlow.tsx"],"sourcesContent":["import React from \"react\";\nimport ContentRender from \"../ContentRender\";\nimport { CustomRenderBarProps, OnSendContentParams } from \"../types\";\nimport \"./markdownFlow.css\";\n\nexport interface MarkdownFlowProps {\n initialContentList?: {\n content: string;\n isFinished?: boolean;\n defaultInputText?: string;\n defaultButtonText?: string;\n defaultSelectedValues?: string[];\n readonly?: boolean;\n customRenderBar?: CustomRenderBarProps;\n onClickCustomButtonAfterContent?: () => void;\n dynamicInteractionFormat?: string;\n fullscreenButtonText?: string;\n contentHtmlPayload?: string;\n contentType?: \"default\" | \"blackboard\";\n renderNarrationAsCaption?: boolean;\n maxVisibleStepNumber?: number;\n visibleStepNumber?: number;\n }[];\n customRenderBar?: CustomRenderBarProps;\n onSend?: (content: OnSendContentParams) => void;\n typingSpeed?: number;\n enableTypewriter?: boolean;\n onBlockComplete?: (blockIndex: number) => void;\n // Multi-select confirm button text (i18n support)\n confirmButtonText?: string;\n // Copy button text for code blocks\n copyButtonText?: string;\n // Copied state text for code blocks\n copiedButtonText?: string;\n beforeSend?: (content: OnSendContentParams) => boolean;\n // Fullscreen button text for iframe rendering\n fullscreenButtonText?: string;\n}\n\nconst MarkdownFlow: React.FC<MarkdownFlowProps> = ({\n initialContentList = [],\n customRenderBar,\n onSend: onSendProp,\n typingSpeed: typingSpeedProp,\n enableTypewriter = false,\n onBlockComplete,\n confirmButtonText,\n copyButtonText,\n copiedButtonText,\n beforeSend: beforeSendProp,\n fullscreenButtonText,\n}) => {\n return (\n <div className=\"markdown-flow\">\n {initialContentList.map((contentInfo, index) => {\n const isFinished = contentInfo.isFinished ?? false;\n const enableTypewriterForBlock = !isFinished && enableTypewriter;\n const onSend = isFinished ? undefined : onSendProp;\n const typingSpeed = isFinished ? undefined : typingSpeedProp;\n const beforeSend = beforeSendProp ?? (() => true);\n return (\n <ContentRender\n key={index}\n content={contentInfo.content}\n defaultInputText={contentInfo.defaultInputText}\n defaultButtonText={contentInfo.defaultButtonText}\n defaultSelectedValues={contentInfo.defaultSelectedValues}\n readonly={contentInfo.readonly}\n enableTypewriter={enableTypewriterForBlock}\n customRenderBar={contentInfo.customRenderBar || customRenderBar}\n onSend={onSend}\n beforeSend={beforeSend}\n onClickCustomButtonAfterContent={\n contentInfo.onClickCustomButtonAfterContent\n }\n typingSpeed={typingSpeed}\n confirmButtonText={confirmButtonText}\n copyButtonText={copyButtonText}\n copiedButtonText={copiedButtonText}\n dynamicInteractionFormat={contentInfo.dynamicInteractionFormat}\n fullscreenButtonText={\n contentInfo.fullscreenButtonText || fullscreenButtonText\n }\n contentHtmlPayload={contentInfo.contentHtmlPayload}\n contentType={contentInfo.contentType}\n renderNarrationAsCaption={contentInfo.renderNarrationAsCaption}\n maxVisibleStepNumber={contentInfo.maxVisibleStepNumber}\n visibleStepNumber={contentInfo.visibleStepNumber}\n onTypeFinished={() => {\n onBlockComplete?.(index);\n }}\n />\n );\n })}\n </div>\n );\n};\n\nexport default MarkdownFlow;\n"],"names":["MarkdownFlow","initialContentList","customRenderBar","onSendProp","typingSpeedProp","enableTypewriter","onBlockComplete","confirmButtonText","copyButtonText","copiedButtonText","beforeSendProp","fullscreenButtonText","jsx","contentInfo","index","isFinished","enableTypewriterForBlock","onSend","typingSpeed","beforeSend","ContentRender"],"mappings":";;;;;AAuCA,MAAMA,IAA4C,CAAC;AAAA,EACjD,oBAAAC,IAAqB,CAAA;AAAA,EACrB,iBAAAC;AAAA,EACA,QAAQC;AAAA,EACR,aAAaC;AAAA,EACb,kBAAAC,IAAmB;AAAA,EACnB,iBAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,YAAYC;AAAA,EACZ,sBAAAC;AACF,MAEIC,gBAAAA,MAAC,SAAI,WAAU,iBACZ,YAAmB,IAAI,CAACC,GAAaC,MAAU;AAC9C,QAAMC,IAAaF,EAAY,cAAc,IACvCG,IAA2B,CAACD,KAAcV,GAC1CY,IAASF,IAAa,SAAYZ,GAClCe,IAAcH,IAAa,SAAYX,GACvCe,IAAaT,MAAmB,MAAM;AAC5C,SACEE,gBAAAA,EAAAA;AAAAA,IAACQ;AAAA,IAAA;AAAA,MAEC,SAASP,EAAY;AAAA,MACrB,kBAAkBA,EAAY;AAAA,MAC9B,mBAAmBA,EAAY;AAAA,MAC/B,uBAAuBA,EAAY;AAAA,MACnC,UAAUA,EAAY;AAAA,MACtB,kBAAkBG;AAAA,MAClB,iBAAiBH,EAAY,mBAAmBX;AAAA,MAChD,QAAAe;AAAA,MACA,YAAAE;AAAA,MACA,iCACEN,EAAY;AAAA,MAEd,aAAAK;AAAA,MACA,mBAAAX;AAAA,MACA,gBAAAC;AAAA,MACA,kBAAAC;AAAA,MACA,0BAA0BI,EAAY;AAAA,MACtC,sBACEA,EAAY,wBAAwBF;AAAA,MAEtC,oBAAoBE,EAAY;AAAA,MAChC,aAAaA,EAAY;AAAA,MACzB,0BAA0BA,EAAY;AAAA,MACtC,sBAAsBA,EAAY;AAAA,MAClC,mBAAmBA,EAAY;AAAA,MAC/B,gBAAgB,MAAM;AACpB,QAAAP,IAAkBQ,CAAK;AAAA,MACzB;AAAA,IAAA;AAAA,IA5BKA;AAAA,EAAA;AA+BX,CAAC,EAAA,CACH;"}
1
+ {"version":3,"file":"MarkdownFlow.js","sources":["../../../src/components/MarkdownFlow/MarkdownFlow.tsx"],"sourcesContent":["import React from \"react\";\nimport ContentRender from \"../ContentRender\";\nimport { CustomRenderBarProps, OnSendContentParams } from \"../types\";\nimport \"./markdownFlow.css\";\n\nexport interface MarkdownFlowProps {\n initialContentList?: {\n content: string;\n isFinished?: boolean;\n defaultInputText?: string;\n defaultButtonText?: string;\n defaultSelectedValues?: string[];\n readonly?: boolean;\n customRenderBar?: CustomRenderBarProps;\n onClickCustomButtonAfterContent?: () => void;\n dynamicInteractionFormat?: string;\n }[];\n customRenderBar?: CustomRenderBarProps;\n onSend?: (content: OnSendContentParams) => void;\n typingSpeed?: number;\n enableTypewriter?: boolean;\n onBlockComplete?: (blockIndex: number) => void;\n // Multi-select confirm button text (i18n support)\n confirmButtonText?: string;\n // Copy button text for code blocks\n copyButtonText?: string;\n // Copied state text for code blocks\n copiedButtonText?: string;\n beforeSend?: (content: OnSendContentParams) => boolean;\n}\n\nconst MarkdownFlow: React.FC<MarkdownFlowProps> = ({\n initialContentList = [],\n customRenderBar,\n onSend: onSendProp,\n typingSpeed: typingSpeedProp,\n enableTypewriter = false,\n onBlockComplete,\n confirmButtonText,\n copyButtonText,\n copiedButtonText,\n beforeSend: beforeSendProp,\n}) => {\n return (\n <div className=\"markdown-flow\">\n {initialContentList.map((contentInfo, index) => {\n const isFinished = contentInfo.isFinished ?? false;\n const enableTypewriterForBlock = !isFinished && enableTypewriter;\n const onSend = isFinished ? undefined : onSendProp;\n const typingSpeed = isFinished ? undefined : typingSpeedProp;\n const beforeSend = beforeSendProp ?? (() => true);\n return (\n <ContentRender\n key={index}\n content={contentInfo.content}\n defaultInputText={contentInfo.defaultInputText}\n defaultButtonText={contentInfo.defaultButtonText}\n defaultSelectedValues={contentInfo.defaultSelectedValues}\n readonly={contentInfo.readonly}\n enableTypewriter={enableTypewriterForBlock}\n customRenderBar={contentInfo.customRenderBar || customRenderBar}\n onSend={onSend}\n beforeSend={beforeSend}\n onClickCustomButtonAfterContent={\n contentInfo.onClickCustomButtonAfterContent\n }\n typingSpeed={typingSpeed}\n confirmButtonText={confirmButtonText}\n copyButtonText={copyButtonText}\n copiedButtonText={copiedButtonText}\n dynamicInteractionFormat={contentInfo.dynamicInteractionFormat}\n onTypeFinished={() => {\n onBlockComplete?.(index);\n }}\n />\n );\n })}\n </div>\n );\n};\n\nexport default MarkdownFlow;\n"],"names":["MarkdownFlow","initialContentList","customRenderBar","onSendProp","typingSpeedProp","enableTypewriter","onBlockComplete","confirmButtonText","copyButtonText","copiedButtonText","beforeSendProp","jsx","contentInfo","index","isFinished","enableTypewriterForBlock","onSend","typingSpeed","beforeSend","ContentRender"],"mappings":";;;;;AA+BA,MAAMA,IAA4C,CAAC;AAAA,EACjD,oBAAAC,IAAqB,CAAA;AAAA,EACrB,iBAAAC;AAAA,EACA,QAAQC;AAAA,EACR,aAAaC;AAAA,EACb,kBAAAC,IAAmB;AAAA,EACnB,iBAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,YAAYC;AACd,MAEIC,gBAAAA,MAAC,SAAI,WAAU,iBACZ,YAAmB,IAAI,CAACC,GAAaC,MAAU;AAC9C,QAAMC,IAAaF,EAAY,cAAc,IACvCG,IAA2B,CAACD,KAAcT,GAC1CW,IAASF,IAAa,SAAYX,GAClCc,IAAcH,IAAa,SAAYV,GACvCc,IAAaR,MAAmB,MAAM;AAC5C,SACEC,gBAAAA,EAAAA;AAAAA,IAACQ;AAAA,IAAA;AAAA,MAEC,SAASP,EAAY;AAAA,MACrB,kBAAkBA,EAAY;AAAA,MAC9B,mBAAmBA,EAAY;AAAA,MAC/B,uBAAuBA,EAAY;AAAA,MACnC,UAAUA,EAAY;AAAA,MACtB,kBAAkBG;AAAA,MAClB,iBAAiBH,EAAY,mBAAmBV;AAAA,MAChD,QAAAc;AAAA,MACA,YAAAE;AAAA,MACA,iCACEN,EAAY;AAAA,MAEd,aAAAK;AAAA,MACA,mBAAAV;AAAA,MACA,gBAAAC;AAAA,MACA,kBAAAC;AAAA,MACA,0BAA0BG,EAAY;AAAA,MACtC,gBAAgB,MAAM;AACpB,QAAAN,IAAkBO,CAAK;AAAA,MACzB;AAAA,IAAA;AAAA,IApBKA;AAAA,EAAA;AAuBX,CAAC,EAAA,CACH;"}
@@ -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('./MarkdownFlow').MarkdownFlowProps>;
4
+ component: import('react').FC<import('./MarkdownFlow').MarkdownFlowProps>;
6
5
  parameters: {
7
6
  layout: string;
8
7
  };
@@ -24,4 +23,3 @@ declare const meta: {
24
23
  export default meta;
25
24
  type Story = StoryObj<typeof meta>;
26
25
  export declare const MarkdownFlowStory: Story;
27
- export declare const HtmlIframeWithLoading: Story;
@@ -1,5 +1,5 @@
1
1
  import { ViewPlugin as j, Decoration as q } from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/@codemirror_view@6.38.6/node_modules/@codemirror/view/dist/index.js";
2
- import { RangeSetBuilder as z } from "../../../node_modules/@codemirror/state/dist/index.js";
2
+ import { RangeSetBuilder as z } from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/@codemirror/state/dist/index.js";
3
3
  import { createVariableExpressionRegexp as G } from "../utils.js";
4
4
  const S = /\{\{.*?\}\}/g, C = /<!--[\s\S]*?-->/g, E = /===.*?===/g, F = /\?\[(.*?)\]/g;
5
5
  function W(c) {
@@ -1,7 +1,7 @@
1
1
  import { j as i } from "../../../_virtual/jsx-runtime.js";
2
2
  import * as d from "react";
3
3
  import n from "../../../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";
4
- import "../../../_virtual/index6.js";
4
+ import "../../../_virtual/index4.js";
5
5
  import "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/rc-resize-observer@1.4.3_react-dom@19.0.1_react@19.0.1__react@19.0.1/node_modules/rc-resize-observer/es/index.js";
6
6
  import "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/rc-util@5.44.4_react-dom@19.0.1_react@19.0.1__react@19.0.1/node_modules/rc-util/es/hooks/useLayoutEffect.js";
7
7
  import "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/rc-util@5.44.4_react-dom@19.0.1_react@19.0.1__react@19.0.1/node_modules/rc-util/es/raf.js";
@@ -9,7 +9,7 @@ const w = l, T = p, j = f, x = r.forwardRef(({ className: e, side: i = "top", si
9
9
  side: i,
10
10
  sideOffset: s,
11
11
  className: c(
12
- "z-50 rounded-md !bg-[#171717] px-3 py-1.5 text-xs font-medium text-white shadow-md",
12
+ "z-50 rounded-md bg-[#111] px-3 py-1.5 text-xs font-medium text-white shadow-md",
13
13
  "data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
14
14
  "data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
15
15
  "data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
@@ -18,7 +18,7 @@ const w = l, T = p, j = f, x = r.forwardRef(({ className: e, side: i = "top", si
18
18
  ...o,
19
19
  children: [
20
20
  o.children,
21
- /* @__PURE__ */ t.jsx(m, { className: "h-2 w-4 !fill-[#171717]" })
21
+ /* @__PURE__ */ t.jsx(m, { className: "h-2 w-4 fill-[#111]" })
22
22
  ]
23
23
  }
24
24
  ) }));
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.js","sources":["../../../src/components/ui/tooltip.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as TooltipPrimitive from \"@radix-ui/react-tooltip\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst TooltipProvider = TooltipPrimitive.Provider;\n\nconst Tooltip = TooltipPrimitive.Root;\n\nconst TooltipTrigger = TooltipPrimitive.Trigger;\n\nconst TooltipContent = React.forwardRef<\n React.ElementRef<typeof TooltipPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>\n>(({ className, side = \"top\", sideOffset = 8, ...props }, ref) => (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Content\n ref={ref}\n side={side}\n sideOffset={sideOffset}\n className={cn(\n \"z-50 rounded-md !bg-[#171717] px-3 py-1.5 text-xs font-medium text-white shadow-md\",\n \"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95\",\n \"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95\",\n \"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className\n )}\n {...props}\n >\n {props.children}\n <TooltipPrimitive.Arrow className=\"h-2 w-4 !fill-[#171717]\" />\n </TooltipPrimitive.Content>\n </TooltipPrimitive.Portal>\n));\nTooltipContent.displayName = TooltipPrimitive.Content.displayName;\n\nexport { Tooltip, TooltipContent, TooltipTrigger, TooltipProvider };\n"],"names":["TooltipProvider","TooltipPrimitive.Provider","Tooltip","TooltipPrimitive.Root","TooltipTrigger","TooltipPrimitive.Trigger","TooltipContent","React","className","side","sideOffset","props","ref","jsx","TooltipPrimitive.Portal","jsxs","TooltipPrimitive.Content","cn","TooltipPrimitive.Arrow"],"mappings":";;;;AAOA,MAAMA,IAAkBC,GAElBC,IAAUC,GAEVC,IAAiBC,GAEjBC,IAAiBC,EAAM,WAG3B,CAAC,EAAE,WAAAC,GAAW,MAAAC,IAAO,OAAO,YAAAC,IAAa,GAAG,GAAGC,EAAA,GAASC,MACxDC,gBAAAA,EAAAA,IAACC,GAAA,EACC,UAAAC,gBAAAA,EAAAA;AAAAA,EAACC;AAAAA,EAAA;AAAA,IACC,KAAAJ;AAAA,IACA,MAAAH;AAAA,IACA,YAAAC;AAAA,IACA,WAAWO;AAAA,MACT;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACAT;AAAA,IAAA;AAAA,IAED,GAAGG;AAAA,IAEH,UAAA;AAAA,MAAAA,EAAM;AAAA,MACPE,gBAAAA,EAAAA,IAACK,GAAA,EAAuB,WAAU,0BAAA,CAA0B;AAAA,IAAA;AAAA,EAAA;AAC9D,GACF,CACD;AACDZ,EAAe,cAAcU,EAAyB;"}
1
+ {"version":3,"file":"tooltip.js","sources":["../../../src/components/ui/tooltip.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as TooltipPrimitive from \"@radix-ui/react-tooltip\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst TooltipProvider = TooltipPrimitive.Provider;\n\nconst Tooltip = TooltipPrimitive.Root;\n\nconst TooltipTrigger = TooltipPrimitive.Trigger;\n\nconst TooltipContent = React.forwardRef<\n React.ElementRef<typeof TooltipPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>\n>(({ className, side = \"top\", sideOffset = 8, ...props }, ref) => (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Content\n ref={ref}\n side={side}\n sideOffset={sideOffset}\n className={cn(\n \"z-50 rounded-md bg-[#111] px-3 py-1.5 text-xs font-medium text-white shadow-md\",\n \"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95\",\n \"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95\",\n \"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className\n )}\n {...props}\n >\n {props.children}\n <TooltipPrimitive.Arrow className=\"h-2 w-4 fill-[#111]\" />\n </TooltipPrimitive.Content>\n </TooltipPrimitive.Portal>\n));\nTooltipContent.displayName = TooltipPrimitive.Content.displayName;\n\nexport { Tooltip, TooltipContent, TooltipTrigger, TooltipProvider };\n"],"names":["TooltipProvider","TooltipPrimitive.Provider","Tooltip","TooltipPrimitive.Root","TooltipTrigger","TooltipPrimitive.Trigger","TooltipContent","React","className","side","sideOffset","props","ref","jsx","TooltipPrimitive.Portal","jsxs","TooltipPrimitive.Content","cn","TooltipPrimitive.Arrow"],"mappings":";;;;AAOA,MAAMA,IAAkBC,GAElBC,IAAUC,GAEVC,IAAiBC,GAEjBC,IAAiBC,EAAM,WAG3B,CAAC,EAAE,WAAAC,GAAW,MAAAC,IAAO,OAAO,YAAAC,IAAa,GAAG,GAAGC,EAAA,GAASC,MACxDC,gBAAAA,EAAAA,IAACC,GAAA,EACC,UAAAC,gBAAAA,EAAAA;AAAAA,EAACC;AAAAA,EAAA;AAAA,IACC,KAAAJ;AAAA,IACA,MAAAH;AAAA,IACA,YAAAC;AAAA,IACA,WAAWO;AAAA,MACT;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACAT;AAAA,IAAA;AAAA,IAED,GAAGG;AAAA,IAEH,UAAA;AAAA,MAAAA,EAAM;AAAA,MACPE,gBAAAA,EAAAA,IAACK,GAAA,EAAuB,WAAU,sBAAA,CAAsB;AAAA,IAAA;AAAA,EAAA;AAC1D,GACF,CACD;AACDZ,EAAe,cAAcU,EAAyB;"}