@blocklet/pages-kit 0.2.433 → 0.2.435

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 (319) hide show
  1. package/lib/cjs/builtin/async/ai-runtime.js +17 -0
  2. package/lib/cjs/builtin/{async/ai-runtime/components/AgentInputField/LanguageField.js → components/LanguageField/index.js} +3 -3
  3. package/lib/cjs/builtin/{components.js → components/index.js} +1 -1
  4. package/lib/cjs/components/CustomComponentRenderer/context.js +13 -0
  5. package/lib/cjs/components/CustomComponentRenderer/index.js +5 -1
  6. package/lib/cjs/components/CustomComponentRenderer/state.js +20 -6
  7. package/lib/cjs/tsconfig.tsbuildinfo +1 -1
  8. package/lib/esm/builtin/async/ai-runtime.js +1 -0
  9. package/lib/esm/builtin/{async/ai-runtime/components/AgentInputField/LanguageField.js → components/LanguageField/index.js} +2 -2
  10. package/lib/esm/builtin/components/index.js +1 -0
  11. package/lib/esm/components/CustomComponentRenderer/context.js +9 -0
  12. package/lib/esm/components/CustomComponentRenderer/index.js +5 -1
  13. package/lib/esm/components/CustomComponentRenderer/state.js +21 -7
  14. package/lib/esm/tsconfig.tsbuildinfo +1 -1
  15. package/lib/types/builtin/async/ai-runtime.d.ts +1 -0
  16. package/lib/types/builtin/components/index.d.ts +1 -0
  17. package/lib/types/components/CustomComponentRenderer/context.d.ts +14 -0
  18. package/lib/types/components/CustomComponentRenderer/index.d.ts +1 -0
  19. package/lib/types/components/CustomComponentRenderer/state.d.ts +5 -1
  20. package/lib/types/tsconfig.tsbuildinfo +1 -1
  21. package/package.json +12 -5
  22. package/tsconfig.json +1 -1
  23. package/lib/cjs/builtin/async/ai-runtime/api/agent.js +0 -24
  24. package/lib/cjs/builtin/async/ai-runtime/api/asset.js +0 -25
  25. package/lib/cjs/builtin/async/ai-runtime/api/dataset.js +0 -134
  26. package/lib/cjs/builtin/async/ai-runtime/api/message.js +0 -46
  27. package/lib/cjs/builtin/async/ai-runtime/api/request.js +0 -74
  28. package/lib/cjs/builtin/async/ai-runtime/api/secret.js +0 -24
  29. package/lib/cjs/builtin/async/ai-runtime/api/session.js +0 -137
  30. package/lib/cjs/builtin/async/ai-runtime/components/ActionButton.js +0 -62
  31. package/lib/cjs/builtin/async/ai-runtime/components/AgentErrorBoundary.js +0 -34
  32. package/lib/cjs/builtin/async/ai-runtime/components/AgentInputField/BooleanField.js +0 -21
  33. package/lib/cjs/builtin/async/ai-runtime/components/AgentInputField/NumberField.js +0 -21
  34. package/lib/cjs/builtin/async/ai-runtime/components/AgentInputField/RadioField.js +0 -39
  35. package/lib/cjs/builtin/async/ai-runtime/components/AgentInputField/SelectField.js +0 -24
  36. package/lib/cjs/builtin/async/ai-runtime/components/AgentInputField/StringField.js +0 -35
  37. package/lib/cjs/builtin/async/ai-runtime/components/AgentInputField/index.js +0 -44
  38. package/lib/cjs/builtin/async/ai-runtime/components/AgentSettings/AgentSettingsDialog.js +0 -80
  39. package/lib/cjs/builtin/async/ai-runtime/components/GlobalLoading/index.js +0 -27
  40. package/lib/cjs/builtin/async/ai-runtime/components/GlobalLoading/state.js +0 -39
  41. package/lib/cjs/builtin/async/ai-runtime/components/Header/SimpleHeader.js +0 -49
  42. package/lib/cjs/builtin/async/ai-runtime/components/Layout/SimpleLayout.js +0 -21
  43. package/lib/cjs/builtin/async/ai-runtime/components/LoadingButton.js +0 -40
  44. package/lib/cjs/builtin/async/ai-runtime/components/MarkdownRenderer/index.js +0 -146
  45. package/lib/cjs/builtin/async/ai-runtime/components/MenuButton.js +0 -55
  46. package/lib/cjs/builtin/async/ai-runtime/components/OutputFieldContainer/index.js +0 -22
  47. package/lib/cjs/builtin/async/ai-runtime/components/PopperMenuButton/LoadingMenuItem.js +0 -49
  48. package/lib/cjs/builtin/async/ai-runtime/components/PopperMenuButton/index.js +0 -68
  49. package/lib/cjs/builtin/async/ai-runtime/components/RuntimeCommonProvider.js +0 -25
  50. package/lib/cjs/builtin/async/ai-runtime/components/ScrollView.js +0 -92
  51. package/lib/cjs/builtin/async/ai-runtime/components/ShareActions/Community.js +0 -6
  52. package/lib/cjs/builtin/async/ai-runtime/components/ShareActions/index.js +0 -255
  53. package/lib/cjs/builtin/async/ai-runtime/components/SocialShare.js +0 -108
  54. package/lib/cjs/builtin/async/ai-runtime/components/ThemeProvider.js +0 -191
  55. package/lib/cjs/builtin/async/ai-runtime/components/UserInfo.js +0 -55
  56. package/lib/cjs/builtin/async/ai-runtime/constants.js +0 -43
  57. package/lib/cjs/builtin/async/ai-runtime/contexts/ActiveAgent.js +0 -27
  58. package/lib/cjs/builtin/async/ai-runtime/contexts/ComponentPreferences.js +0 -31
  59. package/lib/cjs/builtin/async/ai-runtime/contexts/CurrentAgent.js +0 -34
  60. package/lib/cjs/builtin/async/ai-runtime/contexts/CurrentMessage.js +0 -18
  61. package/lib/cjs/builtin/async/ai-runtime/contexts/Identity.js +0 -36
  62. package/lib/cjs/builtin/async/ai-runtime/contexts/Runtime.js +0 -52
  63. package/lib/cjs/builtin/async/ai-runtime/error.js +0 -10
  64. package/lib/cjs/builtin/async/ai-runtime/hooks/use-agent-admin.js +0 -13
  65. package/lib/cjs/builtin/async/ai-runtime/hooks/use-appearances.js +0 -109
  66. package/lib/cjs/builtin/async/ai-runtime/hooks/use-header-menu.js +0 -50
  67. package/lib/cjs/builtin/async/ai-runtime/index.js +0 -83
  68. package/lib/cjs/builtin/async/ai-runtime/locales/index.js +0 -237
  69. package/lib/cjs/builtin/async/ai-runtime/runtime/ChatBotButton/index.js +0 -116
  70. package/lib/cjs/builtin/async/ai-runtime/runtime/Runtime/index.js +0 -48
  71. package/lib/cjs/builtin/async/ai-runtime/runtime-components/AutoForm/index.js +0 -138
  72. package/lib/cjs/builtin/async/ai-runtime/runtime-components/ChatOutput/MessageErrorView.js +0 -19
  73. package/lib/cjs/builtin/async/ai-runtime/runtime-components/ChatOutput/MessageItemView.js +0 -186
  74. package/lib/cjs/builtin/async/ai-runtime/runtime-components/ChatOutput/MessageMetadataRenderer.js +0 -24
  75. package/lib/cjs/builtin/async/ai-runtime/runtime-components/ChatOutput/MessageSuggestedQuestions.js +0 -34
  76. package/lib/cjs/builtin/async/ai-runtime/runtime-components/ChatOutput/ReferenceLinks.js +0 -11
  77. package/lib/cjs/builtin/async/ai-runtime/runtime-components/ChatOutput/index.js +0 -24
  78. package/lib/cjs/builtin/async/ai-runtime/runtime-components/GoogleSearch/GoogleSearchRelatedQuestionsView.js +0 -85
  79. package/lib/cjs/builtin/async/ai-runtime/runtime-components/GoogleSearch/GoogleSearchSourcesView.js +0 -64
  80. package/lib/cjs/builtin/async/ai-runtime/runtime-components/ImagesView/index.js +0 -30
  81. package/lib/cjs/builtin/async/ai-runtime/runtime-components/MarkdownView/index.js +0 -13
  82. package/lib/cjs/builtin/async/ai-runtime/runtime-components/OpeningQuestionsView/index.js +0 -46
  83. package/lib/cjs/builtin/async/ai-runtime/runtime-components/OutputFieldView/type.js +0 -2
  84. package/lib/cjs/builtin/async/ai-runtime/runtime-components/PhotoGallery/index.js +0 -65
  85. package/lib/cjs/builtin/async/ai-runtime/runtime-components/PhotoGalleryItem/index.js +0 -150
  86. package/lib/cjs/builtin/async/ai-runtime/runtime-components/ReferencedLinksView/index.js +0 -26
  87. package/lib/cjs/builtin/async/ai-runtime/runtime-components/ShareView/index.js +0 -16
  88. package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimpleChat/BackgroundImage.js +0 -38
  89. package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimpleChat/DrawerOpenCloseIcon.js +0 -42
  90. package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimpleChat/InputsView.js +0 -94
  91. package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimpleChat/MessageView.js +0 -79
  92. package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimpleChat/MessagesView.js +0 -34
  93. package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimpleChat/OpeningMessageView.js +0 -45
  94. package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimpleChat/UserMessageView.js +0 -28
  95. package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimpleChat/index.js +0 -82
  96. package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimpleOutput/index.js +0 -69
  97. package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimplePage/index.js +0 -55
  98. package/lib/cjs/builtin/async/ai-runtime/runtime-components/SuggestedQuestionsView/index.js +0 -54
  99. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/Input.js +0 -189
  100. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/Output.js +0 -252
  101. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/Page.js +0 -300
  102. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/CodePreview.js +0 -158
  103. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/ConfirmDialog.js +0 -60
  104. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/Loading.js +0 -153
  105. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/PropertiesSetting.js +0 -80
  106. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/TransparentTooltip.js +0 -25
  107. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/UserQuestion.js +0 -68
  108. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/contexts/V0Runtime.js +0 -56
  109. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/index.js +0 -12
  110. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/utils.js +0 -13
  111. package/lib/cjs/builtin/async/ai-runtime/state/agent.js +0 -58
  112. package/lib/cjs/builtin/async/ai-runtime/state/runtime.js +0 -48
  113. package/lib/cjs/builtin/async/ai-runtime/state/session.js +0 -415
  114. package/lib/cjs/builtin/async/ai-runtime/utils/agent-inputs.js +0 -14
  115. package/lib/cjs/builtin/async/ai-runtime/utils/download-image.js +0 -40
  116. package/lib/cjs/builtin/async/ai-runtime/utils/fonts.js +0 -35
  117. package/lib/cjs/builtin/async/ai-runtime/utils/map-right.js +0 -10
  118. package/lib/cjs/builtin/async/ai-runtime/utils/runtime-output-schema.js +0 -7
  119. package/lib/cjs/builtin/async/ai-runtime/utils/zustand.js +0 -9
  120. package/lib/esm/builtin/async/ai-runtime/api/agent.js +0 -21
  121. package/lib/esm/builtin/async/ai-runtime/api/asset.js +0 -22
  122. package/lib/esm/builtin/async/ai-runtime/api/dataset.js +0 -121
  123. package/lib/esm/builtin/async/ai-runtime/api/message.js +0 -42
  124. package/lib/esm/builtin/async/ai-runtime/api/request.js +0 -68
  125. package/lib/esm/builtin/async/ai-runtime/api/secret.js +0 -21
  126. package/lib/esm/builtin/async/ai-runtime/api/session.js +0 -128
  127. package/lib/esm/builtin/async/ai-runtime/components/ActionButton.js +0 -56
  128. package/lib/esm/builtin/async/ai-runtime/components/AgentErrorBoundary.js +0 -30
  129. package/lib/esm/builtin/async/ai-runtime/components/AgentInputField/BooleanField.js +0 -19
  130. package/lib/esm/builtin/async/ai-runtime/components/AgentInputField/NumberField.js +0 -19
  131. package/lib/esm/builtin/async/ai-runtime/components/AgentInputField/RadioField.js +0 -37
  132. package/lib/esm/builtin/async/ai-runtime/components/AgentInputField/SelectField.js +0 -22
  133. package/lib/esm/builtin/async/ai-runtime/components/AgentInputField/StringField.js +0 -33
  134. package/lib/esm/builtin/async/ai-runtime/components/AgentInputField/index.js +0 -38
  135. package/lib/esm/builtin/async/ai-runtime/components/AgentSettings/AgentSettingsDialog.js +0 -76
  136. package/lib/esm/builtin/async/ai-runtime/components/GlobalLoading/index.js +0 -22
  137. package/lib/esm/builtin/async/ai-runtime/components/GlobalLoading/state.js +0 -36
  138. package/lib/esm/builtin/async/ai-runtime/components/Header/SimpleHeader.js +0 -23
  139. package/lib/esm/builtin/async/ai-runtime/components/Layout/SimpleLayout.js +0 -18
  140. package/lib/esm/builtin/async/ai-runtime/components/LoadingButton.js +0 -38
  141. package/lib/esm/builtin/async/ai-runtime/components/MarkdownRenderer/index.js +0 -118
  142. package/lib/esm/builtin/async/ai-runtime/components/MenuButton.js +0 -52
  143. package/lib/esm/builtin/async/ai-runtime/components/OutputFieldContainer/index.js +0 -19
  144. package/lib/esm/builtin/async/ai-runtime/components/PopperMenuButton/LoadingMenuItem.js +0 -46
  145. package/lib/esm/builtin/async/ai-runtime/components/PopperMenuButton/index.js +0 -42
  146. package/lib/esm/builtin/async/ai-runtime/components/RuntimeCommonProvider.js +0 -18
  147. package/lib/esm/builtin/async/ai-runtime/components/ScrollView.js +0 -63
  148. package/lib/esm/builtin/async/ai-runtime/components/ShareActions/Community.js +0 -4
  149. package/lib/esm/builtin/async/ai-runtime/components/ShareActions/index.js +0 -226
  150. package/lib/esm/builtin/async/ai-runtime/components/SocialShare.js +0 -100
  151. package/lib/esm/builtin/async/ai-runtime/components/ThemeProvider.js +0 -185
  152. package/lib/esm/builtin/async/ai-runtime/components/UserInfo.js +0 -47
  153. package/lib/esm/builtin/async/ai-runtime/constants.js +0 -39
  154. package/lib/esm/builtin/async/ai-runtime/contexts/ActiveAgent.js +0 -23
  155. package/lib/esm/builtin/async/ai-runtime/contexts/ComponentPreferences.js +0 -24
  156. package/lib/esm/builtin/async/ai-runtime/contexts/CurrentAgent.js +0 -30
  157. package/lib/esm/builtin/async/ai-runtime/contexts/CurrentMessage.js +0 -14
  158. package/lib/esm/builtin/async/ai-runtime/contexts/Identity.js +0 -28
  159. package/lib/esm/builtin/async/ai-runtime/contexts/Runtime.js +0 -22
  160. package/lib/esm/builtin/async/ai-runtime/error.js +0 -6
  161. package/lib/esm/builtin/async/ai-runtime/hooks/use-agent-admin.js +0 -10
  162. package/lib/esm/builtin/async/ai-runtime/hooks/use-appearances.js +0 -103
  163. package/lib/esm/builtin/async/ai-runtime/hooks/use-header-menu.js +0 -44
  164. package/lib/esm/builtin/async/ai-runtime/index.js +0 -37
  165. package/lib/esm/builtin/async/ai-runtime/locales/index.js +0 -234
  166. package/lib/esm/builtin/async/ai-runtime/runtime/ChatBotButton/index.js +0 -87
  167. package/lib/esm/builtin/async/ai-runtime/runtime/Runtime/index.js +0 -19
  168. package/lib/esm/builtin/async/ai-runtime/runtime-components/AutoForm/index.js +0 -132
  169. package/lib/esm/builtin/async/ai-runtime/runtime-components/ChatOutput/MessageErrorView.js +0 -13
  170. package/lib/esm/builtin/async/ai-runtime/runtime-components/ChatOutput/MessageItemView.js +0 -157
  171. package/lib/esm/builtin/async/ai-runtime/runtime-components/ChatOutput/MessageMetadataRenderer.js +0 -18
  172. package/lib/esm/builtin/async/ai-runtime/runtime-components/ChatOutput/MessageSuggestedQuestions.js +0 -30
  173. package/lib/esm/builtin/async/ai-runtime/runtime-components/ChatOutput/ReferenceLinks.js +0 -8
  174. package/lib/esm/builtin/async/ai-runtime/runtime-components/ChatOutput/index.js +0 -18
  175. package/lib/esm/builtin/async/ai-runtime/runtime-components/GoogleSearch/GoogleSearchRelatedQuestionsView.js +0 -56
  176. package/lib/esm/builtin/async/ai-runtime/runtime-components/GoogleSearch/GoogleSearchSourcesView.js +0 -58
  177. package/lib/esm/builtin/async/ai-runtime/runtime-components/ImagesView/index.js +0 -24
  178. package/lib/esm/builtin/async/ai-runtime/runtime-components/MarkdownView/index.js +0 -7
  179. package/lib/esm/builtin/async/ai-runtime/runtime-components/OpeningQuestionsView/index.js +0 -40
  180. package/lib/esm/builtin/async/ai-runtime/runtime-components/OutputFieldView/type.js +0 -1
  181. package/lib/esm/builtin/async/ai-runtime/runtime-components/PhotoGallery/index.js +0 -59
  182. package/lib/esm/builtin/async/ai-runtime/runtime-components/PhotoGalleryItem/index.js +0 -144
  183. package/lib/esm/builtin/async/ai-runtime/runtime-components/ReferencedLinksView/index.js +0 -20
  184. package/lib/esm/builtin/async/ai-runtime/runtime-components/ShareView/index.js +0 -10
  185. package/lib/esm/builtin/async/ai-runtime/runtime-components/SimpleChat/BackgroundImage.js +0 -35
  186. package/lib/esm/builtin/async/ai-runtime/runtime-components/SimpleChat/DrawerOpenCloseIcon.js +0 -39
  187. package/lib/esm/builtin/async/ai-runtime/runtime-components/SimpleChat/InputsView.js +0 -65
  188. package/lib/esm/builtin/async/ai-runtime/runtime-components/SimpleChat/MessageView.js +0 -50
  189. package/lib/esm/builtin/async/ai-runtime/runtime-components/SimpleChat/MessagesView.js +0 -28
  190. package/lib/esm/builtin/async/ai-runtime/runtime-components/SimpleChat/OpeningMessageView.js +0 -40
  191. package/lib/esm/builtin/async/ai-runtime/runtime-components/SimpleChat/UserMessageView.js +0 -22
  192. package/lib/esm/builtin/async/ai-runtime/runtime-components/SimpleChat/index.js +0 -53
  193. package/lib/esm/builtin/async/ai-runtime/runtime-components/SimpleOutput/index.js +0 -40
  194. package/lib/esm/builtin/async/ai-runtime/runtime-components/SimplePage/index.js +0 -49
  195. package/lib/esm/builtin/async/ai-runtime/runtime-components/SuggestedQuestionsView/index.js +0 -48
  196. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/Input.js +0 -183
  197. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/Output.js +0 -246
  198. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/Page.js +0 -294
  199. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/CodePreview.js +0 -149
  200. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/ConfirmDialog.js +0 -55
  201. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/Loading.js +0 -146
  202. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/PropertiesSetting.js +0 -75
  203. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/TransparentTooltip.js +0 -23
  204. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/UserQuestion.js +0 -42
  205. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/contexts/V0Runtime.js +0 -52
  206. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/index.js +0 -3
  207. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/utils.js +0 -9
  208. package/lib/esm/builtin/async/ai-runtime/state/agent.js +0 -55
  209. package/lib/esm/builtin/async/ai-runtime/state/runtime.js +0 -45
  210. package/lib/esm/builtin/async/ai-runtime/state/session.js +0 -408
  211. package/lib/esm/builtin/async/ai-runtime/utils/agent-inputs.js +0 -10
  212. package/lib/esm/builtin/async/ai-runtime/utils/download-image.js +0 -36
  213. package/lib/esm/builtin/async/ai-runtime/utils/fonts.js +0 -32
  214. package/lib/esm/builtin/async/ai-runtime/utils/map-right.js +0 -7
  215. package/lib/esm/builtin/async/ai-runtime/utils/runtime-output-schema.js +0 -4
  216. package/lib/esm/builtin/async/ai-runtime/utils/zustand.js +0 -6
  217. package/lib/esm/builtin/components.js +0 -1
  218. package/lib/types/builtin/async/ai-runtime/api/agent.d.ts +0 -51
  219. package/lib/types/builtin/async/ai-runtime/api/asset.d.ts +0 -16
  220. package/lib/types/builtin/async/ai-runtime/api/dataset.d.ts +0 -39
  221. package/lib/types/builtin/async/ai-runtime/api/message.d.ts +0 -35
  222. package/lib/types/builtin/async/ai-runtime/api/request.d.ts +0 -12
  223. package/lib/types/builtin/async/ai-runtime/api/secret.d.ts +0 -12
  224. package/lib/types/builtin/async/ai-runtime/api/session.d.ts +0 -61
  225. package/lib/types/builtin/async/ai-runtime/components/ActionButton.d.ts +0 -14
  226. package/lib/types/builtin/async/ai-runtime/components/AgentErrorBoundary.d.ts +0 -7
  227. package/lib/types/builtin/async/ai-runtime/components/AgentInputField/BooleanField.d.ts +0 -8
  228. package/lib/types/builtin/async/ai-runtime/components/AgentInputField/NumberField.d.ts +0 -8
  229. package/lib/types/builtin/async/ai-runtime/components/AgentInputField/RadioField.d.ts +0 -8
  230. package/lib/types/builtin/async/ai-runtime/components/AgentInputField/SelectField.d.ts +0 -8
  231. package/lib/types/builtin/async/ai-runtime/components/AgentInputField/StringField.d.ts +0 -8
  232. package/lib/types/builtin/async/ai-runtime/components/AgentInputField/index.d.ts +0 -7
  233. package/lib/types/builtin/async/ai-runtime/components/AgentSettings/AgentSettingsDialog.d.ts +0 -10
  234. package/lib/types/builtin/async/ai-runtime/components/GlobalLoading/index.d.ts +0 -3
  235. package/lib/types/builtin/async/ai-runtime/components/GlobalLoading/state.d.ts +0 -10
  236. package/lib/types/builtin/async/ai-runtime/components/Header/SimpleHeader.d.ts +0 -5
  237. package/lib/types/builtin/async/ai-runtime/components/Layout/SimpleLayout.d.ts +0 -2
  238. package/lib/types/builtin/async/ai-runtime/components/LoadingButton.d.ts +0 -3
  239. package/lib/types/builtin/async/ai-runtime/components/MarkdownRenderer/index.d.ts +0 -2
  240. package/lib/types/builtin/async/ai-runtime/components/MenuButton.d.ts +0 -10
  241. package/lib/types/builtin/async/ai-runtime/components/OutputFieldContainer/index.d.ts +0 -5
  242. package/lib/types/builtin/async/ai-runtime/components/PopperMenuButton/LoadingMenuItem.d.ts +0 -5
  243. package/lib/types/builtin/async/ai-runtime/components/PopperMenuButton/index.d.ts +0 -6
  244. package/lib/types/builtin/async/ai-runtime/components/RuntimeCommonProvider.d.ts +0 -7
  245. package/lib/types/builtin/async/ai-runtime/components/ScrollView.d.ts +0 -10
  246. package/lib/types/builtin/async/ai-runtime/components/ShareActions/Community.d.ts +0 -4
  247. package/lib/types/builtin/async/ai-runtime/components/ShareActions/index.d.ts +0 -2
  248. package/lib/types/builtin/async/ai-runtime/components/SocialShare.d.ts +0 -20
  249. package/lib/types/builtin/async/ai-runtime/components/ThemeProvider.d.ts +0 -4
  250. package/lib/types/builtin/async/ai-runtime/components/UserInfo.d.ts +0 -18
  251. package/lib/types/builtin/async/ai-runtime/constants.d.ts +0 -21
  252. package/lib/types/builtin/async/ai-runtime/contexts/ActiveAgent.d.ts +0 -9
  253. package/lib/types/builtin/async/ai-runtime/contexts/ComponentPreferences.d.ts +0 -11
  254. package/lib/types/builtin/async/ai-runtime/contexts/CurrentAgent.d.ts +0 -16
  255. package/lib/types/builtin/async/ai-runtime/contexts/CurrentMessage.d.ts +0 -15
  256. package/lib/types/builtin/async/ai-runtime/contexts/Identity.d.ts +0 -16
  257. package/lib/types/builtin/async/ai-runtime/contexts/Runtime.d.ts +0 -4
  258. package/lib/types/builtin/async/ai-runtime/error.d.ts +0 -4
  259. package/lib/types/builtin/async/ai-runtime/hooks/use-agent-admin.d.ts +0 -2
  260. package/lib/types/builtin/async/ai-runtime/hooks/use-appearances.d.ts +0 -78
  261. package/lib/types/builtin/async/ai-runtime/hooks/use-header-menu.d.ts +0 -1
  262. package/lib/types/builtin/async/ai-runtime/index.d.ts +0 -36
  263. package/lib/types/builtin/async/ai-runtime/locales/index.d.ts +0 -210
  264. package/lib/types/builtin/async/ai-runtime/runtime/ChatBotButton/index.d.ts +0 -5
  265. package/lib/types/builtin/async/ai-runtime/runtime/Runtime/index.d.ts +0 -5
  266. package/lib/types/builtin/async/ai-runtime/runtime-components/AutoForm/index.d.ts +0 -7
  267. package/lib/types/builtin/async/ai-runtime/runtime-components/ChatOutput/MessageErrorView.d.ts +0 -4
  268. package/lib/types/builtin/async/ai-runtime/runtime-components/ChatOutput/MessageItemView.d.ts +0 -12
  269. package/lib/types/builtin/async/ai-runtime/runtime-components/ChatOutput/MessageMetadataRenderer.d.ts +0 -4
  270. package/lib/types/builtin/async/ai-runtime/runtime-components/ChatOutput/MessageSuggestedQuestions.d.ts +0 -7
  271. package/lib/types/builtin/async/ai-runtime/runtime-components/ChatOutput/ReferenceLinks.d.ts +0 -4
  272. package/lib/types/builtin/async/ai-runtime/runtime-components/ChatOutput/index.d.ts +0 -4
  273. package/lib/types/builtin/async/ai-runtime/runtime-components/GoogleSearch/GoogleSearchRelatedQuestionsView.d.ts +0 -4
  274. package/lib/types/builtin/async/ai-runtime/runtime-components/GoogleSearch/GoogleSearchSourcesView.d.ts +0 -2
  275. package/lib/types/builtin/async/ai-runtime/runtime-components/ImagesView/index.d.ts +0 -2
  276. package/lib/types/builtin/async/ai-runtime/runtime-components/MarkdownView/index.d.ts +0 -5
  277. package/lib/types/builtin/async/ai-runtime/runtime-components/OpeningQuestionsView/index.d.ts +0 -2
  278. package/lib/types/builtin/async/ai-runtime/runtime-components/OutputFieldView/type.d.ts +0 -5
  279. package/lib/types/builtin/async/ai-runtime/runtime-components/PhotoGallery/index.d.ts +0 -3
  280. package/lib/types/builtin/async/ai-runtime/runtime-components/PhotoGalleryItem/index.d.ts +0 -1
  281. package/lib/types/builtin/async/ai-runtime/runtime-components/ReferencedLinksView/index.d.ts +0 -2
  282. package/lib/types/builtin/async/ai-runtime/runtime-components/ShareView/index.d.ts +0 -2
  283. package/lib/types/builtin/async/ai-runtime/runtime-components/SimpleChat/BackgroundImage.d.ts +0 -1
  284. package/lib/types/builtin/async/ai-runtime/runtime-components/SimpleChat/DrawerOpenCloseIcon.d.ts +0 -4
  285. package/lib/types/builtin/async/ai-runtime/runtime-components/SimpleChat/InputsView.d.ts +0 -2
  286. package/lib/types/builtin/async/ai-runtime/runtime-components/SimpleChat/MessageView.d.ts +0 -9
  287. package/lib/types/builtin/async/ai-runtime/runtime-components/SimpleChat/MessagesView.d.ts +0 -2
  288. package/lib/types/builtin/async/ai-runtime/runtime-components/SimpleChat/OpeningMessageView.d.ts +0 -4
  289. package/lib/types/builtin/async/ai-runtime/runtime-components/SimpleChat/UserMessageView.d.ts +0 -1
  290. package/lib/types/builtin/async/ai-runtime/runtime-components/SimpleChat/index.d.ts +0 -16
  291. package/lib/types/builtin/async/ai-runtime/runtime-components/SimpleOutput/index.d.ts +0 -1
  292. package/lib/types/builtin/async/ai-runtime/runtime-components/SimplePage/index.d.ts +0 -6
  293. package/lib/types/builtin/async/ai-runtime/runtime-components/SuggestedQuestionsView/index.d.ts +0 -4
  294. package/lib/types/builtin/async/ai-runtime/runtime-components/V0/Input.d.ts +0 -7
  295. package/lib/types/builtin/async/ai-runtime/runtime-components/V0/Output.d.ts +0 -1
  296. package/lib/types/builtin/async/ai-runtime/runtime-components/V0/Page.d.ts +0 -1
  297. package/lib/types/builtin/async/ai-runtime/runtime-components/V0/components/CodePreview.d.ts +0 -20
  298. package/lib/types/builtin/async/ai-runtime/runtime-components/V0/components/ConfirmDialog.d.ts +0 -5
  299. package/lib/types/builtin/async/ai-runtime/runtime-components/V0/components/Loading.d.ts +0 -3
  300. package/lib/types/builtin/async/ai-runtime/runtime-components/V0/components/PropertiesSetting.d.ts +0 -5
  301. package/lib/types/builtin/async/ai-runtime/runtime-components/V0/components/TransparentTooltip.d.ts +0 -3
  302. package/lib/types/builtin/async/ai-runtime/runtime-components/V0/components/UserQuestion.d.ts +0 -3
  303. package/lib/types/builtin/async/ai-runtime/runtime-components/V0/contexts/V0Runtime.d.ts +0 -17
  304. package/lib/types/builtin/async/ai-runtime/runtime-components/V0/index.d.ts +0 -3
  305. package/lib/types/builtin/async/ai-runtime/runtime-components/V0/utils.d.ts +0 -7
  306. package/lib/types/builtin/async/ai-runtime/state/agent.d.ts +0 -12
  307. package/lib/types/builtin/async/ai-runtime/state/runtime.d.ts +0 -14
  308. package/lib/types/builtin/async/ai-runtime/state/session.d.ts +0 -60
  309. package/lib/types/builtin/async/ai-runtime/utils/agent-inputs.d.ts +0 -5
  310. package/lib/types/builtin/async/ai-runtime/utils/download-image.d.ts +0 -4
  311. package/lib/types/builtin/async/ai-runtime/utils/fonts.d.ts +0 -5
  312. package/lib/types/builtin/async/ai-runtime/utils/map-right.d.ts +0 -1
  313. package/lib/types/builtin/async/ai-runtime/utils/runtime-output-schema.d.ts +0 -3
  314. package/lib/types/builtin/async/ai-runtime/utils/zustand.d.ts +0 -2
  315. package/lib/types/builtin/components.d.ts +0 -1
  316. /package/lib/cjs/builtin/{async/ai-runtime/utils → components/LanguageField}/languages.js +0 -0
  317. /package/lib/esm/builtin/{async/ai-runtime/utils → components/LanguageField}/languages.js +0 -0
  318. /package/lib/types/builtin/{async/ai-runtime/components/AgentInputField/LanguageField.d.ts → components/LanguageField/index.d.ts} +0 -0
  319. /package/lib/types/builtin/{async/ai-runtime/utils → components/LanguageField}/languages.d.ts +0 -0
@@ -1,210 +0,0 @@
1
- export declare const translations: {
2
- en: {
3
- by: string;
4
- socialShare: {
5
- title: string;
6
- shareToX: string;
7
- shareToTelegram: string;
8
- shareToReddit: string;
9
- shareToWeibo: string;
10
- shareToFacebook: string;
11
- shareToLinkedin: string;
12
- copyLink: string;
13
- shareToCommunity: string;
14
- };
15
- photoWall: {
16
- dialog: {
17
- title: string;
18
- prompt: string;
19
- metadata: string;
20
- author: string;
21
- time: string;
22
- };
23
- };
24
- questionPlaceholder: string;
25
- parameters: string;
26
- parametersTitle: string;
27
- parametersSetting: string;
28
- clearSession: string;
29
- generate: string;
30
- startChat: string;
31
- collections: string;
32
- collection: string;
33
- collectionName: string;
34
- document: string;
35
- rename: string;
36
- delete: string;
37
- confirmDelete: string;
38
- confirm: string;
39
- noData: string;
40
- createObject: string;
41
- title: string;
42
- titlePlaceholder: string;
43
- content: string;
44
- contentPlaceholder: string;
45
- cancel: string;
46
- save: string;
47
- saved: string;
48
- edit: string;
49
- chat: string;
50
- subscribeNow: string;
51
- subscribe: string;
52
- subscribed: string;
53
- requireNewSubscription: string;
54
- requireNewSubscriptionFooter: string;
55
- thanksForSubscription: string;
56
- requireLogin: string;
57
- thanksForLogin: string;
58
- loginNow: string;
59
- clickTheButton: string;
60
- cleanSessionTip: string;
61
- poweredBy: string;
62
- selectPromptToStart: string;
63
- history: string;
64
- unnamed: string;
65
- newObject: string;
66
- editObject: string;
67
- name: string;
68
- description: string;
69
- create: string;
70
- back: string;
71
- unauthorized: string;
72
- unauthorizedDescription: string;
73
- login: string;
74
- copy: string;
75
- copied: string;
76
- copyToClipboard: string;
77
- saveToNoteTip: string;
78
- saveToNote: string;
79
- savedToNote: string;
80
- uploadFile: string;
81
- submit: string;
82
- send: string;
83
- session: string;
84
- loadMore: string;
85
- v0: {
86
- title: string;
87
- description: string;
88
- noData: string;
89
- deleteSessionTitle: string;
90
- deleteSessionTip: string;
91
- propertiesSetting: string;
92
- propertiesSettingTip: string;
93
- cannotSetPropertiesTip: string;
94
- codePreview: string;
95
- codePreviewTip: string;
96
- hideSlider: string;
97
- showSlider: string;
98
- retryTip: string;
99
- retry: string;
100
- errorCodeTip: string;
101
- };
102
- settings: string;
103
- setup: string;
104
- docLink: string;
105
- };
106
- zh: {
107
- by: string;
108
- socialShare: {
109
- title: string;
110
- shareToX: string;
111
- shareToTelegram: string;
112
- shareToReddit: string;
113
- shareToWeibo: string;
114
- shareToFacebook: string;
115
- shareToLinkedin: string;
116
- copyLink: string;
117
- shareToCommunity: string;
118
- };
119
- photoWall: {
120
- dialog: {
121
- title: string;
122
- prompt: string;
123
- metadata: string;
124
- author: string;
125
- time: string;
126
- };
127
- };
128
- questionPlaceholder: string;
129
- parameters: string;
130
- parametersTitle: string;
131
- parametersSetting: string;
132
- clearSession: string;
133
- generate: string;
134
- startChat: string;
135
- collections: string;
136
- collection: string;
137
- collectionName: string;
138
- document: string;
139
- rename: string;
140
- delete: string;
141
- confirmDelete: string;
142
- confirm: string;
143
- noData: string;
144
- createObject: string;
145
- title: string;
146
- titlePlaceholder: string;
147
- content: string;
148
- contentPlaceholder: string;
149
- cancel: string;
150
- save: string;
151
- saved: string;
152
- edit: string;
153
- chat: string;
154
- subscribeNow: string;
155
- subscribe: string;
156
- subscribed: string;
157
- requireNewSubscription: string;
158
- requireNewSubscriptionFooter: string;
159
- thanksForSubscription: string;
160
- requireLogin: string;
161
- thanksForLogin: string;
162
- loginNow: string;
163
- clickTheButton: string;
164
- cleanSessionTip: string;
165
- poweredBy: string;
166
- selectPromptToStart: string;
167
- history: string;
168
- unnamed: string;
169
- newObject: string;
170
- editObject: string;
171
- name: string;
172
- description: string;
173
- create: string;
174
- back: string;
175
- unauthorized: string;
176
- unauthorizedDescription: string;
177
- login: string;
178
- copy: string;
179
- copied: string;
180
- copyToClipboard: string;
181
- saveToNoteTip: string;
182
- saveToNote: string;
183
- savedToNote: string;
184
- uploadFile: string;
185
- submit: string;
186
- send: string;
187
- session: string;
188
- loadMore: string;
189
- v0: {
190
- title: string;
191
- description: string;
192
- noData: string;
193
- deleteSessionTitle: string;
194
- deleteSessionTip: string;
195
- propertiesSetting: string;
196
- propertiesSettingTip: string;
197
- cannotSetPropertiesTip: string;
198
- codePreview: string;
199
- codePreviewTip: string;
200
- hideSlider: string;
201
- showSlider: string;
202
- retryTip: string;
203
- retry: string;
204
- errorCodeTip: string;
205
- };
206
- settings: string;
207
- setup: string;
208
- docLink: string;
209
- };
210
- };
@@ -1,5 +0,0 @@
1
- export interface ChatBotProps {
2
- aid: string;
3
- working?: boolean;
4
- }
5
- export default function ChatBotButton({ aid, working }: ChatBotProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- export default function Runtime({ blockletDid, aid, working, }: {
2
- blockletDid?: string;
3
- aid?: string;
4
- working?: boolean;
5
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- export default function AutoForm({ submitText, inlineLabel, autoFillLastForm, submitInQuestionField, chatMode, }: {
2
- submitText?: string;
3
- inlineLabel?: boolean;
4
- autoFillLastForm?: boolean;
5
- submitInQuestionField?: boolean;
6
- chatMode?: boolean;
7
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- export default function MessageErrorView({ error, sx }: {
2
- error: any;
3
- sx?: any;
4
- }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,12 +0,0 @@
1
- import { StackProps } from '@mui/material';
2
- import React, { ReactNode } from 'react';
3
- import { MessageItem } from '../../state/session';
4
- declare const MessageItemView: React.MemoExoticComponent<({ message, hideAvatar, ...props }: {
5
- message: MessageItem;
6
- hideAvatar?: boolean;
7
- } & StackProps) => import("react/jsx-runtime").JSX.Element>;
8
- export default MessageItemView;
9
- export declare function MessageItemWrapper({ hideAvatar, agentMessage, ...props }: {
10
- hideAvatar?: boolean;
11
- agentMessage?: ReactNode;
12
- } & StackProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { RuntimeOutputVariablesSchema } from '@blocklet/ai-runtime/types';
2
- export default function MessageMetadataRenderer({ object }: {
3
- object: RuntimeOutputVariablesSchema;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- import { RuntimeOutputVariable, RuntimeOutputVariablesSchema } from '@blocklet/ai-runtime/types';
2
- import { TypographyProps } from '@mui/material';
3
- export default function MessageSuggestedQuestions({ dataSource, onClick, }: {
4
- dataSource: RuntimeOutputVariablesSchema[RuntimeOutputVariable.suggestedQuestions];
5
- onClick?: (item: NonNullable<typeof dataSource>[number]) => void;
6
- }): import("react/jsx-runtime").JSX.Element | null;
7
- export declare function MessageSuggestedQuestion({ ...props }: TypographyProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { RuntimeOutputVariablesSchema } from '@blocklet/ai-runtime/types';
2
- export default function ReferenceLinks({ links }: {
3
- links: RuntimeOutputVariablesSchema['$reference.links'];
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- export default function ChatOutput({ hideAvatar, renderType, }: {
2
- hideAvatar: boolean;
3
- renderType?: 'parameters' | 'result';
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { OutputFieldViewProps } from '../OutputFieldView/type';
2
- export default function GoogleSearchRelatedView({ output, outputValue, onlyLastMessage, }: OutputFieldViewProps & {
3
- onlyLastMessage?: boolean;
4
- }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,2 +0,0 @@
1
- import { OutputFieldViewProps } from '../OutputFieldView/type';
2
- export default function GoogleSearchSourcesView({ output, outputValue }: OutputFieldViewProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,2 +0,0 @@
1
- import { OutputFieldViewProps } from '../OutputFieldView/type';
2
- export default function ImagesView({ output, outputValue }: OutputFieldViewProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,5 +0,0 @@
1
- import { OutputFieldViewProps } from '../OutputFieldView/type';
2
- export default function MarkdownView({ output, outputValue, fontSize, writing, }: OutputFieldViewProps & {
3
- fontSize?: string | number;
4
- writing?: boolean;
5
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { OutputFieldViewProps } from '../OutputFieldView/type';
2
- export default function OpeningQuestionsView({ output }: OutputFieldViewProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,5 +0,0 @@
1
- import { OutputVariable } from '@blocklet/ai-runtime/types';
2
- export interface OutputFieldViewProps {
3
- output: OutputVariable;
4
- outputValue?: any;
5
- }
@@ -1,3 +0,0 @@
1
- export default function PhotoGallery({ resultTitle }: {
2
- resultTitle?: string;
3
- }): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export default function PhotoGalleryItem(): import("react/jsx-runtime").JSX.Element[];
@@ -1,2 +0,0 @@
1
- import { OutputFieldViewProps } from '../OutputFieldView/type';
2
- export default function SuggestedQuestionsView({ output, outputValue }: OutputFieldViewProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,2 +0,0 @@
1
- import { OutputFieldViewProps } from '../OutputFieldView/type';
2
- export default function ShareView({ output }: OutputFieldViewProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1 +0,0 @@
1
- export default function BackgroundImage(): import("react/jsx-runtime").JSX.Element | null;
@@ -1,4 +0,0 @@
1
- import { StackProps } from '@mui/material';
2
- export default function DrawerOpenCloseIcon({ arrowDirection, ...props }: StackProps & {
3
- arrowDirection?: 'up' | 'down';
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { StackProps } from '@mui/material';
2
- export default function InputsView({ ...props }: StackProps): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +0,0 @@
1
- import { BoxProps } from '@mui/material';
2
- import { MessageItem } from '../../state/session';
3
- declare const MessageView: import("react").MemoExoticComponent<({ message }: {
4
- message: MessageItem;
5
- }) => import("react/jsx-runtime").JSX.Element | null>;
6
- export default MessageView;
7
- export declare function MessageBodyContainer({ messageRole, ...props }: {
8
- messageRole?: 'assistant' | 'user';
9
- } & BoxProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { StackProps } from '@mui/material';
2
- export default function MessagesView({ ...props }: StackProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- declare const OpeningMessageView: import("react").MemoExoticComponent<({ isMessagesEmpty }: {
2
- isMessagesEmpty?: boolean;
3
- }) => import("react/jsx-runtime").JSX.Element | null>;
4
- export default OpeningMessageView;
@@ -1 +0,0 @@
1
- export default function UserMessageView(): import("react/jsx-runtime").JSX.Element | import("react/jsx-runtime").JSX.Element[] | undefined;
@@ -1,16 +0,0 @@
1
- import { ComponentProps } from 'react';
2
- import ScrollView from '../../components/ScrollView';
3
- import { ComponentPreferencesBase } from '../../contexts/ComponentPreferences';
4
- export interface SimpleChatPreferences extends ComponentPreferencesBase {
5
- divider?: boolean;
6
- hideUserInputs?: boolean;
7
- hideAgentAvatar?: boolean;
8
- backgroundImage?: {
9
- url?: string;
10
- width?: number;
11
- height?: number;
12
- };
13
- }
14
- export default function SimpleChat({ scrollViewProps, ...preferences }: {
15
- scrollViewProps?: ComponentProps<typeof ScrollView>;
16
- } & SimpleChatPreferences): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export default function SimpleOutput(): import("react/jsx-runtime").JSX.Element | null;
@@ -1,6 +0,0 @@
1
- import { ComponentPreferencesBase } from '../../contexts/ComponentPreferences';
2
- export interface SimplePagePreferences extends ComponentPreferencesBase {
3
- }
4
- export default function SimplePage({ resultTitle, ...preferences }: {
5
- resultTitle?: string;
6
- } & SimplePagePreferences): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { OutputFieldViewProps } from '../OutputFieldView/type';
2
- export default function SuggestedQuestionsView({ output, outputValue, onlyLastMessage, }: OutputFieldViewProps & {
3
- onlyLastMessage?: boolean;
4
- }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,7 +0,0 @@
1
- export default function V0Input({ submitText, inlineLabel, autoFillLastForm, submitInQuestionField, chatMode, }: {
2
- submitText?: string;
3
- inlineLabel?: boolean;
4
- autoFillLastForm?: boolean;
5
- submitInQuestionField?: boolean;
6
- chatMode?: boolean;
7
- }): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export default function V0Output(): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export default function Page(): import("react/jsx-runtime").JSX.Element;
@@ -1,20 +0,0 @@
1
- import { BoxProps } from '@mui/material';
2
- import { MessageItem } from '../../../state/session';
3
- export default function CodePreview({ componentId, code, propertiesValue, message, ...restProps }: {
4
- componentId?: string;
5
- code: string | undefined;
6
- propertiesValue?: any;
7
- message?: MessageItem | undefined;
8
- } & BoxProps): import("react/jsx-runtime").JSX.Element | null;
9
- export declare const CodePreviewMemo: import("react").MemoExoticComponent<typeof CodePreview>;
10
- export declare function CodeRenderByMessage({ zoom, message, minHeight, sx, propertiesValueMap, }: {
11
- zoom?: number;
12
- message: MessageItem | undefined;
13
- minHeight?: number;
14
- sx?: any;
15
- propertiesValueMap?: {
16
- [taskId: string]: any;
17
- };
18
- }): import("react/jsx-runtime").JSX.Element;
19
- export declare const CodeRenderByMessageMemo: import("react").MemoExoticComponent<typeof CodeRenderByMessage>;
20
- export declare function getCurrentCodeByTaskId(message: MessageItem | undefined): any;
@@ -1,5 +0,0 @@
1
- import { DialogProps } from '@mui/material';
2
- interface ConfirmDialogProps extends Omit<DialogProps, 'open'> {
3
- }
4
- declare const ConfirmDialog: import("react").ForwardRefExoticComponent<Omit<ConfirmDialogProps, "ref"> & import("react").RefAttributes<unknown>>;
5
- export default ConfirmDialog;
@@ -1,3 +0,0 @@
1
- import { BoxProps } from '@mui/material';
2
- export default function Loading(props: BoxProps): import("react/jsx-runtime").JSX.Element;
3
- export declare function AIRunningLoading(props: BoxProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- import { DialogProps } from '@mui/material';
2
- interface PropertiesSettingProps extends Omit<DialogProps, 'open'> {
3
- }
4
- declare const PropertiesSetting: import("react").ForwardRefExoticComponent<Omit<PropertiesSettingProps, "ref"> & import("react").RefAttributes<unknown>>;
5
- export default PropertiesSetting;
@@ -1,3 +0,0 @@
1
- import { TooltipProps } from '@mui/material';
2
- declare const TransparentTooltip: import("@emotion/styled").StyledComponent<TooltipProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
3
- export default TransparentTooltip;
@@ -1,3 +0,0 @@
1
- export default function UserQuestion({ question }: {
2
- question?: string;
3
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,17 +0,0 @@
1
- import { ReactNode } from 'react';
2
- interface V0RuntimeContext {
3
- setCurrentMessageTaskId: (messageId: string | undefined) => void;
4
- currentMessageTaskId: string | undefined;
5
- propertiesValueMap: {
6
- [taskId: string]: any;
7
- };
8
- setPropertiesValueMap: (valueMap: {
9
- [taskId: string]: any;
10
- }) => void;
11
- isMobile: boolean;
12
- }
13
- export declare function V0RuntimeProvider({ children }: {
14
- children?: ReactNode;
15
- }): import("react/jsx-runtime").JSX.Element;
16
- export declare function useV0RuntimeContext(): V0RuntimeContext;
17
- export {};
@@ -1,3 +0,0 @@
1
- export { default as V0Page } from './Page';
2
- export { default as V0Output } from './Output';
3
- export { default as V0Input } from './Input';
@@ -1,7 +0,0 @@
1
- export declare const getLineClamp: (count: number) => {
2
- display: string;
3
- WebkitLineClamp: number;
4
- WebkitBoxOrient: string;
5
- overflow: string;
6
- textOverflow: string;
7
- };
@@ -1,12 +0,0 @@
1
- import { Agent } from '../api/agent';
2
- export interface AgentState {
3
- loading?: boolean;
4
- agent?: Agent;
5
- error?: Error;
6
- load: () => Promise<void>;
7
- }
8
- export declare function useAgentState({ blockletDid, aid, working, }: {
9
- blockletDid?: string;
10
- aid: string;
11
- working?: boolean;
12
- }): [Agent, AgentState];
@@ -1,14 +0,0 @@
1
- export declare function useRuntimeState(): {
2
- blockletDid: string | undefined;
3
- aid: string;
4
- working: boolean | undefined;
5
- agent: import("../api/agent").Agent;
6
- execute: (options: {
7
- blockletDid?: string;
8
- sessionId?: string;
9
- aid: string;
10
- working?: boolean;
11
- parameters: any;
12
- onResponseStart?: () => void;
13
- }) => Promise<void>;
14
- };
@@ -1,60 +0,0 @@
1
- import { Message } from '../api/message';
2
- import { Session } from '../api/session';
3
- export interface MessageItem extends Message {
4
- loading?: boolean;
5
- }
6
- export interface SessionItemState {
7
- session: Session;
8
- loading?: boolean;
9
- loaded?: boolean;
10
- running?: boolean;
11
- messages?: MessageItem[];
12
- noMoreMessage?: boolean;
13
- messageLoading?: boolean;
14
- error?: Error;
15
- }
16
- export interface SessionState {
17
- loading?: boolean;
18
- loaded?: boolean;
19
- sessions?: Session[];
20
- sessionMap?: {
21
- [sessionId: string]: SessionItemState;
22
- };
23
- currentSessionId?: string;
24
- error?: Error;
25
- reset: () => void;
26
- load: (args?: {
27
- autoSetCurrentSessionId?: boolean;
28
- }) => Promise<void>;
29
- reload: () => Promise<void>;
30
- setCurrentSessionId: (sessionId: string) => void;
31
- createSession: (args?: {
32
- name?: string;
33
- }) => Promise<Session>;
34
- deleteSession: (args?: {
35
- sessionId?: string;
36
- autoSetCurrentSessionId?: boolean;
37
- }) => Promise<void>;
38
- clearSession: (args?: {
39
- sessionId?: string;
40
- }) => Promise<void>;
41
- loadMoreMessages: (args?: {
42
- sessionId?: string;
43
- limit?: number;
44
- }) => Promise<void>;
45
- loadLatestMessagesForAllSessions: () => Promise<void>;
46
- execute: (options: {
47
- blockletDid?: string;
48
- sessionId?: string;
49
- aid: string;
50
- working?: boolean;
51
- parameters: any;
52
- onResponseStart?: () => void;
53
- }) => Promise<void>;
54
- }
55
- export declare const createSessionState: ({ aid }: {
56
- aid: string;
57
- }) => import("zustand").UseBoundStore<import("zustand").StoreApi<import("immer").WritableDraft<SessionState>>>;
58
- export declare function useAutoLoadSessionState(...args: Parameters<SessionState['load']>): void;
59
- export declare function useSessionState<U>(selector: (s: SessionState) => U): U;
60
- export declare function useCurrentSessionState<U>(selector: (s?: SessionItemState) => U): U;
@@ -1,5 +0,0 @@
1
- import { Parameter } from '@blocklet/ai-runtime/types';
2
- export declare const USER_INPUT_PARAMETER_TYPES: NonNullable<Parameter['type']>[];
3
- export declare function isValidInput(input: Parameter): input is Parameter & {
4
- key: string;
5
- };
@@ -1,4 +0,0 @@
1
- export declare function downloadImage({ url }: {
2
- url: string;
3
- }): Promise<HTMLImageElement>;
4
- export declare function convertImageToBlob(image: HTMLImageElement): Promise<Blob>;
@@ -1,5 +0,0 @@
1
- export declare const chineseFonts: {
2
- key: string;
3
- value: string;
4
- link: string;
5
- }[];
@@ -1 +0,0 @@
1
- export default function mapRight<T, R>(array: T[], fn: (value: T, index: number, arr: T[]) => R): R[];
@@ -1,3 +0,0 @@
1
- import { RuntimeOutputVariable, RuntimeOutputVariablesSchema } from '@blocklet/ai-runtime/types';
2
- import { Agent } from '../api/agent';
3
- export declare function getOutputVariableInitialValue<T extends RuntimeOutputVariable>(agent: Agent, output: T): RuntimeOutputVariablesSchema[T] | undefined;
@@ -1,2 +0,0 @@
1
- import { StoreApi, UseBoundStore } from 'zustand';
2
- export declare function createCachedStore<T>(key: string, creator: () => UseBoundStore<StoreApi<T>>): ReturnType<typeof creator>;
@@ -1 +0,0 @@
1
- export { default as LanguageField } from './async/ai-runtime/components/AgentInputField/LanguageField';