@baishuyun/chat-sdk 0.0.13 → 0.0.14

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 (421) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/chat-sdk.js +2617 -2634
  3. package/dist/chat-sdk.js.map +1 -1
  4. package/dist/chat-sdk.umd.cjs +93 -93
  5. package/dist/chat-sdk.umd.cjs.map +1 -1
  6. package/dist/chat.d.ts +5 -0
  7. package/dist/chat.d.ts.map +1 -0
  8. package/dist/components/biz-comp/FakeBotMsg.d.ts +8 -0
  9. package/dist/components/biz-comp/FakeBotMsg.d.ts.map +1 -0
  10. package/dist/components/biz-comp/FieldChecker.d.ts +18 -0
  11. package/dist/components/biz-comp/FieldChecker.d.ts.map +1 -0
  12. package/dist/components/biz-comp/FieldCheckerListMsg.d.ts +16 -0
  13. package/dist/components/biz-comp/FieldCheckerListMsg.d.ts.map +1 -0
  14. package/dist/components/biz-comp/FieldValueChecker.d.ts +16 -0
  15. package/dist/components/biz-comp/FieldValueChecker.d.ts.map +1 -0
  16. package/dist/components/biz-comp/SubformFieldsValueChecker.d.ts +22 -0
  17. package/dist/components/biz-comp/SubformFieldsValueChecker.d.ts.map +1 -0
  18. package/dist/components/biz-comp/chat-client.d.ts +13 -0
  19. package/dist/components/biz-comp/chat-client.d.ts.map +1 -0
  20. package/dist/components/biz-comp/chat-frame.d.ts +6 -0
  21. package/dist/components/biz-comp/chat-frame.d.ts.map +1 -0
  22. package/dist/components/biz-comp/conversation.d.ts +10 -0
  23. package/dist/components/biz-comp/conversation.d.ts.map +1 -0
  24. package/dist/components/biz-comp/dash-widget-icon.d.ts +7 -0
  25. package/dist/components/biz-comp/dash-widget-icon.d.ts.map +1 -0
  26. package/dist/components/biz-comp/dock-btn.d.ts +2 -0
  27. package/dist/components/biz-comp/dock-btn.d.ts.map +1 -0
  28. package/dist/components/biz-comp/error-boundary.d.ts +15 -0
  29. package/dist/components/biz-comp/error-boundary.d.ts.map +1 -0
  30. package/dist/components/biz-comp/error-msg.d.ts +4 -0
  31. package/dist/components/biz-comp/error-msg.d.ts.map +1 -0
  32. package/dist/components/biz-comp/field-icon.d.ts +5 -0
  33. package/dist/components/biz-comp/field-icon.d.ts.map +1 -0
  34. package/dist/components/biz-comp/highlight-msg.d.ts +4 -0
  35. package/dist/components/biz-comp/highlight-msg.d.ts.map +1 -0
  36. package/dist/components/biz-comp/markdown-part.d.ts +7 -0
  37. package/dist/components/biz-comp/markdown-part.d.ts.map +1 -0
  38. package/dist/components/biz-comp/markdown.d.ts +5 -0
  39. package/dist/components/biz-comp/markdown.d.ts.map +1 -0
  40. package/dist/components/biz-comp/message-content.d.ts +6 -0
  41. package/dist/components/biz-comp/message-content.d.ts.map +1 -0
  42. package/dist/components/biz-comp/messages.d.ts +3 -0
  43. package/dist/components/biz-comp/messages.d.ts.map +1 -0
  44. package/dist/components/biz-comp/multi-modal-input/attachment-btn.d.ts +9 -0
  45. package/dist/components/biz-comp/multi-modal-input/attachment-btn.d.ts.map +1 -0
  46. package/dist/components/biz-comp/multi-modal-input/clear-btn.d.ts +7 -0
  47. package/dist/components/biz-comp/multi-modal-input/clear-btn.d.ts.map +1 -0
  48. package/dist/components/biz-comp/multi-modal-input/index.d.ts +21 -0
  49. package/dist/components/biz-comp/multi-modal-input/index.d.ts.map +1 -0
  50. package/dist/components/biz-comp/multi-modal-input/preview-attachment.d.ts +12 -0
  51. package/dist/components/biz-comp/multi-modal-input/preview-attachment.d.ts.map +1 -0
  52. package/dist/components/biz-comp/multi-modal-input/prompt-input.d.ts +36 -0
  53. package/dist/components/biz-comp/multi-modal-input/prompt-input.d.ts.map +1 -0
  54. package/dist/components/biz-comp/opening-lines.d.ts +3 -0
  55. package/dist/components/biz-comp/opening-lines.d.ts.map +1 -0
  56. package/dist/components/biz-comp/preview-message-wrapper.d.ts +12 -0
  57. package/dist/components/biz-comp/preview-message-wrapper.d.ts.map +1 -0
  58. package/dist/components/biz-comp/preview-message.d.ts +13 -0
  59. package/dist/components/biz-comp/preview-message.d.ts.map +1 -0
  60. package/dist/components/biz-comp/response.d.ts +6 -0
  61. package/dist/components/biz-comp/response.d.ts.map +1 -0
  62. package/dist/components/biz-comp/suggestions.d.ts +8 -0
  63. package/dist/components/biz-comp/suggestions.d.ts.map +1 -0
  64. package/dist/components/bs-ui/abs-fullscreen-gradient-bg.d.ts +10 -0
  65. package/dist/components/bs-ui/abs-fullscreen-gradient-bg.d.ts.map +1 -0
  66. package/dist/components/bs-ui/attachment-part-group.d.ts +13 -0
  67. package/dist/components/bs-ui/attachment-part-group.d.ts.map +1 -0
  68. package/dist/components/bs-ui/attachment-part.d.ts +17 -0
  69. package/dist/components/bs-ui/attachment-part.d.ts.map +1 -0
  70. package/dist/components/bs-ui/attachments-previewer.d.ts +18 -0
  71. package/dist/components/bs-ui/attachments-previewer.d.ts.map +1 -0
  72. package/dist/components/bs-ui/base-button.d.ts +6 -0
  73. package/dist/components/bs-ui/base-button.d.ts.map +1 -0
  74. package/dist/components/bs-ui/border-color-animation.d.ts +11 -0
  75. package/dist/components/bs-ui/border-color-animation.d.ts.map +1 -0
  76. package/dist/components/bs-ui/bot-avatar-name.d.ts +6 -0
  77. package/dist/components/bs-ui/bot-avatar-name.d.ts.map +1 -0
  78. package/dist/components/bs-ui/bot-icon.d.ts +5 -0
  79. package/dist/components/bs-ui/bot-icon.d.ts.map +1 -0
  80. package/dist/components/bs-ui/bs-icons.d.ts +62 -0
  81. package/dist/components/bs-ui/bs-icons.d.ts.map +1 -0
  82. package/dist/components/bs-ui/card-field.d.ts +11 -0
  83. package/dist/components/bs-ui/card-field.d.ts.map +1 -0
  84. package/dist/components/bs-ui/card.d.ts +10 -0
  85. package/dist/components/bs-ui/card.d.ts.map +1 -0
  86. package/dist/components/bs-ui/chat-area-header.d.ts +13 -0
  87. package/dist/components/bs-ui/chat-area-header.d.ts.map +1 -0
  88. package/dist/components/bs-ui/circle-checker.d.ts +10 -0
  89. package/dist/components/bs-ui/circle-checker.d.ts.map +1 -0
  90. package/dist/components/bs-ui/collapsible-txt-msg.d.ts +11 -0
  91. package/dist/components/bs-ui/collapsible-txt-msg.d.ts.map +1 -0
  92. package/dist/components/bs-ui/confirm-dialog.d.ts +26 -0
  93. package/dist/components/bs-ui/confirm-dialog.d.ts.map +1 -0
  94. package/dist/components/bs-ui/fields-generating-indicator.d.ts +6 -0
  95. package/dist/components/bs-ui/fields-generating-indicator.d.ts.map +1 -0
  96. package/dist/components/bs-ui/fields-portal.d.ts +8 -0
  97. package/dist/components/bs-ui/fields-portal.d.ts.map +1 -0
  98. package/dist/components/bs-ui/fields-previewer.d.ts +18 -0
  99. package/dist/components/bs-ui/fields-previewer.d.ts.map +1 -0
  100. package/dist/components/bs-ui/font-icon.d.ts +6 -0
  101. package/dist/components/bs-ui/font-icon.d.ts.map +1 -0
  102. package/dist/components/bs-ui/form-info-editor.d.ts +38 -0
  103. package/dist/components/bs-ui/form-info-editor.d.ts.map +1 -0
  104. package/dist/components/bs-ui/formula-tag.d.ts +8 -0
  105. package/dist/components/bs-ui/formula-tag.d.ts.map +1 -0
  106. package/dist/components/bs-ui/generate-animation.d.ts +4 -0
  107. package/dist/components/bs-ui/generate-animation.d.ts.map +1 -0
  108. package/dist/components/bs-ui/icon-btn.d.ts +9 -0
  109. package/dist/components/bs-ui/icon-btn.d.ts.map +1 -0
  110. package/dist/components/bs-ui/img-part.d.ts +9 -0
  111. package/dist/components/bs-ui/img-part.d.ts.map +1 -0
  112. package/dist/components/bs-ui/line-checker.d.ts +18 -0
  113. package/dist/components/bs-ui/line-checker.d.ts.map +1 -0
  114. package/dist/components/bs-ui/linear-gradient-border-btn.d.ts +10 -0
  115. package/dist/components/bs-ui/linear-gradient-border-btn.d.ts.map +1 -0
  116. package/dist/components/bs-ui/linear-gradient-color-bg-animation.d.ts +8 -0
  117. package/dist/components/bs-ui/linear-gradient-color-bg-animation.d.ts.map +1 -0
  118. package/dist/components/bs-ui/number-part.d.ts +9 -0
  119. package/dist/components/bs-ui/number-part.d.ts.map +1 -0
  120. package/dist/components/bs-ui/option-item.d.ts +9 -0
  121. package/dist/components/bs-ui/option-item.d.ts.map +1 -0
  122. package/dist/components/bs-ui/previewer-header.d.ts +18 -0
  123. package/dist/components/bs-ui/previewer-header.d.ts.map +1 -0
  124. package/dist/components/bs-ui/primary-confirm-btn.d.ts +10 -0
  125. package/dist/components/bs-ui/primary-confirm-btn.d.ts.map +1 -0
  126. package/dist/components/bs-ui/primary-entry-btn.d.ts +9 -0
  127. package/dist/components/bs-ui/primary-entry-btn.d.ts.map +1 -0
  128. package/dist/components/bs-ui/scroll-to-bottom-btn.d.ts +6 -0
  129. package/dist/components/bs-ui/scroll-to-bottom-btn.d.ts.map +1 -0
  130. package/dist/components/bs-ui/split-line.d.ts +5 -0
  131. package/dist/components/bs-ui/split-line.d.ts.map +1 -0
  132. package/dist/components/bs-ui/square-checker.d.ts +11 -0
  133. package/dist/components/bs-ui/tab-radio-group.d.ts +19 -0
  134. package/dist/components/bs-ui/tab-radio-group.d.ts.map +1 -0
  135. package/dist/components/bs-ui/tooltip.d.ts +6 -0
  136. package/dist/components/bs-ui/tooltip.d.ts.map +1 -0
  137. package/dist/components/bs-ui/user-txt-msg-bubble.d.ts +6 -0
  138. package/dist/components/bs-ui/user-txt-msg-bubble.d.ts.map +1 -0
  139. package/dist/components/bs-ui/warning-msg.d.ts +6 -0
  140. package/dist/components/bs-ui/warning-msg.d.ts.map +1 -0
  141. package/dist/components/ui/badge.d.ts +10 -0
  142. package/dist/components/ui/badge.d.ts.map +1 -0
  143. package/dist/components/ui/button.d.ts +12 -0
  144. package/dist/components/ui/button.d.ts.map +1 -0
  145. package/dist/components/ui/card.d.ts +9 -0
  146. package/dist/components/ui/card.d.ts.map +1 -0
  147. package/dist/components/ui/checkbox.d.ts +5 -0
  148. package/dist/components/ui/checkbox.d.ts.map +1 -0
  149. package/dist/components/ui/collapsible.d.ts +6 -0
  150. package/dist/components/ui/collapsible.d.ts.map +1 -0
  151. package/dist/components/ui/dialog.d.ts +24 -0
  152. package/dist/components/ui/dialog.d.ts.map +1 -0
  153. package/dist/components/ui/dropdown-menu.d.ts +28 -0
  154. package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
  155. package/dist/components/ui/icons.d.ts +176 -0
  156. package/dist/components/ui/icons.d.ts.map +1 -0
  157. package/dist/components/ui/input-group.d.ts +17 -0
  158. package/dist/components/ui/input-group.d.ts.map +1 -0
  159. package/dist/components/ui/input.d.ts +4 -0
  160. package/dist/components/ui/input.d.ts.map +1 -0
  161. package/dist/components/ui/label.d.ts +6 -0
  162. package/dist/components/ui/label.d.ts.map +1 -0
  163. package/dist/components/ui/one-time-click-btn.d.ts +4 -0
  164. package/dist/components/ui/one-time-click-btn.d.ts.map +1 -0
  165. package/dist/components/ui/select.d.ts +14 -0
  166. package/dist/components/ui/select.d.ts.map +1 -0
  167. package/dist/components/ui/spinner.d.ts +3 -0
  168. package/dist/components/ui/spinner.d.ts.map +1 -0
  169. package/dist/components/ui/tabs.d.ts +8 -0
  170. package/dist/components/ui/tabs.d.ts.map +1 -0
  171. package/dist/components/ui/textarea.d.ts +4 -0
  172. package/dist/components/ui/textarea.d.ts.map +1 -0
  173. package/dist/components/ui/tooltip.d.ts +13 -0
  174. package/dist/components/ui/tooltip.d.ts.map +1 -0
  175. package/dist/components/web-comp/fields-previewer-web-component.d.ts +60 -0
  176. package/dist/components/web-comp/fields-previewer-web-component.d.ts.map +1 -0
  177. package/dist/const/index.d.ts +5 -0
  178. package/dist/const/index.d.ts.map +1 -0
  179. package/dist/const/ui.d.ts +5 -0
  180. package/dist/const/ui.d.ts.map +1 -0
  181. package/dist/hooks/use-chat-preference.d.ts +3 -0
  182. package/dist/hooks/use-chat-preference.d.ts.map +1 -0
  183. package/dist/hooks/use-draggable.d.ts +24 -0
  184. package/dist/hooks/use-draggable.d.ts.map +1 -0
  185. package/dist/hooks/use-evt-bus.d.ts +2 -0
  186. package/dist/hooks/use-evt-bus.d.ts.map +1 -0
  187. package/dist/hooks/use-evt.d.ts +3 -0
  188. package/dist/hooks/use-evt.d.ts.map +1 -0
  189. package/dist/hooks/use-frame-mode.d.ts +15 -0
  190. package/dist/hooks/use-frame-mode.d.ts.map +1 -0
  191. package/dist/hooks/use-merged-chat.d.ts +7 -0
  192. package/dist/hooks/use-merged-chat.d.ts.map +1 -0
  193. package/dist/hooks/use-msg-status-broadcast.d.ts +3 -0
  194. package/dist/hooks/use-msg-status-broadcast.d.ts.map +1 -0
  195. package/dist/hooks/use-plugin-component.d.ts +5 -0
  196. package/dist/hooks/use-plugin-component.d.ts.map +1 -0
  197. package/dist/hooks/use-plugin-ctx.d.ts +3 -0
  198. package/dist/hooks/use-plugin-ctx.d.ts.map +1 -0
  199. package/dist/hooks/use-plugin-custom-components.d.ts +5 -0
  200. package/dist/hooks/use-plugin-custom-components.d.ts.map +1 -0
  201. package/dist/hooks/use-plugin-life-cycle-chain-runner.d.ts +5 -0
  202. package/dist/hooks/use-plugin-life-cycle-chain-runner.d.ts.map +1 -0
  203. package/dist/hooks/use-plugin-list.d.ts +2 -0
  204. package/dist/hooks/use-plugin-list.d.ts.map +1 -0
  205. package/dist/hooks/use-plugin.d.ts +2 -0
  206. package/dist/hooks/use-plugin.d.ts.map +1 -0
  207. package/dist/hooks/use-scroll-to-bottom.d.ts +9 -0
  208. package/dist/hooks/use-scroll-to-bottom.d.ts.map +1 -0
  209. package/dist/hooks/use-shadow.d.ts +25 -0
  210. package/dist/hooks/use-shadow.d.ts.map +1 -0
  211. package/dist/hooks/use-toast.d.ts +3 -0
  212. package/dist/index.d.ts +7 -0
  213. package/dist/index.d.ts.map +1 -0
  214. package/dist/lib/clone.d.ts +32 -0
  215. package/dist/lib/clone.d.ts.map +1 -0
  216. package/dist/lib/event-emitter.d.ts +39 -0
  217. package/dist/lib/event-emitter.d.ts.map +1 -0
  218. package/dist/lib/readonly.d.ts +14 -0
  219. package/dist/lib/readonly.d.ts.map +1 -0
  220. package/dist/lib/utils.d.ts +40 -0
  221. package/dist/lib/utils.d.ts.map +1 -0
  222. package/dist/plugins/form-builder-base-plugin/const.d.ts +3 -0
  223. package/dist/plugins/form-builder-base-plugin/const.d.ts.map +1 -0
  224. package/dist/plugins/form-builder-base-plugin/index.d.ts +7 -0
  225. package/dist/plugins/form-builder-base-plugin/index.d.ts.map +1 -0
  226. package/dist/plugins/form-builder-base-plugin/types.d.ts +12 -0
  227. package/dist/plugins/form-builder-base-plugin/types.d.ts.map +1 -0
  228. package/dist/plugins/form-builder-plugin/components/create-form-confirm.d.ts +7 -0
  229. package/dist/plugins/form-builder-plugin/components/entry-btn.d.ts +3 -0
  230. package/dist/plugins/form-builder-plugin/components/entry-btn.d.ts.map +1 -0
  231. package/dist/plugins/form-builder-plugin/components/follow-up.d.ts +3 -0
  232. package/dist/plugins/form-builder-plugin/components/follow-up.d.ts.map +0 -0
  233. package/dist/plugins/form-builder-plugin/components/msg-part.d.ts +3 -0
  234. package/dist/plugins/form-builder-plugin/components/msg-part.d.ts.map +0 -0
  235. package/dist/plugins/form-builder-plugin/const/index.d.ts +12 -0
  236. package/dist/plugins/form-builder-plugin/const/index.d.ts.map +0 -0
  237. package/dist/plugins/form-builder-plugin/hooks/use-fields-confirmed.d.ts +2 -0
  238. package/dist/plugins/form-builder-plugin/index.d.ts +24 -0
  239. package/dist/plugins/form-builder-plugin/index.d.ts.map +1 -0
  240. package/dist/plugins/form-builder-plugin/utils/index.d.ts +51 -0
  241. package/dist/plugins/form-builder-plugin/utils/index.d.ts.map +1 -0
  242. package/dist/plugins/form-filling-plugin/batch-filling-data-manager.d.ts +26 -0
  243. package/dist/plugins/form-filling-plugin/batch-filling-data-manager.d.ts.map +1 -0
  244. package/dist/plugins/form-filling-plugin/components/FormFillingOpeningLines.d.ts +3 -0
  245. package/dist/plugins/form-filling-plugin/components/FormFillingOpeningLines.d.ts.map +1 -0
  246. package/dist/plugins/form-filling-plugin/components/avatar.d.ts +5 -0
  247. package/dist/plugins/form-filling-plugin/components/avatar.d.ts.map +1 -0
  248. package/dist/plugins/form-filling-plugin/components/batch-generator-action.d.ts +14 -0
  249. package/dist/plugins/form-filling-plugin/components/batch-generator-action.d.ts.map +1 -0
  250. package/dist/plugins/form-filling-plugin/components/entry-btn.d.ts +3 -0
  251. package/dist/plugins/form-filling-plugin/components/entry-btn.d.ts.map +1 -0
  252. package/dist/plugins/form-filling-plugin/components/mode-select.d.ts +2 -0
  253. package/dist/plugins/form-filling-plugin/components/mode-select.d.ts.map +1 -0
  254. package/dist/plugins/form-filling-plugin/components/msg-part.d.ts +3 -0
  255. package/dist/plugins/form-filling-plugin/components/msg-part.d.ts.map +1 -0
  256. package/dist/plugins/form-filling-plugin/const.d.ts +615 -0
  257. package/dist/plugins/form-filling-plugin/const.d.ts.map +1 -0
  258. package/dist/plugins/form-filling-plugin/index.d.ts +19 -0
  259. package/dist/plugins/form-filling-plugin/index.d.ts.map +1 -0
  260. package/dist/plugins/form-filling-plugin/types.d.ts +10 -0
  261. package/dist/plugins/form-filling-plugin/types.d.ts.map +1 -0
  262. package/dist/plugins/form-filling-plugin/utils.d.ts +6 -0
  263. package/dist/plugins/form-filling-plugin/utils.d.ts.map +1 -0
  264. package/dist/plugins/general-model-form-builder-plugin/components/confirmer.d.ts +9 -0
  265. package/dist/plugins/general-model-form-builder-plugin/components/confirmer.d.ts.map +1 -0
  266. package/dist/plugins/general-model-form-builder-plugin/components/ghost-evt-dispatcher.d.ts +10 -0
  267. package/dist/plugins/general-model-form-builder-plugin/components/ghost-evt-dispatcher.d.ts.map +1 -0
  268. package/dist/plugins/general-model-form-builder-plugin/components/msg-part.d.ts +3 -0
  269. package/dist/plugins/general-model-form-builder-plugin/components/msg-part.d.ts.map +1 -0
  270. package/dist/plugins/general-model-form-builder-plugin/components/new-confirmer.d.ts +10 -0
  271. package/dist/plugins/general-model-form-builder-plugin/components/new-confirmer.d.ts.map +1 -0
  272. package/dist/plugins/general-model-form-builder-plugin/const.d.ts +3 -0
  273. package/dist/plugins/general-model-form-builder-plugin/const.d.ts.map +1 -0
  274. package/dist/plugins/general-model-form-builder-plugin/index.d.ts +9 -0
  275. package/dist/plugins/general-model-form-builder-plugin/index.d.ts.map +1 -0
  276. package/dist/plugins/general-model-form-builder-plugin/types.d.ts +3 -0
  277. package/dist/plugins/general-model-form-builder-plugin/types.d.ts.map +1 -0
  278. package/dist/plugins/mcp-form-builder-plugin/components/create-form-confirm.d.ts +7 -0
  279. package/dist/plugins/mcp-form-builder-plugin/components/create-form-confirm.d.ts.map +1 -0
  280. package/dist/plugins/mcp-form-builder-plugin/components/entry-btn.d.ts +3 -0
  281. package/dist/plugins/mcp-form-builder-plugin/components/entry-btn.d.ts.map +1 -0
  282. package/dist/plugins/mcp-form-builder-plugin/components/follow-up.d.ts +3 -0
  283. package/dist/plugins/mcp-form-builder-plugin/components/follow-up.d.ts.map +1 -0
  284. package/dist/plugins/mcp-form-builder-plugin/components/msg-part.d.ts +3 -0
  285. package/dist/plugins/mcp-form-builder-plugin/components/msg-part.d.ts.map +1 -0
  286. package/dist/plugins/mcp-form-builder-plugin/const/index.d.ts +12 -0
  287. package/dist/plugins/mcp-form-builder-plugin/const/index.d.ts.map +1 -0
  288. package/dist/plugins/mcp-form-builder-plugin/hooks/index.d.ts +1 -0
  289. package/dist/plugins/mcp-form-builder-plugin/hooks/index.d.ts.map +1 -0
  290. package/dist/plugins/mcp-form-builder-plugin/hooks/use-fields-confirmed.d.ts +2 -0
  291. package/dist/plugins/mcp-form-builder-plugin/hooks/use-fields-confirmed.d.ts.map +1 -0
  292. package/dist/plugins/mcp-form-builder-plugin/index.d.ts +23 -0
  293. package/dist/plugins/mcp-form-builder-plugin/index.d.ts.map +1 -0
  294. package/dist/plugins/mcp-form-builder-plugin/types.d.ts +17 -0
  295. package/dist/plugins/mcp-form-builder-plugin/types.d.ts.map +1 -0
  296. package/dist/plugins/mcp-form-builder-plugin/utils/index.d.ts +51 -0
  297. package/dist/plugins/mcp-form-builder-plugin/utils/index.d.ts.map +1 -0
  298. package/dist/plugins/report-query-plugin/components/avatar.d.ts +5 -0
  299. package/dist/plugins/report-query-plugin/components/avatar.d.ts.map +1 -0
  300. package/dist/plugins/report-query-plugin/components/query-entry-btn.d.ts +3 -0
  301. package/dist/plugins/report-query-plugin/components/query-entry-btn.d.ts.map +1 -0
  302. package/dist/plugins/report-query-plugin/components/query-msg-part.d.ts +3 -0
  303. package/dist/plugins/report-query-plugin/components/query-msg-part.d.ts.map +1 -0
  304. package/dist/plugins/report-query-plugin/components/query-opening-lines.d.ts +2 -0
  305. package/dist/plugins/report-query-plugin/components/query-opening-lines.d.ts.map +1 -0
  306. package/dist/plugins/report-query-plugin/components/result-cards/DataTableCard.d.ts +3 -0
  307. package/dist/plugins/report-query-plugin/components/result-cards/DataTableCard.d.ts.map +1 -0
  308. package/dist/plugins/report-query-plugin/components/result-cards/DataTableFields.d.ts +18 -0
  309. package/dist/plugins/report-query-plugin/components/result-cards/DataTableFields.d.ts.map +1 -0
  310. package/dist/plugins/report-query-plugin/components/result-cards/FilterCondition.d.ts +4 -0
  311. package/dist/plugins/report-query-plugin/components/result-cards/FilterCondition.d.ts.map +1 -0
  312. package/dist/plugins/report-query-plugin/components/result-cards/FormulaField.d.ts +8 -0
  313. package/dist/plugins/report-query-plugin/components/result-cards/FormulaField.d.ts.map +1 -0
  314. package/dist/plugins/report-query-plugin/const.d.ts +2 -0
  315. package/dist/plugins/report-query-plugin/const.d.ts.map +1 -0
  316. package/dist/plugins/report-query-plugin/index.d.ts +15 -0
  317. package/dist/plugins/report-query-plugin/index.d.ts.map +1 -0
  318. package/dist/plugins/report-query-plugin/types.d.ts +13 -0
  319. package/dist/plugins/report-query-plugin/types.d.ts.map +1 -0
  320. package/dist/plugins/report-query-plugin/utils/build-dash-component.d.ts +17 -0
  321. package/dist/plugins/report-query-plugin/utils/build-dash-component.d.ts.map +1 -0
  322. package/dist/plugins/report-query-plugin/utils/create-default-dash-styles.d.ts +30 -0
  323. package/dist/plugins/report-query-plugin/utils/create-default-dash-styles.d.ts.map +1 -0
  324. package/dist/plugins/report-query-plugin/utils/create-default-widget-attr-list.d.ts +60 -0
  325. package/dist/plugins/report-query-plugin/utils/create-default-widget-attr-list.d.ts.map +1 -0
  326. package/dist/plugins/report-query-plugin/utils/field-enhance.d.ts +31 -0
  327. package/dist/plugins/report-query-plugin/utils/field-enhance.d.ts.map +1 -0
  328. package/dist/plugins/report-query-plugin/utils/get-field-group.d.ts +208 -0
  329. package/dist/plugins/report-query-plugin/utils/get-field-group.d.ts.map +1 -0
  330. package/dist/plugins/report-query-plugin/utils/get-field-icon.d.ts +4 -0
  331. package/dist/plugins/report-query-plugin/utils/get-field-icon.d.ts.map +1 -0
  332. package/dist/plugins/report-query-plugin/utils/get-group-rule.d.ts +4 -0
  333. package/dist/plugins/report-query-plugin/utils/get-group-rule.d.ts.map +1 -0
  334. package/dist/plugins/report-query-plugin/utils/index.d.ts +5 -0
  335. package/dist/plugins/report-query-plugin/utils/index.d.ts.map +1 -0
  336. package/dist/sdk.impl.d.ts +31 -0
  337. package/dist/sdk.impl.d.ts.map +1 -0
  338. package/dist/store/context.d.ts +12 -0
  339. package/dist/store/context.d.ts.map +1 -0
  340. package/dist/store/index.d.ts +14 -0
  341. package/dist/store/index.d.ts.map +1 -0
  342. package/dist/stories/AbsFullscreenGradientBg.stories.d.ts +17 -0
  343. package/dist/stories/AbsFullscreenGradientBg.stories.d.ts.map +1 -0
  344. package/dist/stories/AttachmentPart.stories.d.ts +23 -0
  345. package/dist/stories/AttachmentPart.stories.d.ts.map +1 -0
  346. package/dist/stories/AttachmentPartGroup.stories.d.ts +21 -0
  347. package/dist/stories/AttachmentPartGroup.stories.d.ts.map +1 -0
  348. package/dist/stories/AttachmentsPreviewer.stories.d.ts +20 -0
  349. package/dist/stories/AttachmentsPreviewer.stories.d.ts.map +1 -0
  350. package/dist/stories/BaseButton.stories.d.ts +18 -0
  351. package/dist/stories/BaseButton.stories.d.ts.map +1 -0
  352. package/dist/stories/BorderColorAnimation.stories.d.ts +26 -0
  353. package/dist/stories/BorderColorAnimation.stories.d.ts.map +1 -0
  354. package/dist/stories/BotAvatarAndName.stories.d.ts +18 -0
  355. package/dist/stories/BotAvatarAndName.stories.d.ts.map +1 -0
  356. package/dist/stories/BotIcon.stories.d.ts +17 -0
  357. package/dist/stories/BotIcon.stories.d.ts.map +1 -0
  358. package/dist/stories/BsTooltip.stories.d.ts +7 -0
  359. package/dist/stories/BsTooltip.stories.d.ts.map +1 -0
  360. package/dist/stories/Card.stories.d.ts +14 -0
  361. package/dist/stories/Card.stories.d.ts.map +1 -0
  362. package/dist/stories/CardField.stories.d.ts +13 -0
  363. package/dist/stories/CardField.stories.d.ts.map +1 -0
  364. package/dist/stories/ChatAreaHeader.stories.d.ts +14 -0
  365. package/dist/stories/ChatAreaHeader.stories.d.ts.map +1 -0
  366. package/dist/stories/CircleChecker.stories.d.ts +21 -0
  367. package/dist/stories/CircleChecker.stories.d.ts.map +1 -0
  368. package/dist/stories/CollapsibleTextMsg.stories.d.ts +16 -0
  369. package/dist/stories/CollapsibleTextMsg.stories.d.ts.map +1 -0
  370. package/dist/stories/ConfirmDialog.stories.d.ts +61 -0
  371. package/dist/stories/ConfirmDialog.stories.d.ts.map +1 -0
  372. package/dist/stories/DashWidgetIcon.stories.d.ts +13 -0
  373. package/dist/stories/DashWidgetIcon.stories.d.ts.map +1 -0
  374. package/dist/stories/FormInfoEditor.stories.d.ts +15 -0
  375. package/dist/stories/FormInfoEditor.stories.d.ts.map +1 -0
  376. package/dist/stories/FormulaField.stories.d.ts +24 -0
  377. package/dist/stories/FormulaField.stories.d.ts.map +1 -0
  378. package/dist/stories/FormulaTag.stories.d.ts +37 -0
  379. package/dist/stories/FormulaTag.stories.d.ts.map +1 -0
  380. package/dist/stories/GenerateAnimation.stories.d.ts +16 -0
  381. package/dist/stories/GenerateAnimation.stories.d.ts.map +1 -0
  382. package/dist/stories/IconBtn.stories.d.ts +15 -0
  383. package/dist/stories/IconBtn.stories.d.ts.map +1 -0
  384. package/dist/stories/IconLib.d.ts +12 -0
  385. package/dist/stories/IconLib.d.ts.map +1 -0
  386. package/dist/stories/Icons.stories.d.ts +24 -0
  387. package/dist/stories/Icons.stories.d.ts.map +1 -0
  388. package/dist/stories/ImgMsgPart.stories.d.ts +20 -0
  389. package/dist/stories/ImgMsgPart.stories.d.ts.map +1 -0
  390. package/dist/stories/LineChecker.stories.d.ts +23 -0
  391. package/dist/stories/LineChecker.stories.d.ts.map +1 -0
  392. package/dist/stories/LinearGradientBorderBtn.stories.d.ts +22 -0
  393. package/dist/stories/LinearGradientBorderBtn.stories.d.ts.map +1 -0
  394. package/dist/stories/LinearGradientColorBgAnimation.stories.d.ts +23 -0
  395. package/dist/stories/LinearGradientColorBgAnimation.stories.d.ts.map +1 -0
  396. package/dist/stories/NumbersMsgPart.stories.d.ts +19 -0
  397. package/dist/stories/NumbersMsgPart.stories.d.ts.map +1 -0
  398. package/dist/stories/OptionItem.stories.d.ts +20 -0
  399. package/dist/stories/OptionItem.stories.d.ts.map +1 -0
  400. package/dist/stories/PreviewerHeader.stories.d.ts +10 -0
  401. package/dist/stories/PreviewerHeader.stories.d.ts.map +1 -0
  402. package/dist/stories/PrimaryConfirmBtn.stories.d.ts +19 -0
  403. package/dist/stories/PrimaryConfirmBtn.stories.d.ts.map +1 -0
  404. package/dist/stories/PrimaryEntryBtn.stories.d.ts +26 -0
  405. package/dist/stories/PrimaryEntryBtn.stories.d.ts.map +1 -0
  406. package/dist/stories/ScrollToBottom.stories.d.ts +15 -0
  407. package/dist/stories/ScrollToBottom.stories.d.ts.map +1 -0
  408. package/dist/stories/SplitLine.stories.d.ts +9 -0
  409. package/dist/stories/SplitLine.stories.d.ts.map +1 -0
  410. package/dist/stories/TabRadioGroup.stories.d.ts +18 -0
  411. package/dist/stories/TabRadioGroup.stories.d.ts.map +1 -0
  412. package/dist/stories/UserTextMsgBubble.stories.d.ts +14 -0
  413. package/dist/stories/UserTextMsgBubble.stories.d.ts.map +1 -0
  414. package/dist/stories/WarningMessage.stories.d.ts +16 -0
  415. package/dist/stories/WarningMessage.stories.d.ts.map +1 -0
  416. package/dist/stories/fields-generating.stories.d.ts +20 -0
  417. package/dist/stories/fields-generating.stories.d.ts.map +1 -0
  418. package/dist/stories/fields-previewer.stories.d.ts +19 -0
  419. package/dist/stories/fields-previewer.stories.d.ts.map +1 -0
  420. package/package.json +4 -4
  421. package/src/plugins/report-query-plugin/components/query-opening-lines.tsx +19 -19
@@ -0,0 +1,24 @@
1
+ export interface Position {
2
+ bottom: number;
3
+ right: number;
4
+ }
5
+ export interface UseDraggableOptions {
6
+ /** 是否启用拖拽 */
7
+ enabled?: boolean;
8
+ /** 初始位置 */
9
+ initialPosition?: Position;
10
+ /** 位置变化回调 */
11
+ onPositionChange?: (position: Position) => void;
12
+ }
13
+ export interface UseDraggableReturn {
14
+ /** 当前位置 */
15
+ position: Position;
16
+ /** 是否正在拖拽 */
17
+ isDragging: boolean;
18
+ /** 拖拽开始处理函数,绑定到拖拽句柄的 onMouseDown */
19
+ handleDragStart: (e: React.MouseEvent) => void;
20
+ /** 重置位置到初始值 */
21
+ resetPosition: () => void;
22
+ }
23
+ export declare function useDraggable(options?: UseDraggableOptions): UseDraggableReturn;
24
+ //# sourceMappingURL=use-draggable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-draggable.d.ts","sourceRoot":"","sources":["../../src/hooks/use-draggable.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC,aAAa;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW;IACX,eAAe,CAAC,EAAE,QAAQ,CAAC;IAC3B,aAAa;IACb,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC;CACjD;AAED,MAAM,WAAW,kBAAkB;IACjC,WAAW;IACX,QAAQ,EAAE,QAAQ,CAAC;IACnB,aAAa;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,oCAAoC;IACpC,eAAe,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAC/C,eAAe;IACf,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AAID,wBAAgB,YAAY,CAAC,OAAO,GAAE,mBAAwB,GAAG,kBAAkB,CA4HlF"}
@@ -0,0 +1,2 @@
1
+ export declare const useEvtBus: () => import('@baishuyun/types').IEvtBus;
2
+ //# sourceMappingURL=use-evt-bus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-evt-bus.d.ts","sourceRoot":"","sources":["../../src/hooks/use-evt-bus.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,0CAQrB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { EventKey, FullEventMap } from '@baishuyun/types';
2
+ export declare const useEvt: (evtName: EventKey<FullEventMap>, handler: (data: FullEventMap[EventKey<FullEventMap>]) => void) => void;
3
+ //# sourceMappingURL=use-evt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-evt.d.ts","sourceRoot":"","sources":["../../src/hooks/use-evt.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAE/D,eAAO,MAAM,MAAM,GACjB,SAAS,QAAQ,CAAC,YAAY,CAAC,EAC/B,SAAS,CAAC,IAAI,EAAE,YAAY,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,KAAK,IAAI,SAa9D,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { ChatStatus } from '@baishuyun/types';
2
+ export declare const useChatStatus: () => {
3
+ status: ChatStatus;
4
+ setStatus: (status: ChatStatus) => void;
5
+ isHide: boolean;
6
+ isVisible: boolean;
7
+ isFloat: boolean;
8
+ isDock: boolean;
9
+ };
10
+ /** @deprecated Use useChatStatus instead */
11
+ export declare const useFrameMode: () => {
12
+ mode: "dock" | "float";
13
+ setMode: (mode: "dock" | "float") => void;
14
+ };
15
+ //# sourceMappingURL=use-frame-mode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-frame-mode.d.ts","sourceRoot":"","sources":["../../src/hooks/use-frame-mode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG9C,eAAO,MAAM,aAAa;;;;;;;CAczB,CAAC;AAEF,4CAA4C;AAC5C,eAAO,MAAM,YAAY;;oBAKL,MAAM,GAAG,OAAO;CAEnC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { UseChatOptions, UseChatHelpers } from '@ai-sdk/react';
2
+ import { UIMessage } from 'ai';
3
+ export interface MergeOption {
4
+ enableMerge?: boolean;
5
+ }
6
+ export declare function useMergedChat<UI_MESSAGE extends UIMessage = UIMessage>(options?: UseChatOptions<UI_MESSAGE> & MergeOption): UseChatHelpers<UI_MESSAGE>;
7
+ //# sourceMappingURL=use-merged-chat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-merged-chat.d.ts","sourceRoot":"","sources":["../../src/hooks/use-merged-chat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,cAAc,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AA0C/B,MAAM,WAAW,WAAW;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,aAAa,CAAC,UAAU,SAAS,SAAS,GAAG,SAAS,EACpE,OAAO,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,WAAW,GACjD,cAAc,CAAC,UAAU,CAAC,CAe5B"}
@@ -0,0 +1,3 @@
1
+ import { ChatStatus } from 'ai';
2
+ export declare const useMsgStatusBroadcast: (id: string, status: ChatStatus) => void;
3
+ //# sourceMappingURL=use-msg-status-broadcast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-msg-status-broadcast.d.ts","sourceRoot":"","sources":["../../src/hooks/use-msg-status-broadcast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAIhC,eAAO,MAAM,qBAAqB,GAAI,IAAI,MAAM,EAAE,QAAQ,UAAU,SAKnE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { CustomComponentType } from '@baishuyun/types';
2
+ export declare const usePluginComponent: (compType: CustomComponentType) => import('react').ComponentType<import('@baishuyun/types').MsgPartCompProps> | import('react').ComponentType<{}> | import('react').ComponentType<import('@baishuyun/types').OpeningLinesProps> | import('react').ComponentType<import('@baishuyun/types').EntryButtonProps> | import('react').ComponentType<{
3
+ variant?: "default" | "active";
4
+ }> | null;
5
+ //# sourceMappingURL=use-plugin-component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-plugin-component.d.ts","sourceRoot":"","sources":["../../src/hooks/use-plugin-component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAGvD,eAAO,MAAM,kBAAkB,GAAI,UAAU,mBAAmB;;SAQ/D,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { ChatAreaPlugin } from '@baishuyun/types';
2
+ export declare const usePluginCtx: <T, P extends ChatAreaPlugin>(name: string) => T | null;
3
+ //# sourceMappingURL=use-plugin-ctx.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-plugin-ctx.d.ts","sourceRoot":"","sources":["../../src/hooks/use-plugin-ctx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,eAAO,MAAM,YAAY,GAAI,CAAC,EAAE,CAAC,SAAS,cAAc,EAAE,MAAM,MAAM,aAQrE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { ComponentConfig, PluginCustomComponent } from '@baishuyun/types';
2
+ export declare const usePluginCustomComponents: <K extends keyof PluginCustomComponent>(componentKey: K) => ComponentConfig<K>[];
3
+ export declare const useDefaultPluginCustomComponent: <K extends keyof PluginCustomComponent>(componentKey: K) => ComponentConfig<K> | null;
4
+ export declare const useDefaultPluginCustomComponentOnly: <K extends keyof PluginCustomComponent>(componentKey: K) => PluginCustomComponent[K] | null;
5
+ //# sourceMappingURL=use-plugin-custom-components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-plugin-custom-components.d.ts","sourceRoot":"","sources":["../../src/hooks/use-plugin-custom-components.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAG1E,eAAO,MAAM,yBAAyB,GAAI,CAAC,SAAS,MAAM,qBAAqB,EAC7E,cAAc,CAAC,KACd,eAAe,CAAC,CAAC,CAAC,EAapB,CAAC;AAEF,eAAO,MAAM,+BAA+B,GAAI,CAAC,SAAS,MAAM,qBAAqB,EACnF,cAAc,CAAC,KACd,eAAe,CAAC,CAAC,CAAC,GAAG,IAQvB,CAAC;AAEF,eAAO,MAAM,mCAAmC,GAAI,CAAC,SAAS,MAAM,qBAAqB,EACvF,cAAc,CAAC,KACd,qBAAqB,CAAC,CAAC,CAAC,GAAG,IAG7B,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { PluginLifecycleHooksType } from '@baishuyun/types';
2
+ export declare const usePluginLifeCycleChainRunner: (cycleType: PluginLifecycleHooksType) => {
3
+ exec: (ctx: any) => any;
4
+ };
5
+ //# sourceMappingURL=use-plugin-life-cycle-chain-runner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-plugin-life-cycle-chain-runner.d.ts","sourceRoot":"","sources":["../../src/hooks/use-plugin-life-cycle-chain-runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAI5D,eAAO,MAAM,6BAA6B,GAAI,WAAW,wBAAwB;gBAG3C,GAAG;CAkBxC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const usePluginList: () => import('@baishuyun/types').ChatAreaPlugin<{}, unknown>[];
2
+ //# sourceMappingURL=use-plugin-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-plugin-list.d.ts","sourceRoot":"","sources":["../../src/hooks/use-plugin-list.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,gEAQzB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const usePlugin: <T>(pluginName: string) => T;
2
+ //# sourceMappingURL=use-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-plugin.d.ts","sourceRoot":"","sources":["../../src/hooks/use-plugin.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,GAAI,CAAC,EAAE,YAAY,MAAM,KAOT,CACrC,CAAC"}
@@ -0,0 +1,9 @@
1
+ export declare function useScrollToBottom(): {
2
+ containerRef: import('react').RefObject<HTMLDivElement>;
3
+ endRef: import('react').RefObject<HTMLDivElement>;
4
+ isAtBottom: boolean;
5
+ scrollToBottom: (behavior?: ScrollBehavior) => void;
6
+ onViewportEnter: () => void;
7
+ onViewportLeave: () => void;
8
+ };
9
+ //# sourceMappingURL=use-scroll-to-bottom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-scroll-to-bottom.d.ts","sourceRoot":"","sources":["../../src/hooks/use-scroll-to-bottom.ts"],"names":[],"mappings":"AAEA,wBAAgB,iBAAiB;;;;gCAoBe,cAAc;;;EAwG7D"}
@@ -0,0 +1,25 @@
1
+ interface UseShadowOptions {
2
+ /** Shadow DOM挂载的根元素(默认挂到body) */
3
+ rootEl?: HTMLElement;
4
+ /** 要注入到Shadow DOM中的样式文本 */
5
+ style?: string;
6
+ /** Shadow内部容器的类名 */
7
+ containerClasses?: string[];
8
+ /** 包裹Shadow的外层元素类名 */
9
+ wrapperClasses?: string[];
10
+ /** 包裹元素的内联样式 */
11
+ wrapperStyle?: React.CSSProperties;
12
+ extraHtml?: string;
13
+ id: string;
14
+ }
15
+ /**
16
+ * 通用的创建Shadow DOM的Hook
17
+ * @param options 配置项:样式、根元素、类名等
18
+ * @returns Shadow DOM内部的容器元素(用于React Portal挂载)
19
+ */
20
+ export declare const useShadow: ({ id, style, rootEl, containerClasses, wrapperClasses, wrapperStyle, extraHtml, }: UseShadowOptions) => {
21
+ shadowContainer: HTMLElement | null;
22
+ destroy: () => void;
23
+ };
24
+ export {};
25
+ //# sourceMappingURL=use-shadow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-shadow.d.ts","sourceRoot":"","sources":["../../src/hooks/use-shadow.ts"],"names":[],"mappings":"AAEA,UAAU,gBAAgB;IACxB,iCAAiC;IACjC,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,2BAA2B;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oBAAoB;IACpB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,sBAAsB;IACtB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,gBAAgB;IAChB,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAEnC,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;;;GAIG;AACH,eAAO,MAAM,SAAS,GAAI,mFAQvB,gBAAgB,KAAG;IAAE,eAAe,EAAE,WAAW,GAAG,IAAI,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CA8F/E,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { IToastDetail } from '@baishuyun/types';
2
+ export declare const useToast: () => (detail: IToastDetail) => void;
3
+ //# sourceMappingURL=use-toast.d.ts.map
@@ -0,0 +1,7 @@
1
+ export { ChatSDK } from './sdk.impl';
2
+ export * from './plugins/form-builder-plugin';
3
+ export * from './plugins/general-model-form-builder-plugin';
4
+ export * from './plugins/form-filling-plugin';
5
+ export * from './plugins/report-query-plugin';
6
+ export { FieldsPreviewerWebComponent } from './components/web-comp/fields-previewer-web-component';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAE9C,OAAO,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * 深克隆选项
3
+ */
4
+ export interface CloneOptions {
5
+ /** 是否克隆原型链,默认 false */
6
+ prototype?: boolean;
7
+ /** 最大递归深度,默认 Infinity */
8
+ depth?: number;
9
+ /** 自定义克隆器,返回 undefined 则使用默认逻辑 */
10
+ customHandler?: (value: any) => any | undefined;
11
+ /** 是否克隆不可枚举属性,默认 true */
12
+ nonEnumerable?: boolean;
13
+ }
14
+ /**
15
+ * 生产级深克隆
16
+ * 支持:Object, Array, Date, RegExp, Map, Set, TypedArray, ArrayBuffer, 循环引用
17
+ */
18
+ export declare function deepClone<T>(obj: T, options?: CloneOptions): T;
19
+ /**
20
+ * 快速克隆 - 优先使用原生 structuredClone
21
+ * 降级到 deepClone,不支持自定义选项
22
+ */
23
+ export declare function fastClone<T>(obj: T): T;
24
+ /**
25
+ * 浅克隆 - 仅克隆第一层,保留引用关系
26
+ */
27
+ export declare function shallowClone<T extends object>(obj: T): T;
28
+ /**
29
+ * 检查对象是否包含循环引用
30
+ */
31
+ export declare function hasCircularRef(obj: any): boolean;
32
+ //# sourceMappingURL=clone.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clone.d.ts","sourceRoot":"","sources":["../../src/lib/clone.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,uBAAuB;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,GAAG,SAAS,CAAC;IAChD,yBAAyB;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,GAAE,YAAiB,GAAG,CAAC,CAkJlE;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAUtC;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAiBxD;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAgBhD"}
@@ -0,0 +1,39 @@
1
+ import { EventMap, EventKey, EventHandler, FormBuilderEventMap } from '@baishuyun/types';
2
+ export declare class EventEmitter<Events extends EventMap> {
3
+ private events;
4
+ /**
5
+ * 订阅事件
6
+ */
7
+ on<K extends EventKey<Events>>(event: K, handler: EventHandler<Events[K]>): this;
8
+ /**
9
+ * 取消订阅
10
+ */
11
+ off<K extends EventKey<Events>>(event: K, handler: EventHandler<Events[K]>): this;
12
+ /**
13
+ * 触发事件
14
+ */
15
+ emit<K extends EventKey<Events>>(event: K, params: Events[K]): boolean;
16
+ /**
17
+ * 订阅一次(触发后自动取消)
18
+ */
19
+ once<K extends EventKey<Events>>(event: K, handler: EventHandler<Events[K]>): this;
20
+ /**
21
+ * 获取事件的监听器数量
22
+ */
23
+ listenerCount(event: EventKey<Events>): number;
24
+ /**
25
+ * 获取所有事件名
26
+ */
27
+ eventNames(): Array<EventKey<Events>>;
28
+ /**
29
+ * 移除所有监听器
30
+ */
31
+ removeAllListeners(event?: EventKey<Events>): this;
32
+ /**
33
+ * 获取指定事件的所有监听器
34
+ */
35
+ listeners<K extends EventKey<Events>>(event: K): EventHandler<Events[K]>[];
36
+ }
37
+ export declare class EvtBus extends EventEmitter<FormBuilderEventMap> {
38
+ }
39
+ //# sourceMappingURL=event-emitter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-emitter.d.ts","sourceRoot":"","sources":["../../src/lib/event-emitter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE9F,qBAAa,YAAY,CAAC,MAAM,SAAS,QAAQ;IAC/C,OAAO,CAAC,MAAM,CAAqD;IAEnE;;OAEG;IACH,EAAE,CAAC,CAAC,SAAS,QAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI;IAQhF;;OAEG;IACH,GAAG,CAAC,CAAC,SAAS,QAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI;IAWjF;;OAEG;IACH,IAAI,CAAC,CAAC,SAAS,QAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,OAAO;IActE;;OAEG;IACH,IAAI,CAAC,CAAC,SAAS,QAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI;IAQlF;;OAEG;IACH,aAAa,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,MAAM;IAI9C;;OAEG;IACH,UAAU,IAAI,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAIrC;;OAEG;IACH,kBAAkB,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,IAAI;IASlD;;OAEG;IACH,SAAS,CAAC,CAAC,SAAS,QAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE;CAG3E;AAED,qBAAa,MAAO,SAAQ,YAAY,CAAC,mBAAmB,CAAC;CAAG"}
@@ -0,0 +1,14 @@
1
+ import { DeepReadonly, FreezeMode } from '@baishuyun/types';
2
+ /**
3
+ * 创建深度只读代理
4
+ */
5
+ export declare function createReadonlyProxy<T extends object>(obj: T, pluginName?: string): DeepReadonly<T>;
6
+ /**
7
+ * 深度冻结对象
8
+ */
9
+ export declare function deepFreeze<T>(obj: T): DeepReadonly<T>;
10
+ /**
11
+ * 转换为深度只读(Proxy + Freeze 双重保护)
12
+ */
13
+ export declare function toDeepReadonly<T extends object>(obj: T, mode?: FreezeMode, pluginName?: string): DeepReadonly<T>;
14
+ //# sourceMappingURL=readonly.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readonly.d.ts","sourceRoot":"","sources":["../../src/lib/readonly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG5D;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,MAAM,EAClD,GAAG,EAAE,CAAC,EACN,UAAU,CAAC,EAAE,MAAM,GAClB,YAAY,CAAC,CAAC,CAAC,CAwBjB;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,CAWrD;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,MAAM,EAC7C,GAAG,EAAE,CAAC,EACN,IAAI,GAAE,UAA4B,EAClC,UAAU,CAAC,EAAE,MAAM,GAClB,YAAY,CAAC,CAAC,CAAC,CAiBjB"}
@@ -0,0 +1,40 @@
1
+ import { ClassValue } from 'clsx';
2
+ import { UIDataTypes, UIMessagePart, UITools } from 'ai';
3
+ import { Field } from '../plugins/form-builder-base-plugin/types';
4
+ import { IQueryResult } from '@baishuyun/types';
5
+ export declare function cn(...inputs: ClassValue[]): string;
6
+ export declare const extractTextPartMeta: (part: any) => any;
7
+ export declare const IsFieldsJsonPart: (part: any) => boolean;
8
+ export declare const IsQueryResultPart: (part: any) => boolean;
9
+ export declare const GetQueryResult: (part: any) => IQueryResult | null;
10
+ export declare const IsErrorPart: (part: any) => boolean;
11
+ export declare const IsFilePart: (part: any) => boolean;
12
+ export declare const IsFileGroupPart: (part: any) => boolean;
13
+ export declare const IsLoadingPart: (part: any) => boolean;
14
+ export declare const GetLoadingMsg: (part: any) => string;
15
+ export declare const GetPartErrMsg: (part: any) => string;
16
+ export declare const GetFieldJsonInfo: (part: any) => any;
17
+ export declare const IsSuggesstionPart: (part: any) => boolean;
18
+ export declare const IsMockSuggesstionPart: (part: any) => boolean;
19
+ export declare const NeedToAppendFieldsSaveConfirm: (part: any) => boolean;
20
+ export declare const extractFormName: (origin: string) => string;
21
+ export declare function sanitizeText(text: string): string;
22
+ /**
23
+ * 合并parts数组中连续相同的元素,以连续组的最后一个元素为准
24
+ * @param {Array} parts - 待合并的原数组
25
+ * @param {Function} isTheSamePart - 判断两个part是否相同的方法(接收a、b两个参数,返回布尔值)
26
+ * @returns {Array} 合并后的数组
27
+ */
28
+ export declare function mergeParts(parts: UIMessagePart<UIDataTypes, UITools>[], isTheSamePart: (p0: UIMessagePart<UIDataTypes, UITools>, p1: UIMessagePart<UIDataTypes, UITools>) => boolean): UIMessagePart<UIDataTypes, UITools>[];
29
+ export declare const isSubformFieldEqual: (f1: Field, f2: Field, widgetArrKey?: string) => boolean;
30
+ export declare function copyTextToClipboard(text: string): Promise<boolean>;
31
+ /**
32
+ * 合并数组中连续的目标元素(至少2个)为子数组(单函数实现)
33
+ * @template T - 数组元素的类型
34
+ * @param {T[]} arr - 原始数组
35
+ * @param {(item: T) => boolean} isTarget - 判断元素是否为目标的函数(返回布尔值)
36
+ * @returns {(T | T[])[]} 处理后的数组(元素可能是原类型或原类型的子数组)
37
+ */
38
+ export declare function mergeConsecutiveTargets<T>(arr: T[], isTarget: (item: T) => boolean, minWidth?: number): (T | T[])[];
39
+ export declare const mergeFileParts: (parts: Array<UIMessagePart<UIDataTypes, UITools>>) => (UIMessagePart<UIDataTypes, UITools> | UIMessagePart<UIDataTypes, UITools>[])[];
40
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,0CAA0C,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC;AAED,eAAO,MAAM,mBAAmB,GAAI,MAAM,GAAG,QAyB5C,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,MAAM,GAAG,KAAG,OAG5C,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,MAAM,GAAG,KAAG,OAG7C,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,MAAM,GAAG,KAAG,YAAY,GAAG,IAczD,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,MAAM,GAAG,KAAG,OAOvC,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,MAAM,GAAG,KAAG,OAEtC,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,MAAM,GAAG,YAaxC,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,MAAM,GAAG,KAAG,OAGzC,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,MAAM,GAAG,KAAG,MAOzC,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,MAAM,GAAG,KAAG,MAWzC,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,MAAM,GAAG,KAAG,GAO5C,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,MAAM,GAAG,KAAG,OAG7C,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,MAAM,GAAG,KAAG,OAGjD,CAAC;AAEF,eAAO,MAAM,6BAA6B,GAAI,MAAM,GAAG,KAAG,OAGzD,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,QAAQ,MAAM,KAAG,MAIhD,CAAC;AAEF,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,UAExC;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CACxB,KAAK,EAAE,aAAa,CAAC,WAAW,EAAE,OAAO,CAAC,EAAE,EAC5C,aAAa,EAAE,CACb,EAAE,EAAE,aAAa,CAAC,WAAW,EAAE,OAAO,CAAC,EACvC,EAAE,EAAE,aAAa,CAAC,WAAW,EAAE,OAAO,CAAC,KACpC,OAAO,yCAqBb;AAED,eAAO,MAAM,mBAAmB,GAAI,IAAI,KAAK,EAAE,IAAI,KAAK,EAAE,eAAc,MAAgB,YAwBvF,CAAC;AAGF,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CA2CxE;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,EACvC,GAAG,EAAE,CAAC,EAAE,EACR,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,EAC9B,QAAQ,SAAI,GACX,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CA6Bb;AAED,eAAO,MAAM,cAAc,GAAI,OAAO,KAAK,CAAC,aAAa,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,oFAQ/E,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { FormBuilderEventKey } from '@baishuyun/types';
2
+ export declare const EVENTS: Record<string, FormBuilderEventKey>;
3
+ //# sourceMappingURL=const.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../src/plugins/form-builder-base-plugin/const.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CA2BtD,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { ChatAreaPlugin } from '@baishuyun/types';
2
+ import { FormBuilderCommonMethods } from './types';
3
+ export declare class FormBuilderBasePlugin<T> extends ChatAreaPlugin<T, FormBuilderCommonMethods> {
4
+ pluginName: string;
5
+ publicMethods?: FormBuilderCommonMethods | undefined;
6
+ }
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/form-builder-base-plugin/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAInD,qBAAa,qBAAqB,CAAC,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,EAAE,wBAAwB,CAAC;IAChF,UAAU,EAAE,MAAM,CAA8B;IAEhD,aAAa,CAAC,EAAE,wBAAwB,GAAG,SAAS,CAmCzD;CACH"}
@@ -0,0 +1,12 @@
1
+ import { FieldsTools } from '@baishuyun/agents';
2
+ import { ValueOf } from '@baishuyun/types';
3
+ import { ToolUIPart } from 'ai';
4
+ export type Field = ValueOf<Pick<ToolUIPart<FieldsTools>, 'output'>>;
5
+ export interface FormBuilderCommonMethods {
6
+ dispatchCreateFormEvent: (name: string) => CustomEvent;
7
+ dispatchCreateRleatedFormsEvent: (fields: Field[]) => CustomEvent;
8
+ dispatchSaveFieldsEvent: () => CustomEvent;
9
+ dispatchFieldCreatedEvt: (field: Field) => CustomEvent;
10
+ dispatchFieldCheckUpdateEvt: (field: Field, checked: boolean) => CustomEvent;
11
+ }
12
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/plugins/form-builder-base-plugin/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAEhC,MAAM,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC;AAErE,MAAM,WAAW,wBAAwB;IACvC,uBAAuB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,WAAW,CAAC;IACvD,+BAA+B,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,WAAW,CAAC;IAClE,uBAAuB,EAAE,MAAM,WAAW,CAAC;IAC3C,uBAAuB,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,WAAW,CAAC;IACvD,2BAA2B,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,KAAK,WAAW,CAAC;CAC9E"}
@@ -0,0 +1,7 @@
1
+ import { ChatMessage, UseChatHelpers } from '@baishuyun/types';
2
+ export declare const CreateFormConfirm: import('react').MemoExoticComponent<({ designDoc, sendMessage, }: {
3
+ sendMessage: UseChatHelpers<ChatMessage>["sendMessage"];
4
+ onMount?: () => void;
5
+ designDoc: string;
6
+ }) => import("react/jsx-runtime").JSX.Element>;
7
+ //# sourceMappingURL=create-form-confirm.d.ts.map
@@ -0,0 +1,3 @@
1
+ import { EntryButtonProps } from '@baishuyun/types';
2
+ export declare const EntryButton: ({ style, chatVisible, onClick, variant, client }: EntryButtonProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=entry-btn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entry-btn.d.ts","sourceRoot":"","sources":["../../../../src/plugins/form-builder-plugin/components/entry-btn.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAGpD,eAAO,MAAM,WAAW,GAAI,kDAAkD,gBAAgB,4CAoC7F,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { SuggestionCardProps } from '@baishuyun/types';
2
+ export declare const FollowUp: (props: SuggestionCardProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=follow-up.d.ts.map
@@ -0,0 +1,3 @@
1
+ import { MsgPartCompProps } from '@baishuyun/types';
2
+ export declare const McpMessagePart: (props: MsgPartCompProps) => import("react/jsx-runtime").JSX.Element | null;
3
+ //# sourceMappingURL=msg-part.d.ts.map
@@ -0,0 +1,12 @@
1
+ export declare const MCP_PLUGIN_NAME = "McpFormBuilderPlugin";
2
+ export declare const DEFAULT_DATA_LOAD_CONF: {
3
+ mode: string;
4
+ extendSet: {
5
+ sort: string[];
6
+ status: boolean;
7
+ triggerField: string;
8
+ triggerFieldMode: string;
9
+ };
10
+ dataloadmode: string[];
11
+ };
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,2 @@
1
+ export declare const useFieldsConfirmed: () => boolean;
2
+ //# sourceMappingURL=use-fields-confirmed.d.ts.map
@@ -0,0 +1,24 @@
1
+ import { PluginCustomComponent, PluginHooks, PluginRegistryEntry, RealFormInfo } from '@baishuyun/types';
2
+ import { McpFormBuilderPluginCtx, Field, FormInfo } from './types';
3
+ import { FormBuilderBasePlugin } from '../form-builder-base-plugin';
4
+ import { DesignInfo } from './utils';
5
+ export declare class FormBuilderPlugin extends FormBuilderBasePlugin<McpFormBuilderPluginCtx> {
6
+ pluginName: string;
7
+ private currentWorkingFormName;
8
+ customComponents?: Partial<PluginCustomComponent> | undefined;
9
+ lifecycleHooks?: Partial<PluginHooks> | undefined;
10
+ constructor(ctx: McpFormBuilderPluginCtx);
11
+ dispose: () => void;
12
+ onAfterFieldCreate(field: Field): void;
13
+ private enhanceField;
14
+ onBeforeFieldCreate(field: Field): any;
15
+ skipDesignToBuildFields: (formInfo: RealFormInfo) => void;
16
+ onBeforeFormCreate(designInfo: DesignInfo): void;
17
+ onFormCreate(formInfo: RealFormInfo): void;
18
+ onAfterFieldsSave(onFormProcessed: (processedForm: FormInfo) => void): void;
19
+ getCurrentWorkingForm(): FormInfo | undefined;
20
+ private addEventListeners;
21
+ private removeEventListeners;
22
+ }
23
+ export declare const FormBuilderPluginRegisterEntry: PluginRegistryEntry<McpFormBuilderPluginCtx>;
24
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/form-builder-plugin/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,qBAAqB,EACrB,WAAW,EACX,mBAAmB,EACnB,YAAY,EAEb,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,uBAAuB,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,OAAO,EAEL,KAAK,UAAU,EAMhB,MAAM,SAAS,CAAC;AAOjB,qBAAa,iBAAkB,SAAQ,qBAAqB,CAAC,uBAAuB,CAAC;IAC5E,UAAU,EAAE,MAAM,CAAmB;IAE5C,OAAO,CAAC,sBAAsB,CAAc;IAErC,gBAAgB,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,GAAG,SAAS,CAGlE;IAEK,cAAc,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,GAAG,SAAS,CAatD;gBAEiB,GAAG,EAAE,uBAAuB;IAMxC,OAAO,aAEZ;IAEK,kBAAkB,CAAC,KAAK,EAAE,KAAK;IA6BtC,OAAO,CAAC,YAAY;IAuBb,mBAAmB,CAAC,KAAK,EAAE,KAAK;IAiBhC,uBAAuB,GAAI,UAAU,YAAY,UAOtD;IAGK,kBAAkB,CAAC,UAAU,EAAE,UAAU;IAmBzC,YAAY,CAAC,QAAQ,EAAE,YAAY;IAenC,iBAAiB,CAAC,eAAe,EAAE,CAAC,aAAa,EAAE,QAAQ,KAAK,IAAI;IAmDpE,qBAAqB;IAI5B,OAAO,CAAC,iBAAiB;IAEzB,OAAO,CAAC,oBAAoB;CAC7B;AAED,eAAO,MAAM,8BAA8B,EAAE,mBAAmB,CAAC,uBAAuB,CAQvF,CAAC"}
@@ -0,0 +1,51 @@
1
+ import { Field, FormInfo } from '../types';
2
+ import { FieldType } from '@baishuyun/types';
3
+ export interface FormField {
4
+ fieldName: string;
5
+ type: string;
6
+ required: boolean;
7
+ description: string;
8
+ relationDesc?: string;
9
+ }
10
+ export interface LinkInfo {
11
+ fieldName: string;
12
+ field?: Field;
13
+ targetFormName: string;
14
+ }
15
+ export interface DesignInfo {
16
+ formName: string;
17
+ linkInfoMap: Map<string, LinkInfo>;
18
+ }
19
+ /**
20
+ * 解析 mcp 返回的表单设计文档,提取关联信息
21
+ * @param designDoc
22
+ * @returns
23
+ */
24
+ export declare const parseFormDesignInfo: (designDoc: string) => DesignInfo;
25
+ export declare const isFieldTypeEqual: (field: Field, type: FieldType) => boolean;
26
+ export declare const hasSubFields: (field: Field) => boolean;
27
+ export declare const isLinkField: (field: Field) => boolean;
28
+ export declare const isSubFormField: (field: Field) => boolean;
29
+ export declare const isSNField: (field: Field) => boolean;
30
+ export declare const isTextField: (field: Field) => boolean;
31
+ export declare const hasLinkInfo: (designInfo: DesignInfo) => boolean;
32
+ export type FieldProcessor = (formInfo: FormInfo, field: Field, linkInfo: LinkInfo) => Field;
33
+ export interface FormFieldsWalkerConfig {
34
+ isTargetForm: (formName: string, info: FormInfo) => boolean;
35
+ isTargetField: (fieldName: string, linkInfo: LinkInfo) => boolean;
36
+ fieldProcessor: FieldProcessor;
37
+ onFormProcessed: (formInfo: FormInfo) => void;
38
+ }
39
+ /**
40
+ * 表单字段遍历器,目标为 infoMap
41
+ */
42
+ export declare const formFieldsWalker: (infoMap: Map<string, FormInfo>, options: FormFieldsWalkerConfig) => void;
43
+ export declare const buildWidgetName: (prefix?: string, index?: number) => string;
44
+ export declare const enhanceDataLoadField: (field: Field, linkInfo: LinkInfo, formMap: Map<string, FormInfo>, onEnhanced: (processed?: Field) => void) => any;
45
+ export declare const enhanceLinkField: (field: Field, linkInfo: LinkInfo, formMap: Map<string, FormInfo>, onEnhanced: (processed?: Field) => void) => Field;
46
+ export type PartialRecord<K extends keyof any, T> = Partial<Record<K, T>>;
47
+ /**
48
+ * 表单字段处理器工厂
49
+ */
50
+ export declare const fieldProcessorFactory: PartialRecord<FieldType, (ctxInfo: Map<string, FormInfo>) => FieldProcessor>;
51
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/form-builder-plugin/utils/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAG7C,MAAM,WAAW,SAAS;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAGD,MAAM,WAAW,QAAQ;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC;IAEd,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;CACpC;AA0GD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAAI,WAAW,MAAM,KAAG,UAKvD,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,OAAO,KAAK,EAAE,MAAM,SAAS,YAM7D,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,OAAO,KAAK,YAMxC,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,OAAO,KAAK,YAEvC,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,KAAK,YAM1C,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,OAAO,KAAK,YAMrC,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,OAAO,KAAK,YAMvC,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,YAAY,UAAU,YAMjD,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,KAAK,KAAK,CAAC;AAE7F,MAAM,WAAW,sBAAsB;IACrC,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,KAAK,OAAO,CAAC;IAC5D,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,KAAK,OAAO,CAAC;IAClE,cAAc,EAAE,cAAc,CAAC;IAC/B,eAAe,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC;CAC/C;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAE3B,SAAS,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,EAC9B,SAAS,sBAAsB,SA+BhC,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,MAclE,CAAC;AAGF,eAAO,MAAM,oBAAoB,GAC/B,OAAO,KAAK,EACZ,UAAU,QAAQ,EAClB,SAAS,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,EAC9B,YAAY,CAAC,SAAS,CAAC,EAAE,KAAK,KAAK,IAAI,QA+DxC,CAAC;AAGF,eAAO,MAAM,gBAAgB,GAC3B,OAAO,KAAK,EACZ,UAAU,QAAQ,EAClB,SAAS,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,EAC9B,YAAY,CAAC,SAAS,CAAC,EAAE,KAAK,KAAK,IAAI,KACtC,KAmFF,CAAC;AAEF,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,MAAM,GAAG,EAAE,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAE1E;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,aAAa,CAC/C,SAAS,EACT,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,cAAc,CAoBnD,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { IEvtBus } from '@baishuyun/types';
2
+ /**
3
+ * Manages batch filling data for form filling plugin.
4
+ * Tracks checked message IDs so external users can get checked messages.
5
+ */
6
+ export declare class BatchFillingDataManager {
7
+ private evtBus;
8
+ /** Set of all message IDs that have been filled */
9
+ private allMessageIds;
10
+ /** Set of unchecked messageIds */
11
+ private uncheckedMessageIds;
12
+ constructor(evtBus: IEvtBus);
13
+ private handleFieldFillingUpdate;
14
+ private handleFieldsCheckedUpdate;
15
+ private handleFieldsDataConfirmed;
16
+ /**
17
+ * Get all checked message IDs
18
+ */
19
+ getCheckedMessageIds(): Set<string>;
20
+ /**
21
+ * Clear all tracked data
22
+ */
23
+ clear(): void;
24
+ dispose(): void;
25
+ }
26
+ //# sourceMappingURL=batch-filling-data-manager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batch-filling-data-manager.d.ts","sourceRoot":"","sources":["../../../src/plugins/form-filling-plugin/batch-filling-data-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAO9E;;;GAGG;AACH,qBAAa,uBAAuB;IAClC,OAAO,CAAC,MAAM,CAAU;IAExB,mDAAmD;IACnD,OAAO,CAAC,aAAa,CAA0B;IAE/C,kCAAkC;IAClC,OAAO,CAAC,mBAAmB,CAA0B;gBAElC,MAAM,EAAE,OAAO;IAiBlC,OAAO,CAAC,wBAAwB,CAW9B;IAEF,OAAO,CAAC,yBAAyB,CAe/B;IAEF,OAAO,CAAC,yBAAyB,CAK/B;IAEF;;OAEG;IACI,oBAAoB,IAAI,GAAG,CAAC,MAAM,CAAC;IAU1C;;OAEG;IACI,KAAK,IAAI,IAAI;IAKb,OAAO,IAAI,IAAI;CAgBvB"}
@@ -0,0 +1,3 @@
1
+ import { OpeningLinesProps } from '@baishuyun/types';
2
+ export declare const FormFillingOpeningLines: ({ sendMessage }: OpeningLinesProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=FormFillingOpeningLines.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormFillingOpeningLines.d.ts","sourceRoot":"","sources":["../../../../src/plugins/form-filling-plugin/components/FormFillingOpeningLines.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAIrD,eAAO,MAAM,uBAAuB,GAAI,iBAAiB,iBAAiB,4CAmCzE,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const FillingAvatar: ({ variant, }: {
2
+ variant?: "default" | "active";
3
+ size?: number;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=avatar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../../src/plugins/form-filling-plugin/components/avatar.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,aAAa,GAAI,cAE3B;IACD,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,4CAOA,CAAC"}