@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.
- 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,210 +0,0 @@
|
|
|
1
|
-
export declare const translations: {
|
|
2
|
-
en: {
|
|
3
|
-
by: string;
|
|
4
|
-
socialShare: {
|
|
5
|
-
title: string;
|
|
6
|
-
shareToX: string;
|
|
7
|
-
shareToTelegram: string;
|
|
8
|
-
shareToReddit: string;
|
|
9
|
-
shareToWeibo: string;
|
|
10
|
-
shareToFacebook: string;
|
|
11
|
-
shareToLinkedin: string;
|
|
12
|
-
copyLink: string;
|
|
13
|
-
shareToCommunity: string;
|
|
14
|
-
};
|
|
15
|
-
photoWall: {
|
|
16
|
-
dialog: {
|
|
17
|
-
title: string;
|
|
18
|
-
prompt: string;
|
|
19
|
-
metadata: string;
|
|
20
|
-
author: string;
|
|
21
|
-
time: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
questionPlaceholder: string;
|
|
25
|
-
parameters: string;
|
|
26
|
-
parametersTitle: string;
|
|
27
|
-
parametersSetting: string;
|
|
28
|
-
clearSession: string;
|
|
29
|
-
generate: string;
|
|
30
|
-
startChat: string;
|
|
31
|
-
collections: string;
|
|
32
|
-
collection: string;
|
|
33
|
-
collectionName: string;
|
|
34
|
-
document: string;
|
|
35
|
-
rename: string;
|
|
36
|
-
delete: string;
|
|
37
|
-
confirmDelete: string;
|
|
38
|
-
confirm: string;
|
|
39
|
-
noData: string;
|
|
40
|
-
createObject: string;
|
|
41
|
-
title: string;
|
|
42
|
-
titlePlaceholder: string;
|
|
43
|
-
content: string;
|
|
44
|
-
contentPlaceholder: string;
|
|
45
|
-
cancel: string;
|
|
46
|
-
save: string;
|
|
47
|
-
saved: string;
|
|
48
|
-
edit: string;
|
|
49
|
-
chat: string;
|
|
50
|
-
subscribeNow: string;
|
|
51
|
-
subscribe: string;
|
|
52
|
-
subscribed: string;
|
|
53
|
-
requireNewSubscription: string;
|
|
54
|
-
requireNewSubscriptionFooter: string;
|
|
55
|
-
thanksForSubscription: string;
|
|
56
|
-
requireLogin: string;
|
|
57
|
-
thanksForLogin: string;
|
|
58
|
-
loginNow: string;
|
|
59
|
-
clickTheButton: string;
|
|
60
|
-
cleanSessionTip: string;
|
|
61
|
-
poweredBy: string;
|
|
62
|
-
selectPromptToStart: string;
|
|
63
|
-
history: string;
|
|
64
|
-
unnamed: string;
|
|
65
|
-
newObject: string;
|
|
66
|
-
editObject: string;
|
|
67
|
-
name: string;
|
|
68
|
-
description: string;
|
|
69
|
-
create: string;
|
|
70
|
-
back: string;
|
|
71
|
-
unauthorized: string;
|
|
72
|
-
unauthorizedDescription: string;
|
|
73
|
-
login: string;
|
|
74
|
-
copy: string;
|
|
75
|
-
copied: string;
|
|
76
|
-
copyToClipboard: string;
|
|
77
|
-
saveToNoteTip: string;
|
|
78
|
-
saveToNote: string;
|
|
79
|
-
savedToNote: string;
|
|
80
|
-
uploadFile: string;
|
|
81
|
-
submit: string;
|
|
82
|
-
send: string;
|
|
83
|
-
session: string;
|
|
84
|
-
loadMore: string;
|
|
85
|
-
v0: {
|
|
86
|
-
title: string;
|
|
87
|
-
description: string;
|
|
88
|
-
noData: string;
|
|
89
|
-
deleteSessionTitle: string;
|
|
90
|
-
deleteSessionTip: string;
|
|
91
|
-
propertiesSetting: string;
|
|
92
|
-
propertiesSettingTip: string;
|
|
93
|
-
cannotSetPropertiesTip: string;
|
|
94
|
-
codePreview: string;
|
|
95
|
-
codePreviewTip: string;
|
|
96
|
-
hideSlider: string;
|
|
97
|
-
showSlider: string;
|
|
98
|
-
retryTip: string;
|
|
99
|
-
retry: string;
|
|
100
|
-
errorCodeTip: string;
|
|
101
|
-
};
|
|
102
|
-
settings: string;
|
|
103
|
-
setup: string;
|
|
104
|
-
docLink: string;
|
|
105
|
-
};
|
|
106
|
-
zh: {
|
|
107
|
-
by: string;
|
|
108
|
-
socialShare: {
|
|
109
|
-
title: string;
|
|
110
|
-
shareToX: string;
|
|
111
|
-
shareToTelegram: string;
|
|
112
|
-
shareToReddit: string;
|
|
113
|
-
shareToWeibo: string;
|
|
114
|
-
shareToFacebook: string;
|
|
115
|
-
shareToLinkedin: string;
|
|
116
|
-
copyLink: string;
|
|
117
|
-
shareToCommunity: string;
|
|
118
|
-
};
|
|
119
|
-
photoWall: {
|
|
120
|
-
dialog: {
|
|
121
|
-
title: string;
|
|
122
|
-
prompt: string;
|
|
123
|
-
metadata: string;
|
|
124
|
-
author: string;
|
|
125
|
-
time: string;
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
questionPlaceholder: string;
|
|
129
|
-
parameters: string;
|
|
130
|
-
parametersTitle: string;
|
|
131
|
-
parametersSetting: string;
|
|
132
|
-
clearSession: string;
|
|
133
|
-
generate: string;
|
|
134
|
-
startChat: string;
|
|
135
|
-
collections: string;
|
|
136
|
-
collection: string;
|
|
137
|
-
collectionName: string;
|
|
138
|
-
document: string;
|
|
139
|
-
rename: string;
|
|
140
|
-
delete: string;
|
|
141
|
-
confirmDelete: string;
|
|
142
|
-
confirm: string;
|
|
143
|
-
noData: string;
|
|
144
|
-
createObject: string;
|
|
145
|
-
title: string;
|
|
146
|
-
titlePlaceholder: string;
|
|
147
|
-
content: string;
|
|
148
|
-
contentPlaceholder: string;
|
|
149
|
-
cancel: string;
|
|
150
|
-
save: string;
|
|
151
|
-
saved: string;
|
|
152
|
-
edit: string;
|
|
153
|
-
chat: string;
|
|
154
|
-
subscribeNow: string;
|
|
155
|
-
subscribe: string;
|
|
156
|
-
subscribed: string;
|
|
157
|
-
requireNewSubscription: string;
|
|
158
|
-
requireNewSubscriptionFooter: string;
|
|
159
|
-
thanksForSubscription: string;
|
|
160
|
-
requireLogin: string;
|
|
161
|
-
thanksForLogin: string;
|
|
162
|
-
loginNow: string;
|
|
163
|
-
clickTheButton: string;
|
|
164
|
-
cleanSessionTip: string;
|
|
165
|
-
poweredBy: string;
|
|
166
|
-
selectPromptToStart: string;
|
|
167
|
-
history: string;
|
|
168
|
-
unnamed: string;
|
|
169
|
-
newObject: string;
|
|
170
|
-
editObject: string;
|
|
171
|
-
name: string;
|
|
172
|
-
description: string;
|
|
173
|
-
create: string;
|
|
174
|
-
back: string;
|
|
175
|
-
unauthorized: string;
|
|
176
|
-
unauthorizedDescription: string;
|
|
177
|
-
login: string;
|
|
178
|
-
copy: string;
|
|
179
|
-
copied: string;
|
|
180
|
-
copyToClipboard: string;
|
|
181
|
-
saveToNoteTip: string;
|
|
182
|
-
saveToNote: string;
|
|
183
|
-
savedToNote: string;
|
|
184
|
-
uploadFile: string;
|
|
185
|
-
submit: string;
|
|
186
|
-
send: string;
|
|
187
|
-
session: string;
|
|
188
|
-
loadMore: string;
|
|
189
|
-
v0: {
|
|
190
|
-
title: string;
|
|
191
|
-
description: string;
|
|
192
|
-
noData: string;
|
|
193
|
-
deleteSessionTitle: string;
|
|
194
|
-
deleteSessionTip: string;
|
|
195
|
-
propertiesSetting: string;
|
|
196
|
-
propertiesSettingTip: string;
|
|
197
|
-
cannotSetPropertiesTip: string;
|
|
198
|
-
codePreview: string;
|
|
199
|
-
codePreviewTip: string;
|
|
200
|
-
hideSlider: string;
|
|
201
|
-
showSlider: string;
|
|
202
|
-
retryTip: string;
|
|
203
|
-
retry: string;
|
|
204
|
-
errorCodeTip: string;
|
|
205
|
-
};
|
|
206
|
-
settings: string;
|
|
207
|
-
setup: string;
|
|
208
|
-
docLink: string;
|
|
209
|
-
};
|
|
210
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export default function AutoForm({ submitText, inlineLabel, autoFillLastForm, submitInQuestionField, chatMode, }: {
|
|
2
|
-
submitText?: string;
|
|
3
|
-
inlineLabel?: boolean;
|
|
4
|
-
autoFillLastForm?: boolean;
|
|
5
|
-
submitInQuestionField?: boolean;
|
|
6
|
-
chatMode?: boolean;
|
|
7
|
-
}): import("react/jsx-runtime").JSX.Element;
|
package/lib/types/builtin/async/ai-runtime/runtime-components/ChatOutput/MessageItemView.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { StackProps } from '@mui/material';
|
|
2
|
-
import React, { ReactNode } from 'react';
|
|
3
|
-
import { MessageItem } from '../../state/session';
|
|
4
|
-
declare const MessageItemView: React.MemoExoticComponent<({ message, hideAvatar, ...props }: {
|
|
5
|
-
message: MessageItem;
|
|
6
|
-
hideAvatar?: boolean;
|
|
7
|
-
} & StackProps) => import("react/jsx-runtime").JSX.Element>;
|
|
8
|
-
export default MessageItemView;
|
|
9
|
-
export declare function MessageItemWrapper({ hideAvatar, agentMessage, ...props }: {
|
|
10
|
-
hideAvatar?: boolean;
|
|
11
|
-
agentMessage?: ReactNode;
|
|
12
|
-
} & StackProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { RuntimeOutputVariable, RuntimeOutputVariablesSchema } from '@blocklet/ai-runtime/types';
|
|
2
|
-
import { TypographyProps } from '@mui/material';
|
|
3
|
-
export default function MessageSuggestedQuestions({ dataSource, onClick, }: {
|
|
4
|
-
dataSource: RuntimeOutputVariablesSchema[RuntimeOutputVariable.suggestedQuestions];
|
|
5
|
-
onClick?: (item: NonNullable<typeof dataSource>[number]) => void;
|
|
6
|
-
}): import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
-
export declare function MessageSuggestedQuestion({ ...props }: TypographyProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function PhotoGalleryItem(): import("react/jsx-runtime").JSX.Element[];
|
package/lib/types/builtin/async/ai-runtime/runtime-components/SimpleChat/BackgroundImage.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function BackgroundImage(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BoxProps } from '@mui/material';
|
|
2
|
-
import { MessageItem } from '../../state/session';
|
|
3
|
-
declare const MessageView: import("react").MemoExoticComponent<({ message }: {
|
|
4
|
-
message: MessageItem;
|
|
5
|
-
}) => import("react/jsx-runtime").JSX.Element | null>;
|
|
6
|
-
export default MessageView;
|
|
7
|
-
export declare function MessageBodyContainer({ messageRole, ...props }: {
|
|
8
|
-
messageRole?: 'assistant' | 'user';
|
|
9
|
-
} & BoxProps): import("react/jsx-runtime").JSX.Element;
|
package/lib/types/builtin/async/ai-runtime/runtime-components/SimpleChat/UserMessageView.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function UserMessageView(): import("react/jsx-runtime").JSX.Element | import("react/jsx-runtime").JSX.Element[] | undefined;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from 'react';
|
|
2
|
-
import ScrollView from '../../components/ScrollView';
|
|
3
|
-
import { ComponentPreferencesBase } from '../../contexts/ComponentPreferences';
|
|
4
|
-
export interface SimpleChatPreferences extends ComponentPreferencesBase {
|
|
5
|
-
divider?: boolean;
|
|
6
|
-
hideUserInputs?: boolean;
|
|
7
|
-
hideAgentAvatar?: boolean;
|
|
8
|
-
backgroundImage?: {
|
|
9
|
-
url?: string;
|
|
10
|
-
width?: number;
|
|
11
|
-
height?: number;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
export default function SimpleChat({ scrollViewProps, ...preferences }: {
|
|
15
|
-
scrollViewProps?: ComponentProps<typeof ScrollView>;
|
|
16
|
-
} & SimpleChatPreferences): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function SimpleOutput(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ComponentPreferencesBase } from '../../contexts/ComponentPreferences';
|
|
2
|
-
export interface SimplePagePreferences extends ComponentPreferencesBase {
|
|
3
|
-
}
|
|
4
|
-
export default function SimplePage({ resultTitle, ...preferences }: {
|
|
5
|
-
resultTitle?: string;
|
|
6
|
-
} & SimplePagePreferences): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export default function V0Input({ submitText, inlineLabel, autoFillLastForm, submitInQuestionField, chatMode, }: {
|
|
2
|
-
submitText?: string;
|
|
3
|
-
inlineLabel?: boolean;
|
|
4
|
-
autoFillLastForm?: boolean;
|
|
5
|
-
submitInQuestionField?: boolean;
|
|
6
|
-
chatMode?: boolean;
|
|
7
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function V0Output(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function Page(): import("react/jsx-runtime").JSX.Element;
|
package/lib/types/builtin/async/ai-runtime/runtime-components/V0/components/CodePreview.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BoxProps } from '@mui/material';
|
|
2
|
-
import { MessageItem } from '../../../state/session';
|
|
3
|
-
export default function CodePreview({ componentId, code, propertiesValue, message, ...restProps }: {
|
|
4
|
-
componentId?: string;
|
|
5
|
-
code: string | undefined;
|
|
6
|
-
propertiesValue?: any;
|
|
7
|
-
message?: MessageItem | undefined;
|
|
8
|
-
} & BoxProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
-
export declare const CodePreviewMemo: import("react").MemoExoticComponent<typeof CodePreview>;
|
|
10
|
-
export declare function CodeRenderByMessage({ zoom, message, minHeight, sx, propertiesValueMap, }: {
|
|
11
|
-
zoom?: number;
|
|
12
|
-
message: MessageItem | undefined;
|
|
13
|
-
minHeight?: number;
|
|
14
|
-
sx?: any;
|
|
15
|
-
propertiesValueMap?: {
|
|
16
|
-
[taskId: string]: any;
|
|
17
|
-
};
|
|
18
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export declare const CodeRenderByMessageMemo: import("react").MemoExoticComponent<typeof CodeRenderByMessage>;
|
|
20
|
-
export declare function getCurrentCodeByTaskId(message: MessageItem | undefined): any;
|
package/lib/types/builtin/async/ai-runtime/runtime-components/V0/components/ConfirmDialog.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { DialogProps } from '@mui/material';
|
|
2
|
-
interface ConfirmDialogProps extends Omit<DialogProps, 'open'> {
|
|
3
|
-
}
|
|
4
|
-
declare const ConfirmDialog: import("react").ForwardRefExoticComponent<Omit<ConfirmDialogProps, "ref"> & import("react").RefAttributes<unknown>>;
|
|
5
|
-
export default ConfirmDialog;
|
package/lib/types/builtin/async/ai-runtime/runtime-components/V0/components/PropertiesSetting.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { DialogProps } from '@mui/material';
|
|
2
|
-
interface PropertiesSettingProps extends Omit<DialogProps, 'open'> {
|
|
3
|
-
}
|
|
4
|
-
declare const PropertiesSetting: import("react").ForwardRefExoticComponent<Omit<PropertiesSettingProps, "ref"> & import("react").RefAttributes<unknown>>;
|
|
5
|
-
export default PropertiesSetting;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
interface V0RuntimeContext {
|
|
3
|
-
setCurrentMessageTaskId: (messageId: string | undefined) => void;
|
|
4
|
-
currentMessageTaskId: string | undefined;
|
|
5
|
-
propertiesValueMap: {
|
|
6
|
-
[taskId: string]: any;
|
|
7
|
-
};
|
|
8
|
-
setPropertiesValueMap: (valueMap: {
|
|
9
|
-
[taskId: string]: any;
|
|
10
|
-
}) => void;
|
|
11
|
-
isMobile: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare function V0RuntimeProvider({ children }: {
|
|
14
|
-
children?: ReactNode;
|
|
15
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export declare function useV0RuntimeContext(): V0RuntimeContext;
|
|
17
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Agent } from '../api/agent';
|
|
2
|
-
export interface AgentState {
|
|
3
|
-
loading?: boolean;
|
|
4
|
-
agent?: Agent;
|
|
5
|
-
error?: Error;
|
|
6
|
-
load: () => Promise<void>;
|
|
7
|
-
}
|
|
8
|
-
export declare function useAgentState({ blockletDid, aid, working, }: {
|
|
9
|
-
blockletDid?: string;
|
|
10
|
-
aid: string;
|
|
11
|
-
working?: boolean;
|
|
12
|
-
}): [Agent, AgentState];
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare function useRuntimeState(): {
|
|
2
|
-
blockletDid: string | undefined;
|
|
3
|
-
aid: string;
|
|
4
|
-
working: boolean | undefined;
|
|
5
|
-
agent: import("../api/agent").Agent;
|
|
6
|
-
execute: (options: {
|
|
7
|
-
blockletDid?: string;
|
|
8
|
-
sessionId?: string;
|
|
9
|
-
aid: string;
|
|
10
|
-
working?: boolean;
|
|
11
|
-
parameters: any;
|
|
12
|
-
onResponseStart?: () => void;
|
|
13
|
-
}) => Promise<void>;
|
|
14
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { Message } from '../api/message';
|
|
2
|
-
import { Session } from '../api/session';
|
|
3
|
-
export interface MessageItem extends Message {
|
|
4
|
-
loading?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface SessionItemState {
|
|
7
|
-
session: Session;
|
|
8
|
-
loading?: boolean;
|
|
9
|
-
loaded?: boolean;
|
|
10
|
-
running?: boolean;
|
|
11
|
-
messages?: MessageItem[];
|
|
12
|
-
noMoreMessage?: boolean;
|
|
13
|
-
messageLoading?: boolean;
|
|
14
|
-
error?: Error;
|
|
15
|
-
}
|
|
16
|
-
export interface SessionState {
|
|
17
|
-
loading?: boolean;
|
|
18
|
-
loaded?: boolean;
|
|
19
|
-
sessions?: Session[];
|
|
20
|
-
sessionMap?: {
|
|
21
|
-
[sessionId: string]: SessionItemState;
|
|
22
|
-
};
|
|
23
|
-
currentSessionId?: string;
|
|
24
|
-
error?: Error;
|
|
25
|
-
reset: () => void;
|
|
26
|
-
load: (args?: {
|
|
27
|
-
autoSetCurrentSessionId?: boolean;
|
|
28
|
-
}) => Promise<void>;
|
|
29
|
-
reload: () => Promise<void>;
|
|
30
|
-
setCurrentSessionId: (sessionId: string) => void;
|
|
31
|
-
createSession: (args?: {
|
|
32
|
-
name?: string;
|
|
33
|
-
}) => Promise<Session>;
|
|
34
|
-
deleteSession: (args?: {
|
|
35
|
-
sessionId?: string;
|
|
36
|
-
autoSetCurrentSessionId?: boolean;
|
|
37
|
-
}) => Promise<void>;
|
|
38
|
-
clearSession: (args?: {
|
|
39
|
-
sessionId?: string;
|
|
40
|
-
}) => Promise<void>;
|
|
41
|
-
loadMoreMessages: (args?: {
|
|
42
|
-
sessionId?: string;
|
|
43
|
-
limit?: number;
|
|
44
|
-
}) => Promise<void>;
|
|
45
|
-
loadLatestMessagesForAllSessions: () => Promise<void>;
|
|
46
|
-
execute: (options: {
|
|
47
|
-
blockletDid?: string;
|
|
48
|
-
sessionId?: string;
|
|
49
|
-
aid: string;
|
|
50
|
-
working?: boolean;
|
|
51
|
-
parameters: any;
|
|
52
|
-
onResponseStart?: () => void;
|
|
53
|
-
}) => Promise<void>;
|
|
54
|
-
}
|
|
55
|
-
export declare const createSessionState: ({ aid }: {
|
|
56
|
-
aid: string;
|
|
57
|
-
}) => import("zustand").UseBoundStore<import("zustand").StoreApi<import("immer").WritableDraft<SessionState>>>;
|
|
58
|
-
export declare function useAutoLoadSessionState(...args: Parameters<SessionState['load']>): void;
|
|
59
|
-
export declare function useSessionState<U>(selector: (s: SessionState) => U): U;
|
|
60
|
-
export declare function useCurrentSessionState<U>(selector: (s?: SessionItemState) => U): U;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function mapRight<T, R>(array: T[], fn: (value: T, index: number, arr: T[]) => R): R[];
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { RuntimeOutputVariable, RuntimeOutputVariablesSchema } from '@blocklet/ai-runtime/types';
|
|
2
|
-
import { Agent } from '../api/agent';
|
|
3
|
-
export declare function getOutputVariableInitialValue<T extends RuntimeOutputVariable>(agent: Agent, output: T): RuntimeOutputVariablesSchema[T] | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as LanguageField } from './async/ai-runtime/components/AgentInputField/LanguageField';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/lib/types/builtin/{async/ai-runtime/utils → components/LanguageField}/languages.d.ts
RENAMED
|
File without changes
|