markdown-flow-ui 0.3.4 → 0.3.6

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 (1211) hide show
  1. package/dist/_virtual/{advancedFormat.es2.js → advancedFormat2.es.js} +1 -1
  2. package/dist/_virtual/advancedFormat2.es.js.map +1 -0
  3. package/dist/_virtual/core.cjs +1 -1
  4. package/dist/_virtual/core.es.js +1 -1
  5. package/dist/_virtual/{cose-base.es2.js → cose-base2.es.js} +1 -1
  6. package/dist/_virtual/cose-base2.es.js.map +1 -0
  7. package/dist/_virtual/{customParseFormat.es2.js → customParseFormat2.es.js} +1 -1
  8. package/dist/_virtual/customParseFormat2.es.js.map +1 -0
  9. package/dist/_virtual/cytoscape-cose-bilkent2.es.js +5 -0
  10. package/dist/_virtual/cytoscape-cose-bilkent2.es.js.map +1 -0
  11. package/dist/_virtual/{cytoscape-fcose.es2.js → cytoscape-fcose2.es.js} +1 -1
  12. package/dist/_virtual/cytoscape-fcose2.es.js.map +1 -0
  13. package/dist/_virtual/{dayjs.min2.cjs → dayjs2.min.cjs} +1 -1
  14. package/dist/_virtual/dayjs2.min.cjs.map +1 -0
  15. package/dist/_virtual/{dayjs.min.es2.js → dayjs2.min.es.js} +1 -1
  16. package/dist/_virtual/dayjs2.min.es.js.map +1 -0
  17. package/dist/_virtual/{duration.es2.js → duration2.es.js} +1 -1
  18. package/dist/_virtual/duration2.es.js.map +1 -0
  19. package/dist/_virtual/{index.es10.js → index10.es.js} +1 -1
  20. package/dist/_virtual/index10.es.js.map +1 -0
  21. package/dist/_virtual/{index.es11.js → index11.es.js} +1 -1
  22. package/dist/_virtual/index11.es.js.map +1 -0
  23. package/dist/_virtual/{index.es12.js → index12.es.js} +1 -1
  24. package/dist/_virtual/index12.es.js.map +1 -0
  25. package/dist/_virtual/{index.es9.js → index2.es.js} +1 -1
  26. package/dist/_virtual/index2.es.js.map +1 -0
  27. package/dist/_virtual/index3.cjs +1 -1
  28. package/dist/_virtual/{index.es4.js → index3.es.js} +1 -1
  29. package/dist/_virtual/index3.es.js.map +1 -0
  30. package/dist/_virtual/index4.cjs +1 -1
  31. package/dist/_virtual/{index.es3.js → index4.es.js} +1 -1
  32. package/dist/_virtual/index4.es.js.map +1 -0
  33. package/dist/_virtual/{index.es5.js → index5.es.js} +1 -1
  34. package/dist/_virtual/index5.es.js.map +1 -0
  35. package/dist/_virtual/index6.cjs +1 -1
  36. package/dist/_virtual/{index.es7.js → index6.es.js} +1 -1
  37. package/dist/_virtual/index6.es.js.map +1 -0
  38. package/dist/_virtual/index7.cjs +1 -1
  39. package/dist/_virtual/{index.es6.js → index7.es.js} +1 -1
  40. package/dist/_virtual/index7.es.js.map +1 -0
  41. package/dist/_virtual/{index.es8.js → index8.es.js} +1 -1
  42. package/dist/_virtual/index8.es.js.map +1 -0
  43. package/dist/_virtual/{index.es2.js → index9.es.js} +1 -1
  44. package/dist/_virtual/index9.es.js.map +1 -0
  45. package/dist/_virtual/{isoWeek.es2.js → isoWeek2.es.js} +1 -1
  46. package/dist/_virtual/isoWeek2.es.js.map +1 -0
  47. package/dist/_virtual/{layout-base.es2.js → layout-base2.es.js} +1 -1
  48. package/dist/_virtual/layout-base2.es.js.map +1 -0
  49. package/dist/components/ContentRender/ContentRender.cjs +2 -2
  50. package/dist/components/ContentRender/ContentRender.cjs.map +1 -1
  51. package/dist/components/ContentRender/ContentRender.d.ts +2 -0
  52. package/dist/components/ContentRender/ContentRender.es.js +513 -509
  53. package/dist/components/ContentRender/ContentRender.es.js.map +1 -1
  54. package/dist/components/ContentRender/IframeSandbox.es.js +1 -1
  55. package/dist/components/ContentRender/MarkdownFlowInput.cjs +1 -1
  56. package/dist/components/ContentRender/MarkdownFlowInput.cjs.map +1 -1
  57. package/dist/components/ContentRender/MarkdownFlowInput.d.ts +2 -0
  58. package/dist/components/ContentRender/MarkdownFlowInput.es.js +40 -38
  59. package/dist/components/ContentRender/MarkdownFlowInput.es.js.map +1 -1
  60. package/dist/components/ContentRender/plugins/CustomVariable.cjs +1 -1
  61. package/dist/components/ContentRender/plugins/CustomVariable.cjs.map +1 -1
  62. package/dist/components/ContentRender/plugins/CustomVariable.d.ts +2 -1
  63. package/dist/components/ContentRender/plugins/CustomVariable.es.js +110 -90
  64. package/dist/components/ContentRender/plugins/CustomVariable.es.js.map +1 -1
  65. package/dist/components/ContentRender/plugins/MermaidChart.cjs.map +1 -1
  66. package/dist/components/ContentRender/utils/accept-placeholder.cjs +2 -0
  67. package/dist/components/ContentRender/utils/accept-placeholder.cjs.map +1 -0
  68. package/dist/components/ContentRender/utils/accept-placeholder.d.ts +3 -0
  69. package/dist/components/ContentRender/utils/accept-placeholder.es.js +10 -0
  70. package/dist/components/ContentRender/utils/accept-placeholder.es.js.map +1 -0
  71. package/dist/components/ContentRender/utils/video-markdown-run.es.js +2 -2
  72. package/dist/components/MarkdownFlow/MarkdownFlow.cjs +1 -1
  73. package/dist/components/MarkdownFlow/MarkdownFlow.cjs.map +1 -1
  74. package/dist/components/MarkdownFlow/MarkdownFlow.d.ts +2 -0
  75. package/dist/components/MarkdownFlow/MarkdownFlow.es.js +23 -21
  76. package/dist/components/MarkdownFlow/MarkdownFlow.es.js.map +1 -1
  77. package/dist/components/MarkdownFlow/ScrollToBottomControl.cjs +1 -1
  78. package/dist/components/MarkdownFlow/ScrollToBottomControl.cjs.map +1 -1
  79. package/dist/components/MarkdownFlow/ScrollToBottomControl.es.js +1 -1
  80. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs.map +1 -1
  81. package/dist/components/Slide/Slide.cjs +1 -1
  82. package/dist/components/Slide/Slide.cjs.map +1 -1
  83. package/dist/components/Slide/Slide.d.ts +2 -0
  84. package/dist/components/Slide/Slide.es.js +347 -343
  85. package/dist/components/Slide/Slide.es.js.map +1 -1
  86. package/dist/components/ui/inputGroup/input-group.d.ts +1 -1
  87. package/dist/components/ui/inputGroup/textarea.cjs +1 -1
  88. package/dist/components/ui/inputGroup/textarea.es.js +1 -1
  89. package/dist/components/ui/tooltip.cjs +1 -1
  90. package/dist/components/ui/tooltip.cjs.map +1 -1
  91. package/dist/components/ui/tooltip.es.js +12 -12
  92. package/dist/index.cjs +1 -1
  93. package/dist/index.es.js +3 -3
  94. package/dist/markdown-flow-ui-lib.css +2 -2
  95. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs +1 -1
  96. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs.map +1 -1
  97. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.es.js +4 -4
  98. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.es.js.map +1 -1
  99. package/dist/node_modules/@braintree/sanitize-url/dist/index.es.js +1 -1
  100. package/dist/node_modules/@codemirror/autocomplete/dist/index.cjs +1 -1
  101. package/dist/node_modules/@codemirror/autocomplete/dist/index.cjs.map +1 -1
  102. package/dist/node_modules/@codemirror/autocomplete/dist/index.es.js +172 -159
  103. package/dist/node_modules/@codemirror/autocomplete/dist/index.es.js.map +1 -1
  104. package/dist/node_modules/@codemirror/commands/dist/index.cjs +1 -1
  105. package/dist/node_modules/@codemirror/commands/dist/index.cjs.map +1 -1
  106. package/dist/node_modules/@codemirror/commands/dist/index.es.js +376 -333
  107. package/dist/node_modules/@codemirror/commands/dist/index.es.js.map +1 -1
  108. package/dist/node_modules/@codemirror/lang-css/dist/index.es.js +3 -3
  109. package/dist/node_modules/@codemirror/lang-html/dist/index.cjs +1 -1
  110. package/dist/node_modules/@codemirror/lang-html/dist/index.cjs.map +1 -1
  111. package/dist/node_modules/@codemirror/lang-html/dist/index.es.js +238 -228
  112. package/dist/node_modules/@codemirror/lang-html/dist/index.es.js.map +1 -1
  113. package/dist/node_modules/@codemirror/lang-javascript/dist/index.cjs +4 -4
  114. package/dist/node_modules/@codemirror/lang-javascript/dist/index.cjs.map +1 -1
  115. package/dist/node_modules/@codemirror/lang-javascript/dist/index.es.js +62 -50
  116. package/dist/node_modules/@codemirror/lang-javascript/dist/index.es.js.map +1 -1
  117. package/dist/node_modules/@codemirror/lang-markdown/dist/index.cjs +1 -1
  118. package/dist/node_modules/@codemirror/lang-markdown/dist/index.cjs.map +1 -1
  119. package/dist/node_modules/@codemirror/lang-markdown/dist/index.es.js +237 -207
  120. package/dist/node_modules/@codemirror/lang-markdown/dist/index.es.js.map +1 -1
  121. package/dist/node_modules/@codemirror/language/dist/index.cjs +1 -1
  122. package/dist/node_modules/@codemirror/language/dist/index.cjs.map +1 -1
  123. package/dist/node_modules/@codemirror/language/dist/index.es.js +302 -296
  124. package/dist/node_modules/@codemirror/language/dist/index.es.js.map +1 -1
  125. package/dist/node_modules/@codemirror/lint/dist/index.cjs +1 -1
  126. package/dist/node_modules/@codemirror/lint/dist/index.cjs.map +1 -1
  127. package/dist/node_modules/@codemirror/lint/dist/index.es.js +281 -236
  128. package/dist/node_modules/@codemirror/lint/dist/index.es.js.map +1 -1
  129. package/dist/node_modules/@codemirror/search/dist/index.cjs +2 -2
  130. package/dist/node_modules/@codemirror/search/dist/index.cjs.map +1 -1
  131. package/dist/node_modules/@codemirror/search/dist/index.es.js +427 -454
  132. package/dist/node_modules/@codemirror/search/dist/index.es.js.map +1 -1
  133. package/dist/node_modules/@codemirror/state/dist/index.cjs +5 -5
  134. package/dist/node_modules/@codemirror/state/dist/index.cjs.map +1 -1
  135. package/dist/node_modules/@codemirror/state/dist/index.es.js +556 -509
  136. package/dist/node_modules/@codemirror/state/dist/index.es.js.map +1 -1
  137. package/dist/node_modules/@codemirror/view/dist/index.cjs +5 -5
  138. package/dist/node_modules/@codemirror/view/dist/index.cjs.map +1 -1
  139. package/dist/node_modules/@codemirror/view/dist/index.es.js +3982 -3507
  140. package/dist/node_modules/@codemirror/view/dist/index.es.js.map +1 -1
  141. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +1 -1
  142. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.cjs.map +1 -1
  143. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.es.js +288 -309
  144. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.es.js.map +1 -1
  145. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +1 -1
  146. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs.map +1 -1
  147. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.es.js +244 -252
  148. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.es.js.map +1 -1
  149. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +1 -1
  150. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs.map +1 -1
  151. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +1 -1
  152. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs.map +1 -1
  153. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.es.js +8 -8
  154. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.es.js.map +1 -1
  155. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.es.js +47 -47
  156. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.es.js.map +1 -1
  157. package/dist/node_modules/@lezer/common/dist/index.cjs +1 -1
  158. package/dist/node_modules/@lezer/common/dist/index.cjs.map +1 -1
  159. package/dist/node_modules/@lezer/common/dist/index.es.js +266 -253
  160. package/dist/node_modules/@lezer/common/dist/index.es.js.map +1 -1
  161. package/dist/node_modules/@lezer/css/dist/index.cjs +1 -1
  162. package/dist/node_modules/@lezer/css/dist/index.cjs.map +1 -1
  163. package/dist/node_modules/@lezer/css/dist/index.es.js +95 -87
  164. package/dist/node_modules/@lezer/css/dist/index.es.js.map +1 -1
  165. package/dist/node_modules/@lezer/highlight/dist/index.cjs +1 -1
  166. package/dist/node_modules/@lezer/highlight/dist/index.cjs.map +1 -1
  167. package/dist/node_modules/@lezer/highlight/dist/index.es.js +150 -139
  168. package/dist/node_modules/@lezer/highlight/dist/index.es.js.map +1 -1
  169. package/dist/node_modules/@lezer/html/dist/index.cjs +1 -1
  170. package/dist/node_modules/@lezer/html/dist/index.cjs.map +1 -1
  171. package/dist/node_modules/@lezer/html/dist/index.es.js +88 -95
  172. package/dist/node_modules/@lezer/html/dist/index.es.js.map +1 -1
  173. package/dist/node_modules/@lezer/javascript/dist/index.cjs +1 -1
  174. package/dist/node_modules/@lezer/javascript/dist/index.cjs.map +1 -1
  175. package/dist/node_modules/@lezer/javascript/dist/index.es.js +49 -49
  176. package/dist/node_modules/@lezer/javascript/dist/index.es.js.map +1 -1
  177. package/dist/node_modules/@lezer/lr/dist/index.cjs +1 -1
  178. package/dist/node_modules/@lezer/lr/dist/index.cjs.map +1 -1
  179. package/dist/node_modules/@lezer/lr/dist/index.es.js +148 -137
  180. package/dist/node_modules/@lezer/lr/dist/index.es.js.map +1 -1
  181. package/dist/node_modules/@lezer/markdown/dist/index.cjs +5 -5
  182. package/dist/node_modules/@lezer/markdown/dist/index.cjs.map +1 -1
  183. package/dist/node_modules/@lezer/markdown/dist/index.es.js +305 -269
  184. package/dist/node_modules/@lezer/markdown/dist/index.es.js.map +1 -1
  185. package/dist/node_modules/@marijn/find-cluster-break/src/index.cjs +1 -1
  186. package/dist/node_modules/@marijn/find-cluster-break/src/index.cjs.map +1 -1
  187. package/dist/node_modules/@marijn/find-cluster-break/src/index.es.js +31 -31
  188. package/dist/node_modules/@marijn/find-cluster-break/src/index.es.js.map +1 -1
  189. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7GRP2DOG.es.js +4 -3
  190. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7GRP2DOG.es.js.map +1 -1
  191. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2ZTRR5NV.es.js +1 -1
  192. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-3Z5EZCMW.es.js +1 -1
  193. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5V3GS4D5.es.js +1 -1
  194. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-6AZGARVD.es.js +1 -1
  195. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-6EIED4P4.es.js +1 -1
  196. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-6K3QC6MW.es.js +1 -1
  197. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-6TQVIW2G.es.js +1 -1
  198. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-747NJXEK.es.js +1 -1
  199. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-I5DQTOEV.es.js +1 -1
  200. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ICYGCRZG.es.js +1 -1
  201. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-IH6LHLGP.es.js +1 -1
  202. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KI3K4JFJ.es.js +1 -1
  203. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-OUJLGHUK.es.js +1 -1
  204. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UY3FDG6J.es.js +1 -1
  205. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-XHIXRSVI.es.js +1 -1
  206. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/cynefin-OW5HDTMX.es.js +4 -3
  207. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/cynefin-OW5HDTMX.es.js.map +1 -1
  208. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-NTZA5JFV.es.js +4 -3
  209. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-NTZA5JFV.es.js.map +1 -1
  210. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-4MIJSDKK.es.js +3 -2
  211. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-4MIJSDKK.es.js.map +1 -1
  212. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-A6RAGUB7.es.js +4 -3
  213. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-A6RAGUB7.es.js.map +1 -1
  214. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-AYTQ26CC.es.js +4 -3
  215. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-AYTQ26CC.es.js.map +1 -1
  216. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-WAS4IAKB.es.js +4 -3
  217. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-WAS4IAKB.es.js.map +1 -1
  218. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-RG4KPBEZ.es.js +4 -3
  219. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-RG4KPBEZ.es.js.map +1 -1
  220. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-74A4TZTK.es.js +4 -3
  221. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-74A4TZTK.es.js.map +1 -1
  222. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-abnf-HS5TGJTU.es.js +4 -3
  223. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-abnf-HS5TGJTU.es.js.map +1 -1
  224. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-ebnf-LZEXJU2U.es.js +4 -3
  225. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-ebnf-LZEXJU2U.es.js.map +1 -1
  226. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-peg-WCYAUIDC.es.js +4 -3
  227. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-peg-WCYAUIDC.es.js.map +1 -1
  228. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-Q6P3EWNA.es.js +4 -3
  229. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-Q6P3EWNA.es.js.map +1 -1
  230. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-WGGIJYW6.es.js +4 -3
  231. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-WGGIJYW6.es.js.map +1 -1
  232. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-WFR3VGLG.es.js +4 -3
  233. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-WFR3VGLG.es.js.map +1 -1
  234. package/dist/node_modules/@radix-ui/primitive/dist/index.cjs +1 -1
  235. package/dist/node_modules/@radix-ui/primitive/dist/index.cjs.map +1 -1
  236. package/dist/node_modules/@radix-ui/primitive/dist/index.es.js +46 -6
  237. package/dist/node_modules/@radix-ui/primitive/dist/index.es.js.map +1 -1
  238. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +1 -1
  239. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +1 -1
  240. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +20 -16
  241. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +1 -1
  242. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs +1 -1
  243. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -1
  244. package/dist/node_modules/@radix-ui/react-context/dist/index.es.js +71 -43
  245. package/dist/node_modules/@radix-ui/react-context/dist/index.es.js.map +1 -1
  246. package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs +1 -1
  247. package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs.map +1 -1
  248. package/dist/node_modules/@radix-ui/react-dialog/dist/index.es.js +16 -16
  249. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +1 -1
  250. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -1
  251. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js +184 -96
  252. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +1 -1
  253. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +1 -1
  254. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -1
  255. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.js +3 -3
  256. package/dist/node_modules/@radix-ui/react-id/dist/index.cjs +1 -1
  257. package/dist/node_modules/@radix-ui/react-id/dist/index.cjs.map +1 -1
  258. package/dist/node_modules/@radix-ui/react-id/dist/index.es.js +10 -9
  259. package/dist/node_modules/@radix-ui/react-id/dist/index.es.js.map +1 -1
  260. package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs +1 -1
  261. package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -1
  262. package/dist/node_modules/@radix-ui/react-portal/dist/index.es.js +14 -12
  263. package/dist/node_modules/@radix-ui/react-portal/dist/index.es.js.map +1 -1
  264. package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs +1 -1
  265. package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs.map +1 -1
  266. package/dist/node_modules/@radix-ui/react-presence/dist/index.es.js +70 -37
  267. package/dist/node_modules/@radix-ui/react-presence/dist/index.es.js.map +1 -1
  268. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs +1 -1
  269. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -1
  270. package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js +16 -14
  271. package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -1
  272. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -1
  273. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
  274. package/dist/node_modules/@radix-ui/react-slot/dist/index.es.js +1 -1
  275. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs +1 -1
  276. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs.map +1 -1
  277. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.es.js +261 -250
  278. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.es.js.map +1 -1
  279. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/primitive/dist/index.cjs.map +1 -0
  280. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/primitive/dist/index.es.js.map +1 -0
  281. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-arrow/dist/index.cjs +2 -0
  282. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-arrow/dist/index.cjs.map +1 -0
  283. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-arrow/dist/index.es.js +25 -0
  284. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-arrow/dist/index.es.js.map +1 -0
  285. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -0
  286. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-context/dist/index.es.js.map +1 -0
  287. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +2 -0
  288. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -0
  289. package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js +1 -1
  290. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +1 -0
  291. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +2 -0
  292. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -0
  293. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-focus-scope/dist/index.es.js +105 -0
  294. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-focus-scope/dist/index.es.js.map +1 -0
  295. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/dist/index.cjs +2 -0
  296. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/dist/index.cjs.map +1 -0
  297. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/dist/index.es.js +271 -0
  298. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/dist/index.es.js.map +1 -0
  299. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-portal/dist/index.cjs +2 -0
  300. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -0
  301. package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/react-portal/dist/index.es.js +1 -1
  302. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-portal/dist/index.es.js.map +1 -0
  303. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-primitive/dist/index.cjs +2 -0
  304. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -0
  305. package/dist/node_modules/@radix-ui/{react-focus-scope → react-tooltip}/node_modules/@radix-ui/react-primitive/dist/index.es.js +1 -1
  306. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -0
  307. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -1
  308. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
  309. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.es.js +94 -7
  310. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -1
  311. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +2 -0
  312. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +1 -0
  313. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +16 -0
  314. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +1 -0
  315. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +2 -0
  316. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.map +1 -0
  317. package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js +2 -2
  318. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js.map +1 -0
  319. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +1 -1
  320. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +1 -1
  321. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +8 -6
  322. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +1 -1
  323. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +1 -1
  324. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.map +1 -1
  325. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js +56 -39
  326. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js.map +1 -1
  327. package/dist/node_modules/@radix-ui/react-use-effect-event/dist/index.cjs.map +1 -0
  328. package/dist/node_modules/@radix-ui/react-use-effect-event/dist/index.es.js.map +1 -0
  329. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.map +1 -1
  330. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js.map +1 -1
  331. package/dist/node_modules/@radix-ui/react-use-size/dist/index.cjs +1 -1
  332. package/dist/node_modules/@radix-ui/react-use-size/dist/index.cjs.map +1 -1
  333. package/dist/node_modules/@radix-ui/react-use-size/dist/index.es.js +28 -21
  334. package/dist/node_modules/@radix-ui/react-use-size/dist/index.es.js.map +1 -1
  335. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +1 -1
  336. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs.map +1 -1
  337. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.es.js +15 -15
  338. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.es.js.map +1 -1
  339. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive/dist/index.cjs +2 -0
  340. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -0
  341. package/dist/node_modules/@radix-ui/{react-dialog → react-visually-hidden}/node_modules/@radix-ui/react-primitive/dist/index.es.js +1 -1
  342. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -0
  343. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.cjs +2 -0
  344. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -0
  345. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.es.js +99 -0
  346. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -0
  347. package/dist/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.cjs +1 -1
  348. package/dist/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.cjs.map +1 -1
  349. package/dist/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.es.js +11 -13
  350. package/dist/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.es.js.map +1 -1
  351. package/dist/node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.cjs +1 -1
  352. package/dist/node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.cjs.map +1 -1
  353. package/dist/node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.es.js +20 -27
  354. package/dist/node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.es.js.map +1 -1
  355. package/dist/node_modules/@uiw/react-codemirror/esm/index.cjs +1 -1
  356. package/dist/node_modules/@uiw/react-codemirror/esm/index.cjs.map +1 -1
  357. package/dist/node_modules/@uiw/react-codemirror/esm/index.es.js +51 -80
  358. package/dist/node_modules/@uiw/react-codemirror/esm/index.es.js.map +1 -1
  359. package/dist/node_modules/@uiw/react-codemirror/esm/theme/dimensionTheme.cjs +2 -0
  360. package/dist/node_modules/@uiw/react-codemirror/esm/theme/dimensionTheme.cjs.map +1 -0
  361. package/dist/node_modules/@uiw/react-codemirror/esm/theme/dimensionTheme.es.js +33 -0
  362. package/dist/node_modules/@uiw/react-codemirror/esm/theme/dimensionTheme.es.js.map +1 -0
  363. package/dist/node_modules/@uiw/react-codemirror/esm/useCodeMirror.cjs +1 -1
  364. package/dist/node_modules/@uiw/react-codemirror/esm/useCodeMirror.cjs.map +1 -1
  365. package/dist/node_modules/@uiw/react-codemirror/esm/useCodeMirror.es.js +64 -98
  366. package/dist/node_modules/@uiw/react-codemirror/esm/useCodeMirror.es.js.map +1 -1
  367. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.cjs +1 -1
  368. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.cjs.map +1 -1
  369. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.es.js +65 -42
  370. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.es.js.map +1 -1
  371. package/dist/node_modules/@ungap/structured-clone/esm/serialize.cjs +1 -1
  372. package/dist/node_modules/@ungap/structured-clone/esm/serialize.cjs.map +1 -1
  373. package/dist/node_modules/@ungap/structured-clone/esm/serialize.es.js +62 -58
  374. package/dist/node_modules/@ungap/structured-clone/esm/serialize.es.js.map +1 -1
  375. package/dist/node_modules/classnames/index.es.js +1 -1
  376. package/dist/node_modules/clsx/dist/clsx.cjs +1 -1
  377. package/dist/node_modules/clsx/dist/clsx.cjs.map +1 -1
  378. package/dist/node_modules/clsx/dist/clsx.es.js +7 -8
  379. package/dist/node_modules/clsx/dist/clsx.es.js.map +1 -1
  380. package/dist/node_modules/cose-base/cose-base.es.js +1 -1
  381. package/dist/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.es.js +1 -1
  382. package/dist/node_modules/cytoscape-fcose/cytoscape-fcose.es.js +1 -1
  383. package/dist/node_modules/d3-color/src/lab.cjs +1 -1
  384. package/dist/node_modules/d3-color/src/lab.cjs.map +1 -1
  385. package/dist/node_modules/d3-color/src/lab.es.js +4 -5
  386. package/dist/node_modules/d3-format/src/defaultLocale.cjs +1 -1
  387. package/dist/node_modules/d3-format/src/defaultLocale.cjs.map +1 -1
  388. package/dist/node_modules/d3-format/src/defaultLocale.es.js +3 -4
  389. package/dist/node_modules/d3-time-format/src/defaultLocale.cjs +1 -1
  390. package/dist/node_modules/d3-time-format/src/defaultLocale.cjs.map +1 -1
  391. package/dist/node_modules/d3-time-format/src/defaultLocale.es.js +2 -3
  392. package/dist/node_modules/d3-time-format/src/locale.es.js +14 -14
  393. package/dist/node_modules/d3-transition/src/selection/transition.cjs +1 -1
  394. package/dist/node_modules/d3-transition/src/selection/transition.es.js +4 -4
  395. package/dist/node_modules/d3-transition/src/transition/interpolate.cjs +1 -1
  396. package/dist/node_modules/d3-transition/src/transition/interpolate.es.js +3 -3
  397. package/dist/node_modules/dagre-d3-es/src/dagre/layout.cjs +1 -1
  398. package/dist/node_modules/dagre-d3-es/src/dagre/layout.es.js +7 -7
  399. package/dist/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.cjs +1 -1
  400. package/dist/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.es.js +4 -4
  401. package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.cjs +1 -1
  402. package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.es.js +14 -14
  403. package/dist/node_modules/dagre-d3-es/src/dagre/util.cjs +1 -1
  404. package/dist/node_modules/dagre-d3-es/src/dagre/util.es.js +7 -7
  405. package/dist/node_modules/dayjs/dayjs.min.cjs +1 -1
  406. package/dist/node_modules/dayjs/dayjs.min.es.js +1 -1
  407. package/dist/node_modules/dayjs/plugin/advancedFormat.es.js +1 -1
  408. package/dist/node_modules/dayjs/plugin/customParseFormat.es.js +1 -1
  409. package/dist/node_modules/dayjs/plugin/duration.es.js +1 -1
  410. package/dist/node_modules/dayjs/plugin/isoWeek.es.js +1 -1
  411. package/dist/node_modules/decode-named-character-reference/index.dom.cjs.map +1 -1
  412. package/dist/node_modules/decode-named-character-reference/index.dom.es.js +1 -5
  413. package/dist/node_modules/decode-named-character-reference/index.dom.es.js.map +1 -1
  414. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.cjs +1 -1
  415. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.es.js +1 -1
  416. package/dist/node_modules/hast-util-to-parse5/lib/index.cjs +1 -1
  417. package/dist/node_modules/hast-util-to-parse5/lib/index.cjs.map +1 -1
  418. package/dist/node_modules/hast-util-to-parse5/lib/index.es.js +2 -2
  419. package/dist/node_modules/hast-util-to-parse5/lib/index.es.js.map +1 -1
  420. package/dist/node_modules/hast-util-to-text/lib/index.cjs +3 -3
  421. package/dist/node_modules/hast-util-to-text/lib/index.cjs.map +1 -1
  422. package/dist/node_modules/hast-util-to-text/lib/index.es.js +136 -84
  423. package/dist/node_modules/hast-util-to-text/lib/index.es.js.map +1 -1
  424. package/dist/node_modules/highlight.js/es/languages/c.cjs +1 -1
  425. package/dist/node_modules/highlight.js/es/languages/c.cjs.map +1 -1
  426. package/dist/node_modules/highlight.js/es/languages/c.es.js +122 -63
  427. package/dist/node_modules/highlight.js/es/languages/c.es.js.map +1 -1
  428. package/dist/node_modules/highlight.js/es/languages/cpp.cjs +1 -1
  429. package/dist/node_modules/highlight.js/es/languages/cpp.cjs.map +1 -1
  430. package/dist/node_modules/highlight.js/es/languages/cpp.es.js +65 -48
  431. package/dist/node_modules/highlight.js/es/languages/cpp.es.js.map +1 -1
  432. package/dist/node_modules/highlight.js/es/languages/css.cjs +1 -1
  433. package/dist/node_modules/highlight.js/es/languages/css.cjs.map +1 -1
  434. package/dist/node_modules/highlight.js/es/languages/css.es.js +17 -6
  435. package/dist/node_modules/highlight.js/es/languages/css.es.js.map +1 -1
  436. package/dist/node_modules/highlight.js/es/languages/go.cjs +1 -1
  437. package/dist/node_modules/highlight.js/es/languages/go.cjs.map +1 -1
  438. package/dist/node_modules/highlight.js/es/languages/go.es.js +7 -2
  439. package/dist/node_modules/highlight.js/es/languages/go.es.js.map +1 -1
  440. package/dist/node_modules/highlight.js/es/languages/java.cjs +1 -1
  441. package/dist/node_modules/highlight.js/es/languages/java.cjs.map +1 -1
  442. package/dist/node_modules/highlight.js/es/languages/java.es.js +48 -39
  443. package/dist/node_modules/highlight.js/es/languages/java.es.js.map +1 -1
  444. package/dist/node_modules/highlight.js/es/languages/javascript.cjs +1 -1
  445. package/dist/node_modules/highlight.js/es/languages/javascript.cjs.map +1 -1
  446. package/dist/node_modules/highlight.js/es/languages/javascript.es.js +4 -2
  447. package/dist/node_modules/highlight.js/es/languages/javascript.es.js.map +1 -1
  448. package/dist/node_modules/highlight.js/es/languages/json.cjs +1 -1
  449. package/dist/node_modules/highlight.js/es/languages/json.cjs.map +1 -1
  450. package/dist/node_modules/highlight.js/es/languages/json.es.js +15 -9
  451. package/dist/node_modules/highlight.js/es/languages/json.es.js.map +1 -1
  452. package/dist/node_modules/highlight.js/es/languages/lua.cjs +1 -1
  453. package/dist/node_modules/highlight.js/es/languages/lua.cjs.map +1 -1
  454. package/dist/node_modules/highlight.js/es/languages/lua.es.js +1 -1
  455. package/dist/node_modules/highlight.js/es/languages/lua.es.js.map +1 -1
  456. package/dist/node_modules/highlight.js/es/languages/markdown.cjs +1 -1
  457. package/dist/node_modules/highlight.js/es/languages/markdown.cjs.map +1 -1
  458. package/dist/node_modules/highlight.js/es/languages/markdown.es.js +9 -10
  459. package/dist/node_modules/highlight.js/es/languages/markdown.es.js.map +1 -1
  460. package/dist/node_modules/highlight.js/es/languages/php.cjs +2 -2
  461. package/dist/node_modules/highlight.js/es/languages/php.cjs.map +1 -1
  462. package/dist/node_modules/highlight.js/es/languages/php.es.js +39 -33
  463. package/dist/node_modules/highlight.js/es/languages/php.es.js.map +1 -1
  464. package/dist/node_modules/highlight.js/es/languages/python.cjs +1 -1
  465. package/dist/node_modules/highlight.js/es/languages/python.cjs.map +1 -1
  466. package/dist/node_modules/highlight.js/es/languages/python.es.js +20 -15
  467. package/dist/node_modules/highlight.js/es/languages/python.es.js.map +1 -1
  468. package/dist/node_modules/highlight.js/es/languages/rust.cjs +1 -1
  469. package/dist/node_modules/highlight.js/es/languages/rust.cjs.map +1 -1
  470. package/dist/node_modules/highlight.js/es/languages/rust.es.js +40 -26
  471. package/dist/node_modules/highlight.js/es/languages/rust.es.js.map +1 -1
  472. package/dist/node_modules/highlight.js/es/languages/scss.cjs +1 -1
  473. package/dist/node_modules/highlight.js/es/languages/scss.cjs.map +1 -1
  474. package/dist/node_modules/highlight.js/es/languages/scss.es.js +36 -25
  475. package/dist/node_modules/highlight.js/es/languages/scss.es.js.map +1 -1
  476. package/dist/node_modules/highlight.js/es/languages/shell.cjs +1 -1
  477. package/dist/node_modules/highlight.js/es/languages/shell.cjs.map +1 -1
  478. package/dist/node_modules/highlight.js/es/languages/shell.es.js +1 -1
  479. package/dist/node_modules/highlight.js/es/languages/shell.es.js.map +1 -1
  480. package/dist/node_modules/highlight.js/es/languages/typescript.cjs +1 -1
  481. package/dist/node_modules/highlight.js/es/languages/typescript.cjs.map +1 -1
  482. package/dist/node_modules/highlight.js/es/languages/typescript.es.js +4 -2
  483. package/dist/node_modules/highlight.js/es/languages/typescript.es.js.map +1 -1
  484. package/dist/node_modules/highlight.js/es/languages/xml.cjs +1 -1
  485. package/dist/node_modules/highlight.js/es/languages/xml.cjs.map +1 -1
  486. package/dist/node_modules/highlight.js/es/languages/xml.es.js +9 -16
  487. package/dist/node_modules/highlight.js/es/languages/xml.es.js.map +1 -1
  488. package/dist/node_modules/inline-style-parser/cjs/index.cjs +3 -0
  489. package/dist/node_modules/inline-style-parser/cjs/index.cjs.map +1 -0
  490. package/dist/node_modules/inline-style-parser/{index.es.js → cjs/index.es.js} +24 -24
  491. package/dist/node_modules/inline-style-parser/cjs/index.es.js.map +1 -0
  492. package/dist/node_modules/layout-base/layout-base.es.js +1 -1
  493. package/dist/node_modules/lowlight/lib/common.cjs +1 -1
  494. package/dist/node_modules/lowlight/lib/common.cjs.map +1 -1
  495. package/dist/node_modules/lowlight/lib/common.es.js +37 -37
  496. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/core.cjs +1 -1
  497. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/core.es.js +1 -1
  498. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/arduino.cjs +2 -0
  499. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/arduino.cjs.map +1 -0
  500. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/arduino.es.js +10 -14
  501. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/arduino.es.js.map +1 -0
  502. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/bash.cjs +2 -0
  503. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/bash.cjs.map +1 -0
  504. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/bash.es.js +378 -0
  505. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/bash.es.js.map +1 -0
  506. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/c.cjs +2 -0
  507. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/c.cjs.map +1 -0
  508. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/c.es.js +278 -0
  509. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/c.es.js.map +1 -0
  510. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/cpp.cjs +2 -0
  511. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/cpp.cjs.map +1 -0
  512. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/cpp.es.js +518 -0
  513. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/cpp.es.js.map +1 -0
  514. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/csharp.cjs +2 -0
  515. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/csharp.cjs.map +1 -0
  516. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/csharp.es.js +1 -1
  517. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/csharp.es.js.map +1 -0
  518. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/css.cjs +2 -0
  519. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/css.cjs.map +1 -0
  520. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/css.es.js +930 -0
  521. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/css.es.js.map +1 -0
  522. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/diff.cjs +2 -0
  523. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/diff.cjs.map +1 -0
  524. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/diff.es.js +10 -3
  525. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/diff.es.js.map +1 -0
  526. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/go.cjs +2 -0
  527. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/go.cjs.map +1 -0
  528. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/go.es.js +152 -0
  529. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/go.es.js.map +1 -0
  530. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/graphql.cjs.map +1 -0
  531. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/graphql.es.js.map +1 -0
  532. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/ini.cjs.map +1 -0
  533. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/ini.es.js.map +1 -0
  534. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/java.cjs +2 -0
  535. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/java.cjs.map +1 -0
  536. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/java.es.js +241 -0
  537. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/java.es.js.map +1 -0
  538. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/javascript.cjs +2 -0
  539. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/javascript.cjs.map +1 -0
  540. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/javascript.es.js +660 -0
  541. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/javascript.es.js.map +1 -0
  542. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/json.cjs +2 -0
  543. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/json.cjs.map +1 -0
  544. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/json.es.js +45 -0
  545. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/json.es.js.map +1 -0
  546. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/kotlin.cjs.map +1 -0
  547. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/kotlin.es.js.map +1 -0
  548. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/less.cjs +2 -0
  549. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/less.cjs.map +1 -0
  550. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/less.es.js +10 -4
  551. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/less.es.js.map +1 -0
  552. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/lua.cjs +2 -0
  553. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/lua.cjs.map +1 -0
  554. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/lua.es.js +60 -0
  555. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/lua.es.js.map +1 -0
  556. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/makefile.cjs.map +1 -0
  557. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/makefile.es.js.map +1 -0
  558. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/markdown.cjs +2 -0
  559. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/markdown.cjs.map +1 -0
  560. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/markdown.es.js +217 -0
  561. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/markdown.es.js.map +1 -0
  562. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/objectivec.cjs.map +1 -0
  563. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/objectivec.es.js.map +1 -0
  564. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/perl.cjs.map +1 -0
  565. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/perl.es.js.map +1 -0
  566. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php-template.cjs.map +1 -0
  567. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php-template.es.js.map +1 -0
  568. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php.cjs +3 -0
  569. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php.cjs.map +1 -0
  570. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php.es.js +573 -0
  571. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php.es.js.map +1 -0
  572. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/plaintext.cjs +2 -0
  573. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/plaintext.cjs.map +1 -0
  574. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/plaintext.es.js +14 -0
  575. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/plaintext.es.js.map +1 -0
  576. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python-repl.cjs.map +1 -0
  577. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python-repl.es.js.map +1 -0
  578. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python.cjs +2 -0
  579. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python.cjs.map +1 -0
  580. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python.es.js +400 -0
  581. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python.es.js.map +1 -0
  582. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/r.cjs.map +1 -0
  583. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/r.es.js.map +1 -0
  584. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/ruby.cjs.map +1 -0
  585. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/ruby.es.js.map +1 -0
  586. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/rust.cjs +2 -0
  587. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/rust.cjs.map +1 -0
  588. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/rust.es.js +306 -0
  589. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/rust.es.js.map +1 -0
  590. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/scss.cjs +2 -0
  591. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/scss.cjs.map +1 -0
  592. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/scss.es.js +915 -0
  593. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/scss.es.js.map +1 -0
  594. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/shell.cjs +2 -0
  595. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/shell.cjs.map +1 -0
  596. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/shell.es.js +26 -0
  597. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/shell.es.js.map +1 -0
  598. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/sql.cjs +2 -0
  599. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/sql.cjs.map +1 -0
  600. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/sql.es.js +616 -0
  601. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/sql.es.js.map +1 -0
  602. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/swift.cjs.map +1 -0
  603. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/swift.es.js.map +1 -0
  604. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/typescript.cjs +2 -0
  605. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/typescript.cjs.map +1 -0
  606. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/typescript.es.js +755 -0
  607. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/typescript.es.js.map +1 -0
  608. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/vbnet.cjs.map +1 -0
  609. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/vbnet.es.js.map +1 -0
  610. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/wasm.cjs.map +1 -0
  611. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/wasm.es.js.map +1 -0
  612. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/xml.cjs +2 -0
  613. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/xml.cjs.map +1 -0
  614. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/xml.es.js +220 -0
  615. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/xml.es.js.map +1 -0
  616. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/yaml.cjs +2 -0
  617. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/yaml.cjs.map +1 -0
  618. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/yaml.es.js +184 -0
  619. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/yaml.es.js.map +1 -0
  620. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/lib/core.cjs +3 -3
  621. package/dist/node_modules/lowlight/node_modules/highlight.js/lib/core.cjs.map +1 -0
  622. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/lib/core.es.js +66 -66
  623. package/dist/node_modules/lowlight/node_modules/highlight.js/lib/core.es.js.map +1 -0
  624. package/dist/node_modules/lucide-react/dist/esm/Icon.es.js +3 -3
  625. package/dist/node_modules/mdast-util-find-and-replace/lib/index.cjs +1 -1
  626. package/dist/node_modules/mdast-util-find-and-replace/lib/index.cjs.map +1 -1
  627. package/dist/node_modules/mdast-util-find-and-replace/lib/index.es.js +58 -56
  628. package/dist/node_modules/mdast-util-find-and-replace/lib/index.es.js.map +1 -1
  629. package/dist/node_modules/mdast-util-from-markdown/lib/index.cjs +1 -1
  630. package/dist/node_modules/mdast-util-from-markdown/lib/index.cjs.map +1 -1
  631. package/dist/node_modules/mdast-util-from-markdown/lib/index.es.js +274 -223
  632. package/dist/node_modules/mdast-util-from-markdown/lib/index.es.js.map +1 -1
  633. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.cjs +1 -1
  634. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.cjs.map +1 -1
  635. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.es.js +21 -17
  636. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.es.js.map +1 -1
  637. package/dist/node_modules/mdast-util-to-hast/lib/footer.cjs.map +1 -1
  638. package/dist/node_modules/mdast-util-to-hast/lib/footer.es.js.map +1 -1
  639. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.cjs.map +1 -1
  640. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.es.js.map +1 -1
  641. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.cjs.map +1 -1
  642. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.es.js.map +1 -1
  643. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.cjs +2 -2
  644. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.cjs.map +1 -1
  645. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.es.js +7 -7
  646. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.es.js.map +1 -1
  647. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.cjs.map +1 -1
  648. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.es.js.map +1 -1
  649. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.cjs.map +1 -1
  650. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.es.js.map +1 -1
  651. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.cjs.map +1 -1
  652. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.es.js.map +1 -1
  653. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.cjs.map +1 -1
  654. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.es.js.map +1 -1
  655. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.cjs.map +1 -1
  656. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.es.js.map +1 -1
  657. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.cjs.map +1 -1
  658. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.es.js.map +1 -1
  659. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.cjs.map +1 -1
  660. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.es.js.map +1 -1
  661. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.cjs.map +1 -1
  662. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.es.js.map +1 -1
  663. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.cjs.map +1 -1
  664. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.es.js.map +1 -1
  665. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.cjs.map +1 -1
  666. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.es.js.map +1 -1
  667. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.cjs.map +1 -1
  668. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.es.js.map +1 -1
  669. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.cjs.map +1 -1
  670. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.es.js.map +1 -1
  671. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.cjs.map +1 -1
  672. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.es.js.map +1 -1
  673. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.cjs.map +1 -1
  674. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.es.js.map +1 -1
  675. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.cjs.map +1 -1
  676. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.es.js.map +1 -1
  677. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.cjs.map +1 -1
  678. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.es.js.map +1 -1
  679. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.cjs.map +1 -1
  680. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.es.js.map +1 -1
  681. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.cjs.map +1 -1
  682. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.es.js.map +1 -1
  683. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.cjs.map +1 -1
  684. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.es.js.map +1 -1
  685. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.cjs.map +1 -1
  686. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.es.js.map +1 -1
  687. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.cjs.map +1 -1
  688. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.es.js.map +1 -1
  689. package/dist/node_modules/mdast-util-to-hast/lib/index.cjs.map +1 -1
  690. package/dist/node_modules/mdast-util-to-hast/lib/index.es.js.map +1 -1
  691. package/dist/node_modules/mdast-util-to-hast/lib/revert.cjs.map +1 -1
  692. package/dist/node_modules/mdast-util-to-hast/lib/revert.es.js.map +1 -1
  693. package/dist/node_modules/mdast-util-to-hast/lib/state.cjs.map +1 -1
  694. package/dist/node_modules/mdast-util-to-hast/lib/state.es.js.map +1 -1
  695. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.cjs.map +1 -1
  696. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.es.js.map +1 -1
  697. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.cjs +3 -3
  698. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.cjs.map +1 -1
  699. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.es.js +9 -7
  700. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.es.js.map +1 -1
  701. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.cjs +2 -2
  702. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.cjs.map +1 -1
  703. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.es.js +6 -6
  704. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.es.js.map +1 -1
  705. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.cjs.map +1 -1
  706. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.es.js.map +1 -1
  707. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.cjs +1 -1
  708. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.cjs.map +1 -1
  709. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.es.js +17 -29
  710. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.es.js.map +1 -1
  711. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.cjs +5 -5
  712. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.cjs.map +1 -1
  713. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.es.js +12 -11
  714. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.es.js.map +1 -1
  715. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.cjs.map +1 -1
  716. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.es.js.map +1 -1
  717. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.cjs +1 -1
  718. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.cjs.map +1 -1
  719. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.es.js +14 -12
  720. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.es.js.map +1 -1
  721. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.cjs.map +1 -1
  722. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.es.js.map +1 -1
  723. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.cjs +1 -1
  724. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.cjs.map +1 -1
  725. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.es.js +6 -6
  726. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.es.js.map +1 -1
  727. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.cjs +1 -1
  728. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.cjs.map +1 -1
  729. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.es.js +15 -13
  730. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.es.js.map +1 -1
  731. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.cjs +2 -1
  732. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.cjs.map +1 -1
  733. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.es.js +42 -32
  734. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.es.js.map +1 -1
  735. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.cjs.map +1 -1
  736. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.es.js.map +1 -1
  737. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.cjs.map +1 -1
  738. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.es.js.map +1 -1
  739. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.cjs.map +1 -1
  740. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.es.js.map +1 -1
  741. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.cjs +1 -1
  742. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.cjs.map +1 -1
  743. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.es.js +8 -6
  744. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.es.js.map +1 -1
  745. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.cjs +1 -1
  746. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.cjs.map +1 -1
  747. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.es.js +17 -29
  748. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.es.js.map +1 -1
  749. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.cjs +1 -1
  750. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.cjs.map +1 -1
  751. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.es.js +8 -3
  752. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.es.js.map +1 -1
  753. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.cjs.map +1 -1
  754. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.es.js.map +1 -1
  755. package/dist/node_modules/mdast-util-to-markdown/lib/util/character.cjs +2 -0
  756. package/dist/node_modules/mdast-util-to-markdown/lib/util/character.cjs.map +1 -0
  757. package/dist/node_modules/mdast-util-to-markdown/lib/util/character.es.js +13 -0
  758. package/dist/node_modules/mdast-util-to-markdown/lib/util/character.es.js.map +1 -0
  759. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.cjs.map +1 -1
  760. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.es.js.map +1 -1
  761. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.cjs.map +1 -1
  762. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.es.js.map +1 -1
  763. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.cjs.map +1 -1
  764. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.es.js.map +1 -1
  765. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.cjs.map +1 -1
  766. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.es.js.map +1 -1
  767. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.cjs.map +1 -1
  768. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.es.js.map +1 -1
  769. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.cjs.map +1 -1
  770. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.es.js.map +1 -1
  771. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.cjs.map +1 -1
  772. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.es.js.map +1 -1
  773. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.cjs.map +1 -1
  774. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.es.js.map +1 -1
  775. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.cjs.map +1 -1
  776. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.es.js.map +1 -1
  777. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.cjs.map +1 -1
  778. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.es.js.map +1 -1
  779. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.cjs +4 -0
  780. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.cjs.map +1 -0
  781. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.es.js +263 -0
  782. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.es.js.map +1 -0
  783. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.cjs.map +1 -1
  784. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.es.js.map +1 -1
  785. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.cjs +1 -1
  786. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.cjs.map +1 -1
  787. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.es.js +2 -2
  788. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.es.js.map +1 -1
  789. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.cjs.map +1 -1
  790. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.es.js.map +1 -1
  791. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.cjs +1 -1
  792. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.cjs.map +1 -1
  793. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.es.js +2 -2
  794. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.es.js.map +1 -1
  795. package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.cjs +2 -0
  796. package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.cjs.map +1 -0
  797. package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.es.js +22 -0
  798. package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.es.js.map +1 -0
  799. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.cjs.map +1 -1
  800. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.es.js.map +1 -1
  801. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VBNYF7ZC.cjs +2 -2
  802. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VBNYF7ZC.es.js +4 -4
  803. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-5PPSVZJV.cjs +1 -1
  804. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-5PPSVZJV.es.js +1 -1
  805. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-2GRJ4B5K.cjs +1 -1
  806. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-2GRJ4B5K.es.js +1 -1
  807. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JQJVKLGR.cjs +2 -2
  808. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JQJVKLGR.es.js +4 -4
  809. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-NSK5VX7P.cjs +1 -1
  810. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-NSK5VX7P.es.js +1 -1
  811. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-WRU74C26.es.js +3 -3
  812. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-JCYQIIEL.cjs +1 -1
  813. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-JCYQIIEL.es.js +1 -1
  814. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-OCEON4UE.cjs +1 -1
  815. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-OCEON4UE.es.js +1 -1
  816. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-B4RE2ZJO.cjs +3 -3
  817. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-B4RE2ZJO.es.js +4 -4
  818. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-JOGREHBK.cjs +2 -2
  819. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-JOGREHBK.es.js +4 -4
  820. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-UKHOOZJN.cjs +1 -1
  821. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-UKHOOZJN.es.js +5 -4
  822. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-UKHOOZJN.es.js.map +1 -1
  823. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-PKOTCBZU.cjs +1 -1
  824. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-PKOTCBZU.es.js +2 -2
  825. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-FAOFIHXS.cjs +1 -1
  826. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-FAOFIHXS.cjs.map +1 -1
  827. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-FAOFIHXS.es.js +1 -1
  828. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-CIZ2JOQS.cjs +1 -1
  829. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-CIZ2JOQS.es.js +4 -4
  830. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-W5VNT64P.cjs +1 -1
  831. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-W5VNT64P.es.js +1 -1
  832. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-SI44F4Z6.cjs +1 -1
  833. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-SI44F4Z6.es.js +1 -1
  834. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-OKZ733FA.cjs +1 -1
  835. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-OKZ733FA.es.js +1 -1
  836. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-UEYNNEHI.cjs +1 -1
  837. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-UEYNNEHI.es.js +1 -1
  838. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-ULZ7WXOC.cjs +1 -1
  839. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-ULZ7WXOC.es.js +1 -1
  840. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-T6HMQDX7.cjs +1 -1
  841. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-T6HMQDX7.es.js +2 -2
  842. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-ELKLHX3M.es.js +4 -4
  843. package/dist/node_modules/mermaid/dist/mermaid.core.cjs +1 -1
  844. package/dist/node_modules/mermaid/dist/mermaid.core.es.js +1 -1
  845. package/dist/node_modules/micromark/lib/constructs.cjs +1 -1
  846. package/dist/node_modules/micromark/lib/constructs.es.js +13 -13
  847. package/dist/node_modules/micromark-factory-space/index.cjs +1 -1
  848. package/dist/node_modules/micromark-factory-space/index.cjs.map +1 -1
  849. package/dist/node_modules/micromark-factory-space/index.es.js +9 -9
  850. package/dist/node_modules/micromark-factory-space/index.es.js.map +1 -1
  851. package/dist/node_modules/parse5/dist/parser/index.es.js +1 -1
  852. package/dist/node_modules/parse5/dist/tokenizer/index.cjs +1 -1
  853. package/dist/node_modules/parse5/dist/tokenizer/index.cjs.map +1 -1
  854. package/dist/node_modules/parse5/dist/tokenizer/index.es.js +2 -2
  855. package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.cjs.map +1 -0
  856. package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.es.js.map +1 -0
  857. package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode.cjs.map +1 -0
  858. package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode.es.js.map +1 -0
  859. package/dist/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.cjs.map +1 -0
  860. package/dist/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.es.js.map +1 -0
  861. package/dist/node_modules/property-information/lib/html.cjs +1 -1
  862. package/dist/node_modules/property-information/lib/html.cjs.map +1 -1
  863. package/dist/node_modules/property-information/lib/html.es.js +16 -6
  864. package/dist/node_modules/property-information/lib/html.es.js.map +1 -1
  865. package/dist/node_modules/property-information/lib/svg.cjs +1 -1
  866. package/dist/node_modules/property-information/lib/svg.cjs.map +1 -1
  867. package/dist/node_modules/property-information/lib/svg.es.js +4 -2
  868. package/dist/node_modules/property-information/lib/svg.es.js.map +1 -1
  869. package/dist/node_modules/rc-input/es/BaseInput.cjs +1 -1
  870. package/dist/node_modules/rc-input/es/BaseInput.es.js +1 -1
  871. package/dist/node_modules/rc-textarea/es/ResizableTextArea.cjs +1 -1
  872. package/dist/node_modules/rc-textarea/es/ResizableTextArea.es.js +1 -1
  873. package/dist/node_modules/rc-textarea/es/TextArea.cjs +1 -1
  874. package/dist/node_modules/rc-textarea/es/TextArea.es.js +1 -1
  875. package/dist/node_modules/rc-textarea/es/index.cjs +1 -1
  876. package/dist/node_modules/rc-textarea/es/index.es.js +1 -1
  877. package/dist/node_modules/rc-util/es/ref.es.js +1 -1
  878. package/dist/node_modules/rc-util/node_modules/react-is/index.es.js +1 -1
  879. package/dist/node_modules/react-i18next/dist/es/useTranslation.cjs +1 -1
  880. package/dist/node_modules/react-i18next/dist/es/useTranslation.es.js +7 -7
  881. package/dist/node_modules/remark-flow/dist/index.es.js +1 -1
  882. package/dist/node_modules/remark-flow/dist/interaction-parser.cjs.map +1 -1
  883. package/dist/node_modules/remark-flow/dist/interaction-parser.es.js +2 -2
  884. package/dist/node_modules/remark-flow/dist/interaction-parser.es.js.map +1 -1
  885. package/dist/node_modules/remark-flow/dist/interaction-plugin-core.cjs +1 -1
  886. package/dist/node_modules/remark-flow/dist/interaction-plugin-core.es.js +1 -1
  887. package/dist/node_modules/style-mod/src/style-mod.cjs +3 -3
  888. package/dist/node_modules/style-mod/src/style-mod.cjs.map +1 -1
  889. package/dist/node_modules/style-mod/src/style-mod.es.js +37 -35
  890. package/dist/node_modules/style-mod/src/style-mod.es.js.map +1 -1
  891. package/dist/node_modules/style-to-object/cjs/index.cjs +1 -1
  892. package/dist/node_modules/style-to-object/cjs/index.cjs.map +1 -1
  893. package/dist/node_modules/style-to-object/cjs/index.es.js +15 -15
  894. package/dist/node_modules/style-to-object/cjs/index.es.js.map +1 -1
  895. package/dist/node_modules/stylis/src/Parser.cjs +1 -1
  896. package/dist/node_modules/stylis/src/Parser.cjs.map +1 -1
  897. package/dist/node_modules/stylis/src/Parser.es.js +63 -52
  898. package/dist/node_modules/stylis/src/Parser.es.js.map +1 -1
  899. package/dist/node_modules/stylis/src/Utility.cjs +1 -1
  900. package/dist/node_modules/stylis/src/Utility.cjs.map +1 -1
  901. package/dist/node_modules/stylis/src/Utility.es.js +20 -24
  902. package/dist/node_modules/stylis/src/Utility.es.js.map +1 -1
  903. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs +1 -1
  904. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs.map +1 -1
  905. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.es.js +828 -561
  906. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.es.js.map +1 -1
  907. package/dist/node_modules/ts-dedent/esm/index.cjs +5 -5
  908. package/dist/node_modules/ts-dedent/esm/index.cjs.map +1 -1
  909. package/dist/node_modules/ts-dedent/esm/index.es.js +20 -21
  910. package/dist/node_modules/ts-dedent/esm/index.es.js.map +1 -1
  911. package/dist/node_modules/unified/lib/index.es.js +1 -1
  912. package/dist/node_modules/unist-util-is/lib/index.cjs.map +1 -1
  913. package/dist/node_modules/unist-util-is/lib/index.es.js +8 -1
  914. package/dist/node_modules/unist-util-is/lib/index.es.js.map +1 -1
  915. package/dist/node_modules/unist-util-visit/lib/index.cjs +1 -1
  916. package/dist/node_modules/unist-util-visit/lib/index.cjs.map +1 -1
  917. package/dist/node_modules/unist-util-visit/lib/index.es.js +22 -12
  918. package/dist/node_modules/unist-util-visit/lib/index.es.js.map +1 -1
  919. package/dist/node_modules/unist-util-visit-parents/lib/color.cjs.map +1 -1
  920. package/dist/node_modules/unist-util-visit-parents/lib/color.es.js.map +1 -1
  921. package/dist/node_modules/unist-util-visit-parents/lib/index.cjs +1 -1
  922. package/dist/node_modules/unist-util-visit-parents/lib/index.cjs.map +1 -1
  923. package/dist/node_modules/unist-util-visit-parents/lib/index.es.js +72 -37
  924. package/dist/node_modules/unist-util-visit-parents/lib/index.es.js.map +1 -1
  925. package/dist/node_modules/uuid/dist/rng.cjs +2 -0
  926. package/dist/node_modules/uuid/dist/rng.cjs.map +1 -0
  927. package/dist/node_modules/uuid/dist/rng.es.js +8 -0
  928. package/dist/node_modules/uuid/dist/rng.es.js.map +1 -0
  929. package/dist/node_modules/uuid/dist/stringify.cjs.map +1 -0
  930. package/dist/node_modules/uuid/dist/stringify.es.js.map +1 -0
  931. package/dist/node_modules/uuid/dist/v4.cjs +2 -0
  932. package/dist/node_modules/uuid/dist/v4.cjs.map +1 -0
  933. package/dist/node_modules/uuid/dist/v4.es.js +16 -0
  934. package/dist/node_modules/uuid/dist/v4.es.js.map +1 -0
  935. package/dist/renderer.cjs +1 -1
  936. package/dist/renderer.es.js +3 -3
  937. package/dist/scroll.cjs +1 -1
  938. package/dist/scroll.es.js +2 -2
  939. package/package.json +18 -14
  940. package/dist/_virtual/advancedFormat.es2.js.map +0 -1
  941. package/dist/_virtual/cose-base.es2.js.map +0 -1
  942. package/dist/_virtual/customParseFormat.es2.js.map +0 -1
  943. package/dist/_virtual/cytoscape-cose-bilkent.es2.js +0 -5
  944. package/dist/_virtual/cytoscape-cose-bilkent.es2.js.map +0 -1
  945. package/dist/_virtual/cytoscape-fcose.es2.js.map +0 -1
  946. package/dist/_virtual/dayjs.min.es2.js.map +0 -1
  947. package/dist/_virtual/dayjs.min2.cjs.map +0 -1
  948. package/dist/_virtual/duration.es2.js.map +0 -1
  949. package/dist/_virtual/index.es10.js.map +0 -1
  950. package/dist/_virtual/index.es11.js.map +0 -1
  951. package/dist/_virtual/index.es12.js.map +0 -1
  952. package/dist/_virtual/index.es2.js.map +0 -1
  953. package/dist/_virtual/index.es3.js.map +0 -1
  954. package/dist/_virtual/index.es4.js.map +0 -1
  955. package/dist/_virtual/index.es5.js.map +0 -1
  956. package/dist/_virtual/index.es6.js.map +0 -1
  957. package/dist/_virtual/index.es7.js.map +0 -1
  958. package/dist/_virtual/index.es8.js.map +0 -1
  959. package/dist/_virtual/index.es9.js.map +0 -1
  960. package/dist/_virtual/isoWeek.es2.js.map +0 -1
  961. package/dist/_virtual/layout-base.es2.js.map +0 -1
  962. package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs +0 -2
  963. package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs.map +0 -1
  964. package/dist/node_modules/@radix-ui/react-arrow/dist/index.es.js +0 -25
  965. package/dist/node_modules/@radix-ui/react-arrow/dist/index.es.js.map +0 -1
  966. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.cjs.map +0 -1
  967. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.es.js.map +0 -1
  968. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +0 -2
  969. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +0 -1
  970. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +0 -34
  971. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +0 -1
  972. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.cjs.map +0 -1
  973. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.es.js.map +0 -1
  974. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +0 -2
  975. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +0 -1
  976. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +0 -1
  977. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.cjs +0 -2
  978. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.cjs.map +0 -1
  979. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.es.js +0 -15
  980. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.es.js.map +0 -1
  981. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.cjs +0 -2
  982. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.cjs.map +0 -1
  983. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.es.js.map +0 -1
  984. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.cjs +0 -2
  985. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.cjs.map +0 -1
  986. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.es.js +0 -104
  987. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.es.js.map +0 -1
  988. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.cjs +0 -2
  989. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +0 -1
  990. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +0 -1
  991. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +0 -2
  992. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +0 -1
  993. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +0 -13
  994. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +0 -1
  995. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +0 -2
  996. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.map +0 -1
  997. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js.map +0 -1
  998. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-effect-event/dist/index.cjs.map +0 -1
  999. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-effect-event/dist/index.es.js.map +0 -1
  1000. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +0 -2
  1001. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.map +0 -1
  1002. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js +0 -7
  1003. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js.map +0 -1
  1004. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +0 -2
  1005. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +0 -1
  1006. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +0 -34
  1007. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +0 -1
  1008. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.cjs +0 -2
  1009. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +0 -1
  1010. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +0 -1
  1011. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +0 -2
  1012. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +0 -1
  1013. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +0 -13
  1014. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +0 -1
  1015. package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs +0 -2
  1016. package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs.map +0 -1
  1017. package/dist/node_modules/@radix-ui/react-popper/dist/index.es.js +0 -220
  1018. package/dist/node_modules/@radix-ui/react-popper/dist/index.es.js.map +0 -1
  1019. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.cjs +0 -2
  1020. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.cjs.map +0 -1
  1021. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.es.js +0 -50
  1022. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.es.js.map +0 -1
  1023. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +0 -2
  1024. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +0 -1
  1025. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +0 -34
  1026. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +0 -1
  1027. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs +0 -2
  1028. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs.map +0 -1
  1029. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.es.js +0 -15
  1030. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.es.js.map +0 -1
  1031. package/dist/node_modules/entities/dist/esm/decode-codepoint.cjs.map +0 -1
  1032. package/dist/node_modules/entities/dist/esm/decode-codepoint.es.js.map +0 -1
  1033. package/dist/node_modules/entities/dist/esm/decode.cjs.map +0 -1
  1034. package/dist/node_modules/entities/dist/esm/decode.es.js.map +0 -1
  1035. package/dist/node_modules/entities/dist/esm/generated/decode-data-html.cjs.map +0 -1
  1036. package/dist/node_modules/entities/dist/esm/generated/decode-data-html.es.js.map +0 -1
  1037. package/dist/node_modules/hast-util-is-element/lib/index.cjs +0 -2
  1038. package/dist/node_modules/hast-util-is-element/lib/index.cjs.map +0 -1
  1039. package/dist/node_modules/hast-util-is-element/lib/index.es.js +0 -66
  1040. package/dist/node_modules/hast-util-is-element/lib/index.es.js.map +0 -1
  1041. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.cjs +0 -2
  1042. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.cjs.map +0 -1
  1043. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.es.js +0 -13
  1044. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.es.js.map +0 -1
  1045. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.cjs +0 -2
  1046. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.cjs.map +0 -1
  1047. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.es.js +0 -62
  1048. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.es.js.map +0 -1
  1049. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.cjs +0 -2
  1050. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.cjs.map +0 -1
  1051. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.es.js +0 -34
  1052. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.es.js.map +0 -1
  1053. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.cjs +0 -2
  1054. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.cjs.map +0 -1
  1055. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.es.js +0 -369
  1056. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.es.js.map +0 -1
  1057. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.cjs +0 -2
  1058. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.cjs.map +0 -1
  1059. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.es.js +0 -7
  1060. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.es.js.map +0 -1
  1061. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.cjs +0 -2
  1062. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.cjs.map +0 -1
  1063. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.es.js +0 -567
  1064. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.es.js.map +0 -1
  1065. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.cjs +0 -2
  1066. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.cjs.map +0 -1
  1067. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.es.js +0 -8
  1068. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.es.js.map +0 -1
  1069. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.cjs +0 -2
  1070. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.cjs.map +0 -1
  1071. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.es.js +0 -7
  1072. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.es.js.map +0 -1
  1073. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.cjs +0 -2
  1074. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.cjs.map +0 -1
  1075. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.es.js +0 -23
  1076. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.es.js.map +0 -1
  1077. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.cjs +0 -2
  1078. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.cjs.map +0 -1
  1079. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.es.js +0 -28
  1080. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.es.js.map +0 -1
  1081. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.cjs +0 -2
  1082. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.cjs.map +0 -1
  1083. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.es.js +0 -24
  1084. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.es.js.map +0 -1
  1085. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.cjs +0 -2
  1086. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.cjs.map +0 -1
  1087. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.es.js +0 -12
  1088. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.es.js.map +0 -1
  1089. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.cjs +0 -2
  1090. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.cjs.map +0 -1
  1091. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.es.js +0 -18
  1092. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.es.js.map +0 -1
  1093. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.cjs +0 -2
  1094. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.cjs.map +0 -1
  1095. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.es.js +0 -15
  1096. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.es.js.map +0 -1
  1097. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.cjs +0 -2
  1098. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.cjs.map +0 -1
  1099. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.es.js +0 -20
  1100. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.es.js.map +0 -1
  1101. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.cjs +0 -2
  1102. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.cjs.map +0 -1
  1103. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.es.js +0 -12
  1104. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.es.js.map +0 -1
  1105. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.cjs +0 -2
  1106. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.cjs.map +0 -1
  1107. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.es.js +0 -12
  1108. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.es.js.map +0 -1
  1109. package/dist/node_modules/highlight.js/es/languages/arduino.cjs +0 -2
  1110. package/dist/node_modules/highlight.js/es/languages/arduino.cjs.map +0 -1
  1111. package/dist/node_modules/highlight.js/es/languages/arduino.es.js.map +0 -1
  1112. package/dist/node_modules/highlight.js/es/languages/csharp.cjs +0 -2
  1113. package/dist/node_modules/highlight.js/es/languages/csharp.cjs.map +0 -1
  1114. package/dist/node_modules/highlight.js/es/languages/csharp.es.js.map +0 -1
  1115. package/dist/node_modules/highlight.js/es/languages/diff.cjs +0 -2
  1116. package/dist/node_modules/highlight.js/es/languages/diff.cjs.map +0 -1
  1117. package/dist/node_modules/highlight.js/es/languages/diff.es.js.map +0 -1
  1118. package/dist/node_modules/highlight.js/es/languages/graphql.cjs.map +0 -1
  1119. package/dist/node_modules/highlight.js/es/languages/graphql.es.js.map +0 -1
  1120. package/dist/node_modules/highlight.js/es/languages/ini.cjs.map +0 -1
  1121. package/dist/node_modules/highlight.js/es/languages/ini.es.js.map +0 -1
  1122. package/dist/node_modules/highlight.js/es/languages/kotlin.cjs.map +0 -1
  1123. package/dist/node_modules/highlight.js/es/languages/kotlin.es.js.map +0 -1
  1124. package/dist/node_modules/highlight.js/es/languages/less.cjs +0 -2
  1125. package/dist/node_modules/highlight.js/es/languages/less.cjs.map +0 -1
  1126. package/dist/node_modules/highlight.js/es/languages/less.es.js.map +0 -1
  1127. package/dist/node_modules/highlight.js/es/languages/makefile.cjs.map +0 -1
  1128. package/dist/node_modules/highlight.js/es/languages/makefile.es.js.map +0 -1
  1129. package/dist/node_modules/highlight.js/es/languages/objectivec.cjs.map +0 -1
  1130. package/dist/node_modules/highlight.js/es/languages/objectivec.es.js.map +0 -1
  1131. package/dist/node_modules/highlight.js/es/languages/perl.cjs.map +0 -1
  1132. package/dist/node_modules/highlight.js/es/languages/perl.es.js.map +0 -1
  1133. package/dist/node_modules/highlight.js/es/languages/php-template.cjs.map +0 -1
  1134. package/dist/node_modules/highlight.js/es/languages/php-template.es.js.map +0 -1
  1135. package/dist/node_modules/highlight.js/es/languages/python-repl.cjs.map +0 -1
  1136. package/dist/node_modules/highlight.js/es/languages/python-repl.es.js.map +0 -1
  1137. package/dist/node_modules/highlight.js/es/languages/r.cjs.map +0 -1
  1138. package/dist/node_modules/highlight.js/es/languages/r.es.js.map +0 -1
  1139. package/dist/node_modules/highlight.js/es/languages/ruby.cjs.map +0 -1
  1140. package/dist/node_modules/highlight.js/es/languages/ruby.es.js.map +0 -1
  1141. package/dist/node_modules/highlight.js/es/languages/swift.cjs.map +0 -1
  1142. package/dist/node_modules/highlight.js/es/languages/swift.es.js.map +0 -1
  1143. package/dist/node_modules/highlight.js/es/languages/vbnet.cjs.map +0 -1
  1144. package/dist/node_modules/highlight.js/es/languages/vbnet.es.js.map +0 -1
  1145. package/dist/node_modules/highlight.js/es/languages/wasm.cjs.map +0 -1
  1146. package/dist/node_modules/highlight.js/es/languages/wasm.es.js.map +0 -1
  1147. package/dist/node_modules/highlight.js/lib/core.cjs.map +0 -1
  1148. package/dist/node_modules/highlight.js/lib/core.es.js.map +0 -1
  1149. package/dist/node_modules/inline-style-parser/index.cjs +0 -3
  1150. package/dist/node_modules/inline-style-parser/index.cjs.map +0 -1
  1151. package/dist/node_modules/inline-style-parser/index.es.js.map +0 -1
  1152. package/dist/node_modules/unist-util-find-after/lib/index.cjs +0 -2
  1153. package/dist/node_modules/unist-util-find-after/lib/index.cjs.map +0 -1
  1154. package/dist/node_modules/unist-util-find-after/lib/index.es.js +0 -33
  1155. package/dist/node_modules/unist-util-find-after/lib/index.es.js.map +0 -1
  1156. package/dist/node_modules/uuid/dist/esm-browser/native.cjs +0 -2
  1157. package/dist/node_modules/uuid/dist/esm-browser/native.cjs.map +0 -1
  1158. package/dist/node_modules/uuid/dist/esm-browser/native.es.js +0 -5
  1159. package/dist/node_modules/uuid/dist/esm-browser/native.es.js.map +0 -1
  1160. package/dist/node_modules/uuid/dist/esm-browser/rng.cjs +0 -2
  1161. package/dist/node_modules/uuid/dist/esm-browser/rng.cjs.map +0 -1
  1162. package/dist/node_modules/uuid/dist/esm-browser/rng.es.js +0 -14
  1163. package/dist/node_modules/uuid/dist/esm-browser/rng.es.js.map +0 -1
  1164. package/dist/node_modules/uuid/dist/esm-browser/stringify.cjs.map +0 -1
  1165. package/dist/node_modules/uuid/dist/esm-browser/stringify.es.js.map +0 -1
  1166. package/dist/node_modules/uuid/dist/esm-browser/v4.cjs +0 -2
  1167. package/dist/node_modules/uuid/dist/esm-browser/v4.cjs.map +0 -1
  1168. package/dist/node_modules/uuid/dist/esm-browser/v4.es.js +0 -16
  1169. package/dist/node_modules/uuid/dist/esm-browser/v4.es.js.map +0 -1
  1170. /package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/primitive/dist/index.cjs +0 -0
  1171. /package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/primitive/dist/index.es.js +0 -0
  1172. /package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/react-context/dist/index.cjs +0 -0
  1173. /package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/react-context/dist/index.es.js +0 -0
  1174. /package/dist/node_modules/@radix-ui/{react-dialog/node_modules/@radix-ui/react-use-effect-event → react-use-effect-event}/dist/index.cjs +0 -0
  1175. /package/dist/node_modules/@radix-ui/{react-dialog/node_modules/@radix-ui/react-use-effect-event → react-use-effect-event}/dist/index.es.js +0 -0
  1176. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/core.cjs.map +0 -0
  1177. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/core.es.js.map +0 -0
  1178. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/graphql.cjs +0 -0
  1179. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/graphql.es.js +0 -0
  1180. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/ini.cjs +0 -0
  1181. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/ini.es.js +0 -0
  1182. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/kotlin.cjs +0 -0
  1183. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/kotlin.es.js +0 -0
  1184. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/makefile.cjs +0 -0
  1185. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/makefile.es.js +0 -0
  1186. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/objectivec.cjs +0 -0
  1187. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/objectivec.es.js +0 -0
  1188. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/perl.cjs +0 -0
  1189. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/perl.es.js +0 -0
  1190. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/php-template.cjs +0 -0
  1191. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/php-template.es.js +0 -0
  1192. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/python-repl.cjs +0 -0
  1193. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/python-repl.es.js +0 -0
  1194. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/r.cjs +0 -0
  1195. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/r.es.js +0 -0
  1196. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/ruby.cjs +0 -0
  1197. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/ruby.es.js +0 -0
  1198. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/swift.cjs +0 -0
  1199. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/swift.es.js +0 -0
  1200. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/vbnet.cjs +0 -0
  1201. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/vbnet.es.js +0 -0
  1202. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/wasm.cjs +0 -0
  1203. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/wasm.es.js +0 -0
  1204. /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/decode-codepoint.cjs +0 -0
  1205. /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/decode-codepoint.es.js +0 -0
  1206. /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/decode.cjs +0 -0
  1207. /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/decode.es.js +0 -0
  1208. /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/generated/decode-data-html.cjs +0 -0
  1209. /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/generated/decode-data-html.es.js +0 -0
  1210. /package/dist/node_modules/uuid/dist/{esm-browser/stringify.cjs → stringify.cjs} +0 -0
  1211. /package/dist/node_modules/uuid/dist/{esm-browser/stringify.es.js → stringify.es.js} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"MarkdownFlowInput.es.js","sources":["../../../src/components/ContentRender/MarkdownFlowInput.tsx"],"sourcesContent":["import React from \"react\";\n\nimport sendIconDisable from \"@/assets/icons/send_disable.svg\";\nimport sendIconEnable from \"@/assets/icons/send_enable.svg\";\n\nimport {\n InputGroup,\n InputGroupButton,\n InputGroupTextarea,\n} from \"../ui/inputGroup/input-group\";\nimport {\n getMarkdownFlowDirection,\n getMarkdownFlowLanguage,\n type MarkdownFlowLocale,\n} from \"../../lib/locale\";\nimport { getContentRenderLocaleTexts } from \"./contentRenderI18n\";\n\ntype MarkdownFlowInputSendShortcut = \"enter\" | \"none\";\n\ninterface MarkdownFlowInputProps {\n /** Overrides locale-derived input direction. */\n dir?: React.HTMLAttributes<HTMLDivElement>[\"dir\"];\n disabled?: boolean;\n locale?: MarkdownFlowLocale;\n /** Overrides the locale-derived language. */\n lang?: string;\n placeholder?: string;\n sendButtonLabel?: string;\n value?: string;\n title?: string;\n onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;\n onSend?: () => void;\n /**\n * Keyboard policy for sending a multi-line input. `enter` sends on Enter\n * while Shift+Enter keeps its native newline behavior. `none` leaves Enter\n * untouched, which lets mobile consumers reserve the keyboard return key\n * for newlines.\n */\n sendShortcut?: MarkdownFlowInputSendShortcut;\n className?: string;\n textareaClassName?: string;\n}\n\nconst resolveAssetSrc = (asset: string | { src: string }) =>\n typeof asset === \"string\" ? asset : asset.src;\n\nconst MarkdownFlowInput: React.FC<MarkdownFlowInputProps> = ({\n disabled,\n locale,\n lang,\n dir,\n placeholder,\n sendButtonLabel,\n value,\n title,\n onChange,\n onSend,\n sendShortcut = \"enter\",\n className,\n textareaClassName,\n}) => {\n const localeTexts = getContentRenderLocaleTexts(locale);\n const resolvedSendButtonLabel =\n sendButtonLabel || localeTexts.sendButtonLabel;\n const isSendDisabled = disabled || !value?.trim();\n const handleKeyDown = (e: React.KeyboardEvent<HTMLTextAreaElement>) => {\n if (sendShortcut !== \"enter\" || !onSend) {\n return;\n }\n if (e.nativeEvent.isComposing || e.keyCode === 229) {\n return;\n }\n if (e.key === \"Enter\" && !e.shiftKey) {\n e.preventDefault();\n if (!isSendDisabled) {\n onSend();\n }\n }\n };\n\n return (\n <InputGroup\n dir={dir ?? getMarkdownFlowDirection(locale)}\n lang={lang ?? getMarkdownFlowLanguage(locale)}\n data-disabled={disabled}\n className={`input-container h-auto items-end bg-white border-[#e5e5e5] shadow-[0_1px_2px_rgba(0,0,0,0.05)] ${className || \"\"}`}\n >\n <InputGroupTextarea\n disabled={disabled}\n placeholder={placeholder}\n value={value}\n onChange={onChange}\n onKeyDown={handleKeyDown}\n className={`text-[16px] leading-5 font-normal text-[#0A0A0A] placeholder:text-[rgba(99,114,128,1)] bg-transparent border-0 shadow-none ps-3 pe-0 py-1.5 min-h-[32px] ${textareaClassName || \"\"}`}\n title={title}\n />\n <InputGroupButton\n type=\"button\"\n variant=\"ghost\"\n size=\"icon-sm\"\n onClick={onSend}\n disabled={isSendDisabled}\n aria-label={resolvedSendButtonLabel}\n style={{\n margin: \"0px 7px 4px 7px\",\n cursor: isSendDisabled ? \"not-allowed\" : \"pointer\",\n }}\n className=\"size-6 group self-end mb-[2px]\"\n >\n <img\n src={resolveAssetSrc(\n isSendDisabled ? sendIconDisable : sendIconEnable\n )}\n alt={resolvedSendButtonLabel}\n className=\"size-6\"\n />\n </InputGroupButton>\n </InputGroup>\n );\n};\n\nexport type { MarkdownFlowInputProps, MarkdownFlowInputSendShortcut };\nexport default MarkdownFlowInput;\n"],"names":["resolveAssetSrc","asset","MarkdownFlowInput","disabled","locale","lang","dir","placeholder","sendButtonLabel","value","title","onChange","onSend","sendShortcut","className","textareaClassName","localeTexts","getContentRenderLocaleTexts","resolvedSendButtonLabel","isSendDisabled","handleKeyDown","e","jsxs","InputGroup","getMarkdownFlowDirection","getMarkdownFlowLanguage","jsx","InputGroupTextarea","InputGroupButton","sendIconDisable","sendIconEnable"],"mappings":";;;;;;AA2CA,MAAMA,IAAkB,CAACC,MACvB,OAAOA,KAAU,WAAWA,IAAQA,EAAM,KAEtCC,IAAsD,CAAC;AAAA,EAC3D,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,MAAAC;AAAA,EACA,KAAAC;AAAA,EACA,aAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,OAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,cAAAC,IAAe;AAAA,EACf,WAAAC;AAAA,EACA,mBAAAC;AACF,MAAM;AACJ,QAAMC,IAAcC,EAA4Bb,CAAM,GAChDc,IACJV,KAAmBQ,EAAY,iBAC3BG,IAAiBhB,KAAY,CAACM,GAAO,KAAA,GACrCW,IAAgB,CAACC,MAAgD;AACrE,IAAIR,MAAiB,WAAW,CAACD,KAG7BS,EAAE,YAAY,eAAeA,EAAE,YAAY,OAG3CA,EAAE,QAAQ,WAAW,CAACA,EAAE,aAC1BA,EAAE,eAAA,GACGF,KACHP,EAAA;AAAA,EAGN;AAEA,SACE,gBAAAU;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAKjB,KAAOkB,EAAyBpB,CAAM;AAAA,MAC3C,MAAMC,KAAQoB,EAAwBrB,CAAM;AAAA,MAC5C,iBAAeD;AAAA,MACf,WAAW,kGAAkGW,KAAa,EAAE;AAAA,MAE5H,UAAA;AAAA,QAAA,gBAAAY;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,UAAAxB;AAAA,YACA,aAAAI;AAAA,YACA,OAAAE;AAAA,YACA,UAAAE;AAAA,YACA,WAAWS;AAAA,YACX,WAAW,4JAA4JL,KAAqB,EAAE;AAAA,YAC9L,OAAAL;AAAA,UAAA;AAAA,QAAA;AAAA,QAEF,gBAAAgB;AAAA,UAACE;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,SAAQ;AAAA,YACR,MAAK;AAAA,YACL,SAAShB;AAAA,YACT,UAAUO;AAAA,YACV,cAAYD;AAAA,YACZ,OAAO;AAAA,cACL,QAAQ;AAAA,cACR,QAAQC,IAAiB,gBAAgB;AAAA,YAAA;AAAA,YAE3C,WAAU;AAAA,YAEV,UAAA,gBAAAO;AAAA,cAAC;AAAA,cAAA;AAAA,gBACC,KAAK1B;AAAA,kBACHmB,IAAiBU,IAAkBC;AAAA,gBAAA;AAAA,gBAErC,KAAKZ;AAAA,gBACL,WAAU;AAAA,cAAA;AAAA,YAAA;AAAA,UACZ;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"MarkdownFlowInput.es.js","sources":["../../../src/components/ContentRender/MarkdownFlowInput.tsx"],"sourcesContent":["import React from \"react\";\n\nimport sendIconDisable from \"@/assets/icons/send_disable.svg\";\nimport sendIconEnable from \"@/assets/icons/send_enable.svg\";\n\nimport {\n InputGroup,\n InputGroupButton,\n InputGroupTextarea,\n} from \"../ui/inputGroup/input-group\";\nimport {\n getMarkdownFlowDirection,\n getMarkdownFlowLanguage,\n type MarkdownFlowLocale,\n} from \"../../lib/locale\";\nimport { getContentRenderLocaleTexts } from \"./contentRenderI18n\";\nimport { acceptPlaceholder } from \"./utils/accept-placeholder\";\n\ntype MarkdownFlowInputSendShortcut = \"enter\" | \"none\";\n\ninterface MarkdownFlowInputProps {\n /** Overrides locale-derived input direction. */\n dir?: React.HTMLAttributes<HTMLDivElement>[\"dir\"];\n disabled?: boolean;\n locale?: MarkdownFlowLocale;\n /** Overrides the locale-derived language. */\n lang?: string;\n placeholder?: string;\n sendButtonLabel?: string;\n value?: string;\n title?: string;\n onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;\n onSend?: () => void;\n /** Enables Tab completion of an empty input; the host must update its value. */\n onAcceptPlaceholder?: (value: string) => void;\n /**\n * Keyboard policy for sending a multi-line input. `enter` sends on Enter\n * while Shift+Enter keeps its native newline behavior. `none` leaves Enter\n * untouched, which lets mobile consumers reserve the keyboard return key\n * for newlines.\n */\n sendShortcut?: MarkdownFlowInputSendShortcut;\n className?: string;\n textareaClassName?: string;\n}\n\nconst resolveAssetSrc = (asset: string | { src: string }) =>\n typeof asset === \"string\" ? asset : asset.src;\n\nconst MarkdownFlowInput: React.FC<MarkdownFlowInputProps> = ({\n disabled,\n locale,\n lang,\n dir,\n placeholder,\n sendButtonLabel,\n value,\n title,\n onChange,\n onSend,\n onAcceptPlaceholder,\n sendShortcut = \"enter\",\n className,\n textareaClassName,\n}) => {\n const localeTexts = getContentRenderLocaleTexts(locale);\n const resolvedSendButtonLabel =\n sendButtonLabel || localeTexts.sendButtonLabel;\n const isSendDisabled = disabled || !value?.trim();\n const handleKeyDown = (e: React.KeyboardEvent<HTMLTextAreaElement>) => {\n if (acceptPlaceholder(e, placeholder, disabled, onAcceptPlaceholder)) {\n return;\n }\n if (sendShortcut !== \"enter\" || !onSend) {\n return;\n }\n if (e.nativeEvent.isComposing || e.keyCode === 229) {\n return;\n }\n if (e.key === \"Enter\" && !e.shiftKey) {\n e.preventDefault();\n if (!isSendDisabled) {\n onSend();\n }\n }\n };\n\n return (\n <InputGroup\n dir={dir ?? getMarkdownFlowDirection(locale)}\n lang={lang ?? getMarkdownFlowLanguage(locale)}\n data-disabled={disabled}\n className={`input-container h-auto items-end bg-white border-[#e5e5e5] shadow-[0_1px_2px_rgba(0,0,0,0.05)] ${className || \"\"}`}\n >\n <InputGroupTextarea\n disabled={disabled}\n placeholder={placeholder}\n value={value}\n onChange={onChange}\n onKeyDown={handleKeyDown}\n className={`text-[16px] leading-5 font-normal text-[#0A0A0A] placeholder:text-[rgba(99,114,128,1)] bg-transparent border-0 shadow-none ps-3 pe-0 py-1.5 min-h-[32px] ${textareaClassName || \"\"}`}\n title={title}\n />\n <InputGroupButton\n type=\"button\"\n variant=\"ghost\"\n size=\"icon-sm\"\n onClick={onSend}\n disabled={isSendDisabled}\n aria-label={resolvedSendButtonLabel}\n style={{\n margin: \"0px 7px 4px 7px\",\n cursor: isSendDisabled ? \"not-allowed\" : \"pointer\",\n }}\n className=\"size-6 group self-end mb-[2px]\"\n >\n <img\n src={resolveAssetSrc(\n isSendDisabled ? sendIconDisable : sendIconEnable\n )}\n alt={resolvedSendButtonLabel}\n className=\"size-6\"\n />\n </InputGroupButton>\n </InputGroup>\n );\n};\n\nexport type { MarkdownFlowInputProps, MarkdownFlowInputSendShortcut };\nexport default MarkdownFlowInput;\n"],"names":["resolveAssetSrc","asset","MarkdownFlowInput","disabled","locale","lang","dir","placeholder","sendButtonLabel","value","title","onChange","onSend","onAcceptPlaceholder","sendShortcut","className","textareaClassName","localeTexts","getContentRenderLocaleTexts","resolvedSendButtonLabel","isSendDisabled","handleKeyDown","e","acceptPlaceholder","jsxs","InputGroup","getMarkdownFlowDirection","getMarkdownFlowLanguage","jsx","InputGroupTextarea","InputGroupButton","sendIconDisable","sendIconEnable"],"mappings":";;;;;;;AA8CA,MAAMA,IAAkB,CAACC,MACvB,OAAOA,KAAU,WAAWA,IAAQA,EAAM,KAEtCC,IAAsD,CAAC;AAAA,EAC3D,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,MAAAC;AAAA,EACA,KAAAC;AAAA,EACA,aAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,OAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,cAAAC,IAAe;AAAA,EACf,WAAAC;AAAA,EACA,mBAAAC;AACF,MAAM;AACJ,QAAMC,IAAcC,EAA4Bd,CAAM,GAChDe,IACJX,KAAmBS,EAAY,iBAC3BG,IAAiBjB,KAAY,CAACM,GAAO,KAAA,GACrCY,IAAgB,CAACC,MAAgD;AACrE,IAAIC,EAAkBD,GAAGf,GAAaJ,GAAUU,CAAmB,KAG/DC,MAAiB,WAAW,CAACF,KAG7BU,EAAE,YAAY,eAAeA,EAAE,YAAY,OAG3CA,EAAE,QAAQ,WAAW,CAACA,EAAE,aAC1BA,EAAE,eAAA,GACGF,KACHR,EAAA;AAAA,EAGN;AAEA,SACE,gBAAAY;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAKnB,KAAOoB,EAAyBtB,CAAM;AAAA,MAC3C,MAAMC,KAAQsB,EAAwBvB,CAAM;AAAA,MAC5C,iBAAeD;AAAA,MACf,WAAW,kGAAkGY,KAAa,EAAE;AAAA,MAE5H,UAAA;AAAA,QAAA,gBAAAa;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,UAAA1B;AAAA,YACA,aAAAI;AAAA,YACA,OAAAE;AAAA,YACA,UAAAE;AAAA,YACA,WAAWU;AAAA,YACX,WAAW,4JAA4JL,KAAqB,EAAE;AAAA,YAC9L,OAAAN;AAAA,UAAA;AAAA,QAAA;AAAA,QAEF,gBAAAkB;AAAA,UAACE;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,SAAQ;AAAA,YACR,MAAK;AAAA,YACL,SAASlB;AAAA,YACT,UAAUQ;AAAA,YACV,cAAYD;AAAA,YACZ,OAAO;AAAA,cACL,QAAQ;AAAA,cACR,QAAQC,IAAiB,gBAAgB;AAAA,YAAA;AAAA,YAE3C,WAAU;AAAA,YAEV,UAAA,gBAAAQ;AAAA,cAAC;AAAA,cAAA;AAAA,gBACC,KAAK5B;AAAA,kBACHoB,IAAiBW,IAAkBC;AAAA,gBAAA;AAAA,gBAErC,KAAKb;AAAA,gBACL,WAAU;AAAA,cAAA;AAAA,YAAA;AAAA,UACZ;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA;AAGN;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),v=require("react"),_=require("../../../_virtual/index.cjs"),J=require("../../ui/button.cjs"),P=require("../../ui/checkbox.cjs"),E=require("../MarkdownFlowInput.cjs"),D=require("../../ui/inputGroup/input-group.cjs"),K=require("../../../lib/utils.cjs"),U=require("../contentRenderI18n.cjs"),A=({node:c,readonly:i,selectedValues:e,inputValue:r,confirmButtonText:a,handleCheckboxChange:n,handleInputChange:m,handleKeyDown:x,handleConfirmClick:b})=>{const h=c.properties?.placeholder,u=i||e.length===0&&!r?.trim(),f=p=>s.jsx("span",{className:K.cn("multi-select-confirm-wrapper flex flex-col items-center",u?"opacity-50 cursor-not-allowed":"cursor-pointer",p),children:s.jsx("button",{type:"button",className:"multi-select-confirm-button text-sm font-medium text-primary",disabled:u,onClick:b,children:a})});return s.jsxs("span",{className:"multi-select-container flex w-full flex-col",children:[s.jsx("span",{className:"flex flex-wrap gap-y-[9px] gap-x-6",children:c.properties?.buttonTexts?.map((p,l)=>{const N=c.properties?.buttonValues?.[l],d=N!==void 0?N:p;return s.jsx(P.Checkbox,{label:p,disabled:i,checked:e.includes(d),onCheckedChange:C=>n(d,C),className:"text-sm"},l)})}),h?s.jsx("span",{className:"block mb-1 w-full max-w-[500px]",children:s.jsxs("span",{className:"multi-select-input-row flex w-full items-end gap-3",children:[s.jsx(D.InputGroup,{"data-disabled":i,className:"flex-1",children:s.jsx(D.InputGroupTextarea,{disabled:i,placeholder:h,value:r,onChange:m,onKeyDown:x,className:"text-sm px-3",title:h})}),f("shrink-0")]})}):f("self-start multi-select-confirm-wrapper--stacked")]})},H=({dir:c,lang:i,node:e,readonly:r,locale:a,resolvedDefaultButtonText:n,handleButtonClick:m,inputValue:x,handleInputChange:b,handleSendClick:h})=>s.jsxs("span",{className:"single-select-container inline-flex w-full flex-col",children:[s.jsx("span",{className:"flex flex-wrap gap-y-[9px] gap-x-2",children:e.properties?.buttonTexts?.map((u,f)=>{const p=e.properties?.buttonValues?.[f],l=p!==void 0?p:u;return s.jsx(J.Button,{disabled:r,variant:"outline",type:"button",size:"sm",onClick:()=>m(l),className:K.cn("max-w-full shrink whitespace-normal break-words text-start leading-5 h-auto min-h-8 px-3 py-1.5","hover:bg-gray-200",n===u&&"select"),children:u},f)})}),e.properties?.placeholder&&s.jsx("span",{className:"mt-[9px] mb-1",children:s.jsx(E.default,{dir:c,lang:i,disabled:r,locale:a,placeholder:e.properties.placeholder,value:x,onChange:b,onSend:h,title:e.properties.placeholder})})]}),Q=({dir:c,lang:i,readonly:e,locale:r,placeholder:a,value:n,onChange:m,onSend:x})=>a?s.jsx(E.default,{dir:c,lang:i,disabled:e,locale:r,placeholder:a,value:n,onChange:m,onSend:x,title:a}):null,W=({dir:c,lang:i,node:e,readonly:r,locale:a,defaultButtonText:n,defaultInputText:m,defaultSelectedValues:x,onSend:b,confirmButtonText:h,beforeSend:u=()=>!0})=>{const f=U.getContentRenderLocaleTexts(a),p=h||f.confirmButtonText,[l,N]=v.useState(m||""),[d,C]=v.useState(x||[]),V=JSON.stringify({buttonTexts:e.properties?.buttonTexts,buttonValues:e.properties?.buttonValues,isMultiSelect:e.properties?.isMultiSelect,placeholder:e.properties?.placeholder,variableName:e.properties?.variableName}),g=e.properties?.isMultiSelect??!1,O=e.properties?.buttonTexts||[],M=!g&&O.length===0&&!e.properties?.placeholder,S=_.distExports.normalizeVariableName(e.properties?.variableName||"")||n||p,k=v.useMemo(()=>M?{...e,properties:{...e.properties||{},buttonTexts:[S],buttonValues:[S]}}:e,[S,e,M]),j=k.properties?.buttonTexts||[],q=k.properties?.buttonValues||[],y=!g&&j.length>0,R=t=>{const o={variableName:e.properties?.variableName||"",buttonText:t};u?.(o)&&b?.(o)},G=(t,o)=>{C(I=>o?[...I,t]:I.filter(L=>L!==t))},B=()=>{const t=d.length===0&&!l?.trim(),o={variableName:e.properties?.variableName||"",selectedValues:d,inputText:l?.trim()||void 0};r||t||u?.(o)&&b?.(o)},w=t=>{N(t.target.value)},z=t=>{t.nativeEvent.isComposing||t.keyCode===229||t.key==="Enter"&&!t.shiftKey&&(t.preventDefault(),g?d.length===0&&!l.trim()||B():T())},T=()=>{const t={variableName:e.properties?.variableName||"",inputText:l};u?.(t)&&b?.(t)},F=v.useMemo(()=>{if(!n)return;const t=q.indexOf(n);if(t>-1)return j[t]??n;const o=j.indexOf(n);if(o>-1)return j[o]},[n,j,q]);return v.useEffect(()=>{N(m||"")},[m,V]),v.useEffect(()=>{C(x||[])},[x,V]),s.jsxs("span",{className:"custom-variable-container inline-flex items-center flex-wrap",children:[g&&s.jsx(A,{node:e,readonly:r,selectedValues:d,inputValue:l,confirmButtonText:p,handleCheckboxChange:G,handleInputChange:w,handleKeyDown:z,handleConfirmClick:B}),!g&&y&&s.jsx(H,{dir:c,lang:i,node:k,readonly:r,locale:a,resolvedDefaultButtonText:F,handleButtonClick:R,inputValue:l,handleInputChange:w,handleSendClick:T}),!g&&!y&&e.properties?.placeholder&&s.jsx(Q,{dir:c,lang:i,readonly:r,locale:a,placeholder:e.properties.placeholder,value:l,onChange:w,onSend:T})]})};exports.default=W;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),j=require("react"),_=require("../../../_virtual/index.cjs"),J=require("../../ui/button.cjs"),U=require("../../ui/checkbox.cjs"),K=require("../MarkdownFlowInput.cjs"),H=require("../utils/accept-placeholder.cjs"),E=require("../../ui/inputGroup/input-group.cjs"),O=require("../../../lib/utils.cjs"),Q=require("../contentRenderI18n.cjs"),W=({node:c,readonly:i,selectedValues:e,inputValue:r,confirmButtonText:a,handleCheckboxChange:n,handleInputChange:p,handleKeyDown:u,handleConfirmClick:m})=>{const d=c.properties?.placeholder,h=i||e.length===0&&!r?.trim(),b=x=>s.jsx("span",{className:O.cn("multi-select-confirm-wrapper flex flex-col items-center",h?"opacity-50 cursor-not-allowed":"cursor-pointer",x),children:s.jsx("button",{type:"button",className:"multi-select-confirm-button text-sm font-medium text-primary",disabled:h,onClick:m,children:a})});return s.jsxs("span",{className:"multi-select-container flex w-full flex-col",children:[s.jsx("span",{className:"flex flex-wrap gap-y-[9px] gap-x-6",children:c.properties?.buttonTexts?.map((x,f)=>{const l=c.properties?.buttonValues?.[f],v=l!==void 0?l:x;return s.jsx(U.Checkbox,{label:x,disabled:i,checked:e.includes(v),onCheckedChange:g=>n(v,g),className:"text-sm"},f)})}),d?s.jsx("span",{className:"block mb-1 w-full max-w-[500px]",children:s.jsxs("span",{className:"multi-select-input-row flex w-full items-end gap-3",children:[s.jsx(E.InputGroup,{"data-disabled":i,className:"flex-1",children:s.jsx(E.InputGroupTextarea,{disabled:i,placeholder:d,value:r,onChange:p,onKeyDown:u,className:"text-sm px-3",title:d})}),b("shrink-0")]})}):b("self-start multi-select-confirm-wrapper--stacked")]})},X=({dir:c,lang:i,node:e,readonly:r,locale:a,resolvedDefaultButtonText:n,handleButtonClick:p,inputValue:u,handleInputChange:m,handleSendClick:d,onAcceptPlaceholder:h})=>s.jsxs("span",{className:"single-select-container inline-flex w-full flex-col",children:[s.jsx("span",{className:"flex flex-wrap gap-y-[9px] gap-x-2",children:e.properties?.buttonTexts?.map((b,x)=>{const f=e.properties?.buttonValues?.[x],l=f!==void 0?f:b;return s.jsx(J.Button,{disabled:r,variant:"outline",type:"button",size:"sm",onClick:()=>p(l),className:O.cn("max-w-full shrink whitespace-normal break-words text-start leading-5 h-auto min-h-8 px-3 py-1.5","hover:bg-gray-200",n===b&&"select"),children:b},x)})}),e.properties?.placeholder&&s.jsx("span",{className:"mt-[9px] mb-1",children:s.jsx(K.default,{dir:c,lang:i,disabled:r,locale:a,placeholder:e.properties.placeholder,value:u,onChange:m,onSend:d,onAcceptPlaceholder:h,title:e.properties.placeholder})})]}),Y=({dir:c,lang:i,readonly:e,locale:r,placeholder:a,value:n,onChange:p,onSend:u,onAcceptPlaceholder:m})=>a?s.jsx(K.default,{dir:c,lang:i,disabled:e,locale:r,placeholder:a,value:n,onChange:p,onSend:u,onAcceptPlaceholder:m,title:a}):null,Z=({dir:c,lang:i,node:e,readonly:r,locale:a,defaultButtonText:n,defaultInputText:p,defaultSelectedValues:u,onSend:m,confirmButtonText:d,beforeSend:h=()=>!0,onPlaceholderAccepted:b})=>{const x=Q.getContentRenderLocaleTexts(a),f=d||x.confirmButtonText,[l,v]=j.useState(p||""),[g,q]=j.useState(u||[]),M=JSON.stringify({buttonTexts:e.properties?.buttonTexts,buttonValues:e.properties?.buttonValues,isMultiSelect:e.properties?.isMultiSelect,placeholder:e.properties?.placeholder,variableName:e.properties?.variableName}),N=e.properties?.isMultiSelect??!1,R=e.properties?.buttonTexts||[],y=!N&&R.length===0&&!e.properties?.placeholder,S=_.distExports.normalizeVariableName(e.properties?.variableName||"")||n||f,k=j.useMemo(()=>y?{...e,properties:{...e.properties||{},buttonTexts:[S],buttonValues:[S]}}:e,[S,e,y]),C=k.properties?.buttonTexts||[],B=k.properties?.buttonValues||[],I=!N&&C.length>0,A=t=>{const o={variableName:e.properties?.variableName||"",buttonText:t};h?.(o)&&m?.(o)},G=(t,o)=>{q(D=>o?[...D,t]:D.filter(L=>L!==t))},P=()=>{const t=g.length===0&&!l?.trim(),o={variableName:e.properties?.variableName||"",selectedValues:g,inputText:l?.trim()||void 0};r||t||h?.(o)&&m?.(o)},w=t=>{v(t.target.value)},T=t=>{v(t);try{Promise.resolve(b?.()).catch(()=>{})}catch{}},z=t=>{H.acceptPlaceholder(t,e.properties?.placeholder,r,T)||t.nativeEvent.isComposing||t.keyCode===229||t.key==="Enter"&&!t.shiftKey&&(t.preventDefault(),N?g.length===0&&!l.trim()||P():V())},V=()=>{const t={variableName:e.properties?.variableName||"",inputText:l};h?.(t)&&m?.(t)},F=j.useMemo(()=>{if(!n)return;const t=B.indexOf(n);if(t>-1)return C[t]??n;const o=C.indexOf(n);if(o>-1)return C[o]},[n,C,B]);return j.useEffect(()=>{v(p||"")},[p,M]),j.useEffect(()=>{q(u||[])},[u,M]),s.jsxs("span",{className:"custom-variable-container inline-flex items-center flex-wrap",children:[N&&s.jsx(W,{node:e,readonly:r,selectedValues:g,inputValue:l,confirmButtonText:f,handleCheckboxChange:G,handleInputChange:w,handleKeyDown:z,handleConfirmClick:P}),!N&&I&&s.jsx(X,{dir:c,lang:i,node:k,readonly:r,locale:a,resolvedDefaultButtonText:F,handleButtonClick:A,inputValue:l,handleInputChange:w,handleSendClick:V,onAcceptPlaceholder:T}),!N&&!I&&e.properties?.placeholder&&s.jsx(Y,{dir:c,lang:i,readonly:r,locale:a,placeholder:e.properties.placeholder,value:l,onChange:w,onSend:V,onAcceptPlaceholder:T})]})};exports.default=Z;
2
2
  //# sourceMappingURL=CustomVariable.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"CustomVariable.cjs","sources":["../../../../src/components/ContentRender/plugins/CustomVariable.tsx"],"sourcesContent":["import React from \"react\";\nimport { normalizeVariableName } from \"remark-flow\";\nimport type { Components } from \"react-markdown\";\nimport { OnSendContentParams } from \"../../types\";\nimport { Button } from \"../../ui/button\";\nimport { Checkbox } from \"../../ui/checkbox\";\nimport MarkdownFlowInput from \"../MarkdownFlowInput\";\nimport {\n InputGroup,\n InputGroupTextarea,\n} from \"../../ui/inputGroup/input-group\";\nimport type { MarkdownFlowLocale } from \"../../../lib/locale\";\nimport { cn } from \"../../../lib/utils\";\nimport { getContentRenderLocaleTexts } from \"../contentRenderI18n\";\n\n// Define custom variable node type\ninterface CustomVariableNode {\n tagName: \"custom-variable\";\n properties?: {\n variableName?: string;\n buttonTexts?: string[];\n buttonValues?: string[];\n placeholder?: string;\n isMultiSelect?: boolean;\n };\n}\n\n// Define custom variable component Props type\ninterface CustomVariableProps {\n /** Explicit direction for nested input controls. */\n dir?: React.HTMLAttributes<HTMLDivElement>[\"dir\"];\n /** Explicit language for nested input controls. */\n lang?: string;\n node: CustomVariableNode;\n defaultButtonText?: string;\n defaultInputText?: string;\n defaultSelectedValues?: string[];\n locale?: MarkdownFlowLocale;\n readonly?: boolean;\n onSend?: (content: OnSendContentParams) => void;\n // Multi-select confirm button text (i18n support)\n confirmButtonText?: string;\n beforeSend?: (param: OnSendContentParams) => boolean;\n}\n\ninterface ComponentsWithCustomVariable extends Components {\n \"custom-variable\"?: React.ComponentType<CustomVariableProps>;\n}\n\n// Multi select section( with checkboxes and input)\ninterface MultiSelectSectionProps {\n node: CustomVariableNode;\n readonly?: boolean;\n selectedValues: string[];\n inputValue: string;\n confirmButtonText: string;\n handleCheckboxChange: (value: string, checked: boolean) => void;\n handleInputChange: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;\n handleKeyDown: (event: React.KeyboardEvent<HTMLTextAreaElement>) => void;\n handleConfirmClick: () => void;\n}\n\nconst MultiSelectSection = ({\n node,\n readonly,\n selectedValues,\n inputValue,\n confirmButtonText,\n handleCheckboxChange,\n handleInputChange,\n handleKeyDown,\n handleConfirmClick,\n}: MultiSelectSectionProps) => {\n const placeholder = node.properties?.placeholder;\n const confirmDisabled =\n readonly || (selectedValues.length === 0 && !inputValue?.trim());\n\n const renderConfirmButton = (extraWrapperClassName?: string) => (\n <span\n className={cn(\n \"multi-select-confirm-wrapper flex flex-col items-center\",\n confirmDisabled ? \"opacity-50 cursor-not-allowed\" : \"cursor-pointer\",\n extraWrapperClassName\n )}\n >\n <button\n type=\"button\"\n className=\"multi-select-confirm-button text-sm font-medium text-primary\"\n disabled={confirmDisabled}\n onClick={handleConfirmClick}\n >\n {confirmButtonText}\n </button>\n </span>\n );\n\n return (\n <span className=\"multi-select-container flex w-full flex-col\">\n <span className=\"flex flex-wrap gap-y-[9px] gap-x-6\">\n {node.properties?.buttonTexts?.map((text, index) => {\n const value = node.properties?.buttonValues?.[index];\n const buttonValue = value !== undefined ? value : text;\n return (\n <Checkbox\n key={index}\n label={text}\n disabled={readonly}\n checked={selectedValues.includes(buttonValue)}\n onCheckedChange={(checked) =>\n handleCheckboxChange(buttonValue, checked)\n }\n className=\"text-sm\"\n />\n );\n })}\n </span>\n {placeholder ? (\n <span className=\"block mb-1 w-full max-w-[500px]\">\n <span className=\"multi-select-input-row flex w-full items-end gap-3\">\n <InputGroup data-disabled={readonly} className=\"flex-1\">\n <InputGroupTextarea\n disabled={readonly}\n placeholder={placeholder}\n value={inputValue}\n onChange={handleInputChange}\n onKeyDown={handleKeyDown}\n className=\"text-sm px-3\"\n title={placeholder}\n />\n </InputGroup>\n {renderConfirmButton(\"shrink-0\")}\n </span>\n </span>\n ) : (\n renderConfirmButton(\"self-start multi-select-confirm-wrapper--stacked\")\n )}\n </span>\n );\n};\n\n// Single select section( with buttons and input)\ninterface SingleSelectSectionProps {\n dir?: CustomVariableProps[\"dir\"];\n lang?: string;\n node: CustomVariableNode;\n readonly?: boolean;\n locale?: MarkdownFlowLocale;\n resolvedDefaultButtonText?: string;\n handleButtonClick: (value: string) => void;\n inputValue: string;\n handleInputChange: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;\n handleSendClick: () => void;\n}\n\nconst SingleSelectSection = ({\n dir,\n lang,\n node,\n readonly,\n locale,\n resolvedDefaultButtonText,\n handleButtonClick,\n inputValue,\n handleInputChange,\n handleSendClick,\n}: SingleSelectSectionProps) => (\n <span className=\"single-select-container inline-flex w-full flex-col\">\n <span className=\"flex flex-wrap gap-y-[9px] gap-x-2\">\n {node.properties?.buttonTexts?.map((text, index) => {\n const value = node.properties?.buttonValues?.[index];\n const buttonValue = value !== undefined ? value : text;\n return (\n <Button\n key={index}\n disabled={readonly}\n variant=\"outline\"\n type=\"button\"\n size=\"sm\"\n onClick={() => handleButtonClick(buttonValue)}\n className={cn(\n \"max-w-full shrink whitespace-normal break-words text-start leading-5 h-auto min-h-8 px-3 py-1.5\",\n \"hover:bg-gray-200\",\n resolvedDefaultButtonText === text && \"select\"\n )}\n >\n {text}\n </Button>\n );\n })}\n </span>\n {node.properties?.placeholder && (\n <span className=\"mt-[9px] mb-1\">\n <MarkdownFlowInput\n dir={dir}\n lang={lang}\n disabled={readonly}\n locale={locale}\n placeholder={node.properties.placeholder}\n value={inputValue}\n onChange={handleInputChange}\n onSend={handleSendClick}\n title={node.properties.placeholder}\n />\n </span>\n )}\n </span>\n);\n\n// Pure input\ninterface InputSectionProps {\n dir?: CustomVariableProps[\"dir\"];\n lang?: string;\n readonly?: boolean;\n locale?: MarkdownFlowLocale;\n placeholder?: string;\n value: string;\n onChange: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;\n onSend: () => void;\n}\n\nconst InputSection = ({\n dir,\n lang,\n readonly,\n locale,\n placeholder,\n value,\n onChange,\n onSend,\n}: InputSectionProps) => {\n if (!placeholder) {\n return null;\n }\n\n return (\n <MarkdownFlowInput\n dir={dir}\n lang={lang}\n disabled={readonly}\n locale={locale}\n placeholder={placeholder}\n value={value}\n onChange={onChange}\n onSend={onSend}\n title={placeholder}\n />\n );\n};\n\n// Define custom variable component\nconst CustomButtonInputVariable = ({\n dir,\n lang,\n node,\n readonly,\n locale,\n defaultButtonText,\n defaultInputText,\n defaultSelectedValues,\n onSend,\n confirmButtonText,\n beforeSend = () => true,\n}: CustomVariableProps) => {\n const localeTexts = getContentRenderLocaleTexts(locale);\n const resolvedConfirmButtonText =\n confirmButtonText || localeTexts.confirmButtonText;\n const [inputValue, setInputValue] = React.useState(defaultInputText || \"\");\n const [selectedValues, setSelectedValues] = React.useState<string[]>(\n defaultSelectedValues || []\n );\n const interactionDefinitionKey = JSON.stringify({\n buttonTexts: node.properties?.buttonTexts,\n buttonValues: node.properties?.buttonValues,\n isMultiSelect: node.properties?.isMultiSelect,\n placeholder: node.properties?.placeholder,\n variableName: node.properties?.variableName,\n });\n const isMultiSelect = node.properties?.isMultiSelect ?? false;\n const baseButtonTexts = node.properties?.buttonTexts || [];\n const shouldUseFallbackButton =\n !isMultiSelect &&\n baseButtonTexts.length === 0 &&\n !node.properties?.placeholder;\n const fallbackButtonLabel =\n normalizeVariableName(node.properties?.variableName || \"\") ||\n defaultButtonText ||\n resolvedConfirmButtonText;\n\n const singleSelectNode = React.useMemo<CustomVariableNode>(() => {\n if (!shouldUseFallbackButton) {\n return node;\n }\n return {\n ...node,\n properties: {\n ...(node.properties || {}),\n buttonTexts: [fallbackButtonLabel],\n buttonValues: [fallbackButtonLabel],\n },\n };\n }, [fallbackButtonLabel, node, shouldUseFallbackButton]);\n\n const singleSelectButtonTexts =\n singleSelectNode.properties?.buttonTexts || [];\n const singleSelectButtonValues =\n singleSelectNode.properties?.buttonValues || [];\n const isSingleSelect = !isMultiSelect && singleSelectButtonTexts.length > 0;\n\n const handleButtonClick = (value: string) => {\n const param = {\n variableName: node.properties?.variableName || \"\",\n buttonText: value,\n };\n if (!beforeSend?.(param)) return;\n onSend?.(param);\n };\n\n const handleCheckboxChange = (value: string, checked: boolean) => {\n setSelectedValues((prev) => {\n if (checked) {\n return [...prev, value];\n } else {\n return prev.filter((v) => v !== value);\n }\n });\n };\n\n const handleConfirmClick = () => {\n const noSelection = selectedValues.length === 0 && !inputValue?.trim();\n const param = {\n variableName: node.properties?.variableName || \"\",\n selectedValues,\n inputText: inputValue?.trim() || undefined,\n };\n if (readonly || noSelection) return;\n if (!beforeSend?.(param)) return;\n onSend?.(param);\n };\n\n const handleInputChange = (e: React.ChangeEvent<HTMLTextAreaElement>) => {\n setInputValue(e.target.value);\n };\n const handleKeyDown = (e: React.KeyboardEvent<HTMLTextAreaElement>) => {\n if (e.nativeEvent.isComposing || e.keyCode === 229) {\n return;\n }\n if (e.key === \"Enter\" && !e.shiftKey) {\n e.preventDefault();\n if (isMultiSelect) {\n const noSelection = selectedValues.length === 0 && !inputValue.trim();\n if (!noSelection) handleConfirmClick();\n } else {\n handleSendClick();\n }\n }\n };\n const handleSendClick = () => {\n const param = {\n variableName: node.properties?.variableName || \"\",\n inputText: inputValue,\n };\n if (!beforeSend?.(param)) return;\n onSend?.(param);\n };\n\n const resolvedDefaultButtonText = React.useMemo(() => {\n if (!defaultButtonText) {\n return undefined;\n }\n const valueIndex = singleSelectButtonValues.indexOf(defaultButtonText);\n if (valueIndex > -1) {\n return singleSelectButtonTexts[valueIndex] ?? defaultButtonText;\n }\n const textIndex = singleSelectButtonTexts.indexOf(defaultButtonText);\n if (textIndex > -1) {\n return singleSelectButtonTexts[textIndex];\n }\n return undefined;\n }, [defaultButtonText, singleSelectButtonTexts, singleSelectButtonValues]);\n\n React.useEffect(() => {\n setInputValue(defaultInputText || \"\");\n }, [defaultInputText, interactionDefinitionKey]);\n\n React.useEffect(() => {\n setSelectedValues(defaultSelectedValues || []);\n }, [defaultSelectedValues, interactionDefinitionKey]);\n\n return (\n <span className=\"custom-variable-container inline-flex items-center flex-wrap\">\n {isMultiSelect && (\n <MultiSelectSection\n node={node}\n readonly={readonly}\n selectedValues={selectedValues}\n inputValue={inputValue}\n confirmButtonText={resolvedConfirmButtonText}\n handleCheckboxChange={handleCheckboxChange}\n handleInputChange={handleInputChange}\n handleKeyDown={handleKeyDown}\n handleConfirmClick={handleConfirmClick}\n />\n )}\n\n {!isMultiSelect && isSingleSelect && (\n <SingleSelectSection\n dir={dir}\n lang={lang}\n node={singleSelectNode}\n readonly={readonly}\n locale={locale}\n resolvedDefaultButtonText={resolvedDefaultButtonText}\n handleButtonClick={handleButtonClick}\n inputValue={inputValue}\n handleInputChange={handleInputChange}\n handleSendClick={handleSendClick}\n />\n )}\n\n {!isMultiSelect && !isSingleSelect && node.properties?.placeholder && (\n <InputSection\n dir={dir}\n lang={lang}\n readonly={readonly}\n locale={locale}\n placeholder={node.properties.placeholder}\n value={inputValue}\n onChange={handleInputChange}\n onSend={handleSendClick}\n />\n )}\n </span>\n );\n};\n\nexport default CustomButtonInputVariable;\nexport type {\n ComponentsWithCustomVariable,\n CustomVariableNode,\n CustomVariableProps,\n};\n"],"names":["MultiSelectSection","node","readonly","selectedValues","inputValue","confirmButtonText","handleCheckboxChange","handleInputChange","handleKeyDown","handleConfirmClick","placeholder","confirmDisabled","renderConfirmButton","extraWrapperClassName","jsx","cn","jsxs","text","index","value","buttonValue","Checkbox","checked","InputGroup","InputGroupTextarea","SingleSelectSection","dir","lang","locale","resolvedDefaultButtonText","handleButtonClick","handleSendClick","Button","MarkdownFlowInput","InputSection","onChange","onSend","CustomButtonInputVariable","defaultButtonText","defaultInputText","defaultSelectedValues","beforeSend","localeTexts","getContentRenderLocaleTexts","resolvedConfirmButtonText","setInputValue","React","setSelectedValues","interactionDefinitionKey","isMultiSelect","baseButtonTexts","shouldUseFallbackButton","fallbackButtonLabel","normalizeVariableName","singleSelectNode","singleSelectButtonTexts","singleSelectButtonValues","isSingleSelect","param","prev","v","noSelection","e","valueIndex","textIndex"],"mappings":"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"}
1
+ {"version":3,"file":"CustomVariable.cjs","sources":["../../../../src/components/ContentRender/plugins/CustomVariable.tsx"],"sourcesContent":["import React from \"react\";\nimport { normalizeVariableName } from \"remark-flow\";\nimport type { Components } from \"react-markdown\";\nimport { OnSendContentParams } from \"../../types\";\nimport { Button } from \"../../ui/button\";\nimport { Checkbox } from \"../../ui/checkbox\";\nimport MarkdownFlowInput from \"../MarkdownFlowInput\";\nimport { acceptPlaceholder } from \"../utils/accept-placeholder\";\nimport {\n InputGroup,\n InputGroupTextarea,\n} from \"../../ui/inputGroup/input-group\";\nimport type { MarkdownFlowLocale } from \"../../../lib/locale\";\nimport { cn } from \"../../../lib/utils\";\nimport { getContentRenderLocaleTexts } from \"../contentRenderI18n\";\n\n// Define custom variable node type\ninterface CustomVariableNode {\n tagName: \"custom-variable\";\n properties?: {\n variableName?: string;\n buttonTexts?: string[];\n buttonValues?: string[];\n placeholder?: string;\n isMultiSelect?: boolean;\n };\n}\n\n// Define custom variable component Props type\ninterface CustomVariableProps {\n /** Explicit direction for nested input controls. */\n dir?: React.HTMLAttributes<HTMLDivElement>[\"dir\"];\n /** Explicit language for nested input controls. */\n lang?: string;\n node: CustomVariableNode;\n defaultButtonText?: string;\n defaultInputText?: string;\n defaultSelectedValues?: string[];\n locale?: MarkdownFlowLocale;\n readonly?: boolean;\n onSend?: (content: OnSendContentParams) => void;\n onPlaceholderAccepted?: () => void;\n // Multi-select confirm button text (i18n support)\n confirmButtonText?: string;\n beforeSend?: (param: OnSendContentParams) => boolean;\n}\n\ninterface ComponentsWithCustomVariable extends Components {\n \"custom-variable\"?: React.ComponentType<CustomVariableProps>;\n}\n\n// Multi select section( with checkboxes and input)\ninterface MultiSelectSectionProps {\n node: CustomVariableNode;\n readonly?: boolean;\n selectedValues: string[];\n inputValue: string;\n confirmButtonText: string;\n handleCheckboxChange: (value: string, checked: boolean) => void;\n handleInputChange: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;\n handleKeyDown: (event: React.KeyboardEvent<HTMLTextAreaElement>) => void;\n handleConfirmClick: () => void;\n}\n\nconst MultiSelectSection = ({\n node,\n readonly,\n selectedValues,\n inputValue,\n confirmButtonText,\n handleCheckboxChange,\n handleInputChange,\n handleKeyDown,\n handleConfirmClick,\n}: MultiSelectSectionProps) => {\n const placeholder = node.properties?.placeholder;\n const confirmDisabled =\n readonly || (selectedValues.length === 0 && !inputValue?.trim());\n\n const renderConfirmButton = (extraWrapperClassName?: string) => (\n <span\n className={cn(\n \"multi-select-confirm-wrapper flex flex-col items-center\",\n confirmDisabled ? \"opacity-50 cursor-not-allowed\" : \"cursor-pointer\",\n extraWrapperClassName\n )}\n >\n <button\n type=\"button\"\n className=\"multi-select-confirm-button text-sm font-medium text-primary\"\n disabled={confirmDisabled}\n onClick={handleConfirmClick}\n >\n {confirmButtonText}\n </button>\n </span>\n );\n\n return (\n <span className=\"multi-select-container flex w-full flex-col\">\n <span className=\"flex flex-wrap gap-y-[9px] gap-x-6\">\n {node.properties?.buttonTexts?.map((text, index) => {\n const value = node.properties?.buttonValues?.[index];\n const buttonValue = value !== undefined ? value : text;\n return (\n <Checkbox\n key={index}\n label={text}\n disabled={readonly}\n checked={selectedValues.includes(buttonValue)}\n onCheckedChange={(checked) =>\n handleCheckboxChange(buttonValue, checked)\n }\n className=\"text-sm\"\n />\n );\n })}\n </span>\n {placeholder ? (\n <span className=\"block mb-1 w-full max-w-[500px]\">\n <span className=\"multi-select-input-row flex w-full items-end gap-3\">\n <InputGroup data-disabled={readonly} className=\"flex-1\">\n <InputGroupTextarea\n disabled={readonly}\n placeholder={placeholder}\n value={inputValue}\n onChange={handleInputChange}\n onKeyDown={handleKeyDown}\n className=\"text-sm px-3\"\n title={placeholder}\n />\n </InputGroup>\n {renderConfirmButton(\"shrink-0\")}\n </span>\n </span>\n ) : (\n renderConfirmButton(\"self-start multi-select-confirm-wrapper--stacked\")\n )}\n </span>\n );\n};\n\n// Single select section( with buttons and input)\ninterface SingleSelectSectionProps {\n dir?: CustomVariableProps[\"dir\"];\n lang?: string;\n node: CustomVariableNode;\n readonly?: boolean;\n locale?: MarkdownFlowLocale;\n resolvedDefaultButtonText?: string;\n handleButtonClick: (value: string) => void;\n inputValue: string;\n handleInputChange: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;\n handleSendClick: () => void;\n onAcceptPlaceholder: (value: string) => void;\n}\n\nconst SingleSelectSection = ({\n dir,\n lang,\n node,\n readonly,\n locale,\n resolvedDefaultButtonText,\n handleButtonClick,\n inputValue,\n handleInputChange,\n handleSendClick,\n onAcceptPlaceholder,\n}: SingleSelectSectionProps) => (\n <span className=\"single-select-container inline-flex w-full flex-col\">\n <span className=\"flex flex-wrap gap-y-[9px] gap-x-2\">\n {node.properties?.buttonTexts?.map((text, index) => {\n const value = node.properties?.buttonValues?.[index];\n const buttonValue = value !== undefined ? value : text;\n return (\n <Button\n key={index}\n disabled={readonly}\n variant=\"outline\"\n type=\"button\"\n size=\"sm\"\n onClick={() => handleButtonClick(buttonValue)}\n className={cn(\n \"max-w-full shrink whitespace-normal break-words text-start leading-5 h-auto min-h-8 px-3 py-1.5\",\n \"hover:bg-gray-200\",\n resolvedDefaultButtonText === text && \"select\"\n )}\n >\n {text}\n </Button>\n );\n })}\n </span>\n {node.properties?.placeholder && (\n <span className=\"mt-[9px] mb-1\">\n <MarkdownFlowInput\n dir={dir}\n lang={lang}\n disabled={readonly}\n locale={locale}\n placeholder={node.properties.placeholder}\n value={inputValue}\n onChange={handleInputChange}\n onSend={handleSendClick}\n onAcceptPlaceholder={onAcceptPlaceholder}\n title={node.properties.placeholder}\n />\n </span>\n )}\n </span>\n);\n\n// Pure input\ninterface InputSectionProps {\n dir?: CustomVariableProps[\"dir\"];\n lang?: string;\n readonly?: boolean;\n locale?: MarkdownFlowLocale;\n placeholder?: string;\n value: string;\n onChange: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;\n onSend: () => void;\n onAcceptPlaceholder: (value: string) => void;\n}\n\nconst InputSection = ({\n dir,\n lang,\n readonly,\n locale,\n placeholder,\n value,\n onChange,\n onSend,\n onAcceptPlaceholder,\n}: InputSectionProps) => {\n if (!placeholder) {\n return null;\n }\n\n return (\n <MarkdownFlowInput\n dir={dir}\n lang={lang}\n disabled={readonly}\n locale={locale}\n placeholder={placeholder}\n value={value}\n onChange={onChange}\n onSend={onSend}\n onAcceptPlaceholder={onAcceptPlaceholder}\n title={placeholder}\n />\n );\n};\n\n// Define custom variable component\nconst CustomButtonInputVariable = ({\n dir,\n lang,\n node,\n readonly,\n locale,\n defaultButtonText,\n defaultInputText,\n defaultSelectedValues,\n onSend,\n confirmButtonText,\n beforeSend = () => true,\n onPlaceholderAccepted,\n}: CustomVariableProps) => {\n const localeTexts = getContentRenderLocaleTexts(locale);\n const resolvedConfirmButtonText =\n confirmButtonText || localeTexts.confirmButtonText;\n const [inputValue, setInputValue] = React.useState(defaultInputText || \"\");\n const [selectedValues, setSelectedValues] = React.useState<string[]>(\n defaultSelectedValues || []\n );\n const interactionDefinitionKey = JSON.stringify({\n buttonTexts: node.properties?.buttonTexts,\n buttonValues: node.properties?.buttonValues,\n isMultiSelect: node.properties?.isMultiSelect,\n placeholder: node.properties?.placeholder,\n variableName: node.properties?.variableName,\n });\n const isMultiSelect = node.properties?.isMultiSelect ?? false;\n const baseButtonTexts = node.properties?.buttonTexts || [];\n const shouldUseFallbackButton =\n !isMultiSelect &&\n baseButtonTexts.length === 0 &&\n !node.properties?.placeholder;\n const fallbackButtonLabel =\n normalizeVariableName(node.properties?.variableName || \"\") ||\n defaultButtonText ||\n resolvedConfirmButtonText;\n\n const singleSelectNode = React.useMemo<CustomVariableNode>(() => {\n if (!shouldUseFallbackButton) {\n return node;\n }\n return {\n ...node,\n properties: {\n ...(node.properties || {}),\n buttonTexts: [fallbackButtonLabel],\n buttonValues: [fallbackButtonLabel],\n },\n };\n }, [fallbackButtonLabel, node, shouldUseFallbackButton]);\n\n const singleSelectButtonTexts =\n singleSelectNode.properties?.buttonTexts || [];\n const singleSelectButtonValues =\n singleSelectNode.properties?.buttonValues || [];\n const isSingleSelect = !isMultiSelect && singleSelectButtonTexts.length > 0;\n\n const handleButtonClick = (value: string) => {\n const param = {\n variableName: node.properties?.variableName || \"\",\n buttonText: value,\n };\n if (!beforeSend?.(param)) return;\n onSend?.(param);\n };\n\n const handleCheckboxChange = (value: string, checked: boolean) => {\n setSelectedValues((prev) => {\n if (checked) {\n return [...prev, value];\n } else {\n return prev.filter((v) => v !== value);\n }\n });\n };\n\n const handleConfirmClick = () => {\n const noSelection = selectedValues.length === 0 && !inputValue?.trim();\n const param = {\n variableName: node.properties?.variableName || \"\",\n selectedValues,\n inputText: inputValue?.trim() || undefined,\n };\n if (readonly || noSelection) return;\n if (!beforeSend?.(param)) return;\n onSend?.(param);\n };\n\n const handleInputChange = (e: React.ChangeEvent<HTMLTextAreaElement>) => {\n setInputValue(e.target.value);\n };\n const handleAcceptPlaceholder = (value: string) => {\n setInputValue(value);\n // Observer failures must never prevent editing or submitting an answer.\n try {\n void Promise.resolve(onPlaceholderAccepted?.()).catch(() => {});\n } catch {}\n };\n const handleKeyDown = (e: React.KeyboardEvent<HTMLTextAreaElement>) => {\n if (\n acceptPlaceholder(\n e,\n node.properties?.placeholder,\n readonly,\n handleAcceptPlaceholder\n )\n ) {\n return;\n }\n if (e.nativeEvent.isComposing || e.keyCode === 229) {\n return;\n }\n if (e.key === \"Enter\" && !e.shiftKey) {\n e.preventDefault();\n if (isMultiSelect) {\n const noSelection = selectedValues.length === 0 && !inputValue.trim();\n if (!noSelection) handleConfirmClick();\n } else {\n handleSendClick();\n }\n }\n };\n const handleSendClick = () => {\n const param = {\n variableName: node.properties?.variableName || \"\",\n inputText: inputValue,\n };\n if (!beforeSend?.(param)) return;\n onSend?.(param);\n };\n\n const resolvedDefaultButtonText = React.useMemo(() => {\n if (!defaultButtonText) {\n return undefined;\n }\n const valueIndex = singleSelectButtonValues.indexOf(defaultButtonText);\n if (valueIndex > -1) {\n return singleSelectButtonTexts[valueIndex] ?? defaultButtonText;\n }\n const textIndex = singleSelectButtonTexts.indexOf(defaultButtonText);\n if (textIndex > -1) {\n return singleSelectButtonTexts[textIndex];\n }\n return undefined;\n }, [defaultButtonText, singleSelectButtonTexts, singleSelectButtonValues]);\n\n React.useEffect(() => {\n setInputValue(defaultInputText || \"\");\n }, [defaultInputText, interactionDefinitionKey]);\n\n React.useEffect(() => {\n setSelectedValues(defaultSelectedValues || []);\n }, [defaultSelectedValues, interactionDefinitionKey]);\n\n return (\n <span className=\"custom-variable-container inline-flex items-center flex-wrap\">\n {isMultiSelect && (\n <MultiSelectSection\n node={node}\n readonly={readonly}\n selectedValues={selectedValues}\n inputValue={inputValue}\n confirmButtonText={resolvedConfirmButtonText}\n handleCheckboxChange={handleCheckboxChange}\n handleInputChange={handleInputChange}\n handleKeyDown={handleKeyDown}\n handleConfirmClick={handleConfirmClick}\n />\n )}\n\n {!isMultiSelect && isSingleSelect && (\n <SingleSelectSection\n dir={dir}\n lang={lang}\n node={singleSelectNode}\n readonly={readonly}\n locale={locale}\n resolvedDefaultButtonText={resolvedDefaultButtonText}\n handleButtonClick={handleButtonClick}\n inputValue={inputValue}\n handleInputChange={handleInputChange}\n handleSendClick={handleSendClick}\n onAcceptPlaceholder={handleAcceptPlaceholder}\n />\n )}\n\n {!isMultiSelect && !isSingleSelect && node.properties?.placeholder && (\n <InputSection\n dir={dir}\n lang={lang}\n readonly={readonly}\n locale={locale}\n placeholder={node.properties.placeholder}\n value={inputValue}\n onChange={handleInputChange}\n onSend={handleSendClick}\n onAcceptPlaceholder={handleAcceptPlaceholder}\n />\n )}\n </span>\n );\n};\n\nexport default CustomButtonInputVariable;\nexport type {\n ComponentsWithCustomVariable,\n CustomVariableNode,\n CustomVariableProps,\n};\n"],"names":["MultiSelectSection","node","readonly","selectedValues","inputValue","confirmButtonText","handleCheckboxChange","handleInputChange","handleKeyDown","handleConfirmClick","placeholder","confirmDisabled","renderConfirmButton","extraWrapperClassName","jsx","cn","jsxs","text","index","value","buttonValue","Checkbox","checked","InputGroup","InputGroupTextarea","SingleSelectSection","dir","lang","locale","resolvedDefaultButtonText","handleButtonClick","handleSendClick","onAcceptPlaceholder","Button","MarkdownFlowInput","InputSection","onChange","onSend","CustomButtonInputVariable","defaultButtonText","defaultInputText","defaultSelectedValues","beforeSend","onPlaceholderAccepted","localeTexts","getContentRenderLocaleTexts","resolvedConfirmButtonText","setInputValue","React","setSelectedValues","interactionDefinitionKey","isMultiSelect","baseButtonTexts","shouldUseFallbackButton","fallbackButtonLabel","normalizeVariableName","singleSelectNode","singleSelectButtonTexts","singleSelectButtonValues","isSingleSelect","param","prev","v","noSelection","e","handleAcceptPlaceholder","acceptPlaceholder","valueIndex","textIndex"],"mappings":"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"}
@@ -24,12 +24,13 @@ interface CustomVariableProps {
24
24
  locale?: MarkdownFlowLocale;
25
25
  readonly?: boolean;
26
26
  onSend?: (content: OnSendContentParams) => void;
27
+ onPlaceholderAccepted?: () => void;
27
28
  confirmButtonText?: string;
28
29
  beforeSend?: (param: OnSendContentParams) => boolean;
29
30
  }
30
31
  interface ComponentsWithCustomVariable extends Components {
31
32
  "custom-variable"?: React.ComponentType<CustomVariableProps>;
32
33
  }
33
- declare const CustomButtonInputVariable: ({ dir, lang, node, readonly, locale, defaultButtonText, defaultInputText, defaultSelectedValues, onSend, confirmButtonText, beforeSend, }: CustomVariableProps) => React.JSX.Element;
34
+ declare const CustomButtonInputVariable: ({ dir, lang, node, readonly, locale, defaultButtonText, defaultInputText, defaultSelectedValues, onSend, confirmButtonText, beforeSend, onPlaceholderAccepted, }: CustomVariableProps) => React.JSX.Element;
34
35
  export default CustomButtonInputVariable;
35
36
  export type { ComponentsWithCustomVariable, CustomVariableNode, CustomVariableProps, };
@@ -1,88 +1,90 @@
1
1
  import { jsxs as w, jsx as r } from "react/jsx-runtime";
2
- import v from "react";
2
+ import C from "react";
3
3
  import { d as J } from "../../../_virtual/index.es.js";
4
4
  import { Button as U } from "../../ui/button.es.js";
5
5
  import { Checkbox as q } from "../../ui/checkbox.es.js";
6
6
  import O from "../MarkdownFlowInput.es.js";
7
- import { InputGroup as A, InputGroupTextarea as H } from "../../ui/inputGroup/input-group.es.js";
7
+ import { acceptPlaceholder as H } from "../utils/accept-placeholder.es.js";
8
+ import { InputGroup as Q, InputGroupTextarea as W } from "../../ui/inputGroup/input-group.es.js";
8
9
  import { cn as j } from "../../../lib/utils.es.js";
9
- import { getContentRenderLocaleTexts as P } from "../contentRenderI18n.es.js";
10
- const Q = ({
10
+ import { getContentRenderLocaleTexts as X } from "../contentRenderI18n.es.js";
11
+ const Y = ({
11
12
  node: c,
12
13
  readonly: i,
13
14
  selectedValues: e,
14
15
  inputValue: s,
15
16
  confirmButtonText: o,
16
17
  handleCheckboxChange: l,
17
- handleInputChange: m,
18
- handleKeyDown: f,
19
- handleConfirmClick: h
18
+ handleInputChange: p,
19
+ handleKeyDown: u,
20
+ handleConfirmClick: m
20
21
  }) => {
21
- const b = c.properties?.placeholder, p = i || e.length === 0 && !s?.trim(), x = (u) => /* @__PURE__ */ r(
22
+ const d = c.properties?.placeholder, h = i || e.length === 0 && !s?.trim(), b = (f) => /* @__PURE__ */ r(
22
23
  "span",
23
24
  {
24
25
  className: j(
25
26
  "multi-select-confirm-wrapper flex flex-col items-center",
26
- p ? "opacity-50 cursor-not-allowed" : "cursor-pointer",
27
- u
27
+ h ? "opacity-50 cursor-not-allowed" : "cursor-pointer",
28
+ f
28
29
  ),
29
30
  children: /* @__PURE__ */ r(
30
31
  "button",
31
32
  {
32
33
  type: "button",
33
34
  className: "multi-select-confirm-button text-sm font-medium text-primary",
34
- disabled: p,
35
- onClick: h,
35
+ disabled: h,
36
+ onClick: m,
36
37
  children: o
37
38
  }
38
39
  )
39
40
  }
40
41
  );
41
42
  return /* @__PURE__ */ w("span", { className: "multi-select-container flex w-full flex-col", children: [
42
- /* @__PURE__ */ r("span", { className: "flex flex-wrap gap-y-[9px] gap-x-6", children: c.properties?.buttonTexts?.map((u, n) => {
43
- const N = c.properties?.buttonValues?.[n], d = N !== void 0 ? N : u;
43
+ /* @__PURE__ */ r("span", { className: "flex flex-wrap gap-y-[9px] gap-x-6", children: c.properties?.buttonTexts?.map((f, x) => {
44
+ const n = c.properties?.buttonValues?.[x], v = n !== void 0 ? n : f;
44
45
  return /* @__PURE__ */ r(
45
46
  q,
46
47
  {
47
- label: u,
48
+ label: f,
48
49
  disabled: i,
49
- checked: e.includes(d),
50
- onCheckedChange: (k) => l(d, k),
50
+ checked: e.includes(v),
51
+ onCheckedChange: (g) => l(v, g),
51
52
  className: "text-sm"
52
53
  },
53
- n
54
+ x
54
55
  );
55
56
  }) }),
56
- b ? /* @__PURE__ */ r("span", { className: "block mb-1 w-full max-w-[500px]", children: /* @__PURE__ */ w("span", { className: "multi-select-input-row flex w-full items-end gap-3", children: [
57
- /* @__PURE__ */ r(A, { "data-disabled": i, className: "flex-1", children: /* @__PURE__ */ r(
58
- H,
57
+ d ? /* @__PURE__ */ r("span", { className: "block mb-1 w-full max-w-[500px]", children: /* @__PURE__ */ w("span", { className: "multi-select-input-row flex w-full items-end gap-3", children: [
58
+ /* @__PURE__ */ r(Q, { "data-disabled": i, className: "flex-1", children: /* @__PURE__ */ r(
59
+ W,
59
60
  {
60
61
  disabled: i,
61
- placeholder: b,
62
+ placeholder: d,
62
63
  value: s,
63
- onChange: m,
64
- onKeyDown: f,
64
+ onChange: p,
65
+ onKeyDown: u,
65
66
  className: "text-sm px-3",
66
- title: b
67
+ title: d
67
68
  }
68
69
  ) }),
69
- x("shrink-0")
70
- ] }) }) : x("self-start multi-select-confirm-wrapper--stacked")
70
+ b("shrink-0")
71
+ ] }) }) : b("self-start multi-select-confirm-wrapper--stacked")
71
72
  ] });
72
- }, W = ({
73
+ }, Z = ({
73
74
  dir: c,
74
75
  lang: i,
75
76
  node: e,
76
77
  readonly: s,
77
78
  locale: o,
78
79
  resolvedDefaultButtonText: l,
79
- handleButtonClick: m,
80
- inputValue: f,
81
- handleInputChange: h,
82
- handleSendClick: b
80
+ handleButtonClick: p,
81
+ inputValue: u,
82
+ handleInputChange: m,
83
+ handleSendClick: d,
84
+ onAcceptPlaceholder: h
83
85
  }) => /* @__PURE__ */ w("span", { className: "single-select-container inline-flex w-full flex-col", children: [
84
- /* @__PURE__ */ r("span", { className: "flex flex-wrap gap-y-[9px] gap-x-2", children: e.properties?.buttonTexts?.map((p, x) => {
85
- const u = e.properties?.buttonValues?.[x], n = u !== void 0 ? u : p;
86
+ /* @__PURE__ */ r("span", { className: "flex flex-wrap gap-y-[9px] gap-x-2", children: e.properties?.buttonTexts?.map((b, f) => {
87
+ const x = e.properties?.buttonValues?.[f], n = x !== void 0 ? x : b;
86
88
  return /* @__PURE__ */ r(
87
89
  U,
88
90
  {
@@ -90,15 +92,15 @@ const Q = ({
90
92
  variant: "outline",
91
93
  type: "button",
92
94
  size: "sm",
93
- onClick: () => m(n),
95
+ onClick: () => p(n),
94
96
  className: j(
95
97
  "max-w-full shrink whitespace-normal break-words text-start leading-5 h-auto min-h-8 px-3 py-1.5",
96
98
  "hover:bg-gray-200",
97
- l === p && "select"
99
+ l === b && "select"
98
100
  ),
99
- children: p
101
+ children: b
100
102
  },
101
- x
103
+ f
102
104
  );
103
105
  }) }),
104
106
  e.properties?.placeholder && /* @__PURE__ */ r("span", { className: "mt-[9px] mb-1", children: /* @__PURE__ */ r(
@@ -109,21 +111,23 @@ const Q = ({
109
111
  disabled: s,
110
112
  locale: o,
111
113
  placeholder: e.properties.placeholder,
112
- value: f,
113
- onChange: h,
114
- onSend: b,
114
+ value: u,
115
+ onChange: m,
116
+ onSend: d,
117
+ onAcceptPlaceholder: h,
115
118
  title: e.properties.placeholder
116
119
  }
117
120
  ) })
118
- ] }), X = ({
121
+ ] }), $ = ({
119
122
  dir: c,
120
123
  lang: i,
121
124
  readonly: e,
122
125
  locale: s,
123
126
  placeholder: o,
124
127
  value: l,
125
- onChange: m,
126
- onSend: f
128
+ onChange: p,
129
+ onSend: u,
130
+ onAcceptPlaceholder: m
127
131
  }) => o ? /* @__PURE__ */ r(
128
132
  O,
129
133
  {
@@ -133,94 +137,108 @@ const Q = ({
133
137
  locale: s,
134
138
  placeholder: o,
135
139
  value: l,
136
- onChange: m,
137
- onSend: f,
140
+ onChange: p,
141
+ onSend: u,
142
+ onAcceptPlaceholder: m,
138
143
  title: o
139
144
  }
140
- ) : null, ie = ({
145
+ ) : null, pe = ({
141
146
  dir: c,
142
147
  lang: i,
143
148
  node: e,
144
149
  readonly: s,
145
150
  locale: o,
146
151
  defaultButtonText: l,
147
- defaultInputText: m,
148
- defaultSelectedValues: f,
149
- onSend: h,
150
- confirmButtonText: b,
151
- beforeSend: p = () => !0
152
+ defaultInputText: p,
153
+ defaultSelectedValues: u,
154
+ onSend: m,
155
+ confirmButtonText: d,
156
+ beforeSend: h = () => !0,
157
+ onPlaceholderAccepted: b
152
158
  }) => {
153
- const x = P(o), u = b || x.confirmButtonText, [n, N] = v.useState(m || ""), [d, k] = v.useState(
154
- f || []
155
- ), B = JSON.stringify({
159
+ const f = X(o), x = d || f.confirmButtonText, [n, v] = C.useState(p || ""), [g, M] = C.useState(
160
+ u || []
161
+ ), I = JSON.stringify({
156
162
  buttonTexts: e.properties?.buttonTexts,
157
163
  buttonValues: e.properties?.buttonValues,
158
164
  isMultiSelect: e.properties?.isMultiSelect,
159
165
  placeholder: e.properties?.placeholder,
160
166
  variableName: e.properties?.variableName
161
- }), g = e.properties?.isMultiSelect ?? !1, z = e.properties?.buttonTexts || [], M = !g && z.length === 0 && !e.properties?.placeholder, S = J.normalizeVariableName(e.properties?.variableName || "") || l || u, T = v.useMemo(() => M ? {
167
+ }), N = e.properties?.isMultiSelect ?? !1, z = e.properties?.buttonTexts || [], D = !N && z.length === 0 && !e.properties?.placeholder, S = J.normalizeVariableName(e.properties?.variableName || "") || l || x, T = C.useMemo(() => D ? {
162
168
  ...e,
163
169
  properties: {
164
170
  ...e.properties || {},
165
171
  buttonTexts: [S],
166
172
  buttonValues: [S]
167
173
  }
168
- } : e, [S, e, M]), C = T.properties?.buttonTexts || [], I = T.properties?.buttonValues || [], D = !g && C.length > 0, F = (t) => {
174
+ } : e, [S, e, D]), k = T.properties?.buttonTexts || [], E = T.properties?.buttonValues || [], P = !N && k.length > 0, F = (t) => {
169
175
  const a = {
170
176
  variableName: e.properties?.variableName || "",
171
177
  buttonText: t
172
178
  };
173
- p?.(a) && h?.(a);
179
+ h?.(a) && m?.(a);
174
180
  }, G = (t, a) => {
175
- k((K) => a ? [...K, t] : K.filter((_) => _ !== t));
176
- }, E = () => {
177
- const t = d.length === 0 && !n?.trim(), a = {
181
+ M((A) => a ? [...A, t] : A.filter((_) => _ !== t));
182
+ }, K = () => {
183
+ const t = g.length === 0 && !n?.trim(), a = {
178
184
  variableName: e.properties?.variableName || "",
179
- selectedValues: d,
185
+ selectedValues: g,
180
186
  inputText: n?.trim() || void 0
181
187
  };
182
- s || t || p?.(a) && h?.(a);
188
+ s || t || h?.(a) && m?.(a);
183
189
  }, V = (t) => {
184
- N(t.target.value);
190
+ v(t.target.value);
191
+ }, y = (t) => {
192
+ v(t);
193
+ try {
194
+ Promise.resolve(b?.()).catch(() => {
195
+ });
196
+ } catch {
197
+ }
185
198
  }, L = (t) => {
186
- t.nativeEvent.isComposing || t.keyCode === 229 || t.key === "Enter" && !t.shiftKey && (t.preventDefault(), g ? d.length === 0 && !n.trim() || E() : y());
187
- }, y = () => {
199
+ H(
200
+ t,
201
+ e.properties?.placeholder,
202
+ s,
203
+ y
204
+ ) || t.nativeEvent.isComposing || t.keyCode === 229 || t.key === "Enter" && !t.shiftKey && (t.preventDefault(), N ? g.length === 0 && !n.trim() || K() : B());
205
+ }, B = () => {
188
206
  const t = {
189
207
  variableName: e.properties?.variableName || "",
190
208
  inputText: n
191
209
  };
192
- p?.(t) && h?.(t);
193
- }, R = v.useMemo(() => {
210
+ h?.(t) && m?.(t);
211
+ }, R = C.useMemo(() => {
194
212
  if (!l)
195
213
  return;
196
- const t = I.indexOf(l);
214
+ const t = E.indexOf(l);
197
215
  if (t > -1)
198
- return C[t] ?? l;
199
- const a = C.indexOf(l);
216
+ return k[t] ?? l;
217
+ const a = k.indexOf(l);
200
218
  if (a > -1)
201
- return C[a];
202
- }, [l, C, I]);
203
- return v.useEffect(() => {
204
- N(m || "");
205
- }, [m, B]), v.useEffect(() => {
206
- k(f || []);
207
- }, [f, B]), /* @__PURE__ */ w("span", { className: "custom-variable-container inline-flex items-center flex-wrap", children: [
208
- g && /* @__PURE__ */ r(
209
- Q,
219
+ return k[a];
220
+ }, [l, k, E]);
221
+ return C.useEffect(() => {
222
+ v(p || "");
223
+ }, [p, I]), C.useEffect(() => {
224
+ M(u || []);
225
+ }, [u, I]), /* @__PURE__ */ w("span", { className: "custom-variable-container inline-flex items-center flex-wrap", children: [
226
+ N && /* @__PURE__ */ r(
227
+ Y,
210
228
  {
211
229
  node: e,
212
230
  readonly: s,
213
- selectedValues: d,
231
+ selectedValues: g,
214
232
  inputValue: n,
215
- confirmButtonText: u,
233
+ confirmButtonText: x,
216
234
  handleCheckboxChange: G,
217
235
  handleInputChange: V,
218
236
  handleKeyDown: L,
219
- handleConfirmClick: E
237
+ handleConfirmClick: K
220
238
  }
221
239
  ),
222
- !g && D && /* @__PURE__ */ r(
223
- W,
240
+ !N && P && /* @__PURE__ */ r(
241
+ Z,
224
242
  {
225
243
  dir: c,
226
244
  lang: i,
@@ -231,11 +249,12 @@ const Q = ({
231
249
  handleButtonClick: F,
232
250
  inputValue: n,
233
251
  handleInputChange: V,
234
- handleSendClick: y
252
+ handleSendClick: B,
253
+ onAcceptPlaceholder: y
235
254
  }
236
255
  ),
237
- !g && !D && e.properties?.placeholder && /* @__PURE__ */ r(
238
- X,
256
+ !N && !P && e.properties?.placeholder && /* @__PURE__ */ r(
257
+ $,
239
258
  {
240
259
  dir: c,
241
260
  lang: i,
@@ -244,12 +263,13 @@ const Q = ({
244
263
  placeholder: e.properties.placeholder,
245
264
  value: n,
246
265
  onChange: V,
247
- onSend: y
266
+ onSend: B,
267
+ onAcceptPlaceholder: y
248
268
  }
249
269
  )
250
270
  ] });
251
271
  };
252
272
  export {
253
- ie as default
273
+ pe as default
254
274
  };
255
275
  //# sourceMappingURL=CustomVariable.es.js.map