@baishuyun/ai-design 1.0.9 → 1.1.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 (312) hide show
  1. package/.turbo/turbo-build.log +570 -26
  2. package/CHANGELOG.md +18 -0
  3. package/dist/ai-design.css +4 -3
  4. package/dist/ai-design.js +9554 -9498
  5. package/dist/ai-design.js.map +1 -1
  6. package/dist/ai-design.umd.cjs +82 -94
  7. package/dist/ai-design.umd.cjs.map +1 -1
  8. package/dist/src/components/agent-helper/agent-category-select-menu/index.d.ts +1 -1
  9. package/dist/src/components/agent-helper/agent-category-select-menu/index.d.ts.map +1 -1
  10. package/dist/src/components/agent-helper/agent-entry-card/index.d.ts +1 -1
  11. package/dist/src/components/agent-helper/agent-entry-card/index.d.ts.map +1 -1
  12. package/dist/src/components/agent-helper/agent-helper-card/index.d.ts +1 -1
  13. package/dist/src/components/agent-helper/agent-helper-card/index.d.ts.map +1 -1
  14. package/dist/src/components/agent-helper/agent-helper-card-list/index.d.ts +1 -1
  15. package/dist/src/components/agent-helper/agent-helper-card-list/index.d.ts.map +1 -1
  16. package/dist/src/components/agent-helper/agent-helper-main-layout/index.d.ts +5 -5
  17. package/dist/src/components/agent-helper/agent-sort-select/index.d.ts +8 -0
  18. package/dist/src/components/agent-helper/agent-sort-select/index.d.ts.map +1 -0
  19. package/dist/src/components/agent-helper/agent-tag/index.d.ts +1 -1
  20. package/dist/src/components/agent-helper/agent-tag/index.d.ts.map +1 -1
  21. package/dist/src/components/agent-helper/app-select/index.d.ts +1 -1
  22. package/dist/src/components/agent-helper/app-select/index.d.ts.map +1 -1
  23. package/dist/src/components/agent-helper/condition-group/index.d.ts +1 -1
  24. package/dist/src/components/agent-helper/condition-input/index.d.ts +2 -2
  25. package/dist/src/components/agent-helper/condition-input/index.d.ts.map +1 -1
  26. package/dist/src/components/agent-helper/condition-item/index.d.ts +1 -1
  27. package/dist/src/components/agent-helper/condition-quantifier-select/index.d.ts +1 -1
  28. package/dist/src/components/agent-helper/condition-quantifier-select/index.d.ts.map +1 -1
  29. package/dist/src/components/agent-helper/condition-trigger-description/index.d.ts +1 -1
  30. package/dist/src/components/agent-helper/condition-trigger-description/index.d.ts.map +1 -1
  31. package/dist/src/components/agent-helper/date-picker/calendar-panel.d.ts +1 -1
  32. package/dist/src/components/agent-helper/date-picker/calendar-panel.d.ts.map +1 -1
  33. package/dist/src/components/agent-helper/date-picker/date-input.d.ts +1 -1
  34. package/dist/src/components/agent-helper/date-picker/date-input.d.ts.map +1 -1
  35. package/dist/src/components/agent-helper/date-picker/date-picker.d.ts +1 -1
  36. package/dist/src/components/agent-helper/date-picker/date-picker.d.ts.map +1 -1
  37. package/dist/src/components/agent-helper/date-picker/footer-panel.d.ts +1 -1
  38. package/dist/src/components/agent-helper/date-picker/footer-panel.d.ts.map +1 -1
  39. package/dist/src/components/agent-helper/date-picker/month-panel.d.ts +1 -1
  40. package/dist/src/components/agent-helper/date-picker/month-panel.d.ts.map +1 -1
  41. package/dist/src/components/agent-helper/date-picker/time-panel.d.ts +1 -1
  42. package/dist/src/components/agent-helper/date-picker/time-panel.d.ts.map +1 -1
  43. package/dist/src/components/agent-helper/date-picker/year-panel.d.ts +1 -1
  44. package/dist/src/components/agent-helper/date-picker/year-panel.d.ts.map +1 -1
  45. package/dist/src/components/agent-helper/exec-log-filter/index.d.ts +1 -1
  46. package/dist/src/components/agent-helper/exec-log-filter/index.d.ts.map +1 -1
  47. package/dist/src/components/agent-helper/field-edit-preference-select/index.d.ts +1 -1
  48. package/dist/src/components/agent-helper/field-edit-preference-select/index.d.ts.map +1 -1
  49. package/dist/src/components/agent-helper/field-select/index.d.ts +2 -2
  50. package/dist/src/components/agent-helper/field-select/index.d.ts.map +1 -1
  51. package/dist/src/components/agent-helper/field-value-input/display.d.ts +4 -4
  52. package/dist/src/components/agent-helper/field-value-input/display.d.ts.map +1 -1
  53. package/dist/src/components/agent-helper/field-value-input/icons.d.ts +5 -5
  54. package/dist/src/components/agent-helper/field-value-input/icons.d.ts.map +1 -1
  55. package/dist/src/components/agent-helper/field-value-input/index.d.ts +2 -2
  56. package/dist/src/components/agent-helper/field-value-input/index.d.ts.map +1 -1
  57. package/dist/src/components/agent-helper/field-value-input/inputs.d.ts +8 -8
  58. package/dist/src/components/agent-helper/field-value-input/inputs.d.ts.map +1 -1
  59. package/dist/src/components/agent-helper/field-value-input/picker-inputs.d.ts +8 -8
  60. package/dist/src/components/agent-helper/field-value-input/picker-inputs.d.ts.map +1 -1
  61. package/dist/src/components/agent-helper/flow-node-action-trigger-select/index.d.ts +1 -1
  62. package/dist/src/components/agent-helper/flow-node-action-trigger-select/index.d.ts.map +1 -1
  63. package/dist/src/components/agent-helper/form-action-trigger-select/index.d.ts +1 -1
  64. package/dist/src/components/agent-helper/form-action-trigger-select/index.d.ts.map +1 -1
  65. package/dist/src/components/agent-helper/form-divider/index.d.ts +1 -1
  66. package/dist/src/components/agent-helper/form-divider/index.d.ts.map +1 -1
  67. package/dist/src/components/agent-helper/monthdays-select/index.d.ts +1 -1
  68. package/dist/src/components/agent-helper/monthdays-select/index.d.ts.map +1 -1
  69. package/dist/src/components/agent-helper/offset-preference-select/index.d.ts +1 -1
  70. package/dist/src/components/agent-helper/offset-preference-select/index.d.ts.map +1 -1
  71. package/dist/src/components/agent-helper/offset-type-select/index.d.ts +1 -1
  72. package/dist/src/components/agent-helper/offset-type-select/index.d.ts.map +1 -1
  73. package/dist/src/components/agent-helper/offset-unit-select/index.d.ts +1 -1
  74. package/dist/src/components/agent-helper/offset-unit-select/index.d.ts.map +1 -1
  75. package/dist/src/components/agent-helper/placeholder-card/index.d.ts +1 -1
  76. package/dist/src/components/agent-helper/placeholder-card/index.d.ts.map +1 -1
  77. package/dist/src/components/agent-helper/prompt-input/index.d.ts +1 -1
  78. package/dist/src/components/agent-helper/prompt-input/index.d.ts.map +1 -1
  79. package/dist/src/components/agent-helper/relational-operator-select/index.d.ts +1 -1
  80. package/dist/src/components/agent-helper/relational-operator-select/index.d.ts.map +1 -1
  81. package/dist/src/components/agent-helper/repeat-by-type-select/index.d.ts +1 -1
  82. package/dist/src/components/agent-helper/repeat-by-type-select/index.d.ts.map +1 -1
  83. package/dist/src/components/agent-helper/repeat-preference-select/index.d.ts +1 -1
  84. package/dist/src/components/agent-helper/repeat-preference-select/index.d.ts.map +1 -1
  85. package/dist/src/components/agent-helper/repeat-preference-type-select/index.d.ts +1 -1
  86. package/dist/src/components/agent-helper/repeat-preference-type-select/index.d.ts.map +1 -1
  87. package/dist/src/components/agent-helper/search-input/index.d.ts +1 -1
  88. package/dist/src/components/agent-helper/search-input/index.d.ts.map +1 -1
  89. package/dist/src/components/agent-helper/table/index.d.ts +1 -1
  90. package/dist/src/components/agent-helper/table/index.d.ts.map +1 -1
  91. package/dist/src/components/agent-helper/trigger-select/index.d.ts +2 -2
  92. package/dist/src/components/agent-helper/trigger-select/index.d.ts.map +1 -1
  93. package/dist/src/components/agent-helper/trigger-time-preference-select/index.d.ts +1 -1
  94. package/dist/src/components/agent-helper/trigger-time-preference-select/index.d.ts.map +1 -1
  95. package/dist/src/components/agent-helper/trigger-time-source-type-select/index.d.ts +1 -1
  96. package/dist/src/components/agent-helper/trigger-time-source-type-select/index.d.ts.map +1 -1
  97. package/dist/src/components/agent-helper/weekdays-select/index.d.ts +1 -1
  98. package/dist/src/components/agent-helper/weekdays-select/index.d.ts.map +1 -1
  99. package/dist/src/components/agent-scroll-selector.d.ts +1 -1
  100. package/dist/src/components/agent-scroll-selector.d.ts.map +1 -1
  101. package/dist/src/components/agent-select.d.ts +1 -1
  102. package/dist/src/components/agent-select.d.ts.map +1 -1
  103. package/dist/src/components/attachment-part-group.d.ts +1 -1
  104. package/dist/src/components/attachment-part-group.d.ts.map +1 -1
  105. package/dist/src/components/attachment-part.d.ts +1 -1
  106. package/dist/src/components/attachment-part.d.ts.map +1 -1
  107. package/dist/src/components/attachments-previewer.d.ts +1 -1
  108. package/dist/src/components/attachments-previewer.d.ts.map +1 -1
  109. package/dist/src/components/border-color-animation.d.ts +1 -1
  110. package/dist/src/components/border-color-animation.d.ts.map +1 -1
  111. package/dist/src/components/bot-avatar-name.d.ts +1 -1
  112. package/dist/src/components/bot-avatar-name.d.ts.map +1 -1
  113. package/dist/src/components/bot-icon.d.ts +1 -1
  114. package/dist/src/components/bot-icon.d.ts.map +1 -1
  115. package/dist/src/components/bs-entry-select/app-group-folder.d.ts +1 -1
  116. package/dist/src/components/bs-entry-select/app-group-folder.d.ts.map +1 -1
  117. package/dist/src/components/bs-entry-select/bs-entry-select.d.ts.map +1 -1
  118. package/dist/src/components/bs-entry-select/entry-item.d.ts +1 -1
  119. package/dist/src/components/bs-entry-select/entry-item.d.ts.map +1 -1
  120. package/dist/src/components/bs-entry-select/entry-popover.d.ts +3 -2
  121. package/dist/src/components/bs-entry-select/entry-popover.d.ts.map +1 -1
  122. package/dist/src/components/bs-entry-select/other-app-section.d.ts +1 -1
  123. package/dist/src/components/bs-entry-select/other-app-section.d.ts.map +1 -1
  124. package/dist/src/components/bs-entry-select/scroll-slider.d.ts +3 -2
  125. package/dist/src/components/bs-entry-select/scroll-slider.d.ts.map +1 -1
  126. package/dist/src/components/bs-entry-select/search-input.d.ts +1 -1
  127. package/dist/src/components/bs-entry-select/search-input.d.ts.map +1 -1
  128. package/dist/src/components/bs-entry-select/tree-item-node.d.ts +1 -1
  129. package/dist/src/components/bs-entry-select/tree-item-node.d.ts.map +1 -1
  130. package/dist/src/components/bs-entry-select/types.d.ts +1 -0
  131. package/dist/src/components/bs-entry-select/types.d.ts.map +1 -1
  132. package/dist/src/components/bs-icons.d.ts +72 -72
  133. package/dist/src/components/bs-icons.d.ts.map +1 -1
  134. package/dist/src/components/card-field.d.ts +2 -2
  135. package/dist/src/components/card-field.d.ts.map +1 -1
  136. package/dist/src/components/card.d.ts +1 -1
  137. package/dist/src/components/card.d.ts.map +1 -1
  138. package/dist/src/components/chat-area-header.d.ts +1 -1
  139. package/dist/src/components/chat-area-header.d.ts.map +1 -1
  140. package/dist/src/components/check-card.d.ts +1 -1
  141. package/dist/src/components/check-card.d.ts.map +1 -1
  142. package/dist/src/components/circle-checker.d.ts +1 -1
  143. package/dist/src/components/circle-checker.d.ts.map +1 -1
  144. package/dist/src/components/collapsible-txt-msg.d.ts +1 -1
  145. package/dist/src/components/collapsible-txt-msg.d.ts.map +1 -1
  146. package/dist/src/components/confirm-dialog.d.ts +1 -1
  147. package/dist/src/components/confirm-dialog.d.ts.map +1 -1
  148. package/dist/src/components/date-range-picker.d.ts +1 -1
  149. package/dist/src/components/date-range-picker.d.ts.map +1 -1
  150. package/dist/src/components/fake-bot-msg.d.ts +1 -1
  151. package/dist/src/components/fake-bot-msg.d.ts.map +1 -1
  152. package/dist/src/components/field-checker-list-msg.d.ts +3 -3
  153. package/dist/src/components/field-checker-list-msg.d.ts.map +1 -1
  154. package/dist/src/components/field-checker.d.ts +4 -6
  155. package/dist/src/components/field-checker.d.ts.map +1 -1
  156. package/dist/src/components/field-icon.d.ts +1 -1
  157. package/dist/src/components/field-icon.d.ts.map +1 -1
  158. package/dist/src/components/field-value-checker.d.ts +4 -6
  159. package/dist/src/components/field-value-checker.d.ts.map +1 -1
  160. package/dist/src/components/fields-design-info-table.d.ts +1 -1
  161. package/dist/src/components/fields-design-info-table.d.ts.map +1 -1
  162. package/dist/src/components/fields-generating-indicator.d.ts +2 -2
  163. package/dist/src/components/fields-generating-indicator.d.ts.map +1 -1
  164. package/dist/src/components/font-icon.d.ts +2 -2
  165. package/dist/src/components/font-icon.d.ts.map +1 -1
  166. package/dist/src/components/form-info-editor.d.ts +1 -1
  167. package/dist/src/components/form-info-editor.d.ts.map +1 -1
  168. package/dist/src/components/formula-tag.d.ts +1 -1
  169. package/dist/src/components/formula-tag.d.ts.map +1 -1
  170. package/dist/src/components/generate-animation.d.ts +1 -1
  171. package/dist/src/components/generate-animation.d.ts.map +1 -1
  172. package/dist/src/components/icon-card.d.ts +1 -1
  173. package/dist/src/components/icon-card.d.ts.map +1 -1
  174. package/dist/src/components/icons/calendar-icon.d.ts +1 -1
  175. package/dist/src/components/icons/calendar-icon.d.ts.map +1 -1
  176. package/dist/src/components/icons/clear-all-icon.d.ts +1 -1
  177. package/dist/src/components/icons/clear-all-icon.d.ts.map +1 -1
  178. package/dist/src/components/icons/empty-table-icon.d.ts +1 -1
  179. package/dist/src/components/icons/empty-table-icon.d.ts.map +1 -1
  180. package/dist/src/components/icons/grids-icon.d.ts +1 -1
  181. package/dist/src/components/icons/grids-icon.d.ts.map +1 -1
  182. package/dist/src/components/img-part.d.ts +1 -1
  183. package/dist/src/components/img-part.d.ts.map +1 -1
  184. package/dist/src/components/legacy-slot.d.ts +1 -1
  185. package/dist/src/components/legacy-slot.d.ts.map +1 -1
  186. package/dist/src/components/linear-gradient-color-bg-animation.d.ts +1 -1
  187. package/dist/src/components/linear-gradient-color-bg-animation.d.ts.map +1 -1
  188. package/dist/src/components/memoized-markdown.d.ts +1 -1
  189. package/dist/src/components/memoized-markdown.d.ts.map +1 -1
  190. package/dist/src/components/message-content.d.ts +1 -1
  191. package/dist/src/components/message-content.d.ts.map +1 -1
  192. package/dist/src/components/number-part.d.ts +1 -1
  193. package/dist/src/components/number-part.d.ts.map +1 -1
  194. package/dist/src/components/office-container.d.ts +2 -0
  195. package/dist/src/components/office-container.d.ts.map +1 -1
  196. package/dist/src/components/option-item.d.ts +1 -1
  197. package/dist/src/components/option-item.d.ts.map +1 -1
  198. package/dist/src/components/output-config-editor.d.ts +6 -11
  199. package/dist/src/components/output-config-editor.d.ts.map +1 -1
  200. package/dist/src/components/previewer-header.d.ts +1 -1
  201. package/dist/src/components/previewer-header.d.ts.map +1 -1
  202. package/dist/src/components/primary-confirm-btn.d.ts +1 -1
  203. package/dist/src/components/primary-confirm-btn.d.ts.map +1 -1
  204. package/dist/src/components/primary-entry-btn.d.ts +1 -1
  205. package/dist/src/components/primary-entry-btn.d.ts.map +1 -1
  206. package/dist/src/components/radio-card.d.ts +1 -1
  207. package/dist/src/components/radio-card.d.ts.map +1 -1
  208. package/dist/src/components/scroll-to-bottom-btn.d.ts +1 -1
  209. package/dist/src/components/scroll-to-bottom-btn.d.ts.map +1 -1
  210. package/dist/src/components/split-line.d.ts +1 -1
  211. package/dist/src/components/split-line.d.ts.map +1 -1
  212. package/dist/src/components/subform-fields-value-checker.d.ts +4 -6
  213. package/dist/src/components/subform-fields-value-checker.d.ts.map +1 -1
  214. package/dist/src/components/tooltip.d.ts +1 -1
  215. package/dist/src/components/tooltip.d.ts.map +1 -1
  216. package/dist/src/components/ui/calendar.d.ts +1 -1
  217. package/dist/src/components/ui/calendar.d.ts.map +1 -1
  218. package/dist/src/components/ui/dialog.d.ts +2 -2
  219. package/dist/src/components/ui/drawer.d.ts +11 -11
  220. package/dist/src/components/ui/drawer.d.ts.map +1 -1
  221. package/dist/src/components/ui/form.d.ts +1 -1
  222. package/dist/src/components/ui/form.d.ts.map +1 -1
  223. package/dist/src/components/ui/icons.d.ts +63 -63
  224. package/dist/src/components/ui/icons.d.ts.map +1 -1
  225. package/dist/src/components/ui/spinner.d.ts +1 -1
  226. package/dist/src/components/ui/spinner.d.ts.map +1 -1
  227. package/dist/src/components/ui/switch.d.ts +1 -1
  228. package/dist/src/components/ui/switch.d.ts.map +1 -1
  229. package/dist/src/components/ui/tooltip.d.ts +1 -1
  230. package/dist/src/components/ui/tooltip.d.ts.map +1 -1
  231. package/dist/src/components/user-txt-msg-bubble.d.ts +1 -1
  232. package/dist/src/components/user-txt-msg-bubble.d.ts.map +1 -1
  233. package/dist/src/components/warning-msg.d.ts +1 -1
  234. package/dist/src/components/warning-msg.d.ts.map +1 -1
  235. package/dist/src/index.d.ts +3 -1
  236. package/dist/src/index.d.ts.map +1 -1
  237. package/dist/src/stories/AgentCategorySelectMenu.stories.d.ts +1 -1
  238. package/dist/src/stories/AgentEntryCard.stories.d.ts +1 -1
  239. package/dist/src/stories/AgentHelperCard.stories.d.ts +1 -1
  240. package/dist/src/stories/AgentHelperCardList.stories.d.ts +1 -1
  241. package/dist/src/stories/AgentTag.stories.d.ts +1 -1
  242. package/dist/src/stories/AttachmentPart.stories.d.ts +2 -2
  243. package/dist/src/stories/AttachmentPartGroup.stories.d.ts +2 -2
  244. package/dist/src/stories/BaseButton.stories.d.ts +1 -1
  245. package/dist/src/stories/BorderColorAnimation.stories.d.ts +1 -1
  246. package/dist/src/stories/BotAvatarAndName.stories.d.ts +1 -1
  247. package/dist/src/stories/BotIcon.stories.d.ts +1 -1
  248. package/dist/src/stories/BsEntrySelect.stories.d.ts +1 -0
  249. package/dist/src/stories/BsEntrySelect.stories.d.ts.map +1 -1
  250. package/dist/src/stories/Card.stories.d.ts +1 -1
  251. package/dist/src/stories/ChatAreaHeader.stories.d.ts +1 -1
  252. package/dist/src/stories/CheckCard.stories.d.ts +1 -1
  253. package/dist/src/stories/CircleChecker.stories.d.ts +1 -1
  254. package/dist/src/stories/CollapsibleTextMsg.stories.d.ts +1 -1
  255. package/dist/src/stories/ConditonQuantifierSelect.stories.d.ts +1 -1
  256. package/dist/src/stories/ConditonTriggerDescription.stories.d.ts +1 -1
  257. package/dist/src/stories/FakeBotMsg.stories.d.ts +1 -1
  258. package/dist/src/stories/FlowNodeActionTriggerSelect.stories.d.ts +1 -1
  259. package/dist/src/stories/FormActionTriggerSelect.stories.d.ts +1 -1
  260. package/dist/src/stories/FormDivider.stories.d.ts +1 -1
  261. package/dist/src/stories/FormulaTag.stories.d.ts +1 -1
  262. package/dist/src/stories/GenerateAnimation.stories.d.ts +1 -1
  263. package/dist/src/stories/IconCard.stories.d.ts +1 -1
  264. package/dist/src/stories/IconLib.d.ts +1 -1
  265. package/dist/src/stories/Icons.stories.d.ts +1 -1
  266. package/dist/src/stories/ImgMsgPart.stories.d.ts +1 -1
  267. package/dist/src/stories/LinearGradientColorBgAnimation.stories.d.ts +1 -1
  268. package/dist/src/stories/MemoizedMarkdown.stories.d.ts +1 -1
  269. package/dist/src/stories/MessageContent.stories.d.ts +1 -1
  270. package/dist/src/stories/NumbersMsgPart.stories.d.ts +1 -1
  271. package/dist/src/stories/OfficeContainer.stories.d.ts +1 -0
  272. package/dist/src/stories/OfficeContainer.stories.d.ts.map +1 -1
  273. package/dist/src/stories/OptionItem.stories.d.ts +1 -1
  274. package/dist/src/stories/OutputConfigEditor.stories.d.ts.map +1 -1
  275. package/dist/src/stories/PlaceholderCard.stories.d.ts +14 -1
  276. package/dist/src/stories/PlaceholderCard.stories.d.ts.map +1 -1
  277. package/dist/src/stories/PrimaryConfirmBtn.stories.d.ts +1 -1
  278. package/dist/src/stories/PrimaryEntryBtn.stories.d.ts +1 -1
  279. package/dist/src/stories/PromptInput.stories.d.ts.map +1 -1
  280. package/dist/src/stories/RadioCard.stories.d.ts +1 -1
  281. package/dist/src/stories/RelationalOperatorSelect.stories.d.ts +1 -1
  282. package/dist/src/stories/ScrollToBottom.stories.d.ts +1 -1
  283. package/dist/src/stories/SearchInput.stories.d.ts +1 -1
  284. package/dist/src/stories/TriggerSelect.stories.d.ts +1 -1
  285. package/dist/src/stories/UserTextMsgBubble.stories.d.ts +1 -1
  286. package/dist/src/stories/WarningMessage.stories.d.ts +1 -1
  287. package/dist/src/stories/fields-generating.stories.d.ts +1 -1
  288. package/package.json +24 -22
  289. package/src/components/agent-helper/agent-entry-card/index.tsx +3 -3
  290. package/src/components/agent-helper/agent-sort-select/index.tsx +89 -0
  291. package/src/components/agent-helper/condition-input/index.tsx +13 -2
  292. package/src/components/agent-helper/field-select/index.tsx +35 -12
  293. package/src/components/agent-helper/field-value-input/picker-inputs.tsx +4 -3
  294. package/src/components/agent-helper/placeholder-card/index.tsx +14 -11
  295. package/src/components/agent-helper/prompt-input/index.tsx +44 -33
  296. package/src/components/agent-scroll-selector.tsx +1 -1
  297. package/src/components/bs-entry-select/bs-entry-select.tsx +12 -4
  298. package/src/components/bs-entry-select/entry-popover.tsx +3 -1
  299. package/src/components/bs-entry-select/other-app-section.tsx +1 -1
  300. package/src/components/bs-entry-select/scroll-slider.tsx +12 -2
  301. package/src/components/bs-entry-select/types.ts +1 -0
  302. package/src/components/field-checker.tsx +5 -7
  303. package/src/components/field-value-checker.tsx +3 -5
  304. package/src/components/office-container.tsx +67 -4
  305. package/src/components/output-config-editor.tsx +259 -241
  306. package/src/components/subform-fields-value-checker.tsx +10 -11
  307. package/src/index.ts +3 -1
  308. package/src/stories/BsEntrySelect.stories.tsx +10 -0
  309. package/src/stories/OfficeContainer.stories.tsx +56 -0
  310. package/src/stories/OutputConfigEditor.stories.tsx +43 -23
  311. package/src/stories/PromptInput.stories.tsx +12 -1
  312. package/style.css +4 -3
@@ -1,26 +1,570 @@
1
-
2
- > @baishuyun/ai-design@1.0.8 build /Users/bbbottle/Code/bs-chat-sdk/packages/ai-design
3
- > vite build && tailwindcss -i src/style.css -o dist/tailwind.css && cat dist/tailwind.css dist/index.css > dist/ai-design.css && node scripts/strip-layers.cjs && cp dist/ai-design.css style.css && rm dist/tailwind.css dist/index.css
4
-
5
- vite v5.4.21 building for production...
6
- transforming...
7
- ✓ 3057 modules transformed.
8
- rendering chunks...
9
-
10
- [vite:dts] Start generate declaration files...
11
- src/stories/PlaceholderCard.stories.tsx:1:37 - error TS2307: Cannot find module '@storybook/react' or its corresponding type declarations.
12
-
13
- 1 import type { Meta, StoryObj } from '@storybook/react';
14
-    ~~~~~~~~~~~~~~~~~~
15
-
16
- computing gzip size...
17
- dist/index.css 8.08 kB │ gzip: 1.67 kB
18
- dist/ai-design.js 1,495.51 kB │ gzip: 352.67 kB │ map: 3,893.05 kB
19
- [vite:dts] Declaration files built in 4044ms.
20
-
21
- dist/ai-design.umd.cjs 1,065.25 kB │ gzip: 301.27 kB │ map: 3,732.39 kB
22
- ✓ built in 6.34s
23
- ≈ tailwindcss v4.3.0
24
-
25
- Done in 74ms
26
- Stripped @layer directives. Output lines: 4133
1
+
2
+ 
3
+ > @baishuyun/ai-design@1.0.10 build /Users/bbbottle/Code/bs-chat-sdk/packages/ai-design
4
+ > vite build && tailwindcss -i src/style.css -o dist/tailwind.css && cat dist/tailwind.css dist/index.css > dist/ai-design.css && node scripts/strip-layers.cjs && cp dist/ai-design.css style.css && rm dist/tailwind.css dist/index.css
5
+
6
+ vite v5.4.21 building for production...
7
+ transforming (1) src/index.tstransforming (2) src/lib/utils.tstransforming (80) ../types/dist/agent-helper/storage.jstransforming (122) src/components/ui/popover.tsxtransforming (145) src/components/ui/drawer.tsxtransforming (1156) ../../node_modules/.pnpm/lucide-react@0.554.0_react@19.2.7/node_modules/lucide-react/dist/esm/icons/file-terminal.js[transforming (2090) src/components/agent-helper/agent-category-select-menu/index.tsxtransforming (2166) src/components/agent-helper/agent-sort-select/index.tsxtransforming (2405) src/components/agent-helper/repeat-preference-type-select/index.tsxtransforming (2953) src/components/agent-helper/monthdays-select/index.tsxtransforming (3028) ../../node_modules/.pnpm/@radix-ui+react-use-is-hydrated@0.1.1_@types+react@19.2.17_react@19.2.7/node_modules/@radix-u✓ 3049 modules transformed.
8
+ rendering chunks (1)...
9
+ [vite:dts] Start generate declaration files...
10
+ src/components/agent-helper/agent-entry-card/index.tsx:16:3 - error TS6133: 'onLogClick' is declared but its value is never read.
11
+
12
+ 16 onLogClick,
13
+    ~~~~~~~~~~
14
+ src/components/agent-helper/field-select/index.tsx:207:28 - error TS2503: Cannot find namespace 'JSX'.
15
+
16
+ 207 (node: FieldTreeNode): JSX.Element => {
17
+    ~~~
18
+ src/components/agent-helper/field-value-input/picker-inputs.tsx:28:10 - error TS2352: Conversion of type 'WidgetItem[] | undefined' to type 'WidgetItem[]' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
19
+ Type 'import("/Users/bbbottle/Code/bs-chat-sdk/packages/types/dist/fields").WidgetItem[]' is not comparable to type 'WidgetItem[]'.
20
+ Type 'import("/Users/bbbottle/Code/bs-chat-sdk/packages/types/dist/fields").WidgetItem' is not comparable to type 'WidgetItem'.
21
+ Property 'label' is missing in type 'IOptionItem' but required in type 'WidgetItem'.
22
+
23
+ 28 return field.widget?.items?.filter((it) => typeof it.label === 'string') as WidgetItem[] ?? [];
24
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
25
+
26
+ src/components/agent-helper/field-value-input/picker-inputs.tsx:23:3
27
+ 23 label: string;
28
+    ~~~~~
29
+ 'label' is declared here.
30
+ src/components/agent-helper/field-value-input/picker-inputs.tsx:28:56 - error TS2339: Property 'label' does not exist on type 'WidgetItem'.
31
+ Property 'label' does not exist on type 'IOptionItem'.
32
+
33
+ 28 return field.widget?.items?.filter((it) => typeof it.label === 'string') as WidgetItem[] ?? [];
34
+    ~~~~~
35
+ src/hooks/use-column-appear.ts:77:23 - error TS2322: Type 'RefObject<HTMLDivElement | null>' is not assignable to type 'RefObject<HTMLDivElement>'.
36
+ Type 'HTMLDivElement | null' is not assignable to type 'HTMLDivElement'.
37
+ Type 'null' is not assignable to type 'HTMLDivElement'.
38
+
39
+ 77 return { appearing, colRef, getTransitionStyle: transitionStyle };
40
+    ~~~~~~
41
+
42
+ src/hooks/use-column-appear.ts:21:3
43
+ 21 colRef: React.RefObject<HTMLDivElement>;
44
+    ~~~~~~
45
+ The expected type comes from property 'colRef' which is declared here on type 'UseColumnAppearResult'
46
+ src/stories/BsConditionInput.stories.tsx:7:7 - error TS2741: Property 'setContext' is missing in type '{ searchUsers: (keyword: string) => Promise<{ id: string; name: string; }[]>; searchDepts: (keyword: string) => Promise<{ id: string; name: string; }[]>; searchUserGroups: (keyword: string) => Promise<...>; searchDeptGroups: (keyword: string) => Promise<...>; searchAddress: (keyword: string) => Promise<...>; searchL...' but required in type 'IFieldValueService'.
47
+
48
+ 7 const mockService: IFieldValueService = {
49
+    ~~~~~~~~~~~
50
+
51
+ ../types/dist/services/index.d.ts:122:5
52
+ 122 setContext: (appId: string, entryId: string) => void;
53
+    ~~~~~~~~~~
54
+ 'setContext' is declared here.
55
+ src/stories/BsConditionInput.stories.tsx:116:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
56
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
57
+
58
+ 116 { label: '男', value: 'male' },
59
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
60
+
61
+ ../types/dist/fields.d.ts:68:5
62
+ 68 text: string;
63
+    ~~~~
64
+ 'text' is declared here.
65
+ src/stories/BsConditionInput.stories.tsx:117:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
66
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
67
+
68
+ 117 { label: '女', value: 'female' },
69
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
70
+
71
+ ../types/dist/fields.d.ts:68:5
72
+ 68 text: string;
73
+    ~~~~
74
+ 'text' is declared here.
75
+ src/stories/BsConditionInput.stories.tsx:128:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
76
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
77
+
78
+ 128 { label: '北京', value: 'beijing' },
79
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
80
+
81
+ ../types/dist/fields.d.ts:68:5
82
+ 68 text: string;
83
+    ~~~~
84
+ 'text' is declared here.
85
+ src/stories/BsConditionInput.stories.tsx:129:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
86
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
87
+
88
+ 129 { label: '上海', value: 'shanghai' },
89
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
90
+
91
+ ../types/dist/fields.d.ts:68:5
92
+ 68 text: string;
93
+    ~~~~
94
+ 'text' is declared here.
95
+ src/stories/BsConditionInput.stories.tsx:130:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
96
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
97
+
98
+ 130 { label: '广州', value: 'guangzhou' },
99
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
100
+
101
+ ../types/dist/fields.d.ts:68:5
102
+ 68 text: string;
103
+    ~~~~
104
+ 'text' is declared here.
105
+ src/stories/BsConditionInput.stories.tsx:141:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
106
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
107
+
108
+ 141 { label: '阅读', value: 'reading' },
109
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
110
+
111
+ ../types/dist/fields.d.ts:68:5
112
+ 68 text: string;
113
+    ~~~~
114
+ 'text' is declared here.
115
+ src/stories/BsConditionInput.stories.tsx:142:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
116
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
117
+
118
+ 142 { label: '运动', value: 'sports' },
119
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
120
+
121
+ ../types/dist/fields.d.ts:68:5
122
+ 68 text: string;
123
+    ~~~~
124
+ 'text' is declared here.
125
+ src/stories/BsConditionInput.stories.tsx:143:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
126
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
127
+
128
+ 143 { label: '音乐', value: 'music' },
129
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
130
+
131
+ ../types/dist/fields.d.ts:68:5
132
+ 68 text: string;
133
+    ~~~~
134
+ 'text' is declared here.
135
+ src/stories/BsConditionInput.stories.tsx:170:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
136
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
137
+
138
+ 170 { label: '男', value: 'male' },
139
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
140
+
141
+ ../types/dist/fields.d.ts:68:5
142
+ 68 text: string;
143
+    ~~~~
144
+ 'text' is declared here.
145
+ src/stories/BsConditionInput.stories.tsx:171:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
146
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
147
+
148
+ 171 { label: '女', value: 'female' },
149
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
150
+
151
+ ../types/dist/fields.d.ts:68:5
152
+ 68 text: string;
153
+    ~~~~
154
+ 'text' is declared here.
155
+ src/stories/BsConditionInput.stories.tsx:182:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
156
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
157
+
158
+ 182 { label: '选项A', value: 'a' },
159
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
160
+
161
+ ../types/dist/fields.d.ts:68:5
162
+ 68 text: string;
163
+    ~~~~
164
+ 'text' is declared here.
165
+ src/stories/BsConditionInput.stories.tsx:183:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
166
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
167
+
168
+ 183 { label: '选项B', value: 'b' },
169
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
170
+
171
+ ../types/dist/fields.d.ts:68:5
172
+ 68 text: string;
173
+    ~~~~
174
+ 'text' is declared here.
175
+ src/stories/BsConditionInput.stories.tsx:184:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
176
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
177
+
178
+ 184 { label: '选项C', value: 'c' },
179
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
180
+
181
+ ../types/dist/fields.d.ts:68:5
182
+ 68 text: string;
183
+    ~~~~
184
+ 'text' is declared here.
185
+ src/stories/ConditionGroup.stories.tsx:34:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
186
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
187
+
188
+ 34 { label: '男', value: 'male' },
189
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
190
+
191
+ ../types/dist/fields.d.ts:68:5
192
+ 68 text: string;
193
+    ~~~~
194
+ 'text' is declared here.
195
+ src/stories/ConditionGroup.stories.tsx:35:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
196
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
197
+
198
+ 35 { label: '女', value: 'female' },
199
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
200
+
201
+ ../types/dist/fields.d.ts:68:5
202
+ 68 text: string;
203
+    ~~~~
204
+ 'text' is declared here.
205
+ src/stories/ConditionGroup.stories.tsx:46:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
206
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
207
+
208
+ 46 { label: '北京', value: 'beijing' },
209
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
210
+
211
+ ../types/dist/fields.d.ts:68:5
212
+ 68 text: string;
213
+    ~~~~
214
+ 'text' is declared here.
215
+ src/stories/ConditionGroup.stories.tsx:47:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
216
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
217
+
218
+ 47 { label: '上海', value: 'shanghai' },
219
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
220
+
221
+ ../types/dist/fields.d.ts:68:5
222
+ 68 text: string;
223
+    ~~~~
224
+ 'text' is declared here.
225
+ src/stories/ConditionGroup.stories.tsx:48:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
226
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
227
+
228
+ 48 { label: '广州', value: 'guangzhou' },
229
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
230
+
231
+ ../types/dist/fields.d.ts:68:5
232
+ 68 text: string;
233
+    ~~~~
234
+ 'text' is declared here.
235
+ src/stories/ConditionGroup.stories.tsx:59:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
236
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
237
+
238
+ 59 { label: '阅读', value: 'reading' },
239
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
240
+
241
+ ../types/dist/fields.d.ts:68:5
242
+ 68 text: string;
243
+    ~~~~
244
+ 'text' is declared here.
245
+ src/stories/ConditionGroup.stories.tsx:60:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
246
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
247
+
248
+ 60 { label: '运动', value: 'sports' },
249
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
250
+
251
+ ../types/dist/fields.d.ts:68:5
252
+ 68 text: string;
253
+    ~~~~
254
+ 'text' is declared here.
255
+ src/stories/ConditionGroup.stories.tsx:61:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
256
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
257
+
258
+ 61 { label: '音乐', value: 'music' },
259
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
260
+
261
+ ../types/dist/fields.d.ts:68:5
262
+ 68 text: string;
263
+    ~~~~
264
+ 'text' is declared here.
265
+ src/stories/ConditionInput.stories.tsx:6:7 - error TS2741: Property 'setContext' is missing in type '{ searchUsers: (keyword: string) => Promise<{ id: string; name: string; }[]>; searchDepts: (keyword: string) => Promise<{ id: string; name: string; }[]>; searchUserGroups: (keyword: string) => Promise<...>; searchDeptGroups: (keyword: string) => Promise<...>; searchAddress: (keyword: string) => Promise<...>; searchL...' but required in type 'IFieldValueService'.
266
+
267
+ 6 const mockService: IFieldValueService = {
268
+    ~~~~~~~~~~~
269
+
270
+ ../types/dist/services/index.d.ts:122:5
271
+ 122 setContext: (appId: string, entryId: string) => void;
272
+    ~~~~~~~~~~
273
+ 'setContext' is declared here.
274
+ src/stories/ConditionInput.stories.tsx:96:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
275
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
276
+
277
+ 96 { label: '男', value: 'male' },
278
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
279
+
280
+ ../types/dist/fields.d.ts:68:5
281
+ 68 text: string;
282
+    ~~~~
283
+ 'text' is declared here.
284
+ src/stories/ConditionInput.stories.tsx:97:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
285
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
286
+
287
+ 97 { label: '女', value: 'female' },
288
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
289
+
290
+ ../types/dist/fields.d.ts:68:5
291
+ 68 text: string;
292
+    ~~~~
293
+ 'text' is declared here.
294
+ src/stories/ConditionInput.stories.tsx:108:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
295
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
296
+
297
+ 108 { label: '北京', value: 'beijing' },
298
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
299
+
300
+ ../types/dist/fields.d.ts:68:5
301
+ 68 text: string;
302
+    ~~~~
303
+ 'text' is declared here.
304
+ src/stories/ConditionInput.stories.tsx:109:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
305
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
306
+
307
+ 109 { label: '上海', value: 'shanghai' },
308
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
309
+
310
+ ../types/dist/fields.d.ts:68:5
311
+ 68 text: string;
312
+    ~~~~
313
+ 'text' is declared here.
314
+ src/stories/ConditionInput.stories.tsx:110:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
315
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
316
+
317
+ 110 { label: '广州', value: 'guangzhou' },
318
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
319
+
320
+ ../types/dist/fields.d.ts:68:5
321
+ 68 text: string;
322
+    ~~~~
323
+ 'text' is declared here.
324
+ src/stories/ConditionInput.stories.tsx:121:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
325
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
326
+
327
+ 121 { label: '阅读', value: 'reading' },
328
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
329
+
330
+ ../types/dist/fields.d.ts:68:5
331
+ 68 text: string;
332
+    ~~~~
333
+ 'text' is declared here.
334
+ src/stories/ConditionInput.stories.tsx:122:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
335
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
336
+
337
+ 122 { label: '运动', value: 'sports' },
338
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
339
+
340
+ ../types/dist/fields.d.ts:68:5
341
+ 68 text: string;
342
+    ~~~~
343
+ 'text' is declared here.
344
+ src/stories/ConditionInput.stories.tsx:123:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
345
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
346
+
347
+ 123 { label: '音乐', value: 'music' },
348
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
349
+
350
+ ../types/dist/fields.d.ts:68:5
351
+ 68 text: string;
352
+    ~~~~
353
+ 'text' is declared here.
354
+ src/stories/ConditionInput.stories.tsx:150:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
355
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
356
+
357
+ 150 { label: '男', value: 'male' },
358
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
359
+
360
+ ../types/dist/fields.d.ts:68:5
361
+ 68 text: string;
362
+    ~~~~
363
+ 'text' is declared here.
364
+ src/stories/ConditionInput.stories.tsx:151:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
365
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
366
+
367
+ 151 { label: '女', value: 'female' },
368
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
369
+
370
+ ../types/dist/fields.d.ts:68:5
371
+ 68 text: string;
372
+    ~~~~
373
+ 'text' is declared here.
374
+ src/stories/ConditionInput.stories.tsx:162:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
375
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
376
+
377
+ 162 { label: '选项A', value: 'a' },
378
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
379
+
380
+ ../types/dist/fields.d.ts:68:5
381
+ 68 text: string;
382
+    ~~~~
383
+ 'text' is declared here.
384
+ src/stories/ConditionInput.stories.tsx:163:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
385
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
386
+
387
+ 163 { label: '选项B', value: 'b' },
388
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
389
+
390
+ ../types/dist/fields.d.ts:68:5
391
+ 68 text: string;
392
+    ~~~~
393
+ 'text' is declared here.
394
+ src/stories/ConditionInput.stories.tsx:164:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
395
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
396
+
397
+ 164 { label: '选项C', value: 'c' },
398
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
399
+
400
+ ../types/dist/fields.d.ts:68:5
401
+ 68 text: string;
402
+    ~~~~
403
+ 'text' is declared here.
404
+ src/stories/ConditionItem.stories.tsx:34:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
405
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
406
+
407
+ 34 { label: '男', value: 'male' },
408
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
409
+
410
+ ../types/dist/fields.d.ts:68:5
411
+ 68 text: string;
412
+    ~~~~
413
+ 'text' is declared here.
414
+ src/stories/ConditionItem.stories.tsx:35:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
415
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
416
+
417
+ 35 { label: '女', value: 'female' },
418
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
419
+
420
+ ../types/dist/fields.d.ts:68:5
421
+ 68 text: string;
422
+    ~~~~
423
+ 'text' is declared here.
424
+ src/stories/ConditionItem.stories.tsx:46:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
425
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
426
+
427
+ 46 { label: '北京', value: 'beijing' },
428
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
429
+
430
+ ../types/dist/fields.d.ts:68:5
431
+ 68 text: string;
432
+    ~~~~
433
+ 'text' is declared here.
434
+ src/stories/ConditionItem.stories.tsx:47:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
435
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
436
+
437
+ 47 { label: '上海', value: 'shanghai' },
438
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
439
+
440
+ ../types/dist/fields.d.ts:68:5
441
+ 68 text: string;
442
+    ~~~~
443
+ 'text' is declared here.
444
+ src/stories/ConditionItem.stories.tsx:48:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
445
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
446
+
447
+ 48 { label: '广州', value: 'guangzhou' },
448
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
449
+
450
+ ../types/dist/fields.d.ts:68:5
451
+ 68 text: string;
452
+    ~~~~
453
+ 'text' is declared here.
454
+ src/stories/ConditionItem.stories.tsx:59:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
455
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
456
+
457
+ 59 { label: '阅读', value: 'reading' },
458
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
459
+
460
+ ../types/dist/fields.d.ts:68:5
461
+ 68 text: string;
462
+    ~~~~
463
+ 'text' is declared here.
464
+ src/stories/ConditionItem.stories.tsx:60:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
465
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
466
+
467
+ 60 { label: '运动', value: 'sports' },
468
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
469
+
470
+ ../types/dist/fields.d.ts:68:5
471
+ 68 text: string;
472
+    ~~~~
473
+ 'text' is declared here.
474
+ src/stories/ConditionItem.stories.tsx:61:9 - error TS2322: Type '{ label: string; value: string; }' is not assignable to type 'WidgetItem'.
475
+ Property 'text' is missing in type '{ label: string; value: string; }' but required in type 'IOptionItem'.
476
+
477
+ 61 { label: '音乐', value: 'music' },
478
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
479
+
480
+ ../types/dist/fields.d.ts:68:5
481
+ 68 text: string;
482
+    ~~~~
483
+ 'text' is declared here.
484
+ src/stories/field-checker-list-msg.stories.tsx:10:32 - error TS2322: Type 'string' is not assignable to type 'FieldType'.
485
+
486
+ 10 widget: { widgetName: label, type },
487
+    ~~~~
488
+
489
+ ../types/dist/fields.d.ts:72:5
490
+ 72 type: FieldType;
491
+    ~~~~
492
+ The expected type comes from property 'type' which is declared here on type 'IWidget'
493
+ src/stories/field-checker.stories.tsx:9:3 - error TS2322: Type '{ type: FieldType; widgetName: string; refAppId?: string; linkForm?: string; value?: string | string[] | unknown; enable?: boolean; allowBlank?: boolean; allowImport?: boolean; linkFields?: Array<unknown>; loaddataconfig?: ILoadDataConfig; items?: Array<WidgetItem>; }' is not assignable to type 'IWidget'.
494
+ Property 'value' is optional in type '{ type: FieldType; widgetName: string; refAppId?: string | undefined; linkForm?: string | undefined; value?: unknown; enable?: boolean | undefined; allowBlank?: boolean | undefined; allowImport?: boolean | undefined; linkFields?: unknown[] | undefined; loaddataconfig?: ILoadDataConfig | undefined; items?: WidgetItem...' but required in type 'IWidget'.
495
+
496
+ 9 widget: {
497
+    ~~~~~~
498
+
499
+ ../types/dist/fields.d.ts:88:5
500
+ 88 widget: IWidget;
501
+    ~~~~~~
502
+ The expected type comes from property 'widget' which is declared here on type 'IField'
503
+ src/stories/field-checker.stories.tsx:51:37 - error TS2353: Object literal may only specify known properties, and 'color' does not exist in type 'WidgetItem'.
504
+
505
+ 51 { value: "A", text: "A级", color: "#52c41a" },
506
+    ~~~~~
507
+ src/stories/field-checker.stories.tsx:52:37 - error TS2353: Object literal may only specify known properties, and 'color' does not exist in type 'WidgetItem'.
508
+
509
+ 52 { value: "B", text: "B级", color: "#1677ff" },
510
+    ~~~~~
511
+ src/stories/field-checker.stories.tsx:53:37 - error TS2353: Object literal may only specify known properties, and 'color' does not exist in type 'WidgetItem'.
512
+
513
+ 53 { value: "C", text: "C级", color: "#fa8c16" },
514
+    ~~~~~
515
+ src/stories/field-checker.stories.tsx:63:24 - error TS2741: Property 'value' is missing in type '{ widgetName: string; type: "text"; }' but required in type 'IWidget'.
516
+
517
+ 63 field: makeField({ widget: { widgetName: "supplier_name", type: "text" } }),
518
+    ~~~~~~
519
+
520
+ ../types/dist/fields.d.ts:76:5
521
+ 76 value: string | string[] | unknown;
522
+    ~~~~~
523
+ 'value' is declared here.
524
+ src/stories/field-checker.stories.tsx:79:13 - error TS2741: Property 'value' is missing in type '{ widgetName: string; type: "text"; }' but required in type 'Omit<IWidget, "items">'.
525
+
526
+ 79 widget: { widgetName: "contact_name", type: "text" },
527
+    ~~~~~~
528
+
529
+ ../types/dist/fields.d.ts:76:5
530
+ 76 value: string | string[] | unknown;
531
+    ~~~~~
532
+ 'value' is declared here.
533
+ src/stories/field-checker.stories.tsx:83:13 - error TS2741: Property 'value' is missing in type '{ widgetName: string; type: "text"; }' but required in type 'Omit<IWidget, "items">'.
534
+
535
+ 83 widget: { widgetName: "contact_phone", type: "text" },
536
+    ~~~~~~
537
+
538
+ ../types/dist/fields.d.ts:76:5
539
+ 76 value: string | string[] | unknown;
540
+    ~~~~~
541
+ 'value' is declared here.
542
+ src/stories/FieldSelect.stories.tsx:67:3 - error TS2741: Property 'widget' is missing in type '{ label: string; description: string; }' but required in type 'IField'.
543
+
544
+ 67 { label: '无类型字段', description: '这个字段没有 widget' },
545
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
546
+
547
+ ../types/dist/fields.d.ts:88:5
548
+ 88 widget: IWidget;
549
+    ~~~~~~
550
+ 'widget' is declared here.
551
+ src/stories/FieldValueInput.stories.tsx:9:7 - error TS2741: Property 'setContext' is missing in type '{ searchUsers: (keyword: string) => Promise<{ id: string; name: string; avatar: string; }[]>; searchDepts: (keyword: string) => Promise<{ id: string; name: string; }[]>; searchUserGroups: (keyword: string) => Promise<...>; ... 5 more ...; searchDistinctValues: (_field: IField, keyword: string | undefined) => Promise...' but required in type 'IFieldValueService'.
552
+
553
+ 9 const mockService: IFieldValueService = {
554
+    ~~~~~~~~~~~
555
+
556
+ ../types/dist/services/index.d.ts:122:5
557
+ 122 setContext: (appId: string, entryId: string) => void;
558
+    ~~~~~~~~~~
559
+ 'setContext' is declared here.
560
+
561
+ computing gzip size (0)...computing gzip size (1)...computing gzip size (2)...dist/index.css  8.08 kB │ gzip: 1.67 kB
562
+ dist/ai-design.js 1,494.76 kB │ gzip: 352.20 kB │ map: 3,878.64 kB
563
+ [vite:dts] Declaration files built in 9124ms.
564
+ 
565
+ rendering chunks (1)...computing gzip size (1)...dist/ai-design.umd.cjs 1,064.83 kB │ gzip: 300.29 kB │ map: 3,717.02 kB
566
+ ✓ built in 12.59s
567
+ ≈ tailwindcss v4.3.0
568
+
569
+ Done in 85ms
570
+ Stripped @layer directives. Output lines: 4134
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @baishuyun/ai-design
2
2
 
3
+ ## 1.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - prepare for pub
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+ - @baishuyun/ai-feat-utils@1.1.0
13
+ - @baishuyun/types@2.1.0
14
+
15
+ ## 1.0.10
16
+
17
+ ### Patch Changes
18
+
19
+ - republish
20
+
3
21
  ## 1.0.9
4
22
 
5
23
  ### Patch Changes
@@ -300,9 +300,6 @@
300
300
  .top-\[3px\] {
301
301
  top: 3px;
302
302
  }
303
- .top-\[38px\] {
304
- top: 38px;
305
- }
306
303
  .top-\[50\%\] {
307
304
  top: 50%;
308
305
  }
@@ -2164,6 +2161,10 @@
2164
2161
  --tw-shadow: 0px 0px 5px var(--tw-shadow-color, rgba(0,0,0,0.04));
2165
2162
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
2166
2163
  }
2164
+ .shadow-\[0px_0px_8px_rgba\(0\,0\,0\,0\.1\)\] {
2165
+ --tw-shadow: 0px 0px 8px var(--tw-shadow-color, rgba(0,0,0,0.1));
2166
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
2167
+ }
2167
2168
  .shadow-\[0px_0px_10px_0px_rgba\(0\,0\,0\,0\.04\)\] {
2168
2169
  --tw-shadow: 0px 0px 10px 0px var(--tw-shadow-color, rgba(0,0,0,0.04));
2169
2170
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);