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

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 (404) hide show
  1. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/ccount@2.0.1/node_modules/ccount/index.js.map +1 -0
  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/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/core.js +1 -1
  5. 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 +1 -0
  6. 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 +1 -0
  7. 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 +1 -0
  8. 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 +1 -0
  9. 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 +1 -0
  10. 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 +1 -0
  11. 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 +1 -0
  12. 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 +1 -0
  13. 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 +1 -0
  14. 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 +1 -0
  15. 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 +1 -0
  16. 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 +1 -0
  17. 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 +1 -0
  18. 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 +1 -0
  19. 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 +1 -0
  20. 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 +1 -0
  21. 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 +1 -0
  22. 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 +1 -0
  23. 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 +1 -0
  24. 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 +1 -0
  25. 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 +1 -0
  26. 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 +1 -0
  27. 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 +1 -0
  28. 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 +1 -0
  29. 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 +1 -0
  30. 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 +1 -0
  31. 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 +1 -0
  32. 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 +1 -0
  33. 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 +1 -0
  34. 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 +1 -0
  35. 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 +1 -0
  36. 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 +1 -0
  37. 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 +1 -0
  38. 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 +1 -0
  39. 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 +1 -0
  40. 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 +1 -0
  41. 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 +1 -0
  42. 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 +1 -0
  43. 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 +1 -0
  44. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.js.map +1 -0
  45. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/longest-streak@3.1.0/node_modules/longest-streak/index.js +8 -6
  46. 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
  47. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/common.js +80 -0
  48. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/common.js.map +1 -0
  49. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/lowlight@3.3.0/node_modules}/lowlight/lib/index.js +1 -1
  50. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/index.js.map +1 -0
  51. 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 +19 -0
  52. 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 +1 -0
  53. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/markdown-table@3.0.4/node_modules/markdown-table/index.js.map +1 -0
  54. 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
  55. 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
  56. package/dist/{node_modules → 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 +4 -4
  57. 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 +1 -0
  58. package/dist/{node_modules → 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 +2 -2
  59. 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 +1 -0
  60. 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 +1 -0
  61. package/dist/{node_modules → 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 +3 -3
  62. 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 +1 -0
  63. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm-task-list-item@2.0.0/node_modules}/mdast-util-gfm-task-list-item/lib/index.js +2 -2
  64. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm-task-list-item@2.0.0/node_modules}/mdast-util-gfm-task-list-item/lib/index.js.map +1 -1
  65. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm@3.1.0/node_modules}/mdast-util-gfm/lib/index.js +5 -5
  66. 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 +1 -0
  67. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-phrasing@4.1.0/node_modules}/mdast-util-phrasing/lib/index.js +1 -1
  68. 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 +1 -0
  69. 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 +1 -0
  70. 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 +1 -0
  71. package/dist/{node_modules → 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 +1 -1
  72. 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 +1 -0
  73. 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 +1 -0
  74. 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 +1 -0
  75. 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 +1 -0
  76. 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 +1 -0
  77. 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 +1 -0
  78. 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 +1 -0
  79. 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 +1 -0
  80. 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 +1 -0
  81. 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 +1 -0
  82. 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 +1 -0
  83. 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 +1 -0
  84. 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 +1 -0
  85. 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 +1 -0
  86. package/dist/{node_modules → 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 +1 -1
  87. 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 +1 -0
  88. 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 +1 -0
  89. 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 +1 -0
  90. 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 +1 -0
  91. 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 +1 -0
  92. 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 +1 -0
  93. 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 +1 -0
  94. 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 +1 -0
  95. 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 +1 -0
  96. 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 +1 -0
  97. 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 +1 -0
  98. 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 +1 -0
  99. 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 +1 -0
  100. 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 +1 -0
  101. 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 +1 -0
  102. package/dist/{node_modules → 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 +1 -1
  103. 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 +1 -0
  104. 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 +1 -0
  105. 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 +14 -0
  106. 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 +1 -0
  107. package/dist/{node_modules → 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 +1 -1
  108. 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 +1 -0
  109. 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 +1 -0
  110. package/dist/{node_modules → 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 +1 -1
  111. 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 +1 -0
  112. package/dist/{node_modules → 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 +4 -4
  113. 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 +1 -0
  114. package/dist/{node_modules → 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 +3 -3
  115. 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 +1 -0
  116. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules}/micromark-extension-gfm-table/lib/edit-map.js.map +1 -1
  117. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules}/micromark-extension-gfm-table/lib/infer.js.map +1 -1
  118. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules}/micromark-extension-gfm-table/lib/syntax.js +2 -2
  119. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules}/micromark-extension-gfm-table/lib/syntax.js.map +1 -1
  120. package/dist/{node_modules → 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 +2 -2
  121. 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 +1 -0
  122. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm@3.0.0/node_modules/micromark-extension-gfm/index.js +19 -0
  123. 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 +1 -0
  124. 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
  125. 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
  126. 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
  127. 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
  128. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/rehype-highlight@7.0.2/node_modules}/rehype-highlight/lib/index.js +4 -4
  129. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/rehype-highlight@7.0.2/node_modules/rehype-highlight/lib/index.js.map +1 -0
  130. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-flow@0.1.6/node_modules/remark-flow/dist/index.js.map +1 -0
  131. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/{remark-flow@0.1.3-beta.0 → remark-flow@0.1.6}/node_modules/remark-flow/dist/interaction-parser.js +30 -51
  132. 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 +1 -0
  133. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/{remark-flow@0.1.3-beta.0 → remark-flow@0.1.6}/node_modules/remark-flow/dist/remark-custom-variable.js +1 -1
  134. 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 +1 -0
  135. 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 +1 -0
  136. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/{remark-flow@0.1.3-beta.0 → remark-flow@0.1.6}/node_modules/remark-flow/dist/remark-interaction.js +1 -1
  137. 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 +1 -0
  138. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-gfm@4.0.1/node_modules}/remark-gfm/lib/index.js +2 -2
  139. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-gfm@4.0.1/node_modules/remark-gfm/lib/index.js.map +1 -0
  140. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/style-to-object@1.0.11/node_modules/style-to-object/cjs/index.js +1 -1
  141. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/index.js +1 -1
  142. package/dist/_virtual/core.js +1 -1
  143. package/dist/_virtual/index.js +1 -1
  144. package/dist/_virtual/index10.js +2 -2
  145. package/dist/_virtual/index3.js +4 -5
  146. package/dist/_virtual/index3.js.map +1 -1
  147. package/dist/_virtual/index4.js +5 -4
  148. package/dist/_virtual/index4.js.map +1 -1
  149. package/dist/_virtual/index5.js +4 -4
  150. package/dist/_virtual/index6.js +5 -5
  151. package/dist/_virtual/index8.js +2 -2
  152. package/dist/assets/markdown-flow-ui.css +1 -1
  153. package/dist/components/ContentRender/ContentBlackboard.d.ts +9 -0
  154. package/dist/components/ContentRender/ContentBlackboard.js +126 -0
  155. package/dist/components/ContentRender/ContentBlackboard.js.map +1 -0
  156. package/dist/components/ContentRender/ContentHtml.d.ts +22 -0
  157. package/dist/components/ContentRender/ContentHtml.js +108 -0
  158. package/dist/components/ContentRender/ContentHtml.js.map +1 -0
  159. package/dist/components/ContentRender/ContentRender.d.ts +16 -10
  160. package/dist/components/ContentRender/ContentRender.js +126 -103
  161. package/dist/components/ContentRender/ContentRender.js.map +1 -1
  162. package/dist/components/ContentRender/ContentRender.stories.d.ts +12 -1
  163. package/dist/components/ContentRender/index.d.ts +1 -0
  164. package/dist/components/ContentRender/utils/content-html-stream.d.ts +8 -0
  165. package/dist/components/ContentRender/utils/content-html-stream.js +18 -0
  166. package/dist/components/ContentRender/utils/content-html-stream.js.map +1 -0
  167. package/dist/components/ContentRender/utils/highlight-languages.js +22 -22
  168. package/dist/components/ContentRender/utils/mermaid-parse.d.ts +4 -0
  169. package/dist/components/ContentRender/utils/mermaid-parse.js +112 -65
  170. package/dist/components/ContentRender/utils/mermaid-parse.js.map +1 -1
  171. package/dist/components/MarkdownFlow/MarkdownFlow.d.ts +7 -0
  172. package/dist/components/MarkdownFlow/MarkdownFlow.js +28 -21
  173. package/dist/components/MarkdownFlow/MarkdownFlow.js.map +1 -1
  174. package/dist/components/MarkdownFlow/MarkdownFlow.stories.d.ts +3 -1
  175. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.js +1 -1
  176. package/dist/components/ui/inputGroup/textarea.js +1 -1
  177. package/dist/components/ui/tooltip.js +2 -2
  178. package/dist/components/ui/tooltip.js.map +1 -1
  179. package/dist/markdown-flow-ui-lib.css +1 -1
  180. package/package.json +1 -1
  181. 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 +0 -1
  182. 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 +0 -1
  183. 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 +0 -1
  184. 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 +0 -1
  185. 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 +0 -1
  186. package/dist/node_modules/ccount/index.js.map +0 -1
  187. package/dist/node_modules/devlop/lib/default.js +0 -6
  188. package/dist/node_modules/devlop/lib/default.js.map +0 -1
  189. package/dist/node_modules/escape-string-regexp/index.js +0 -9
  190. package/dist/node_modules/escape-string-regexp/index.js.map +0 -1
  191. package/dist/node_modules/hast-util-is-element/lib/index.js +0 -66
  192. package/dist/node_modules/hast-util-is-element/lib/index.js.map +0 -1
  193. package/dist/node_modules/hast-util-to-text/lib/index.js +0 -227
  194. package/dist/node_modules/hast-util-to-text/lib/index.js.map +0 -1
  195. package/dist/node_modules/highlight.js/es/languages/arduino.js.map +0 -1
  196. package/dist/node_modules/highlight.js/es/languages/bash.js.map +0 -1
  197. package/dist/node_modules/highlight.js/es/languages/c.js.map +0 -1
  198. package/dist/node_modules/highlight.js/es/languages/cpp.js.map +0 -1
  199. package/dist/node_modules/highlight.js/es/languages/csharp.js.map +0 -1
  200. package/dist/node_modules/highlight.js/es/languages/css.js.map +0 -1
  201. package/dist/node_modules/highlight.js/es/languages/diff.js.map +0 -1
  202. package/dist/node_modules/highlight.js/es/languages/go.js.map +0 -1
  203. package/dist/node_modules/highlight.js/es/languages/graphql.js.map +0 -1
  204. package/dist/node_modules/highlight.js/es/languages/ini.js.map +0 -1
  205. package/dist/node_modules/highlight.js/es/languages/java.js.map +0 -1
  206. package/dist/node_modules/highlight.js/es/languages/javascript.js.map +0 -1
  207. package/dist/node_modules/highlight.js/es/languages/json.js.map +0 -1
  208. package/dist/node_modules/highlight.js/es/languages/kotlin.js.map +0 -1
  209. package/dist/node_modules/highlight.js/es/languages/latex.js.map +0 -1
  210. package/dist/node_modules/highlight.js/es/languages/less.js.map +0 -1
  211. package/dist/node_modules/highlight.js/es/languages/lua.js.map +0 -1
  212. package/dist/node_modules/highlight.js/es/languages/makefile.js.map +0 -1
  213. package/dist/node_modules/highlight.js/es/languages/markdown.js.map +0 -1
  214. package/dist/node_modules/highlight.js/es/languages/objectivec.js.map +0 -1
  215. package/dist/node_modules/highlight.js/es/languages/perl.js.map +0 -1
  216. package/dist/node_modules/highlight.js/es/languages/php-template.js.map +0 -1
  217. package/dist/node_modules/highlight.js/es/languages/php.js.map +0 -1
  218. package/dist/node_modules/highlight.js/es/languages/plaintext.js.map +0 -1
  219. package/dist/node_modules/highlight.js/es/languages/python-repl.js.map +0 -1
  220. package/dist/node_modules/highlight.js/es/languages/python.js.map +0 -1
  221. package/dist/node_modules/highlight.js/es/languages/r.js.map +0 -1
  222. package/dist/node_modules/highlight.js/es/languages/ruby.js.map +0 -1
  223. package/dist/node_modules/highlight.js/es/languages/rust.js.map +0 -1
  224. package/dist/node_modules/highlight.js/es/languages/scss.js.map +0 -1
  225. package/dist/node_modules/highlight.js/es/languages/shell.js.map +0 -1
  226. package/dist/node_modules/highlight.js/es/languages/sql.js.map +0 -1
  227. package/dist/node_modules/highlight.js/es/languages/swift.js.map +0 -1
  228. package/dist/node_modules/highlight.js/es/languages/typescript.js.map +0 -1
  229. package/dist/node_modules/highlight.js/es/languages/vbnet.js.map +0 -1
  230. package/dist/node_modules/highlight.js/es/languages/vhdl.js.map +0 -1
  231. package/dist/node_modules/highlight.js/es/languages/wasm.js.map +0 -1
  232. package/dist/node_modules/highlight.js/es/languages/xml.js.map +0 -1
  233. package/dist/node_modules/highlight.js/es/languages/yaml.js.map +0 -1
  234. package/dist/node_modules/highlight.js/lib/core.js.map +0 -1
  235. package/dist/node_modules/longest-streak/index.js +0 -13
  236. package/dist/node_modules/longest-streak/index.js.map +0 -1
  237. package/dist/node_modules/lowlight/lib/common.js +0 -80
  238. package/dist/node_modules/lowlight/lib/common.js.map +0 -1
  239. package/dist/node_modules/lowlight/lib/index.js.map +0 -1
  240. package/dist/node_modules/markdown-table/index.js.map +0 -1
  241. package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +0 -71
  242. package/dist/node_modules/mdast-util-find-and-replace/lib/index.js.map +0 -1
  243. package/dist/node_modules/mdast-util-gfm/lib/index.js.map +0 -1
  244. package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js.map +0 -1
  245. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js.map +0 -1
  246. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js.map +0 -1
  247. package/dist/node_modules/mdast-util-gfm-table/lib/index.js.map +0 -1
  248. package/dist/node_modules/mdast-util-phrasing/lib/index.js.map +0 -1
  249. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js.map +0 -1
  250. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js.map +0 -1
  251. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js.map +0 -1
  252. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js.map +0 -1
  253. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js.map +0 -1
  254. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js.map +0 -1
  255. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js.map +0 -1
  256. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js.map +0 -1
  257. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js.map +0 -1
  258. package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js.map +0 -1
  259. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js.map +0 -1
  260. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js.map +0 -1
  261. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js.map +0 -1
  262. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js.map +0 -1
  263. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js.map +0 -1
  264. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js.map +0 -1
  265. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js.map +0 -1
  266. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js.map +0 -1
  267. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js.map +0 -1
  268. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js.map +0 -1
  269. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js.map +0 -1
  270. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js.map +0 -1
  271. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js.map +0 -1
  272. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js.map +0 -1
  273. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js.map +0 -1
  274. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js.map +0 -1
  275. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js.map +0 -1
  276. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js.map +0 -1
  277. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js.map +0 -1
  278. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js.map +0 -1
  279. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js.map +0 -1
  280. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js.map +0 -1
  281. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js.map +0 -1
  282. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +0 -14
  283. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js.map +0 -1
  284. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js.map +0 -1
  285. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js.map +0 -1
  286. package/dist/node_modules/mdast-util-to-string/lib/index.js +0 -30
  287. package/dist/node_modules/mdast-util-to-string/lib/index.js.map +0 -1
  288. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +0 -19
  289. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js.map +0 -1
  290. package/dist/node_modules/micromark-extension-gfm/index.js +0 -19
  291. package/dist/node_modules/micromark-extension-gfm/index.js.map +0 -1
  292. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js.map +0 -1
  293. package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js.map +0 -1
  294. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js.map +0 -1
  295. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js.map +0 -1
  296. package/dist/node_modules/micromark-factory-space/index.js +0 -16
  297. package/dist/node_modules/micromark-factory-space/index.js.map +0 -1
  298. package/dist/node_modules/micromark-util-character/index.js +0 -35
  299. package/dist/node_modules/micromark-util-character/index.js.map +0 -1
  300. package/dist/node_modules/micromark-util-chunked/index.js +0 -13
  301. package/dist/node_modules/micromark-util-chunked/index.js.map +0 -1
  302. package/dist/node_modules/micromark-util-classify-character/index.js +0 -11
  303. package/dist/node_modules/micromark-util-classify-character/index.js.map +0 -1
  304. package/dist/node_modules/micromark-util-combine-extensions/index.js +0 -37
  305. package/dist/node_modules/micromark-util-combine-extensions/index.js.map +0 -1
  306. package/dist/node_modules/micromark-util-normalize-identifier/index.js +0 -7
  307. package/dist/node_modules/micromark-util-normalize-identifier/index.js.map +0 -1
  308. package/dist/node_modules/micromark-util-resolve-all/index.js +0 -13
  309. package/dist/node_modules/micromark-util-resolve-all/index.js.map +0 -1
  310. package/dist/node_modules/rehype-highlight/lib/index.js.map +0 -1
  311. package/dist/node_modules/remark-gfm/lib/index.js.map +0 -1
  312. package/dist/node_modules/unist-util-find-after/lib/index.js +0 -33
  313. package/dist/node_modules/unist-util-find-after/lib/index.js.map +0 -1
  314. package/dist/node_modules/unist-util-is/lib/index.js +0 -85
  315. package/dist/node_modules/unist-util-is/lib/index.js.map +0 -1
  316. package/dist/node_modules/unist-util-visit/lib/index.js +0 -17
  317. package/dist/node_modules/unist-util-visit/lib/index.js.map +0 -1
  318. package/dist/node_modules/unist-util-visit-parents/lib/color.js +0 -7
  319. package/dist/node_modules/unist-util-visit-parents/lib/color.js.map +0 -1
  320. package/dist/node_modules/unist-util-visit-parents/lib/index.js +0 -57
  321. package/dist/node_modules/unist-util-visit-parents/lib/index.js.map +0 -1
  322. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/ccount@2.0.1/node_modules}/ccount/index.js +0 -0
  323. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/core.js.map +0 -0
  324. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/arduino.js +0 -0
  325. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/bash.js +0 -0
  326. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/c.js +0 -0
  327. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/cpp.js +0 -0
  328. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/csharp.js +0 -0
  329. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/css.js +0 -0
  330. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/diff.js +0 -0
  331. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/go.js +0 -0
  332. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/graphql.js +0 -0
  333. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/ini.js +0 -0
  334. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/java.js +0 -0
  335. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/javascript.js +0 -0
  336. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/json.js +0 -0
  337. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/kotlin.js +0 -0
  338. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/latex.js +0 -0
  339. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/less.js +0 -0
  340. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/lua.js +0 -0
  341. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/makefile.js +0 -0
  342. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/markdown.js +0 -0
  343. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/objectivec.js +0 -0
  344. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/perl.js +0 -0
  345. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/php-template.js +0 -0
  346. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/php.js +0 -0
  347. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/plaintext.js +0 -0
  348. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/python-repl.js +0 -0
  349. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/python.js +0 -0
  350. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/r.js +0 -0
  351. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/ruby.js +0 -0
  352. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/rust.js +0 -0
  353. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/scss.js +0 -0
  354. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/shell.js +0 -0
  355. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/sql.js +0 -0
  356. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/swift.js +0 -0
  357. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/typescript.js +0 -0
  358. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/vbnet.js +0 -0
  359. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/vhdl.js +0 -0
  360. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/wasm.js +0 -0
  361. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/xml.js +0 -0
  362. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/yaml.js +0 -0
  363. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/lib/core.js +0 -0
  364. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/markdown-table@3.0.4/node_modules}/markdown-table/index.js +0 -0
  365. /package/dist/{node_modules → 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 +0 -0
  366. /package/dist/{node_modules → 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 +0 -0
  367. /package/dist/{node_modules → 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 +0 -0
  368. /package/dist/{node_modules → 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 +0 -0
  369. /package/dist/{node_modules → 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 +0 -0
  370. /package/dist/{node_modules → 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 +0 -0
  371. /package/dist/{node_modules → 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 +0 -0
  372. /package/dist/{node_modules → 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 +0 -0
  373. /package/dist/{node_modules → 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 +0 -0
  374. /package/dist/{node_modules → 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 +0 -0
  375. /package/dist/{node_modules → 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 +0 -0
  376. /package/dist/{node_modules → 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 +0 -0
  377. /package/dist/{node_modules → 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 +0 -0
  378. /package/dist/{node_modules → 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 +0 -0
  379. /package/dist/{node_modules → 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 +0 -0
  380. /package/dist/{node_modules → 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 +0 -0
  381. /package/dist/{node_modules → 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 +0 -0
  382. /package/dist/{node_modules → 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 +0 -0
  383. /package/dist/{node_modules → 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 +0 -0
  384. /package/dist/{node_modules → 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 +0 -0
  385. /package/dist/{node_modules → 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 +0 -0
  386. /package/dist/{node_modules → 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 +0 -0
  387. /package/dist/{node_modules → 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 +0 -0
  388. /package/dist/{node_modules → 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 +0 -0
  389. /package/dist/{node_modules → 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 +0 -0
  390. /package/dist/{node_modules → 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 +0 -0
  391. /package/dist/{node_modules → 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 +0 -0
  392. /package/dist/{node_modules → 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 +0 -0
  393. /package/dist/{node_modules → 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 +0 -0
  394. /package/dist/{node_modules → 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 +0 -0
  395. /package/dist/{node_modules → 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 +0 -0
  396. /package/dist/{node_modules → 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 +0 -0
  397. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules}/micromark-extension-gfm-table/lib/edit-map.js +0 -0
  398. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules}/micromark-extension-gfm-table/lib/infer.js +0 -0
  399. /package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/{remark-flow@0.1.3-beta.0 → remark-flow@0.1.6}/node_modules/remark-flow/dist/index.js +0 -0
  400. /package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/{remark-flow@0.1.3-beta.0 → remark-flow@0.1.6}/node_modules/remark-flow/dist/remark-flow.js +0 -0
  401. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules → node_modules}/@codemirror/state/dist/index.js +0 -0
  402. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules → node_modules}/@codemirror/state/dist/index.js.map +0 -0
  403. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules → node_modules}/@marijn/find-cluster-break/src/index.js +0 -0
  404. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules → node_modules}/@marijn/find-cluster-break/src/index.js.map +0 -0
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ type ContentBlackboardProps = {
3
+ payload?: string;
4
+ renderNarrationAsCaption?: boolean;
5
+ maxVisibleStepNumber?: number;
6
+ visibleStepNumber?: number;
7
+ };
8
+ declare const ContentBlackboard: React.FC<ContentBlackboardProps>;
9
+ export default ContentBlackboard;
@@ -0,0 +1,126 @@
1
+ import { j as f } from "../../_virtual/jsx-runtime.js";
2
+ import { useState as y, useRef as j, useEffect as u, useMemo as w } from "react";
3
+ import { parseContentHtmlStreamChunk as v } from "./utils/content-html-stream.js";
4
+ const k = (o) => o.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;"), I = ({
5
+ payload: o,
6
+ renderNarrationAsCaption: c = !1,
7
+ maxVisibleStepNumber: l,
8
+ visibleStepNumber: i
9
+ }) => {
10
+ const [n, m] = y(
11
+ []
12
+ ), d = j(null);
13
+ u(() => {
14
+ if (typeof o > "u") {
15
+ m([]);
16
+ return;
17
+ }
18
+ const e = o.trim();
19
+ if (!e) {
20
+ m([]);
21
+ return;
22
+ }
23
+ const t = v(e);
24
+ t && m((r) => {
25
+ const a = `${t.blockIndex}-${t.stepNumber}`;
26
+ return [
27
+ ...r.filter((s) => s.id !== a),
28
+ {
29
+ id: a,
30
+ stepNumber: t.stepNumber,
31
+ html: t.html,
32
+ narration: t.narration
33
+ }
34
+ ].sort((s, H) => s.stepNumber - H.stepNumber);
35
+ });
36
+ }, [o]);
37
+ const h = w(() => n.length === 0 ? "" : (typeof i == "number" ? n.filter(
38
+ (t) => t.stepNumber === i
39
+ ) : typeof l == "number" ? n.filter(
40
+ (t) => t.stepNumber <= l
41
+ ) : n).map((t) => {
42
+ const r = !c && t.narration ? `<p class="content-render-html-stream-narration">${k(
43
+ t.narration
44
+ )}</p>` : "";
45
+ return `${t.html}${r}`;
46
+ }).join(""), [l, c, n]), x = w(() => `
47
+ <!DOCTYPE html>
48
+ <html lang="zh-CN">
49
+ <head>
50
+ <meta charset="UTF-8" />
51
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
52
+ <link
53
+ rel="stylesheet"
54
+ href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css"
55
+ />
56
+ <style>
57
+ :root { color-scheme: light; }
58
+ body {
59
+ margin: 0;
60
+ padding: 16px;
61
+ color: #0f172a;
62
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
63
+ line-height: 1.6;
64
+ }
65
+ .content-render-html-stream-narration {
66
+ margin-top: 10px;
67
+ color: #4b5563;
68
+ font-size: 14px;
69
+ }
70
+ </style>
71
+ </head>
72
+ <body>
73
+ <div id="content-container"></div>
74
+ </body>
75
+ </html>
76
+ `.trim(), []), [p, b] = y(!1);
77
+ return u(() => {
78
+ const e = d.current;
79
+ if (!e) return;
80
+ const t = () => {
81
+ b(!0);
82
+ };
83
+ return e.addEventListener("load", t), () => {
84
+ e.removeEventListener("load", t);
85
+ };
86
+ }, []), u(() => {
87
+ if (!p) return;
88
+ const e = d.current;
89
+ if (!e) return;
90
+ const t = e.contentDocument;
91
+ if (!t) return;
92
+ const r = t.getElementById("content-container");
93
+ r && (r.innerHTML = h);
94
+ const a = () => {
95
+ try {
96
+ const s = t.body?.scrollHeight || 0;
97
+ e.style.height = `${Math.max(s, 100)}px`;
98
+ } catch {
99
+ }
100
+ };
101
+ a();
102
+ const g = window.setTimeout(a, 60);
103
+ return () => {
104
+ window.clearTimeout(g);
105
+ };
106
+ }, [h, p]), /* @__PURE__ */ f.jsxs("div", { className: "content-render-html content-render-html-stream", children: [
107
+ /* @__PURE__ */ f.jsx(
108
+ "iframe",
109
+ {
110
+ ref: d,
111
+ className: "content-render-html-stream-iframe",
112
+ sandbox: "allow-same-origin allow-scripts",
113
+ loading: "lazy",
114
+ title: "content-render-html-stream",
115
+ srcDoc: x
116
+ }
117
+ ),
118
+ c && n.length > 0 && /* @__PURE__ */ f.jsx("div", { className: "content-render-html-stream-caption", children: typeof i == "number" && n.find(
119
+ (t) => t.stepNumber === i
120
+ )?.narration || n[n.length - 1].narration })
121
+ ] });
122
+ };
123
+ export {
124
+ I as default
125
+ };
126
+ //# sourceMappingURL=ContentBlackboard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentBlackboard.js","sources":["../../../src/components/ContentRender/ContentBlackboard.tsx"],"sourcesContent":["import React, { useEffect, useMemo, useRef, useState } from \"react\";\nimport {\n ContentHtmlStreamChunk,\n parseContentHtmlStreamChunk,\n} from \"./utils/content-html-stream\";\n\ntype ContentBlackboardProps = {\n payload?: string;\n renderNarrationAsCaption?: boolean;\n maxVisibleStepNumber?: number;\n visibleStepNumber?: number;\n};\n\ntype ContentHtmlStreamStep = {\n id: string;\n stepNumber: number;\n html: string;\n narration?: string;\n};\n\nconst escapeHtml = (value: string) =>\n value\n .replace(/&/g, \"&amp;\")\n .replace(/</g, \"&lt;\")\n .replace(/>/g, \"&gt;\")\n .replace(/\"/g, \"&quot;\")\n .replace(/'/g, \"&#39;\");\n\nconst ContentBlackboard: React.FC<ContentBlackboardProps> = ({\n payload,\n renderNarrationAsCaption = false,\n maxVisibleStepNumber,\n visibleStepNumber,\n}) => {\n const [streamingSteps, setStreamingSteps] = useState<ContentHtmlStreamStep[]>(\n []\n );\n const iframeRef = useRef<HTMLIFrameElement>(null);\n\n useEffect(() => {\n if (typeof payload === \"undefined\") {\n setStreamingSteps([]);\n return;\n }\n\n const trimmed = payload.trim();\n if (!trimmed) {\n setStreamingSteps([]);\n return;\n }\n\n const chunk: ContentHtmlStreamChunk | null =\n parseContentHtmlStreamChunk(trimmed);\n if (!chunk) return;\n\n setStreamingSteps((prev) => {\n const id = `${chunk.blockIndex}-${chunk.stepNumber}`;\n const filtered = prev.filter((item) => item.id !== id);\n return [\n ...filtered,\n {\n id,\n stepNumber: chunk.stepNumber,\n html: chunk.html,\n narration: chunk.narration,\n },\n ].sort((a, b) => a.stepNumber - b.stepNumber);\n });\n }, [payload]);\n\n const combinedHtml = useMemo(() => {\n if (streamingSteps.length === 0) return \"\";\n const filtered = (() => {\n if (typeof visibleStepNumber === \"number\") {\n return streamingSteps.filter(\n (step) => step.stepNumber === visibleStepNumber\n );\n }\n if (typeof maxVisibleStepNumber === \"number\") {\n return streamingSteps.filter(\n (step) => step.stepNumber <= maxVisibleStepNumber\n );\n }\n return streamingSteps;\n })();\n return filtered\n .map((step) => {\n const narrationHtml =\n !renderNarrationAsCaption && step.narration\n ? `<p class=\"content-render-html-stream-narration\">${escapeHtml(\n step.narration\n )}</p>`\n : \"\";\n return `${step.html}${narrationHtml}`;\n })\n .join(\"\");\n }, [maxVisibleStepNumber, renderNarrationAsCaption, streamingSteps]);\n\n const templateHtml = useMemo(() => {\n return `\n<!DOCTYPE html>\n<html lang=\"zh-CN\">\n<head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n <link\n rel=\"stylesheet\"\n href=\"https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css\"\n />\n <style>\n :root { color-scheme: light; }\n body {\n margin: 0;\n padding: 16px;\n color: #0f172a;\n font-family: \"Inter\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif;\n line-height: 1.6;\n }\n .content-render-html-stream-narration {\n margin-top: 10px;\n color: #4b5563;\n font-size: 14px;\n }\n </style>\n</head>\n<body>\n <div id=\"content-container\"></div>\n</body>\n</html>\n `.trim();\n }, []);\n\n const [isLoaded, setIsLoaded] = useState(false);\n\n useEffect(() => {\n const iframe = iframeRef.current;\n if (!iframe) return;\n\n const handleLoad = () => {\n setIsLoaded(true);\n };\n\n iframe.addEventListener(\"load\", handleLoad);\n return () => {\n iframe.removeEventListener(\"load\", handleLoad);\n };\n }, []);\n\n useEffect(() => {\n if (!isLoaded) return;\n const iframe = iframeRef.current;\n if (!iframe) return;\n const doc = iframe.contentDocument;\n if (!doc) return;\n\n const container = doc.getElementById(\"content-container\");\n if (container) {\n container.innerHTML = combinedHtml;\n }\n\n const updateHeight = () => {\n try {\n const height = doc.body?.scrollHeight || 0;\n iframe.style.height = `${Math.max(height, 100)}px`;\n } catch {\n // ignore cross-origin issues\n }\n };\n\n updateHeight();\n // re-measure after a short delay to allow for rendering (e.g. images)\n const timer = window.setTimeout(updateHeight, 60);\n return () => {\n window.clearTimeout(timer);\n };\n }, [combinedHtml, isLoaded]);\n\n return (\n <div className=\"content-render-html content-render-html-stream\">\n <iframe\n ref={iframeRef}\n className=\"content-render-html-stream-iframe\"\n sandbox=\"allow-same-origin allow-scripts\"\n loading=\"lazy\"\n title=\"content-render-html-stream\"\n srcDoc={templateHtml}\n />\n {renderNarrationAsCaption && streamingSteps.length > 0 && (\n <div className=\"content-render-html-stream-caption\">\n {(() => {\n if (typeof visibleStepNumber === \"number\") {\n const target = streamingSteps.find(\n (step) => step.stepNumber === visibleStepNumber\n );\n return (\n target?.narration ||\n streamingSteps[streamingSteps.length - 1].narration\n );\n }\n return streamingSteps[streamingSteps.length - 1].narration;\n })()}\n </div>\n )}\n </div>\n );\n};\n\nexport default ContentBlackboard;\n"],"names":["escapeHtml","value","ContentBlackboard","payload","renderNarrationAsCaption","maxVisibleStepNumber","visibleStepNumber","streamingSteps","setStreamingSteps","useState","iframeRef","useRef","useEffect","trimmed","chunk","parseContentHtmlStreamChunk","prev","id","item","a","b","combinedHtml","useMemo","step","narrationHtml","templateHtml","isLoaded","setIsLoaded","iframe","handleLoad","doc","container","updateHeight","height","timer","jsxs","jsx"],"mappings":"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"}
@@ -0,0 +1,22 @@
1
+ import { default as React } from 'react';
2
+ export type ContentHtmlMeta = {
3
+ title: string;
4
+ description?: string;
5
+ };
6
+ export type ContentHtmlProps = {
7
+ html?: string;
8
+ payload?: string;
9
+ fullscreenButtonText?: string;
10
+ };
11
+ declare const parseContentHtmlMeta: (payload: string) => ContentHtmlMeta | null;
12
+ declare const isLikelyHtmlDocument: (value: string) => boolean;
13
+ declare const HtmlBlockInIframe: React.FC<{
14
+ html: string;
15
+ fullscreenButtonText?: string;
16
+ }>;
17
+ declare const HtmlBlockLoading: React.FC<{
18
+ meta: ContentHtmlMeta;
19
+ }>;
20
+ declare const ContentHtml: React.FC<ContentHtmlProps>;
21
+ export { ContentHtml, HtmlBlockInIframe, HtmlBlockLoading, isLikelyHtmlDocument, parseContentHtmlMeta, };
22
+ export default ContentHtml;
@@ -0,0 +1,108 @@
1
+ import { j as e } from "../../_virtual/jsx-runtime.js";
2
+ import { useState as a, useEffect as h } from "react";
3
+ import f from "../../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";
4
+ const p = (n) => {
5
+ try {
6
+ const t = JSON.parse(n), s = t?.title, r = t?.description;
7
+ return typeof s != "string" || s.trim().length === 0 ? null : {
8
+ title: s.trim(),
9
+ description: typeof r == "string" ? r : void 0
10
+ };
11
+ } catch {
12
+ return null;
13
+ }
14
+ }, x = (n) => {
15
+ const t = n.trim();
16
+ return /^<!doctype html/i.test(t) || /^<html[\s\S]*?>/i.test(t) || /^<head[\s\S]*?>/i.test(t) || /^<body[\s\S]*?>/i.test(t);
17
+ }, m = ({ html: n, fullscreenButtonText: t }) => {
18
+ const s = () => {
19
+ try {
20
+ const r = new Blob([n], { type: "text/html" }), o = URL.createObjectURL(r);
21
+ window.open(o, "_blank", "noopener,noreferrer"), window.setTimeout(() => URL.revokeObjectURL(o), 3e4);
22
+ } catch (r) {
23
+ console.error("Failed to open HTML in new window", r);
24
+ }
25
+ };
26
+ return /* @__PURE__ */ e.jsxs("div", { className: "content-render-html", children: [
27
+ /* @__PURE__ */ e.jsx("div", { className: "content-render-html-toolbar", children: /* @__PURE__ */ e.jsxs(
28
+ "button",
29
+ {
30
+ type: "button",
31
+ className: "content-render-html-fullscreen",
32
+ onClick: s,
33
+ children: [
34
+ /* @__PURE__ */ e.jsx(
35
+ f,
36
+ {
37
+ size: 12,
38
+ className: "content-render-html-fullscreen-icon"
39
+ }
40
+ ),
41
+ /* @__PURE__ */ e.jsx("span", { className: "content-render-html-fullscreen-text", children: t || "Fullscreen" })
42
+ ]
43
+ }
44
+ ) }),
45
+ /* @__PURE__ */ e.jsx(
46
+ "iframe",
47
+ {
48
+ className: "content-render-html-iframe",
49
+ sandbox: "allow-same-origin allow-scripts",
50
+ loading: "lazy",
51
+ title: "content-render-html",
52
+ srcDoc: n
53
+ }
54
+ )
55
+ ] });
56
+ }, j = ({ meta: n }) => /* @__PURE__ */ e.jsx("div", { className: "content-render-html content-render-html-loading", children: /* @__PURE__ */ e.jsxs("div", { className: "content-render-html-loading-body", children: [
57
+ /* @__PURE__ */ e.jsx("p", { className: "content-render-html-loading-title", children: n.title }),
58
+ n.description ? /* @__PURE__ */ e.jsx("p", { className: "content-render-html-loading-description", children: n.description }) : null,
59
+ /* @__PURE__ */ e.jsx("div", { className: "content-render-html-loading-bar", children: /* @__PURE__ */ e.jsx("span", { className: "content-render-html-loading-bar-fill" }) })
60
+ ] }) }), N = ({
61
+ html: n,
62
+ payload: t,
63
+ fullscreenButtonText: s
64
+ }) => {
65
+ const [r, o] = a(), [c, l] = a();
66
+ return h(() => {
67
+ if (typeof t > "u") {
68
+ o(void 0), l(void 0);
69
+ return;
70
+ }
71
+ const i = t.trim();
72
+ if (!i) {
73
+ o(void 0), l(void 0);
74
+ return;
75
+ }
76
+ const d = p(i);
77
+ if (d) {
78
+ o(d), l(void 0);
79
+ return;
80
+ }
81
+ if (x(i)) {
82
+ l(i), o((u) => u);
83
+ return;
84
+ }
85
+ o(void 0), l(void 0);
86
+ }, [t]), n ? /* @__PURE__ */ e.jsx(
87
+ m,
88
+ {
89
+ html: n,
90
+ fullscreenButtonText: s
91
+ }
92
+ ) : typeof t > "u" ? null : c ? /* @__PURE__ */ e.jsx(
93
+ m,
94
+ {
95
+ html: c,
96
+ fullscreenButtonText: s
97
+ }
98
+ ) : r ? /* @__PURE__ */ e.jsx(j, { meta: r }) : null;
99
+ };
100
+ export {
101
+ N as ContentHtml,
102
+ m as HtmlBlockInIframe,
103
+ j as HtmlBlockLoading,
104
+ N as default,
105
+ x as isLikelyHtmlDocument,
106
+ p as parseContentHtmlMeta
107
+ };
108
+ //# sourceMappingURL=ContentHtml.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentHtml.js","sources":["../../../src/components/ContentRender/ContentHtml.tsx"],"sourcesContent":["import { Fullscreen } from \"lucide-react\";\nimport React, { useEffect, useState } from \"react\";\n\nexport type ContentHtmlMeta = {\n title: string;\n description?: string;\n};\n\nexport type ContentHtmlProps = {\n html?: string;\n payload?: string;\n fullscreenButtonText?: string;\n};\n\nconst parseContentHtmlMeta = (payload: string): ContentHtmlMeta | null => {\n try {\n const parsed = JSON.parse(payload);\n const maybeTitle = parsed?.title;\n const maybeDescription = parsed?.description;\n if (typeof maybeTitle !== \"string\" || maybeTitle.trim().length === 0) {\n return null;\n }\n return {\n title: maybeTitle.trim(),\n description:\n typeof maybeDescription === \"string\" ? maybeDescription : undefined,\n };\n } catch {\n return null;\n }\n};\n\nconst isLikelyHtmlDocument = (value: string) => {\n const trimmed = value.trim();\n return (\n /^<!doctype html/i.test(trimmed) ||\n /^<html[\\s\\S]*?>/i.test(trimmed) ||\n /^<head[\\s\\S]*?>/i.test(trimmed) ||\n /^<body[\\s\\S]*?>/i.test(trimmed)\n );\n};\n\nconst HtmlBlockInIframe: React.FC<{\n html: string;\n fullscreenButtonText?: string;\n}> = ({ html, fullscreenButtonText }) => {\n const handleOpenFullscreen = () => {\n try {\n const blob = new Blob([html], { type: \"text/html\" });\n const url = URL.createObjectURL(blob);\n window.open(url, \"_blank\", \"noopener,noreferrer\");\n window.setTimeout(() => URL.revokeObjectURL(url), 30000);\n } catch (error) {\n console.error(\"Failed to open HTML in new window\", error);\n }\n };\n\n return (\n <div className=\"content-render-html\">\n <div className=\"content-render-html-toolbar\">\n <button\n type=\"button\"\n className=\"content-render-html-fullscreen\"\n onClick={handleOpenFullscreen}\n >\n <Fullscreen\n size={12}\n className=\"content-render-html-fullscreen-icon\"\n />\n <span className=\"content-render-html-fullscreen-text\">\n {fullscreenButtonText || \"Fullscreen\"}\n </span>\n </button>\n </div>\n <iframe\n className=\"content-render-html-iframe\"\n sandbox=\"allow-same-origin allow-scripts\"\n loading=\"lazy\"\n title=\"content-render-html\"\n srcDoc={html}\n />\n </div>\n );\n};\n\nconst HtmlBlockLoading: React.FC<{ meta: ContentHtmlMeta }> = ({ meta }) => {\n return (\n <div className=\"content-render-html content-render-html-loading\">\n <div className=\"content-render-html-loading-body\">\n <p className=\"content-render-html-loading-title\">{meta.title}</p>\n {meta.description ? (\n <p className=\"content-render-html-loading-description\">\n {meta.description}\n </p>\n ) : null}\n <div className=\"content-render-html-loading-bar\">\n <span className=\"content-render-html-loading-bar-fill\" />\n </div>\n </div>\n </div>\n );\n};\n\nconst ContentHtml: React.FC<ContentHtmlProps> = ({\n html,\n payload,\n fullscreenButtonText,\n}) => {\n const [meta, setMeta] = useState<ContentHtmlMeta>();\n const [documentHtml, setDocumentHtml] = useState<string>();\n\n useEffect(() => {\n if (typeof payload === \"undefined\") {\n setMeta(undefined);\n setDocumentHtml(undefined);\n return;\n }\n\n const trimmedPayload = payload.trim();\n if (!trimmedPayload) {\n setMeta(undefined);\n setDocumentHtml(undefined);\n return;\n }\n\n const parsedMeta = parseContentHtmlMeta(trimmedPayload);\n if (parsedMeta) {\n setMeta(parsedMeta);\n setDocumentHtml(undefined);\n return;\n }\n\n if (isLikelyHtmlDocument(trimmedPayload)) {\n setDocumentHtml(trimmedPayload);\n setMeta((prev) => prev);\n return;\n }\n\n setMeta(undefined);\n setDocumentHtml(undefined);\n }, [payload]);\n\n if (html) {\n return (\n <HtmlBlockInIframe\n html={html}\n fullscreenButtonText={fullscreenButtonText}\n />\n );\n }\n\n if (typeof payload === \"undefined\") {\n return null;\n }\n\n if (documentHtml) {\n return (\n <HtmlBlockInIframe\n html={documentHtml}\n fullscreenButtonText={fullscreenButtonText}\n />\n );\n }\n\n if (meta) {\n return <HtmlBlockLoading meta={meta} />;\n }\n\n return null;\n};\n\nexport {\n ContentHtml,\n HtmlBlockInIframe,\n HtmlBlockLoading,\n isLikelyHtmlDocument,\n parseContentHtmlMeta,\n};\n\nexport default ContentHtml;\n"],"names":["parseContentHtmlMeta","payload","parsed","maybeTitle","maybeDescription","isLikelyHtmlDocument","value","trimmed","HtmlBlockInIframe","html","fullscreenButtonText","handleOpenFullscreen","blob","url","error","jsxs","jsx","Fullscreen","HtmlBlockLoading","meta","ContentHtml","setMeta","useState","documentHtml","setDocumentHtml","useEffect","trimmedPayload","parsedMeta","prev"],"mappings":"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"}
@@ -3,16 +3,16 @@ import { CustomRenderBarProps, OnSendContentParams } from '../types';
3
3
  export interface ContentRenderProps {
4
4
  content: string;
5
5
  /**
6
- + * Callback invoked when the custom button after content is clicked.
7
- + * This button is rendered via the `<custom-button-after-content>` tag in markdown content.
8
- + * @example
9
- + * ```tsx
10
- + * <ContentRender
11
- + * content="Hello <custom-button-after-content>Ask</custom-button-after-content>"
12
- + * onClickCustomButtonAfterContent={() => console.log('Button clicked')}
13
- + * />
14
- + * ```
15
- + */
6
+ * Callback invoked when the custom button after content is clicked.
7
+ * This button is rendered via the `<custom-button-after-content>` tag in markdown content.
8
+ * @example
9
+ * ```tsx
10
+ * <ContentRender
11
+ * content="Hello <custom-button-after-content>Ask</custom-button-after-content>"
12
+ * onClickCustomButtonAfterContent={() => console.log('Button clicked')}
13
+ * />
14
+ * ```
15
+ */
16
16
  customRenderBar?: CustomRenderBarProps;
17
17
  onClickCustomButtonAfterContent?: () => void;
18
18
  onSend?: (content: OnSendContentParams) => void;
@@ -27,7 +27,13 @@ export interface ContentRenderProps {
27
27
  copyButtonText?: string;
28
28
  copiedButtonText?: string;
29
29
  dynamicInteractionFormat?: string;
30
+ fullscreenButtonText?: string;
30
31
  beforeSend?: (param: OnSendContentParams) => boolean;
32
+ contentHtmlPayload?: string;
33
+ contentType?: "default" | "blackboard";
34
+ renderNarrationAsCaption?: boolean;
35
+ maxVisibleStepNumber?: number;
36
+ visibleStepNumber?: number;
31
37
  }
32
38
  declare const ContentRender: React.FC<ContentRenderProps>;
33
39
  export default ContentRender;
@@ -1,95 +1,103 @@
1
1
  import { j as t } from "../../_virtual/jsx-runtime.js";
2
- /* empty css */
2
+ /* empty css */
3
3
  /* empty css */
4
- import S, { useRef as x, useEffect as i } from "react";
5
- import B from "../../_virtual/index.js";
4
+ import P, { useRef as b, useEffect as i } from "react";
5
+ import T from "../../_virtual/index.js";
6
+ import G from "./ContentBlackboard.js";
6
7
  /* empty css */
7
8
  /* empty css */
8
- import P from "./CodeBlock.js";
9
- import E from "./plugins/CustomVariable.js";
10
- import h from "./plugins/MermaidChart.js";
11
- import T from "./useTypewriterStateMachine.js";
12
- import { preserveCustomVariableProperties as V, restoreCustomVariableProperties as _ } from "./utils/custom-variable-props.js";
13
- import { subsetLanguages as z, highlightLanguages as A } from "./utils/highlight-languages.js";
14
- import { parseMarkdownSegments as H, mermaidBlockIsComplete as G } from "./utils/mermaid-parse.js";
15
- import { Markdown as K } from "../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/react-markdown@10.1.0_@types_react@19.2.2_react@19.0.1/node_modules/react-markdown/lib/index.js";
16
- import $ from "../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/rehype-raw@7.0.0/node_modules/rehype-raw/lib/index.js";
17
- import q from "../../node_modules/rehype-highlight/lib/index.js";
18
- import D from "../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/rehype-katex@7.0.1/node_modules/rehype-katex/lib/index.js";
19
- import F from "../../node_modules/remark-gfm/lib/index.js";
20
- import J from "../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-math@6.0.0/node_modules/remark-math/lib/index.js";
21
- import O from "../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-breaks@4.0.0/node_modules/remark-breaks/lib/index.js";
22
- const Q = ({ svg: s }) => {
23
- const n = x(null);
9
+ import H from "./CodeBlock.js";
10
+ import K from "./plugins/CustomVariable.js";
11
+ import j from "./plugins/MermaidChart.js";
12
+ import { ContentHtml as k } from "./ContentHtml.js";
13
+ import $ from "./useTypewriterStateMachine.js";
14
+ import { preserveCustomVariableProperties as q, restoreCustomVariableProperties as D } from "./utils/custom-variable-props.js";
15
+ import { subsetLanguages as F, highlightLanguages as J } from "./utils/highlight-languages.js";
16
+ import { parseMarkdownSegments as O, mermaidBlockIsComplete as Q } from "./utils/mermaid-parse.js";
17
+ import { Markdown as U } from "../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/react-markdown@10.1.0_@types_react@19.2.2_react@19.0.1/node_modules/react-markdown/lib/index.js";
18
+ import W from "../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/rehype-raw@7.0.0/node_modules/rehype-raw/lib/index.js";
19
+ import X from "../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/rehype-highlight@7.0.2/node_modules/rehype-highlight/lib/index.js";
20
+ import Y from "../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/rehype-katex@7.0.1/node_modules/rehype-katex/lib/index.js";
21
+ import Z from "../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-gfm@4.0.1/node_modules/remark-gfm/lib/index.js";
22
+ import ee from "../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-math@6.0.0/node_modules/remark-math/lib/index.js";
23
+ import te from "../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-breaks@4.0.0/node_modules/remark-breaks/lib/index.js";
24
+ const re = ({ svg: o }) => {
25
+ const n = b(null);
24
26
  return i(() => {
25
- const a = n.current;
26
- if (!a) return;
27
- const m = a.shadowRoot ?? a.attachShadow({ mode: "open" });
28
- m.innerHTML = s;
29
- }, [s]), /* @__PURE__ */ t.jsx("div", { className: "content-render-svg", ref: n });
30
- }, ke = ({
31
- content: s,
27
+ const s = n.current;
28
+ if (!s) return;
29
+ const m = s.shadowRoot ?? s.attachShadow({ mode: "open" });
30
+ m.innerHTML = o;
31
+ }, [o]), /* @__PURE__ */ t.jsx("div", { className: "content-render-svg", ref: n });
32
+ }, Ie = ({
33
+ content: o,
32
34
  customRenderBar: n,
33
- onSend: a,
35
+ onSend: s,
34
36
  typingSpeed: m = 30,
35
- enableTypewriter: j = !1,
36
- defaultButtonText: k,
37
- defaultInputText: b,
38
- defaultSelectedValues: g,
39
- readonly: N = !1,
40
- onTypeFinished: l,
41
- confirmButtonText: y,
42
- copyButtonText: C,
43
- copiedButtonText: v,
44
- onClickCustomButtonAfterContent: w,
45
- beforeSend: R
37
+ enableTypewriter: g = !1,
38
+ defaultButtonText: y,
39
+ defaultInputText: N,
40
+ defaultSelectedValues: C,
41
+ readonly: v = !1,
42
+ onTypeFinished: u,
43
+ confirmButtonText: w,
44
+ copyButtonText: R,
45
+ copiedButtonText: M,
46
+ fullscreenButtonText: p,
47
+ onClickCustomButtonAfterContent: I,
48
+ beforeSend: L,
49
+ contentHtmlPayload: l,
50
+ contentType: S = "default",
51
+ renderNarrationAsCaption: B = !1,
52
+ maxVisibleStepNumber: E,
53
+ visibleStepNumber: V
46
54
  // tooltipMinLength,
47
55
  }) => {
48
- const { displayContent: u, isComplete: p } = T({
56
+ const { displayContent: f, isComplete: d } = $({
49
57
  // processMarkdownText will let code block printf("You win!\n") become printf("You win!<br/>");
50
58
  // content: processMarkdownText(content),
51
- content: s,
59
+ content: o,
52
60
  typingSpeed: m,
53
- disabled: !j
54
- }), M = {
61
+ disabled: !g
62
+ }), _ = {
55
63
  "custom-button-after-content": ({
56
64
  children: e
57
65
  }) => /* @__PURE__ */ t.jsx(
58
66
  "button",
59
67
  {
60
68
  className: "content-render-custom-button-after-content",
61
- onClick: w,
69
+ onClick: I,
62
70
  children: e
63
71
  }
64
72
  ),
65
73
  "custom-variable": (e) => /* @__PURE__ */ t.jsx(
66
- E,
74
+ K,
67
75
  {
68
76
  ...e,
69
- readonly: N,
70
- defaultButtonText: k,
71
- defaultInputText: b,
72
- defaultSelectedValues: g,
73
- onSend: a,
74
- beforeSend: R,
75
- confirmButtonText: y
77
+ readonly: v,
78
+ defaultButtonText: y,
79
+ defaultInputText: N,
80
+ defaultSelectedValues: C,
81
+ onSend: s,
82
+ beforeSend: L,
83
+ confirmButtonText: w
76
84
  }
77
85
  ),
78
86
  code: (e) => {
79
- const { className: r, children: o, ...d } = e;
87
+ const { className: r, children: a, ...h } = e;
80
88
  if (/language-(\w+)/.exec(r || "")?.[1] === "mermaid") {
81
- const f = o?.toString().replace(/\n$/, "") || "", L = G(s, f);
82
- return /* @__PURE__ */ t.jsx(h, { chart: f, frozen: L });
89
+ const x = a?.toString().replace(/\n$/, "") || "", A = Q(o, x);
90
+ return /* @__PURE__ */ t.jsx(j, { chart: x, frozen: A });
83
91
  }
84
- return /* @__PURE__ */ t.jsx("code", { className: r, ...d, children: o });
92
+ return /* @__PURE__ */ t.jsx("code", { className: r, ...h, children: a });
85
93
  },
86
94
  table: ({ ...e }) => /* @__PURE__ */ t.jsx("div", { className: "content-render-table-container", children: /* @__PURE__ */ t.jsx("table", { className: "content-render-table", ...e }) }),
87
95
  th: ({ ...e }) => /* @__PURE__ */ t.jsx("th", { className: "content-render-th", ...e }),
88
96
  td: ({ ...e }) => /* @__PURE__ */ t.jsx("td", { className: "content-render-td", ...e }),
89
97
  tr: ({ ...e }) => /* @__PURE__ */ t.jsx("tr", { className: "content-render-tr", ...e }),
90
98
  li: ({ node: e, ...r }) => {
91
- const o = e?.properties?.className;
92
- return typeof o == "string" && o.includes("task-list-item") || Array.isArray(o) && o.includes("task-list-item") ? /* @__PURE__ */ t.jsx("li", { className: "content-render-task-list-item", ...r }) : /* @__PURE__ */ t.jsx("li", { ...r });
99
+ const a = e?.properties?.className;
100
+ return typeof a == "string" && a.includes("task-list-item") || Array.isArray(a) && a.includes("task-list-item") ? /* @__PURE__ */ t.jsx("li", { className: "content-render-task-list-item", ...r }) : /* @__PURE__ */ t.jsx("li", { ...r });
93
101
  },
94
102
  ol: ({ ...e }) => /* @__PURE__ */ t.jsx("ol", { className: "content-render-ol", ...e }),
95
103
  ul: ({ ...e }) => /* @__PURE__ */ t.jsx("ul", { className: "content-render-ul", ...e }),
@@ -104,62 +112,77 @@ const Q = ({ svg: s }) => {
104
112
  ) : /* @__PURE__ */ t.jsx("input", { ...e }),
105
113
  a: ({ children: e, ...r }) => /* @__PURE__ */ t.jsx("a", { target: "_blank", rel: "noopener noreferrer", ...r, children: e }),
106
114
  pre: (e) => /* @__PURE__ */ t.jsx(
107
- P,
115
+ H,
108
116
  {
109
117
  ...e,
110
- copyButtonText: C,
111
- copiedButtonText: v
118
+ copyButtonText: R,
119
+ copiedButtonText: M
112
120
  }
113
121
  )
114
- }, c = x(!1);
122
+ }, c = b(!1);
115
123
  i(() => {
116
- p && !c.current && (c.current = !0, l?.());
117
- }, [p, l]), i(() => {
124
+ d && !c.current && (c.current = !0, u?.());
125
+ }, [d, u]), i(() => {
118
126
  c.current = !1;
119
- }, [s]);
120
- const I = H(u);
127
+ }, [o]);
128
+ const z = O(f);
121
129
  return /* @__PURE__ */ t.jsxs("div", { className: "content-render markdown-body", children: [
122
- I.map((e, r) => {
123
- if (e.type === "text")
124
- return /* @__PURE__ */ t.jsx(
125
- K,
126
- {
127
- remarkPlugins: [F, J, B, O],
128
- rehypePlugins: [
129
- V,
130
- $,
131
- _,
132
- [
133
- q,
134
- { languages: A, subset: z }
135
- ],
136
- D
137
- ],
138
- components: M,
139
- children: e.value
140
- },
141
- r
142
- );
143
- if (e.type === "mermaid")
144
- return /* @__PURE__ */ t.jsx(
145
- h,
146
- {
147
- chart: e.value,
148
- frozen: !e.complete
149
- },
150
- r
151
- );
152
- if (e.type === "svg")
153
- return /* @__PURE__ */ t.jsx(Q, { svg: e.value }, r);
154
- }),
155
- n && S.createElement(n, {
156
- content: s,
157
- displayContent: u,
158
- onSend: a
130
+ z.map((e, r) => e.type === "text" ? /* @__PURE__ */ t.jsx(
131
+ U,
132
+ {
133
+ remarkPlugins: [Z, ee, T, te],
134
+ rehypePlugins: [
135
+ q,
136
+ W,
137
+ D,
138
+ [
139
+ X,
140
+ { languages: J, subset: F }
141
+ ],
142
+ Y
143
+ ],
144
+ components: _,
145
+ children: e.value
146
+ },
147
+ r
148
+ ) : e.type === "mermaid" ? /* @__PURE__ */ t.jsx(
149
+ j,
150
+ {
151
+ chart: e.value,
152
+ frozen: !e.complete
153
+ },
154
+ r
155
+ ) : e.type === "svg" ? /* @__PURE__ */ t.jsx(re, { svg: e.value }, r) : e.type === "html" ? /* @__PURE__ */ t.jsx(
156
+ k,
157
+ {
158
+ html: e.value,
159
+ fullscreenButtonText: p
160
+ },
161
+ r
162
+ ) : null),
163
+ l && (S === "blackboard" ? /* @__PURE__ */ t.jsx(
164
+ G,
165
+ {
166
+ payload: l,
167
+ renderNarrationAsCaption: B,
168
+ maxVisibleStepNumber: E,
169
+ visibleStepNumber: V
170
+ }
171
+ ) : /* @__PURE__ */ t.jsx(
172
+ k,
173
+ {
174
+ payload: l,
175
+ fullscreenButtonText: p
176
+ }
177
+ )),
178
+ n && P.createElement(n, {
179
+ content: o,
180
+ displayContent: f,
181
+ onSend: s
159
182
  })
160
183
  ] });
161
184
  };
162
185
  export {
163
- ke as default
186
+ Ie as default
164
187
  };
165
188
  //# sourceMappingURL=ContentRender.js.map