@blocklet/pages-kit 0.2.432 → 0.2.434

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,12 +0,0 @@
1
- export interface CreateOrUpdateSecretsInput {
2
- secrets: {
3
- projectId: string;
4
- targetProjectId: string;
5
- targetAgentId: string;
6
- targetInputKey: string;
7
- secret: string;
8
- }[];
9
- }
10
- export declare function createSecrets({ input }: {
11
- input: CreateOrUpdateSecretsInput;
12
- }): Promise<{}>;
@@ -1,61 +0,0 @@
1
- import type { ReadableStream } from 'node:stream/web';
2
- import { RunAssistantResponse } from '@blocklet/ai-runtime/types';
3
- export interface Session {
4
- id: string;
5
- createdAt: string;
6
- updatedAt: string;
7
- name?: string;
8
- userId?: string;
9
- projectId: string;
10
- agentId: string;
11
- }
12
- export declare function getSessions({ aid }: {
13
- aid: string;
14
- }): Promise<{
15
- sessions: Session[];
16
- }>;
17
- export declare function getSession({ sessionId }: {
18
- sessionId: string;
19
- }): Promise<{
20
- session: Session;
21
- }>;
22
- export declare function createSession({ aid, name, }: {
23
- aid: string;
24
- name?: string;
25
- }): Promise<{
26
- created: Session;
27
- sessions: Session[];
28
- }>;
29
- export declare function clearSession({ sessionId }: {
30
- sessionId: string;
31
- }): Promise<{}>;
32
- export declare function updateSession({ sessionId, name, }: {
33
- sessionId: string;
34
- name?: string;
35
- }): Promise<{
36
- updated: Session;
37
- sessions: Session[];
38
- }>;
39
- export declare function deleteSession({ sessionId, }: {
40
- sessionId: string;
41
- }): Promise<{
42
- deleted: Session;
43
- sessions: Session[];
44
- }>;
45
- export interface RunAgentInput {
46
- blockletDid?: string;
47
- working?: boolean;
48
- aid: string;
49
- sessionId?: string;
50
- inputs?: {
51
- [key: string]: any;
52
- };
53
- }
54
- export declare function runAgent(input: RunAgentInput & {
55
- responseType?: undefined;
56
- }): Promise<{
57
- [key: string]: any;
58
- }>;
59
- export declare function runAgent(input: RunAgentInput & {
60
- responseType: 'stream';
61
- }): Promise<ReadableStream<RunAssistantResponse>>;
@@ -1,14 +0,0 @@
1
- import { LoadingButtonProps } from '@mui/lab';
2
- import { TooltipProps } from '@mui/material';
3
- import { ReactNode } from 'react';
4
- export default function ActionButton({ tip, tipSucceed, title, titleSucceed, icon, iconSucceed, autoReset, placement, ...props }: {
5
- tip?: ReactNode;
6
- tipSucceed?: ReactNode;
7
- title?: ReactNode;
8
- titleSucceed?: ReactNode;
9
- icon?: ReactNode;
10
- iconSucceed?: ReactNode;
11
- autoReset?: boolean;
12
- placement?: TooltipProps['placement'];
13
- target?: string;
14
- } & Omit<Partial<LoadingButtonProps>, 'title'>): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export default function AgentErrorBoundary({ children }: {
3
- children?: ReactNode;
4
- }): import("react/jsx-runtime").JSX.Element;
5
- export declare function AgentErrorView({ error }: {
6
- error: any;
7
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- import { BooleanParameter } from '@blocklet/ai-runtime/types';
2
- import { TextFieldProps } from '@mui/material';
3
- declare const BooleanField: import("react").ForwardRefExoticComponent<Omit<{
4
- readOnly?: boolean;
5
- parameter?: BooleanParameter;
6
- onChange: (value: boolean) => void;
7
- } & Omit<TextFieldProps, "onChange">, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
8
- export default BooleanField;
@@ -1,8 +0,0 @@
1
- import { NumberParameter } from '@blocklet/ai-runtime/types';
2
- import { TextFieldProps } from '@mui/material';
3
- declare const NumberField: import("react").ForwardRefExoticComponent<Omit<{
4
- readOnly?: boolean;
5
- parameter?: NumberParameter;
6
- onChange: (value: number) => void;
7
- } & Omit<TextFieldProps, "onChange">, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
8
- export default NumberField;
@@ -1,8 +0,0 @@
1
- import { SelectParameter } from '@blocklet/ai-runtime/types';
2
- import { RadioGroupProps } from '@mui/material';
3
- declare const RadioField: import("react").ForwardRefExoticComponent<Omit<{
4
- readOnly?: boolean;
5
- parameter?: SelectParameter;
6
- onChange: (value: string) => void;
7
- } & Omit<RadioGroupProps, "onChange">, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
8
- export default RadioField;
@@ -1,8 +0,0 @@
1
- import { SelectParameter } from '@blocklet/ai-runtime/types';
2
- import { TextFieldProps } from '@mui/material';
3
- declare const SelectField: import("react").ForwardRefExoticComponent<Omit<{
4
- readOnly?: boolean;
5
- parameter?: SelectParameter;
6
- onChange: (value: string) => void;
7
- } & Omit<TextFieldProps, "onChange">, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
8
- export default SelectField;
@@ -1,8 +0,0 @@
1
- import { StringParameter } from '@blocklet/ai-runtime/types';
2
- import { TextFieldProps } from '@mui/material';
3
- declare const StringField: import("react").ForwardRefExoticComponent<Omit<{
4
- readOnly?: boolean;
5
- parameter?: StringParameter;
6
- onChange: (value: string) => void;
7
- } & Omit<TextFieldProps, "onChange">, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
8
- export default StringField;
@@ -1,7 +0,0 @@
1
- import { Parameter } from '@blocklet/ai-runtime/types';
2
- import { TextFieldProps } from '@mui/material';
3
- export default function AgentInputField({ parameter, ...props }: {
4
- readOnly?: boolean;
5
- parameter: Parameter;
6
- onChange: (value: string | number | undefined) => void;
7
- } & Omit<TextFieldProps, 'onChange'>): import("react/jsx-runtime").JSX.Element | null;
@@ -1,10 +0,0 @@
1
- import { DialogProps } from '@mui/material';
2
- export interface SettingsDialogState {
3
- isOpen: boolean;
4
- open: () => void;
5
- onClose: () => void;
6
- }
7
- export declare const settingsDialogState: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<SettingsDialogState>, "setState"> & {
8
- setState(nextStateOrUpdater: SettingsDialogState | Partial<SettingsDialogState> | ((state: import("immer").WritableDraft<SettingsDialogState>) => void), shouldReplace?: boolean | undefined): void;
9
- }>;
10
- export default function AgentSettingsDialog({ ...props }: Omit<DialogProps, 'open'>): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- import { LinearProgressProps } from '@mui/material';
2
- export { globalLoadingState } from './state';
3
- export default function GlobalLoading({ ...props }: LinearProgressProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,10 +0,0 @@
1
- export interface GlobalLoadingState {
2
- loading: boolean;
3
- count: number;
4
- run: <T>(fn: Promise<T> | (() => Promise<T>)) => Promise<T>;
5
- start: () => void;
6
- end: () => void;
7
- }
8
- export declare const globalLoadingState: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<GlobalLoadingState>, "setState"> & {
9
- setState(nextStateOrUpdater: GlobalLoadingState | Partial<GlobalLoadingState> | ((state: import("immer").WritableDraft<GlobalLoadingState>) => void), shouldReplace?: boolean | undefined): void;
10
- }>;
@@ -1,5 +0,0 @@
1
- import { StackProps, TypographyProps } from '@mui/material';
2
- export default function SimpleHeader({ TitleProps, DescriptionProps, ...props }: {
3
- TitleProps?: TypographyProps;
4
- DescriptionProps?: TypographyProps;
5
- } & StackProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { StackProps } from '@mui/material';
2
- export default function SimpleLayout({ ...props }: StackProps): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- import { LoadingButtonProps } from '@mui/lab';
2
- declare const LoadingButton: import("react").ForwardRefExoticComponent<Omit<Partial<LoadingButtonProps>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
3
- export default LoadingButton;
@@ -1,2 +0,0 @@
1
- declare const MarkdownRenderer: import("@emotion/styled").StyledComponent<Readonly<import("react-markdown/lib").Options> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
2
- export default MarkdownRenderer;
@@ -1,10 +0,0 @@
1
- import { IconButtonProps } from '@mui/material';
2
- import React from 'react';
3
- interface Props extends IconButtonProps {
4
- sx?: any;
5
- menus?: React.ReactNode | (() => React.ReactNode);
6
- MenuProps?: any;
7
- children?: React.ReactNode;
8
- }
9
- export default function MenuButton({ sx, menus, children, MenuProps, ...restProps }: Props): import("react/jsx-runtime").JSX.Element;
10
- export {};
@@ -1,5 +0,0 @@
1
- import { OutputVariable } from '@blocklet/ai-runtime/types';
2
- import { StackProps } from '@mui/material';
3
- export default function OutputFieldContainer({ output, ...props }: {
4
- output: OutputVariable;
5
- } & StackProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- import { MenuItemProps } from '@mui/material';
2
- import { ReactNode } from 'react';
3
- export default function LoadingMenuItem({ children, confirmation, ...props }: MenuItemProps & {
4
- confirmation?: ReactNode;
5
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- import { BoxProps, Button, PopperProps } from '@mui/material';
2
- import { ReactNode } from 'react';
3
- export default function PopperMenuButton({ PopperProps, menus, ...props }: {
4
- PopperProps: Omit<PopperProps, 'open'>;
5
- menus?: ReactNode;
6
- } & BoxProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export default function RuntimeCommonProvider({ children }: {
3
- children?: ReactNode;
4
- }): import("react/jsx-runtime").JSX.Element;
5
- export declare function RuntimeLocaleProvider({ children }: {
6
- children?: ReactNode;
7
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,10 +0,0 @@
1
- import { BoxProps } from '@mui/material';
2
- import { ComponentProps } from 'react';
3
- import * as scrollToBottom from 'react-scroll-to-bottom';
4
- declare const Composer: typeof scrollToBottom.default;
5
- export default function ScrollView({ disabled, children, scroll, component, initialScrollBehavior, ...props }: BoxProps & {
6
- disabled?: boolean;
7
- scroll?: 'window';
8
- initialScrollBehavior?: ComponentProps<typeof Composer>['initialScrollBehavior'];
9
- }): string | number | boolean | Iterable<import("react").ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
10
- export {};
@@ -1,4 +0,0 @@
1
- declare const CommunityIcon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
2
- muiName: string;
3
- };
4
- export default CommunityIcon;
@@ -1,2 +0,0 @@
1
- import { StackProps } from '@mui/material';
2
- export default function ShareActions({ ...props }: StackProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,20 +0,0 @@
1
- import { BoxProps, IconButtonProps } from '@mui/material';
2
- interface SocialShareMenuProps extends BoxProps {
3
- url?: string;
4
- content: string;
5
- MenuProps?: any;
6
- disableCopyLink?: boolean;
7
- }
8
- interface SocialShareButtonsProps extends SocialShareMenuProps {
9
- itemSx?: BoxProps['sx'];
10
- onClick?: () => void;
11
- bgFill?: string;
12
- iconFill?: string;
13
- sx?: BoxProps['sx'];
14
- }
15
- export default function SocialShare(props: SocialShareMenuProps & SocialShareButtonsProps & {
16
- type?: 'menu' | 'buttons';
17
- }): import("react/jsx-runtime").JSX.Element;
18
- export declare function SocialShareMenu({ url, content, children, MenuProps, disableCopyLink, ...restProps }: SocialShareMenuProps & IconButtonProps): import("react/jsx-runtime").JSX.Element;
19
- export declare function SocialShareButtons({ url, content, sx, itemSx, onClick, bgFill, iconFill, ...rest }: SocialShareButtonsProps): import("react/jsx-runtime").JSX.Element;
20
- export {};
@@ -1,4 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export default function ThemeProvider({ children }: {
3
- children?: ReactNode;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,18 +0,0 @@
1
- import { StackProps, TypographyProps } from '@mui/material';
2
- import { ReactNode } from 'react';
3
- export default function UserInfo({ avatar, showDID, did, name, time, children, reverse, UserNameProps, ...restProps }: StackProps & {
4
- avatar?: string;
5
- showDID?: boolean;
6
- did?: string;
7
- name?: string;
8
- time?: string;
9
- children?: ReactNode;
10
- reverse?: boolean;
11
- UserNameProps?: TypographyProps;
12
- } & StackProps): import("react/jsx-runtime").JSX.Element;
13
- export declare function UserName({ children, sx, ...restProps }: TypographyProps & {
14
- children: ReactNode;
15
- }): import("react/jsx-runtime").JSX.Element;
16
- export declare function UserTime({ time, ...restProps }: TypographyProps & {
17
- time: string;
18
- }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,21 +0,0 @@
1
- import { OutputVariable } from '@blocklet/ai-runtime/types';
2
- export declare const AI_STUDIO_DID = "z8iZpog7mcgcgBZzTiXJCWESvmnRrQmnd3XBB";
3
- export declare const AI_RUNTIME_DID = "z2qaBP9SahqU2L2YA3ip7NecwKACMByTFuiJ2";
4
- export declare const PAYMENT_KIT_DID = "z2qaCNvKMv5GjouKdcDWexv6WqtHbpNPQDnAk";
5
- export declare const DEFAULT_PAGE_COMPONENT_ID = "ctnxha29uu8cx4xv";
6
- export declare const DEFAULT_INPUT_COMPONENT_ID = "1wwtemqcdio6nqf0";
7
- export declare const DEFAULT_OUTPUT_COMPONENT_ID = "q0ckknkxph4hfwas";
8
- export declare const MARKDOWN_VIEW_ID = "a4oldpoxv7bikvpj";
9
- export declare const SUGGESTED_QUESTIONS_VIEW_ID = "6u8m11ss7fvu8t7i";
10
- export declare const REFERENCED_LINKS_VIEW_ID = "baqmaoccdntqwayc";
11
- export declare const SHARE_VIEW_ID = "jfq3df9z8lkk9not";
12
- export declare const IMAGES_VIEW_ID = "txirtdgx8h2bmo7s";
13
- export declare const OPENING_QUESTIONS_VIEW_ID = "vgsgsvnhud0cq37v";
14
- export declare const DEFAULT_OUTPUT_COMPONENTS: {
15
- [name: string]: {
16
- componentId: string;
17
- };
18
- };
19
- export declare function getDefaultOutputComponent(output: OutputVariable): {
20
- componentId: string;
21
- } | undefined;
@@ -1,9 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export interface ActiveAgentContext {
3
- activeAgentId: string;
4
- setActiveAgentId: (agentId: string) => void;
5
- }
6
- export declare function useActiveAgent(): ActiveAgentContext;
7
- export default function ActiveAgentProvider({ children }: {
8
- children?: ReactNode;
9
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,11 +0,0 @@
1
- import { ComponentType, ReactNode } from 'react';
2
- export interface ComponentPreferencesBase {
3
- hideInputFields?: string[];
4
- autoGenerate?: boolean;
5
- initialInputValues?: Record<string, any>;
6
- customOutputActionsComponent?: ComponentType<{}>;
7
- }
8
- export default function ComponentPreferencesProvider<T extends ComponentPreferencesBase>({ children, ...preferences }: {
9
- children?: ReactNode;
10
- } & T): import("react/jsx-runtime").JSX.Element;
11
- export declare function useComponentPreferences<T>(): (T & ComponentPreferencesBase) | undefined;
@@ -1,16 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { Agent } from '../api/agent';
3
- export interface CurrentAgentState {
4
- aid: string;
5
- }
6
- export default function CurrentAgentProvider({ agentId, children }: {
7
- agentId: string;
8
- children?: ReactNode;
9
- }): import("react/jsx-runtime").JSX.Element;
10
- export declare function useCurrentAgent(args?: {
11
- aid?: string;
12
- agentId?: string;
13
- }): {
14
- aid: string;
15
- agent: Agent;
16
- };
@@ -1,15 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { MessageItem } from '../state/session';
3
- export interface CurrentMessageState {
4
- message: MessageItem;
5
- }
6
- export default function CurrentMessageProvider({ message, children }: {
7
- message: MessageItem;
8
- children?: ReactNode;
9
- }): import("react/jsx-runtime").JSX.Element;
10
- export declare function useCurrentMessage(args?: {
11
- optional?: false;
12
- }): CurrentMessageState;
13
- export declare function useCurrentMessage(args: {
14
- optional: true;
15
- }): CurrentMessageState | undefined;
@@ -1,16 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export interface IdentityContext {
3
- aid: string;
4
- working?: boolean;
5
- blockletDid?: string;
6
- }
7
- export declare function useIdentityContext(): IdentityContext;
8
- export default function IdentityProvider({ blockletDid, aid, working, children, }: {
9
- blockletDid?: string;
10
- aid: string;
11
- working?: boolean;
12
- children?: ReactNode;
13
- }): import("react/jsx-runtime").JSX.Element;
14
- export declare function IdentityProviderFromUrl({ children }: {
15
- children?: ReactNode;
16
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { ComponentProps } from 'react';
2
- import IdentityProvider, { IdentityProviderFromUrl } from './Identity';
3
- export default function RuntimeProvider({ ...props }: ComponentProps<typeof IdentityProvider>): import("react/jsx-runtime").JSX.Element;
4
- export declare function RuntimeProviderFromUrl({ ...props }: ComponentProps<typeof IdentityProviderFromUrl>): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- export declare class CustomError extends Error {
2
- status: string | number;
3
- constructor(status: string | number, message: string);
4
- }
@@ -1,2 +0,0 @@
1
- import { Agent } from '../api/agent';
2
- export declare function useIsAgentAdmin(agent: Agent): boolean;
@@ -1,78 +0,0 @@
1
- export default function useAppearances(args?: {
2
- aid: string;
3
- } | {
4
- agentId: string;
5
- }): {
6
- appearancePage: {
7
- componentId: string;
8
- componentBlockletDid?: string;
9
- componentName?: string;
10
- componentProperties?: {
11
- [key: string]: any;
12
- };
13
- componentProps?: {
14
- [key: string]: any;
15
- };
16
- title?: string;
17
- icon?: string;
18
- };
19
- appearanceInput: {
20
- componentId: string;
21
- componentBlockletDid?: string;
22
- componentName?: string;
23
- componentProperties?: {
24
- [key: string]: any;
25
- };
26
- componentProps?: {
27
- [key: string]: any;
28
- };
29
- title?: string;
30
- icon?: string;
31
- };
32
- appearanceOutput: {
33
- componentId: string;
34
- componentBlockletDid?: string;
35
- componentName?: string;
36
- componentProperties?: {
37
- [key: string]: any;
38
- };
39
- componentProps?: {
40
- [key: string]: any;
41
- };
42
- title?: string;
43
- icon?: string;
44
- };
45
- };
46
- export declare function useProfile(args?: {
47
- aid: string;
48
- } | {
49
- agentId: string;
50
- }): {
51
- avatar: string;
52
- name: string | undefined;
53
- description: string | undefined;
54
- };
55
- export declare function useOpeningMessage(args?: {
56
- aid: string;
57
- } | {
58
- agentId: string;
59
- }): {
60
- agent: import("../api/agent").Agent;
61
- message: string;
62
- profile: {
63
- avatar: string;
64
- name: string | undefined;
65
- description: string | undefined;
66
- };
67
- } | undefined;
68
- export declare function useOpeningQuestions(args?: {
69
- aid: string;
70
- } | {
71
- agentId: string;
72
- }): {
73
- questions: {
74
- id: string;
75
- title?: string;
76
- parameters?: any;
77
- }[];
78
- } | undefined;
@@ -1 +0,0 @@
1
- export declare function useHeaderMenu(): void;
@@ -1,36 +0,0 @@
1
- export { runAgent } from './api/session';
2
- export { default as AgentErrorBoundary } from './components/AgentErrorBoundary';
3
- export * from './components/AgentErrorBoundary';
4
- export * from './contexts/Runtime';
5
- export { default as RuntimeProvider } from './contexts/Runtime';
6
- export * from './contexts/ComponentPreferences';
7
- export { default as ComponentPreferencesProvider } from './contexts/ComponentPreferences';
8
- export * from './contexts/CurrentAgent';
9
- export { default as CurrentAgentProvider } from './contexts/CurrentAgent';
10
- export * from './contexts/CurrentMessage';
11
- export { default as CurrentMessageProvider } from './contexts/CurrentMessage';
12
- export * from './contexts/ActiveAgent';
13
- export { default as ActiveAgentProvider } from './contexts/ActiveAgent';
14
- export { default as useAppearances } from './hooks/use-appearances';
15
- export * from './hooks/use-appearances';
16
- export * from './state/runtime';
17
- export * from './state/session';
18
- export { default as Runtime } from './runtime/Runtime';
19
- export { default as ChatBotButton } from './runtime/ChatBotButton';
20
- export { default as SimplePage } from './runtime-components/SimplePage';
21
- export { default as SimpleChat } from './runtime-components/SimpleChat';
22
- export { default as PhotoGallery } from './runtime-components/PhotoGallery';
23
- export { default as AutoForm } from './runtime-components/AutoForm';
24
- export { default as SimpleOutput } from './runtime-components/SimpleOutput';
25
- export { default as ChatOutput } from './runtime-components/ChatOutput';
26
- export { default as PhotoGalleryItem } from './runtime-components/PhotoGalleryItem';
27
- export { default as SuggestedQuestionsView } from './runtime-components/SuggestedQuestionsView';
28
- export { default as ReferencedLinksView } from './runtime-components/ReferencedLinksView';
29
- export { default as ShareView } from './runtime-components/ShareView';
30
- export { default as OpeningQuestionsView } from './runtime-components/OpeningQuestionsView';
31
- export { default as ImagesView } from './runtime-components/ImagesView';
32
- export { default as GoogleSearchRelatedQuestionsView } from './runtime-components/GoogleSearch/GoogleSearchRelatedQuestionsView';
33
- export { default as GoogleSearchSourcesView } from './runtime-components/GoogleSearch/GoogleSearchSourcesView';
34
- export { default as MarkdownView } from './runtime-components/MarkdownView';
35
- export { default as NFTDisplay } from '@arcblock/ux/lib/NFTDisplay';
36
- export * from './runtime-components/V0';