@xpert-ai/chatkit-ui 0.3.10 → 0.3.11

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 (334) hide show
  1. package/dist/app/assets/{_baseUniq-C7BtuOD4.js → _baseUniq-o6HzEWPP.js} +1 -1
  2. package/dist/app/assets/{abap-CN-SVWC1.js → abap-C6-1sPrI.js} +1 -1
  3. package/dist/app/assets/{abnf-Devg7n2l.js → abnf-B_713Ho1.js} +1 -1
  4. package/dist/app/assets/{actionscript-CZ7YzOxK.js → actionscript-DzDuE3ox.js} +1 -1
  5. package/dist/app/assets/{ada-CGRTJDn5.js → ada-CZL6S3aD.js} +1 -1
  6. package/dist/app/assets/{agda-CYFoVFec.js → agda-Cq6nCjKe.js} +1 -1
  7. package/dist/app/assets/{al-B6U9U9qF.js → al-ZMkb2Kyd.js} +1 -1
  8. package/dist/app/assets/{antlr4-C1xA7o7x.js → antlr4-Dgdl4Ntb.js} +1 -1
  9. package/dist/app/assets/{apacheconf-BnDpsDxg.js → apacheconf-ClUBm_7j.js} +1 -1
  10. package/dist/app/assets/{apex-DTfgWNso.js → apex-BTf0DZVV.js} +1 -1
  11. package/dist/app/assets/{apl-Dup2TRv7.js → apl-cNmUD0th.js} +1 -1
  12. package/dist/app/assets/{applescript-Dd5CuI2Z.js → applescript-D-beiR9A.js} +1 -1
  13. package/dist/app/assets/{aql-B6jquVu7.js → aql-v67Y-YZs.js} +1 -1
  14. package/dist/app/assets/{arc-CJZU-Doo.js → arc-DlSYGjj9.js} +1 -1
  15. package/dist/app/assets/{architectureDiagram-Q4EWVU46-CcRa3fPX.js → architectureDiagram-Q4EWVU46-BXOCqJrq.js} +1 -1
  16. package/dist/app/assets/{arduino-BJFUlH9O.js → arduino-BpzS1nC1.js} +1 -1
  17. package/dist/app/assets/{arff-K3ObwE7-.js → arff-CsJ5CW-W.js} +1 -1
  18. package/dist/app/assets/{asciidoc-BWGJBUCk.js → asciidoc-BTU_RYL4.js} +1 -1
  19. package/dist/app/assets/{asm6502-DGyMR9-F.js → asm6502-U6FszQ5L.js} +1 -1
  20. package/dist/app/assets/{asmatmel-DRV-W-vO.js → asmatmel-zid_De91.js} +1 -1
  21. package/dist/app/assets/{aspnet-D6YjmEbU.js → aspnet-kkuC1wo9.js} +1 -1
  22. package/dist/app/assets/{autohotkey-D7aNOV-2.js → autohotkey-mg-MT2po.js} +1 -1
  23. package/dist/app/assets/{autoit-BfMQEt5a.js → autoit-CgpHVjU6.js} +1 -1
  24. package/dist/app/assets/{avisynth-Cr5D24eK.js → avisynth-BZWbMsxO.js} +1 -1
  25. package/dist/app/assets/{avro-idl-au5qvAGX.js → avro-idl-Ct0ISkkH.js} +1 -1
  26. package/dist/app/assets/{bash-DPARiH4q.js → bash-D_LOxOea.js} +1 -1
  27. package/dist/app/assets/{basic-Bl-qIKzP.js → basic-wu82dq7P.js} +1 -1
  28. package/dist/app/assets/{batch-CyzwLoMP.js → batch-LkZGC2dX.js} +1 -1
  29. package/dist/app/assets/{bbcode-CSt8K3oj.js → bbcode-BH2NkNxu.js} +1 -1
  30. package/dist/app/assets/{bicep-snhK4ZGM.js → bicep-DGKrILm8.js} +1 -1
  31. package/dist/app/assets/{birb-DTWfyoJP.js → birb-UNNWz9VN.js} +1 -1
  32. package/dist/app/assets/{bison-Bs9VnqX4.js → bison-CUvSsmyR.js} +1 -1
  33. package/dist/app/assets/{blockDiagram-DXYQGD6D-ZIz-zl5Z.js → blockDiagram-DXYQGD6D-BxQggcio.js} +1 -1
  34. package/dist/app/assets/{bnf-BTMr6Z-r.js → bnf-BHI1Z0hn.js} +1 -1
  35. package/dist/app/assets/{brainfuck-B4AMjIgw.js → brainfuck-CbX2IFwh.js} +1 -1
  36. package/dist/app/assets/{brightscript-DkB4fIA2.js → brightscript-BOZjnzIt.js} +1 -1
  37. package/dist/app/assets/{bro-CyD6_saP.js → bro-DjqC4cIN.js} +1 -1
  38. package/dist/app/assets/{bsl-Dd6kisue.js → bsl-bByDNkfu.js} +1 -1
  39. package/dist/app/assets/{c-xDizvpdc.js → c-VahGyU-Z.js} +1 -1
  40. package/dist/app/assets/{c4Diagram-AHTNJAMY-CNmZ0uOH.js → c4Diagram-AHTNJAMY-CwJ8mP6o.js} +1 -1
  41. package/dist/app/assets/{cfscript-BRHKqHKC.js → cfscript-Bgsey_t-.js} +1 -1
  42. package/dist/app/assets/{chaiscript-qXHtrBHW.js → chaiscript-CaNAol7k.js} +1 -1
  43. package/dist/app/assets/channel--mMkm_8G.js +1 -0
  44. package/dist/app/assets/{chunk-4BX2VUAB-Bxdpl75m.js → chunk-4BX2VUAB-B1_lWP7h.js} +1 -1
  45. package/dist/app/assets/{chunk-4TB4RGXK-o2O1F-vl.js → chunk-4TB4RGXK-CKtq_VWl.js} +1 -1
  46. package/dist/app/assets/{chunk-55IACEB6-DNGdIDCz.js → chunk-55IACEB6-DfyAJqc-.js} +1 -1
  47. package/dist/app/assets/{chunk-EDXVE4YY-NBPNQat3.js → chunk-EDXVE4YY-IvTJi92M.js} +1 -1
  48. package/dist/app/assets/{chunk-FMBD7UC4-C6HcxS8j.js → chunk-FMBD7UC4-BX_vx0tx.js} +1 -1
  49. package/dist/app/assets/{chunk-OYMX7WX6-CqNUNWBa.js → chunk-OYMX7WX6-DUAzb7el.js} +1 -1
  50. package/dist/app/assets/{chunk-QZHKN3VN-Ce4PpLTT.js → chunk-QZHKN3VN-Crec0McH.js} +1 -1
  51. package/dist/app/assets/{chunk-YZCP3GAM-Jbicl8Oz.js → chunk-YZCP3GAM-re08Oy2_.js} +1 -1
  52. package/dist/app/assets/{cil-Bp0fyxwu.js → cil-71R7ZiLb.js} +1 -1
  53. package/dist/app/assets/classDiagram-6PBFFD2Q-wdathR7C.js +1 -0
  54. package/dist/app/assets/classDiagram-v2-HSJHXN6E-wdathR7C.js +1 -0
  55. package/dist/app/assets/{clike-B5qXsSgy.js → clike-0BVdVlPZ.js} +1 -1
  56. package/dist/app/assets/{clojure-BnPW08QU.js → clojure-BQ4G_N90.js} +1 -1
  57. package/dist/app/assets/clone-BwBrS_lI.js +1 -0
  58. package/dist/app/assets/{cmake-CenC4u-Z.js → cmake-D-6VV5r1.js} +1 -1
  59. package/dist/app/assets/{cobol-cJj9hGGz.js → cobol-BWw4ETsO.js} +1 -1
  60. package/dist/app/assets/{coffeescript-BiyZCnvU.js → coffeescript-VX2ASB-2.js} +1 -1
  61. package/dist/app/assets/{concurnas-DlQMUC-W.js → concurnas-C6rawzFm.js} +1 -1
  62. package/dist/app/assets/{coq-D9VlutLe.js → coq-BJMXUHZn.js} +1 -1
  63. package/dist/app/assets/{core-QlFKCucJ.js → core-DLrIFmIQ.js} +1 -1
  64. package/dist/app/assets/{cose-bilkent-S5V4N54A-BNku-4LY.js → cose-bilkent-S5V4N54A-D45kYgUt.js} +1 -1
  65. package/dist/app/assets/{cpp-DundBhIm.js → cpp-Cu0mBsY-.js} +1 -1
  66. package/dist/app/assets/{crystal-BJxpyDAb.js → crystal-CKptwoF-.js} +1 -1
  67. package/dist/app/assets/{csharp-BE7AV3HR.js → csharp-CYZgv-zo.js} +1 -1
  68. package/dist/app/assets/{cshtml-yB48S1Z7.js → cshtml-BuOJGIid.js} +1 -1
  69. package/dist/app/assets/{csp-UiNnT39_.js → csp-oEsOJvZB.js} +1 -1
  70. package/dist/app/assets/{css-Co5gwKGy.js → css-B0MLJNOy.js} +1 -1
  71. package/dist/app/assets/{css-extras-CWwSJeJI.js → css-extras-JR2GXaTG.js} +1 -1
  72. package/dist/app/assets/{csv-X57UvgXj.js → csv-nh-0u7QO.js} +1 -1
  73. package/dist/app/assets/{cypher-a2Mi0icN.js → cypher-ClNNXF75.js} +1 -1
  74. package/dist/app/assets/{d-B-S94f6j.js → d-CWdZUMoh.js} +1 -1
  75. package/dist/app/assets/{dagre-KV5264BT-CA5Iyjj2.js → dagre-KV5264BT-BMrkKcda.js} +1 -1
  76. package/dist/app/assets/{dart-CBwENTij.js → dart-ihZfCx4r.js} +1 -1
  77. package/dist/app/assets/{dataweave-vL3GQaOO.js → dataweave-ZM7I40Ox.js} +1 -1
  78. package/dist/app/assets/{dax-B63WGzpC.js → dax-DgehXfC1.js} +1 -1
  79. package/dist/app/assets/{dhall-CelgGn7p.js → dhall-B-8B_ccq.js} +1 -1
  80. package/dist/app/assets/{diagram-5BDNPKRD-8qJ08_34.js → diagram-5BDNPKRD-l6kyxaOH.js} +1 -1
  81. package/dist/app/assets/{diagram-G4DWMVQ6-DiuyBBFy.js → diagram-G4DWMVQ6-Cnn3RVaZ.js} +1 -1
  82. package/dist/app/assets/{diagram-MMDJMWI5-B78L8iUx.js → diagram-MMDJMWI5-eex0Zu03.js} +1 -1
  83. package/dist/app/assets/{diagram-TYMM5635-C-cJaCky.js → diagram-TYMM5635-C6Le58WP.js} +1 -1
  84. package/dist/app/assets/{diff-CyB4cCCh.js → diff-BdEZ_2JT.js} +1 -1
  85. package/dist/app/assets/{django-DNf3_-40.js → django-DXYmPi1j.js} +1 -1
  86. package/dist/app/assets/{dns-zone-file-Bwtul7jh.js → dns-zone-file-CdatFoZp.js} +1 -1
  87. package/dist/app/assets/{docker-Ckcv6uYy.js → docker-C7ZvW9JS.js} +1 -1
  88. package/dist/app/assets/{dot-BpwaWm3P.js → dot-DawGiMaK.js} +1 -1
  89. package/dist/app/assets/{ebnf-BT22yGRe.js → ebnf-CiZXNkHY.js} +1 -1
  90. package/dist/app/assets/{editorconfig-B5fpJPFt.js → editorconfig-BvgNpfRF.js} +1 -1
  91. package/dist/app/assets/{eiffel-IrvfJtt9.js → eiffel-C2bgj5jb.js} +1 -1
  92. package/dist/app/assets/{ejs-tezmVozu.js → ejs-D3oa_o2N.js} +1 -1
  93. package/dist/app/assets/{elixir-Cbvtat6S.js → elixir-C2M1tzST.js} +1 -1
  94. package/dist/app/assets/{elm-DGm6xIVu.js → elm-4FPTir66.js} +1 -1
  95. package/dist/app/assets/{erDiagram-SMLLAGMA-6E0kIcZT.js → erDiagram-SMLLAGMA-CO-YY4RS.js} +1 -1
  96. package/dist/app/assets/{erb-CFryaxKm.js → erb-BycImsXK.js} +1 -1
  97. package/dist/app/assets/{erlang-DYFfC1Hc.js → erlang-DM_L35YJ.js} +1 -1
  98. package/dist/app/assets/{etlua-CuuvODeA.js → etlua-CxR_CAQl.js} +1 -1
  99. package/dist/app/assets/{excel-formula-CMLZr1XF.js → excel-formula-7kFhzyHw.js} +1 -1
  100. package/dist/app/assets/{factor-CBqIsMRM.js → factor-x7wU-3rN.js} +1 -1
  101. package/dist/app/assets/{false-D1e8pMhY.js → false-DOUNnw3d.js} +1 -1
  102. package/dist/app/assets/{firestore-security-rules-LB9X5pKv.js → firestore-security-rules-DTC3Hd2Z.js} +1 -1
  103. package/dist/app/assets/{flow-Bul6zphu.js → flow-Cy9gswVq.js} +1 -1
  104. package/dist/app/assets/{flowDiagram-DWJPFMVM-0-LBun7j.js → flowDiagram-DWJPFMVM-CEJD5iZj.js} +1 -1
  105. package/dist/app/assets/{fortran-avrBBG-t.js → fortran-qKGVyaPH.js} +1 -1
  106. package/dist/app/assets/{fsharp-Da0OMlr5.js → fsharp-BBqGjJcb.js} +1 -1
  107. package/dist/app/assets/{ftl-BLGtw12r.js → ftl-ife_OgBG.js} +1 -1
  108. package/dist/app/assets/{ganttDiagram-T4ZO3ILL-CoT2xy2C.js → ganttDiagram-T4ZO3ILL-9PZlx_Uq.js} +1 -1
  109. package/dist/app/assets/{gap-DnpNXLGb.js → gap-yfxS5XPA.js} +1 -1
  110. package/dist/app/assets/{gcode-C-YgWXuN.js → gcode-Bgg19DOc.js} +1 -1
  111. package/dist/app/assets/{gdscript-DAvMF6q-.js → gdscript-CBhHE5SS.js} +1 -1
  112. package/dist/app/assets/{gedcom-fOe6tHML.js → gedcom-Ctm1PKdU.js} +1 -1
  113. package/dist/app/assets/{gherkin-QoqhhX3c.js → gherkin-B0UyYQfJ.js} +1 -1
  114. package/dist/app/assets/{git-mmUR7P8C.js → git-DIrkjPbi.js} +1 -1
  115. package/dist/app/assets/{gitGraphDiagram-UUTBAWPF-BlEeLM5v.js → gitGraphDiagram-UUTBAWPF-DwWNMDGY.js} +1 -1
  116. package/dist/app/assets/{glsl-UFAxYwmc.js → glsl-CH7j2HNR.js} +1 -1
  117. package/dist/app/assets/{gml-15gqe8jv.js → gml-CSH00tv_.js} +1 -1
  118. package/dist/app/assets/{gn-D2cRv9HM.js → gn-BxeWNMcv.js} +1 -1
  119. package/dist/app/assets/{go-af6hluJ5.js → go-MhuRmXjP.js} +1 -1
  120. package/dist/app/assets/{go-module-CSkIZ2V2.js → go-module-BSiyVsgM.js} +1 -1
  121. package/dist/app/assets/{graph-V2Lk_LJQ.js → graph-CepdxPJJ.js} +1 -1
  122. package/dist/app/assets/{graphql-C4W3COTB.js → graphql-BAmq1q6o.js} +1 -1
  123. package/dist/app/assets/{groovy-LX0aJY4N.js → groovy-Dx2QuTb9.js} +1 -1
  124. package/dist/app/assets/{haml-DgPT25JU.js → haml-XuFmtTqQ.js} +1 -1
  125. package/dist/app/assets/{handlebars-DnPdOO3j.js → handlebars-CAbnVnb3.js} +1 -1
  126. package/dist/app/assets/{haskell-Cz-DO_9T.js → haskell-ZWPWDFbB.js} +1 -1
  127. package/dist/app/assets/{haxe-BcXKe-RN.js → haxe-DMh38jAt.js} +1 -1
  128. package/dist/app/assets/{hcl-CI_H70Cy.js → hcl-BE_4zt1q.js} +1 -1
  129. package/dist/app/assets/{hlsl-BVSUE0UP.js → hlsl-TB2RVDX1.js} +1 -1
  130. package/dist/app/assets/{hoon-DUDk1-mZ.js → hoon-om1gSLm8.js} +1 -1
  131. package/dist/app/assets/{hpkp-Cg14q4rt.js → hpkp-Ci38KUv8.js} +1 -1
  132. package/dist/app/assets/{hsts-CiLAqzjF.js → hsts-CAEdyaAG.js} +1 -1
  133. package/dist/app/assets/{http-k6r8-D3a.js → http-THY6Y53C.js} +1 -1
  134. package/dist/app/assets/{ichigojam-D1350tJF.js → ichigojam-s0kP-jjV.js} +1 -1
  135. package/dist/app/assets/{icon-G7t2RcDt.js → icon-Y5BB6k3b.js} +1 -1
  136. package/dist/app/assets/{icu-message-format-BdY26hTN.js → icu-message-format-6GheGdTN.js} +1 -1
  137. package/dist/app/assets/{idris-BTdCcMqm.js → idris-AihHk8dS.js} +1 -1
  138. package/dist/app/assets/{iecst-Cps4yb31.js → iecst-CD1Q8Tnd.js} +1 -1
  139. package/dist/app/assets/{ignore-BaqL9LVf.js → ignore-BJVKkvqY.js} +1 -1
  140. package/dist/app/assets/{index-DZgiecHp.js → index-0WK7GO0-.js} +137 -137
  141. package/dist/app/assets/{infoDiagram-42DDH7IO-C5WRhHMZ.js → infoDiagram-42DDH7IO-BhBoxXVX.js} +1 -1
  142. package/dist/app/assets/{inform7-CJ4Ea640.js → inform7-CerZVqbA.js} +1 -1
  143. package/dist/app/assets/{ini-CMk0LTSt.js → ini-DbH-6HIu.js} +1 -1
  144. package/dist/app/assets/{io-BY1arkkA.js → io-Id1TPr6t.js} +1 -1
  145. package/dist/app/assets/{ishikawaDiagram-UXIWVN3A-CujF8avF.js → ishikawaDiagram-UXIWVN3A-a5HASfMP.js} +1 -1
  146. package/dist/app/assets/{j-BtA0FT9A.js → j-BLEsfI66.js} +1 -1
  147. package/dist/app/assets/{java-Dq6K3dDo.js → java-Dk_dMkQq.js} +1 -1
  148. package/dist/app/assets/{javadoc--QfkQyn3.js → javadoc-RXhLwA8L.js} +1 -1
  149. package/dist/app/assets/{javadoclike-DHlxpHg_.js → javadoclike-BUIjV7mD.js} +1 -1
  150. package/dist/app/assets/{javascript-CiHRbnrD.js → javascript-Dx2iULzE.js} +1 -1
  151. package/dist/app/assets/{javastacktrace-CAzEsUFD.js → javastacktrace-DkBumNW_.js} +1 -1
  152. package/dist/app/assets/{jexl-OMHLp1C2.js → jexl-kq_Kr8N1.js} +1 -1
  153. package/dist/app/assets/{jolie-DjpYgUBT.js → jolie-TUxZc3iz.js} +1 -1
  154. package/dist/app/assets/{journeyDiagram-VCZTEJTY-BvWw68VX.js → journeyDiagram-VCZTEJTY-cH7y7LfB.js} +1 -1
  155. package/dist/app/assets/{jq-CfpvZPjn.js → jq-COVGaHBO.js} +1 -1
  156. package/dist/app/assets/{js-extras-GatQG1RN.js → js-extras-GrY_q6jW.js} +1 -1
  157. package/dist/app/assets/{js-templates-EDSPEGpw.js → js-templates-DKangBnB.js} +1 -1
  158. package/dist/app/assets/{jsdoc-DvnVxEff.js → jsdoc-DBwDG9t_.js} +1 -1
  159. package/dist/app/assets/{json-rD7fsbVA.js → json-Crs6JAAl.js} +1 -1
  160. package/dist/app/assets/{json5-8A2eFbeI.js → json5-Bjv9HTdW.js} +1 -1
  161. package/dist/app/assets/{jsonp-DqLbhQhU.js → jsonp-D5aVdmyI.js} +1 -1
  162. package/dist/app/assets/{jsstacktrace-B3oYGKpp.js → jsstacktrace-MmLxBswX.js} +1 -1
  163. package/dist/app/assets/{jsx-BSx_Z2tX.js → jsx-D76iTPpw.js} +1 -1
  164. package/dist/app/assets/{julia-CTig0dl4.js → julia-D0R0V64N.js} +1 -1
  165. package/dist/app/assets/{kanban-definition-6JOO6SKY-ukpPLSlO.js → kanban-definition-6JOO6SKY-B6W3WFhP.js} +1 -1
  166. package/dist/app/assets/{keepalived-CVMJlYu5.js → keepalived-pv7Nc_3u.js} +1 -1
  167. package/dist/app/assets/{keyman-DJCETKty.js → keyman-D-qt4XfM.js} +1 -1
  168. package/dist/app/assets/{kotlin-Bta0p1AV.js → kotlin-DklLWenR.js} +1 -1
  169. package/dist/app/assets/{kumir-Cj-4DX4d.js → kumir-B5qtRLO8.js} +1 -1
  170. package/dist/app/assets/{kusto-BxA15XBQ.js → kusto-DPgNV-aB.js} +1 -1
  171. package/dist/app/assets/{latex-DNhdDZm3.js → latex-Dt4W4pm4.js} +1 -1
  172. package/dist/app/assets/{latte-qvVrZpe0.js → latte-CnByxqzM.js} +1 -1
  173. package/dist/app/assets/{layout-Dece5Eoh.js → layout-DjgAEmz5.js} +1 -1
  174. package/dist/app/assets/{less-JN0I_yaR.js → less-Cd6bdXoN.js} +1 -1
  175. package/dist/app/assets/{lilypond-CrhVJ_HY.js → lilypond-DWfhngiv.js} +1 -1
  176. package/dist/app/assets/{linear-G4Xyquvj.js → linear-6Y24Iii_.js} +1 -1
  177. package/dist/app/assets/{liquid-DsAs078r.js → liquid-CQR5STti.js} +1 -1
  178. package/dist/app/assets/{lisp-zIP1uWlx.js → lisp-C5V4YrgB.js} +1 -1
  179. package/dist/app/assets/{livescript-Cpo_JYpM.js → livescript-C2o1Um1B.js} +1 -1
  180. package/dist/app/assets/{llvm-7T-5IZDO.js → llvm-eRxkXgPh.js} +1 -1
  181. package/dist/app/assets/{log-D4KYbt8V.js → log-B8C2pNrc.js} +1 -1
  182. package/dist/app/assets/{lolcode-B98SYcg6.js → lolcode-DN_iYFOb.js} +1 -1
  183. package/dist/app/assets/{lua-5Sgad_Y1.js → lua-Cii0g-ih.js} +1 -1
  184. package/dist/app/assets/{magma-YmaRBzDP.js → magma-DU5b0nZe.js} +1 -1
  185. package/dist/app/assets/{makefile-CH99bdMK.js → makefile-BATBhQbg.js} +1 -1
  186. package/dist/app/assets/{markdown-oE_j9-K5.js → markdown-CyFQtnhr.js} +1 -1
  187. package/dist/app/assets/{markup-Cj68d5lL.js → markup-D7dtUU31.js} +1 -1
  188. package/dist/app/assets/{markup-templating--M-8saOW.js → markup-templating-BVUgC3Fv.js} +1 -1
  189. package/dist/app/assets/{matlab-Blcs29hj.js → matlab-LDamQaVe.js} +1 -1
  190. package/dist/app/assets/{maxscript-Cz6tG3l4.js → maxscript-Cke3roEA.js} +1 -1
  191. package/dist/app/assets/{mel-C2e-nOf0.js → mel-Bbam9VOL.js} +1 -1
  192. package/dist/app/assets/{mermaid-JGhp4pvz.js → mermaid-Co6MoeJw.js} +1 -1
  193. package/dist/app/assets/{min-DR_LOODM.js → min-BxxZzbCc.js} +1 -1
  194. package/dist/app/assets/{mindmap-definition-QFDTVHPH-69-3TNaY.js → mindmap-definition-QFDTVHPH-DqMhwZE6.js} +1 -1
  195. package/dist/app/assets/{mizar-By7umtmb.js → mizar-Bv0uG9Jl.js} +1 -1
  196. package/dist/app/assets/{mongodb-CzzrMTqO.js → mongodb-DM4nXhmT.js} +1 -1
  197. package/dist/app/assets/{monkey-nThQ2hqL.js → monkey-DFYmoJdR.js} +1 -1
  198. package/dist/app/assets/{moonscript-BT1DCkRy.js → moonscript-C54x0dZv.js} +1 -1
  199. package/dist/app/assets/{n1ql-BxqedaTy.js → n1ql-Dqyc4X6B.js} +1 -1
  200. package/dist/app/assets/{n4js-CvBwNm06.js → n4js-DMN0iqI1.js} +1 -1
  201. package/dist/app/assets/{nand2tetris-hdl-BR-BWdVl.js → nand2tetris-hdl-Dbfe1CFh.js} +1 -1
  202. package/dist/app/assets/{naniscript-CUTNtxSo.js → naniscript-DUigyx_P.js} +1 -1
  203. package/dist/app/assets/{nasm-CG3iwYpU.js → nasm-BE-iJGmZ.js} +1 -1
  204. package/dist/app/assets/{neon-D1mzBdCW.js → neon-ByDZ6TdK.js} +1 -1
  205. package/dist/app/assets/{nevod-B4fbpXB8.js → nevod-CGctFSM4.js} +1 -1
  206. package/dist/app/assets/{nginx-Dz07JlBt.js → nginx-CpUZp5AB.js} +1 -1
  207. package/dist/app/assets/{nim-l7Hzpgef.js → nim-CH653Nty.js} +1 -1
  208. package/dist/app/assets/{nix-BcyZX9fs.js → nix-DWkDp4wO.js} +1 -1
  209. package/dist/app/assets/{nsis-CbWMMy-u.js → nsis-D2mCIH7e.js} +1 -1
  210. package/dist/app/assets/{objectivec-CTbz42tX.js → objectivec-Dzg3PZLr.js} +1 -1
  211. package/dist/app/assets/{ocaml-DDhvwn9h.js → ocaml-BaZ_JHo_.js} +1 -1
  212. package/dist/app/assets/{opencl-BooeTE_H.js → opencl-CQ2Sws-3.js} +1 -1
  213. package/dist/app/assets/{openqasm-BcALf5H8.js → openqasm-CYcP2Jue.js} +1 -1
  214. package/dist/app/assets/{oz-CCjXXCI9.js → oz-Dd7LCxAb.js} +1 -1
  215. package/dist/app/assets/{parigp-Ch581w1L.js → parigp-V9xW4sFC.js} +1 -1
  216. package/dist/app/assets/{parser-CO04Dt3f.js → parser-NdfacUXY.js} +1 -1
  217. package/dist/app/assets/{pascal-RwNRe4sf.js → pascal-eeV11KnY.js} +1 -1
  218. package/dist/app/assets/{pascaligo-Br5NLgWJ.js → pascaligo-BCvdKr51.js} +1 -1
  219. package/dist/app/assets/{pcaxis-DMBra9bX.js → pcaxis-CPcHUmiA.js} +1 -1
  220. package/dist/app/assets/{peoplecode-CwcopPzT.js → peoplecode-BEaF_y5w.js} +1 -1
  221. package/dist/app/assets/{perl-CSMcLIWB.js → perl-BgDz3epk.js} +1 -1
  222. package/dist/app/assets/{php-DiXNNhAJ.js → php-CoVHsURd.js} +1 -1
  223. package/dist/app/assets/{php-extras-DqKbjNuI.js → php-extras-B62THd35.js} +1 -1
  224. package/dist/app/assets/{phpdoc-Bs3AtrPb.js → phpdoc-BiBmceI8.js} +1 -1
  225. package/dist/app/assets/{pieDiagram-DEJITSTG-CVATLitR.js → pieDiagram-DEJITSTG-CdxOa-_c.js} +1 -1
  226. package/dist/app/assets/{plsql-DMapOhnD.js → plsql-DcW-ECB2.js} +1 -1
  227. package/dist/app/assets/{powerquery-C6K60LJ5.js → powerquery-BB3KAvPk.js} +1 -1
  228. package/dist/app/assets/{powershell-ClaBhTHT.js → powershell-B6pXMaya.js} +1 -1
  229. package/dist/app/assets/{processing-C7f2HZD4.js → processing-BCoiCIEL.js} +1 -1
  230. package/dist/app/assets/{prolog-8Y_f7bFw.js → prolog-zERm80ia.js} +1 -1
  231. package/dist/app/assets/{promql-kBPHQsPd.js → promql-BzCyDVEG.js} +1 -1
  232. package/dist/app/assets/{properties-COBHWYsI.js → properties-KLJshh-y.js} +1 -1
  233. package/dist/app/assets/{protobuf-DuT7m84o.js → protobuf-CkY4_yDl.js} +1 -1
  234. package/dist/app/assets/{psl-Rg1I3FsM.js → psl-678OMRj3.js} +1 -1
  235. package/dist/app/assets/{pug-BWt627vl.js → pug-aYDUGyTW.js} +1 -1
  236. package/dist/app/assets/{puppet-BgwMzfTZ.js → puppet-DDSipSd3.js} +1 -1
  237. package/dist/app/assets/{pure-cQVWsVvC.js → pure-CCySSQgh.js} +1 -1
  238. package/dist/app/assets/{purebasic-DuMxKKOW.js → purebasic-B4E28S3c.js} +1 -1
  239. package/dist/app/assets/{purescript-dNYusnJF.js → purescript-DQmYwfWM.js} +1 -1
  240. package/dist/app/assets/{q-BEB_iiJi.js → q-DmN11G0W.js} +1 -1
  241. package/dist/app/assets/{qml-x0odfyFU.js → qml-Bav4ShVA.js} +1 -1
  242. package/dist/app/assets/{qore-Czp8u7uZ.js → qore-DlpkKC7s.js} +1 -1
  243. package/dist/app/assets/{qsharp-CV2He7aD.js → qsharp-Db8XzKlO.js} +1 -1
  244. package/dist/app/assets/{quadrantDiagram-34T5L4WZ-2I_my3gr.js → quadrantDiagram-34T5L4WZ-CuI8QNVf.js} +1 -1
  245. package/dist/app/assets/{r-BQnOKIcZ.js → r-UrBYMAwV.js} +1 -1
  246. package/dist/app/assets/{racket-Q7ZgT820.js → racket-DI7UzDAh.js} +1 -1
  247. package/dist/app/assets/{reason-CZurI9l1.js → reason-3qRspytu.js} +1 -1
  248. package/dist/app/assets/{regex-yyW1qRoS.js → regex-BC-kNwhG.js} +1 -1
  249. package/dist/app/assets/{rego-dneEtD-9.js → rego-DPV60Y7E.js} +1 -1
  250. package/dist/app/assets/{renpy-DHLgDbc5.js → renpy-CfdrLDsk.js} +1 -1
  251. package/dist/app/assets/{requirementDiagram-MS252O5E-WRot9cpV.js → requirementDiagram-MS252O5E-mSVPj4GW.js} +1 -1
  252. package/dist/app/assets/{rest-tEHuyyeb.js → rest-fue1dMMF.js} +1 -1
  253. package/dist/app/assets/{rip-PZiHTBtI.js → rip-BMwJaBh1.js} +1 -1
  254. package/dist/app/assets/{roboconf-s47cZkme.js → roboconf-CVhKwCtE.js} +1 -1
  255. package/dist/app/assets/{robotframework-Dys8Odnh.js → robotframework-D46lspLM.js} +1 -1
  256. package/dist/app/assets/{ruby-CgW8iXoj.js → ruby-Y8ECNxd-.js} +1 -1
  257. package/dist/app/assets/{rust-DrQgB0Zy.js → rust-BGEPDhUl.js} +1 -1
  258. package/dist/app/assets/{sankeyDiagram-XADWPNL6-Cw2Cd2C-.js → sankeyDiagram-XADWPNL6-D0rDQxH3.js} +1 -1
  259. package/dist/app/assets/{sas-CQjPnh9G.js → sas-HpwRSma8.js} +1 -1
  260. package/dist/app/assets/{sass-D-pwV54_.js → sass-C8S_g3pi.js} +1 -1
  261. package/dist/app/assets/{scala-BXoJnAPf.js → scala-BDXC9YzQ.js} +1 -1
  262. package/dist/app/assets/{scheme-CZTdSL3P.js → scheme-Bz1gS-5U.js} +1 -1
  263. package/dist/app/assets/{scss-DKQl0WMY.js → scss-CK3tWBk5.js} +1 -1
  264. package/dist/app/assets/{sequenceDiagram-FGHM5R23-Dl2GwjBA.js → sequenceDiagram-FGHM5R23-CvZ2gxFN.js} +1 -1
  265. package/dist/app/assets/{shell-session-By0_a3lG.js → shell-session-Dlpy3KwM.js} +1 -1
  266. package/dist/app/assets/{smali-rDRA3K5P.js → smali-inXCMGaN.js} +1 -1
  267. package/dist/app/assets/{smalltalk-BCC5Y70A.js → smalltalk-emFCd9G0.js} +1 -1
  268. package/dist/app/assets/{smarty-CheF6oUS.js → smarty-9WlivmJ_.js} +1 -1
  269. package/dist/app/assets/{sml-C7O0072z.js → sml-BPLAOzSM.js} +1 -1
  270. package/dist/app/assets/{solidity-B6WpiNl8.js → solidity-DsNcaJdQ.js} +1 -1
  271. package/dist/app/assets/{solution-file-mrXcAaSD.js → solution-file-Yt1yDsC6.js} +1 -1
  272. package/dist/app/assets/{soy-DM-dQnCP.js → soy-BvQ_9PC9.js} +1 -1
  273. package/dist/app/assets/{sparql-BALRGc1w.js → sparql-Co_5GMgg.js} +1 -1
  274. package/dist/app/assets/{splunk-spl-Lm805jdW.js → splunk-spl-CIi7m0SN.js} +1 -1
  275. package/dist/app/assets/{sqf-BLxc9mu9.js → sqf-BMzaGs6N.js} +1 -1
  276. package/dist/app/assets/{sql-BABrQQwM.js → sql-CIzLB7Jl.js} +1 -1
  277. package/dist/app/assets/{squirrel-BZs4ppK_.js → squirrel-pQOw9s_O.js} +1 -1
  278. package/dist/app/assets/{stan-C3_KXqI8.js → stan-X6TSWZ3J.js} +1 -1
  279. package/dist/app/assets/{stateDiagram-FHFEXIEX-BBLOyJQc.js → stateDiagram-FHFEXIEX-DHrv5_lW.js} +1 -1
  280. package/dist/app/assets/stateDiagram-v2-QKLJ7IA2-Mi2Qqm51.js +1 -0
  281. package/dist/app/assets/{stylus-DYWNGxeE.js → stylus-Dc8FVrBE.js} +1 -1
  282. package/dist/app/assets/{swift-Dbbwwjph.js → swift-Nb17T9Da.js} +1 -1
  283. package/dist/app/assets/{systemd-kfENwMGr.js → systemd-Bh6mhwe0.js} +1 -1
  284. package/dist/app/assets/{t4-cs-j60KAqjl.js → t4-cs-BXOewazB.js} +1 -1
  285. package/dist/app/assets/{t4-templating-D7rN0XdV.js → t4-templating-CvVs8AOu.js} +1 -1
  286. package/dist/app/assets/{t4-vb-BkzsKdtn.js → t4-vb-Da_aHQSz.js} +1 -1
  287. package/dist/app/assets/{tap-CloiZNS6.js → tap-CeK_krr9.js} +1 -1
  288. package/dist/app/assets/{tcl-BLS3lKuo.js → tcl-B1_4s1NN.js} +1 -1
  289. package/dist/app/assets/{textile-DoXuO5zd.js → textile-CIotBIcg.js} +1 -1
  290. package/dist/app/assets/{timeline-definition-GMOUNBTQ-D4aq14bG.js → timeline-definition-GMOUNBTQ-Idd8mRvY.js} +1 -1
  291. package/dist/app/assets/{toml-B7EydEyO.js → toml-4OD_ScNb.js} +1 -1
  292. package/dist/app/assets/{tremor-DefmCSfD.js → tremor-Dj67VH5m.js} +1 -1
  293. package/dist/app/assets/{tt2-Dk4n4y_8.js → tt2-WN6mgHZs.js} +1 -1
  294. package/dist/app/assets/{turtle-CMZrYWUV.js → turtle-DaOM2rqc.js} +1 -1
  295. package/dist/app/assets/{twig-Cw3bDWQg.js → twig-DYOf2PCc.js} +1 -1
  296. package/dist/app/assets/{typescript-COyDlZmE.js → typescript-CP4F_YEP.js} +1 -1
  297. package/dist/app/assets/{typoscript-pqj-Rkzu.js → typoscript-Ca-_onRa.js} +1 -1
  298. package/dist/app/assets/{unrealscript-2kz6O4e3.js → unrealscript-CZXNdRNZ.js} +1 -1
  299. package/dist/app/assets/{uorazor-70BNWtPS.js → uorazor-Cgi4M9Hx.js} +1 -1
  300. package/dist/app/assets/{uri-2Pp7xHkO.js → uri-C0HsAQWz.js} +1 -1
  301. package/dist/app/assets/{v-DPTh38cB.js → v-CXBTFCNE.js} +1 -1
  302. package/dist/app/assets/{vala-P78WkQtV.js → vala-CkJoijNq.js} +1 -1
  303. package/dist/app/assets/{vbnet-oSdPu3Zk.js → vbnet-Bw813Rf9.js} +1 -1
  304. package/dist/app/assets/{velocity-Bk8Sb_la.js → velocity-D6Cr8-IV.js} +1 -1
  305. package/dist/app/assets/{vennDiagram-DHZGUBPP-RVC0Zzca.js → vennDiagram-DHZGUBPP-L7tEgOUJ.js} +1 -1
  306. package/dist/app/assets/{verilog-W-waCO87.js → verilog-C5hUvzKW.js} +1 -1
  307. package/dist/app/assets/{vhdl-CRTx70Gy.js → vhdl-1WE1L3lB.js} +1 -1
  308. package/dist/app/assets/{vim-DqaWIQvn.js → vim-sSIYQMdS.js} +1 -1
  309. package/dist/app/assets/{visual-basic-DcIxLPGK.js → visual-basic---zDZ_1J.js} +1 -1
  310. package/dist/app/assets/{wardley-RL74JXVD-wSStpxTu.js → wardley-RL74JXVD-BygmHcr8.js} +1 -1
  311. package/dist/app/assets/{wardleyDiagram-NUSXRM2D-CsNxOPkZ.js → wardleyDiagram-NUSXRM2D-CQXGGm97.js} +1 -1
  312. package/dist/app/assets/{warpscript-CXuC-gfV.js → warpscript-_YBcLkw_.js} +1 -1
  313. package/dist/app/assets/{wasm-BYGNmfKy.js → wasm-CFA5AE9r.js} +1 -1
  314. package/dist/app/assets/{web-idl-Ddz0j7XW.js → web-idl-C1SxHUMy.js} +1 -1
  315. package/dist/app/assets/{wiki-BFmUvjHP.js → wiki-D9sHOvre.js} +1 -1
  316. package/dist/app/assets/{wolfram-CMaOR44l.js → wolfram-CPWRsLKq.js} +1 -1
  317. package/dist/app/assets/{wren-z6IMsXsF.js → wren-RYBcpwe2.js} +1 -1
  318. package/dist/app/assets/{xeora-CWH8WXpg.js → xeora-CO7UHQdI.js} +1 -1
  319. package/dist/app/assets/{xml-doc-D17_o6IW.js → xml-doc-sHBA_Lol.js} +1 -1
  320. package/dist/app/assets/{xojo-C88I5Flc.js → xojo-RPTwT3Ta.js} +1 -1
  321. package/dist/app/assets/{xquery-BYufQFi6.js → xquery-NS9gR-L7.js} +1 -1
  322. package/dist/app/assets/{xychartDiagram-5P7HB3ND-BmPVuV9G.js → xychartDiagram-5P7HB3ND-CmSAJqr9.js} +1 -1
  323. package/dist/app/assets/{yaml-CCyYaEav.js → yaml-DvQPZF8D.js} +1 -1
  324. package/dist/app/assets/{yang-B2YdCBas.js → yang-DY8xn4cC.js} +1 -1
  325. package/dist/app/assets/{zig-DcA133wZ.js → zig-DMcJdVmM.js} +1 -1
  326. package/dist/app/index.html +1 -1
  327. package/dist/index.cjs +291 -2
  328. package/dist/index.js +296 -3
  329. package/package.json +4 -4
  330. package/dist/app/assets/channel-XvEFGDvE.js +0 -1
  331. package/dist/app/assets/classDiagram-6PBFFD2Q-Bs9iSMe-.js +0 -1
  332. package/dist/app/assets/classDiagram-v2-HSJHXN6E-Bs9iSMe-.js +0 -1
  333. package/dist/app/assets/clone-Dw-mRGet.js +0 -1
  334. package/dist/app/assets/stateDiagram-v2-QKLJ7IA2-DbJ12qyy.js +0 -1
package/dist/index.cjs CHANGED
@@ -10232,6 +10232,7 @@ function RequestUserInputResultCard({
10232
10232
  }
10233
10233
 
10234
10234
  // src/components/thread/messages/widget.tsx
10235
+ var import_react7 = require("react");
10235
10236
  var import_a2ui_react = require("@xpert-ai/a2ui-react");
10236
10237
  var import_jsx_runtime38 = require("react/jsx-runtime");
10237
10238
  function WidgetMessage({ messageId, data }) {
@@ -10240,10 +10241,21 @@ function WidgetMessage({ messageId, data }) {
10240
10241
  const baseSurfaceId = `widget-${messageId}`;
10241
10242
  return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "space-y-3", children: widgets.map((widget, index) => {
10242
10243
  const config = widget?.config;
10243
- if (!config || typeof config !== "object") {
10244
+ const messages = Array.isArray(widget?.messages) ? widget.messages : [];
10245
+ const surfaceId = widgets.length > 1 ? `${baseSurfaceId}-${index}` : baseSurfaceId;
10246
+ if (messages.length > 0) {
10247
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
10248
+ FlatWidgetSurface,
10249
+ {
10250
+ messages,
10251
+ surfaceId
10252
+ },
10253
+ widget?.name ?? surfaceId
10254
+ );
10255
+ }
10256
+ if (!hasLegacySurface(config)) {
10244
10257
  return null;
10245
10258
  }
10246
- const surfaceId = widgets.length > 1 ? `${baseSurfaceId}-${index}` : baseSurfaceId;
10247
10259
  return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
10248
10260
  import_a2ui_react.SurfaceRenderer,
10249
10261
  {
@@ -10254,6 +10266,283 @@ function WidgetMessage({ messageId, data }) {
10254
10266
  );
10255
10267
  }) });
10256
10268
  }
10269
+ function FlatWidgetSurface({
10270
+ messages,
10271
+ surfaceId
10272
+ }) {
10273
+ const { processMessages } = (0, import_a2ui_react.useA2UI)();
10274
+ const normalizedMessages = (0, import_react7.useMemo)(
10275
+ () => normalizeFlatWidgetMessages(messages, surfaceId),
10276
+ [messages, surfaceId]
10277
+ );
10278
+ (0, import_react7.useEffect)(() => {
10279
+ if (normalizedMessages.length === 0) return;
10280
+ processMessages(normalizedMessages);
10281
+ return () => {
10282
+ processMessages([{ deleteSurface: { surfaceId } }]);
10283
+ };
10284
+ }, [normalizedMessages, processMessages, surfaceId]);
10285
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_a2ui_react.A2UIRenderer, { surfaceId });
10286
+ }
10287
+ function normalizeFlatWidgetMessages(messages, surfaceId) {
10288
+ const generatedTemplateDataPaths = collectTemplateDataPaths(messages);
10289
+ const indexedRowsByPath = collectIndexedRowsByPath(
10290
+ messages,
10291
+ generatedTemplateDataPaths
10292
+ );
10293
+ return messages.map((message) => ({
10294
+ ...message,
10295
+ ...message.beginRendering ? {
10296
+ beginRendering: {
10297
+ ...message.beginRendering,
10298
+ surfaceId
10299
+ }
10300
+ } : {},
10301
+ ...message.surfaceUpdate ? {
10302
+ surfaceUpdate: {
10303
+ ...message.surfaceUpdate,
10304
+ surfaceId,
10305
+ components: normalizeComponentInstances(
10306
+ message.surfaceUpdate.components
10307
+ )
10308
+ }
10309
+ } : {},
10310
+ ...message.dataModelUpdate ? {
10311
+ dataModelUpdate: normalizeDataModelUpdate(
10312
+ message.dataModelUpdate,
10313
+ surfaceId,
10314
+ indexedRowsByPath
10315
+ )
10316
+ } : {},
10317
+ ...message.deleteSurface ? {
10318
+ deleteSurface: {
10319
+ ...message.deleteSurface,
10320
+ surfaceId
10321
+ }
10322
+ } : {}
10323
+ }));
10324
+ }
10325
+ function normalizeDataModelUpdate(dataModelUpdate, surfaceId, indexedRowsByPath) {
10326
+ const path = dataModelUpdate.path ?? "/";
10327
+ const indexedRows = indexedRowsByPath.get(path);
10328
+ if (!indexedRows) {
10329
+ return {
10330
+ ...dataModelUpdate,
10331
+ surfaceId
10332
+ };
10333
+ }
10334
+ return {
10335
+ ...dataModelUpdate,
10336
+ surfaceId,
10337
+ contents: [
10338
+ {
10339
+ key: ".",
10340
+ valueString: JSON.stringify(indexedRows)
10341
+ }
10342
+ ]
10343
+ };
10344
+ }
10345
+ function collectTemplateDataPaths(messages) {
10346
+ const paths = /* @__PURE__ */ new Set();
10347
+ for (const message of messages) {
10348
+ for (const component of message.surfaceUpdate?.components ?? []) {
10349
+ const componentType = getComponentType(component);
10350
+ if (componentType !== "List") continue;
10351
+ const properties = getComponentProperties(component);
10352
+ const children = getObjectProperty(properties, "children");
10353
+ const template = getObjectProperty(children, "template");
10354
+ const dataPath = getStringProperty(template, "dataPath") ?? getStringProperty(template, "dataBinding");
10355
+ if (dataPath) {
10356
+ paths.add(dataPath);
10357
+ }
10358
+ }
10359
+ }
10360
+ return paths;
10361
+ }
10362
+ function collectIndexedRowsByPath(messages, generatedTemplateDataPaths) {
10363
+ const indexedRowsByPath = /* @__PURE__ */ new Map();
10364
+ for (const message of messages) {
10365
+ const dataModelUpdate = message.dataModelUpdate;
10366
+ const path = dataModelUpdate?.path ?? "/";
10367
+ if (!dataModelUpdate || !generatedTemplateDataPaths.has(path)) {
10368
+ continue;
10369
+ }
10370
+ const indexedRows = convertIndexedValueMapsToRows(
10371
+ dataModelUpdate.contents
10372
+ );
10373
+ if (indexedRows) {
10374
+ indexedRowsByPath.set(path, indexedRows);
10375
+ }
10376
+ }
10377
+ return indexedRowsByPath;
10378
+ }
10379
+ function convertIndexedValueMapsToRows(contents) {
10380
+ const rows = [];
10381
+ let hasIndexedRows = false;
10382
+ for (const item of contents) {
10383
+ const value = readValueMapValue(item);
10384
+ if (value === void 0) {
10385
+ continue;
10386
+ }
10387
+ const match = item.key.match(/^(?:r(\d+)|row_(\d+))_(.+)$/);
10388
+ if (!match) {
10389
+ rows[0] = {
10390
+ ...rows[0] ?? {},
10391
+ [item.key]: value
10392
+ };
10393
+ continue;
10394
+ }
10395
+ const index = Number(match[1] ?? match[2]);
10396
+ const field = match[3];
10397
+ if (!Number.isInteger(index)) {
10398
+ continue;
10399
+ }
10400
+ rows[index] = {
10401
+ ...rows[index] ?? {},
10402
+ [field]: value
10403
+ };
10404
+ hasIndexedRows = true;
10405
+ }
10406
+ return hasIndexedRows ? rows.map((row) => row ?? {}) : void 0;
10407
+ }
10408
+ function readValueMapValue(valueMap) {
10409
+ if (valueMap.valueString !== void 0) return valueMap.valueString;
10410
+ if (valueMap.valueNumber !== void 0) return valueMap.valueNumber;
10411
+ if (valueMap.valueBoolean !== void 0) return valueMap.valueBoolean;
10412
+ if (Array.isArray(valueMap.valueMap)) {
10413
+ return valueMap.valueMap.reduce((result, item) => {
10414
+ const value = readValueMapValue(item);
10415
+ if (value !== void 0) {
10416
+ result[item.key] = value;
10417
+ }
10418
+ return result;
10419
+ }, {});
10420
+ }
10421
+ return void 0;
10422
+ }
10423
+ function normalizeComponentInstances(components) {
10424
+ return components.flatMap((component) => {
10425
+ const componentType = getComponentType(component);
10426
+ const properties = getComponentProperties(component);
10427
+ if (!componentType || !properties) {
10428
+ return [component];
10429
+ }
10430
+ const normalizedProperties = normalizeComponentProperties(
10431
+ componentType,
10432
+ properties
10433
+ );
10434
+ const normalizedComponent = {
10435
+ ...component,
10436
+ component: {
10437
+ [componentType]: normalizedProperties
10438
+ }
10439
+ };
10440
+ const templateComponent = getGeneratedTemplateComponent(properties);
10441
+ if (!templateComponent) {
10442
+ return [normalizedComponent];
10443
+ }
10444
+ return [
10445
+ normalizedComponent,
10446
+ ...normalizeComponentInstances([templateComponent])
10447
+ ];
10448
+ });
10449
+ }
10450
+ function normalizeComponentProperties(componentType, properties) {
10451
+ const normalized = Object.fromEntries(
10452
+ Object.entries(properties).map(([key, value]) => [
10453
+ key,
10454
+ normalizePropertyValue(key, value)
10455
+ ])
10456
+ );
10457
+ if (componentType !== "List") {
10458
+ return normalized;
10459
+ }
10460
+ const children = getObjectProperty(normalized, "children");
10461
+ const template = getObjectProperty(children, "template");
10462
+ const dataPath = getStringProperty(template, "dataPath");
10463
+ const itemTemplate = getObjectProperty(template, "itemTemplate");
10464
+ const componentId = getStringProperty(template, "componentId") ?? getStringProperty(itemTemplate, "id");
10465
+ if (!dataPath || !componentId) {
10466
+ return normalized;
10467
+ }
10468
+ const direction = getStringProperty(children, "direction");
10469
+ if (direction && !normalized.direction) {
10470
+ normalized.direction = direction;
10471
+ }
10472
+ normalized.children = {
10473
+ template: {
10474
+ componentId,
10475
+ dataBinding: dataPath
10476
+ }
10477
+ };
10478
+ return normalized;
10479
+ }
10480
+ function normalizePropertyValue(key, value) {
10481
+ if (key === "text" && typeof value === "string") {
10482
+ return { literalString: value };
10483
+ }
10484
+ if (Array.isArray(value)) {
10485
+ return value.map((item) => normalizePropertyValue(key, item));
10486
+ }
10487
+ if (!isPlainObject2(value)) {
10488
+ return value;
10489
+ }
10490
+ return Object.fromEntries(
10491
+ Object.entries(value).map(([childKey, childValue]) => [
10492
+ childKey,
10493
+ childKey === "path" && typeof childValue === "string" ? normalizeGeneratedIndexedPath(childValue) : normalizePropertyValue(childKey, childValue)
10494
+ ])
10495
+ );
10496
+ }
10497
+ function normalizeGeneratedIndexedPath(path) {
10498
+ const match = path.match(/^\/[^/]+\/r\{index\}_(.+)$/);
10499
+ return match?.[1] ?? path;
10500
+ }
10501
+ function getGeneratedTemplateComponent(properties) {
10502
+ const children = getObjectProperty(properties, "children");
10503
+ const template = getObjectProperty(children, "template");
10504
+ const itemTemplate = getObjectProperty(template, "itemTemplate");
10505
+ const id = getStringProperty(itemTemplate, "id");
10506
+ const component = getObjectProperty(itemTemplate, "component");
10507
+ if (!id || !component) {
10508
+ return void 0;
10509
+ }
10510
+ return {
10511
+ id,
10512
+ component
10513
+ };
10514
+ }
10515
+ function getComponentType(component) {
10516
+ const entries = Object.keys(component.component ?? {});
10517
+ return entries.length === 1 ? entries[0] : void 0;
10518
+ }
10519
+ function getComponentProperties(component) {
10520
+ const componentType = getComponentType(component);
10521
+ if (!componentType) {
10522
+ return void 0;
10523
+ }
10524
+ return getObjectProperty(component.component, componentType);
10525
+ }
10526
+ function getObjectProperty(value, key) {
10527
+ if (!isPlainObject2(value)) {
10528
+ return void 0;
10529
+ }
10530
+ const property = value[key];
10531
+ return isPlainObject2(property) ? property : void 0;
10532
+ }
10533
+ function getStringProperty(value, key) {
10534
+ if (!isPlainObject2(value)) {
10535
+ return void 0;
10536
+ }
10537
+ const property = value[key];
10538
+ return typeof property === "string" ? property : void 0;
10539
+ }
10540
+ function isPlainObject2(value) {
10541
+ return !!value && typeof value === "object" && !Array.isArray(value);
10542
+ }
10543
+ function hasLegacySurface(surface) {
10544
+ return !!surface?.componentTree;
10545
+ }
10257
10546
 
10258
10547
  // src/components/thread/messages/ai.tsx
10259
10548
  var import_jsx_runtime39 = require("react/jsx-runtime");
package/dist/index.js CHANGED
@@ -10322,7 +10322,12 @@ function RequestUserInputResultCard({
10322
10322
  }
10323
10323
 
10324
10324
  // src/components/thread/messages/widget.tsx
10325
- import { SurfaceRenderer } from "@xpert-ai/a2ui-react";
10325
+ import { useEffect as useEffect15, useMemo as useMemo10 } from "react";
10326
+ import {
10327
+ A2UIRenderer,
10328
+ SurfaceRenderer,
10329
+ useA2UI
10330
+ } from "@xpert-ai/a2ui-react";
10326
10331
  import { jsx as jsx38 } from "react/jsx-runtime";
10327
10332
  function WidgetMessage({ messageId, data }) {
10328
10333
  const widgets = Array.isArray(data.widgets) ? data.widgets : [];
@@ -10330,10 +10335,21 @@ function WidgetMessage({ messageId, data }) {
10330
10335
  const baseSurfaceId = `widget-${messageId}`;
10331
10336
  return /* @__PURE__ */ jsx38("div", { className: "space-y-3", children: widgets.map((widget, index) => {
10332
10337
  const config = widget?.config;
10333
- if (!config || typeof config !== "object") {
10338
+ const messages = Array.isArray(widget?.messages) ? widget.messages : [];
10339
+ const surfaceId = widgets.length > 1 ? `${baseSurfaceId}-${index}` : baseSurfaceId;
10340
+ if (messages.length > 0) {
10341
+ return /* @__PURE__ */ jsx38(
10342
+ FlatWidgetSurface,
10343
+ {
10344
+ messages,
10345
+ surfaceId
10346
+ },
10347
+ widget?.name ?? surfaceId
10348
+ );
10349
+ }
10350
+ if (!hasLegacySurface(config)) {
10334
10351
  return null;
10335
10352
  }
10336
- const surfaceId = widgets.length > 1 ? `${baseSurfaceId}-${index}` : baseSurfaceId;
10337
10353
  return /* @__PURE__ */ jsx38(
10338
10354
  SurfaceRenderer,
10339
10355
  {
@@ -10344,6 +10360,283 @@ function WidgetMessage({ messageId, data }) {
10344
10360
  );
10345
10361
  }) });
10346
10362
  }
10363
+ function FlatWidgetSurface({
10364
+ messages,
10365
+ surfaceId
10366
+ }) {
10367
+ const { processMessages } = useA2UI();
10368
+ const normalizedMessages = useMemo10(
10369
+ () => normalizeFlatWidgetMessages(messages, surfaceId),
10370
+ [messages, surfaceId]
10371
+ );
10372
+ useEffect15(() => {
10373
+ if (normalizedMessages.length === 0) return;
10374
+ processMessages(normalizedMessages);
10375
+ return () => {
10376
+ processMessages([{ deleteSurface: { surfaceId } }]);
10377
+ };
10378
+ }, [normalizedMessages, processMessages, surfaceId]);
10379
+ return /* @__PURE__ */ jsx38(A2UIRenderer, { surfaceId });
10380
+ }
10381
+ function normalizeFlatWidgetMessages(messages, surfaceId) {
10382
+ const generatedTemplateDataPaths = collectTemplateDataPaths(messages);
10383
+ const indexedRowsByPath = collectIndexedRowsByPath(
10384
+ messages,
10385
+ generatedTemplateDataPaths
10386
+ );
10387
+ return messages.map((message) => ({
10388
+ ...message,
10389
+ ...message.beginRendering ? {
10390
+ beginRendering: {
10391
+ ...message.beginRendering,
10392
+ surfaceId
10393
+ }
10394
+ } : {},
10395
+ ...message.surfaceUpdate ? {
10396
+ surfaceUpdate: {
10397
+ ...message.surfaceUpdate,
10398
+ surfaceId,
10399
+ components: normalizeComponentInstances(
10400
+ message.surfaceUpdate.components
10401
+ )
10402
+ }
10403
+ } : {},
10404
+ ...message.dataModelUpdate ? {
10405
+ dataModelUpdate: normalizeDataModelUpdate(
10406
+ message.dataModelUpdate,
10407
+ surfaceId,
10408
+ indexedRowsByPath
10409
+ )
10410
+ } : {},
10411
+ ...message.deleteSurface ? {
10412
+ deleteSurface: {
10413
+ ...message.deleteSurface,
10414
+ surfaceId
10415
+ }
10416
+ } : {}
10417
+ }));
10418
+ }
10419
+ function normalizeDataModelUpdate(dataModelUpdate, surfaceId, indexedRowsByPath) {
10420
+ const path = dataModelUpdate.path ?? "/";
10421
+ const indexedRows = indexedRowsByPath.get(path);
10422
+ if (!indexedRows) {
10423
+ return {
10424
+ ...dataModelUpdate,
10425
+ surfaceId
10426
+ };
10427
+ }
10428
+ return {
10429
+ ...dataModelUpdate,
10430
+ surfaceId,
10431
+ contents: [
10432
+ {
10433
+ key: ".",
10434
+ valueString: JSON.stringify(indexedRows)
10435
+ }
10436
+ ]
10437
+ };
10438
+ }
10439
+ function collectTemplateDataPaths(messages) {
10440
+ const paths = /* @__PURE__ */ new Set();
10441
+ for (const message of messages) {
10442
+ for (const component of message.surfaceUpdate?.components ?? []) {
10443
+ const componentType = getComponentType(component);
10444
+ if (componentType !== "List") continue;
10445
+ const properties = getComponentProperties(component);
10446
+ const children = getObjectProperty(properties, "children");
10447
+ const template = getObjectProperty(children, "template");
10448
+ const dataPath = getStringProperty(template, "dataPath") ?? getStringProperty(template, "dataBinding");
10449
+ if (dataPath) {
10450
+ paths.add(dataPath);
10451
+ }
10452
+ }
10453
+ }
10454
+ return paths;
10455
+ }
10456
+ function collectIndexedRowsByPath(messages, generatedTemplateDataPaths) {
10457
+ const indexedRowsByPath = /* @__PURE__ */ new Map();
10458
+ for (const message of messages) {
10459
+ const dataModelUpdate = message.dataModelUpdate;
10460
+ const path = dataModelUpdate?.path ?? "/";
10461
+ if (!dataModelUpdate || !generatedTemplateDataPaths.has(path)) {
10462
+ continue;
10463
+ }
10464
+ const indexedRows = convertIndexedValueMapsToRows(
10465
+ dataModelUpdate.contents
10466
+ );
10467
+ if (indexedRows) {
10468
+ indexedRowsByPath.set(path, indexedRows);
10469
+ }
10470
+ }
10471
+ return indexedRowsByPath;
10472
+ }
10473
+ function convertIndexedValueMapsToRows(contents) {
10474
+ const rows = [];
10475
+ let hasIndexedRows = false;
10476
+ for (const item of contents) {
10477
+ const value = readValueMapValue(item);
10478
+ if (value === void 0) {
10479
+ continue;
10480
+ }
10481
+ const match = item.key.match(/^(?:r(\d+)|row_(\d+))_(.+)$/);
10482
+ if (!match) {
10483
+ rows[0] = {
10484
+ ...rows[0] ?? {},
10485
+ [item.key]: value
10486
+ };
10487
+ continue;
10488
+ }
10489
+ const index = Number(match[1] ?? match[2]);
10490
+ const field = match[3];
10491
+ if (!Number.isInteger(index)) {
10492
+ continue;
10493
+ }
10494
+ rows[index] = {
10495
+ ...rows[index] ?? {},
10496
+ [field]: value
10497
+ };
10498
+ hasIndexedRows = true;
10499
+ }
10500
+ return hasIndexedRows ? rows.map((row) => row ?? {}) : void 0;
10501
+ }
10502
+ function readValueMapValue(valueMap) {
10503
+ if (valueMap.valueString !== void 0) return valueMap.valueString;
10504
+ if (valueMap.valueNumber !== void 0) return valueMap.valueNumber;
10505
+ if (valueMap.valueBoolean !== void 0) return valueMap.valueBoolean;
10506
+ if (Array.isArray(valueMap.valueMap)) {
10507
+ return valueMap.valueMap.reduce((result, item) => {
10508
+ const value = readValueMapValue(item);
10509
+ if (value !== void 0) {
10510
+ result[item.key] = value;
10511
+ }
10512
+ return result;
10513
+ }, {});
10514
+ }
10515
+ return void 0;
10516
+ }
10517
+ function normalizeComponentInstances(components) {
10518
+ return components.flatMap((component) => {
10519
+ const componentType = getComponentType(component);
10520
+ const properties = getComponentProperties(component);
10521
+ if (!componentType || !properties) {
10522
+ return [component];
10523
+ }
10524
+ const normalizedProperties = normalizeComponentProperties(
10525
+ componentType,
10526
+ properties
10527
+ );
10528
+ const normalizedComponent = {
10529
+ ...component,
10530
+ component: {
10531
+ [componentType]: normalizedProperties
10532
+ }
10533
+ };
10534
+ const templateComponent = getGeneratedTemplateComponent(properties);
10535
+ if (!templateComponent) {
10536
+ return [normalizedComponent];
10537
+ }
10538
+ return [
10539
+ normalizedComponent,
10540
+ ...normalizeComponentInstances([templateComponent])
10541
+ ];
10542
+ });
10543
+ }
10544
+ function normalizeComponentProperties(componentType, properties) {
10545
+ const normalized = Object.fromEntries(
10546
+ Object.entries(properties).map(([key, value]) => [
10547
+ key,
10548
+ normalizePropertyValue(key, value)
10549
+ ])
10550
+ );
10551
+ if (componentType !== "List") {
10552
+ return normalized;
10553
+ }
10554
+ const children = getObjectProperty(normalized, "children");
10555
+ const template = getObjectProperty(children, "template");
10556
+ const dataPath = getStringProperty(template, "dataPath");
10557
+ const itemTemplate = getObjectProperty(template, "itemTemplate");
10558
+ const componentId = getStringProperty(template, "componentId") ?? getStringProperty(itemTemplate, "id");
10559
+ if (!dataPath || !componentId) {
10560
+ return normalized;
10561
+ }
10562
+ const direction = getStringProperty(children, "direction");
10563
+ if (direction && !normalized.direction) {
10564
+ normalized.direction = direction;
10565
+ }
10566
+ normalized.children = {
10567
+ template: {
10568
+ componentId,
10569
+ dataBinding: dataPath
10570
+ }
10571
+ };
10572
+ return normalized;
10573
+ }
10574
+ function normalizePropertyValue(key, value) {
10575
+ if (key === "text" && typeof value === "string") {
10576
+ return { literalString: value };
10577
+ }
10578
+ if (Array.isArray(value)) {
10579
+ return value.map((item) => normalizePropertyValue(key, item));
10580
+ }
10581
+ if (!isPlainObject2(value)) {
10582
+ return value;
10583
+ }
10584
+ return Object.fromEntries(
10585
+ Object.entries(value).map(([childKey, childValue]) => [
10586
+ childKey,
10587
+ childKey === "path" && typeof childValue === "string" ? normalizeGeneratedIndexedPath(childValue) : normalizePropertyValue(childKey, childValue)
10588
+ ])
10589
+ );
10590
+ }
10591
+ function normalizeGeneratedIndexedPath(path) {
10592
+ const match = path.match(/^\/[^/]+\/r\{index\}_(.+)$/);
10593
+ return match?.[1] ?? path;
10594
+ }
10595
+ function getGeneratedTemplateComponent(properties) {
10596
+ const children = getObjectProperty(properties, "children");
10597
+ const template = getObjectProperty(children, "template");
10598
+ const itemTemplate = getObjectProperty(template, "itemTemplate");
10599
+ const id = getStringProperty(itemTemplate, "id");
10600
+ const component = getObjectProperty(itemTemplate, "component");
10601
+ if (!id || !component) {
10602
+ return void 0;
10603
+ }
10604
+ return {
10605
+ id,
10606
+ component
10607
+ };
10608
+ }
10609
+ function getComponentType(component) {
10610
+ const entries = Object.keys(component.component ?? {});
10611
+ return entries.length === 1 ? entries[0] : void 0;
10612
+ }
10613
+ function getComponentProperties(component) {
10614
+ const componentType = getComponentType(component);
10615
+ if (!componentType) {
10616
+ return void 0;
10617
+ }
10618
+ return getObjectProperty(component.component, componentType);
10619
+ }
10620
+ function getObjectProperty(value, key) {
10621
+ if (!isPlainObject2(value)) {
10622
+ return void 0;
10623
+ }
10624
+ const property = value[key];
10625
+ return isPlainObject2(property) ? property : void 0;
10626
+ }
10627
+ function getStringProperty(value, key) {
10628
+ if (!isPlainObject2(value)) {
10629
+ return void 0;
10630
+ }
10631
+ const property = value[key];
10632
+ return typeof property === "string" ? property : void 0;
10633
+ }
10634
+ function isPlainObject2(value) {
10635
+ return !!value && typeof value === "object" && !Array.isArray(value);
10636
+ }
10637
+ function hasLegacySurface(surface) {
10638
+ return !!surface?.componentTree;
10639
+ }
10347
10640
 
10348
10641
  // src/components/thread/messages/ai.tsx
10349
10642
  import { jsx as jsx39, jsxs as jsxs26 } from "react/jsx-runtime";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xpert-ai/chatkit-ui",
3
- "version": "0.3.10",
3
+ "version": "0.3.11",
4
4
  "description": "ChatKit UI.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -59,9 +59,9 @@
59
59
  "tw-animate-css": "^1.4.0",
60
60
  "uuid": "^11.1.0",
61
61
  "zod": "^4.1.12",
62
- "@xpert-ai/chatkit-types": "~0.3.8",
63
- "@xpert-ai/a2ui-react": "~0.1.0",
64
- "@xpert-ai/chatkit-web-shared": "~0.3.3"
62
+ "@xpert-ai/chatkit-types": "~0.3.9",
63
+ "@xpert-ai/chatkit-web-shared": "~0.3.3",
64
+ "@xpert-ai/a2ui-react": "~0.1.0"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@testing-library/jest-dom": "^6.9.1",
@@ -1 +0,0 @@
1
- import{aq as o,ar as n}from"./index-DZgiecHp.js";const t=(r,a)=>o.lang.round(n.parse(r)[a]);export{t as c};
@@ -1 +0,0 @@
1
- import{s as a,c as s,a as e,C as t}from"./chunk-4TB4RGXK-o2O1F-vl.js";import{_ as i}from"./index-DZgiecHp.js";import"./chunk-FMBD7UC4-C6HcxS8j.js";import"./chunk-YZCP3GAM-Jbicl8Oz.js";import"./chunk-55IACEB6-DNGdIDCz.js";import"./chunk-EDXVE4YY-NBPNQat3.js";var u={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{u as diagram};
@@ -1 +0,0 @@
1
- import{s as a,c as s,a as e,C as t}from"./chunk-4TB4RGXK-o2O1F-vl.js";import{_ as i}from"./index-DZgiecHp.js";import"./chunk-FMBD7UC4-C6HcxS8j.js";import"./chunk-YZCP3GAM-Jbicl8Oz.js";import"./chunk-55IACEB6-DNGdIDCz.js";import"./chunk-EDXVE4YY-NBPNQat3.js";var u={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{u as diagram};
@@ -1 +0,0 @@
1
- import{b as r}from"./graph-V2Lk_LJQ.js";var e=4;function a(o){return r(o,e)}export{a as c};
@@ -1 +0,0 @@
1
- import{s as t,b as r,a,S as s}from"./chunk-OYMX7WX6-CqNUNWBa.js";import{_ as i}from"./index-DZgiecHp.js";import"./chunk-55IACEB6-DNGdIDCz.js";import"./chunk-EDXVE4YY-NBPNQat3.js";var l={parser:a,get db(){return new s(2)},renderer:r,styles:t,init:i(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{l as diagram};