@baishuyun/chat-sdk 0.0.14 → 0.0.15

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 (429) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/chat-sdk.js +3347 -3333
  3. package/dist/chat-sdk.js.map +1 -1
  4. package/dist/chat-sdk.umd.cjs +106 -106
  5. package/dist/chat-sdk.umd.cjs.map +1 -1
  6. package/dist/index.css +1 -1
  7. package/package.json +4 -4
  8. package/src/components/biz-comp/multi-modal-input/index.tsx +0 -3
  9. package/src/components/biz-comp/opening-lines.tsx +2 -21
  10. package/src/components/bs-ui/chat-area-header.tsx +1 -1
  11. package/src/plugins/form-builder-plugin/components/create-form-confirm.tsx +3 -1
  12. package/src/plugins/form-builder-plugin/components/msg-part.tsx +6 -0
  13. package/src/plugins/form-builder-plugin/components/opening-lines.tsx +31 -0
  14. package/src/plugins/form-builder-plugin/index.ts +18 -0
  15. package/src/plugins/form-builder-plugin/types.ts +3 -1
  16. package/dist/chat.d.ts +0 -5
  17. package/dist/chat.d.ts.map +0 -1
  18. package/dist/components/biz-comp/FakeBotMsg.d.ts +0 -8
  19. package/dist/components/biz-comp/FakeBotMsg.d.ts.map +0 -1
  20. package/dist/components/biz-comp/FieldChecker.d.ts +0 -18
  21. package/dist/components/biz-comp/FieldChecker.d.ts.map +0 -1
  22. package/dist/components/biz-comp/FieldCheckerListMsg.d.ts +0 -16
  23. package/dist/components/biz-comp/FieldCheckerListMsg.d.ts.map +0 -1
  24. package/dist/components/biz-comp/FieldValueChecker.d.ts +0 -16
  25. package/dist/components/biz-comp/FieldValueChecker.d.ts.map +0 -1
  26. package/dist/components/biz-comp/SubformFieldsValueChecker.d.ts +0 -22
  27. package/dist/components/biz-comp/SubformFieldsValueChecker.d.ts.map +0 -1
  28. package/dist/components/biz-comp/chat-client.d.ts +0 -13
  29. package/dist/components/biz-comp/chat-client.d.ts.map +0 -1
  30. package/dist/components/biz-comp/chat-frame.d.ts +0 -6
  31. package/dist/components/biz-comp/chat-frame.d.ts.map +0 -1
  32. package/dist/components/biz-comp/conversation.d.ts +0 -10
  33. package/dist/components/biz-comp/conversation.d.ts.map +0 -1
  34. package/dist/components/biz-comp/dash-widget-icon.d.ts +0 -7
  35. package/dist/components/biz-comp/dash-widget-icon.d.ts.map +0 -1
  36. package/dist/components/biz-comp/dock-btn.d.ts +0 -2
  37. package/dist/components/biz-comp/dock-btn.d.ts.map +0 -1
  38. package/dist/components/biz-comp/error-boundary.d.ts +0 -15
  39. package/dist/components/biz-comp/error-boundary.d.ts.map +0 -1
  40. package/dist/components/biz-comp/error-msg.d.ts +0 -4
  41. package/dist/components/biz-comp/error-msg.d.ts.map +0 -1
  42. package/dist/components/biz-comp/field-icon.d.ts +0 -5
  43. package/dist/components/biz-comp/field-icon.d.ts.map +0 -1
  44. package/dist/components/biz-comp/highlight-msg.d.ts +0 -4
  45. package/dist/components/biz-comp/highlight-msg.d.ts.map +0 -1
  46. package/dist/components/biz-comp/markdown-part.d.ts +0 -7
  47. package/dist/components/biz-comp/markdown-part.d.ts.map +0 -1
  48. package/dist/components/biz-comp/markdown.d.ts +0 -5
  49. package/dist/components/biz-comp/markdown.d.ts.map +0 -1
  50. package/dist/components/biz-comp/message-content.d.ts +0 -6
  51. package/dist/components/biz-comp/message-content.d.ts.map +0 -1
  52. package/dist/components/biz-comp/messages.d.ts +0 -3
  53. package/dist/components/biz-comp/messages.d.ts.map +0 -1
  54. package/dist/components/biz-comp/multi-modal-input/attachment-btn.d.ts +0 -9
  55. package/dist/components/biz-comp/multi-modal-input/attachment-btn.d.ts.map +0 -1
  56. package/dist/components/biz-comp/multi-modal-input/clear-btn.d.ts +0 -7
  57. package/dist/components/biz-comp/multi-modal-input/clear-btn.d.ts.map +0 -1
  58. package/dist/components/biz-comp/multi-modal-input/index.d.ts +0 -21
  59. package/dist/components/biz-comp/multi-modal-input/index.d.ts.map +0 -1
  60. package/dist/components/biz-comp/multi-modal-input/preview-attachment.d.ts +0 -12
  61. package/dist/components/biz-comp/multi-modal-input/preview-attachment.d.ts.map +0 -1
  62. package/dist/components/biz-comp/multi-modal-input/prompt-input.d.ts +0 -36
  63. package/dist/components/biz-comp/multi-modal-input/prompt-input.d.ts.map +0 -1
  64. package/dist/components/biz-comp/opening-lines.d.ts +0 -3
  65. package/dist/components/biz-comp/opening-lines.d.ts.map +0 -1
  66. package/dist/components/biz-comp/preview-message-wrapper.d.ts +0 -12
  67. package/dist/components/biz-comp/preview-message-wrapper.d.ts.map +0 -1
  68. package/dist/components/biz-comp/preview-message.d.ts +0 -13
  69. package/dist/components/biz-comp/preview-message.d.ts.map +0 -1
  70. package/dist/components/biz-comp/response.d.ts +0 -6
  71. package/dist/components/biz-comp/response.d.ts.map +0 -1
  72. package/dist/components/biz-comp/suggestions.d.ts +0 -8
  73. package/dist/components/biz-comp/suggestions.d.ts.map +0 -1
  74. package/dist/components/bs-ui/abs-fullscreen-gradient-bg.d.ts +0 -10
  75. package/dist/components/bs-ui/abs-fullscreen-gradient-bg.d.ts.map +0 -1
  76. package/dist/components/bs-ui/attachment-part-group.d.ts +0 -13
  77. package/dist/components/bs-ui/attachment-part-group.d.ts.map +0 -1
  78. package/dist/components/bs-ui/attachment-part.d.ts +0 -17
  79. package/dist/components/bs-ui/attachment-part.d.ts.map +0 -1
  80. package/dist/components/bs-ui/attachments-previewer.d.ts +0 -18
  81. package/dist/components/bs-ui/attachments-previewer.d.ts.map +0 -1
  82. package/dist/components/bs-ui/base-button.d.ts +0 -6
  83. package/dist/components/bs-ui/base-button.d.ts.map +0 -1
  84. package/dist/components/bs-ui/border-color-animation.d.ts +0 -11
  85. package/dist/components/bs-ui/border-color-animation.d.ts.map +0 -1
  86. package/dist/components/bs-ui/bot-avatar-name.d.ts +0 -6
  87. package/dist/components/bs-ui/bot-avatar-name.d.ts.map +0 -1
  88. package/dist/components/bs-ui/bot-icon.d.ts +0 -5
  89. package/dist/components/bs-ui/bot-icon.d.ts.map +0 -1
  90. package/dist/components/bs-ui/bs-icons.d.ts +0 -62
  91. package/dist/components/bs-ui/bs-icons.d.ts.map +0 -1
  92. package/dist/components/bs-ui/card-field.d.ts +0 -11
  93. package/dist/components/bs-ui/card-field.d.ts.map +0 -1
  94. package/dist/components/bs-ui/card.d.ts +0 -10
  95. package/dist/components/bs-ui/card.d.ts.map +0 -1
  96. package/dist/components/bs-ui/chat-area-header.d.ts +0 -13
  97. package/dist/components/bs-ui/chat-area-header.d.ts.map +0 -1
  98. package/dist/components/bs-ui/circle-checker.d.ts +0 -10
  99. package/dist/components/bs-ui/circle-checker.d.ts.map +0 -1
  100. package/dist/components/bs-ui/collapsible-txt-msg.d.ts +0 -11
  101. package/dist/components/bs-ui/collapsible-txt-msg.d.ts.map +0 -1
  102. package/dist/components/bs-ui/confirm-dialog.d.ts +0 -26
  103. package/dist/components/bs-ui/confirm-dialog.d.ts.map +0 -1
  104. package/dist/components/bs-ui/fields-generating-indicator.d.ts +0 -6
  105. package/dist/components/bs-ui/fields-generating-indicator.d.ts.map +0 -1
  106. package/dist/components/bs-ui/fields-portal.d.ts +0 -8
  107. package/dist/components/bs-ui/fields-portal.d.ts.map +0 -1
  108. package/dist/components/bs-ui/fields-previewer.d.ts +0 -18
  109. package/dist/components/bs-ui/fields-previewer.d.ts.map +0 -1
  110. package/dist/components/bs-ui/font-icon.d.ts +0 -6
  111. package/dist/components/bs-ui/font-icon.d.ts.map +0 -1
  112. package/dist/components/bs-ui/form-info-editor.d.ts +0 -38
  113. package/dist/components/bs-ui/form-info-editor.d.ts.map +0 -1
  114. package/dist/components/bs-ui/formula-tag.d.ts +0 -8
  115. package/dist/components/bs-ui/formula-tag.d.ts.map +0 -1
  116. package/dist/components/bs-ui/generate-animation.d.ts +0 -4
  117. package/dist/components/bs-ui/generate-animation.d.ts.map +0 -1
  118. package/dist/components/bs-ui/icon-btn.d.ts +0 -9
  119. package/dist/components/bs-ui/icon-btn.d.ts.map +0 -1
  120. package/dist/components/bs-ui/img-part.d.ts +0 -9
  121. package/dist/components/bs-ui/img-part.d.ts.map +0 -1
  122. package/dist/components/bs-ui/line-checker.d.ts +0 -18
  123. package/dist/components/bs-ui/line-checker.d.ts.map +0 -1
  124. package/dist/components/bs-ui/linear-gradient-border-btn.d.ts +0 -10
  125. package/dist/components/bs-ui/linear-gradient-border-btn.d.ts.map +0 -1
  126. package/dist/components/bs-ui/linear-gradient-color-bg-animation.d.ts +0 -8
  127. package/dist/components/bs-ui/linear-gradient-color-bg-animation.d.ts.map +0 -1
  128. package/dist/components/bs-ui/number-part.d.ts +0 -9
  129. package/dist/components/bs-ui/number-part.d.ts.map +0 -1
  130. package/dist/components/bs-ui/option-item.d.ts +0 -9
  131. package/dist/components/bs-ui/option-item.d.ts.map +0 -1
  132. package/dist/components/bs-ui/previewer-header.d.ts +0 -18
  133. package/dist/components/bs-ui/previewer-header.d.ts.map +0 -1
  134. package/dist/components/bs-ui/primary-confirm-btn.d.ts +0 -10
  135. package/dist/components/bs-ui/primary-confirm-btn.d.ts.map +0 -1
  136. package/dist/components/bs-ui/primary-entry-btn.d.ts +0 -9
  137. package/dist/components/bs-ui/primary-entry-btn.d.ts.map +0 -1
  138. package/dist/components/bs-ui/scroll-to-bottom-btn.d.ts +0 -6
  139. package/dist/components/bs-ui/scroll-to-bottom-btn.d.ts.map +0 -1
  140. package/dist/components/bs-ui/split-line.d.ts +0 -5
  141. package/dist/components/bs-ui/split-line.d.ts.map +0 -1
  142. package/dist/components/bs-ui/square-checker.d.ts +0 -11
  143. package/dist/components/bs-ui/tab-radio-group.d.ts +0 -19
  144. package/dist/components/bs-ui/tab-radio-group.d.ts.map +0 -1
  145. package/dist/components/bs-ui/tooltip.d.ts +0 -6
  146. package/dist/components/bs-ui/tooltip.d.ts.map +0 -1
  147. package/dist/components/bs-ui/user-txt-msg-bubble.d.ts +0 -6
  148. package/dist/components/bs-ui/user-txt-msg-bubble.d.ts.map +0 -1
  149. package/dist/components/bs-ui/warning-msg.d.ts +0 -6
  150. package/dist/components/bs-ui/warning-msg.d.ts.map +0 -1
  151. package/dist/components/ui/badge.d.ts +0 -10
  152. package/dist/components/ui/badge.d.ts.map +0 -1
  153. package/dist/components/ui/button.d.ts +0 -12
  154. package/dist/components/ui/button.d.ts.map +0 -1
  155. package/dist/components/ui/card.d.ts +0 -9
  156. package/dist/components/ui/card.d.ts.map +0 -1
  157. package/dist/components/ui/checkbox.d.ts +0 -5
  158. package/dist/components/ui/checkbox.d.ts.map +0 -1
  159. package/dist/components/ui/collapsible.d.ts +0 -6
  160. package/dist/components/ui/collapsible.d.ts.map +0 -1
  161. package/dist/components/ui/dialog.d.ts +0 -24
  162. package/dist/components/ui/dialog.d.ts.map +0 -1
  163. package/dist/components/ui/dropdown-menu.d.ts +0 -28
  164. package/dist/components/ui/dropdown-menu.d.ts.map +0 -1
  165. package/dist/components/ui/icons.d.ts +0 -176
  166. package/dist/components/ui/icons.d.ts.map +0 -1
  167. package/dist/components/ui/input-group.d.ts +0 -17
  168. package/dist/components/ui/input-group.d.ts.map +0 -1
  169. package/dist/components/ui/input.d.ts +0 -4
  170. package/dist/components/ui/input.d.ts.map +0 -1
  171. package/dist/components/ui/label.d.ts +0 -6
  172. package/dist/components/ui/label.d.ts.map +0 -1
  173. package/dist/components/ui/one-time-click-btn.d.ts +0 -4
  174. package/dist/components/ui/one-time-click-btn.d.ts.map +0 -1
  175. package/dist/components/ui/select.d.ts +0 -14
  176. package/dist/components/ui/select.d.ts.map +0 -1
  177. package/dist/components/ui/spinner.d.ts +0 -3
  178. package/dist/components/ui/spinner.d.ts.map +0 -1
  179. package/dist/components/ui/tabs.d.ts +0 -8
  180. package/dist/components/ui/tabs.d.ts.map +0 -1
  181. package/dist/components/ui/textarea.d.ts +0 -4
  182. package/dist/components/ui/textarea.d.ts.map +0 -1
  183. package/dist/components/ui/tooltip.d.ts +0 -13
  184. package/dist/components/ui/tooltip.d.ts.map +0 -1
  185. package/dist/components/web-comp/fields-previewer-web-component.d.ts +0 -60
  186. package/dist/components/web-comp/fields-previewer-web-component.d.ts.map +0 -1
  187. package/dist/const/index.d.ts +0 -5
  188. package/dist/const/index.d.ts.map +0 -1
  189. package/dist/const/ui.d.ts +0 -5
  190. package/dist/const/ui.d.ts.map +0 -1
  191. package/dist/hooks/use-chat-preference.d.ts +0 -3
  192. package/dist/hooks/use-chat-preference.d.ts.map +0 -1
  193. package/dist/hooks/use-draggable.d.ts +0 -24
  194. package/dist/hooks/use-draggable.d.ts.map +0 -1
  195. package/dist/hooks/use-evt-bus.d.ts +0 -2
  196. package/dist/hooks/use-evt-bus.d.ts.map +0 -1
  197. package/dist/hooks/use-evt.d.ts +0 -3
  198. package/dist/hooks/use-evt.d.ts.map +0 -1
  199. package/dist/hooks/use-frame-mode.d.ts +0 -15
  200. package/dist/hooks/use-frame-mode.d.ts.map +0 -1
  201. package/dist/hooks/use-merged-chat.d.ts +0 -7
  202. package/dist/hooks/use-merged-chat.d.ts.map +0 -1
  203. package/dist/hooks/use-msg-status-broadcast.d.ts +0 -3
  204. package/dist/hooks/use-msg-status-broadcast.d.ts.map +0 -1
  205. package/dist/hooks/use-plugin-component.d.ts +0 -5
  206. package/dist/hooks/use-plugin-component.d.ts.map +0 -1
  207. package/dist/hooks/use-plugin-ctx.d.ts +0 -3
  208. package/dist/hooks/use-plugin-ctx.d.ts.map +0 -1
  209. package/dist/hooks/use-plugin-custom-components.d.ts +0 -5
  210. package/dist/hooks/use-plugin-custom-components.d.ts.map +0 -1
  211. package/dist/hooks/use-plugin-life-cycle-chain-runner.d.ts +0 -5
  212. package/dist/hooks/use-plugin-life-cycle-chain-runner.d.ts.map +0 -1
  213. package/dist/hooks/use-plugin-list.d.ts +0 -2
  214. package/dist/hooks/use-plugin-list.d.ts.map +0 -1
  215. package/dist/hooks/use-plugin.d.ts +0 -2
  216. package/dist/hooks/use-plugin.d.ts.map +0 -1
  217. package/dist/hooks/use-scroll-to-bottom.d.ts +0 -9
  218. package/dist/hooks/use-scroll-to-bottom.d.ts.map +0 -1
  219. package/dist/hooks/use-shadow.d.ts +0 -25
  220. package/dist/hooks/use-shadow.d.ts.map +0 -1
  221. package/dist/hooks/use-toast.d.ts +0 -3
  222. package/dist/index.d.ts +0 -7
  223. package/dist/index.d.ts.map +0 -1
  224. package/dist/lib/clone.d.ts +0 -32
  225. package/dist/lib/clone.d.ts.map +0 -1
  226. package/dist/lib/event-emitter.d.ts +0 -39
  227. package/dist/lib/event-emitter.d.ts.map +0 -1
  228. package/dist/lib/readonly.d.ts +0 -14
  229. package/dist/lib/readonly.d.ts.map +0 -1
  230. package/dist/lib/utils.d.ts +0 -40
  231. package/dist/lib/utils.d.ts.map +0 -1
  232. package/dist/plugins/form-builder-base-plugin/const.d.ts +0 -3
  233. package/dist/plugins/form-builder-base-plugin/const.d.ts.map +0 -1
  234. package/dist/plugins/form-builder-base-plugin/index.d.ts +0 -7
  235. package/dist/plugins/form-builder-base-plugin/index.d.ts.map +0 -1
  236. package/dist/plugins/form-builder-base-plugin/types.d.ts +0 -12
  237. package/dist/plugins/form-builder-base-plugin/types.d.ts.map +0 -1
  238. package/dist/plugins/form-builder-plugin/components/create-form-confirm.d.ts +0 -7
  239. package/dist/plugins/form-builder-plugin/components/entry-btn.d.ts +0 -3
  240. package/dist/plugins/form-builder-plugin/components/entry-btn.d.ts.map +0 -1
  241. package/dist/plugins/form-builder-plugin/components/follow-up.d.ts +0 -3
  242. package/dist/plugins/form-builder-plugin/components/follow-up.d.ts.map +0 -0
  243. package/dist/plugins/form-builder-plugin/components/msg-part.d.ts +0 -3
  244. package/dist/plugins/form-builder-plugin/components/msg-part.d.ts.map +0 -0
  245. package/dist/plugins/form-builder-plugin/const/index.d.ts +0 -12
  246. package/dist/plugins/form-builder-plugin/const/index.d.ts.map +0 -0
  247. package/dist/plugins/form-builder-plugin/hooks/use-fields-confirmed.d.ts +0 -2
  248. package/dist/plugins/form-builder-plugin/index.d.ts +0 -24
  249. package/dist/plugins/form-builder-plugin/index.d.ts.map +0 -1
  250. package/dist/plugins/form-builder-plugin/utils/index.d.ts +0 -51
  251. package/dist/plugins/form-builder-plugin/utils/index.d.ts.map +0 -1
  252. package/dist/plugins/form-filling-plugin/batch-filling-data-manager.d.ts +0 -26
  253. package/dist/plugins/form-filling-plugin/batch-filling-data-manager.d.ts.map +0 -1
  254. package/dist/plugins/form-filling-plugin/components/FormFillingOpeningLines.d.ts +0 -3
  255. package/dist/plugins/form-filling-plugin/components/FormFillingOpeningLines.d.ts.map +0 -1
  256. package/dist/plugins/form-filling-plugin/components/avatar.d.ts +0 -5
  257. package/dist/plugins/form-filling-plugin/components/avatar.d.ts.map +0 -1
  258. package/dist/plugins/form-filling-plugin/components/batch-generator-action.d.ts +0 -14
  259. package/dist/plugins/form-filling-plugin/components/batch-generator-action.d.ts.map +0 -1
  260. package/dist/plugins/form-filling-plugin/components/entry-btn.d.ts +0 -3
  261. package/dist/plugins/form-filling-plugin/components/entry-btn.d.ts.map +0 -1
  262. package/dist/plugins/form-filling-plugin/components/mode-select.d.ts +0 -2
  263. package/dist/plugins/form-filling-plugin/components/mode-select.d.ts.map +0 -1
  264. package/dist/plugins/form-filling-plugin/components/msg-part.d.ts +0 -3
  265. package/dist/plugins/form-filling-plugin/components/msg-part.d.ts.map +0 -1
  266. package/dist/plugins/form-filling-plugin/const.d.ts +0 -615
  267. package/dist/plugins/form-filling-plugin/const.d.ts.map +0 -1
  268. package/dist/plugins/form-filling-plugin/index.d.ts +0 -19
  269. package/dist/plugins/form-filling-plugin/index.d.ts.map +0 -1
  270. package/dist/plugins/form-filling-plugin/types.d.ts +0 -10
  271. package/dist/plugins/form-filling-plugin/types.d.ts.map +0 -1
  272. package/dist/plugins/form-filling-plugin/utils.d.ts +0 -6
  273. package/dist/plugins/form-filling-plugin/utils.d.ts.map +0 -1
  274. package/dist/plugins/general-model-form-builder-plugin/components/confirmer.d.ts +0 -9
  275. package/dist/plugins/general-model-form-builder-plugin/components/confirmer.d.ts.map +0 -1
  276. package/dist/plugins/general-model-form-builder-plugin/components/ghost-evt-dispatcher.d.ts +0 -10
  277. package/dist/plugins/general-model-form-builder-plugin/components/ghost-evt-dispatcher.d.ts.map +0 -1
  278. package/dist/plugins/general-model-form-builder-plugin/components/msg-part.d.ts +0 -3
  279. package/dist/plugins/general-model-form-builder-plugin/components/msg-part.d.ts.map +0 -1
  280. package/dist/plugins/general-model-form-builder-plugin/components/new-confirmer.d.ts +0 -10
  281. package/dist/plugins/general-model-form-builder-plugin/components/new-confirmer.d.ts.map +0 -1
  282. package/dist/plugins/general-model-form-builder-plugin/const.d.ts +0 -3
  283. package/dist/plugins/general-model-form-builder-plugin/const.d.ts.map +0 -1
  284. package/dist/plugins/general-model-form-builder-plugin/index.d.ts +0 -9
  285. package/dist/plugins/general-model-form-builder-plugin/index.d.ts.map +0 -1
  286. package/dist/plugins/general-model-form-builder-plugin/types.d.ts +0 -3
  287. package/dist/plugins/general-model-form-builder-plugin/types.d.ts.map +0 -1
  288. package/dist/plugins/mcp-form-builder-plugin/components/create-form-confirm.d.ts +0 -7
  289. package/dist/plugins/mcp-form-builder-plugin/components/create-form-confirm.d.ts.map +0 -1
  290. package/dist/plugins/mcp-form-builder-plugin/components/entry-btn.d.ts +0 -3
  291. package/dist/plugins/mcp-form-builder-plugin/components/entry-btn.d.ts.map +0 -1
  292. package/dist/plugins/mcp-form-builder-plugin/components/follow-up.d.ts +0 -3
  293. package/dist/plugins/mcp-form-builder-plugin/components/follow-up.d.ts.map +0 -1
  294. package/dist/plugins/mcp-form-builder-plugin/components/msg-part.d.ts +0 -3
  295. package/dist/plugins/mcp-form-builder-plugin/components/msg-part.d.ts.map +0 -1
  296. package/dist/plugins/mcp-form-builder-plugin/const/index.d.ts +0 -12
  297. package/dist/plugins/mcp-form-builder-plugin/const/index.d.ts.map +0 -1
  298. package/dist/plugins/mcp-form-builder-plugin/hooks/index.d.ts +0 -1
  299. package/dist/plugins/mcp-form-builder-plugin/hooks/index.d.ts.map +0 -1
  300. package/dist/plugins/mcp-form-builder-plugin/hooks/use-fields-confirmed.d.ts +0 -2
  301. package/dist/plugins/mcp-form-builder-plugin/hooks/use-fields-confirmed.d.ts.map +0 -1
  302. package/dist/plugins/mcp-form-builder-plugin/index.d.ts +0 -23
  303. package/dist/plugins/mcp-form-builder-plugin/index.d.ts.map +0 -1
  304. package/dist/plugins/mcp-form-builder-plugin/types.d.ts +0 -17
  305. package/dist/plugins/mcp-form-builder-plugin/types.d.ts.map +0 -1
  306. package/dist/plugins/mcp-form-builder-plugin/utils/index.d.ts +0 -51
  307. package/dist/plugins/mcp-form-builder-plugin/utils/index.d.ts.map +0 -1
  308. package/dist/plugins/report-query-plugin/components/avatar.d.ts +0 -5
  309. package/dist/plugins/report-query-plugin/components/avatar.d.ts.map +0 -1
  310. package/dist/plugins/report-query-plugin/components/query-entry-btn.d.ts +0 -3
  311. package/dist/plugins/report-query-plugin/components/query-entry-btn.d.ts.map +0 -1
  312. package/dist/plugins/report-query-plugin/components/query-msg-part.d.ts +0 -3
  313. package/dist/plugins/report-query-plugin/components/query-msg-part.d.ts.map +0 -1
  314. package/dist/plugins/report-query-plugin/components/query-opening-lines.d.ts +0 -2
  315. package/dist/plugins/report-query-plugin/components/query-opening-lines.d.ts.map +0 -1
  316. package/dist/plugins/report-query-plugin/components/result-cards/DataTableCard.d.ts +0 -3
  317. package/dist/plugins/report-query-plugin/components/result-cards/DataTableCard.d.ts.map +0 -1
  318. package/dist/plugins/report-query-plugin/components/result-cards/DataTableFields.d.ts +0 -18
  319. package/dist/plugins/report-query-plugin/components/result-cards/DataTableFields.d.ts.map +0 -1
  320. package/dist/plugins/report-query-plugin/components/result-cards/FilterCondition.d.ts +0 -4
  321. package/dist/plugins/report-query-plugin/components/result-cards/FilterCondition.d.ts.map +0 -1
  322. package/dist/plugins/report-query-plugin/components/result-cards/FormulaField.d.ts +0 -8
  323. package/dist/plugins/report-query-plugin/components/result-cards/FormulaField.d.ts.map +0 -1
  324. package/dist/plugins/report-query-plugin/const.d.ts +0 -2
  325. package/dist/plugins/report-query-plugin/const.d.ts.map +0 -1
  326. package/dist/plugins/report-query-plugin/index.d.ts +0 -15
  327. package/dist/plugins/report-query-plugin/index.d.ts.map +0 -1
  328. package/dist/plugins/report-query-plugin/types.d.ts +0 -13
  329. package/dist/plugins/report-query-plugin/types.d.ts.map +0 -1
  330. package/dist/plugins/report-query-plugin/utils/build-dash-component.d.ts +0 -17
  331. package/dist/plugins/report-query-plugin/utils/build-dash-component.d.ts.map +0 -1
  332. package/dist/plugins/report-query-plugin/utils/create-default-dash-styles.d.ts +0 -30
  333. package/dist/plugins/report-query-plugin/utils/create-default-dash-styles.d.ts.map +0 -1
  334. package/dist/plugins/report-query-plugin/utils/create-default-widget-attr-list.d.ts +0 -60
  335. package/dist/plugins/report-query-plugin/utils/create-default-widget-attr-list.d.ts.map +0 -1
  336. package/dist/plugins/report-query-plugin/utils/field-enhance.d.ts +0 -31
  337. package/dist/plugins/report-query-plugin/utils/field-enhance.d.ts.map +0 -1
  338. package/dist/plugins/report-query-plugin/utils/get-field-group.d.ts +0 -208
  339. package/dist/plugins/report-query-plugin/utils/get-field-group.d.ts.map +0 -1
  340. package/dist/plugins/report-query-plugin/utils/get-field-icon.d.ts +0 -4
  341. package/dist/plugins/report-query-plugin/utils/get-field-icon.d.ts.map +0 -1
  342. package/dist/plugins/report-query-plugin/utils/get-group-rule.d.ts +0 -4
  343. package/dist/plugins/report-query-plugin/utils/get-group-rule.d.ts.map +0 -1
  344. package/dist/plugins/report-query-plugin/utils/index.d.ts +0 -5
  345. package/dist/plugins/report-query-plugin/utils/index.d.ts.map +0 -1
  346. package/dist/sdk.impl.d.ts +0 -31
  347. package/dist/sdk.impl.d.ts.map +0 -1
  348. package/dist/store/context.d.ts +0 -12
  349. package/dist/store/context.d.ts.map +0 -1
  350. package/dist/store/index.d.ts +0 -14
  351. package/dist/store/index.d.ts.map +0 -1
  352. package/dist/stories/AbsFullscreenGradientBg.stories.d.ts +0 -17
  353. package/dist/stories/AbsFullscreenGradientBg.stories.d.ts.map +0 -1
  354. package/dist/stories/AttachmentPart.stories.d.ts +0 -23
  355. package/dist/stories/AttachmentPart.stories.d.ts.map +0 -1
  356. package/dist/stories/AttachmentPartGroup.stories.d.ts +0 -21
  357. package/dist/stories/AttachmentPartGroup.stories.d.ts.map +0 -1
  358. package/dist/stories/AttachmentsPreviewer.stories.d.ts +0 -20
  359. package/dist/stories/AttachmentsPreviewer.stories.d.ts.map +0 -1
  360. package/dist/stories/BaseButton.stories.d.ts +0 -18
  361. package/dist/stories/BaseButton.stories.d.ts.map +0 -1
  362. package/dist/stories/BorderColorAnimation.stories.d.ts +0 -26
  363. package/dist/stories/BorderColorAnimation.stories.d.ts.map +0 -1
  364. package/dist/stories/BotAvatarAndName.stories.d.ts +0 -18
  365. package/dist/stories/BotAvatarAndName.stories.d.ts.map +0 -1
  366. package/dist/stories/BotIcon.stories.d.ts +0 -17
  367. package/dist/stories/BotIcon.stories.d.ts.map +0 -1
  368. package/dist/stories/BsTooltip.stories.d.ts +0 -7
  369. package/dist/stories/BsTooltip.stories.d.ts.map +0 -1
  370. package/dist/stories/Card.stories.d.ts +0 -14
  371. package/dist/stories/Card.stories.d.ts.map +0 -1
  372. package/dist/stories/CardField.stories.d.ts +0 -13
  373. package/dist/stories/CardField.stories.d.ts.map +0 -1
  374. package/dist/stories/ChatAreaHeader.stories.d.ts +0 -14
  375. package/dist/stories/ChatAreaHeader.stories.d.ts.map +0 -1
  376. package/dist/stories/CircleChecker.stories.d.ts +0 -21
  377. package/dist/stories/CircleChecker.stories.d.ts.map +0 -1
  378. package/dist/stories/CollapsibleTextMsg.stories.d.ts +0 -16
  379. package/dist/stories/CollapsibleTextMsg.stories.d.ts.map +0 -1
  380. package/dist/stories/ConfirmDialog.stories.d.ts +0 -61
  381. package/dist/stories/ConfirmDialog.stories.d.ts.map +0 -1
  382. package/dist/stories/DashWidgetIcon.stories.d.ts +0 -13
  383. package/dist/stories/DashWidgetIcon.stories.d.ts.map +0 -1
  384. package/dist/stories/FormInfoEditor.stories.d.ts +0 -15
  385. package/dist/stories/FormInfoEditor.stories.d.ts.map +0 -1
  386. package/dist/stories/FormulaField.stories.d.ts +0 -24
  387. package/dist/stories/FormulaField.stories.d.ts.map +0 -1
  388. package/dist/stories/FormulaTag.stories.d.ts +0 -37
  389. package/dist/stories/FormulaTag.stories.d.ts.map +0 -1
  390. package/dist/stories/GenerateAnimation.stories.d.ts +0 -16
  391. package/dist/stories/GenerateAnimation.stories.d.ts.map +0 -1
  392. package/dist/stories/IconBtn.stories.d.ts +0 -15
  393. package/dist/stories/IconBtn.stories.d.ts.map +0 -1
  394. package/dist/stories/IconLib.d.ts +0 -12
  395. package/dist/stories/IconLib.d.ts.map +0 -1
  396. package/dist/stories/Icons.stories.d.ts +0 -24
  397. package/dist/stories/Icons.stories.d.ts.map +0 -1
  398. package/dist/stories/ImgMsgPart.stories.d.ts +0 -20
  399. package/dist/stories/ImgMsgPart.stories.d.ts.map +0 -1
  400. package/dist/stories/LineChecker.stories.d.ts +0 -23
  401. package/dist/stories/LineChecker.stories.d.ts.map +0 -1
  402. package/dist/stories/LinearGradientBorderBtn.stories.d.ts +0 -22
  403. package/dist/stories/LinearGradientBorderBtn.stories.d.ts.map +0 -1
  404. package/dist/stories/LinearGradientColorBgAnimation.stories.d.ts +0 -23
  405. package/dist/stories/LinearGradientColorBgAnimation.stories.d.ts.map +0 -1
  406. package/dist/stories/NumbersMsgPart.stories.d.ts +0 -19
  407. package/dist/stories/NumbersMsgPart.stories.d.ts.map +0 -1
  408. package/dist/stories/OptionItem.stories.d.ts +0 -20
  409. package/dist/stories/OptionItem.stories.d.ts.map +0 -1
  410. package/dist/stories/PreviewerHeader.stories.d.ts +0 -10
  411. package/dist/stories/PreviewerHeader.stories.d.ts.map +0 -1
  412. package/dist/stories/PrimaryConfirmBtn.stories.d.ts +0 -19
  413. package/dist/stories/PrimaryConfirmBtn.stories.d.ts.map +0 -1
  414. package/dist/stories/PrimaryEntryBtn.stories.d.ts +0 -26
  415. package/dist/stories/PrimaryEntryBtn.stories.d.ts.map +0 -1
  416. package/dist/stories/ScrollToBottom.stories.d.ts +0 -15
  417. package/dist/stories/ScrollToBottom.stories.d.ts.map +0 -1
  418. package/dist/stories/SplitLine.stories.d.ts +0 -9
  419. package/dist/stories/SplitLine.stories.d.ts.map +0 -1
  420. package/dist/stories/TabRadioGroup.stories.d.ts +0 -18
  421. package/dist/stories/TabRadioGroup.stories.d.ts.map +0 -1
  422. package/dist/stories/UserTextMsgBubble.stories.d.ts +0 -14
  423. package/dist/stories/UserTextMsgBubble.stories.d.ts.map +0 -1
  424. package/dist/stories/WarningMessage.stories.d.ts +0 -16
  425. package/dist/stories/WarningMessage.stories.d.ts.map +0 -1
  426. package/dist/stories/fields-generating.stories.d.ts +0 -20
  427. package/dist/stories/fields-generating.stories.d.ts.map +0 -1
  428. package/dist/stories/fields-previewer.stories.d.ts +0 -19
  429. package/dist/stories/fields-previewer.stories.d.ts.map +0 -1
@@ -1,2 +0,0 @@
1
- export declare const useEvtBus: () => import('@baishuyun/types').IEvtBus;
2
- //# sourceMappingURL=use-evt-bus.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,3 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,15 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,7 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,3 +0,0 @@
1
- import { ChatStatus } from 'ai';
2
- export declare const useMsgStatusBroadcast: (id: string, status: ChatStatus) => void;
3
- //# sourceMappingURL=use-msg-status-broadcast.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,5 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,3 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,5 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,5 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
1
- export declare const usePluginList: () => import('@baishuyun/types').ChatAreaPlugin<{}, unknown>[];
2
- //# sourceMappingURL=use-plugin-list.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
1
- export declare const usePlugin: <T>(pluginName: string) => T;
2
- //# sourceMappingURL=use-plugin.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,9 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,25 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,3 +0,0 @@
1
- import { IToastDetail } from '@baishuyun/types';
2
- export declare const useToast: () => (detail: IToastDetail) => void;
3
- //# sourceMappingURL=use-toast.d.ts.map
package/dist/index.d.ts DELETED
@@ -1,7 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,32 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,39 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,14 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,40 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,3 +0,0 @@
1
- import { FormBuilderEventKey } from '@baishuyun/types';
2
- export declare const EVENTS: Record<string, FormBuilderEventKey>;
3
- //# sourceMappingURL=const.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,7 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,12 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,7 +0,0 @@
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
@@ -1,3 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,3 +0,0 @@
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
@@ -1,3 +0,0 @@
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
@@ -1,12 +0,0 @@
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
@@ -1,2 +0,0 @@
1
- export declare const useFieldsConfirmed: () => boolean;
2
- //# sourceMappingURL=use-fields-confirmed.d.ts.map
@@ -1,24 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,51 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,26 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,3 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,5 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,14 +0,0 @@
1
- import { TextUIPart } from 'ai';
2
- import { ChatMessage, UseChatHelpers } from '@baishuyun/types';
3
- import { Field } from '../../form-builder-base-plugin/types';
4
- interface BatchGeneratorActionProps {
5
- sendMessage: UseChatHelpers<ChatMessage>['sendMessage'];
6
- setMessages: UseChatHelpers<ChatMessage>['setMessages'];
7
- status: UseChatHelpers<ChatMessage>['status'];
8
- id: string;
9
- parts?: Array<TextUIPart>;
10
- fields?: Array<Field>;
11
- }
12
- export declare const BatchGeneratorAction: import('react').MemoExoticComponent<({ parts, ...rest }: BatchGeneratorActionProps) => import("react/jsx-runtime").JSX.Element | null>;
13
- export {};
14
- //# sourceMappingURL=batch-generator-action.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"batch-generator-action.d.ts","sourceRoot":"","sources":["../../../../src/plugins/form-filling-plugin/components/batch-generator-action.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAQhC,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,0CAA0C,CAAC;AAoEtE,UAAU,yBAAyB;IACjC,WAAW,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC,aAAa,CAAC,CAAC;IACxD,WAAW,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC,aAAa,CAAC,CAAC;IACxD,MAAM,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC;IAC9C,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAC1B,MAAM,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;CACvB;AAyHD,eAAO,MAAM,oBAAoB,2DAnBO,yBAAyB,oDAkC/D,CAAC"}
@@ -1,3 +0,0 @@
1
- import { EntryButtonProps } from '@baishuyun/types';
2
- export declare const EntryButton: ({ style, onClick, variant }: EntryButtonProps) => import("react/jsx-runtime").JSX.Element;
3
- //# sourceMappingURL=entry-btn.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"entry-btn.d.ts","sourceRoot":"","sources":["../../../../src/plugins/form-filling-plugin/components/entry-btn.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAmB,MAAM,kBAAkB,CAAC;AAMrE,eAAO,MAAM,WAAW,GAAI,6BAA6B,gBAAgB,4CAsCxE,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const ModeSelect: () => import("react/jsx-runtime").JSX.Element | null;
2
- //# sourceMappingURL=mode-select.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mode-select.d.ts","sourceRoot":"","sources":["../../../../src/plugins/form-filling-plugin/components/mode-select.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,UAAU,sDA+BtB,CAAC"}