@baishuyun/chat-sdk 0.1.8 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (431) hide show
  1. package/.turbo/turbo-build.log +8 -107
  2. package/CHANGELOG.md +18 -0
  3. package/dist/chat-sdk.js +14087 -13890
  4. package/dist/chat-sdk.js.map +1 -1
  5. package/dist/chat-sdk.umd.cjs +150 -150
  6. package/dist/chat-sdk.umd.cjs.map +1 -1
  7. package/dist/index.css +1 -1
  8. package/dist/src/chat.d.ts +5 -0
  9. package/dist/src/chat.d.ts.map +1 -0
  10. package/dist/src/components/biz-comp/FakeBotMsg.d.ts +8 -0
  11. package/dist/src/components/biz-comp/FakeBotMsg.d.ts.map +1 -0
  12. package/dist/src/components/biz-comp/FieldChecker.d.ts +19 -0
  13. package/dist/src/components/biz-comp/FieldChecker.d.ts.map +1 -0
  14. package/dist/src/components/biz-comp/FieldCheckerListMsg.d.ts +19 -0
  15. package/dist/src/components/biz-comp/FieldCheckerListMsg.d.ts.map +1 -0
  16. package/dist/src/components/biz-comp/FieldValueChecker.d.ts +16 -0
  17. package/dist/src/components/biz-comp/FieldValueChecker.d.ts.map +1 -0
  18. package/dist/src/components/biz-comp/SubformFieldsValueChecker.d.ts +22 -0
  19. package/dist/src/components/biz-comp/SubformFieldsValueChecker.d.ts.map +1 -0
  20. package/dist/src/components/biz-comp/chat-client.d.ts +13 -0
  21. package/dist/src/components/biz-comp/chat-client.d.ts.map +1 -0
  22. package/dist/src/components/biz-comp/chat-frame.d.ts +6 -0
  23. package/dist/src/components/biz-comp/chat-frame.d.ts.map +1 -0
  24. package/dist/src/components/biz-comp/conversation.d.ts +10 -0
  25. package/dist/src/components/biz-comp/conversation.d.ts.map +1 -0
  26. package/dist/src/components/biz-comp/dash-widget-icon.d.ts +7 -0
  27. package/dist/src/components/biz-comp/dash-widget-icon.d.ts.map +1 -0
  28. package/dist/src/components/biz-comp/dock-btn.d.ts +2 -0
  29. package/dist/src/components/biz-comp/dock-btn.d.ts.map +1 -0
  30. package/dist/src/components/biz-comp/error-boundary.d.ts +15 -0
  31. package/dist/src/components/biz-comp/error-boundary.d.ts.map +1 -0
  32. package/dist/src/components/biz-comp/error-msg.d.ts +4 -0
  33. package/dist/src/components/biz-comp/error-msg.d.ts.map +1 -0
  34. package/dist/src/components/biz-comp/field-icon.d.ts +5 -0
  35. package/dist/src/components/biz-comp/field-icon.d.ts.map +1 -0
  36. package/dist/src/components/biz-comp/highlight-msg.d.ts +4 -0
  37. package/dist/src/components/biz-comp/highlight-msg.d.ts.map +1 -0
  38. package/dist/src/components/biz-comp/markdown-part.d.ts +7 -0
  39. package/dist/src/components/biz-comp/markdown-part.d.ts.map +1 -0
  40. package/dist/src/components/biz-comp/markdown.d.ts +5 -0
  41. package/dist/src/components/biz-comp/markdown.d.ts.map +1 -0
  42. package/dist/src/components/biz-comp/message-content.d.ts +6 -0
  43. package/dist/src/components/biz-comp/message-content.d.ts.map +1 -0
  44. package/dist/src/components/biz-comp/messages.d.ts +3 -0
  45. package/dist/src/components/biz-comp/messages.d.ts.map +1 -0
  46. package/dist/src/components/biz-comp/multi-modal-input/attachment-btn.d.ts +9 -0
  47. package/dist/src/components/biz-comp/multi-modal-input/attachment-btn.d.ts.map +1 -0
  48. package/dist/src/components/biz-comp/multi-modal-input/clear-btn.d.ts +8 -0
  49. package/dist/src/components/biz-comp/multi-modal-input/clear-btn.d.ts.map +1 -0
  50. package/dist/src/components/biz-comp/multi-modal-input/index.d.ts +22 -0
  51. package/dist/src/components/biz-comp/multi-modal-input/index.d.ts.map +1 -0
  52. package/dist/src/components/biz-comp/multi-modal-input/preview-attachment.d.ts +12 -0
  53. package/dist/src/components/biz-comp/multi-modal-input/preview-attachment.d.ts.map +1 -0
  54. package/dist/src/components/biz-comp/multi-modal-input/prompt-input.d.ts +36 -0
  55. package/dist/src/components/biz-comp/multi-modal-input/prompt-input.d.ts.map +1 -0
  56. package/dist/src/components/biz-comp/multi-modal-input/voice-btn.d.ts +9 -0
  57. package/dist/src/components/biz-comp/multi-modal-input/voice-btn.d.ts.map +1 -0
  58. package/dist/src/components/biz-comp/opening-lines.d.ts +3 -0
  59. package/dist/src/components/biz-comp/opening-lines.d.ts.map +1 -0
  60. package/dist/src/components/biz-comp/preview-message-wrapper.d.ts +12 -0
  61. package/dist/src/components/biz-comp/preview-message-wrapper.d.ts.map +1 -0
  62. package/dist/src/components/biz-comp/preview-message.d.ts +13 -0
  63. package/dist/src/components/biz-comp/preview-message.d.ts.map +1 -0
  64. package/dist/src/components/biz-comp/response.d.ts +6 -0
  65. package/dist/src/components/biz-comp/response.d.ts.map +1 -0
  66. package/dist/src/components/biz-comp/suggestions.d.ts +8 -0
  67. package/dist/src/components/biz-comp/suggestions.d.ts.map +1 -0
  68. package/dist/src/components/ui/badge.d.ts +10 -0
  69. package/dist/src/components/ui/badge.d.ts.map +1 -0
  70. package/dist/src/components/ui/button.d.ts +12 -0
  71. package/dist/src/components/ui/button.d.ts.map +1 -0
  72. package/dist/src/components/ui/card.d.ts +9 -0
  73. package/dist/src/components/ui/card.d.ts.map +1 -0
  74. package/dist/src/components/ui/checkbox.d.ts +5 -0
  75. package/dist/src/components/ui/checkbox.d.ts.map +1 -0
  76. package/dist/src/components/ui/collapsible.d.ts +6 -0
  77. package/dist/src/components/ui/collapsible.d.ts.map +1 -0
  78. package/dist/src/components/ui/dialog.d.ts +24 -0
  79. package/dist/src/components/ui/dialog.d.ts.map +1 -0
  80. package/dist/src/components/ui/dropdown-menu.d.ts +28 -0
  81. package/dist/src/components/ui/dropdown-menu.d.ts.map +1 -0
  82. package/dist/src/components/ui/icons.d.ts +176 -0
  83. package/dist/src/components/ui/icons.d.ts.map +1 -0
  84. package/dist/src/components/ui/input-group.d.ts +17 -0
  85. package/dist/src/components/ui/input-group.d.ts.map +1 -0
  86. package/dist/src/components/ui/input.d.ts +4 -0
  87. package/dist/src/components/ui/input.d.ts.map +1 -0
  88. package/dist/src/components/ui/label.d.ts +6 -0
  89. package/dist/src/components/ui/label.d.ts.map +1 -0
  90. package/dist/src/components/ui/one-time-click-btn.d.ts +4 -0
  91. package/dist/src/components/ui/one-time-click-btn.d.ts.map +1 -0
  92. package/dist/src/components/ui/select.d.ts +14 -0
  93. package/dist/src/components/ui/select.d.ts.map +1 -0
  94. package/dist/src/components/ui/spinner.d.ts +3 -0
  95. package/dist/src/components/ui/spinner.d.ts.map +1 -0
  96. package/dist/src/components/ui/tabs.d.ts +8 -0
  97. package/dist/src/components/ui/tabs.d.ts.map +1 -0
  98. package/dist/src/components/ui/textarea.d.ts +4 -0
  99. package/dist/src/components/ui/textarea.d.ts.map +1 -0
  100. package/dist/src/components/ui/tooltip.d.ts +13 -0
  101. package/dist/src/components/ui/tooltip.d.ts.map +1 -0
  102. package/dist/src/components/web-comp/fields-previewer-web-component.d.ts +60 -0
  103. package/dist/src/components/web-comp/fields-previewer-web-component.d.ts.map +1 -0
  104. package/dist/src/const/index.d.ts +5 -0
  105. package/dist/src/const/index.d.ts.map +1 -0
  106. package/dist/src/const/ui.d.ts +7 -0
  107. package/dist/src/const/ui.d.ts.map +1 -0
  108. package/dist/src/hooks/use-chat-preference.d.ts +3 -0
  109. package/dist/src/hooks/use-chat-preference.d.ts.map +1 -0
  110. package/dist/src/hooks/use-draggable.d.ts +24 -0
  111. package/dist/src/hooks/use-draggable.d.ts.map +1 -0
  112. package/dist/src/hooks/use-evt-bus.d.ts +2 -0
  113. package/dist/src/hooks/use-evt-bus.d.ts.map +1 -0
  114. package/dist/src/hooks/use-evt.d.ts +3 -0
  115. package/dist/src/hooks/use-evt.d.ts.map +1 -0
  116. package/dist/src/hooks/use-frame-mode.d.ts +20 -0
  117. package/dist/src/hooks/use-frame-mode.d.ts.map +1 -0
  118. package/dist/src/hooks/use-merged-chat.d.ts +7 -0
  119. package/dist/src/hooks/use-merged-chat.d.ts.map +1 -0
  120. package/dist/src/hooks/use-msg-status-broadcast.d.ts +3 -0
  121. package/dist/src/hooks/use-msg-status-broadcast.d.ts.map +1 -0
  122. package/dist/src/hooks/use-plugin-component.d.ts +5 -0
  123. package/dist/src/hooks/use-plugin-component.d.ts.map +1 -0
  124. package/dist/src/hooks/use-plugin-ctx.d.ts +3 -0
  125. package/dist/src/hooks/use-plugin-ctx.d.ts.map +1 -0
  126. package/dist/src/hooks/use-plugin-custom-components.d.ts +5 -0
  127. package/dist/src/hooks/use-plugin-custom-components.d.ts.map +1 -0
  128. package/dist/src/hooks/use-plugin-life-cycle-chain-runner.d.ts +5 -0
  129. package/dist/src/hooks/use-plugin-life-cycle-chain-runner.d.ts.map +1 -0
  130. package/dist/src/hooks/use-plugin-list.d.ts +2 -0
  131. package/dist/src/hooks/use-plugin-list.d.ts.map +1 -0
  132. package/dist/src/hooks/use-plugin.d.ts +2 -0
  133. package/dist/src/hooks/use-plugin.d.ts.map +1 -0
  134. package/dist/src/hooks/use-scroll-to-bottom.d.ts +9 -0
  135. package/dist/src/hooks/use-scroll-to-bottom.d.ts.map +1 -0
  136. package/dist/src/hooks/use-shadow.d.ts +25 -0
  137. package/dist/src/hooks/use-shadow.d.ts.map +1 -0
  138. package/dist/src/hooks/use-streaming-anchor.d.ts +11 -0
  139. package/dist/src/hooks/use-streaming-anchor.d.ts.map +1 -0
  140. package/dist/src/hooks/use-toast.d.ts +3 -0
  141. package/dist/src/hooks/use-toast.d.ts.map +1 -0
  142. package/dist/src/hooks/use-voice-input.d.ts +31 -0
  143. package/dist/src/hooks/use-voice-input.d.ts.map +1 -0
  144. package/dist/src/index.d.ts +6 -0
  145. package/dist/src/index.d.ts.map +1 -0
  146. package/dist/src/lib/clone.d.ts +32 -0
  147. package/dist/src/lib/clone.d.ts.map +1 -0
  148. package/dist/src/lib/event-emitter.d.ts +39 -0
  149. package/dist/src/lib/event-emitter.d.ts.map +1 -0
  150. package/dist/src/lib/parse-design-doc.d.ts +16 -0
  151. package/dist/src/lib/parse-design-doc.d.ts.map +1 -0
  152. package/dist/src/lib/readonly.d.ts +14 -0
  153. package/dist/src/lib/readonly.d.ts.map +1 -0
  154. package/dist/src/lib/utils.d.ts +72 -0
  155. package/dist/src/lib/utils.d.ts.map +1 -0
  156. package/dist/src/plugins/form-builder-base-plugin/const.d.ts +3 -0
  157. package/dist/src/plugins/form-builder-base-plugin/const.d.ts.map +1 -0
  158. package/dist/src/plugins/form-builder-base-plugin/index.d.ts +7 -0
  159. package/dist/src/plugins/form-builder-base-plugin/index.d.ts.map +1 -0
  160. package/dist/src/plugins/form-builder-base-plugin/types.d.ts +12 -0
  161. package/dist/src/plugins/form-builder-base-plugin/types.d.ts.map +1 -0
  162. package/dist/src/plugins/form-builder-plugin/components/create-form-confirm.d.ts +7 -0
  163. package/dist/src/plugins/form-builder-plugin/components/create-form-confirm.d.ts.map +1 -0
  164. package/dist/src/plugins/form-builder-plugin/components/design-doc-part.d.ts +4 -0
  165. package/dist/src/plugins/form-builder-plugin/components/design-doc-part.d.ts.map +1 -0
  166. package/dist/src/plugins/form-builder-plugin/components/design-info.d.ts +6 -0
  167. package/dist/src/plugins/form-builder-plugin/components/design-info.d.ts.map +1 -0
  168. package/dist/src/plugins/form-builder-plugin/components/entry-btn.d.ts +3 -0
  169. package/dist/src/plugins/form-builder-plugin/components/entry-btn.d.ts.map +1 -0
  170. package/dist/src/plugins/form-builder-plugin/components/fields-part.d.ts +4 -0
  171. package/dist/src/plugins/form-builder-plugin/components/fields-part.d.ts.map +1 -0
  172. package/dist/src/plugins/form-builder-plugin/components/follow-up.d.ts +3 -0
  173. package/dist/src/plugins/form-builder-plugin/components/follow-up.d.ts.map +1 -0
  174. package/dist/src/plugins/form-builder-plugin/components/msg-part.d.ts +3 -0
  175. package/dist/src/plugins/form-builder-plugin/components/msg-part.d.ts.map +1 -0
  176. package/dist/src/plugins/form-builder-plugin/components/opening-lines.d.ts +3 -0
  177. package/dist/src/plugins/form-builder-plugin/components/opening-lines.d.ts.map +1 -0
  178. package/dist/src/plugins/form-builder-plugin/components/suggestion-part.d.ts +5 -0
  179. package/dist/src/plugins/form-builder-plugin/components/suggestion-part.d.ts.map +1 -0
  180. package/dist/src/plugins/form-builder-plugin/const/index.d.ts +12 -0
  181. package/dist/src/plugins/form-builder-plugin/const/index.d.ts.map +1 -0
  182. package/dist/src/plugins/form-builder-plugin/hooks/index.d.ts +4 -0
  183. package/dist/src/plugins/form-builder-plugin/hooks/index.d.ts.map +1 -0
  184. package/dist/src/plugins/form-builder-plugin/hooks/use-fields-confirmed.d.ts +2 -0
  185. package/dist/src/plugins/form-builder-plugin/hooks/use-fields-confirmed.d.ts.map +1 -0
  186. package/dist/src/plugins/form-builder-plugin/index.d.ts +30 -0
  187. package/dist/src/plugins/form-builder-plugin/index.d.ts.map +1 -0
  188. package/dist/src/plugins/form-builder-plugin/types.d.ts +28 -0
  189. package/dist/src/plugins/form-builder-plugin/types.d.ts.map +1 -0
  190. package/dist/src/plugins/form-builder-plugin/utils/get-render-strategy.d.ts +3 -0
  191. package/dist/src/plugins/form-builder-plugin/utils/get-render-strategy.d.ts.map +1 -0
  192. package/dist/src/plugins/form-builder-plugin/utils/index.d.ts +57 -0
  193. package/dist/src/plugins/form-builder-plugin/utils/index.d.ts.map +1 -0
  194. package/dist/src/plugins/form-filling-plugin/batch-filling-data-manager.d.ts +26 -0
  195. package/dist/src/plugins/form-filling-plugin/batch-filling-data-manager.d.ts.map +1 -0
  196. package/dist/src/plugins/form-filling-plugin/components/FormFillingOpeningLines.d.ts +3 -0
  197. package/dist/src/plugins/form-filling-plugin/components/FormFillingOpeningLines.d.ts.map +1 -0
  198. package/dist/src/plugins/form-filling-plugin/components/avatar.d.ts +5 -0
  199. package/dist/src/plugins/form-filling-plugin/components/avatar.d.ts.map +1 -0
  200. package/dist/src/plugins/form-filling-plugin/components/batch-fill-part.d.ts +4 -0
  201. package/dist/src/plugins/form-filling-plugin/components/batch-fill-part.d.ts.map +1 -0
  202. package/dist/src/plugins/form-filling-plugin/components/batch-generator-action.d.ts +14 -0
  203. package/dist/src/plugins/form-filling-plugin/components/batch-generator-action.d.ts.map +1 -0
  204. package/dist/src/plugins/form-filling-plugin/components/entry-btn.d.ts +3 -0
  205. package/dist/src/plugins/form-filling-plugin/components/entry-btn.d.ts.map +1 -0
  206. package/dist/src/plugins/form-filling-plugin/components/first-batch-generating-animation.d.ts +2 -0
  207. package/dist/src/plugins/form-filling-plugin/components/first-batch-generating-animation.d.ts.map +1 -0
  208. package/dist/src/plugins/form-filling-plugin/components/generated-data-counter.d.ts +5 -0
  209. package/dist/src/plugins/form-filling-plugin/components/generated-data-counter.d.ts.map +1 -0
  210. package/dist/src/plugins/form-filling-plugin/components/mode-select.d.ts +2 -0
  211. package/dist/src/plugins/form-filling-plugin/components/mode-select.d.ts.map +1 -0
  212. package/dist/src/plugins/form-filling-plugin/components/msg-part.d.ts +3 -0
  213. package/dist/src/plugins/form-filling-plugin/components/msg-part.d.ts.map +1 -0
  214. package/dist/src/plugins/form-filling-plugin/components/non-first-batch-generating-animation.d.ts +2 -0
  215. package/dist/src/plugins/form-filling-plugin/components/non-first-batch-generating-animation.d.ts.map +1 -0
  216. package/dist/src/plugins/form-filling-plugin/components/single-fill-part.d.ts +4 -0
  217. package/dist/src/plugins/form-filling-plugin/components/single-fill-part.d.ts.map +1 -0
  218. package/dist/src/plugins/form-filling-plugin/const.d.ts +615 -0
  219. package/dist/src/plugins/form-filling-plugin/const.d.ts.map +1 -0
  220. package/dist/src/plugins/form-filling-plugin/hooks/use-conversation-id-in-ctx.d.ts +3 -0
  221. package/dist/src/plugins/form-filling-plugin/hooks/use-conversation-id-in-ctx.d.ts.map +1 -0
  222. package/dist/src/plugins/form-filling-plugin/hooks/use-fields-data.d.ts +4 -0
  223. package/dist/src/plugins/form-filling-plugin/hooks/use-fields-data.d.ts.map +1 -0
  224. package/dist/src/plugins/form-filling-plugin/index.d.ts +22 -0
  225. package/dist/src/plugins/form-filling-plugin/index.d.ts.map +1 -0
  226. package/dist/src/plugins/form-filling-plugin/types.d.ts +22 -0
  227. package/dist/src/plugins/form-filling-plugin/types.d.ts.map +1 -0
  228. package/dist/src/plugins/form-filling-plugin/utils.d.ts +6 -0
  229. package/dist/src/plugins/form-filling-plugin/utils.d.ts.map +1 -0
  230. package/dist/src/plugins/report-query-plugin/components/avatar.d.ts +5 -0
  231. package/dist/src/plugins/report-query-plugin/components/avatar.d.ts.map +1 -0
  232. package/dist/src/plugins/report-query-plugin/components/query-entry-btn.d.ts +3 -0
  233. package/dist/src/plugins/report-query-plugin/components/query-entry-btn.d.ts.map +1 -0
  234. package/dist/src/plugins/report-query-plugin/components/query-msg-part.d.ts +3 -0
  235. package/dist/src/plugins/report-query-plugin/components/query-msg-part.d.ts.map +1 -0
  236. package/dist/src/plugins/report-query-plugin/components/query-opening-lines.d.ts +2 -0
  237. package/dist/src/plugins/report-query-plugin/components/query-opening-lines.d.ts.map +1 -0
  238. package/dist/src/plugins/report-query-plugin/components/result-cards/CreatedSourceMsg.d.ts +7 -0
  239. package/dist/src/plugins/report-query-plugin/components/result-cards/CreatedSourceMsg.d.ts.map +1 -0
  240. package/dist/src/plugins/report-query-plugin/components/result-cards/DataTableCard.d.ts +5 -0
  241. package/dist/src/plugins/report-query-plugin/components/result-cards/DataTableCard.d.ts.map +1 -0
  242. package/dist/src/plugins/report-query-plugin/components/result-cards/DataTableFields.d.ts +18 -0
  243. package/dist/src/plugins/report-query-plugin/components/result-cards/DataTableFields.d.ts.map +1 -0
  244. package/dist/src/plugins/report-query-plugin/components/result-cards/FilterCondition.d.ts +4 -0
  245. package/dist/src/plugins/report-query-plugin/components/result-cards/FilterCondition.d.ts.map +1 -0
  246. package/dist/src/plugins/report-query-plugin/components/result-cards/FormulaField.d.ts +8 -0
  247. package/dist/src/plugins/report-query-plugin/components/result-cards/FormulaField.d.ts.map +1 -0
  248. package/dist/src/plugins/report-query-plugin/const.d.ts +5 -0
  249. package/dist/src/plugins/report-query-plugin/const.d.ts.map +1 -0
  250. package/dist/src/plugins/report-query-plugin/index.d.ts +19 -0
  251. package/dist/src/plugins/report-query-plugin/index.d.ts.map +1 -0
  252. package/dist/src/plugins/report-query-plugin/types.d.ts +18 -0
  253. package/dist/src/plugins/report-query-plugin/types.d.ts.map +1 -0
  254. package/dist/src/plugins/report-query-plugin/utils/build-dash-component.d.ts +17 -0
  255. package/dist/src/plugins/report-query-plugin/utils/build-dash-component.d.ts.map +1 -0
  256. package/dist/src/plugins/report-query-plugin/utils/create-default-dash-styles.d.ts +30 -0
  257. package/dist/src/plugins/report-query-plugin/utils/create-default-dash-styles.d.ts.map +1 -0
  258. package/dist/src/plugins/report-query-plugin/utils/create-default-widget-attr-list.d.ts +60 -0
  259. package/dist/src/plugins/report-query-plugin/utils/create-default-widget-attr-list.d.ts.map +1 -0
  260. package/dist/src/plugins/report-query-plugin/utils/field-enhance.d.ts +31 -0
  261. package/dist/src/plugins/report-query-plugin/utils/field-enhance.d.ts.map +1 -0
  262. package/dist/src/plugins/report-query-plugin/utils/get-field-group.d.ts +208 -0
  263. package/dist/src/plugins/report-query-plugin/utils/get-field-group.d.ts.map +1 -0
  264. package/dist/src/plugins/report-query-plugin/utils/get-field-icon.d.ts +4 -0
  265. package/dist/src/plugins/report-query-plugin/utils/get-field-icon.d.ts.map +1 -0
  266. package/dist/src/plugins/report-query-plugin/utils/get-group-rule.d.ts +4 -0
  267. package/dist/src/plugins/report-query-plugin/utils/get-group-rule.d.ts.map +1 -0
  268. package/dist/src/plugins/report-query-plugin/utils/index.d.ts +5 -0
  269. package/dist/src/plugins/report-query-plugin/utils/index.d.ts.map +1 -0
  270. package/dist/src/sdk.impl.d.ts +44 -0
  271. package/dist/src/sdk.impl.d.ts.map +1 -0
  272. package/dist/src/store/context.d.ts +12 -0
  273. package/dist/src/store/context.d.ts.map +1 -0
  274. package/dist/src/store/index.d.ts +14 -0
  275. package/dist/src/store/index.d.ts.map +1 -0
  276. package/dist/src/stories/FormulaField.stories.d.ts +24 -0
  277. package/dist/src/stories/FormulaField.stories.d.ts.map +1 -0
  278. package/package.json +5 -4
  279. package/src/components/biz-comp/FakeBotMsg.tsx +1 -1
  280. package/src/components/biz-comp/FieldChecker.tsx +2 -2
  281. package/src/components/biz-comp/FieldCheckerListMsg.tsx +3 -3
  282. package/src/components/biz-comp/FieldValueChecker.tsx +1 -1
  283. package/src/components/biz-comp/SubformFieldsValueChecker.tsx +1 -1
  284. package/src/components/biz-comp/chat-client.tsx +3 -3
  285. package/src/components/biz-comp/conversation.tsx +1 -1
  286. package/src/components/biz-comp/dash-widget-icon.tsx +1 -1
  287. package/src/components/biz-comp/field-icon.tsx +2 -2
  288. package/src/components/biz-comp/markdown-part.tsx +3 -3
  289. package/src/components/biz-comp/message-content.tsx +1 -1
  290. package/src/components/biz-comp/messages.tsx +5 -2
  291. package/src/components/biz-comp/multi-modal-input/clear-btn.tsx +2 -2
  292. package/src/components/biz-comp/multi-modal-input/index.tsx +9 -8
  293. package/src/components/biz-comp/multi-modal-input/prompt-input.tsx +2 -2
  294. package/src/components/biz-comp/multi-modal-input/voice-btn.tsx +2 -2
  295. package/src/components/biz-comp/preview-message-wrapper.tsx +14 -7
  296. package/src/components/biz-comp/preview-message.tsx +5 -5
  297. package/src/components/biz-comp/suggestions.tsx +2 -2
  298. package/src/components/web-comp/fields-previewer-web-component.ts +1 -1
  299. package/src/const/ui.ts +1 -1
  300. package/src/hooks/use-streaming-anchor.ts +42 -0
  301. package/src/plugins/form-builder-plugin/components/create-form-confirm.tsx +4 -4
  302. package/src/plugins/form-builder-plugin/components/design-info.tsx +3 -3
  303. package/src/plugins/form-builder-plugin/components/entry-btn.tsx +3 -3
  304. package/src/plugins/form-builder-plugin/components/fields-part.tsx +2 -2
  305. package/src/plugins/form-builder-plugin/components/follow-up.tsx +2 -2
  306. package/src/plugins/form-filling-plugin/components/FormFillingOpeningLines.tsx +1 -1
  307. package/src/plugins/form-filling-plugin/components/avatar.tsx +2 -2
  308. package/src/plugins/form-filling-plugin/components/batch-generator-action.tsx +1 -1
  309. package/src/plugins/form-filling-plugin/components/entry-btn.tsx +3 -3
  310. package/src/plugins/form-filling-plugin/components/first-batch-generating-animation.tsx +2 -2
  311. package/src/plugins/form-filling-plugin/components/generated-data-counter.tsx +1 -1
  312. package/src/plugins/form-filling-plugin/components/mode-select.tsx +1 -1
  313. package/src/plugins/form-filling-plugin/components/non-first-batch-generating-animation.tsx +3 -3
  314. package/src/plugins/form-filling-plugin/components/single-fill-part.tsx +1 -1
  315. package/src/plugins/report-query-plugin/components/avatar.tsx +2 -2
  316. package/src/plugins/report-query-plugin/components/query-entry-btn.tsx +2 -2
  317. package/src/plugins/report-query-plugin/components/query-opening-lines.tsx +1 -1
  318. package/src/plugins/report-query-plugin/components/result-cards/CreatedSourceMsg.tsx +1 -1
  319. package/src/plugins/report-query-plugin/components/result-cards/DataTableCard.tsx +3 -3
  320. package/src/plugins/report-query-plugin/components/result-cards/DataTableFields.tsx +3 -3
  321. package/src/plugins/report-query-plugin/components/result-cards/FormulaField.tsx +2 -2
  322. package/src/plugins/report-query-plugin/const.ts +1 -1
  323. package/src/style.css +2 -0
  324. package/tsconfig.json +5 -5
  325. package/src/components/bs-ui/abs-fullscreen-gradient-bg.tsx +0 -35
  326. package/src/components/bs-ui/attachment-part-group.tsx +0 -35
  327. package/src/components/bs-ui/attachment-part.tsx +0 -179
  328. package/src/components/bs-ui/attachments-previewer.tsx +0 -324
  329. package/src/components/bs-ui/base-button.tsx +0 -49
  330. package/src/components/bs-ui/border-animation.tsx +0 -107
  331. package/src/components/bs-ui/border-color-animation.tsx +0 -66
  332. package/src/components/bs-ui/bot-avatar-name.tsx +0 -25
  333. package/src/components/bs-ui/bot-icon.tsx +0 -23
  334. package/src/components/bs-ui/bs-icons.tsx +0 -1115
  335. package/src/components/bs-ui/card-field.tsx +0 -23
  336. package/src/components/bs-ui/card.tsx +0 -36
  337. package/src/components/bs-ui/chat-area-header.tsx +0 -65
  338. package/src/components/bs-ui/circle-checker.tsx +0 -66
  339. package/src/components/bs-ui/collapsible-txt-msg.tsx +0 -63
  340. package/src/components/bs-ui/confirm-dialog.tsx +0 -139
  341. package/src/components/bs-ui/fields-design-info-table.tsx +0 -160
  342. package/src/components/bs-ui/fields-generating-indicator.tsx +0 -95
  343. package/src/components/bs-ui/fields-portal.tsx +0 -18
  344. package/src/components/bs-ui/fields-previewer.tsx +0 -210
  345. package/src/components/bs-ui/font-icon.tsx +0 -17
  346. package/src/components/bs-ui/form-info-editor.tsx +0 -259
  347. package/src/components/bs-ui/formula-tag.tsx +0 -32
  348. package/src/components/bs-ui/generate-animation.tsx +0 -56
  349. package/src/components/bs-ui/icon-btn.tsx +0 -43
  350. package/src/components/bs-ui/img-part.tsx +0 -27
  351. package/src/components/bs-ui/line-checker.tsx +0 -160
  352. package/src/components/bs-ui/linear-gradient-border-btn.tsx +0 -48
  353. package/src/components/bs-ui/linear-gradient-color-bg-animation.tsx +0 -103
  354. package/src/components/bs-ui/number-part.tsx +0 -46
  355. package/src/components/bs-ui/option-item.tsx +0 -28
  356. package/src/components/bs-ui/previewer-header.tsx +0 -233
  357. package/src/components/bs-ui/primary-confirm-btn.tsx +0 -58
  358. package/src/components/bs-ui/primary-entry-btn.tsx +0 -48
  359. package/src/components/bs-ui/scroll-to-bottom-btn.tsx +0 -28
  360. package/src/components/bs-ui/split-line.tsx +0 -9
  361. package/src/components/bs-ui/square-checker.tsx +0 -87
  362. package/src/components/bs-ui/tab-radio-group.tsx +0 -82
  363. package/src/components/bs-ui/tooltip.tsx +0 -53
  364. package/src/components/bs-ui/user-txt-msg-bubble.tsx +0 -19
  365. package/src/components/bs-ui/warning-msg.tsx +0 -27
  366. package/src/stories/AbsFullscreenGradientBg.stories.tsx +0 -36
  367. package/src/stories/AttachmentPart.stories.tsx +0 -122
  368. package/src/stories/AttachmentPartGroup.stories.tsx +0 -151
  369. package/src/stories/AttachmentsPreviewer.stories.tsx +0 -306
  370. package/src/stories/BaseButton.stories.tsx +0 -33
  371. package/src/stories/BorderAnimation.stories.tsx +0 -116
  372. package/src/stories/BorderColorAnimation.stories.tsx +0 -63
  373. package/src/stories/BotAvatarAndName.stories.ts +0 -24
  374. package/src/stories/BotIcon.stories.ts +0 -22
  375. package/src/stories/BsTooltip.stories.tsx +0 -32
  376. package/src/stories/Card.stories.tsx +0 -28
  377. package/src/stories/CardField.stories.tsx +0 -87
  378. package/src/stories/ChatAreaHeader.stories.ts +0 -26
  379. package/src/stories/CircleChecker.stories.tsx +0 -89
  380. package/src/stories/CollapsibleTextMsg.stories.ts +0 -44
  381. package/src/stories/ConfirmDialog.stories.tsx +0 -123
  382. package/src/stories/DashWidgetIcon.stories.tsx +0 -132
  383. package/src/stories/FormInfoEditor.stories.tsx +0 -173
  384. package/src/stories/FormulaTag.stories.tsx +0 -68
  385. package/src/stories/GenerateAnimation.stories.ts +0 -20
  386. package/src/stories/IconBtn.stories.tsx +0 -32
  387. package/src/stories/IconLib.tsx +0 -45
  388. package/src/stories/Icons.stories.ts +0 -22
  389. package/src/stories/ImgMsgPart.stories.tsx +0 -42
  390. package/src/stories/LineChecker.stories.tsx +0 -134
  391. package/src/stories/LinearGradientBorderBtn.stories.tsx +0 -86
  392. package/src/stories/LinearGradientColorBgAnimation.stories.tsx +0 -60
  393. package/src/stories/NumbersMsgPart.stories.tsx +0 -42
  394. package/src/stories/OptionItem.stories.tsx +0 -77
  395. package/src/stories/PreviewerHeader.stories.tsx +0 -91
  396. package/src/stories/PrimaryConfirmBtn.stories.tsx +0 -60
  397. package/src/stories/PrimaryEntryBtn.stories.tsx +0 -74
  398. package/src/stories/ScrollToBottom.stories.tsx +0 -24
  399. package/src/stories/SplitLine.stories.tsx +0 -40
  400. package/src/stories/SquareChecker.stories.tsx +0 -96
  401. package/src/stories/TabRadioGroup.stories.tsx +0 -84
  402. package/src/stories/UserTextMsgBubble.stories.ts +0 -24
  403. package/src/stories/WarningMessage.stories.tsx +0 -23
  404. package/src/stories/assets/accessibility.png +0 -0
  405. package/src/stories/assets/accessibility.svg +0 -1
  406. package/src/stories/assets/addon-library.png +0 -0
  407. package/src/stories/assets/assets.png +0 -0
  408. package/src/stories/assets/avif-test-image.avif +0 -0
  409. package/src/stories/assets/context.png +0 -0
  410. package/src/stories/assets/demo.css +0 -539
  411. package/src/stories/assets/demo_index.html +0 -7988
  412. package/src/stories/assets/discord.svg +0 -1
  413. package/src/stories/assets/docs.png +0 -0
  414. package/src/stories/assets/figma-plugin.png +0 -0
  415. package/src/stories/assets/github.svg +0 -1
  416. package/src/stories/assets/iconfont.css +0 -1377
  417. package/src/stories/assets/iconfont.eot +0 -0
  418. package/src/stories/assets/iconfont.json +0 -2382
  419. package/src/stories/assets/iconfont.svg +0 -697
  420. package/src/stories/assets/iconfont.ttf +0 -0
  421. package/src/stories/assets/iconfont.woff +0 -0
  422. package/src/stories/assets/iconfont.woff2 +0 -0
  423. package/src/stories/assets/share.png +0 -0
  424. package/src/stories/assets/styling.png +0 -0
  425. package/src/stories/assets/testing.png +0 -0
  426. package/src/stories/assets/theming.png +0 -0
  427. package/src/stories/assets/tutorials.svg +0 -1
  428. package/src/stories/assets/youtube.svg +0 -1
  429. package/src/stories/fields-design-info-table.stories.tsx +0 -203
  430. package/src/stories/fields-generating.stories.tsx +0 -41
  431. package/src/stories/fields-previewer.stories.tsx +0 -77
@@ -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,16 @@
1
+ interface FormParseResult {
2
+ formInfo: string;
3
+ fieldsListInfo: string;
4
+ designDescInfo: string;
5
+ }
6
+ /**
7
+ * 动态解析表单设计 Markdown,支持不完整文本
8
+ * 可处理以下不完整场景:
9
+ * 1. 仅包含表单基本信息(无字段清单标记)
10
+ * 2. 包含表单信息+部分字段(无设计说明)
11
+ * 3. 字段列表未完结(正在输入中)
12
+ * 4. 缺少结尾确认标记
13
+ */
14
+ export declare function parseFormMarkdownDynamic(markdown: string): FormParseResult;
15
+ export {};
16
+ //# sourceMappingURL=parse-design-doc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-design-doc.d.ts","sourceRoot":"","sources":["../../../src/lib/parse-design-doc.ts"],"names":[],"mappings":"AAAA,UAAU,eAAe;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,MAAM,GAAG,eAAe,CA6C1E"}
@@ -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,72 @@
1
+ import { ClassValue } from 'clsx';
2
+ import { UIDataTypes, UIMessagePart, UITools } from 'ai';
3
+ import { Field } from '../plugins/form-builder-base-plugin/types';
4
+ import { Attachment, IFilledField, 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 IsFakeMsgPart: (part: any) => boolean;
12
+ export declare const IsFilePart: (part: any) => boolean;
13
+ export declare const IsFileGroupPart: (part: any) => boolean;
14
+ export declare const IsLoadingPart: (part: any) => boolean;
15
+ export declare const GetLoadingMsg: (part: any) => string;
16
+ export declare const GetPartErrMsg: (part: any) => string;
17
+ export declare const getMetaErrorMsg: (part: any) => string;
18
+ export declare const GetFieldJsonInfo: (part: any) => IFilledField | null;
19
+ export declare const IsSuggesstionPart: (part: any) => boolean;
20
+ export declare const IsMockSuggesstionPart: (part: any) => boolean;
21
+ export declare const NeedToAppendFieldsSaveConfirm: (part: any) => boolean;
22
+ export declare const extractFormName: (origin: string) => string;
23
+ export declare function sanitizeText(text: string): string;
24
+ /**
25
+ * 合并parts数组中连续相同的元素,以连续组的最后一个元素为准
26
+ * @param {Array} parts - 待合并的原数组
27
+ * @param {Function} isTheSamePart - 判断两个part是否相同的方法(接收a、b两个参数,返回布尔值)
28
+ * @returns {Array} 合并后的数组
29
+ */
30
+ export declare function mergeParts(parts: UIMessagePart<UIDataTypes, UITools>[], isTheSamePart: (p0: UIMessagePart<UIDataTypes, UITools>, p1: UIMessagePart<UIDataTypes, UITools>) => boolean): UIMessagePart<UIDataTypes, UITools>[];
31
+ export declare const isSubformFieldEqual: (f1: Field, f2: Field, widgetArrKey?: string) => boolean;
32
+ export declare function copyTextToClipboard(text: string): Promise<boolean>;
33
+ /**
34
+ * 合并数组中连续的目标元素(至少2个)为子数组(单函数实现)
35
+ * @template T - 数组元素的类型
36
+ * @param {T[]} arr - 原始数组
37
+ * @param {(item: T) => boolean} isTarget - 判断元素是否为目标的函数(返回布尔值)
38
+ * @returns {(T | T[])[]} 处理后的数组(元素可能是原类型或原类型的子数组)
39
+ */
40
+ export declare function mergeConsecutiveTargets<T>(arr: T[], isTarget: (item: T) => boolean, minWidth?: number): (T | T[])[];
41
+ export declare const mergeFileParts: (parts: Array<UIMessagePart<UIDataTypes, UITools>>) => (UIMessagePart<UIDataTypes, UITools> | UIMessagePart<UIDataTypes, UITools>[])[];
42
+ export declare const getIconValue: (iconCode?: string) => number;
43
+ export declare const getIconOption: (iconValue?: number) => import('@baishuyun/ai-design/form-info-editor').FormIconOption;
44
+ export declare const ensureEndSlash: (url: string) => string;
45
+ export declare const generatePhoneFromTimestamp: () => string;
46
+ export declare const shortTimeHash: (length?: number) => string;
47
+ export declare const generateUniqueValue: (numOnly?: boolean) => string;
48
+ /**
49
+ * Convert an image URL to a base64 data URL via canvas.
50
+ * Returns the original URL on failure (e.g. CORS).
51
+ */
52
+ export declare const imageUrlToBase64: (url: string, mediaType?: string) => Promise<string>;
53
+ export declare const isValidJSON: (str: string) => boolean;
54
+ export declare const formatJSONIfValid: (str: string) => string | null;
55
+ /**
56
+ * 从 URL 下载文件,返回 File 对象
57
+ */
58
+ export declare const downloadFile: (url: string) => Promise<File>;
59
+ /**
60
+ * 上传文件到指定 endpoint,返回 Attachment 信息
61
+ */
62
+ export declare const uploadFile: (file: File, uploadEndpoint: string, signal?: AbortSignal) => Promise<Attachment | undefined>;
63
+ export declare const urls2fileParts: (attachmentsUrl: string[], uploadEndpoint: string) => Promise<{
64
+ type: "file";
65
+ url: string;
66
+ name: string;
67
+ mediaType: string;
68
+ providerMetadata: {
69
+ upload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M,cAAc,GAAI,KAAK,MAAM,KAAG,MAM5C,CAAC;AAEF,eAAO,MAAM,0BAA0B,QAAO,MAO7C,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,eAAU,WAYvC,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,UAAU,OAAO,WAMpD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAAI,KAAK,MAAM,EAAE,kBAAuB,KAAG,OAAO,CAAC,MAAM,CAalF,CAAC;AAEL,eAAO,MAAM,WAAW,GAAI,KAAK,MAAM,KAAG,OAQzC,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,KAAK,MAAM,KAAG,MAAM,GAAG,IAQxD,CAAC;AA4CF;;GAEG;AACH,eAAO,MAAM,YAAY,GAAU,KAAK,MAAM,KAAG,OAAO,CAAC,IAAI,CAqC5D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,GACrB,MAAM,IAAI,EACV,gBAAgB,MAAM,EACtB,SAAS,WAAW,KACnB,OAAO,CAAC,UAAU,GAAG,SAAS,CAqBhC,CAAC;AAEF,eAAO,MAAM,cAAc,GAAU,gBAAgB,MAAM,EAAE,EAAE,gBAAgB,MAAM;;;;;;;;IA6BpF,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,CA8BtD,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 @@
1
+ {"version":3,"file":"create-form-confirm.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/form-builder-plugin/components/create-form-confirm.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAgB,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAc7E,eAAO,MAAM,iBAAiB,oEAIzB;IACD,WAAW,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC,aAAa,CAAC,CAAC;IACxD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;CACnB,6CA+HF,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { MsgPartCompProps } from '@baishuyun/types';
2
+ import { IExtraPartProps } from '../types';
3
+ export declare const DesignDocPart: React.FC<MsgPartCompProps & IExtraPartProps>;
4
+ //# sourceMappingURL=design-doc-part.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"design-doc-part.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/form-builder-plugin/components/design-doc-part.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAI3C,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,GAAG,eAAe,CAatE,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const DesignInfo: ({ designMarkdown, id, children, }: {
2
+ designMarkdown: string;
3
+ id: string;
4
+ children?: React.ReactNode;
5
+ }) => import("react/jsx-runtime").JSX.Element | null;
6
+ //# sourceMappingURL=design-info.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"design-info.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/form-builder-plugin/components/design-info.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,UAAU,GAAI,mCAIxB;IACD,cAAc,EAAE,MAAM,CAAC;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,mDA6BA,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { EntryButtonProps } from '@baishuyun/types';
2
+ export declare const EntryButton: ({ style, chatStatus, 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,+DAOzB,gBAAgB,4CAqClB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { MsgPartCompProps } from '@baishuyun/types';
2
+ import { IExtraPartProps } from '../types';
3
+ export declare const FieldsPart: React.FC<MsgPartCompProps & IExtraPartProps>;
4
+ //# sourceMappingURL=fields-part.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fields-part.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/form-builder-plugin/components/fields-part.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAgB,MAAM,kBAAkB,CAAC;AAElE,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAc3C,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,GAAG,eAAe,CA4DnE,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 @@
1
+ {"version":3,"file":"follow-up.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/form-builder-plugin/components/follow-up.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAOvD,eAAO,MAAM,QAAQ,GAAI,OAAO,mBAAmB,4CAoBlD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { MsgPartCompProps } from '@baishuyun/types';
2
+ export declare const McpMessagePart: (props: MsgPartCompProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=msg-part.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"msg-part.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/form-builder-plugin/components/msg-part.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAkBpD,eAAO,MAAM,cAAc,GAAI,OAAO,gBAAgB,4CAYrD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { OpeningLinesProps } from '@baishuyun/types';
2
+ export declare const FormBuilderOpeningLines: ({ sendMessage, setMessages }: OpeningLinesProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=opening-lines.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"opening-lines.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/form-builder-plugin/components/opening-lines.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAMrD,eAAO,MAAM,uBAAuB,GAAI,8BAA8B,iBAAiB,4CA2BtF,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { MsgPartCompProps } from '@baishuyun/types';
2
+ import { IExtraPartProps } from '../types';
3
+ export declare const SuggestionPrefixPart: React.FC<MsgPartCompProps & IExtraPartProps>;
4
+ export declare const SuggestionPart: React.FC<MsgPartCompProps & IExtraPartProps>;
5
+ //# sourceMappingURL=suggestion-part.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"suggestion-part.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/form-builder-plugin/components/suggestion-part.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAgB,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,eAAe,EAA2B,MAAM,UAAU,CAAC;AAYpE,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,GAAG,eAAe,CAW7E,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,GAAG,eAAe,CAmCvE,CAAC"}
@@ -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 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/form-builder-plugin/const/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,yBAAyB,CAAC;AAEtD,eAAO,MAAM,sBAAsB;;;;;;;;;CAUlC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { TextUIPart } from 'ai';
2
+ import { FieldValueCheckerProps } from '../../../components/biz-comp/FieldValueChecker';
3
+ export declare const useBuildFieldsData: (part: TextUIPart, fieldsConfirmed: boolean) => Array<FieldValueCheckerProps>;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/form-builder-plugin/hooks/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAMhC,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AAGjF,eAAO,MAAM,kBAAkB,GAAI,MAAM,UAAU,EAAE,iBAAiB,OAAO,KAuCrD,KAAK,CAAC,sBAAsB,CACnD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const useFieldsConfirmed: () => boolean;
2
+ //# sourceMappingURL=use-fields-confirmed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-fields-confirmed.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/form-builder-plugin/hooks/use-fields-confirmed.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,eAO9B,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { IChatSDK, 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
+ init?: ((sdk: IChatSDK) => void) | undefined;
8
+ private _chatInstance;
9
+ private currentWorkingFormName;
10
+ customComponents?: Partial<PluginCustomComponent> | undefined;
11
+ private clearCurrentWorkingForm;
12
+ lifecycleHooks?: Partial<PluginHooks> | undefined;
13
+ constructor(ctx: McpFormBuilderPluginCtx);
14
+ dispose: () => void;
15
+ onAfterFieldCreate(field: Field): void;
16
+ private clearHistoryConversation;
17
+ private enhanceField;
18
+ onBeforeFieldCreate(field: Field): any;
19
+ skipDesignToBuildFields: (formInfo: RealFormInfo) => void;
20
+ onBeforeFormCreate: (designInfo: DesignInfo) => void;
21
+ onFormCreate: (formInfo: RealFormInfo) => void;
22
+ getPickedIconValue: () => number | undefined;
23
+ resetPickedIconValue: () => void;
24
+ onAfterFieldsSave: (onFormProcessed: (processedForm: FormInfo) => void) => void;
25
+ getCurrentWorkingForm(): FormInfo | undefined;
26
+ private addEventListeners;
27
+ private removeEventListeners;
28
+ }
29
+ export declare const FormBuilderPluginRegisterEntry: PluginRegistryEntry<McpFormBuilderPluginCtx>;
30
+ //# 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,EAEL,QAAQ,EAER,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,EAOhB,MAAM,SAAS,CAAC;AAQjB,qBAAa,iBAAkB,SAAQ,qBAAqB,CAAC,uBAAuB,CAAC;IAC5E,UAAU,EAAE,MAAM,CAAmB;IAErC,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,QAAQ,KAAK,IAAI,CAAC,GAAG,SAAS,CAEjD;IAEF,OAAO,CAAC,aAAa,CAAyB;IAE9C,OAAO,CAAC,sBAAsB,CAAc;IAErC,gBAAgB,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,GAAG,SAAS,CAIlE;IAEF,OAAO,CAAC,uBAAuB,CAe7B;IAEK,cAAc,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,GAAG,SAAS,CA+CtD;gBAEiB,GAAG,EAAE,uBAAuB;IAMxC,OAAO,aAEZ;IAEK,kBAAkB,CAAC,KAAK,EAAE,KAAK;IA6BtC,OAAO,CAAC,wBAAwB,CAgB9B;IAEF,OAAO,CAAC,YAAY;IAuBb,mBAAmB,CAAC,KAAK,EAAE,KAAK;IAiBhC,uBAAuB,GAAI,UAAU,YAAY,UAOtD;IAGK,kBAAkB,GAAI,YAAY,UAAU,UAiBjD;IAGK,YAAY,GAAI,UAAU,YAAY,UAgB3C;IAEK,kBAAkB,2BAEvB;IAEK,oBAAoB,aAEzB;IAEK,iBAAiB,GAAI,iBAAiB,CAAC,aAAa,EAAE,QAAQ,KAAK,IAAI,UAoD5E;IAEK,qBAAqB;IAI5B,OAAO,CAAC,iBAAiB;IAEzB,OAAO,CAAC,oBAAoB;CAC7B;AAED,eAAO,MAAM,8BAA8B,EAAE,mBAAmB,CAAC,uBAAuB,CASvF,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { FieldsTools } from '@baishuyun/agents';
2
+ import { FormBuilderWorkStage, MsgPartCompProps, ValueOf } from '@baishuyun/types';
3
+ import { TextUIPart, ToolUIPart } from 'ai';
4
+ import { DesignInfo } from './utils';
5
+ export type Field = ValueOf<Pick<ToolUIPart<FieldsTools>, 'output'>>;
6
+ export interface FormInfo {
7
+ appId?: string;
8
+ formId?: string;
9
+ iconValue?: number;
10
+ formName?: string;
11
+ fields: Field[];
12
+ fieldMap: Map<string, Field>;
13
+ designInfo: DesignInfo;
14
+ }
15
+ export interface McpFormBuilderPluginCtx {
16
+ formMap: Map<string, FormInfo>;
17
+ workStage: FormBuilderWorkStage;
18
+ pickedIconValue?: number;
19
+ }
20
+ export type FormBuildPartRenderStrategy = 'fields' | 'followup' | 'followup_prefix' | 'design_doc' | 'markdown' | 'unknown';
21
+ export interface IExtraPartProps {
22
+ confirmed?: boolean;
23
+ part: TextUIPart;
24
+ }
25
+ export type FormBuildPartRenderStrategyMap = {
26
+ [key in FormBuildPartRenderStrategy]: React.FC<MsgPartCompProps & IExtraPartProps>;
27
+ };
28
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/plugins/form-builder-plugin/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACnF,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,MAAM,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC;AAErE,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,KAAK,EAAE,CAAC;IAEhB,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAE7B,UAAU,EAAE,UAAU,CAAC;CACxB;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAE/B,SAAS,EAAE,oBAAoB,CAAC;IAEhC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,MAAM,2BAA2B,GACnC,QAAQ,GACR,UAAU,GACV,iBAAiB,GACjB,YAAY,GACZ,UAAU,GACV,SAAS,CAAC;AAEd,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,MAAM,8BAA8B,GAAG;KAC1C,GAAG,IAAI,2BAA2B,GAAG,KAAK,CAAC,EAAE,CAAC,gBAAgB,GAAG,eAAe,CAAC;CACnF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { TextUIPart } from 'ai';
2
+ export declare const getRenderStrategy: (part: TextUIPart) => "fields" | "followup" | "followup_prefix" | "design_doc" | "markdown";
3
+ //# sourceMappingURL=get-render-strategy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-render-strategy.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/form-builder-plugin/utils/get-render-strategy.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAEhC,eAAO,MAAM,iBAAiB,GAAI,MAAM,UAAU,0EAuBjD,CAAC"}
@@ -0,0 +1,57 @@
1
+ import { Field, FormInfo } from '../types';
2
+ import { FieldType, IFieldDesignInfo } 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
+ export declare const parseDesc: (desc: string) => {
20
+ isSubForm: boolean;
21
+ formName: string;
22
+ };
23
+ export declare function parseRawFormText(rawText: string): IFieldDesignInfo[];
24
+ export declare const ensureCleanFormName: (name: string) => string;
25
+ /**
26
+ * 解析 mcp 返回的表单设计文档,提取关联信息
27
+ * @param designDoc
28
+ * @returns
29
+ */
30
+ export declare const parseFormDesignInfo: (designDoc: string) => DesignInfo;
31
+ export declare const isFieldTypeEqual: (field: Field, type: FieldType) => boolean;
32
+ export declare const hasSubFields: (field: Field) => boolean;
33
+ export declare const isLinkField: (field: Field) => boolean;
34
+ export declare const isSubFormField: (field: Field) => boolean;
35
+ export declare const isSNField: (field: Field) => boolean;
36
+ export declare const isTextField: (field: Field) => boolean;
37
+ export declare const hasLinkInfo: (designInfo: DesignInfo) => boolean;
38
+ export type FieldProcessor = (formInfo: FormInfo, field: Field, linkInfo: LinkInfo) => Field;
39
+ export interface FormFieldsWalkerConfig {
40
+ isTargetForm: (formName: string, info: FormInfo) => boolean;
41
+ isTargetField: (fieldName: string, linkInfo: LinkInfo) => boolean;
42
+ fieldProcessor: FieldProcessor;
43
+ onFormProcessed: (formInfo: FormInfo) => void;
44
+ }
45
+ /**
46
+ * 表单字段遍历器,目标为 infoMap
47
+ */
48
+ export declare const formFieldsWalker: (infoMap: Map<string, FormInfo>, options: FormFieldsWalkerConfig) => void;
49
+ export declare const buildWidgetName: (prefix?: string, index?: number) => string;
50
+ export declare const enhanceDataLoadField: (field: Field, linkInfo: LinkInfo, formMap: Map<string, FormInfo>, onEnhanced: (processed?: Field) => void) => any;
51
+ export declare const enhanceLinkField: (field: Field, linkInfo: LinkInfo, formMap: Map<string, FormInfo>, onEnhanced: (processed?: Field) => void) => Field;
52
+ export type PartialRecord<K extends keyof any, T> = Partial<Record<K, T>>;
53
+ /**
54
+ * 表单字段处理器工厂
55
+ */
56
+ export declare const fieldProcessorFactory: PartialRecord<FieldType, (ctxInfo: Map<string, FormInfo>) => FieldProcessor>;
57
+ //# 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,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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;AAKrD,eAAO,MAAM,uBAAuB,GAAI,iBAAiB,iBAAiB,4CAsCzE,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"}
@@ -0,0 +1,4 @@
1
+ import { MsgPartCompProps } from '@baishuyun/types';
2
+ import { IFieldsData } from '../types';
3
+ export declare const BatchFillPart: React.FC<MsgPartCompProps & IFieldsData>;
4
+ //# sourceMappingURL=batch-fill-part.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batch-fill-part.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/form-filling-plugin/components/batch-fill-part.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,GAAG,WAAW,CAYlE,CAAA"}
@@ -0,0 +1,14 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batch-generator-action.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/form-filling-plugin/components/batch-generator-action.tsx"],"names":[],"mappings":"AACA,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;AAuEtE,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;AAuID,eAAO,MAAM,oBAAoB,2DAtBO,yBAAyB,oDAqC/D,CAAC"}
@@ -0,0 +1,3 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ export declare const FirstBatchGeneratingAnimation: import('react').MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
2
+ //# sourceMappingURL=first-batch-generating-animation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"first-batch-generating-animation.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/form-filling-plugin/components/first-batch-generating-animation.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,6BAA6B,oFAMxC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const GeneratedDataCounter: ({ count, handleCheckChange, }: {
2
+ count: number;
3
+ handleCheckChange: (checked: boolean) => void;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=generated-data-counter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated-data-counter.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/form-filling-plugin/components/generated-data-counter.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,GAAI,+BAGlC;IACD,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/C,4CAQA,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const ModeSelect: () => import("react/jsx-runtime").JSX.Element | null;
2
+ //# sourceMappingURL=mode-select.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,3 @@
1
+ import { MsgPartCompProps } from '@baishuyun/types';
2
+ export declare const FillMessagePart: (props: MsgPartCompProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=msg-part.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"msg-part.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/form-filling-plugin/components/msg-part.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAkCpD,eAAO,MAAM,eAAe,GAAI,OAAO,gBAAgB,4CAqBtD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const NonFirstBatchGeneratingAnimation: import('react').MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
2
+ //# sourceMappingURL=non-first-batch-generating-animation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"non-first-batch-generating-animation.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/form-filling-plugin/components/non-first-batch-generating-animation.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,gCAAgC,oFAW3C,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { MsgPartCompProps } from '@baishuyun/types';
2
+ import { IFieldsData } from '../types';
3
+ export declare const SingleFillPart: React.FC<MsgPartCompProps & IFieldsData>;
4
+ //# sourceMappingURL=single-fill-part.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"single-fill-part.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/form-filling-plugin/components/single-fill-part.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAMvC,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,GAAG,WAAW,CAkCnE,CAAA"}