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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (378) 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/ccount@2.0.1/node_modules/ccount/index.js.map +1 -0
  3. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/hast-util-to-jsx-runtime@2.3.6/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
  4. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/core.js +1 -1
  5. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/arduino.js.map +1 -0
  6. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/bash.js.map +1 -0
  7. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/c.js.map +1 -0
  8. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/cpp.js.map +1 -0
  9. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/csharp.js.map +1 -0
  10. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/css.js.map +1 -0
  11. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/diff.js.map +1 -0
  12. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/go.js.map +1 -0
  13. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/graphql.js.map +1 -0
  14. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ini.js.map +1 -0
  15. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/java.js.map +1 -0
  16. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/javascript.js.map +1 -0
  17. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/json.js.map +1 -0
  18. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/kotlin.js.map +1 -0
  19. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/latex.js.map +1 -0
  20. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/less.js.map +1 -0
  21. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/lua.js.map +1 -0
  22. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/makefile.js.map +1 -0
  23. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/markdown.js.map +1 -0
  24. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/objectivec.js.map +1 -0
  25. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/perl.js.map +1 -0
  26. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/php-template.js.map +1 -0
  27. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/php.js.map +1 -0
  28. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/plaintext.js.map +1 -0
  29. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python-repl.js.map +1 -0
  30. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python.js.map +1 -0
  31. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/r.js.map +1 -0
  32. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ruby.js.map +1 -0
  33. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/rust.js.map +1 -0
  34. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/scss.js.map +1 -0
  35. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/shell.js.map +1 -0
  36. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sql.js.map +1 -0
  37. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/swift.js.map +1 -0
  38. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/typescript.js.map +1 -0
  39. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vbnet.js.map +1 -0
  40. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vhdl.js.map +1 -0
  41. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/wasm.js.map +1 -0
  42. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/xml.js.map +1 -0
  43. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/yaml.js.map +1 -0
  44. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.js.map +1 -0
  45. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/longest-streak@3.1.0/node_modules/longest-streak/index.js +8 -6
  46. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/longest-streak@3.1.0/node_modules/longest-streak/index.js.map +1 -1
  47. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/common.js +80 -0
  48. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/common.js.map +1 -0
  49. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/lowlight@3.3.0/node_modules}/lowlight/lib/index.js +1 -1
  50. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/index.js.map +1 -0
  51. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/markdown-table@3.0.4/node_modules/markdown-table/index.js.map +1 -0
  52. 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
  53. 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
  54. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm-autolink-literal@2.0.1/node_modules}/mdast-util-gfm-autolink-literal/lib/index.js +4 -4
  55. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm-autolink-literal@2.0.1/node_modules/mdast-util-gfm-autolink-literal/lib/index.js.map +1 -0
  56. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm-footnote@2.1.0/node_modules}/mdast-util-gfm-footnote/lib/index.js +2 -2
  57. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm-footnote@2.1.0/node_modules/mdast-util-gfm-footnote/lib/index.js.map +1 -0
  58. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm-strikethrough@2.0.0/node_modules/mdast-util-gfm-strikethrough/lib/index.js.map +1 -0
  59. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm-table@2.0.0/node_modules}/mdast-util-gfm-table/lib/index.js +3 -3
  60. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm-table@2.0.0/node_modules/mdast-util-gfm-table/lib/index.js.map +1 -0
  61. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm-task-list-item@2.0.0/node_modules}/mdast-util-gfm-task-list-item/lib/index.js +2 -2
  62. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm-task-list-item@2.0.0/node_modules}/mdast-util-gfm-task-list-item/lib/index.js.map +1 -1
  63. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm@3.1.0/node_modules}/mdast-util-gfm/lib/index.js +5 -5
  64. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm@3.1.0/node_modules/mdast-util-gfm/lib/index.js.map +1 -0
  65. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-phrasing@4.1.0/node_modules}/mdast-util-phrasing/lib/index.js +1 -1
  66. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-phrasing@4.1.0/node_modules/mdast-util-phrasing/lib/index.js.map +1 -0
  67. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js.map +1 -0
  68. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/break.js.map +1 -0
  69. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/code.js +1 -1
  70. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/code.js.map +1 -0
  71. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/definition.js.map +1 -0
  72. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js.map +1 -0
  73. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/heading.js.map +1 -0
  74. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/html.js.map +1 -0
  75. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js.map +1 -0
  76. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image.js.map +1 -0
  77. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/index.js.map +1 -0
  78. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js.map +1 -0
  79. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js.map +1 -0
  80. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link.js.map +1 -0
  81. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list-item.js.map +1 -0
  82. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list.js.map +1 -0
  83. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js.map +1 -0
  84. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/root.js +1 -1
  85. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/root.js.map +1 -0
  86. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/strong.js.map +1 -0
  87. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/text.js.map +1 -0
  88. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js.map +1 -0
  89. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js.map +1 -0
  90. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js.map +1 -0
  91. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js.map +1 -0
  92. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js.map +1 -0
  93. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-fence.js.map +1 -0
  94. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js.map +1 -0
  95. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-quote.js.map +1 -0
  96. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js.map +1 -0
  97. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule.js.map +1 -0
  98. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-strong.js.map +1 -0
  99. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js.map +1 -0
  100. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/util/encode-info.js +1 -1
  101. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-info.js.map +1 -0
  102. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js.map +1 -0
  103. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +14 -0
  104. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js.map +1 -0
  105. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +1 -1
  106. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js.map +1 -0
  107. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js.map +1 -0
  108. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-YG6GDRKO.js +1 -1
  109. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-S3R3BYOJ.js +1 -1
  110. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TZMSLE5B.js +1 -1
  111. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-LVOFAZNH.js +1 -1
  112. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WL72ISMW.js +1 -1
  113. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-autolink-literal@2.1.0/node_modules}/micromark-extension-gfm-autolink-literal/lib/syntax.js +1 -1
  114. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-autolink-literal@2.1.0/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js.map +1 -0
  115. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-footnote@2.1.0/node_modules}/micromark-extension-gfm-footnote/lib/syntax.js +4 -4
  116. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-footnote@2.1.0/node_modules/micromark-extension-gfm-footnote/lib/syntax.js.map +1 -0
  117. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-strikethrough@2.1.0/node_modules}/micromark-extension-gfm-strikethrough/lib/syntax.js +3 -3
  118. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-strikethrough@2.1.0/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js.map +1 -0
  119. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules}/micromark-extension-gfm-table/lib/edit-map.js.map +1 -1
  120. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules}/micromark-extension-gfm-table/lib/infer.js.map +1 -1
  121. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules}/micromark-extension-gfm-table/lib/syntax.js +2 -2
  122. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules}/micromark-extension-gfm-table/lib/syntax.js.map +1 -1
  123. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-task-list-item@2.1.0/node_modules}/micromark-extension-gfm-task-list-item/lib/syntax.js +2 -2
  124. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-task-list-item@2.1.0/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js.map +1 -0
  125. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm@3.0.0/node_modules/micromark-extension-gfm/index.js +19 -0
  126. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm@3.0.0/node_modules/micromark-extension-gfm/index.js.map +1 -0
  127. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/rehype-highlight@7.0.2/node_modules}/rehype-highlight/lib/index.js +4 -4
  128. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/rehype-highlight@7.0.2/node_modules/rehype-highlight/lib/index.js.map +1 -0
  129. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-flow@0.1.6/node_modules/remark-flow/dist/index.js.map +1 -0
  130. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/{remark-flow@0.1.3-beta.0 → remark-flow@0.1.6}/node_modules/remark-flow/dist/interaction-parser.js +30 -51
  131. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-flow@0.1.6/node_modules/remark-flow/dist/interaction-parser.js.map +1 -0
  132. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-flow@0.1.6/node_modules/remark-flow/dist/remark-custom-variable.js.map +1 -0
  133. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-flow@0.1.6/node_modules/remark-flow/dist/remark-flow.js.map +1 -0
  134. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-flow@0.1.6/node_modules/remark-flow/dist/remark-interaction.js.map +1 -0
  135. package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-gfm@4.0.1/node_modules}/remark-gfm/lib/index.js +2 -2
  136. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-gfm@4.0.1/node_modules/remark-gfm/lib/index.js.map +1 -0
  137. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/style-to-object@1.0.11/node_modules/style-to-object/cjs/index.js +1 -1
  138. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/index.js +1 -1
  139. package/dist/_virtual/core.js +1 -1
  140. package/dist/_virtual/index.js +1 -1
  141. package/dist/_virtual/index5.js +3 -5
  142. package/dist/_virtual/index5.js.map +1 -1
  143. package/dist/_virtual/index6.js +4 -4
  144. package/dist/_virtual/index7.js +5 -3
  145. package/dist/_virtual/index7.js.map +1 -1
  146. package/dist/assets/markdown-flow-ui.css +1 -1
  147. package/dist/components/ContentRender/ContentRender.js +3 -3
  148. package/dist/components/ContentRender/plugins/MermaidChart.js +7 -1
  149. package/dist/components/ContentRender/plugins/MermaidChart.js.map +1 -1
  150. package/dist/components/ContentRender/utils/highlight-languages.js +22 -22
  151. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.js +1 -1
  152. package/package.json +1 -1
  153. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-flow@0.1.3-beta.0/node_modules/remark-flow/dist/index.js.map +0 -1
  154. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-flow@0.1.3-beta.0/node_modules/remark-flow/dist/interaction-parser.js.map +0 -1
  155. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-flow@0.1.3-beta.0/node_modules/remark-flow/dist/remark-custom-variable.js.map +0 -1
  156. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-flow@0.1.3-beta.0/node_modules/remark-flow/dist/remark-flow.js.map +0 -1
  157. package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-flow@0.1.3-beta.0/node_modules/remark-flow/dist/remark-interaction.js.map +0 -1
  158. package/dist/node_modules/ccount/index.js.map +0 -1
  159. package/dist/node_modules/devlop/lib/default.js +0 -6
  160. package/dist/node_modules/devlop/lib/default.js.map +0 -1
  161. package/dist/node_modules/escape-string-regexp/index.js +0 -9
  162. package/dist/node_modules/escape-string-regexp/index.js.map +0 -1
  163. package/dist/node_modules/hast-util-is-element/lib/index.js +0 -66
  164. package/dist/node_modules/hast-util-is-element/lib/index.js.map +0 -1
  165. package/dist/node_modules/hast-util-to-text/lib/index.js +0 -227
  166. package/dist/node_modules/hast-util-to-text/lib/index.js.map +0 -1
  167. package/dist/node_modules/highlight.js/es/languages/arduino.js.map +0 -1
  168. package/dist/node_modules/highlight.js/es/languages/bash.js.map +0 -1
  169. package/dist/node_modules/highlight.js/es/languages/c.js.map +0 -1
  170. package/dist/node_modules/highlight.js/es/languages/cpp.js.map +0 -1
  171. package/dist/node_modules/highlight.js/es/languages/csharp.js.map +0 -1
  172. package/dist/node_modules/highlight.js/es/languages/css.js.map +0 -1
  173. package/dist/node_modules/highlight.js/es/languages/diff.js.map +0 -1
  174. package/dist/node_modules/highlight.js/es/languages/go.js.map +0 -1
  175. package/dist/node_modules/highlight.js/es/languages/graphql.js.map +0 -1
  176. package/dist/node_modules/highlight.js/es/languages/ini.js.map +0 -1
  177. package/dist/node_modules/highlight.js/es/languages/java.js.map +0 -1
  178. package/dist/node_modules/highlight.js/es/languages/javascript.js.map +0 -1
  179. package/dist/node_modules/highlight.js/es/languages/json.js.map +0 -1
  180. package/dist/node_modules/highlight.js/es/languages/kotlin.js.map +0 -1
  181. package/dist/node_modules/highlight.js/es/languages/latex.js.map +0 -1
  182. package/dist/node_modules/highlight.js/es/languages/less.js.map +0 -1
  183. package/dist/node_modules/highlight.js/es/languages/lua.js.map +0 -1
  184. package/dist/node_modules/highlight.js/es/languages/makefile.js.map +0 -1
  185. package/dist/node_modules/highlight.js/es/languages/markdown.js.map +0 -1
  186. package/dist/node_modules/highlight.js/es/languages/objectivec.js.map +0 -1
  187. package/dist/node_modules/highlight.js/es/languages/perl.js.map +0 -1
  188. package/dist/node_modules/highlight.js/es/languages/php-template.js.map +0 -1
  189. package/dist/node_modules/highlight.js/es/languages/php.js.map +0 -1
  190. package/dist/node_modules/highlight.js/es/languages/plaintext.js.map +0 -1
  191. package/dist/node_modules/highlight.js/es/languages/python-repl.js.map +0 -1
  192. package/dist/node_modules/highlight.js/es/languages/python.js.map +0 -1
  193. package/dist/node_modules/highlight.js/es/languages/r.js.map +0 -1
  194. package/dist/node_modules/highlight.js/es/languages/ruby.js.map +0 -1
  195. package/dist/node_modules/highlight.js/es/languages/rust.js.map +0 -1
  196. package/dist/node_modules/highlight.js/es/languages/scss.js.map +0 -1
  197. package/dist/node_modules/highlight.js/es/languages/shell.js.map +0 -1
  198. package/dist/node_modules/highlight.js/es/languages/sql.js.map +0 -1
  199. package/dist/node_modules/highlight.js/es/languages/swift.js.map +0 -1
  200. package/dist/node_modules/highlight.js/es/languages/typescript.js.map +0 -1
  201. package/dist/node_modules/highlight.js/es/languages/vbnet.js.map +0 -1
  202. package/dist/node_modules/highlight.js/es/languages/vhdl.js.map +0 -1
  203. package/dist/node_modules/highlight.js/es/languages/wasm.js.map +0 -1
  204. package/dist/node_modules/highlight.js/es/languages/xml.js.map +0 -1
  205. package/dist/node_modules/highlight.js/es/languages/yaml.js.map +0 -1
  206. package/dist/node_modules/highlight.js/lib/core.js.map +0 -1
  207. package/dist/node_modules/longest-streak/index.js +0 -13
  208. package/dist/node_modules/longest-streak/index.js.map +0 -1
  209. package/dist/node_modules/lowlight/lib/common.js +0 -80
  210. package/dist/node_modules/lowlight/lib/common.js.map +0 -1
  211. package/dist/node_modules/lowlight/lib/index.js.map +0 -1
  212. package/dist/node_modules/markdown-table/index.js.map +0 -1
  213. package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +0 -71
  214. package/dist/node_modules/mdast-util-find-and-replace/lib/index.js.map +0 -1
  215. package/dist/node_modules/mdast-util-gfm/lib/index.js.map +0 -1
  216. package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js.map +0 -1
  217. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js.map +0 -1
  218. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js.map +0 -1
  219. package/dist/node_modules/mdast-util-gfm-table/lib/index.js.map +0 -1
  220. package/dist/node_modules/mdast-util-phrasing/lib/index.js.map +0 -1
  221. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js.map +0 -1
  222. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js.map +0 -1
  223. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js.map +0 -1
  224. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js.map +0 -1
  225. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js.map +0 -1
  226. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js.map +0 -1
  227. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js.map +0 -1
  228. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js.map +0 -1
  229. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js.map +0 -1
  230. package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js.map +0 -1
  231. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js.map +0 -1
  232. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js.map +0 -1
  233. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js.map +0 -1
  234. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js.map +0 -1
  235. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js.map +0 -1
  236. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js.map +0 -1
  237. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js.map +0 -1
  238. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js.map +0 -1
  239. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js.map +0 -1
  240. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js.map +0 -1
  241. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js.map +0 -1
  242. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js.map +0 -1
  243. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js.map +0 -1
  244. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js.map +0 -1
  245. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js.map +0 -1
  246. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js.map +0 -1
  247. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js.map +0 -1
  248. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js.map +0 -1
  249. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js.map +0 -1
  250. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js.map +0 -1
  251. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js.map +0 -1
  252. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js.map +0 -1
  253. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js.map +0 -1
  254. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +0 -14
  255. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js.map +0 -1
  256. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js.map +0 -1
  257. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js.map +0 -1
  258. package/dist/node_modules/mdast-util-to-string/lib/index.js +0 -30
  259. package/dist/node_modules/mdast-util-to-string/lib/index.js.map +0 -1
  260. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +0 -19
  261. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js.map +0 -1
  262. package/dist/node_modules/micromark-extension-gfm/index.js +0 -19
  263. package/dist/node_modules/micromark-extension-gfm/index.js.map +0 -1
  264. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js.map +0 -1
  265. package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js.map +0 -1
  266. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js.map +0 -1
  267. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js.map +0 -1
  268. package/dist/node_modules/micromark-factory-space/index.js +0 -16
  269. package/dist/node_modules/micromark-factory-space/index.js.map +0 -1
  270. package/dist/node_modules/micromark-util-character/index.js +0 -35
  271. package/dist/node_modules/micromark-util-character/index.js.map +0 -1
  272. package/dist/node_modules/micromark-util-chunked/index.js +0 -13
  273. package/dist/node_modules/micromark-util-chunked/index.js.map +0 -1
  274. package/dist/node_modules/micromark-util-classify-character/index.js +0 -11
  275. package/dist/node_modules/micromark-util-classify-character/index.js.map +0 -1
  276. package/dist/node_modules/micromark-util-combine-extensions/index.js +0 -37
  277. package/dist/node_modules/micromark-util-combine-extensions/index.js.map +0 -1
  278. package/dist/node_modules/micromark-util-normalize-identifier/index.js +0 -7
  279. package/dist/node_modules/micromark-util-normalize-identifier/index.js.map +0 -1
  280. package/dist/node_modules/micromark-util-resolve-all/index.js +0 -13
  281. package/dist/node_modules/micromark-util-resolve-all/index.js.map +0 -1
  282. package/dist/node_modules/rehype-highlight/lib/index.js.map +0 -1
  283. package/dist/node_modules/remark-gfm/lib/index.js.map +0 -1
  284. package/dist/node_modules/unist-util-find-after/lib/index.js +0 -33
  285. package/dist/node_modules/unist-util-find-after/lib/index.js.map +0 -1
  286. package/dist/node_modules/unist-util-is/lib/index.js +0 -85
  287. package/dist/node_modules/unist-util-is/lib/index.js.map +0 -1
  288. package/dist/node_modules/unist-util-visit/lib/index.js +0 -17
  289. package/dist/node_modules/unist-util-visit/lib/index.js.map +0 -1
  290. package/dist/node_modules/unist-util-visit-parents/lib/color.js +0 -7
  291. package/dist/node_modules/unist-util-visit-parents/lib/color.js.map +0 -1
  292. package/dist/node_modules/unist-util-visit-parents/lib/index.js +0 -57
  293. package/dist/node_modules/unist-util-visit-parents/lib/index.js.map +0 -1
  294. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/ccount@2.0.1/node_modules}/ccount/index.js +0 -0
  295. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/core.js.map +0 -0
  296. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/arduino.js +0 -0
  297. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/bash.js +0 -0
  298. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/c.js +0 -0
  299. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/cpp.js +0 -0
  300. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/csharp.js +0 -0
  301. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/css.js +0 -0
  302. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/diff.js +0 -0
  303. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/go.js +0 -0
  304. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/graphql.js +0 -0
  305. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/ini.js +0 -0
  306. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/java.js +0 -0
  307. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/javascript.js +0 -0
  308. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/json.js +0 -0
  309. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/kotlin.js +0 -0
  310. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/latex.js +0 -0
  311. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/less.js +0 -0
  312. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/lua.js +0 -0
  313. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/makefile.js +0 -0
  314. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/markdown.js +0 -0
  315. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/objectivec.js +0 -0
  316. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/perl.js +0 -0
  317. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/php-template.js +0 -0
  318. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/php.js +0 -0
  319. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/plaintext.js +0 -0
  320. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/python-repl.js +0 -0
  321. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/python.js +0 -0
  322. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/r.js +0 -0
  323. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/ruby.js +0 -0
  324. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/rust.js +0 -0
  325. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/scss.js +0 -0
  326. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/shell.js +0 -0
  327. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/sql.js +0 -0
  328. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/swift.js +0 -0
  329. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/typescript.js +0 -0
  330. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/vbnet.js +0 -0
  331. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/vhdl.js +0 -0
  332. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/wasm.js +0 -0
  333. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/xml.js +0 -0
  334. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/yaml.js +0 -0
  335. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/lib/core.js +0 -0
  336. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/markdown-table@3.0.4/node_modules}/markdown-table/index.js +0 -0
  337. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm-strikethrough@2.0.0/node_modules}/mdast-util-gfm-strikethrough/lib/index.js +0 -0
  338. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/blockquote.js +0 -0
  339. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/break.js +0 -0
  340. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/definition.js +0 -0
  341. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/emphasis.js +0 -0
  342. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/heading.js +0 -0
  343. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/html.js +0 -0
  344. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/image-reference.js +0 -0
  345. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/image.js +0 -0
  346. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/index.js +0 -0
  347. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/inline-code.js +0 -0
  348. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/link-reference.js +0 -0
  349. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/link.js +0 -0
  350. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/list-item.js +0 -0
  351. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/list.js +0 -0
  352. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/paragraph.js +0 -0
  353. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/strong.js +0 -0
  354. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/text.js +0 -0
  355. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/thematic-break.js +0 -0
  356. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +0 -0
  357. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/util/check-bullet-other.js +0 -0
  358. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/util/check-bullet.js +0 -0
  359. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/util/check-emphasis.js +0 -0
  360. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/util/check-fence.js +0 -0
  361. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/util/check-list-item-indent.js +0 -0
  362. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/util/check-quote.js +0 -0
  363. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/util/check-rule-repetition.js +0 -0
  364. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/util/check-rule.js +0 -0
  365. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/util/check-strong.js +0 -0
  366. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/util/encode-character-reference.js +0 -0
  367. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/util/format-code-as-indented.js +0 -0
  368. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/util/pattern-in-scope.js +0 -0
  369. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules}/micromark-extension-gfm-table/lib/edit-map.js +0 -0
  370. /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules}/micromark-extension-gfm-table/lib/infer.js +0 -0
  371. /package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/{remark-flow@0.1.3-beta.0 → remark-flow@0.1.6}/node_modules/remark-flow/dist/index.js +0 -0
  372. /package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/{remark-flow@0.1.3-beta.0 → remark-flow@0.1.6}/node_modules/remark-flow/dist/remark-custom-variable.js +0 -0
  373. /package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/{remark-flow@0.1.3-beta.0 → remark-flow@0.1.6}/node_modules/remark-flow/dist/remark-flow.js +0 -0
  374. /package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/{remark-flow@0.1.3-beta.0 → remark-flow@0.1.6}/node_modules/remark-flow/dist/remark-interaction.js +0 -0
  375. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules → node_modules}/@codemirror/state/dist/index.js +0 -0
  376. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules → node_modules}/@codemirror/state/dist/index.js.map +0 -0
  377. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules → node_modules}/@marijn/find-cluster-break/src/index.js +0 -0
  378. /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules → node_modules}/@marijn/find-cluster-break/src/index.js.map +0 -0
@@ -1,5 +1,5 @@
1
1
  import { j as t } from "../../_virtual/jsx-runtime.js";
2
- /* empty css */
2
+ /* empty css */
3
3
  /* empty css */
4
4
  import S, { useRef as x, useEffect as i } from "react";
5
5
  import B from "../../_virtual/index.js";
@@ -14,9 +14,9 @@ import { subsetLanguages as z, highlightLanguages as A } from "./utils/highlight
14
14
  import { parseMarkdownSegments as H, mermaidBlockIsComplete as G } from "./utils/mermaid-parse.js";
15
15
  import { Markdown as K } from "../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/react-markdown@10.1.0_@types_react@19.2.2_react@19.0.1/node_modules/react-markdown/lib/index.js";
16
16
  import $ from "../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/rehype-raw@7.0.0/node_modules/rehype-raw/lib/index.js";
17
- import q from "../../node_modules/rehype-highlight/lib/index.js";
17
+ import q from "../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/rehype-highlight@7.0.2/node_modules/rehype-highlight/lib/index.js";
18
18
  import D from "../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/rehype-katex@7.0.1/node_modules/rehype-katex/lib/index.js";
19
- import F from "../../node_modules/remark-gfm/lib/index.js";
19
+ import F from "../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-gfm@4.0.1/node_modules/remark-gfm/lib/index.js";
20
20
  import J from "../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-math@6.0.0/node_modules/remark-math/lib/index.js";
21
21
  import O from "../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-breaks@4.0.0/node_modules/remark-breaks/lib/index.js";
22
22
  const Q = ({ svg: s }) => {
@@ -55,7 +55,13 @@ const l = {
55
55
  ] })
56
56
  ] });
57
57
  }
58
- return /* @__PURE__ */ e.jsx("div", { className: "my-4 text-center overflow-auto", children: m ? /* @__PURE__ */ e.jsx("div", { dangerouslySetInnerHTML: { __html: m } }) : /* @__PURE__ */ e.jsx("div", { className: "py-8 text-gray-500 italic", children: a?.loading ?? l.loading }) });
58
+ return /* @__PURE__ */ e.jsx("div", { className: "my-4 text-center overflow-auto content-render-mermaid", children: m ? /* @__PURE__ */ e.jsx(
59
+ "div",
60
+ {
61
+ className: "content-render-mermaid-inner",
62
+ dangerouslySetInnerHTML: { __html: m }
63
+ }
64
+ ) : /* @__PURE__ */ e.jsx("div", { className: "py-8 text-gray-500 italic", children: a?.loading ?? l.loading }) });
59
65
  }, M = j.memo(S, (r, a) => r.chart === a.chart && r.frozen === a.frozen);
60
66
  export {
61
67
  M as default
@@ -1 +1 @@
1
- {"version":3,"file":"MermaidChart.js","sources":["../../../../src/components/ContentRender/plugins/MermaidChart.tsx"],"sourcesContent":["import React, { useEffect, useState } from \"react\";\nimport mermaid from \"mermaid\";\n\nexport interface MermaidChartProps {\n chart: string;\n messages?: {\n emptyChart?: string;\n loading?: string;\n badge?: string;\n };\n frozen?: boolean;\n}\n\nconst DEFAULT_MESSAGES = {\n emptyChart: \"Empty chart content\",\n loading: \"Loading Mermaid chart...\",\n badge: \"mermaid\",\n} as const;\n\nconst MERMAID_FONT_STACK =\n '-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif';\n\nconst preprocessChart = (raw: string) =>\n raw.trim().replace(/^_streaming\\s*/i, \"\");\n\nconst MermaidChart: React.FC<MermaidChartProps> = ({\n chart,\n messages,\n frozen,\n}) => {\n const [svg, setSvg] = useState(\"\");\n const [error, setError] = useState(\"\");\n const [hasRendered, setHasRendered] = useState(false);\n\n const renderChart = async () => {\n try {\n const cleaned = preprocessChart(chart);\n\n if (!cleaned) {\n setError(messages?.emptyChart ?? DEFAULT_MESSAGES.emptyChart);\n setSvg(\"\");\n return;\n }\n\n // Initialize mermaid with the same font stack used in markdown content.\n // Using a concrete stack avoids clipping caused by `inherit` resolving to\n // Storybook's default font during off-screen rendering.\n mermaid.initialize({\n startOnLoad: false,\n theme: \"default\",\n securityLevel: \"loose\",\n fontFamily: MERMAID_FONT_STACK,\n themeVariables: {\n fontFamily: MERMAID_FONT_STACK,\n },\n });\n\n // use mermaid.parse to check for errors\n try {\n await mermaid.parse(cleaned);\n } catch (parseErr) {\n const parseErrorMsg = String(parseErr).toLowerCase();\n setError(parseErrorMsg);\n setSvg(\"\");\n // once render success, setHasRendered flag\n setHasRendered(true);\n return;\n }\n\n const id = `mermaid-${Date.now()}`;\n\n // Render the chart\n const { svg: renderedSvg } = await mermaid.render(id, cleaned);\n setSvg(renderedSvg);\n setError(\"\");\n } catch (err) {\n const errorMsg = String(err).toLowerCase();\n setError(errorMsg);\n setSvg(\"\");\n }\n };\n\n useEffect(() => {\n if (frozen && hasRendered) return; // 核心:被冻结就不渲染\n renderChart();\n }, [chart, frozen]);\n\n if (error) {\n const displayChart = preprocessChart(chart) || chart.trim();\n return (\n <div className=\"my-4 border border-gray-200 rounded-lg bg-gray-50\">\n <div className=\"px-4 py-3 bg-gray-100 border-b border-gray-200 flex items-center gap-2\">\n <span className=\"text-yellow-600\">⚠️</span>\n <span className=\"text-sm text-yellow-700 font-medium whitespace-pre-wrap\">\n {error}\n </span>\n </div>\n <div className=\"relative\">\n <pre className=\"p-4 text-sm font-mono text-yellow-800\">\n <code>{displayChart}</code>\n </pre>\n <div className=\"absolute top-2 right-2 px-2 py-1 text-xs text-yellow-700 bg-white/90 rounded border border-gray-200\">\n {messages?.badge ?? DEFAULT_MESSAGES.badge}\n </div>\n </div>\n </div>\n );\n }\n\n return (\n <div className=\"my-4 text-center overflow-auto\">\n {svg ? (\n <div dangerouslySetInnerHTML={{ __html: svg }} />\n ) : (\n <div className=\"py-8 text-gray-500 italic\">\n {messages?.loading ?? DEFAULT_MESSAGES.loading}\n </div>\n )}\n </div>\n );\n};\n\nexport default React.memo(MermaidChart, (prev, next) => {\n return prev.chart === next.chart && prev.frozen === next.frozen;\n});\n"],"names":["DEFAULT_MESSAGES","MERMAID_FONT_STACK","preprocessChart","raw","MermaidChart","chart","messages","frozen","svg","setSvg","useState","error","setError","hasRendered","setHasRendered","renderChart","cleaned","mermaid","parseErr","parseErrorMsg","id","renderedSvg","err","errorMsg","useEffect","displayChart","jsxs","jsx","MermaidChart$1","React","prev","next"],"mappings":";;;AAaA,MAAMA,IAAmB;AAAA,EACvB,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,OAAO;AACT,GAEMC,IACJ,+HAEIC,IAAkB,CAACC,MACvBA,EAAI,OAAO,QAAQ,mBAAmB,EAAE,GAEpCC,IAA4C,CAAC;AAAA,EACjD,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AACF,MAAM;AACJ,QAAM,CAACC,GAAKC,CAAM,IAAIC,EAAS,EAAE,GAC3B,CAACC,GAAOC,CAAQ,IAAIF,EAAS,EAAE,GAC/B,CAACG,GAAaC,CAAc,IAAIJ,EAAS,EAAK,GAE9CK,IAAc,YAAY;AAC9B,QAAI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AAhB,EAAA,CACH;AAAA,MAAA,GACF;AAAA,MACAe,gBAAAA,EAAAA,KAAC,OAAA,EAAI,WAAU,YACb,UAAA;AAAA,QAAAC,gBAAAA,EAAAA,IAAC,SAAI,WAAU,yCACb,UAAAA,gBAAAA,MAAC,QAAA,EAAM,aAAa,EAAA,CACtB;AAAA,8BACC,OAAA,EAAI,WAAU,uGACZ,UAAArB,GAAU,SAASN,EAAiB,MAAA,CACvC;AAAA,MAAA,EAAA,CACF;AAAA,IAAA,GACF;AAAA,EAEJ;AAEA,SACE2B,gBAAAA,MAAC,SAAI,WAAU,kCACZ,cACCA,gBAAAA,EAAAA,IAAC,OAAA,EAAI,yBAAyB,EAAE,QAAQnB,IAAI,CAAG,0BAE9C,OAAA,EAAI,WAAU,6BACZ,UAAAF,GAAU,WAAWN,EAAiB,QAAA,CACzC,EAAA,CAEJ;AAEJ,GAEA4B,IAAeC,EAAM,KAAKzB,GAAc,CAAC0B,GAAMC,MACtCD,EAAK,UAAUC,EAAK,SAASD,EAAK,WAAWC,EAAK,MAC1D;"}
1
+ {"version":3,"file":"MermaidChart.js","sources":["../../../../src/components/ContentRender/plugins/MermaidChart.tsx"],"sourcesContent":["import React, { useEffect, useState } from \"react\";\nimport mermaid from \"mermaid\";\n\nexport interface MermaidChartProps {\n chart: string;\n messages?: {\n emptyChart?: string;\n loading?: string;\n badge?: string;\n };\n frozen?: boolean;\n}\n\nconst DEFAULT_MESSAGES = {\n emptyChart: \"Empty chart content\",\n loading: \"Loading Mermaid chart...\",\n badge: \"mermaid\",\n} as const;\n\nconst MERMAID_FONT_STACK =\n '-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif';\n\nconst preprocessChart = (raw: string) =>\n raw.trim().replace(/^_streaming\\s*/i, \"\");\n\nconst MermaidChart: React.FC<MermaidChartProps> = ({\n chart,\n messages,\n frozen,\n}) => {\n const [svg, setSvg] = useState(\"\");\n const [error, setError] = useState(\"\");\n const [hasRendered, setHasRendered] = useState(false);\n\n const renderChart = async () => {\n try {\n const cleaned = preprocessChart(chart);\n\n if (!cleaned) {\n setError(messages?.emptyChart ?? DEFAULT_MESSAGES.emptyChart);\n setSvg(\"\");\n return;\n }\n\n // Initialize mermaid with the same font stack used in markdown content.\n // Using a concrete stack avoids clipping caused by `inherit` resolving to\n // Storybook's default font during off-screen rendering.\n mermaid.initialize({\n startOnLoad: false,\n theme: \"default\",\n securityLevel: \"loose\",\n fontFamily: MERMAID_FONT_STACK,\n themeVariables: {\n fontFamily: MERMAID_FONT_STACK,\n },\n });\n\n // use mermaid.parse to check for errors\n try {\n await mermaid.parse(cleaned);\n } catch (parseErr) {\n const parseErrorMsg = String(parseErr).toLowerCase();\n setError(parseErrorMsg);\n setSvg(\"\");\n // once render success, setHasRendered flag\n setHasRendered(true);\n return;\n }\n\n const id = `mermaid-${Date.now()}`;\n\n // Render the chart\n const { svg: renderedSvg } = await mermaid.render(id, cleaned);\n setSvg(renderedSvg);\n setError(\"\");\n } catch (err) {\n const errorMsg = String(err).toLowerCase();\n setError(errorMsg);\n setSvg(\"\");\n }\n };\n\n useEffect(() => {\n if (frozen && hasRendered) return; // 核心:被冻结就不渲染\n renderChart();\n }, [chart, frozen]);\n\n if (error) {\n const displayChart = preprocessChart(chart) || chart.trim();\n return (\n <div className=\"my-4 border border-gray-200 rounded-lg bg-gray-50\">\n <div className=\"px-4 py-3 bg-gray-100 border-b border-gray-200 flex items-center gap-2\">\n <span className=\"text-yellow-600\">⚠️</span>\n <span className=\"text-sm text-yellow-700 font-medium whitespace-pre-wrap\">\n {error}\n </span>\n </div>\n <div className=\"relative\">\n <pre className=\"p-4 text-sm font-mono text-yellow-800\">\n <code>{displayChart}</code>\n </pre>\n <div className=\"absolute top-2 right-2 px-2 py-1 text-xs text-yellow-700 bg-white/90 rounded border border-gray-200\">\n {messages?.badge ?? DEFAULT_MESSAGES.badge}\n </div>\n </div>\n </div>\n );\n }\n\n return (\n <div className=\"my-4 text-center overflow-auto content-render-mermaid\">\n {svg ? (\n <div\n className=\"content-render-mermaid-inner\"\n dangerouslySetInnerHTML={{ __html: svg }}\n />\n ) : (\n <div className=\"py-8 text-gray-500 italic\">\n {messages?.loading ?? DEFAULT_MESSAGES.loading}\n </div>\n )}\n </div>\n );\n};\n\nexport default React.memo(MermaidChart, (prev, next) => {\n return prev.chart === next.chart && prev.frozen === next.frozen;\n});\n"],"names":["DEFAULT_MESSAGES","MERMAID_FONT_STACK","preprocessChart","raw","MermaidChart","chart","messages","frozen","svg","setSvg","useState","error","setError","hasRendered","setHasRendered","renderChart","cleaned","mermaid","parseErr","parseErrorMsg","id","renderedSvg","err","errorMsg","useEffect","displayChart","jsxs","jsx","MermaidChart$1","React","prev","next"],"mappings":";;;AAaA,MAAMA,IAAmB;AAAA,EACvB,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,OAAO;AACT,GAEMC,IACJ,+HAEIC,IAAkB,CAACC,MACvBA,EAAI,OAAO,QAAQ,mBAAmB,EAAE,GAEpCC,IAA4C,CAAC;AAAA,EACjD,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AACF,MAAM;AACJ,QAAM,CAACC,GAAKC,CAAM,IAAIC,EAAS,EAAE,GAC3B,CAACC,GAAOC,CAAQ,IAAIF,EAAS,EAAE,GAC/B,CAACG,GAAaC,CAAc,IAAIJ,EAAS,EAAK,GAE9CK,IAAc,YAAY;AAC9B,QAAI;AACF,YAAMC,IAAUd,EAAgBG,CAAK;AAErC,UAAI,CAACW,GAAS;AACZ,QAAAJ,EAASN,GAAU,cAAcN,EAAiB,UAAU,GAC5DS,EAAO,EAAE;AACT;AAAA,MACF;AAKAQ,MAAAA,EAAQ,WAAW;AAAA,QACjB,aAAa;AAAA,QACb,OAAO;AAAA,QACP,eAAe;AAAA,QACf,YAAYhB;AAAA,QACZ,gBAAgB;AAAA,UACd,YAAYA;AAAA,QAAA;AAAA,MACd,CACD;AAGD,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F;AAAA,EAEJ;AAEA,SACE2B,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAU,yDACZ,UAAAnB,IACCmB,gBAAAA,EAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAU;AAAA,MACV,yBAAyB,EAAE,QAAQnB,EAAA;AAAA,IAAI;AAAA,EAAA,0BAGxC,OAAA,EAAI,WAAU,6BACZ,UAAAF,GAAU,WAAWN,EAAiB,QAAA,CACzC,EAAA,CAEJ;AAEJ,GAEA4B,IAAeC,EAAM,KAAKzB,GAAc,CAAC0B,GAAMC,MACtCD,EAAK,UAAUC,EAAK,SAASD,EAAK,WAAWC,EAAK,MAC1D;"}
@@ -1,25 +1,25 @@
1
- import o from "../../../node_modules/highlight.js/es/languages/javascript.js";
2
- import m from "../../../node_modules/highlight.js/es/languages/typescript.js";
3
- import r from "../../../node_modules/highlight.js/es/languages/python.js";
4
- import i from "../../../node_modules/highlight.js/es/languages/java.js";
5
- import t from "../../../node_modules/highlight.js/es/languages/xml.js";
6
- import a from "../../../node_modules/highlight.js/es/languages/css.js";
7
- import f from "../../../node_modules/highlight.js/es/languages/json.js";
8
- import p from "../../../node_modules/highlight.js/es/languages/bash.js";
9
- import l from "../../../node_modules/highlight.js/es/languages/sql.js";
10
- import s from "../../../node_modules/highlight.js/es/languages/markdown.js";
11
- import h from "../../../node_modules/highlight.js/es/languages/c.js";
12
- import c from "../../../node_modules/highlight.js/es/languages/cpp.js";
13
- import e from "../../../node_modules/highlight.js/es/languages/go.js";
14
- import n from "../../../node_modules/highlight.js/es/languages/plaintext.js";
15
- import g from "../../../node_modules/highlight.js/es/languages/rust.js";
16
- import j from "../../../node_modules/highlight.js/es/languages/shell.js";
17
- import u from "../../../node_modules/highlight.js/es/languages/scss.js";
18
- import x from "../../../node_modules/highlight.js/es/languages/yaml.js";
19
- import y from "../../../node_modules/highlight.js/es/languages/vhdl.js";
20
- import v from "../../../node_modules/highlight.js/es/languages/latex.js";
21
- import d from "../../../node_modules/highlight.js/es/languages/lua.js";
22
- import b from "../../../node_modules/highlight.js/es/languages/php.js";
1
+ import o from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/javascript.js";
2
+ import m from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/typescript.js";
3
+ import r from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python.js";
4
+ import i from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/java.js";
5
+ import t from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/xml.js";
6
+ import a from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/css.js";
7
+ import f from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/json.js";
8
+ import p from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/bash.js";
9
+ import l from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sql.js";
10
+ import s from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/markdown.js";
11
+ import h from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/c.js";
12
+ import c from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/cpp.js";
13
+ import e from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/go.js";
14
+ import n from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/plaintext.js";
15
+ import g from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/rust.js";
16
+ import j from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/shell.js";
17
+ import u from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/scss.js";
18
+ import x from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/yaml.js";
19
+ import y from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vhdl.js";
20
+ import v from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/latex.js";
21
+ import d from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/lua.js";
22
+ import b from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/php.js";
23
23
  const S = {
24
24
  javascript: o,
25
25
  js: o,
@@ -1,5 +1,5 @@
1
1
  import { ViewPlugin as j, Decoration as q } from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/@codemirror_view@6.38.6/node_modules/@codemirror/view/dist/index.js";
2
- import { RangeSetBuilder as z } from "../../../Documents/ai-shifu/markdown-flow-ui/node_modules/@codemirror/state/dist/index.js";
2
+ import { RangeSetBuilder as z } from "../../../node_modules/@codemirror/state/dist/index.js";
3
3
  import { createVariableExpressionRegexp as G } from "../utils.js";
4
4
  const S = /\{\{.*?\}\}/g, C = /<!--[\s\S]*?-->/g, E = /===.*?===/g, F = /\?\[(.*?)\]/g;
5
5
  function W(c) {
package/package.json CHANGED
@@ -149,7 +149,7 @@
149
149
  "storybook": "storybook dev -p 6006",
150
150
  "test": "echo \"No tests specified\" && exit 0"
151
151
  },
152
- "version": "0.1.70",
152
+ "version": "0.1.71-beta.0",
153
153
  "type": "module",
154
154
  "exports": {
155
155
  ".": {
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/.pnpm/remark-flow@0.1.3-beta.0/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.3-beta.0/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, Chinese characters, with optional spaces)\n LAYER2_VARIABLE: /^%\\{\\{\\s*([a-zA-Z_\\u4e00-\\u9fa5][a-zA-Z0-9_\\u4e00-\\u9fa5]*)\\s*\\}\\}(.*)$/,\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 || (compat-safe, avoid lookbehind)\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].trim();\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 buttonTexts = this._splitSinglePipes(content);\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 * Split content by single pipes while preserving double pipes.\n *\n * Replaces lookbehind-based regex for Safari 15 compatibility.\n */\n _splitSinglePipes(content) {\n const segments = [];\n let current = '';\n for (let i = 0; i < content.length; i++) {\n const char = content[i];\n if (char === '|') {\n const prevIsPipe = i > 0 && content[i - 1] === '|';\n const nextIsPipe = i + 1 < content.length && content[i + 1] === '|';\n if (!prevIsPipe && !nextIsPipe) {\n segments.push(current);\n current = '';\n continue;\n }\n }\n current += char;\n }\n segments.push(current);\n return segments;\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","display","value","singlePipePos","doublePipePos","segments","current","i","char","prevIsPipe","nextIsPipe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,cAAAL,EAAS,KAAKC,CAAO,GACrBA,IAAU;AACV;AAAA,YACpB;AAAA,UACA;AACY,UAAAA,KAAWE;AAAA,QACvB;AACQ,eAAAH,EAAS,KAAKC,CAAO,GACdD;AAAA,MACf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAOI,mBAAmBM,GAAc;AAC7B,eAAO;AAAA,UACH,MAAM;AAAA,UACN,OAAOA;AAAA;MAEnB;AAAA,IACA;AACA,IAAArC,EAAA,oBAA4BI;AAgB5B,aAASH,EAAuBI,GAAS;AAGrC,YAAMM,IADS,IAAIP,EAAiB,EACd,MAAMC,CAAO;AAEnC,UAAIM,EAAO;AAEP,eAAO,CAACR,EAAgB,WAAW,EAAE,UAAUE,EAAQ,KAAI,GAAI;AAGnE,YAAMiC,IAAkB3B,EAAO,MAEzB4B,IAAa,CAAA;AACnB,UAAI5B,EAAO,SAASR,EAAgB,uBAAuB;AACvD,cAAMY,IAAiBJ;AACvB,QAAII,EAAe,aAAa,WAC5BwB,EAAW,WAAWxB,EAAe,WAErCA,EAAe,YAAY,WAC3BwB,EAAW,UAAUxB,EAAe,UAEpCA,EAAe,aAAa,WAC5BwB,EAAW,WAAWxB,EAAe,WAErCA,EAAe,kBAAkB,WACjCwB,EAAW,gBAAgBxB,EAAe;AAAA,MAEtD,OACS;AACD,cAAMyB,IAAe7B;AACrB,QAAI6B,EAAa,YAAY,WACzBD,EAAW,UAAUC,EAAa;AAAA,MAE9C;AAGI,aAAO,CADWF,KAAmBnC,EAAgB,WAClCoC,CAAU;AAAA,IACjC;AAIA,aAASrC,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.3-beta.0/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.3-beta.0/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.3-beta.0/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/ccount/index.js"],"sourcesContent":["/**\n * Count how often a character (or substring) is used in a string.\n *\n * @param {string} value\n * Value to search in.\n * @param {string} character\n * Character (or substring) to look for.\n * @return {number}\n * Number of times `character` occurred in `value`.\n */\nexport function ccount(value, character) {\n const source = String(value)\n\n if (typeof character !== 'string') {\n throw new TypeError('Expected character')\n }\n\n let count = 0\n let index = source.indexOf(character)\n\n while (index !== -1) {\n count++\n index = source.indexOf(character, index + character.length)\n }\n\n return count\n}\n"],"names":["ccount","value","character","source","count","index"],"mappings":"AAUO,SAASA,EAAOC,GAAOC,GAAW;AACvC,QAAMC,IAAS,OAAOF,CAAK;AAE3B,MAAI,OAAOC,KAAc;AACvB,UAAM,IAAI,UAAU,oBAAoB;AAG1C,MAAIE,IAAQ,GACRC,IAAQF,EAAO,QAAQD,CAAS;AAEpC,SAAOG,MAAU;AACf,IAAAD,KACAC,IAAQF,EAAO,QAAQD,GAAWG,IAAQH,EAAU,MAAM;AAG5D,SAAOE;AACT;","x_google_ignoreList":[0]}
@@ -1,6 +0,0 @@
1
- function o() {
2
- }
3
- export {
4
- o as ok
5
- };
6
- //# sourceMappingURL=default.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"default.js","sources":["../../../../../../../node_modules/devlop/lib/default.js"],"sourcesContent":["export function deprecate(fn) {\n return fn\n}\n\nexport function equal() {}\n\nexport function ok() {}\n\nexport function unreachable() {}\n"],"names":["ok"],"mappings":"AAMO,SAASA,IAAK;AAAC;","x_google_ignoreList":[0]}
@@ -1,9 +0,0 @@
1
- function r(e) {
2
- if (typeof e != "string")
3
- throw new TypeError("Expected a string");
4
- return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
5
- }
6
- export {
7
- r as default
8
- };
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../node_modules/escape-string-regexp/index.js"],"sourcesContent":["export default function escapeStringRegexp(string) {\n\tif (typeof string !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\t// Escape characters with special meaning either inside or outside character sets.\n\t// Use a simple backslash escape when it’s always valid, and a `\\xnn` escape when the simpler form would be disallowed by Unicode patterns’ stricter grammar.\n\treturn string\n\t\t.replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&')\n\t\t.replace(/-/g, '\\\\x2d');\n}\n"],"names":["escapeStringRegexp","string"],"mappings":"AAAe,SAASA,EAAmBC,GAAQ;AAClD,MAAI,OAAOA,KAAW;AACrB,UAAM,IAAI,UAAU,mBAAmB;AAKxC,SAAOA,EACL,QAAQ,uBAAuB,MAAM,EACrC,QAAQ,MAAM,OAAO;AACxB;","x_google_ignoreList":[0]}
@@ -1,66 +0,0 @@
1
- const f = (
2
- // Note: overloads in JSDoc can’t yet use different `@template`s.
3
- /**
4
- * @type {(
5
- * (<Condition extends TestFunction>(test: Condition) => (element: unknown, index?: number | null | undefined, parent?: Parents | null | undefined, context?: unknown) => element is Element & Predicate<Condition, Element>) &
6
- * (<Condition extends string>(test: Condition) => (element: unknown, index?: number | null | undefined, parent?: Parents | null | undefined, context?: unknown) => element is Element & {tagName: Condition}) &
7
- * ((test?: null | undefined) => (element?: unknown, index?: number | null | undefined, parent?: Parents | null | undefined, context?: unknown) => element is Element) &
8
- * ((test?: Test) => Check)
9
- * )}
10
- */
11
- /**
12
- * @param {Test | null | undefined} [test]
13
- * @returns {Check}
14
- */
15
- (function(n) {
16
- if (n == null)
17
- return y;
18
- if (typeof n == "string")
19
- return a(n);
20
- if (typeof n == "object")
21
- return u(n);
22
- if (typeof n == "function")
23
- return i(n);
24
- throw new Error("Expected function, string, or array as `test`");
25
- })
26
- );
27
- function u(n) {
28
- const r = [];
29
- let t = -1;
30
- for (; ++t < n.length; )
31
- r[t] = f(n[t]);
32
- return i(e);
33
- function e(...o) {
34
- let c = -1;
35
- for (; ++c < r.length; )
36
- if (r[c].apply(this, o)) return !0;
37
- return !1;
38
- }
39
- }
40
- function a(n) {
41
- return i(r);
42
- function r(t) {
43
- return t.tagName === n;
44
- }
45
- }
46
- function i(n) {
47
- return r;
48
- function r(t, e, o) {
49
- return !!(p(t) && n.call(
50
- this,
51
- t,
52
- typeof e == "number" ? e : void 0,
53
- o || void 0
54
- ));
55
- }
56
- }
57
- function y(n) {
58
- return !!(n && typeof n == "object" && "type" in n && n.type === "element" && "tagName" in n && typeof n.tagName == "string");
59
- }
60
- function p(n) {
61
- return n !== null && typeof n == "object" && "type" in n && "tagName" in n;
62
- }
63
- export {
64
- f as convertElement
65
- };
66
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../node_modules/hast-util-is-element/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Parents} Parents\n */\n\n/**\n * @template Fn\n * @template Fallback\n * @typedef {Fn extends (value: any) => value is infer Thing ? Thing : Fallback} Predicate\n */\n\n/**\n * @callback Check\n * Check that an arbitrary value is an element.\n * @param {unknown} this\n * Context object (`this`) to call `test` with\n * @param {unknown} [element]\n * Anything (typically a node).\n * @param {number | null | undefined} [index]\n * Position of `element` in its parent.\n * @param {Parents | null | undefined} [parent]\n * Parent of `element`.\n * @returns {boolean}\n * Whether this is an element and passes a test.\n *\n * @typedef {Array<TestFunction | string> | TestFunction | string | null | undefined} Test\n * Check for an arbitrary element.\n *\n * * when `string`, checks that the element has that tag name\n * * when `function`, see `TestFunction`\n * * when `Array`, checks if one of the subtests pass\n *\n * @callback TestFunction\n * Check if an element passes a test.\n * @param {unknown} this\n * The given context.\n * @param {Element} element\n * An element.\n * @param {number | undefined} [index]\n * Position of `element` in its parent.\n * @param {Parents | undefined} [parent]\n * Parent of `element`.\n * @returns {boolean | undefined | void}\n * Whether this element passes the test.\n *\n * Note: `void` is included until TS sees no return as `undefined`.\n */\n\n/**\n * Check if `element` is an `Element` and whether it passes the given test.\n *\n * @param element\n * Thing to check, typically `element`.\n * @param test\n * Check for a specific element.\n * @param index\n * Position of `element` in its parent.\n * @param parent\n * Parent of `element`.\n * @param context\n * Context object (`this`) to call `test` with.\n * @returns\n * Whether `element` is an `Element` and passes a test.\n * @throws\n * When an incorrect `test`, `index`, or `parent` is given; there is no error\n * thrown when `element` is not a node or not an element.\n */\nexport const isElement =\n // Note: overloads in JSDoc can’t yet use different `@template`s.\n /**\n * @type {(\n * (<Condition extends TestFunction>(element: unknown, test: Condition, index?: number | null | undefined, parent?: Parents | null | undefined, context?: unknown) => element is Element & Predicate<Condition, Element>) &\n * (<Condition extends string>(element: unknown, test: Condition, index?: number | null | undefined, parent?: Parents | null | undefined, context?: unknown) => element is Element & {tagName: Condition}) &\n * ((element?: null | undefined) => false) &\n * ((element: unknown, test?: null | undefined, index?: number | null | undefined, parent?: Parents | null | undefined, context?: unknown) => element is Element) &\n * ((element: unknown, test?: Test, index?: number | null | undefined, parent?: Parents | null | undefined, context?: unknown) => boolean)\n * )}\n */\n (\n /**\n * @param {unknown} [element]\n * @param {Test | undefined} [test]\n * @param {number | null | undefined} [index]\n * @param {Parents | null | undefined} [parent]\n * @param {unknown} [context]\n * @returns {boolean}\n */\n // eslint-disable-next-line max-params\n function (element, test, index, parent, context) {\n const check = convertElement(test)\n\n if (\n index !== null &&\n index !== undefined &&\n (typeof index !== 'number' ||\n index < 0 ||\n index === Number.POSITIVE_INFINITY)\n ) {\n throw new Error('Expected positive finite `index`')\n }\n\n if (\n parent !== null &&\n parent !== undefined &&\n (!parent.type || !parent.children)\n ) {\n throw new Error('Expected valid `parent`')\n }\n\n if (\n (index === null || index === undefined) !==\n (parent === null || parent === undefined)\n ) {\n throw new Error('Expected both `index` and `parent`')\n }\n\n return looksLikeAnElement(element)\n ? check.call(context, element, index, parent)\n : false\n }\n )\n\n/**\n * Generate a check from a test.\n *\n * Useful if you’re going to test many nodes, for example when creating a\n * utility where something else passes a compatible test.\n *\n * The created function is a bit faster because it expects valid input only:\n * an `element`, `index`, and `parent`.\n *\n * @param test\n * A test for a specific element.\n * @returns\n * A check.\n */\nexport const convertElement =\n // Note: overloads in JSDoc can’t yet use different `@template`s.\n /**\n * @type {(\n * (<Condition extends TestFunction>(test: Condition) => (element: unknown, index?: number | null | undefined, parent?: Parents | null | undefined, context?: unknown) => element is Element & Predicate<Condition, Element>) &\n * (<Condition extends string>(test: Condition) => (element: unknown, index?: number | null | undefined, parent?: Parents | null | undefined, context?: unknown) => element is Element & {tagName: Condition}) &\n * ((test?: null | undefined) => (element?: unknown, index?: number | null | undefined, parent?: Parents | null | undefined, context?: unknown) => element is Element) &\n * ((test?: Test) => Check)\n * )}\n */\n (\n /**\n * @param {Test | null | undefined} [test]\n * @returns {Check}\n */\n function (test) {\n if (test === null || test === undefined) {\n return element\n }\n\n if (typeof test === 'string') {\n return tagNameFactory(test)\n }\n\n // Assume array.\n if (typeof test === 'object') {\n return anyFactory(test)\n }\n\n if (typeof test === 'function') {\n return castFactory(test)\n }\n\n throw new Error('Expected function, string, or array as `test`')\n }\n )\n\n/**\n * Handle multiple tests.\n *\n * @param {Array<TestFunction | string>} tests\n * @returns {Check}\n */\nfunction anyFactory(tests) {\n /** @type {Array<Check>} */\n const checks = []\n let index = -1\n\n while (++index < tests.length) {\n checks[index] = convertElement(tests[index])\n }\n\n return castFactory(any)\n\n /**\n * @this {unknown}\n * @type {TestFunction}\n */\n function any(...parameters) {\n let index = -1\n\n while (++index < checks.length) {\n if (checks[index].apply(this, parameters)) return true\n }\n\n return false\n }\n}\n\n/**\n * Turn a string into a test for an element with a certain type.\n *\n * @param {string} check\n * @returns {Check}\n */\nfunction tagNameFactory(check) {\n return castFactory(tagName)\n\n /**\n * @param {Element} element\n * @returns {boolean}\n */\n function tagName(element) {\n return element.tagName === check\n }\n}\n\n/**\n * Turn a custom test into a test for an element that passes that test.\n *\n * @param {TestFunction} testFunction\n * @returns {Check}\n */\nfunction castFactory(testFunction) {\n return check\n\n /**\n * @this {unknown}\n * @type {Check}\n */\n function check(value, index, parent) {\n return Boolean(\n looksLikeAnElement(value) &&\n testFunction.call(\n this,\n value,\n typeof index === 'number' ? index : undefined,\n parent || undefined\n )\n )\n }\n}\n\n/**\n * Make sure something is an element.\n *\n * @param {unknown} element\n * @returns {element is Element}\n */\nfunction element(element) {\n return Boolean(\n element &&\n typeof element === 'object' &&\n 'type' in element &&\n element.type === 'element' &&\n 'tagName' in element &&\n typeof element.tagName === 'string'\n )\n}\n\n/**\n * @param {unknown} value\n * @returns {value is Element}\n */\nfunction looksLikeAnElement(value) {\n return (\n value !== null &&\n typeof value === 'object' &&\n 'type' in value &&\n 'tagName' in value\n )\n}\n"],"names":["convertElement","test","element","tagNameFactory","anyFactory","castFactory","tests","checks","index","any","parameters","check","tagName","testFunction","value","parent","looksLikeAnElement"],"mappings":"AAwIY,MAACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAeT,SAAUC,GAAM;AACd,QAAIA,KAAS;AACX,aAAOC;AAGT,QAAI,OAAOD,KAAS;AAClB,aAAOE,EAAeF,CAAI;AAI5B,QAAI,OAAOA,KAAS;AAClB,aAAOG,EAAWH,CAAI;AAGxB,QAAI,OAAOA,KAAS;AAClB,aAAOI,EAAYJ,CAAI;AAGzB,UAAM,IAAI,MAAM,+CAA+C;AAAA,EACjE;AAAA;AASJ,SAASG,EAAWE,GAAO;AAEzB,QAAMC,IAAS,CAAA;AACf,MAAIC,IAAQ;AAEZ,SAAO,EAAEA,IAAQF,EAAM;AACrB,IAAAC,EAAOC,CAAK,IAAIR,EAAeM,EAAME,CAAK,CAAC;AAG7C,SAAOH,EAAYI,CAAG;AAMtB,WAASA,KAAOC,GAAY;AAC1B,QAAIF,IAAQ;AAEZ,WAAO,EAAEA,IAAQD,EAAO;AACtB,UAAIA,EAAOC,CAAK,EAAE,MAAM,MAAME,CAAU,EAAG,QAAO;AAGpD,WAAO;AAAA,EACT;AACF;AAQA,SAASP,EAAeQ,GAAO;AAC7B,SAAON,EAAYO,CAAO;AAM1B,WAASA,EAAQV,GAAS;AACxB,WAAOA,EAAQ,YAAYS;AAAA,EAC7B;AACF;AAQA,SAASN,EAAYQ,GAAc;AACjC,SAAOF;AAMP,WAASA,EAAMG,GAAON,GAAOO,GAAQ;AACnC,WAAO,GACLC,EAAmBF,CAAK,KACtBD,EAAa;AAAA,MACX;AAAA,MACAC;AAAA,MACA,OAAON,KAAU,WAAWA,IAAQ;AAAA,MACpCO,KAAU;AAAA,IACpB;AAAA,EAEE;AACF;AAQA,SAASb,EAAQA,GAAS;AACxB,SAAO,GACLA,KACE,OAAOA,KAAY,YACnB,UAAUA,KACVA,EAAQ,SAAS,aACjB,aAAaA,KACb,OAAOA,EAAQ,WAAY;AAEjC;AAMA,SAASc,EAAmBF,GAAO;AACjC,SACEA,MAAU,QACV,OAAOA,KAAU,YACjB,UAAUA,KACV,aAAaA;AAEjB;","x_google_ignoreList":[0]}
@@ -1,227 +0,0 @@
1
- import { convertElement as p } from "../../hast-util-is-element/lib/index.js";
2
- import { findAfter as f } from "../../unist-util-find-after/lib/index.js";
3
- const d = /\n/g, g = /[\t ]+/g, h = p("br"), m = p(N), y = p("p"), x = p("tr"), C = p([
4
- // List from: <https://html.spec.whatwg.org/multipage/rendering.html#hidden-elements>
5
- "datalist",
6
- "head",
7
- "noembed",
8
- "noframes",
9
- "noscript",
10
- // Act as if we support scripting.
11
- "rp",
12
- "script",
13
- "style",
14
- "template",
15
- "title",
16
- // Hidden attribute.
17
- E,
18
- // From: <https://html.spec.whatwg.org/multipage/rendering.html#flow-content-3>
19
- S
20
- ]), b = p([
21
- "address",
22
- // Flow content
23
- "article",
24
- // Sections and headings
25
- "aside",
26
- // Sections and headings
27
- "blockquote",
28
- // Flow content
29
- "body",
30
- // Page
31
- "caption",
32
- // `table-caption`
33
- "center",
34
- // Flow content (legacy)
35
- "dd",
36
- // Lists
37
- "dialog",
38
- // Flow content
39
- "dir",
40
- // Lists (legacy)
41
- "dl",
42
- // Lists
43
- "dt",
44
- // Lists
45
- "div",
46
- // Flow content
47
- "figure",
48
- // Flow content
49
- "figcaption",
50
- // Flow content
51
- "footer",
52
- // Flow content
53
- "form,",
54
- // Flow content
55
- "h1",
56
- // Sections and headings
57
- "h2",
58
- // Sections and headings
59
- "h3",
60
- // Sections and headings
61
- "h4",
62
- // Sections and headings
63
- "h5",
64
- // Sections and headings
65
- "h6",
66
- // Sections and headings
67
- "header",
68
- // Flow content
69
- "hgroup",
70
- // Sections and headings
71
- "hr",
72
- // Flow content
73
- "html",
74
- // Page
75
- "legend",
76
- // Flow content
77
- "li",
78
- // Lists (as `display: list-item`)
79
- "listing",
80
- // Flow content (legacy)
81
- "main",
82
- // Flow content
83
- "menu",
84
- // Lists
85
- "nav",
86
- // Sections and headings
87
- "ol",
88
- // Lists
89
- "p",
90
- // Flow content
91
- "plaintext",
92
- // Flow content (legacy)
93
- "pre",
94
- // Flow content
95
- "section",
96
- // Sections and headings
97
- "ul",
98
- // Lists
99
- "xmp"
100
- // Flow content (legacy)
101
- ]);
102
- function F(e, a) {
103
- const l = a || {}, n = "children" in e ? e.children : [], r = b(e), i = A(e, {
104
- whitespace: l.whitespace || "normal"
105
- }), t = [];
106
- (e.type === "text" || e.type === "comment") && t.push(
107
- ...k(e, {
108
- breakBefore: !0,
109
- breakAfter: !0
110
- })
111
- );
112
- let s = -1;
113
- for (; ++s < n.length; )
114
- t.push(
115
- ...w(
116
- n[s],
117
- // @ts-expect-error: `tree` is a parent if we’re here.
118
- e,
119
- {
120
- whitespace: i,
121
- breakBefore: s ? void 0 : r,
122
- breakAfter: s < n.length - 1 ? h(n[s + 1]) : r
123
- }
124
- )
125
- );
126
- const c = [];
127
- let o;
128
- for (s = -1; ++s < t.length; ) {
129
- const u = t[s];
130
- typeof u == "number" ? o !== void 0 && u > o && (o = u) : u && (o !== void 0 && o > -1 && c.push(`
131
- `.repeat(o) || " "), o = -1, c.push(u));
132
- }
133
- return c.join("");
134
- }
135
- function w(e, a, l) {
136
- return e.type === "element" ? T(e, a, l) : e.type === "text" ? l.whitespace === "normal" ? k(e, l) : B(e) : [];
137
- }
138
- function T(e, a, l) {
139
- const n = A(e, l), r = e.children || [];
140
- let i = -1, t = [];
141
- if (C(e))
142
- return t;
143
- let s, c;
144
- for (h(e) || x(e) && // @ts-expect-error: something up with types of parents.
145
- f(a, e, x) ? c = `
146
- ` : y(e) ? (s = 2, c = 2) : b(e) && (s = 1, c = 1); ++i < r.length; )
147
- t = t.concat(
148
- w(r[i], e, {
149
- whitespace: n,
150
- breakBefore: i ? void 0 : s,
151
- breakAfter: i < r.length - 1 ? h(r[i + 1]) : c
152
- })
153
- );
154
- return m(e) && // @ts-expect-error: something up with types of parents.
155
- f(a, e, m) && t.push(" "), s && t.unshift(s), c && t.push(c), t;
156
- }
157
- function k(e, a) {
158
- const l = String(e.value), n = [], r = [];
159
- let i = 0;
160
- for (; i <= l.length; ) {
161
- d.lastIndex = i;
162
- const c = d.exec(l), o = c && "index" in c ? c.index : l.length;
163
- n.push(
164
- // Any sequence of collapsible spaces and tabs immediately preceding or
165
- // following a segment break is removed.
166
- v(
167
- // […] ignoring bidi formatting characters (characters with the
168
- // Bidi_Control property [UAX9]: ALM, LTR, RTL, LRE-RLO, LRI-PDI) as if
169
- // they were not there.
170
- l.slice(i, o).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g, ""),
171
- i === 0 ? a.breakBefore : !0,
172
- o === l.length ? a.breakAfter : !0
173
- )
174
- ), i = o + 1;
175
- }
176
- let t = -1, s;
177
- for (; ++t < n.length; )
178
- n[t].charCodeAt(n[t].length - 1) === 8203 || t < n.length - 1 && n[t + 1].charCodeAt(0) === 8203 ? (r.push(n[t]), s = void 0) : n[t] ? (typeof s == "number" && r.push(s), r.push(n[t]), s = 0) : (t === 0 || t === n.length - 1) && r.push(0);
179
- return r;
180
- }
181
- function B(e) {
182
- return [String(e.value)];
183
- }
184
- function v(e, a, l) {
185
- const n = [];
186
- let r = 0, i;
187
- for (; r < e.length; ) {
188
- g.lastIndex = r;
189
- const t = g.exec(e);
190
- i = t ? t.index : e.length, !r && !i && t && !a && n.push(""), r !== i && n.push(e.slice(r, i)), r = t ? i + t[0].length : i;
191
- }
192
- return r !== i && !l && n.push(""), n.join(" ");
193
- }
194
- function A(e, a) {
195
- if (e.type === "element") {
196
- const l = e.properties || {};
197
- switch (e.tagName) {
198
- case "listing":
199
- case "plaintext":
200
- case "xmp":
201
- return "pre";
202
- case "nobr":
203
- return "nowrap";
204
- case "pre":
205
- return l.wrap ? "pre-wrap" : "pre";
206
- case "td":
207
- case "th":
208
- return l.noWrap ? "nowrap" : a.whitespace;
209
- case "textarea":
210
- return "pre-wrap";
211
- }
212
- }
213
- return a.whitespace;
214
- }
215
- function E(e) {
216
- return !!(e.properties || {}).hidden;
217
- }
218
- function N(e) {
219
- return e.tagName === "td" || e.tagName === "th";
220
- }
221
- function S(e) {
222
- return e.tagName === "dialog" && !(e.properties || {}).open;
223
- }
224
- export {
225
- F as toText
226
- };
227
- //# sourceMappingURL=index.js.map