@stack-spot/ai-chat-widget 1.8.0 → 1.8.1
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/package.json +1 -1
- package/src/views/MessageInput/chat-entry-history.ts +1 -1
- package/dist/AbortedError.d.ts +0 -5
- package/dist/AbortedError.d.ts.map +0 -1
- package/dist/AbortedError.js +0 -7
- package/dist/AbortedError.js.map +0 -1
- package/dist/StackspotAIWidget.d.ts +0 -23
- package/dist/StackspotAIWidget.d.ts.map +0 -1
- package/dist/StackspotAIWidget.js +0 -35
- package/dist/StackspotAIWidget.js.map +0 -1
- package/dist/app-metadata.json +0 -151
- package/dist/chat-interceptors/CustomInputs.d.ts +0 -22
- package/dist/chat-interceptors/CustomInputs.d.ts.map +0 -1
- package/dist/chat-interceptors/CustomInputs.js +0 -71
- package/dist/chat-interceptors/CustomInputs.js.map +0 -1
- package/dist/chat-interceptors/quick-command-questions.d.ts +0 -14
- package/dist/chat-interceptors/quick-command-questions.d.ts.map +0 -1
- package/dist/chat-interceptors/quick-command-questions.js +0 -28
- package/dist/chat-interceptors/quick-command-questions.js.map +0 -1
- package/dist/chat-interceptors/quick-commands.d.ts +0 -17
- package/dist/chat-interceptors/quick-commands.d.ts.map +0 -1
- package/dist/chat-interceptors/quick-commands.js +0 -292
- package/dist/chat-interceptors/quick-commands.js.map +0 -1
- package/dist/chat-interceptors/send-message.d.ts +0 -14
- package/dist/chat-interceptors/send-message.d.ts.map +0 -1
- package/dist/chat-interceptors/send-message.js +0 -96
- package/dist/chat-interceptors/send-message.js.map +0 -1
- package/dist/components/Accordion.d.ts +0 -20
- package/dist/components/Accordion.d.ts.map +0 -1
- package/dist/components/Accordion.js +0 -49
- package/dist/components/Accordion.js.map +0 -1
- package/dist/components/AdaptiveTextArea.d.ts +0 -22
- package/dist/components/AdaptiveTextArea.d.ts.map +0 -1
- package/dist/components/AdaptiveTextArea.js +0 -39
- package/dist/components/AdaptiveTextArea.js.map +0 -1
- package/dist/components/AutoFocus.d.ts +0 -23
- package/dist/components/AutoFocus.d.ts.map +0 -1
- package/dist/components/AutoFocus.js +0 -23
- package/dist/components/AutoFocus.js.map +0 -1
- package/dist/components/Code.d.ts +0 -19
- package/dist/components/Code.d.ts.map +0 -1
- package/dist/components/Code.js +0 -118
- package/dist/components/Code.js.map +0 -1
- package/dist/components/Fading.d.ts +0 -32
- package/dist/components/Fading.d.ts.map +0 -1
- package/dist/components/Fading.js +0 -33
- package/dist/components/Fading.js.map +0 -1
- package/dist/components/FadingOverflow.d.ts +0 -37
- package/dist/components/FadingOverflow.d.ts.map +0 -1
- package/dist/components/FadingOverflow.js +0 -225
- package/dist/components/FadingOverflow.js.map +0 -1
- package/dist/components/FallbackBoundary/ErrorBoundary.d.ts +0 -33
- package/dist/components/FallbackBoundary/ErrorBoundary.d.ts.map +0 -1
- package/dist/components/FallbackBoundary/ErrorBoundary.js +0 -52
- package/dist/components/FallbackBoundary/ErrorBoundary.js.map +0 -1
- package/dist/components/FallbackBoundary/Loading.d.ts +0 -2
- package/dist/components/FallbackBoundary/Loading.d.ts.map +0 -1
- package/dist/components/FallbackBoundary/Loading.js +0 -12
- package/dist/components/FallbackBoundary/Loading.js.map +0 -1
- package/dist/components/FallbackBoundary/index.d.ts +0 -17
- package/dist/components/FallbackBoundary/index.d.ts.map +0 -1
- package/dist/components/FallbackBoundary/index.js +0 -9
- package/dist/components/FallbackBoundary/index.js.map +0 -1
- package/dist/components/HistoryList.d.ts +0 -25
- package/dist/components/HistoryList.d.ts.map +0 -1
- package/dist/components/HistoryList.js +0 -74
- package/dist/components/HistoryList.js.map +0 -1
- package/dist/components/IconInput.d.ts +0 -10
- package/dist/components/IconInput.d.ts.map +0 -1
- package/dist/components/IconInput.js +0 -61
- package/dist/components/IconInput.js.map +0 -1
- package/dist/components/Markdown.d.ts +0 -9
- package/dist/components/Markdown.d.ts.map +0 -1
- package/dist/components/Markdown.js +0 -17
- package/dist/components/Markdown.js.map +0 -1
- package/dist/components/OverlayMenu.d.ts +0 -21
- package/dist/components/OverlayMenu.d.ts.map +0 -1
- package/dist/components/OverlayMenu.js +0 -79
- package/dist/components/OverlayMenu.js.map +0 -1
- package/dist/components/ProgressBar.d.ts +0 -33
- package/dist/components/ProgressBar.d.ts.map +0 -1
- package/dist/components/ProgressBar.js +0 -131
- package/dist/components/ProgressBar.js.map +0 -1
- package/dist/components/QuickStartButton.d.ts +0 -13
- package/dist/components/QuickStartButton.d.ts.map +0 -1
- package/dist/components/QuickStartButton.js +0 -47
- package/dist/components/QuickStartButton.js.map +0 -1
- package/dist/components/RightPanelForm.d.ts +0 -8
- package/dist/components/RightPanelForm.d.ts.map +0 -1
- package/dist/components/RightPanelForm.js +0 -50
- package/dist/components/RightPanelForm.js.map +0 -1
- package/dist/components/RightPanelTabs.d.ts +0 -13
- package/dist/components/RightPanelTabs.d.ts.map +0 -1
- package/dist/components/RightPanelTabs.js +0 -24
- package/dist/components/RightPanelTabs.js.map +0 -1
- package/dist/components/Selector/index.d.ts +0 -24
- package/dist/components/Selector/index.d.ts.map +0 -1
- package/dist/components/Selector/index.js +0 -134
- package/dist/components/Selector/index.js.map +0 -1
- package/dist/components/Selector/styled.d.ts +0 -2
- package/dist/components/Selector/styled.d.ts.map +0 -1
- package/dist/components/Selector/styled.js +0 -153
- package/dist/components/Selector/styled.js.map +0 -1
- package/dist/components/TabManager.d.ts +0 -40
- package/dist/components/TabManager.d.ts.map +0 -1
- package/dist/components/TabManager.js +0 -166
- package/dist/components/TabManager.js.map +0 -1
- package/dist/components/Tooltip/Tooltip.d.ts +0 -37
- package/dist/components/Tooltip/Tooltip.d.ts.map +0 -1
- package/dist/components/Tooltip/Tooltip.js +0 -30
- package/dist/components/Tooltip/Tooltip.js.map +0 -1
- package/dist/components/Tooltip/TooltipAPI.d.ts +0 -29
- package/dist/components/Tooltip/TooltipAPI.d.ts.map +0 -1
- package/dist/components/Tooltip/TooltipAPI.js +0 -107
- package/dist/components/Tooltip/TooltipAPI.js.map +0 -1
- package/dist/components/Tooltip/context.d.ts +0 -5
- package/dist/components/Tooltip/context.d.ts.map +0 -1
- package/dist/components/Tooltip/context.js +0 -18
- package/dist/components/Tooltip/context.js.map +0 -1
- package/dist/components/Tooltip/index.d.ts +0 -3
- package/dist/components/Tooltip/index.d.ts.map +0 -1
- package/dist/components/Tooltip/index.js +0 -3
- package/dist/components/Tooltip/index.js.map +0 -1
- package/dist/components/Tooltip/style.d.ts +0 -4
- package/dist/components/Tooltip/style.d.ts.map +0 -1
- package/dist/components/Tooltip/style.js +0 -22
- package/dist/components/Tooltip/style.js.map +0 -1
- package/dist/components/Tooltip/types.d.ts +0 -27
- package/dist/components/Tooltip/types.d.ts.map +0 -1
- package/dist/components/Tooltip/types.js +0 -2
- package/dist/components/Tooltip/types.js.map +0 -1
- package/dist/components/form/DescribedCheckboxGroup.d.ts +0 -7
- package/dist/components/form/DescribedCheckboxGroup.d.ts.map +0 -1
- package/dist/components/form/DescribedCheckboxGroup.js +0 -27
- package/dist/components/form/DescribedCheckboxGroup.js.map +0 -1
- package/dist/components/form/DescribedRadioGroup.d.ts +0 -7
- package/dist/components/form/DescribedRadioGroup.d.ts.map +0 -1
- package/dist/components/form/DescribedRadioGroup.js +0 -22
- package/dist/components/form/DescribedRadioGroup.js.map +0 -1
- package/dist/components/form/styled.d.ts +0 -2
- package/dist/components/form/styled.d.ts.map +0 -1
- package/dist/components/form/styled.js +0 -42
- package/dist/components/form/styled.js.map +0 -1
- package/dist/components/form/types.d.ts +0 -53
- package/dist/components/form/types.d.ts.map +0 -1
- package/dist/components/form/types.js +0 -2
- package/dist/components/form/types.js.map +0 -1
- package/dist/context/AIWidgetProvider.d.ts +0 -23
- package/dist/context/AIWidgetProvider.d.ts.map +0 -1
- package/dist/context/AIWidgetProvider.js +0 -23
- package/dist/context/AIWidgetProvider.js.map +0 -1
- package/dist/context/hooks.d.ts +0 -69
- package/dist/context/hooks.d.ts.map +0 -1
- package/dist/context/hooks.js +0 -121
- package/dist/context/hooks.js.map +0 -1
- package/dist/features.d.ts +0 -40
- package/dist/features.d.ts.map +0 -1
- package/dist/features.js +0 -18
- package/dist/features.js.map +0 -1
- package/dist/index.d.ts +0 -14
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -12
- package/dist/index.js.map +0 -1
- package/dist/layout.css +0 -137
- package/dist/regex.d.ts +0 -3
- package/dist/regex.d.ts.map +0 -1
- package/dist/regex.js +0 -3
- package/dist/regex.js.map +0 -1
- package/dist/right-panel/DefaultPanel.d.ts +0 -12
- package/dist/right-panel/DefaultPanel.d.ts.map +0 -1
- package/dist/right-panel/DefaultPanel.js +0 -50
- package/dist/right-panel/DefaultPanel.js.map +0 -1
- package/dist/right-panel/RightPanel.d.ts +0 -5
- package/dist/right-panel/RightPanel.d.ts.map +0 -1
- package/dist/right-panel/RightPanel.js +0 -9
- package/dist/right-panel/RightPanel.js.map +0 -1
- package/dist/right-panel/RightPanelProvider.d.ts +0 -28
- package/dist/right-panel/RightPanelProvider.d.ts.map +0 -1
- package/dist/right-panel/RightPanelProvider.js +0 -10
- package/dist/right-panel/RightPanelProvider.js.map +0 -1
- package/dist/right-panel/constants.d.ts +0 -2
- package/dist/right-panel/constants.d.ts.map +0 -1
- package/dist/right-panel/constants.js +0 -2
- package/dist/right-panel/constants.js.map +0 -1
- package/dist/right-panel/hooks.d.ts +0 -19
- package/dist/right-panel/hooks.d.ts.map +0 -1
- package/dist/right-panel/hooks.js +0 -46
- package/dist/right-panel/hooks.js.map +0 -1
- package/dist/state/ChatEntry.d.ts +0 -112
- package/dist/state/ChatEntry.d.ts.map +0 -1
- package/dist/state/ChatEntry.js +0 -59
- package/dist/state/ChatEntry.js.map +0 -1
- package/dist/state/ChatState.d.ts +0 -154
- package/dist/state/ChatState.d.ts.map +0 -1
- package/dist/state/ChatState.js +0 -108
- package/dist/state/ChatState.js.map +0 -1
- package/dist/state/ChatTabsController.d.ts +0 -66
- package/dist/state/ChatTabsController.d.ts.map +0 -1
- package/dist/state/ChatTabsController.js +0 -116
- package/dist/state/ChatTabsController.js.map +0 -1
- package/dist/state/ObservableState.d.ts +0 -24
- package/dist/state/ObservableState.d.ts.map +0 -1
- package/dist/state/ObservableState.js +0 -39
- package/dist/state/ObservableState.js.map +0 -1
- package/dist/state/WidgetState.d.ts +0 -80
- package/dist/state/WidgetState.d.ts.map +0 -1
- package/dist/state/WidgetState.js +0 -68
- package/dist/state/WidgetState.js.map +0 -1
- package/dist/state/types.d.ts +0 -8
- package/dist/state/types.d.ts.map +0 -1
- package/dist/state/types.js +0 -2
- package/dist/state/types.js.map +0 -1
- package/dist/types.d.ts +0 -27
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -2
- package/dist/types.js.map +0 -1
- package/dist/utils/chat.d.ts +0 -12
- package/dist/utils/chat.d.ts.map +0 -1
- package/dist/utils/chat.js +0 -26
- package/dist/utils/chat.js.map +0 -1
- package/dist/utils/date.d.ts +0 -32
- package/dist/utils/date.d.ts.map +0 -1
- package/dist/utils/date.js +0 -66
- package/dist/utils/date.js.map +0 -1
- package/dist/utils/download.d.ts +0 -7
- package/dist/utils/download.d.ts.map +0 -1
- package/dist/utils/download.js +0 -15
- package/dist/utils/download.js.map +0 -1
- package/dist/utils/knowledge-source.d.ts +0 -19
- package/dist/utils/knowledge-source.d.ts.map +0 -1
- package/dist/utils/knowledge-source.js +0 -60
- package/dist/utils/knowledge-source.js.map +0 -1
- package/dist/utils/programming-languages.d.ts +0 -7
- package/dist/utils/programming-languages.d.ts.map +0 -1
- package/dist/utils/programming-languages.js +0 -464
- package/dist/utils/programming-languages.js.map +0 -1
- package/dist/utils/string.d.ts +0 -7
- package/dist/utils/string.d.ts.map +0 -1
- package/dist/utils/string.js +0 -11
- package/dist/utils/string.js.map +0 -1
- package/dist/utils/url.d.ts +0 -2
- package/dist/utils/url.d.ts.map +0 -1
- package/dist/utils/url.js +0 -8
- package/dist/utils/url.js.map +0 -1
- package/dist/views/Agents/AgentDescription.d.ts +0 -9
- package/dist/views/Agents/AgentDescription.d.ts.map +0 -1
- package/dist/views/Agents/AgentDescription.js +0 -21
- package/dist/views/Agents/AgentDescription.js.map +0 -1
- package/dist/views/Agents/AgentsPanel.d.ts +0 -5
- package/dist/views/Agents/AgentsPanel.d.ts.map +0 -1
- package/dist/views/Agents/AgentsPanel.js +0 -19
- package/dist/views/Agents/AgentsPanel.js.map +0 -1
- package/dist/views/Agents/AgentsTab.d.ts +0 -5
- package/dist/views/Agents/AgentsTab.d.ts.map +0 -1
- package/dist/views/Agents/AgentsTab.js +0 -43
- package/dist/views/Agents/AgentsTab.js.map +0 -1
- package/dist/views/Agents/dictionary.d.ts +0 -2
- package/dist/views/Agents/dictionary.d.ts.map +0 -1
- package/dist/views/Agents/dictionary.js +0 -35
- package/dist/views/Agents/dictionary.js.map +0 -1
- package/dist/views/Agents/index.d.ts +0 -5
- package/dist/views/Agents/index.d.ts.map +0 -1
- package/dist/views/Agents/index.js +0 -21
- package/dist/views/Agents/index.js.map +0 -1
- package/dist/views/Agents/styled.d.ts +0 -3
- package/dist/views/Agents/styled.d.ts.map +0 -1
- package/dist/views/Agents/styled.js +0 -58
- package/dist/views/Agents/styled.js.map +0 -1
- package/dist/views/Chat/AgentInfo.d.ts +0 -10
- package/dist/views/Chat/AgentInfo.d.ts.map +0 -1
- package/dist/views/Chat/AgentInfo.js +0 -10
- package/dist/views/Chat/AgentInfo.js.map +0 -1
- package/dist/views/Chat/ChatMessage.d.ts +0 -22
- package/dist/views/Chat/ChatMessage.d.ts.map +0 -1
- package/dist/views/Chat/ChatMessage.js +0 -82
- package/dist/views/Chat/ChatMessage.js.map +0 -1
- package/dist/views/Chat/ChatMessages.d.ts +0 -10
- package/dist/views/Chat/ChatMessages.d.ts.map +0 -1
- package/dist/views/Chat/ChatMessages.js +0 -15
- package/dist/views/Chat/ChatMessages.js.map +0 -1
- package/dist/views/Chat/chat-scroll.d.ts +0 -7
- package/dist/views/Chat/chat-scroll.d.ts.map +0 -1
- package/dist/views/Chat/chat-scroll.js +0 -17
- package/dist/views/Chat/chat-scroll.js.map +0 -1
- package/dist/views/Chat/events.d.ts +0 -22
- package/dist/views/Chat/events.d.ts.map +0 -1
- package/dist/views/Chat/events.js +0 -66
- package/dist/views/Chat/events.js.map +0 -1
- package/dist/views/Chat/index.d.ts +0 -12
- package/dist/views/Chat/index.d.ts.map +0 -1
- package/dist/views/Chat/index.js +0 -11
- package/dist/views/Chat/index.js.map +0 -1
- package/dist/views/Chat/styled.d.ts +0 -2
- package/dist/views/Chat/styled.d.ts.map +0 -1
- package/dist/views/Chat/styled.js +0 -186
- package/dist/views/Chat/styled.js.map +0 -1
- package/dist/views/ChatHistory/ChatHistoryPanel.d.ts +0 -5
- package/dist/views/ChatHistory/ChatHistoryPanel.d.ts.map +0 -1
- package/dist/views/ChatHistory/ChatHistoryPanel.js +0 -14
- package/dist/views/ChatHistory/ChatHistoryPanel.js.map +0 -1
- package/dist/views/ChatHistory/HistoryItem.d.ts +0 -8
- package/dist/views/ChatHistory/HistoryItem.d.ts.map +0 -1
- package/dist/views/ChatHistory/HistoryItem.js +0 -130
- package/dist/views/ChatHistory/HistoryItem.js.map +0 -1
- package/dist/views/ChatHistory/dictionary.d.ts +0 -2
- package/dist/views/ChatHistory/dictionary.d.ts.map +0 -1
- package/dist/views/ChatHistory/dictionary.js +0 -19
- package/dist/views/ChatHistory/dictionary.js.map +0 -1
- package/dist/views/ChatHistory/index.d.ts +0 -5
- package/dist/views/ChatHistory/index.d.ts.map +0 -1
- package/dist/views/ChatHistory/index.js +0 -26
- package/dist/views/ChatHistory/index.js.map +0 -1
- package/dist/views/ChatHistory/styled.d.ts +0 -2
- package/dist/views/ChatHistory/styled.d.ts.map +0 -1
- package/dist/views/ChatHistory/styled.js +0 -60
- package/dist/views/ChatHistory/styled.js.map +0 -1
- package/dist/views/ChatHistory/utils.d.ts +0 -20
- package/dist/views/ChatHistory/utils.d.ts.map +0 -1
- package/dist/views/ChatHistory/utils.js +0 -53
- package/dist/views/ChatHistory/utils.js.map +0 -1
- package/dist/views/ChatTabSelection.d.ts +0 -5
- package/dist/views/ChatTabSelection.d.ts.map +0 -1
- package/dist/views/ChatTabSelection.js +0 -48
- package/dist/views/ChatTabSelection.js.map +0 -1
- package/dist/views/Editor.d.ts +0 -5
- package/dist/views/Editor.d.ts.map +0 -1
- package/dist/views/Editor.js +0 -96
- package/dist/views/Editor.js.map +0 -1
- package/dist/views/Home/BuiltInAgent.d.ts +0 -6
- package/dist/views/Home/BuiltInAgent.d.ts.map +0 -1
- package/dist/views/Home/BuiltInAgent.js +0 -39
- package/dist/views/Home/BuiltInAgent.js.map +0 -1
- package/dist/views/Home/CustomAgent.d.ts +0 -5
- package/dist/views/Home/CustomAgent.d.ts.map +0 -1
- package/dist/views/Home/CustomAgent.js +0 -24
- package/dist/views/Home/CustomAgent.js.map +0 -1
- package/dist/views/Home/index.d.ts +0 -8
- package/dist/views/Home/index.d.ts.map +0 -1
- package/dist/views/Home/index.js +0 -15
- package/dist/views/Home/index.js.map +0 -1
- package/dist/views/Home/styled.d.ts +0 -2
- package/dist/views/Home/styled.d.ts.map +0 -1
- package/dist/views/Home/styled.js +0 -59
- package/dist/views/Home/styled.js.map +0 -1
- package/dist/views/Home/types.d.ts +0 -7
- package/dist/views/Home/types.d.ts.map +0 -1
- package/dist/views/Home/types.js +0 -2
- package/dist/views/Home/types.js.map +0 -1
- package/dist/views/KSDocument.d.ts +0 -5
- package/dist/views/KSDocument.d.ts.map +0 -1
- package/dist/views/KSDocument.js +0 -43
- package/dist/views/KSDocument.js.map +0 -1
- package/dist/views/KnowledgeSources.d.ts +0 -2
- package/dist/views/KnowledgeSources.d.ts.map +0 -1
- package/dist/views/KnowledgeSources.js +0 -96
- package/dist/views/KnowledgeSources.js.map +0 -1
- package/dist/views/MessageInput/AgentSelector.d.ts +0 -4
- package/dist/views/MessageInput/AgentSelector.d.ts.map +0 -1
- package/dist/views/MessageInput/AgentSelector.js +0 -58
- package/dist/views/MessageInput/AgentSelector.js.map +0 -1
- package/dist/views/MessageInput/ButtonAgent.d.ts +0 -2
- package/dist/views/MessageInput/ButtonAgent.d.ts.map +0 -1
- package/dist/views/MessageInput/ButtonAgent.js +0 -17
- package/dist/views/MessageInput/ButtonAgent.js.map +0 -1
- package/dist/views/MessageInput/ButtonGroup.d.ts +0 -29
- package/dist/views/MessageInput/ButtonGroup.d.ts.map +0 -1
- package/dist/views/MessageInput/ButtonGroup.js +0 -34
- package/dist/views/MessageInput/ButtonGroup.js.map +0 -1
- package/dist/views/MessageInput/InfoBar.d.ts +0 -9
- package/dist/views/MessageInput/InfoBar.d.ts.map +0 -1
- package/dist/views/MessageInput/InfoBar.js +0 -52
- package/dist/views/MessageInput/InfoBar.js.map +0 -1
- package/dist/views/MessageInput/QuickCommandSelector.d.ts +0 -4
- package/dist/views/MessageInput/QuickCommandSelector.d.ts.map +0 -1
- package/dist/views/MessageInput/QuickCommandSelector.js +0 -34
- package/dist/views/MessageInput/QuickCommandSelector.js.map +0 -1
- package/dist/views/MessageInput/chat-entry-history.d.ts +0 -11
- package/dist/views/MessageInput/chat-entry-history.d.ts.map +0 -1
- package/dist/views/MessageInput/chat-entry-history.js +0 -78
- package/dist/views/MessageInput/chat-entry-history.js.map +0 -1
- package/dist/views/MessageInput/dictionary.d.ts +0 -2
- package/dist/views/MessageInput/dictionary.d.ts.map +0 -1
- package/dist/views/MessageInput/dictionary.js +0 -43
- package/dist/views/MessageInput/dictionary.js.map +0 -1
- package/dist/views/MessageInput/index.d.ts +0 -7
- package/dist/views/MessageInput/index.d.ts.map +0 -1
- package/dist/views/MessageInput/index.js +0 -62
- package/dist/views/MessageInput/index.js.map +0 -1
- package/dist/views/MessageInput/styled.d.ts +0 -4
- package/dist/views/MessageInput/styled.d.ts.map +0 -1
- package/dist/views/MessageInput/styled.js +0 -257
- package/dist/views/MessageInput/styled.js.map +0 -1
- package/dist/views/MinimizedHeader.d.ts +0 -7
- package/dist/views/MinimizedHeader.d.ts.map +0 -1
- package/dist/views/MinimizedHeader.js +0 -79
- package/dist/views/MinimizedHeader.js.map +0 -1
- package/dist/views/Stacks.d.ts +0 -5
- package/dist/views/Stacks.d.ts.map +0 -1
- package/dist/views/Stacks.js +0 -80
- package/dist/views/Stacks.js.map +0 -1
- package/dist/views/Workspaces.d.ts +0 -5
- package/dist/views/Workspaces.d.ts.map +0 -1
- package/dist/views/Workspaces.js +0 -66
- package/dist/views/Workspaces.js.map +0 -1
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useContext, useMemo } from 'react';
|
|
3
|
-
import { DefaultPanel } from './DefaultPanel.js';
|
|
4
|
-
import { RightPanelContext } from './RightPanelProvider.js';
|
|
5
|
-
import { panelAnimationTime } from './constants.js';
|
|
6
|
-
/**
|
|
7
|
-
* @returns teh current content of the right panel
|
|
8
|
-
*/
|
|
9
|
-
export function useRightPanelContent() {
|
|
10
|
-
const { content } = useContext(RightPanelContext);
|
|
11
|
-
return content;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Opens, closes or checks the visibility of the right panel.
|
|
15
|
-
*/
|
|
16
|
-
export function useRightPanel() {
|
|
17
|
-
const ctx = useContext(RightPanelContext);
|
|
18
|
-
const { panel, chatWindow, setContent } = ctx;
|
|
19
|
-
return useMemo(() => {
|
|
20
|
-
if (!setContent)
|
|
21
|
-
throw new Error('No RightPanelProvider found.');
|
|
22
|
-
function open(content, options) {
|
|
23
|
-
if (!panel?.current || !chatWindow?.current || !setContent)
|
|
24
|
-
return;
|
|
25
|
-
setContent(options ? _jsx(DefaultPanel, { ...options, onClose: close, children: content }) : content);
|
|
26
|
-
panel.current.classList.add('visible');
|
|
27
|
-
chatWindow.current.classList.add('narrow');
|
|
28
|
-
ctx.onCloseNext.current = options?.onClose;
|
|
29
|
-
}
|
|
30
|
-
function close() {
|
|
31
|
-
if (!panel?.current || !chatWindow?.current || !setContent)
|
|
32
|
-
return;
|
|
33
|
-
panel.current.classList.remove('visible');
|
|
34
|
-
chatWindow.current.classList.remove('narrow');
|
|
35
|
-
ctx.onCloseNext.current?.();
|
|
36
|
-
setTimeout(() => {
|
|
37
|
-
setContent(null);
|
|
38
|
-
}, panelAnimationTime);
|
|
39
|
-
}
|
|
40
|
-
function isOpen() {
|
|
41
|
-
return !!panel?.current?.classList.contains('visible');
|
|
42
|
-
}
|
|
43
|
-
return { open, close, isOpen };
|
|
44
|
-
}, []);
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=hooks.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../src/right-panel/hooks.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAQhD;;GAEG;AACH,MAAM,UAAU,oBAAoB;IAClC,MAAM,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAA;IACjD,OAAO,OAAO,CAAA;AAChB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,aAAa;IAC3B,MAAM,GAAG,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAA;IACzC,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,GAAG,CAAA;IAE7C,OAAO,OAAO,CAAC,GAAG,EAAE;QAClB,IAAI,CAAC,UAAU;YAAE,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAA;QAEhE,SAAS,IAAI,CAAC,OAAwB,EAAE,OAA2B;YACjE,IAAI,CAAC,KAAK,EAAE,OAAO,IAAI,CAAC,UAAU,EAAE,OAAO,IAAI,CAAC,UAAU;gBAAE,OAAM;YAClE,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,KAAC,YAAY,OAAK,OAAO,EAAE,OAAO,EAAE,KAAK,YAAG,OAAO,GAAgB,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;YACnG,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,CAAA;YACtC,UAAU,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;YAC1C,GAAG,CAAC,WAAW,CAAC,OAAO,GAAG,OAAO,EAAE,OAAO,CAAA;QAC5C,CAAC;QAED,SAAS,KAAK;YACZ,IAAI,CAAC,KAAK,EAAE,OAAO,IAAI,CAAC,UAAU,EAAE,OAAO,IAAI,CAAC,UAAU;gBAAE,OAAM;YAClE,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;YACzC,UAAU,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;YAC7C,GAAG,CAAC,WAAW,CAAC,OAAO,EAAE,EAAE,CAAA;YAC3B,UAAU,CAAC,GAAG,EAAE;gBACd,UAAU,CAAC,IAAI,CAAC,CAAA;YAClB,CAAC,EAAE,kBAAkB,CAAC,CAAA;QACxB,CAAC;QAED,SAAS,MAAM;YACb,OAAO,CAAC,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAA;QACxD,CAAC;QAED,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,CAAA;IAChC,CAAC,EAAE,EAAE,CAAC,CAAA;AACR,CAAC"}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { ColorPaletteName } from '@stack-spot/portal-theme';
|
|
2
|
-
import { LabeledWithImage } from './types.js';
|
|
3
|
-
export interface SerializableAction {
|
|
4
|
-
/**
|
|
5
|
-
* The text for the button or anchor.
|
|
6
|
-
*/
|
|
7
|
-
title: string;
|
|
8
|
-
/**
|
|
9
|
-
* Links open new tabs with urls, while commands send text commands in the chat as if they were written by the user.
|
|
10
|
-
*/
|
|
11
|
-
type: 'link' | 'command';
|
|
12
|
-
/**
|
|
13
|
-
* The URL if the action is a link. The content of the user message otherwise.
|
|
14
|
-
*/
|
|
15
|
-
exec: string;
|
|
16
|
-
}
|
|
17
|
-
export interface ChatAction extends SerializableAction {
|
|
18
|
-
/**
|
|
19
|
-
* @default primary
|
|
20
|
-
*/
|
|
21
|
-
appearance?: 'primary' | 'secondary';
|
|
22
|
-
}
|
|
23
|
-
export interface KnowledgeSource {
|
|
24
|
-
name: string;
|
|
25
|
-
slug: string;
|
|
26
|
-
documentScore: number;
|
|
27
|
-
documentId: string;
|
|
28
|
-
}
|
|
29
|
-
export interface TextChatEntry {
|
|
30
|
-
/**
|
|
31
|
-
* "text" for simple unformatted paragraphs. "md" for markdown.
|
|
32
|
-
*/
|
|
33
|
-
type: 'text' | 'md';
|
|
34
|
-
/**
|
|
35
|
-
* If the message was typed by the AI agent (bot), the user or the system (not currently in use).
|
|
36
|
-
*/
|
|
37
|
-
agentType: 'bot' | 'user' | 'system';
|
|
38
|
-
/**
|
|
39
|
-
* A set of buttons to go after the message.
|
|
40
|
-
*/
|
|
41
|
-
actions?: ChatAction[];
|
|
42
|
-
/**
|
|
43
|
-
* The content of the message.
|
|
44
|
-
*/
|
|
45
|
-
content: string;
|
|
46
|
-
/**
|
|
47
|
-
* The knowledge sources used to create the message.
|
|
48
|
-
*/
|
|
49
|
-
knowledgeSources?: KnowledgeSource[];
|
|
50
|
-
/**
|
|
51
|
-
* The date and time of the message. ISO string.
|
|
52
|
-
*/
|
|
53
|
-
updated?: string;
|
|
54
|
-
/**
|
|
55
|
-
* The agent who wrote the message. Undefined for the default agent or if the agentType is "user".
|
|
56
|
-
*/
|
|
57
|
-
agent?: LabeledWithImage;
|
|
58
|
-
/**
|
|
59
|
-
* The unique identifier of the message.
|
|
60
|
-
*/
|
|
61
|
-
messageId?: string;
|
|
62
|
-
/**
|
|
63
|
-
* If this is set, only an error message is rendered.
|
|
64
|
-
*/
|
|
65
|
-
error?: string;
|
|
66
|
-
/**
|
|
67
|
-
* A series of badges to display before the content.
|
|
68
|
-
*/
|
|
69
|
-
badges?: {
|
|
70
|
-
color?: ColorPaletteName;
|
|
71
|
-
label: string;
|
|
72
|
-
}[];
|
|
73
|
-
/**
|
|
74
|
-
* Whether or not to show this chat entry as a card.
|
|
75
|
-
*/
|
|
76
|
-
card?: boolean;
|
|
77
|
-
}
|
|
78
|
-
type ChatEntryListener = (value: TextChatEntry) => void;
|
|
79
|
-
/**
|
|
80
|
-
* A message (entry) in the chat.
|
|
81
|
-
*/
|
|
82
|
-
export declare class ChatEntry {
|
|
83
|
-
readonly id: number;
|
|
84
|
-
private value;
|
|
85
|
-
private listeners;
|
|
86
|
-
/**
|
|
87
|
-
* @param value the value of the entry.
|
|
88
|
-
*/
|
|
89
|
-
constructor(value: TextChatEntry);
|
|
90
|
-
/**
|
|
91
|
-
* Utility function to create a user entry.
|
|
92
|
-
* @param content the message's content.
|
|
93
|
-
* @param isMd whether or not this should be rendered as markdown.
|
|
94
|
-
* @returns a new ChatEntry.
|
|
95
|
-
*/
|
|
96
|
-
static createUserEntry(content: string, isMd?: boolean): ChatEntry;
|
|
97
|
-
/**
|
|
98
|
-
* Utility function to create a streamed entry from the AI agent.
|
|
99
|
-
* @returns a new ChatEntry.
|
|
100
|
-
*/
|
|
101
|
-
static createStreamedBotEntry(): ChatEntry;
|
|
102
|
-
setValue(value: TextChatEntry): void;
|
|
103
|
-
getValue(): TextChatEntry;
|
|
104
|
-
/**
|
|
105
|
-
* Watches the value of this ChatEntry.
|
|
106
|
-
* @param listener a function to call whenever the value changes.
|
|
107
|
-
* @returns a function that removes the listener.
|
|
108
|
-
*/
|
|
109
|
-
onChange(listener: ChatEntryListener): () => void;
|
|
110
|
-
}
|
|
111
|
-
export {};
|
|
112
|
-
//# sourceMappingURL=ChatEntry.d.ts.map
|
|
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AAE,EAAE,CAAC;IACvD;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,KAAK,iBAAiB,GAAG,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAA;AAMvD;;GAEG;AACH,qBAAa,SAAS;IACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,KAAK,CAAe;IAC5B,OAAO,CAAC,SAAS,CAA0B;IAE3C;;OAEG;gBACS,KAAK,EAAE,aAAa;IAKhC;;;;;OAKG;IACH,MAAM,CAAC,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,UAAQ;IASpD;;;OAGG;IACH,MAAM,CAAC,sBAAsB;IAI7B,QAAQ,CAAC,KAAK,EAAE,aAAa;IAK7B,QAAQ;IAIR;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,iBAAiB;CAMrC"}
|
package/dist/state/ChatEntry.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { pull } from 'lodash';
|
|
2
|
-
// this id is unique for each message and used for rendering. The `messageId`, which comes from the backend, is not always available and,
|
|
3
|
-
// therefore, can't be used for this purpose.
|
|
4
|
-
let nextId = 0;
|
|
5
|
-
/**
|
|
6
|
-
* A message (entry) in the chat.
|
|
7
|
-
*/
|
|
8
|
-
export class ChatEntry {
|
|
9
|
-
id;
|
|
10
|
-
value;
|
|
11
|
-
listeners = [];
|
|
12
|
-
/**
|
|
13
|
-
* @param value the value of the entry.
|
|
14
|
-
*/
|
|
15
|
-
constructor(value) {
|
|
16
|
-
this.id = nextId++;
|
|
17
|
-
this.value = value;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Utility function to create a user entry.
|
|
21
|
-
* @param content the message's content.
|
|
22
|
-
* @param isMd whether or not this should be rendered as markdown.
|
|
23
|
-
* @returns a new ChatEntry.
|
|
24
|
-
*/
|
|
25
|
-
static createUserEntry(content, isMd = false) {
|
|
26
|
-
return new ChatEntry({
|
|
27
|
-
agentType: 'user',
|
|
28
|
-
type: isMd ? 'md' : 'text',
|
|
29
|
-
content,
|
|
30
|
-
updated: new Date().toISOString(),
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Utility function to create a streamed entry from the AI agent.
|
|
35
|
-
* @returns a new ChatEntry.
|
|
36
|
-
*/
|
|
37
|
-
static createStreamedBotEntry() {
|
|
38
|
-
return new ChatEntry({ agentType: 'bot', type: 'md', content: '' });
|
|
39
|
-
}
|
|
40
|
-
setValue(value) {
|
|
41
|
-
this.value = value;
|
|
42
|
-
this.listeners.forEach(l => l(this.value));
|
|
43
|
-
}
|
|
44
|
-
getValue() {
|
|
45
|
-
return this.value;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Watches the value of this ChatEntry.
|
|
49
|
-
* @param listener a function to call whenever the value changes.
|
|
50
|
-
* @returns a function that removes the listener.
|
|
51
|
-
*/
|
|
52
|
-
onChange(listener) {
|
|
53
|
-
this.listeners.push(listener);
|
|
54
|
-
return () => {
|
|
55
|
-
pull(this.listeners, listener);
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
//# sourceMappingURL=ChatEntry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChatEntry.js","sourceRoot":"","sources":["../../src/state/ChatEntry.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAiF7B,0IAA0I;AAC1I,6CAA6C;AAC7C,IAAI,MAAM,GAAG,CAAC,CAAA;AAEd;;GAEG;AACH,MAAM,OAAO,SAAS;IACX,EAAE,CAAQ;IACX,KAAK,CAAe;IACpB,SAAS,GAAwB,EAAE,CAAA;IAE3C;;OAEG;IACH,YAAY,KAAoB;QAC9B,IAAI,CAAC,EAAE,GAAG,MAAM,EAAE,CAAA;QAClB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;IACpB,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,eAAe,CAAC,OAAe,EAAE,IAAI,GAAG,KAAK;QAClD,OAAO,IAAI,SAAS,CAAC;YACnB,SAAS,EAAE,MAAM;YACjB,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM;YAC1B,OAAO;YACP,OAAO,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SAClC,CAAC,CAAA;IACJ,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,sBAAsB;QAC3B,OAAO,IAAI,SAAS,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAA;IACrE,CAAC;IAED,QAAQ,CAAC,KAAoB;QAC3B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;QAClB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAA;IAC5C,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,KAAK,CAAA;IACnB,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,QAA2B;QAClC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QAC7B,OAAO,GAAG,EAAE;YACV,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAA;QAChC,CAAC,CAAA;IACH,CAAC;CACF"}
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import { ChatFeatures } from '../features.js';
|
|
2
|
-
import { ChatEntry } from './ChatEntry.js';
|
|
3
|
-
import { ObservableState } from './ObservableState.js';
|
|
4
|
-
import { Labeled, LabeledWithImage } from './types.js';
|
|
5
|
-
export interface ChatPropertiesWithOptionalFeatures {
|
|
6
|
-
/**
|
|
7
|
-
* The name of the chat.
|
|
8
|
-
*/
|
|
9
|
-
label: string;
|
|
10
|
-
/**
|
|
11
|
-
* The current AI agent.
|
|
12
|
-
*/
|
|
13
|
-
agent?: LabeledWithImage & {
|
|
14
|
-
builtIn: boolean;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* The current workspace.
|
|
18
|
-
*/
|
|
19
|
-
workspace?: Labeled;
|
|
20
|
-
/**
|
|
21
|
-
* The current stack.
|
|
22
|
-
*/
|
|
23
|
-
stack?: Labeled;
|
|
24
|
-
/**
|
|
25
|
-
* The current knowledge sources.
|
|
26
|
-
*/
|
|
27
|
-
knowledgeSources?: Labeled[];
|
|
28
|
-
/**
|
|
29
|
-
* Whether or not the chat is in a loading state.
|
|
30
|
-
*/
|
|
31
|
-
isLoading?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* The value of the next message. This is the value of the text typed in the textarea below the chat.
|
|
34
|
-
*/
|
|
35
|
-
nextMessage?: string;
|
|
36
|
-
/**
|
|
37
|
-
* The current code in the editor.
|
|
38
|
-
*/
|
|
39
|
-
code?: string;
|
|
40
|
-
/**
|
|
41
|
-
* The language of the current code in the editor.
|
|
42
|
-
*/
|
|
43
|
-
codeLanguage?: string;
|
|
44
|
-
/**
|
|
45
|
-
* The current selection in the editor.
|
|
46
|
-
*/
|
|
47
|
-
codeSelection?: string;
|
|
48
|
-
/**
|
|
49
|
-
* The features enabled for this chat.
|
|
50
|
-
*
|
|
51
|
-
* If a feature is marked as false, it's disabled, otherwise it's enabled.
|
|
52
|
-
*/
|
|
53
|
-
features?: Partial<ChatFeatures>;
|
|
54
|
-
}
|
|
55
|
-
export interface ChatProperties extends ChatPropertiesWithOptionalFeatures {
|
|
56
|
-
/**
|
|
57
|
-
* The features enabled for this chat.
|
|
58
|
-
*/
|
|
59
|
-
features: ChatFeatures;
|
|
60
|
-
}
|
|
61
|
-
type ChatMessagesListener = (chat: ChatEntry[]) => void;
|
|
62
|
-
export type MessageInterceptor = (entry: ChatEntry, chat: ChatState, signal: AbortSignal) => boolean | undefined | void | Promise<boolean | undefined | void>;
|
|
63
|
-
interface Options {
|
|
64
|
-
/**
|
|
65
|
-
* The unique identifier for this chat (conversationId).
|
|
66
|
-
*/
|
|
67
|
-
id: string;
|
|
68
|
-
/**
|
|
69
|
-
* The initial value for the state of this chat.
|
|
70
|
-
*/
|
|
71
|
-
initial: ChatPropertiesWithOptionalFeatures;
|
|
72
|
-
/**
|
|
73
|
-
* The interceptors to use for the messages pushed to this chat.
|
|
74
|
-
*
|
|
75
|
-
* The interceptors are run whenever a new message (chat entry) is added to the chat. They're always run in the order of the array and if
|
|
76
|
-
* any returns a promise, the promise is awaited before running the next.
|
|
77
|
-
*
|
|
78
|
-
* If an interceptor returns false or resolves to false (if a promise), the execution is interrupted, i.e. the next interceptors are not
|
|
79
|
-
* run.
|
|
80
|
-
*
|
|
81
|
-
* An interceptor receives three parameters:
|
|
82
|
-
* 1. the chat entry added;
|
|
83
|
-
* 2. the chat state;
|
|
84
|
-
* 3. an AbortSignal that can be aborted by calling `abort()` on the ChatState. Once the signal is aborted, the interceptor must abort all
|
|
85
|
-
* of its operations.
|
|
86
|
-
*
|
|
87
|
-
* Attention: when multiple messages are added at once, only the last goes through the interceptors. Furthermore, messages created by the
|
|
88
|
-
* constructor don't go through the interceptors, only messages added via `pushMessage` do.
|
|
89
|
-
*/
|
|
90
|
-
interceptors?: MessageInterceptor[];
|
|
91
|
-
/**
|
|
92
|
-
* The content of this chat, i.e. its messages.
|
|
93
|
-
*/
|
|
94
|
-
entries?: ChatEntry[];
|
|
95
|
-
/**
|
|
96
|
-
* Whether or not the label for this chat is real (persisted in the backend) or just a mock.
|
|
97
|
-
*
|
|
98
|
-
* This should be true if the label is just a mock.
|
|
99
|
-
*/
|
|
100
|
-
untitled?: boolean;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* A chat. Each chat tab is a different ChatState.
|
|
104
|
-
*/
|
|
105
|
-
export declare class ChatState extends ObservableState<ChatProperties> {
|
|
106
|
-
readonly id: string;
|
|
107
|
-
private entries;
|
|
108
|
-
private messagesListeners;
|
|
109
|
-
private readonly interceptors;
|
|
110
|
-
/**
|
|
111
|
-
* A memory space (map) to be used by interceptors.
|
|
112
|
-
*/
|
|
113
|
-
interceptorMemory: Map<string, any>;
|
|
114
|
-
/**
|
|
115
|
-
* Abort signals currently active.
|
|
116
|
-
*/
|
|
117
|
-
private abortions;
|
|
118
|
-
untitled: boolean;
|
|
119
|
-
constructor({ id, initial, entries, interceptors, untitled }: Options);
|
|
120
|
-
private runMessagesListeners;
|
|
121
|
-
private runInterceptors;
|
|
122
|
-
/**
|
|
123
|
-
* Adds one or more messages to the chat. Messages are appended to the end of the chat.
|
|
124
|
-
* @param entries the messages to add.
|
|
125
|
-
*/
|
|
126
|
-
pushMessage(...entries: ChatEntry[]): void;
|
|
127
|
-
/**
|
|
128
|
-
* Removes one or more messages from the end of the chat.
|
|
129
|
-
* @param quantity the number of messages to remove. Defaults to 1.
|
|
130
|
-
*/
|
|
131
|
-
popMessage(quantity?: number): void;
|
|
132
|
-
/**
|
|
133
|
-
* @returns the current list of messages.
|
|
134
|
-
*/
|
|
135
|
-
getMessages(): ChatEntry[];
|
|
136
|
-
/**
|
|
137
|
-
* Watches this chat for changes in the list of messages.
|
|
138
|
-
* @param listener the function to call whenever the list of messages changes.
|
|
139
|
-
* @returns a function that removes the listener.
|
|
140
|
-
*/
|
|
141
|
-
onChangeMessages(listener: ChatMessagesListener): () => void;
|
|
142
|
-
/**
|
|
143
|
-
* Aborts all currently running chat interceptors.
|
|
144
|
-
*/
|
|
145
|
-
abort(): void;
|
|
146
|
-
/**
|
|
147
|
-
* Creates a chat that has the same state value and interceptors as this one.
|
|
148
|
-
*
|
|
149
|
-
* All abortions from this chat will be transferred to the new chat. The abortions of this chat will be cleared.
|
|
150
|
-
*/
|
|
151
|
-
transferToNewChat(label: string): ChatState;
|
|
152
|
-
}
|
|
153
|
-
export {};
|
|
154
|
-
//# sourceMappingURL=ChatState.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|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AAO,CAAC,OAAO,GAAG,SAAS,GAAG,IAAI,CAAC,CAAA;AAErE,UAAU,OAAO;IACf;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,OAAO,EAAE,kCAAkC,CAAC;IAC5C;;;;;;;;;;;;;;;;;OAiBG;IACH,YAAY,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACpC;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC;IACtB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,qBAAa,SAAU,SAAQ,eAAe,CAAC,cAAc,CAAC;IAC5D,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,OAAO,CAAa;IAC5B,OAAO,CAAC,iBAAiB,CAA6B;IACtD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAsB;IACnD;;OAEG;IACH,iBAAiB,mBAAyB;IAC1C;;OAEG;IACH,OAAO,CAAC,SAAS,CAAwB;IACzC,QAAQ,EAAE,OAAO,CAAA;gBAEL,EAAE,EAAE,EAAE,OAAO,EAAE,OAAY,EAAE,YAAiB,EAAE,QAAgB,EAAE,EAAE,OAAO;IAQvF,OAAO,CAAC,oBAAoB;YAId,eAAe;IAe7B;;;OAGG;IACH,WAAW,CAAC,GAAG,OAAO,EAAE,SAAS,EAAE;IAOnC;;;OAGG;IACH,UAAU,CAAC,QAAQ,SAAI;IAKvB;;OAEG;IACH,WAAW;IAIX;;;;OAIG;IACH,gBAAgB,CAAC,QAAQ,EAAE,oBAAoB;IAO/C;;OAEG;IACH,KAAK;IAKL;;;;OAIG;IACH,iBAAiB,CAAC,KAAK,EAAE,MAAM;CAUhC"}
|
package/dist/state/ChatState.js
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { dropRight, last, pull } from 'lodash';
|
|
2
|
-
import { ulid } from 'ulid';
|
|
3
|
-
import { AbortedError } from '../AbortedError.js';
|
|
4
|
-
import { getFeaturesWithDefaults } from '../features.js';
|
|
5
|
-
import { ObservableState } from './ObservableState.js';
|
|
6
|
-
/**
|
|
7
|
-
* A chat. Each chat tab is a different ChatState.
|
|
8
|
-
*/
|
|
9
|
-
export class ChatState extends ObservableState {
|
|
10
|
-
id;
|
|
11
|
-
entries;
|
|
12
|
-
messagesListeners = [];
|
|
13
|
-
interceptors;
|
|
14
|
-
/**
|
|
15
|
-
* A memory space (map) to be used by interceptors.
|
|
16
|
-
*/
|
|
17
|
-
interceptorMemory = new Map();
|
|
18
|
-
/**
|
|
19
|
-
* Abort signals currently active.
|
|
20
|
-
*/
|
|
21
|
-
abortions = [];
|
|
22
|
-
untitled;
|
|
23
|
-
constructor({ id, initial, entries = [], interceptors = [], untitled = false }) {
|
|
24
|
-
super({ ...initial, features: getFeaturesWithDefaults(initial.features) });
|
|
25
|
-
this.id = id;
|
|
26
|
-
this.interceptors = interceptors;
|
|
27
|
-
this.entries = entries;
|
|
28
|
-
this.untitled = untitled;
|
|
29
|
-
}
|
|
30
|
-
runMessagesListeners() {
|
|
31
|
-
this.messagesListeners.forEach(l => l(this.entries));
|
|
32
|
-
}
|
|
33
|
-
async runInterceptors(entry) {
|
|
34
|
-
const abort = new AbortController();
|
|
35
|
-
this.abortions.push(abort);
|
|
36
|
-
for (const interceptor of this.interceptors) {
|
|
37
|
-
try {
|
|
38
|
-
const result = await interceptor(entry, this, abort.signal);
|
|
39
|
-
if (result === false)
|
|
40
|
-
break;
|
|
41
|
-
}
|
|
42
|
-
catch (error) {
|
|
43
|
-
pull(this.abortions, abort);
|
|
44
|
-
throw error;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
pull(this.abortions, abort);
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Adds one or more messages to the chat. Messages are appended to the end of the chat.
|
|
51
|
-
* @param entries the messages to add.
|
|
52
|
-
*/
|
|
53
|
-
pushMessage(...entries) {
|
|
54
|
-
if (!entries.length)
|
|
55
|
-
return;
|
|
56
|
-
this.entries = [...this.entries, ...entries];
|
|
57
|
-
this.runMessagesListeners();
|
|
58
|
-
this.runInterceptors(last(entries));
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Removes one or more messages from the end of the chat.
|
|
62
|
-
* @param quantity the number of messages to remove. Defaults to 1.
|
|
63
|
-
*/
|
|
64
|
-
popMessage(quantity = 1) {
|
|
65
|
-
this.entries = dropRight(this.entries, quantity);
|
|
66
|
-
this.runMessagesListeners();
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* @returns the current list of messages.
|
|
70
|
-
*/
|
|
71
|
-
getMessages() {
|
|
72
|
-
return this.entries;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Watches this chat for changes in the list of messages.
|
|
76
|
-
* @param listener the function to call whenever the list of messages changes.
|
|
77
|
-
* @returns a function that removes the listener.
|
|
78
|
-
*/
|
|
79
|
-
onChangeMessages(listener) {
|
|
80
|
-
this.messagesListeners.push(listener);
|
|
81
|
-
return () => {
|
|
82
|
-
pull(this.messagesListeners, listener);
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Aborts all currently running chat interceptors.
|
|
87
|
-
*/
|
|
88
|
-
abort() {
|
|
89
|
-
this.abortions.forEach(a => a.abort(new AbortedError()));
|
|
90
|
-
this.abortions = [];
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Creates a chat that has the same state value and interceptors as this one.
|
|
94
|
-
*
|
|
95
|
-
* All abortions from this chat will be transferred to the new chat. The abortions of this chat will be cleared.
|
|
96
|
-
*/
|
|
97
|
-
transferToNewChat(label) {
|
|
98
|
-
const newChat = new ChatState({
|
|
99
|
-
id: ulid(),
|
|
100
|
-
initial: { ...this.state, label },
|
|
101
|
-
interceptors: this.interceptors,
|
|
102
|
-
});
|
|
103
|
-
newChat.abortions = this.abortions;
|
|
104
|
-
this.abortions = [];
|
|
105
|
-
return newChat;
|
|
106
|
-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CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QACrC,OAAO,GAAG,EAAE;YACV,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAA;QACxC,CAAC,CAAA;IACH,CAAC;IAED;;OAEG;IACH,KAAK;QACH,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,YAAY,EAAE,CAAC,CAAC,CAAA;QACxD,IAAI,CAAC,SAAS,GAAG,EAAE,CAAA;IACrB,CAAC;IAED;;;;OAIG;IACH,iBAAiB,CAAC,KAAa;QAC7B,MAAM,OAAO,GAAG,IAAI,SAAS,CAAC;YAC5B,EAAE,EAAE,IAAI,EAAE;YACV,OAAO,EAAE,EAAE,GAAG,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE;YACjC,YAAY,EAAE,IAAI,CAAC,YAAY;SAChC,CAAC,CAAA;QACF,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAA;QAClC,IAAI,CAAC,SAAS,GAAG,EAAE,CAAA;QACnB,OAAO,OAAO,CAAA;IAChB,CAAC;CACF"}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { ChatState } from './ChatState.js';
|
|
2
|
-
type TabChangeListener = (chats: ChatState[], active: ChatState) => void;
|
|
3
|
-
/**
|
|
4
|
-
* Controls the chat tabs.
|
|
5
|
-
*/
|
|
6
|
-
export declare class ChatTabsController {
|
|
7
|
-
private chats;
|
|
8
|
-
private activeChatId;
|
|
9
|
-
private listeners;
|
|
10
|
-
private runListeners;
|
|
11
|
-
/**
|
|
12
|
-
* Adds new chats to the tab view.
|
|
13
|
-
* @param chats the chats to add.
|
|
14
|
-
*/
|
|
15
|
-
add(...chats: ChatState[]): void;
|
|
16
|
-
/**
|
|
17
|
-
* If the active chat is deleted, this selects a new chat based on the position of the chat that has been removed.
|
|
18
|
-
*
|
|
19
|
-
* @param previous the previous tabs.
|
|
20
|
-
* @param deleted the ids of the chats that have been deleted.
|
|
21
|
-
*/
|
|
22
|
-
private reselect;
|
|
23
|
-
/**
|
|
24
|
-
* Removes chats from the tab view. This will never remove a chat if this chat is the last one.
|
|
25
|
-
*
|
|
26
|
-
* @param ids the ids of the chats to remove.
|
|
27
|
-
*/
|
|
28
|
-
remove(...ids: string[]): void;
|
|
29
|
-
/**
|
|
30
|
-
* Removes all empty chats. The last chat will be kept if it's empty, but the only chat remaining.
|
|
31
|
-
*
|
|
32
|
-
* @param exceptions ids of chats that shouldn't be removed even if empty.
|
|
33
|
-
*/
|
|
34
|
-
removeEmptyChats(...exceptions: string[]): void;
|
|
35
|
-
/**
|
|
36
|
-
* @param id the id of the chat to retrieve.
|
|
37
|
-
* @returns a ChatState corresponding to the id.
|
|
38
|
-
*/
|
|
39
|
-
get(id: string): ChatState | undefined;
|
|
40
|
-
/**
|
|
41
|
-
* @returns the id of the chat corresponding to the tab that is currently active.
|
|
42
|
-
*/
|
|
43
|
-
getActiveChatId(): string;
|
|
44
|
-
/**
|
|
45
|
-
* @returns the chat corresponding to the tab that is currently active.
|
|
46
|
-
*/
|
|
47
|
-
getActiveChat(): ChatState;
|
|
48
|
-
/**
|
|
49
|
-
* @returns all chats in tab view.
|
|
50
|
-
*/
|
|
51
|
-
getAll(): ChatState[];
|
|
52
|
-
/**
|
|
53
|
-
* Watches for changes in the tab view.
|
|
54
|
-
* @param listener a function called whenever a tab is added, removed or selected. This function receives the list of chats as the first
|
|
55
|
-
* parameter and the id of the active chat as the second parameter.
|
|
56
|
-
* @returns a function to remove the listener.
|
|
57
|
-
*/
|
|
58
|
-
onChange(listener: TabChangeListener): () => void;
|
|
59
|
-
/**
|
|
60
|
-
* Changes the chat (tab) that is currently active.
|
|
61
|
-
* @param id the id of the chat to select.
|
|
62
|
-
*/
|
|
63
|
-
select(id: string): void;
|
|
64
|
-
}
|
|
65
|
-
export {};
|
|
66
|
-
//# sourceMappingURL=ChatTabsController.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChatTabsController.d.ts","sourceRoot":"","sources":["../../src/state/ChatTabsController.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,KAAK,iBAAiB,GAAG,CAAC,KAAK,EAAE,SAAS,EAAE,EAAE,MAAM,EAAE,SAAS,KAAK,IAAI,CAAA;AAExE;;GAEG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,KAAK,CAAkB;IAC/B,OAAO,CAAC,YAAY,CAAK;IACzB,OAAO,CAAC,SAAS,CAA0B;IAE3C,OAAO,CAAC,YAAY;IAIpB;;;OAGG;IACH,GAAG,CAAC,GAAG,KAAK,EAAE,SAAS,EAAE;IAMzB;;;;;OAKG;IACH,OAAO,CAAC,QAAQ;IAQhB;;;;OAIG;IACH,MAAM,CAAC,GAAG,GAAG,EAAE,MAAM,EAAE;IASvB;;;;OAIG;IACH,gBAAgB,CAAC,GAAG,UAAU,EAAE,MAAM,EAAE;IAYxC;;;OAGG;IACH,GAAG,CAAC,EAAE,EAAE,MAAM;IAId;;OAEG;IACH,eAAe;IAIf;;OAEG;IACH,aAAa;IAMb;;OAEG;IACH,MAAM;IAIN;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,EAAE,iBAAiB;IAOpC;;;OAGG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM;CAIlB"}
|