@blocklet/pages-kit 0.2.433 → 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.
- package/lib/cjs/builtin/async/ai-runtime.js +17 -0
- package/lib/cjs/builtin/{async/ai-runtime/components/AgentInputField/LanguageField.js → components/LanguageField/index.js} +3 -3
- package/lib/cjs/builtin/{components.js → components/index.js} +1 -1
- package/lib/cjs/components/CustomComponentRenderer/context.js +13 -0
- package/lib/cjs/components/CustomComponentRenderer/index.js +5 -1
- package/lib/cjs/components/CustomComponentRenderer/state.js +20 -6
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/builtin/async/ai-runtime.js +1 -0
- package/lib/esm/builtin/{async/ai-runtime/components/AgentInputField/LanguageField.js → components/LanguageField/index.js} +2 -2
- package/lib/esm/builtin/components/index.js +1 -0
- package/lib/esm/components/CustomComponentRenderer/context.js +9 -0
- package/lib/esm/components/CustomComponentRenderer/index.js +5 -1
- package/lib/esm/components/CustomComponentRenderer/state.js +21 -7
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/types/builtin/async/ai-runtime.d.ts +1 -0
- package/lib/types/builtin/components/index.d.ts +1 -0
- package/lib/types/components/CustomComponentRenderer/context.d.ts +14 -0
- package/lib/types/components/CustomComponentRenderer/index.d.ts +1 -0
- package/lib/types/components/CustomComponentRenderer/state.d.ts +5 -1
- package/lib/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +12 -5
- package/tsconfig.json +1 -1
- package/lib/cjs/builtin/async/ai-runtime/api/agent.js +0 -24
- package/lib/cjs/builtin/async/ai-runtime/api/asset.js +0 -25
- package/lib/cjs/builtin/async/ai-runtime/api/dataset.js +0 -134
- package/lib/cjs/builtin/async/ai-runtime/api/message.js +0 -46
- package/lib/cjs/builtin/async/ai-runtime/api/request.js +0 -74
- package/lib/cjs/builtin/async/ai-runtime/api/secret.js +0 -24
- package/lib/cjs/builtin/async/ai-runtime/api/session.js +0 -137
- package/lib/cjs/builtin/async/ai-runtime/components/ActionButton.js +0 -62
- package/lib/cjs/builtin/async/ai-runtime/components/AgentErrorBoundary.js +0 -34
- package/lib/cjs/builtin/async/ai-runtime/components/AgentInputField/BooleanField.js +0 -21
- package/lib/cjs/builtin/async/ai-runtime/components/AgentInputField/NumberField.js +0 -21
- package/lib/cjs/builtin/async/ai-runtime/components/AgentInputField/RadioField.js +0 -39
- package/lib/cjs/builtin/async/ai-runtime/components/AgentInputField/SelectField.js +0 -24
- package/lib/cjs/builtin/async/ai-runtime/components/AgentInputField/StringField.js +0 -35
- package/lib/cjs/builtin/async/ai-runtime/components/AgentInputField/index.js +0 -44
- package/lib/cjs/builtin/async/ai-runtime/components/AgentSettings/AgentSettingsDialog.js +0 -80
- package/lib/cjs/builtin/async/ai-runtime/components/GlobalLoading/index.js +0 -27
- package/lib/cjs/builtin/async/ai-runtime/components/GlobalLoading/state.js +0 -39
- package/lib/cjs/builtin/async/ai-runtime/components/Header/SimpleHeader.js +0 -49
- package/lib/cjs/builtin/async/ai-runtime/components/Layout/SimpleLayout.js +0 -21
- package/lib/cjs/builtin/async/ai-runtime/components/LoadingButton.js +0 -40
- package/lib/cjs/builtin/async/ai-runtime/components/MarkdownRenderer/index.js +0 -146
- package/lib/cjs/builtin/async/ai-runtime/components/MenuButton.js +0 -55
- package/lib/cjs/builtin/async/ai-runtime/components/OutputFieldContainer/index.js +0 -22
- package/lib/cjs/builtin/async/ai-runtime/components/PopperMenuButton/LoadingMenuItem.js +0 -49
- package/lib/cjs/builtin/async/ai-runtime/components/PopperMenuButton/index.js +0 -68
- package/lib/cjs/builtin/async/ai-runtime/components/RuntimeCommonProvider.js +0 -25
- package/lib/cjs/builtin/async/ai-runtime/components/ScrollView.js +0 -92
- package/lib/cjs/builtin/async/ai-runtime/components/ShareActions/Community.js +0 -6
- package/lib/cjs/builtin/async/ai-runtime/components/ShareActions/index.js +0 -255
- package/lib/cjs/builtin/async/ai-runtime/components/SocialShare.js +0 -108
- package/lib/cjs/builtin/async/ai-runtime/components/ThemeProvider.js +0 -191
- package/lib/cjs/builtin/async/ai-runtime/components/UserInfo.js +0 -55
- package/lib/cjs/builtin/async/ai-runtime/constants.js +0 -43
- package/lib/cjs/builtin/async/ai-runtime/contexts/ActiveAgent.js +0 -27
- package/lib/cjs/builtin/async/ai-runtime/contexts/ComponentPreferences.js +0 -31
- package/lib/cjs/builtin/async/ai-runtime/contexts/CurrentAgent.js +0 -34
- package/lib/cjs/builtin/async/ai-runtime/contexts/CurrentMessage.js +0 -18
- package/lib/cjs/builtin/async/ai-runtime/contexts/Identity.js +0 -36
- package/lib/cjs/builtin/async/ai-runtime/contexts/Runtime.js +0 -52
- package/lib/cjs/builtin/async/ai-runtime/error.js +0 -10
- package/lib/cjs/builtin/async/ai-runtime/hooks/use-agent-admin.js +0 -13
- package/lib/cjs/builtin/async/ai-runtime/hooks/use-appearances.js +0 -109
- package/lib/cjs/builtin/async/ai-runtime/hooks/use-header-menu.js +0 -50
- package/lib/cjs/builtin/async/ai-runtime/index.js +0 -83
- package/lib/cjs/builtin/async/ai-runtime/locales/index.js +0 -237
- package/lib/cjs/builtin/async/ai-runtime/runtime/ChatBotButton/index.js +0 -116
- package/lib/cjs/builtin/async/ai-runtime/runtime/Runtime/index.js +0 -48
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/AutoForm/index.js +0 -138
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/ChatOutput/MessageErrorView.js +0 -19
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/ChatOutput/MessageItemView.js +0 -186
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/ChatOutput/MessageMetadataRenderer.js +0 -24
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/ChatOutput/MessageSuggestedQuestions.js +0 -34
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/ChatOutput/ReferenceLinks.js +0 -11
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/ChatOutput/index.js +0 -24
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/GoogleSearch/GoogleSearchRelatedQuestionsView.js +0 -85
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/GoogleSearch/GoogleSearchSourcesView.js +0 -64
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/ImagesView/index.js +0 -30
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/MarkdownView/index.js +0 -13
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/OpeningQuestionsView/index.js +0 -46
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/OutputFieldView/type.js +0 -2
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/PhotoGallery/index.js +0 -65
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/PhotoGalleryItem/index.js +0 -150
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/ReferencedLinksView/index.js +0 -26
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/ShareView/index.js +0 -16
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimpleChat/BackgroundImage.js +0 -38
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimpleChat/DrawerOpenCloseIcon.js +0 -42
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimpleChat/InputsView.js +0 -94
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimpleChat/MessageView.js +0 -79
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimpleChat/MessagesView.js +0 -34
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimpleChat/OpeningMessageView.js +0 -45
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimpleChat/UserMessageView.js +0 -28
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimpleChat/index.js +0 -82
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimpleOutput/index.js +0 -69
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimplePage/index.js +0 -55
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/SuggestedQuestionsView/index.js +0 -54
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/Input.js +0 -189
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/Output.js +0 -252
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/Page.js +0 -300
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/CodePreview.js +0 -158
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/ConfirmDialog.js +0 -60
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/Loading.js +0 -153
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/PropertiesSetting.js +0 -80
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/TransparentTooltip.js +0 -25
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/UserQuestion.js +0 -68
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/contexts/V0Runtime.js +0 -56
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/index.js +0 -12
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/utils.js +0 -13
- package/lib/cjs/builtin/async/ai-runtime/state/agent.js +0 -58
- package/lib/cjs/builtin/async/ai-runtime/state/runtime.js +0 -48
- package/lib/cjs/builtin/async/ai-runtime/state/session.js +0 -415
- package/lib/cjs/builtin/async/ai-runtime/utils/agent-inputs.js +0 -14
- package/lib/cjs/builtin/async/ai-runtime/utils/download-image.js +0 -40
- package/lib/cjs/builtin/async/ai-runtime/utils/fonts.js +0 -35
- package/lib/cjs/builtin/async/ai-runtime/utils/map-right.js +0 -10
- package/lib/cjs/builtin/async/ai-runtime/utils/runtime-output-schema.js +0 -7
- package/lib/cjs/builtin/async/ai-runtime/utils/zustand.js +0 -9
- package/lib/esm/builtin/async/ai-runtime/api/agent.js +0 -21
- package/lib/esm/builtin/async/ai-runtime/api/asset.js +0 -22
- package/lib/esm/builtin/async/ai-runtime/api/dataset.js +0 -121
- package/lib/esm/builtin/async/ai-runtime/api/message.js +0 -42
- package/lib/esm/builtin/async/ai-runtime/api/request.js +0 -68
- package/lib/esm/builtin/async/ai-runtime/api/secret.js +0 -21
- package/lib/esm/builtin/async/ai-runtime/api/session.js +0 -128
- package/lib/esm/builtin/async/ai-runtime/components/ActionButton.js +0 -56
- package/lib/esm/builtin/async/ai-runtime/components/AgentErrorBoundary.js +0 -30
- package/lib/esm/builtin/async/ai-runtime/components/AgentInputField/BooleanField.js +0 -19
- package/lib/esm/builtin/async/ai-runtime/components/AgentInputField/NumberField.js +0 -19
- package/lib/esm/builtin/async/ai-runtime/components/AgentInputField/RadioField.js +0 -37
- package/lib/esm/builtin/async/ai-runtime/components/AgentInputField/SelectField.js +0 -22
- package/lib/esm/builtin/async/ai-runtime/components/AgentInputField/StringField.js +0 -33
- package/lib/esm/builtin/async/ai-runtime/components/AgentInputField/index.js +0 -38
- package/lib/esm/builtin/async/ai-runtime/components/AgentSettings/AgentSettingsDialog.js +0 -76
- package/lib/esm/builtin/async/ai-runtime/components/GlobalLoading/index.js +0 -22
- package/lib/esm/builtin/async/ai-runtime/components/GlobalLoading/state.js +0 -36
- package/lib/esm/builtin/async/ai-runtime/components/Header/SimpleHeader.js +0 -23
- package/lib/esm/builtin/async/ai-runtime/components/Layout/SimpleLayout.js +0 -18
- package/lib/esm/builtin/async/ai-runtime/components/LoadingButton.js +0 -38
- package/lib/esm/builtin/async/ai-runtime/components/MarkdownRenderer/index.js +0 -118
- package/lib/esm/builtin/async/ai-runtime/components/MenuButton.js +0 -52
- package/lib/esm/builtin/async/ai-runtime/components/OutputFieldContainer/index.js +0 -19
- package/lib/esm/builtin/async/ai-runtime/components/PopperMenuButton/LoadingMenuItem.js +0 -46
- package/lib/esm/builtin/async/ai-runtime/components/PopperMenuButton/index.js +0 -42
- package/lib/esm/builtin/async/ai-runtime/components/RuntimeCommonProvider.js +0 -18
- package/lib/esm/builtin/async/ai-runtime/components/ScrollView.js +0 -63
- package/lib/esm/builtin/async/ai-runtime/components/ShareActions/Community.js +0 -4
- package/lib/esm/builtin/async/ai-runtime/components/ShareActions/index.js +0 -226
- package/lib/esm/builtin/async/ai-runtime/components/SocialShare.js +0 -100
- package/lib/esm/builtin/async/ai-runtime/components/ThemeProvider.js +0 -185
- package/lib/esm/builtin/async/ai-runtime/components/UserInfo.js +0 -47
- package/lib/esm/builtin/async/ai-runtime/constants.js +0 -39
- package/lib/esm/builtin/async/ai-runtime/contexts/ActiveAgent.js +0 -23
- package/lib/esm/builtin/async/ai-runtime/contexts/ComponentPreferences.js +0 -24
- package/lib/esm/builtin/async/ai-runtime/contexts/CurrentAgent.js +0 -30
- package/lib/esm/builtin/async/ai-runtime/contexts/CurrentMessage.js +0 -14
- package/lib/esm/builtin/async/ai-runtime/contexts/Identity.js +0 -28
- package/lib/esm/builtin/async/ai-runtime/contexts/Runtime.js +0 -22
- package/lib/esm/builtin/async/ai-runtime/error.js +0 -6
- package/lib/esm/builtin/async/ai-runtime/hooks/use-agent-admin.js +0 -10
- package/lib/esm/builtin/async/ai-runtime/hooks/use-appearances.js +0 -103
- package/lib/esm/builtin/async/ai-runtime/hooks/use-header-menu.js +0 -44
- package/lib/esm/builtin/async/ai-runtime/index.js +0 -37
- package/lib/esm/builtin/async/ai-runtime/locales/index.js +0 -234
- package/lib/esm/builtin/async/ai-runtime/runtime/ChatBotButton/index.js +0 -87
- package/lib/esm/builtin/async/ai-runtime/runtime/Runtime/index.js +0 -19
- package/lib/esm/builtin/async/ai-runtime/runtime-components/AutoForm/index.js +0 -132
- package/lib/esm/builtin/async/ai-runtime/runtime-components/ChatOutput/MessageErrorView.js +0 -13
- package/lib/esm/builtin/async/ai-runtime/runtime-components/ChatOutput/MessageItemView.js +0 -157
- package/lib/esm/builtin/async/ai-runtime/runtime-components/ChatOutput/MessageMetadataRenderer.js +0 -18
- package/lib/esm/builtin/async/ai-runtime/runtime-components/ChatOutput/MessageSuggestedQuestions.js +0 -30
- package/lib/esm/builtin/async/ai-runtime/runtime-components/ChatOutput/ReferenceLinks.js +0 -8
- package/lib/esm/builtin/async/ai-runtime/runtime-components/ChatOutput/index.js +0 -18
- package/lib/esm/builtin/async/ai-runtime/runtime-components/GoogleSearch/GoogleSearchRelatedQuestionsView.js +0 -56
- package/lib/esm/builtin/async/ai-runtime/runtime-components/GoogleSearch/GoogleSearchSourcesView.js +0 -58
- package/lib/esm/builtin/async/ai-runtime/runtime-components/ImagesView/index.js +0 -24
- package/lib/esm/builtin/async/ai-runtime/runtime-components/MarkdownView/index.js +0 -7
- package/lib/esm/builtin/async/ai-runtime/runtime-components/OpeningQuestionsView/index.js +0 -40
- package/lib/esm/builtin/async/ai-runtime/runtime-components/OutputFieldView/type.js +0 -1
- package/lib/esm/builtin/async/ai-runtime/runtime-components/PhotoGallery/index.js +0 -59
- package/lib/esm/builtin/async/ai-runtime/runtime-components/PhotoGalleryItem/index.js +0 -144
- package/lib/esm/builtin/async/ai-runtime/runtime-components/ReferencedLinksView/index.js +0 -20
- package/lib/esm/builtin/async/ai-runtime/runtime-components/ShareView/index.js +0 -10
- package/lib/esm/builtin/async/ai-runtime/runtime-components/SimpleChat/BackgroundImage.js +0 -35
- package/lib/esm/builtin/async/ai-runtime/runtime-components/SimpleChat/DrawerOpenCloseIcon.js +0 -39
- package/lib/esm/builtin/async/ai-runtime/runtime-components/SimpleChat/InputsView.js +0 -65
- package/lib/esm/builtin/async/ai-runtime/runtime-components/SimpleChat/MessageView.js +0 -50
- package/lib/esm/builtin/async/ai-runtime/runtime-components/SimpleChat/MessagesView.js +0 -28
- package/lib/esm/builtin/async/ai-runtime/runtime-components/SimpleChat/OpeningMessageView.js +0 -40
- package/lib/esm/builtin/async/ai-runtime/runtime-components/SimpleChat/UserMessageView.js +0 -22
- package/lib/esm/builtin/async/ai-runtime/runtime-components/SimpleChat/index.js +0 -53
- package/lib/esm/builtin/async/ai-runtime/runtime-components/SimpleOutput/index.js +0 -40
- package/lib/esm/builtin/async/ai-runtime/runtime-components/SimplePage/index.js +0 -49
- package/lib/esm/builtin/async/ai-runtime/runtime-components/SuggestedQuestionsView/index.js +0 -48
- package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/Input.js +0 -183
- package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/Output.js +0 -246
- package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/Page.js +0 -294
- package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/CodePreview.js +0 -149
- package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/ConfirmDialog.js +0 -55
- package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/Loading.js +0 -146
- package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/PropertiesSetting.js +0 -75
- package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/TransparentTooltip.js +0 -23
- package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/UserQuestion.js +0 -42
- package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/contexts/V0Runtime.js +0 -52
- package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/index.js +0 -3
- package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/utils.js +0 -9
- package/lib/esm/builtin/async/ai-runtime/state/agent.js +0 -55
- package/lib/esm/builtin/async/ai-runtime/state/runtime.js +0 -45
- package/lib/esm/builtin/async/ai-runtime/state/session.js +0 -408
- package/lib/esm/builtin/async/ai-runtime/utils/agent-inputs.js +0 -10
- package/lib/esm/builtin/async/ai-runtime/utils/download-image.js +0 -36
- package/lib/esm/builtin/async/ai-runtime/utils/fonts.js +0 -32
- package/lib/esm/builtin/async/ai-runtime/utils/map-right.js +0 -7
- package/lib/esm/builtin/async/ai-runtime/utils/runtime-output-schema.js +0 -4
- package/lib/esm/builtin/async/ai-runtime/utils/zustand.js +0 -6
- package/lib/esm/builtin/components.js +0 -1
- package/lib/types/builtin/async/ai-runtime/api/agent.d.ts +0 -51
- package/lib/types/builtin/async/ai-runtime/api/asset.d.ts +0 -16
- package/lib/types/builtin/async/ai-runtime/api/dataset.d.ts +0 -39
- package/lib/types/builtin/async/ai-runtime/api/message.d.ts +0 -35
- package/lib/types/builtin/async/ai-runtime/api/request.d.ts +0 -12
- package/lib/types/builtin/async/ai-runtime/api/secret.d.ts +0 -12
- package/lib/types/builtin/async/ai-runtime/api/session.d.ts +0 -61
- package/lib/types/builtin/async/ai-runtime/components/ActionButton.d.ts +0 -14
- package/lib/types/builtin/async/ai-runtime/components/AgentErrorBoundary.d.ts +0 -7
- package/lib/types/builtin/async/ai-runtime/components/AgentInputField/BooleanField.d.ts +0 -8
- package/lib/types/builtin/async/ai-runtime/components/AgentInputField/NumberField.d.ts +0 -8
- package/lib/types/builtin/async/ai-runtime/components/AgentInputField/RadioField.d.ts +0 -8
- package/lib/types/builtin/async/ai-runtime/components/AgentInputField/SelectField.d.ts +0 -8
- package/lib/types/builtin/async/ai-runtime/components/AgentInputField/StringField.d.ts +0 -8
- package/lib/types/builtin/async/ai-runtime/components/AgentInputField/index.d.ts +0 -7
- package/lib/types/builtin/async/ai-runtime/components/AgentSettings/AgentSettingsDialog.d.ts +0 -10
- package/lib/types/builtin/async/ai-runtime/components/GlobalLoading/index.d.ts +0 -3
- package/lib/types/builtin/async/ai-runtime/components/GlobalLoading/state.d.ts +0 -10
- package/lib/types/builtin/async/ai-runtime/components/Header/SimpleHeader.d.ts +0 -5
- package/lib/types/builtin/async/ai-runtime/components/Layout/SimpleLayout.d.ts +0 -2
- package/lib/types/builtin/async/ai-runtime/components/LoadingButton.d.ts +0 -3
- package/lib/types/builtin/async/ai-runtime/components/MarkdownRenderer/index.d.ts +0 -2
- package/lib/types/builtin/async/ai-runtime/components/MenuButton.d.ts +0 -10
- package/lib/types/builtin/async/ai-runtime/components/OutputFieldContainer/index.d.ts +0 -5
- package/lib/types/builtin/async/ai-runtime/components/PopperMenuButton/LoadingMenuItem.d.ts +0 -5
- package/lib/types/builtin/async/ai-runtime/components/PopperMenuButton/index.d.ts +0 -6
- package/lib/types/builtin/async/ai-runtime/components/RuntimeCommonProvider.d.ts +0 -7
- package/lib/types/builtin/async/ai-runtime/components/ScrollView.d.ts +0 -10
- package/lib/types/builtin/async/ai-runtime/components/ShareActions/Community.d.ts +0 -4
- package/lib/types/builtin/async/ai-runtime/components/ShareActions/index.d.ts +0 -2
- package/lib/types/builtin/async/ai-runtime/components/SocialShare.d.ts +0 -20
- package/lib/types/builtin/async/ai-runtime/components/ThemeProvider.d.ts +0 -4
- package/lib/types/builtin/async/ai-runtime/components/UserInfo.d.ts +0 -18
- package/lib/types/builtin/async/ai-runtime/constants.d.ts +0 -21
- package/lib/types/builtin/async/ai-runtime/contexts/ActiveAgent.d.ts +0 -9
- package/lib/types/builtin/async/ai-runtime/contexts/ComponentPreferences.d.ts +0 -11
- package/lib/types/builtin/async/ai-runtime/contexts/CurrentAgent.d.ts +0 -16
- package/lib/types/builtin/async/ai-runtime/contexts/CurrentMessage.d.ts +0 -15
- package/lib/types/builtin/async/ai-runtime/contexts/Identity.d.ts +0 -16
- package/lib/types/builtin/async/ai-runtime/contexts/Runtime.d.ts +0 -4
- package/lib/types/builtin/async/ai-runtime/error.d.ts +0 -4
- package/lib/types/builtin/async/ai-runtime/hooks/use-agent-admin.d.ts +0 -2
- package/lib/types/builtin/async/ai-runtime/hooks/use-appearances.d.ts +0 -78
- package/lib/types/builtin/async/ai-runtime/hooks/use-header-menu.d.ts +0 -1
- package/lib/types/builtin/async/ai-runtime/index.d.ts +0 -36
- package/lib/types/builtin/async/ai-runtime/locales/index.d.ts +0 -210
- package/lib/types/builtin/async/ai-runtime/runtime/ChatBotButton/index.d.ts +0 -5
- package/lib/types/builtin/async/ai-runtime/runtime/Runtime/index.d.ts +0 -5
- package/lib/types/builtin/async/ai-runtime/runtime-components/AutoForm/index.d.ts +0 -7
- package/lib/types/builtin/async/ai-runtime/runtime-components/ChatOutput/MessageErrorView.d.ts +0 -4
- package/lib/types/builtin/async/ai-runtime/runtime-components/ChatOutput/MessageItemView.d.ts +0 -12
- package/lib/types/builtin/async/ai-runtime/runtime-components/ChatOutput/MessageMetadataRenderer.d.ts +0 -4
- package/lib/types/builtin/async/ai-runtime/runtime-components/ChatOutput/MessageSuggestedQuestions.d.ts +0 -7
- package/lib/types/builtin/async/ai-runtime/runtime-components/ChatOutput/ReferenceLinks.d.ts +0 -4
- package/lib/types/builtin/async/ai-runtime/runtime-components/ChatOutput/index.d.ts +0 -4
- package/lib/types/builtin/async/ai-runtime/runtime-components/GoogleSearch/GoogleSearchRelatedQuestionsView.d.ts +0 -4
- package/lib/types/builtin/async/ai-runtime/runtime-components/GoogleSearch/GoogleSearchSourcesView.d.ts +0 -2
- package/lib/types/builtin/async/ai-runtime/runtime-components/ImagesView/index.d.ts +0 -2
- package/lib/types/builtin/async/ai-runtime/runtime-components/MarkdownView/index.d.ts +0 -5
- package/lib/types/builtin/async/ai-runtime/runtime-components/OpeningQuestionsView/index.d.ts +0 -2
- package/lib/types/builtin/async/ai-runtime/runtime-components/OutputFieldView/type.d.ts +0 -5
- package/lib/types/builtin/async/ai-runtime/runtime-components/PhotoGallery/index.d.ts +0 -3
- package/lib/types/builtin/async/ai-runtime/runtime-components/PhotoGalleryItem/index.d.ts +0 -1
- package/lib/types/builtin/async/ai-runtime/runtime-components/ReferencedLinksView/index.d.ts +0 -2
- package/lib/types/builtin/async/ai-runtime/runtime-components/ShareView/index.d.ts +0 -2
- package/lib/types/builtin/async/ai-runtime/runtime-components/SimpleChat/BackgroundImage.d.ts +0 -1
- package/lib/types/builtin/async/ai-runtime/runtime-components/SimpleChat/DrawerOpenCloseIcon.d.ts +0 -4
- package/lib/types/builtin/async/ai-runtime/runtime-components/SimpleChat/InputsView.d.ts +0 -2
- package/lib/types/builtin/async/ai-runtime/runtime-components/SimpleChat/MessageView.d.ts +0 -9
- package/lib/types/builtin/async/ai-runtime/runtime-components/SimpleChat/MessagesView.d.ts +0 -2
- package/lib/types/builtin/async/ai-runtime/runtime-components/SimpleChat/OpeningMessageView.d.ts +0 -4
- package/lib/types/builtin/async/ai-runtime/runtime-components/SimpleChat/UserMessageView.d.ts +0 -1
- package/lib/types/builtin/async/ai-runtime/runtime-components/SimpleChat/index.d.ts +0 -16
- package/lib/types/builtin/async/ai-runtime/runtime-components/SimpleOutput/index.d.ts +0 -1
- package/lib/types/builtin/async/ai-runtime/runtime-components/SimplePage/index.d.ts +0 -6
- package/lib/types/builtin/async/ai-runtime/runtime-components/SuggestedQuestionsView/index.d.ts +0 -4
- package/lib/types/builtin/async/ai-runtime/runtime-components/V0/Input.d.ts +0 -7
- package/lib/types/builtin/async/ai-runtime/runtime-components/V0/Output.d.ts +0 -1
- package/lib/types/builtin/async/ai-runtime/runtime-components/V0/Page.d.ts +0 -1
- package/lib/types/builtin/async/ai-runtime/runtime-components/V0/components/CodePreview.d.ts +0 -20
- package/lib/types/builtin/async/ai-runtime/runtime-components/V0/components/ConfirmDialog.d.ts +0 -5
- package/lib/types/builtin/async/ai-runtime/runtime-components/V0/components/Loading.d.ts +0 -3
- package/lib/types/builtin/async/ai-runtime/runtime-components/V0/components/PropertiesSetting.d.ts +0 -5
- package/lib/types/builtin/async/ai-runtime/runtime-components/V0/components/TransparentTooltip.d.ts +0 -3
- package/lib/types/builtin/async/ai-runtime/runtime-components/V0/components/UserQuestion.d.ts +0 -3
- package/lib/types/builtin/async/ai-runtime/runtime-components/V0/contexts/V0Runtime.d.ts +0 -17
- package/lib/types/builtin/async/ai-runtime/runtime-components/V0/index.d.ts +0 -3
- package/lib/types/builtin/async/ai-runtime/runtime-components/V0/utils.d.ts +0 -7
- package/lib/types/builtin/async/ai-runtime/state/agent.d.ts +0 -12
- package/lib/types/builtin/async/ai-runtime/state/runtime.d.ts +0 -14
- package/lib/types/builtin/async/ai-runtime/state/session.d.ts +0 -60
- package/lib/types/builtin/async/ai-runtime/utils/agent-inputs.d.ts +0 -5
- package/lib/types/builtin/async/ai-runtime/utils/download-image.d.ts +0 -4
- package/lib/types/builtin/async/ai-runtime/utils/fonts.d.ts +0 -5
- package/lib/types/builtin/async/ai-runtime/utils/map-right.d.ts +0 -1
- package/lib/types/builtin/async/ai-runtime/utils/runtime-output-schema.d.ts +0 -3
- package/lib/types/builtin/async/ai-runtime/utils/zustand.d.ts +0 -2
- package/lib/types/builtin/components.d.ts +0 -1
- /package/lib/cjs/builtin/{async/ai-runtime/utils → components/LanguageField}/languages.js +0 -0
- /package/lib/esm/builtin/{async/ai-runtime/utils → components/LanguageField}/languages.js +0 -0
- /package/lib/types/builtin/{async/ai-runtime/components/AgentInputField/LanguageField.d.ts → components/LanguageField/index.d.ts} +0 -0
- /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;
|
package/lib/types/builtin/async/ai-runtime/components/AgentSettings/AgentSettingsDialog.d.ts
DELETED
|
@@ -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,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,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,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,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,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,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';
|