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 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../../node_modules/.pnpm/micromark-extension-gfm@3.0.0/node_modules/micromark-extension-gfm/index.js"],"sourcesContent":["/**\n * @typedef {import('micromark-extension-gfm-footnote').HtmlOptions} HtmlOptions\n * @typedef {import('micromark-extension-gfm-strikethrough').Options} Options\n * @typedef {import('micromark-util-types').Extension} Extension\n * @typedef {import('micromark-util-types').HtmlExtension} HtmlExtension\n */\n\nimport {\n combineExtensions,\n combineHtmlExtensions\n} from 'micromark-util-combine-extensions'\nimport {\n gfmAutolinkLiteral,\n gfmAutolinkLiteralHtml\n} from 'micromark-extension-gfm-autolink-literal'\nimport {gfmFootnote, gfmFootnoteHtml} from 'micromark-extension-gfm-footnote'\nimport {\n gfmStrikethrough,\n gfmStrikethroughHtml\n} from 'micromark-extension-gfm-strikethrough'\nimport {gfmTable, gfmTableHtml} from 'micromark-extension-gfm-table'\nimport {gfmTagfilterHtml} from 'micromark-extension-gfm-tagfilter'\nimport {\n gfmTaskListItem,\n gfmTaskListItemHtml\n} from 'micromark-extension-gfm-task-list-item'\n\n/**\n * Create an extension for `micromark` to enable GFM syntax.\n *\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n *\n * Passed to `micromark-extens-gfm-strikethrough`.\n * @returns {Extension}\n * Extension for `micromark` that can be passed in `extensions` to enable GFM\n * syntax.\n */\nexport function gfm(options) {\n return combineExtensions([\n gfmAutolinkLiteral(),\n gfmFootnote(),\n gfmStrikethrough(options),\n gfmTable(),\n gfmTaskListItem()\n ])\n}\n\n/**\n * Create an extension for `micromark` to support GFM when serializing to HTML.\n *\n * @param {HtmlOptions | null | undefined} [options]\n * Configuration (optional).\n *\n * Passed to `micromark-extens-gfm-footnote`.\n * @returns {HtmlExtension}\n * Extension for `micromark` that can be passed in `htmlExtensions` to\n * support GFM when serializing to HTML.\n */\nexport function gfmHtml(options) {\n return combineHtmlExtensions([\n gfmAutolinkLiteralHtml(),\n gfmFootnoteHtml(options),\n gfmStrikethroughHtml(),\n gfmTableHtml(),\n gfmTagfilterHtml(),\n gfmTaskListItemHtml()\n ])\n}\n"],"names":["gfm","options","combineExtensions","gfmAutolinkLiteral","gfmFootnote","gfmStrikethrough","gfmTable","gfmTaskListItem"],"mappings":";;;;;;AAsCO,SAASA,EAAIC,GAAS;AAC3B,SAAOC,EAAkB;AAAA,IACvBC,EAAkB;AAAA,IAClBC,EAAW;AAAA,IACXC,EAAiBJ,CAAO;AAAA,IACxBK,EAAQ;AAAA,IACRC,EAAe;AAAA,EACnB,CAAG;AACH;","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/.pnpm/rehype-highlight@7.0.2/node_modules/rehype-highlight/lib/index.js"],"sourcesContent":["/**\n * @import {ElementContent, Element, Root} from 'hast'\n * @import {LanguageFn} from 'lowlight'\n * @import {VFile} from 'vfile'\n */\n\n/**\n * @typedef Options\n * Configuration (optional).\n * @property {Readonly<Record<string, ReadonlyArray<string> | string>> | null | undefined} [aliases={}]\n * Register more aliases (optional);\n * passed to `lowlight.registerAlias`.\n * @property {boolean | null | undefined} [detect=false]\n * Highlight code without language classes by guessing its programming\n * language (default: `false`).\n * @property {Readonly<Record<string, LanguageFn>> | null | undefined} [languages]\n * Register languages (default: `common`);\n * passed to `lowlight.register`.\n * @property {ReadonlyArray<string> | null | undefined} [plainText=[]]\n * List of language names to not highlight (optional);\n * note you can also add `no-highlight` classes.\n * @property {string | null | undefined} [prefix='hljs-']\n * Class prefix (default: `'hljs-'`).\n * @property {ReadonlyArray<string> | null | undefined} [subset]\n * Names of languages to check when detecting (default: all registered\n * languages).\n */\n\nimport {toText} from 'hast-util-to-text'\nimport {common, createLowlight} from 'lowlight'\nimport {visit} from 'unist-util-visit'\n\n/** @type {Options} */\nconst emptyOptions = {}\n\n/**\n * Apply syntax highlighting.\n *\n * @param {Readonly<Options> | null | undefined} [options]\n * Configuration (optional).\n * @returns\n * Transform.\n */\nexport default function rehypeHighlight(options) {\n const settings = options || emptyOptions\n const aliases = settings.aliases\n const detect = settings.detect || false\n const languages = settings.languages || common\n const plainText = settings.plainText\n const prefix = settings.prefix\n const subset = settings.subset\n let name = 'hljs'\n\n const lowlight = createLowlight(languages)\n\n if (aliases) {\n lowlight.registerAlias(aliases)\n }\n\n if (prefix) {\n const pos = prefix.indexOf('-')\n name = pos === -1 ? prefix : prefix.slice(0, pos)\n }\n\n /**\n * Transform.\n *\n * @param {Root} tree\n * Tree.\n * @param {VFile} file\n * File.\n * @returns {undefined}\n * Nothing.\n */\n return function (tree, file) {\n visit(tree, 'element', function (node, _, parent) {\n if (\n node.tagName !== 'code' ||\n !parent ||\n parent.type !== 'element' ||\n parent.tagName !== 'pre'\n ) {\n return\n }\n\n const lang = language(node)\n\n if (\n lang === false ||\n (!lang && !detect) ||\n (lang && plainText && plainText.includes(lang))\n ) {\n return\n }\n\n if (!Array.isArray(node.properties.className)) {\n node.properties.className = []\n }\n\n if (!node.properties.className.includes(name)) {\n node.properties.className.unshift(name)\n }\n\n const text = toText(node, {whitespace: 'pre'})\n /** @type {Root} */\n let result\n\n try {\n result = lang\n ? lowlight.highlight(lang, text, {prefix})\n : lowlight.highlightAuto(text, {prefix, subset})\n } catch (error) {\n const cause = /** @type {Error} */ (error)\n\n if (lang && /Unknown language/.test(cause.message)) {\n file.message(\n 'Cannot highlight as `' + lang + '`, it’s not registered',\n {\n ancestors: [parent, node],\n cause,\n place: node.position,\n ruleId: 'missing-language',\n source: 'rehype-highlight'\n }\n )\n\n /* c8 ignore next 5 -- throw arbitrary hljs errors */\n return\n }\n\n throw cause\n }\n\n if (!lang && result.data && result.data.language) {\n node.properties.className.push('language-' + result.data.language)\n }\n\n if (result.children.length > 0) {\n node.children = /** @type {Array<ElementContent>} */ (result.children)\n }\n })\n }\n}\n\n/**\n * Get the programming language of `node`.\n *\n * @param {Element} node\n * Node.\n * @returns {false | string | undefined}\n * Language or `undefined`, or `false` when an explikcit `no-highlight` class\n * is used.\n */\nfunction language(node) {\n const list = node.properties.className\n let index = -1\n\n if (!Array.isArray(list)) {\n return\n }\n\n /** @type {string | undefined} */\n let name\n\n while (++index < list.length) {\n const value = String(list[index])\n\n if (value === 'no-highlight' || value === 'nohighlight') {\n return false\n }\n\n if (!name && value.slice(0, 5) === 'lang-') {\n name = value.slice(5)\n }\n\n if (!name && value.slice(0, 9) === 'language-') {\n name = value.slice(9)\n }\n }\n\n return name\n}\n"],"names":["emptyOptions","rehypeHighlight","options","settings","aliases","detect","languages","common","plainText","prefix","subset","name","lowlight","createLowlight","pos","tree","file","visit","node","_","parent","lang","language","text","toText","result","error","cause","list","index","value"],"mappings":";;;;AAiCA,MAAMA,IAAe,CAAA;AAUN,SAASC,EAAgBC,GAAS;AAC/C,QAAMC,IAAWD,KAAWF,GACtBI,IAAUD,EAAS,SACnBE,IAASF,EAAS,UAAU,IAC5BG,IAAYH,EAAS,aAAaI,GAClCC,IAAYL,EAAS,WACrBM,IAASN,EAAS,QAClBO,IAASP,EAAS;AACxB,MAAIQ,IAAO;AAEX,QAAMC,IAAWC,EAAeP,CAAS;AAMzC,MAJIF,KACFQ,EAAS,cAAcR,CAAO,GAG5BK,GAAQ;AACV,UAAMK,IAAML,EAAO,QAAQ,GAAG;AAC9B,IAAAE,IAAOG,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MAC3BP,EAAK;AAAA,MAAiDO,EAAO;AAAA,IAEjE,CAAC;AAAA,EACH;AACF;AAWA,SAASH,EAASJ,GAAM;AACtB,QAAMU,IAAOV,EAAK,WAAW;AAC7B,MAAIW,IAAQ;AAEZ,MAAI,CAAC,MAAM,QAAQD,CAAI;AACrB;AAIF,MAAIjB;AAEJ,SAAO,EAAEkB,IAAQD,EAAK,UAAQ;AAC5B,UAAME,IAAQ,OAAOF,EAAKC,CAAK,CAAC;AAEhC,QAAIC,MAAU,kBAAkBA,MAAU;AACxC,aAAO;AAGT,IAAI,CAACnB,KAAQmB,EAAM,MAAM,GAAG,CAAC,MAAM,YACjCnB,IAAOmB,EAAM,MAAM,CAAC,IAGlB,CAACnB,KAAQmB,EAAM,MAAM,GAAG,CAAC,MAAM,gBACjCnB,IAAOmB,EAAM,MAAM,CAAC;AAAA,EAExB;AAEA,SAAOnB;AACT;","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/.pnpm/remark-flow@0.1.6/node_modules/remark-flow/dist/index.js"],"sourcesContent":["\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.remarkInteraction = exports.remarkFlow = exports.remarkCustomVariable = exports.InteractionType = exports.InteractionParser = exports.createInteractionParser = void 0;\nconst remark_custom_variable_1 = __importDefault(require(\"./remark-custom-variable\"));\nexports.remarkCustomVariable = remark_custom_variable_1.default;\nconst remark_flow_1 = __importDefault(require(\"./remark-flow\"));\nexports.remarkFlow = remark_flow_1.default;\nconst remark_interaction_1 = __importDefault(require(\"./remark-interaction\"));\nexports.remarkInteraction = remark_interaction_1.default;\nvar interaction_parser_1 = require(\"./interaction-parser\");\nObject.defineProperty(exports, \"createInteractionParser\", { enumerable: true, get: function () { return interaction_parser_1.createInteractionParser; } });\nObject.defineProperty(exports, \"InteractionParser\", { enumerable: true, get: function () { return interaction_parser_1.InteractionParser; } });\nObject.defineProperty(exports, \"InteractionType\", { enumerable: true, get: function () { return interaction_parser_1.InteractionType; } });\nexports.default = remark_interaction_1.default;\n//# sourceMappingURL=index.js.map"],"names":["__importDefault","this","mod","exports","remark_custom_variable_1","require$$0","remark_flow_1","require$$1","remark_interaction_1","require$$2","interaction_parser_1","require$$3"],"mappings":";;;;;;;;AACA,QAAIA,IAAmBC,KAAQA,EAAK,mBAAoB,SAAUC,GAAK;AACnE,aAAQA,KAAOA,EAAI,aAAcA,IAAM,EAAE,SAAWA,EAAG;AAAA,IAC3D;AACA,WAAO,eAAcC,GAAU,cAAc,EAAE,OAAO,IAAM,GAC5DA,EAAA,oBAA4BA,eAAqBA,EAAA,uBAA+BA,EAAA,kBAA0BA,EAAA,oBAA4BA,EAAA,0BAAkC;AACxK,UAAMC,IAA2BJ,EAAgBK,GAAmC;AACpF,IAAAF,EAAA,uBAA+BC,EAAyB;AACxD,UAAME,IAAgBN,EAAgBO,GAAwB;AAC9D,IAAAJ,EAAA,aAAqBG,EAAc;AACnC,UAAME,IAAuBR,EAAgBS,GAA+B;AAC5E,IAAAN,EAAA,oBAA4BK,EAAqB;AACjD,QAAIE,IAAuBC,EAAA;AAC3B,WAAO,eAAeR,GAAS,2BAA2B,EAAE,YAAY,IAAM,KAAK,WAAY;AAAE,aAAOO,EAAqB;AAAA,IAAwB,EAAE,CAAE,GACzJ,OAAO,eAAeP,GAAS,qBAAqB,EAAE,YAAY,IAAM,KAAK,WAAY;AAAE,aAAOO,EAAqB;AAAA,IAAkB,EAAE,CAAE,GAC7I,OAAO,eAAeP,GAAS,mBAAmB,EAAE,YAAY,IAAM,KAAK,WAAY;AAAE,aAAOO,EAAqB;AAAA,IAAgB,EAAE,CAAE,GACzIP,EAAA,UAAkBK,EAAqB;AAAA;;","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"interaction-parser.js","sources":["../../../../../../../../../../node_modules/.pnpm/remark-flow@0.1.6/node_modules/remark-flow/dist/interaction-parser.js"],"sourcesContent":["\"use strict\";\n/**\n * MarkdownFlow Interactive Block Layered Parser - TypeScript Version\n *\n * Uses a three-layer analysis architecture:\n * Layer 1: ?[] format validation\n * Layer 2: Variable detection and pattern classification\n * Layer 3: Specific content parsing\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.InteractionParser = exports.COMPILED_REGEXES = exports.InteractionType = void 0;\nexports.parseInteractionFormat = parseInteractionFormat;\nexports.createInteractionParser = createInteractionParser;\n// Interaction input type enumeration\nvar InteractionType;\n(function (InteractionType) {\n InteractionType[\"TEXT_ONLY\"] = \"text_only\";\n InteractionType[\"BUTTONS_ONLY\"] = \"buttons_only\";\n InteractionType[\"BUTTONS_WITH_TEXT\"] = \"buttons_with_text\";\n InteractionType[\"BUTTONS_MULTI_SELECT\"] = \"buttons_multi_select\";\n InteractionType[\"BUTTONS_MULTI_WITH_TEXT\"] = \"buttons_multi_with_text\";\n InteractionType[\"NON_ASSIGNMENT_BUTTON\"] = \"non_assignment_button\";\n})(InteractionType || (exports.InteractionType = InteractionType = {}));\n// Pre-compiled regex constants\nexports.COMPILED_REGEXES = {\n // Layer 1: Basic format validation - matches ?[content] but excludes ?[text](url) format\n LAYER1_INTERACTION: /\\?\\[([^\\]]*)\\](?!\\()/,\n // Layer 2: Variable detection - matches %{{variable}}content format (supports letters, numbers, underscores, Unicode letters, NO spaces allowed)\n LAYER2_VARIABLE: /^%\\{\\{([a-zA-Z0-9_\\u4e00-\\u9fa5\\u3040-\\u309f\\u30a0-\\u30ff]+)\\}\\}(.*)$/,\n // Layer 3: Split content before and after ...\n LAYER3_ELLIPSIS: /^(.*?)\\.\\.\\.(.*)/,\n // Layer 3: Split Button//value format\n LAYER3_BUTTON_VALUE: /^(.+?)\\/\\/(.+)$/,\n // Layer 3: Split on single | but not ||\n LAYER3_SINGLE_PIPE_SPLIT: /(?<!\\|)\\|(?!\\|)/,\n};\n/**\n * Layered interaction parser class\n */\nclass InteractionParser {\n constructor() {\n // Constructor is intentionally empty - no initialization needed\n }\n /**\n * Main parsing method\n *\n * @param content - Raw content of interaction block\n * @returns Standardized parse result\n */\n parse(content) {\n try {\n // Layer 1: Validate basic format\n const innerContent = this._layer1ValidateFormat(content);\n if (innerContent === null) {\n return this._createErrorResult(`Invalid interaction format: ${content}`);\n }\n // Layer 2: Variable detection and pattern classification\n const [hasVariable, variableName, remainingContent] = this._layer2DetectVariable(innerContent);\n // Layer 3: Specific content parsing\n if (hasVariable && variableName) {\n return this._layer3ParseVariableInteraction(variableName, remainingContent);\n }\n else {\n return this._layer3ParseDisplayButtons(innerContent);\n }\n }\n catch (error) {\n return this._createErrorResult(`Parsing error: ${error instanceof Error ? error.message : 'Unknown error'}`);\n }\n }\n /**\n * Parse and convert to remark-compatible format\n *\n * @param content - Raw content of interaction block\n * @returns remark-compatible result object\n */\n parseToRemarkFormat(content) {\n const result = this.parse(content);\n if (result.error) {\n // Compatibility handling when parsing fails\n return { placeholder: content.trim() };\n }\n // Convert to remark-compatible format\n const remarkResult = {};\n if (result.type === InteractionType.NON_ASSIGNMENT_BUTTON) {\n // Non-assignment button\n const nonAssignmentResult = result;\n remarkResult.buttonTexts = nonAssignmentResult.buttons.map(b => b.display);\n remarkResult.buttonValues = nonAssignmentResult.buttons.map(b => b.value);\n }\n else if (result.type !== null) {\n // Variable interaction\n const variableResult = result;\n remarkResult.variableName = variableResult.variable;\n if (variableResult.buttons) {\n remarkResult.buttonTexts = variableResult.buttons.map(b => b.display);\n remarkResult.buttonValues = variableResult.buttons.map(b => b.value);\n }\n if (variableResult.question !== undefined) {\n remarkResult.placeholder = variableResult.question;\n }\n if (variableResult.isMultiSelect !== undefined) {\n remarkResult.isMultiSelect = variableResult.isMultiSelect;\n }\n }\n return remarkResult;\n }\n /**\n * Layer 1: Validate ?[] format and extract content\n *\n * @param content - Raw content\n * @returns Extracted bracket content, returns null if validation fails\n */\n _layer1ValidateFormat(content) {\n content = content.trim();\n const match = exports.COMPILED_REGEXES.LAYER1_INTERACTION.exec(content);\n if (!match) {\n return null;\n }\n // Ensure the match is the complete content (no other text)\n const matchedText = match[0];\n if (matchedText.trim() !== content) {\n return null;\n }\n return match[1];\n }\n /**\n * Layer 2: Detect variables and perform pattern classification\n *\n * @param innerContent - Content extracted from layer 1\n * @returns [hasVariable, variableName, remainingContent]\n */\n _layer2DetectVariable(innerContent) {\n const match = exports.COMPILED_REGEXES.LAYER2_VARIABLE.exec(innerContent);\n if (!match) {\n // No variable, entire content used for display button parsing\n return [false, null, innerContent];\n }\n const variableName = match[1]; // No trim needed - spaces not allowed in variable names\n const remainingContent = match[2].trim();\n return [true, variableName, remainingContent];\n }\n /**\n * Layer 3: Parse variable interaction (variable assignment type)\n *\n * @param variableName - Variable name\n * @param content - Content after variable\n * @returns Parse result\n */\n _layer3ParseVariableInteraction(variableName, content) {\n // Detect if there's ... separator\n const ellipsisMatch = exports.COMPILED_REGEXES.LAYER3_ELLIPSIS.exec(content);\n if (ellipsisMatch) {\n // Has ... separator\n const beforeEllipsis = ellipsisMatch[1].trim();\n const question = ellipsisMatch[2].trim();\n if (beforeEllipsis) {\n // Button group + text input: ?[%{{var}} Button1 | Button2 | ...question]\n const [buttons, isMultiSelect] = this._parseButtons(beforeEllipsis);\n const interactionType = isMultiSelect\n ? InteractionType.BUTTONS_MULTI_WITH_TEXT\n : InteractionType.BUTTONS_WITH_TEXT;\n return {\n type: interactionType,\n variable: variableName,\n buttons: buttons,\n question: question,\n isMultiSelect: isMultiSelect,\n };\n }\n else {\n // Pure text input\n return {\n type: InteractionType.TEXT_ONLY,\n variable: variableName,\n question: question,\n isMultiSelect: false,\n };\n }\n }\n else {\n // No ... separator\n if ((/\\|/.test(content) || /\\|\\|/.test(content)) && content) {\n // Pure button group: ?[%{{var}} Button1 | Button2] or ?[%{{var}} Button1 || Button2]\n const [buttons, isMultiSelect] = this._parseButtons(content);\n const interactionType = isMultiSelect\n ? InteractionType.BUTTONS_MULTI_SELECT\n : InteractionType.BUTTONS_ONLY;\n return {\n type: interactionType,\n variable: variableName,\n buttons: buttons,\n isMultiSelect: isMultiSelect,\n };\n }\n else if (content) {\n // Single button: ?[%{{var}} Button1] or ?[%{{var}} Button1//id1]\n const button = this._parseSingleButton(content);\n return {\n type: InteractionType.BUTTONS_ONLY,\n variable: variableName,\n buttons: [button],\n isMultiSelect: false,\n };\n }\n else {\n // Pure text input (no prompt): ?[%{{var}}]\n return {\n type: InteractionType.TEXT_ONLY,\n variable: variableName,\n question: '',\n isMultiSelect: false,\n };\n }\n }\n }\n /**\n * Layer 3: Parse display buttons (non-variable assignment type)\n *\n * @param content - Content\n * @returns Parse result\n */\n _layer3ParseDisplayButtons(content) {\n if (!content) {\n // Empty content: ?[]\n return {\n type: InteractionType.NON_ASSIGNMENT_BUTTON,\n buttons: [{ display: '', value: '' }],\n };\n }\n if (/\\|/.test(content)) {\n // Multiple buttons: ?[Continue | Cancel]\n const [buttons] = this._parseButtons(content); // Only use buttons, ignore isMultiSelect for display buttons\n return {\n type: InteractionType.NON_ASSIGNMENT_BUTTON,\n buttons: buttons,\n };\n }\n else {\n // Single button: ?[Continue]\n const button = this._parseSingleButton(content);\n return {\n type: InteractionType.NON_ASSIGNMENT_BUTTON,\n buttons: [button],\n };\n }\n }\n /**\n * Parse button group with fault tolerance\n *\n * @param content - Button content, separated by | or ||\n * @returns [button list, isMultiSelect]\n */\n _parseButtons(content) {\n if (!content || typeof content !== 'string') {\n return [[], false];\n }\n const [_separator, isMultiSelect] = this._detectSeparatorType(content);\n const buttons = [];\n try {\n // Use different splitting logic based on separator type\n let buttonTexts;\n if (isMultiSelect) {\n // Multi-select mode: split on ||, preserve single |\n buttonTexts = content.split('||');\n }\n else {\n // Single-select mode: split on single |, but preserve ||\n // Use pre-compiled regex from constants\n buttonTexts = content.split(exports.COMPILED_REGEXES.LAYER3_SINGLE_PIPE_SPLIT);\n }\n for (const buttonText of buttonTexts) {\n const trimmed = buttonText.trim();\n if (trimmed) {\n const button = this._parseSingleButton(trimmed);\n buttons.push(button);\n }\n }\n }\n catch {\n // Fallback to treating entire content as single button\n return [[{ display: content.trim(), value: content.trim() }], false];\n }\n // For empty content (like just separators), return empty list\n if (!buttons.length &&\n (content.trim() === '||' || content.trim() === '|')) {\n return [[], isMultiSelect];\n }\n // Ensure at least one button exists (but only if there's actual content)\n if (!buttons.length && content.trim()) {\n buttons.push({ display: content.trim(), value: content.trim() });\n }\n return [buttons, isMultiSelect];\n }\n /**\n * Parse single button, supports Button//value format\n *\n * @param buttonText - Button text\n * @returns {display: display text, value: actual value}\n */\n _parseSingleButton(buttonText) {\n buttonText = buttonText.trim();\n // Detect Button//value format\n const match = exports.COMPILED_REGEXES.LAYER3_BUTTON_VALUE.exec(buttonText);\n if (match) {\n const display = match[1].trim();\n const value = match[2].trim();\n return { display: display, value: value };\n }\n else {\n return { display: buttonText, value: buttonText };\n }\n }\n /**\n * Detect separator type and whether it's multi-select\n *\n * Logic: The first separator type encountered determines the parsing mode:\n * - If first separator is |, then || is treated as part of the value\n * - If first separator is ||, then single | is treated as part of the value\n *\n * @param content - Button content to analyze\n * @returns [separator, isMultiSelect] where separator is '|' or '||'\n */\n _detectSeparatorType(content) {\n if (!content || typeof content !== 'string') {\n return ['|', false];\n }\n // Find the position of first single pipe and first double pipe\n const singlePipePos = content.indexOf('|');\n const doublePipePos = content.indexOf('||');\n // If no pipes found\n if (singlePipePos === -1) {\n return ['|', false];\n }\n // If no double pipe found, definitely single-select\n if (doublePipePos === -1) {\n return ['|', false];\n }\n // Both found - check which comes first\n // If double pipe comes first or at the same position (which means\n // the single pipe is part of the double pipe), it's multi-select mode\n if (doublePipePos <= singlePipePos) {\n return ['||', true];\n }\n // If single pipe comes first, it's single-select mode\n return ['|', false];\n }\n /**\n * Create error result\n *\n * @param errorMessage - Error message\n * @returns Error result\n */\n _createErrorResult(errorMessage) {\n return {\n type: null,\n error: errorMessage,\n };\n }\n}\nexports.InteractionParser = InteractionParser;\n/**\n * Convenience function for parsing interaction format\n *\n * Supported formats:\n * 1. ?[%{{var}}...question] - Pure text input\n * 2. ?[%{{var}} option1|option2] - Pure button group (supports display//value format)\n * 3. ?[%{{var}} option1|option2|...question] - Button group + text input\n * 4. ?[%{{var}} option1||option2] - Multi-select button group\n * 5. ?[%{{var}} option1||option2||...question] - Multi-select button group + text input\n * 6. ?[%{{var}} single option] - Single button selection\n * 7. ?[Continue] or ?[Continue|Cancel] - Non-assignment button\n *\n * @param content - Raw content of interaction block\n * @returns [interaction type, parsed data]\n */\nfunction parseInteractionFormat(content) {\n // Use new layered parser\n const parser = new InteractionParser();\n const result = parser.parse(content);\n // Handle parse errors\n if (result.error) {\n // Compatibility handling when parsing fails\n return [InteractionType.TEXT_ONLY, { question: content.trim() }];\n }\n // Extract parse result and convert to original return format\n const interactionType = result.type;\n // Build return data dictionary for backward compatibility\n const returnData = {};\n if (result.type !== InteractionType.NON_ASSIGNMENT_BUTTON) {\n const variableResult = result;\n if (variableResult.variable !== undefined) {\n returnData.variable = variableResult.variable;\n }\n if (variableResult.buttons !== undefined) {\n returnData.buttons = variableResult.buttons;\n }\n if (variableResult.question !== undefined) {\n returnData.question = variableResult.question;\n }\n if (variableResult.isMultiSelect !== undefined) {\n returnData.isMultiSelect = variableResult.isMultiSelect;\n }\n }\n else {\n const buttonResult = result;\n if (buttonResult.buttons !== undefined) {\n returnData.buttons = buttonResult.buttons;\n }\n }\n // Ensure we have a valid interaction type, fallback to TEXT_ONLY if null\n const finalType = interactionType || InteractionType.TEXT_ONLY;\n return [finalType, returnData];\n}\n/**\n * Factory function to create parser instance\n */\nfunction createInteractionParser() {\n return new InteractionParser();\n}\n//# sourceMappingURL=interaction-parser.js.map"],"names":["exports","parseInteractionFormat","createInteractionParser","InteractionType","InteractionParser","content","innerContent","hasVariable","variableName","remainingContent","error","result","remarkResult","nonAssignmentResult","b","variableResult","match","ellipsisMatch","beforeEllipsis","question","buttons","isMultiSelect","button","_separator","buttonTexts","buttonText","trimmed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AEzBsB,IAAa,CAAA;AACnB,UAAItB,EAAO,SAASR,EAAgB,uBAAuB;AACvD,cAAMY,IAAiBJ;AACvB,QAAII,EAAe,aAAa,WAC5BkB,EAAW,WAAWlB,EAAe,WAErCA,EAAe,YAAY,WAC3BkB,EAAW,UAAUlB,EAAe,UAEpCA,EAAe,aAAa,WAC5BkB,EAAW,WAAWlB,EAAe,WAErCA,EAAe,kBAAkB,WACjCkB,EAAW,gBAAgBlB,EAAe;AAAA,MAEtD,OACS;AACD,cAAMmB,IAAevB;AACrB,QAAIuB,EAAa,YAAY,WACzBD,EAAW,UAAUC,EAAa;AAAA,MAE9C;AAGI,aAAO,CADWF,KAAmB7B,EAAgB,WAClC8B,CAAU;AAAA,IACjC;AAIA,aAAS/B,IAA0B;AAC/B,aAAO,IAAIE,EAAiB;AAAA,IAChC;AAAA;;","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"remark-custom-variable.js","sources":["../../../../../../../../../../node_modules/.pnpm/remark-flow@0.1.6/node_modules/remark-flow/dist/remark-custom-variable.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = remarkCustomVariable;\nconst unist_util_visit_1 = require(\"unist-util-visit\");\nconst interaction_parser_1 = require(\"./interaction-parser\");\n/**\n * Create AST node segments\n */\nfunction createSegments(value, startIndex, endIndex, parsedResult, hName) {\n return [\n {\n type: 'text',\n value: value.substring(0, startIndex),\n },\n {\n type: 'element',\n data: {\n hName,\n hProperties: parsedResult,\n },\n },\n {\n type: 'text',\n value: value.substring(endIndex),\n },\n ];\n}\nfunction remarkCustomVariable() {\n return (tree) => {\n // Create parser instance\n const parser = new interaction_parser_1.InteractionParser();\n (0, unist_util_visit_1.visit)(tree, 'text', (node, index, parent) => {\n // Input validation\n if (index === null || parent === null)\n return;\n const value = node.value;\n // Check if contains interaction syntax\n const interactionRegex = /\\?\\[([^\\]]*)\\](?!\\()/;\n const match = interactionRegex.exec(value);\n if (match) {\n const fullMatch = match[0];\n const startIndex = match.index;\n const endIndex = startIndex + fullMatch.length;\n try {\n // Check for invalid variable syntax\n const innerContent = match[1];\n if (innerContent.includes('%{')) {\n if (!innerContent.includes('%{{')) {\n // Contains invalid variable syntax %{variable} instead of %{{variable}}\n return;\n }\n // Check for empty variable name %{{}}\n if (innerContent.includes('%{{}}')) {\n return;\n }\n }\n // Convert to remark compatible format (handle all types for backward compatibility)\n const parsedResult = parser.parseToRemarkFormat(fullMatch);\n // Create AST segments\n const segments = createSegments(value, startIndex, endIndex, parsedResult, 'custom-variable');\n parent.children.splice(index, 1, ...segments);\n }\n catch (error) {\n console.warn('Failed to parse variable interaction syntax:', error);\n // Keep original if parsing fails\n }\n }\n });\n };\n}\n//# sourceMappingURL=remark-custom-variable.js.map"],"names":["remarkCustomVariable_1","remarkCustomVariable","unist_util_visit_1","require$$0","interaction_parser_1","require$$1","createSegments","value","startIndex","endIndex","parsedResult","hName","tree","parser","node","index","parent","match","fullMatch","innerContent","segments","error"],"mappings":";;;;;;SACA,OAAO,eAAeA,GAAS,cAAc,EAAE,OAAO,IAAM,GAC5DA,EAAA,UAAkBC;AAClB,QAAMC,IAAqBC,GACrBC,IAAuBC,EAAA;AAI7B,WAASC,EAAeC,GAAOC,GAAYC,GAAUC,GAAcC,GAAO;AACtE,WAAO;AAAA,MACH;AAAA,QACI,MAAM;AAAA,QACN,OAAOJ,EAAM,UAAU,GAAGC,CAAU;AAAA;MAExC;AAAA,QACI,MAAM;AAAA,QACN,MAAM;AAAA,UACF,OAAAG;AAAA,UACA,aAAaD;AAAA;;MAGrB;AAAA,QACI,MAAM;AAAA,QACN,OAAOH,EAAM,UAAUE,CAAQ;AAAA;;EAG3C;AACA,WAASR,IAAuB;AAC5B,WAAO,CAACW,MAAS;AAEb,YAAMC,IAAS,IAAIT,EAAqB,kBAAiB;AACzD,UAAIF,EAAmB,OAAOU,GAAM,QAAQ,CAACE,GAAMC,GAAOC,MAAW;AAEjE,YAAID,MAAU,QAAQC,MAAW;AAC7B;AACJ,cAAMT,IAAQO,EAAK,OAGbG,IADmB,uBACM,KAAKV,CAAK;AACzC,YAAIU,GAAO;AACP,gBAAMC,IAAYD,EAAM,CAAC,GACnBT,IAAaS,EAAM,OACnBR,IAAWD,IAAaU,EAAU;AACxC,cAAI;AAEA,kBAAMC,IAAeF,EAAM,CAAC;AAC5B,gBAAIE,EAAa,SAAS,IAAI,MACtB,CAACA,EAAa,SAAS,KAAK,KAK5BA,EAAa,SAAS,OAAO;AAC7B;AAIR,kBAAMT,IAAeG,EAAO,oBAAoBK,CAAS,GAEnDE,IAAWd,EAAeC,GAAOC,GAAYC,GAAUC,GAAc,iBAAiB;AAC5F,YAAAM,EAAO,SAAS,OAAOD,GAAO,GAAG,GAAGK,CAAQ;AAAA,UAChE,SACuBC,GAAO;AACV,oBAAQ,KAAK,gDAAgDA,CAAK;AAAA,UAEtF;AAAA,QACA;AAAA,MACA,CAAS;AAAA,IACT;AAAA,EACA;;;","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"remark-flow.js","sources":["../../../../../../../../../../node_modules/.pnpm/remark-flow@0.1.6/node_modules/remark-flow/dist/remark-flow.js"],"sourcesContent":["\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = remarkFlow;\nconst remark_interaction_1 = __importDefault(require(\"./remark-interaction\"));\n/**\n * remarkFlow plugin - uses unified interaction parser\n */\nfunction remarkFlow() {\n return (tree) => {\n // Use unified interaction plugin\n const interactionPlugin = (0, remark_interaction_1.default)();\n interactionPlugin(tree);\n };\n}\n//# sourceMappingURL=remark-flow.js.map"],"names":["__importDefault","this","mod","remarkFlow_1","remarkFlow","remark_interaction_1","require$$0","tree"],"mappings":";;;;;;AACA,MAAIA,IAAmBC,KAAQA,EAAK,mBAAoB,SAAUC,GAAK;AACnE,WAAQA,KAAOA,EAAI,aAAcA,IAAM,EAAE,SAAWA,EAAG;AAAA,EAC3D;AACA,SAAO,eAAeC,GAAS,cAAc,EAAE,OAAO,IAAM,GAC5DA,EAAA,UAAkBC;AAClB,QAAMC,IAAuBL,EAAgBM,GAA+B;AAI5E,WAASF,IAAa;AAClB,WAAO,CAACG,MAAS;AAGb,UAD8BF,EAAqB,SAAO,EACxCE,CAAI;AAAA,IAC9B;AAAA,EACA;;;","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"remark-interaction.js","sources":["../../../../../../../../../../node_modules/.pnpm/remark-flow@0.1.6/node_modules/remark-flow/dist/remark-interaction.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = remarkInteraction;\nconst unist_util_visit_1 = require(\"unist-util-visit\");\nconst interaction_parser_1 = require(\"./interaction-parser\");\n/**\n * Create AST node segments\n */\nfunction createSegments(value, startIndex, endIndex, parsedResult, hName) {\n return [\n {\n type: 'text',\n value: value.substring(0, startIndex),\n },\n {\n type: 'element',\n data: {\n hName,\n hProperties: parsedResult,\n },\n },\n {\n type: 'text',\n value: value.substring(endIndex),\n },\n ];\n}\nfunction remarkInteraction() {\n return (tree) => {\n // Create parser instance\n const parser = new interaction_parser_1.InteractionParser();\n (0, unist_util_visit_1.visit)(tree, 'text', (node, index, parent) => {\n // Input validation\n if (index === null || parent === null)\n return;\n const value = node.value;\n // Check if contains interaction syntax\n const interactionRegex = /\\?\\[([^\\]]*)\\](?!\\()/;\n const match = interactionRegex.exec(value);\n if (match) {\n const fullMatch = match[0];\n const startIndex = match.index;\n const endIndex = startIndex + fullMatch.length;\n try {\n const parsedResult = parser.parseToRemarkFormat(fullMatch);\n // Create AST segments\n const segments = createSegments(value, startIndex, endIndex, parsedResult, 'custom-variable');\n parent.children.splice(index, 1, ...segments);\n }\n catch (error) {\n console.warn('Failed to parse interaction syntax:', error);\n // Keep original if parsing fails\n }\n }\n });\n };\n}\n//# sourceMappingURL=remark-interaction.js.map"],"names":["remarkInteraction_1","remarkInteraction","unist_util_visit_1","require$$0","interaction_parser_1","require$$1","createSegments","value","startIndex","endIndex","parsedResult","hName","tree","parser","node","index","parent","match","fullMatch","segments","error"],"mappings":";;;;;;SACA,OAAO,eAAeA,GAAS,cAAc,EAAE,OAAO,IAAM,GAC5DA,EAAA,UAAkBC;AAClB,QAAMC,IAAqBC,GACrBC,IAAuBC,EAAA;AAI7B,WAASC,EAAeC,GAAOC,GAAYC,GAAUC,GAAcC,GAAO;AACtE,WAAO;AAAA,MACH;AAAA,QACI,MAAM;AAAA,QACN,OAAOJ,EAAM,UAAU,GAAGC,CAAU;AAAA;MAExC;AAAA,QACI,MAAM;AAAA,QACN,MAAM;AAAA,UACF,OAAAG;AAAA,UACA,aAAaD;AAAA;;MAGrB;AAAA,QACI,MAAM;AAAA,QACN,OAAOH,EAAM,UAAUE,CAAQ;AAAA;;EAG3C;AACA,WAASR,IAAoB;AACzB,WAAO,CAACW,MAAS;AAEb,YAAMC,IAAS,IAAIT,EAAqB,kBAAiB;AACzD,UAAIF,EAAmB,OAAOU,GAAM,QAAQ,CAACE,GAAMC,GAAOC,MAAW;AAEjE,YAAID,MAAU,QAAQC,MAAW;AAC7B;AACJ,cAAMT,IAAQO,EAAK,OAGbG,IADmB,uBACM,KAAKV,CAAK;AACzC,YAAIU,GAAO;AACP,gBAAMC,IAAYD,EAAM,CAAC,GACnBT,IAAaS,EAAM,OACnBR,IAAWD,IAAaU,EAAU;AACxC,cAAI;AACA,kBAAMR,IAAeG,EAAO,oBAAoBK,CAAS,GAEnDC,IAAWb,EAAeC,GAAOC,GAAYC,GAAUC,GAAc,iBAAiB;AAC5F,YAAAM,EAAO,SAAS,OAAOD,GAAO,GAAG,GAAGI,CAAQ;AAAA,UAChE,SACuBC,GAAO;AACV,oBAAQ,KAAK,uCAAuCA,CAAK;AAAA,UAE7E;AAAA,QACA;AAAA,MACA,CAAS;AAAA,IACT;AAAA,EACA;;;","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/.pnpm/remark-gfm@4.0.1/node_modules/remark-gfm/lib/index.js"],"sourcesContent":["/**\n * @import {Root} from 'mdast'\n * @import {Options} from 'remark-gfm'\n * @import {} from 'remark-parse'\n * @import {} from 'remark-stringify'\n * @import {Processor} from 'unified'\n */\n\nimport {gfmFromMarkdown, gfmToMarkdown} from 'mdast-util-gfm'\nimport {gfm} from 'micromark-extension-gfm'\n\n/** @type {Options} */\nconst emptyOptions = {}\n\n/**\n * Add support GFM (autolink literals, footnotes, strikethrough, tables,\n * tasklists).\n *\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {undefined}\n * Nothing.\n */\nexport default function remarkGfm(options) {\n // @ts-expect-error: TS is wrong about `this`.\n // eslint-disable-next-line unicorn/no-this-assignment\n const self = /** @type {Processor<Root>} */ (this)\n const settings = options || emptyOptions\n const data = self.data()\n\n const micromarkExtensions =\n data.micromarkExtensions || (data.micromarkExtensions = [])\n const fromMarkdownExtensions =\n data.fromMarkdownExtensions || (data.fromMarkdownExtensions = [])\n const toMarkdownExtensions =\n data.toMarkdownExtensions || (data.toMarkdownExtensions = [])\n\n micromarkExtensions.push(gfm(settings))\n fromMarkdownExtensions.push(gfmFromMarkdown())\n toMarkdownExtensions.push(gfmToMarkdown(settings))\n}\n"],"names":["emptyOptions","remarkGfm","options","self","settings","data","micromarkExtensions","fromMarkdownExtensions","toMarkdownExtensions","gfm","gfmFromMarkdown","gfmToMarkdown"],"mappings":";;AAYA,MAAMA,IAAe,CAAA;AAWN,SAASC,EAAUC,GAAS;AAGzC,QAAMC;AAAA;AAAA,IAAuC;AAAA,KACvCC,IAAWF,KAAWF,GACtBK,IAAOF,EAAK,KAAI,GAEhBG,IACJD,EAAK,wBAAwBA,EAAK,sBAAsB,CAAA,IACpDE,IACJF,EAAK,2BAA2BA,EAAK,yBAAyB,CAAA,IAC1DG,IACJH,EAAK,yBAAyBA,EAAK,uBAAuB,CAAA;AAE5D,EAAAC,EAAoB,KAAKG,EAAIL,CAAQ,CAAC,GACtCG,EAAuB,KAAKG,EAAe,CAAE,GAC7CF,EAAqB,KAAKG,EAAcP,CAAQ,CAAC;AACnD;","x_google_ignoreList":[0]}
@@ -1,9 +0,0 @@
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;
@@ -1,126 +0,0 @@
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
@@ -1 +0,0 @@
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":";;;AAoBA,MAAMA,IAAa,CAACC,MAClBA,EACG,QAAQ,MAAM,OAAO,EACrB,QAAQ,MAAM,MAAM,EACpB,QAAQ,MAAM,MAAM,EACpB,QAAQ,MAAM,QAAQ,EACtB,QAAQ,MAAM,OAAO,GAEpBC,IAAsD,CAAC;AAAA,EAC3D,SAAAC;AAAA,EACA,0BAAAC,IAA2B;AAAA,EAC3B,sBAAAC;A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AAAC,gBAAAA,EAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACC,KAAK1B;AAAA,QACL,WAAU;AAAA,QACV,SAAQ;AAAA,QACR,SAAQ;AAAA,QACR,OAAM;AAAA,QACN,QAAQe;AAAA,MAAA;AAAA,IAAA;AAAA,IAETrB,KAA4BG,EAAe,SAAS,2BAClD,OAAA,EAAI,WAAU,sCACX,UACI,OAAOD,KAAsB,YAChBC,EAAe;AAAA,MAC5B,CAACgB,MAASA,EAAK,eAAejB;AAAA,IAAA,GAGtB,aACRC,EAAeA,EAAe,SAAS,CAAC,EAAE,UAI7C,CACL;AAAA,EAAA,GAEJ;AAEJ;"}
@@ -1,22 +0,0 @@
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;
@@ -1,108 +0,0 @@
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
@@ -1 +0,0 @@
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":";;;AAcA,MAAMA,IAAuB,CAACC,MAA4C;AACxE,MAAI;AACF,UAAMC,IAAS,KAAK,MAAMD,CAAO,GAC3BE,IAAaD,GAAQ,OACrBE,IAAmBF,GAAQ;AACjC,WAAI,OAAOC,KAAe,YAAYA,EAAW,KAAA,EAAO,WAAW,IAC1D,OAEF;AAAA,MACL,OAAOA,EAAW,KAAA;AAAA,MAClB,aACE,OAAOC,KAAqB,WAAWA,IAAmB;AAAA,IAAA;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AA,IAACR;AAAA,IAAA;AAAA,MACC,MAAAC;AAAA,MACA,sBAAAC;AAAA,IAAA;AAAA,EAAA,IAKF,OAAOT,IAAY,MACd,OAGLsB,IAEAP,gBAAAA,EAAAA;AAAAA,IAACR;AAAA,IAAA;AAAA,MACC,MAAMe;AAAA,MACN,sBAAAb;AAAA,IAAA;AAAA,EAAA,IAKFS,IACKH,gBAAAA,MAACE,KAAiB,MAAAC,GAAY,IAGhC;AACT;"}
@@ -1,8 +0,0 @@
1
- export type ContentHtmlStreamChunk = {
2
- html: string;
3
- narration?: string;
4
- stepNumber: number;
5
- isComplete: boolean;
6
- blockIndex: number;
7
- };
8
- export declare const parseContentHtmlStreamChunk: (payload: string) => ContentHtmlStreamChunk | null;
@@ -1,18 +0,0 @@
1
- const p = (c) => {
2
- try {
3
- const n = JSON.parse(c), e = typeof n == "object" && n !== null ? n : null, t = typeof e?.data == "object" && e?.data !== null ? e.data : e, r = t?.html, o = t?.narration, a = t?.step_number ?? t?.stepNumber, s = t?.is_complete ?? t?.isComplete, l = t?.block_index ?? t?.blockIndex ?? 0;
4
- return typeof r != "string" || typeof a != "number" || typeof s != "boolean" || typeof l != "number" ? null : {
5
- html: r,
6
- narration: typeof o == "string" && o.trim() ? o : void 0,
7
- stepNumber: a,
8
- isComplete: s,
9
- blockIndex: l
10
- };
11
- } catch {
12
- return null;
13
- }
14
- };
15
- export {
16
- p as parseContentHtmlStreamChunk
17
- };
18
- //# sourceMappingURL=content-html-stream.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"content-html-stream.js","sources":["../../../../src/components/ContentRender/utils/content-html-stream.ts"],"sourcesContent":["export type ContentHtmlStreamChunk = {\n html: string;\n narration?: string;\n stepNumber: number;\n isComplete: boolean;\n blockIndex: number;\n};\n\nexport const parseContentHtmlStreamChunk = (\n payload: string\n): ContentHtmlStreamChunk | null => {\n try {\n const parsed = JSON.parse(payload);\n const source =\n typeof parsed === \"object\" && parsed !== null ? parsed : null;\n const maybeData =\n typeof source?.data === \"object\" && source?.data !== null\n ? source.data\n : source;\n\n const html = maybeData?.html;\n const narration = maybeData?.narration;\n const stepNumber = maybeData?.step_number ?? maybeData?.stepNumber;\n const isComplete = maybeData?.is_complete ?? maybeData?.isComplete;\n const blockIndex = maybeData?.block_index ?? maybeData?.blockIndex ?? 0;\n\n if (\n typeof html !== \"string\" ||\n typeof stepNumber !== \"number\" ||\n typeof isComplete !== \"boolean\" ||\n typeof blockIndex !== \"number\"\n ) {\n return null;\n }\n\n return {\n html,\n narration:\n typeof narration === \"string\" && narration.trim()\n ? narration\n : undefined,\n stepNumber,\n isComplete,\n blockIndex,\n };\n } catch {\n return null;\n }\n};\n"],"names":["parseContentHtmlStreamChunk","payload","parsed","source","maybeData","html","narration","stepNumber","isComplete","blockIndex"],"mappings":"AAQO,MAAMA,IAA8B,CACzCC,MACkC;AAClC,MAAI;AACF,UAAMC,IAAS,KAAK,MAAMD,CAAO,GAC3BE,IACJ,OAAOD,KAAW,YAAYA,MAAW,OAAOA,IAAS,MACrDE,IACJ,OAAOD,GAAQ,QAAS,YAAYA,GAAQ,SAAS,OACjDA,EAAO,OACPA,GAEAE,IAAOD,GAAW,MAClBE,IAAYF,GAAW,WACvBG,IAAaH,GAAW,eAAeA,GAAW,YAClDI,IAAaJ,GAAW,eAAeA,GAAW,YAClDK,IAAaL,GAAW,eAAeA,GAAW,cAAc;AAEtE,WACE,OAAOC,KAAS,YAChB,OAAOE,KAAe,YACtB,OAAOC,KAAe,aACtB,OAAOC,KAAe,WAEf,OAGF;AAAA,MACL,MAAAJ;AAAA,MACA,WACE,OAAOC,KAAc,YAAYA,EAAU,KAAA,IACvCA,IACA;AAAA,MACN,YAAAC;AAAA,MACA,YAAAC;AAAA,MACA,YAAAC;AAAA,IAAA;AAAA,EAEJ,QAAQ;AACN,WAAO;AAAA,EACT;AACF;"}