@stack-spot/ai-chat-widget 1.7.2 → 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/app-metadata.json +2 -2
- package/src/views/MessageInput/chat-entry-history.ts +97 -0
- package/src/views/MessageInput/index.tsx +7 -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/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 -59
- 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
package/dist/context/hooks.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { ChatEntry } from '../state/ChatEntry.js';
|
|
2
|
-
import { ChatProperties, ChatState } from '../state/ChatState.js';
|
|
3
|
-
import { WidgetProperties, WidgetState } from '../state/WidgetState.js';
|
|
4
|
-
/**
|
|
5
|
-
* Returns the closest instance of a WidgetState (React Context). If no context is available, uses a global instance of the chat widget.
|
|
6
|
-
*/
|
|
7
|
-
export declare function useWidget(): WidgetState;
|
|
8
|
-
/**
|
|
9
|
-
* Watches one of the widget states.
|
|
10
|
-
* @param key the key watch changes for.
|
|
11
|
-
* @returns the value of the state referred by the key.
|
|
12
|
-
*/
|
|
13
|
-
export declare function useWidgetState<K extends keyof WidgetProperties>(key: K): WidgetProperties[K];
|
|
14
|
-
/**
|
|
15
|
-
* Watches the tabs of a ChatState. The value is updated whenever a tab is added, removed or selected.
|
|
16
|
-
*/
|
|
17
|
-
export declare function useChatTabs(): {
|
|
18
|
-
chats: ChatState[];
|
|
19
|
-
active: ChatState;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Gets a chat according to its identifier (conversation id).
|
|
23
|
-
*
|
|
24
|
-
* An error is thrown if the id doesn't correspond to any chat currently opened.
|
|
25
|
-
*
|
|
26
|
-
* @returns the chat state.
|
|
27
|
-
*/
|
|
28
|
-
export declare function useChat(chatId: string): ChatState;
|
|
29
|
-
/**
|
|
30
|
-
* Watches the current chat (selected in the chat tabs.)
|
|
31
|
-
*
|
|
32
|
-
* The value changes whenever a new chat is selected.
|
|
33
|
-
*
|
|
34
|
-
* @returns the currently active chat.
|
|
35
|
-
*/
|
|
36
|
-
export declare function useCurrentChat(): ChatState;
|
|
37
|
-
/**
|
|
38
|
-
* Watches one of the chat states.
|
|
39
|
-
* @param chatId the id of chat to watch.
|
|
40
|
-
* @param key the key of the state to watch.
|
|
41
|
-
* @returns the value of the state referred by the key.
|
|
42
|
-
*/
|
|
43
|
-
export declare function useChatState<K extends keyof ChatProperties>(chatId: string, key: K): ChatProperties[K];
|
|
44
|
-
/**
|
|
45
|
-
* Watches one of the current chat states. This is the same as calling `useChatState` with the id of the current chat.
|
|
46
|
-
* @param key the key of the state to watch.
|
|
47
|
-
* @returns the value of the state referred by the key.
|
|
48
|
-
*/
|
|
49
|
-
export declare function useCurrentChatState<K extends keyof ChatProperties>(key: K): ChatProperties[K];
|
|
50
|
-
/**
|
|
51
|
-
* Watches a chat state for changes in the list of messages (chat entries).
|
|
52
|
-
* @param chatId the id of the chat to watch.
|
|
53
|
-
* @returns the list of messages in the chat.
|
|
54
|
-
*/
|
|
55
|
-
export declare function useChatMessages(chatId: string): ChatEntry[];
|
|
56
|
-
/**
|
|
57
|
-
* Watches the chat state currently active for changes in the list of messages (chat entries). This is the same as calling `useChatMessages`
|
|
58
|
-
* with the id of the current chat.
|
|
59
|
-
* @returns the list of messages in the chat.
|
|
60
|
-
*/
|
|
61
|
-
export declare function useCurrentChatMessages(): ChatEntry[];
|
|
62
|
-
/**
|
|
63
|
-
* Watches a chat message (chat entry) for changes in its composition. This allows messages to be streamed: each part of the stream will
|
|
64
|
-
* change the current value of the entry.
|
|
65
|
-
* @param entry the message to watch.
|
|
66
|
-
* @returns the current value of the message.
|
|
67
|
-
*/
|
|
68
|
-
export declare function useChatEntry(entry: ChatEntry): import("../state/ChatEntry.js").TextChatEntry;
|
|
69
|
-
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/context/hooks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAE9D,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKpE;;GAEG;AACH,wBAAgB,SAAS,IAAI,WAAW,CAKvC;AAWD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,MAAM,gBAAgB,EAAE,GAAG,EAAE,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAG5F;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI;IAAE,KAAK,EAAE,SAAS,EAAE,CAAC;IAAC,MAAM,EAAE,SAAS,CAAA;CAAE,CAQvE;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAKjD;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,IAAI,SAAS,CAE1C;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAGtG;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,MAAM,cAAc,EAAE,GAAG,EAAE,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAG7F;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,EAAE,CAQ3D;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,IAAI,SAAS,EAAE,CAGpD;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,8CAI5C"}
|
package/dist/context/hooks.js
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { useContext, useEffect, useState } from 'react';
|
|
2
|
-
import { WidgetState } from '../state/WidgetState.js';
|
|
3
|
-
import { AIWidgetContext } from './AIWidgetProvider.js';
|
|
4
|
-
let globalWidgetState;
|
|
5
|
-
/**
|
|
6
|
-
* Returns the closest instance of a WidgetState (React Context). If no context is available, uses a global instance of the chat widget.
|
|
7
|
-
*/
|
|
8
|
-
export function useWidget() {
|
|
9
|
-
const fromContext = useContext(AIWidgetContext);
|
|
10
|
-
if (fromContext)
|
|
11
|
-
return fromContext;
|
|
12
|
-
globalWidgetState ??= new WidgetState();
|
|
13
|
-
return globalWidgetState;
|
|
14
|
-
}
|
|
15
|
-
function useObservableState(state, key) {
|
|
16
|
-
const [value, setValue] = useState(state.get(key));
|
|
17
|
-
useEffect(() => {
|
|
18
|
-
setValue(state.get(key));
|
|
19
|
-
return state.onChange(key, setValue);
|
|
20
|
-
}, [state]);
|
|
21
|
-
return value;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Watches one of the widget states.
|
|
25
|
-
* @param key the key watch changes for.
|
|
26
|
-
* @returns the value of the state referred by the key.
|
|
27
|
-
*/
|
|
28
|
-
export function useWidgetState(key) {
|
|
29
|
-
const widget = useWidget();
|
|
30
|
-
return useObservableState(widget, key);
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Watches the tabs of a ChatState. The value is updated whenever a tab is added, removed or selected.
|
|
34
|
-
*/
|
|
35
|
-
export function useChatTabs() {
|
|
36
|
-
const widget = useWidget();
|
|
37
|
-
const [tabs, setTabs] = useState({
|
|
38
|
-
chats: widget.chatTabs.getAll(),
|
|
39
|
-
active: widget.chatTabs.getActiveChat(),
|
|
40
|
-
});
|
|
41
|
-
useEffect(() => widget.chatTabs.onChange((chats, active) => setTabs({ chats, active })), []);
|
|
42
|
-
return tabs;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Gets a chat according to its identifier (conversation id).
|
|
46
|
-
*
|
|
47
|
-
* An error is thrown if the id doesn't correspond to any chat currently opened.
|
|
48
|
-
*
|
|
49
|
-
* @returns the chat state.
|
|
50
|
-
*/
|
|
51
|
-
export function useChat(chatId) {
|
|
52
|
-
const widget = useWidget();
|
|
53
|
-
const chat = widget.chatTabs.get(chatId);
|
|
54
|
-
if (!chat)
|
|
55
|
-
throw new Error(`No chat with id ${chatId} was found. Maybe there are no chats opened.`);
|
|
56
|
-
return chat;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Watches the current chat (selected in the chat tabs.)
|
|
60
|
-
*
|
|
61
|
-
* The value changes whenever a new chat is selected.
|
|
62
|
-
*
|
|
63
|
-
* @returns the currently active chat.
|
|
64
|
-
*/
|
|
65
|
-
export function useCurrentChat() {
|
|
66
|
-
return useChatTabs().active;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Watches one of the chat states.
|
|
70
|
-
* @param chatId the id of chat to watch.
|
|
71
|
-
* @param key the key of the state to watch.
|
|
72
|
-
* @returns the value of the state referred by the key.
|
|
73
|
-
*/
|
|
74
|
-
export function useChatState(chatId, key) {
|
|
75
|
-
const chat = useChat(chatId);
|
|
76
|
-
return useObservableState(chat, key);
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Watches one of the current chat states. This is the same as calling `useChatState` with the id of the current chat.
|
|
80
|
-
* @param key the key of the state to watch.
|
|
81
|
-
* @returns the value of the state referred by the key.
|
|
82
|
-
*/
|
|
83
|
-
export function useCurrentChatState(key) {
|
|
84
|
-
const chat = useCurrentChat();
|
|
85
|
-
return useObservableState(chat, key);
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Watches a chat state for changes in the list of messages (chat entries).
|
|
89
|
-
* @param chatId the id of the chat to watch.
|
|
90
|
-
* @returns the list of messages in the chat.
|
|
91
|
-
*/
|
|
92
|
-
export function useChatMessages(chatId) {
|
|
93
|
-
const chat = useChat(chatId);
|
|
94
|
-
const [entries, setEntries] = useState(chat.getMessages());
|
|
95
|
-
useEffect(() => {
|
|
96
|
-
setEntries(chat.getMessages());
|
|
97
|
-
return chat.onChangeMessages(setEntries);
|
|
98
|
-
}, [chat]);
|
|
99
|
-
return entries;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Watches the chat state currently active for changes in the list of messages (chat entries). This is the same as calling `useChatMessages`
|
|
103
|
-
* with the id of the current chat.
|
|
104
|
-
* @returns the list of messages in the chat.
|
|
105
|
-
*/
|
|
106
|
-
export function useCurrentChatMessages() {
|
|
107
|
-
const { active } = useChatTabs();
|
|
108
|
-
return useChatMessages(active.id);
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Watches a chat message (chat entry) for changes in its composition. This allows messages to be streamed: each part of the stream will
|
|
112
|
-
* change the current value of the entry.
|
|
113
|
-
* @param entry the message to watch.
|
|
114
|
-
* @returns the current value of the message.
|
|
115
|
-
*/
|
|
116
|
-
export function useChatEntry(entry) {
|
|
117
|
-
const [content, setContent] = useState(entry.getValue());
|
|
118
|
-
useEffect(() => entry.onChange(setContent), []);
|
|
119
|
-
return content;
|
|
120
|
-
}
|
|
121
|
-
//# sourceMappingURL=hooks.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../src/context/hooks.ts"],"names":[],"mappings":"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"}
|
package/dist/features.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
export interface ChatFeatures {
|
|
2
|
-
/**
|
|
3
|
-
* Enables stack selection.
|
|
4
|
-
*/
|
|
5
|
-
stack: boolean;
|
|
6
|
-
/**
|
|
7
|
-
* Enables workspace selection.
|
|
8
|
-
*/
|
|
9
|
-
workspace: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Enables knowledge source selection.
|
|
12
|
-
*/
|
|
13
|
-
knowledgeSource: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Enables agent selection.
|
|
16
|
-
*/
|
|
17
|
-
agent: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Enables quick commands.
|
|
20
|
-
*/
|
|
21
|
-
quickCommands: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Enables the editor.
|
|
24
|
-
*/
|
|
25
|
-
editor: boolean;
|
|
26
|
-
}
|
|
27
|
-
export interface GlobalFeatures {
|
|
28
|
-
/**
|
|
29
|
-
* Enables the chat history.
|
|
30
|
-
*/
|
|
31
|
-
chatHistory: boolean;
|
|
32
|
-
}
|
|
33
|
-
export type AIWidgetFeatures = ChatFeatures & GlobalFeatures;
|
|
34
|
-
/**
|
|
35
|
-
* Receives a partial feature object and returns a full feature object, setting to true any missing property.
|
|
36
|
-
* @param features the partial features object.
|
|
37
|
-
* @returns a full features object.
|
|
38
|
-
*/
|
|
39
|
-
export declare function getFeaturesWithDefaults(features?: Partial<AIWidgetFeatures>): AIWidgetFeatures;
|
|
40
|
-
//# sourceMappingURL=features.d.ts.map
|
package/dist/features.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"features.d.ts","sourceRoot":"","sources":["../src/features.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,cAAc,CAAA;AAE5D;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,gBAAgB,CAW9F"}
|
package/dist/features.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Receives a partial feature object and returns a full feature object, setting to true any missing property.
|
|
3
|
-
* @param features the partial features object.
|
|
4
|
-
* @returns a full features object.
|
|
5
|
-
*/
|
|
6
|
-
export function getFeaturesWithDefaults(features) {
|
|
7
|
-
return {
|
|
8
|
-
agent: true,
|
|
9
|
-
editor: true,
|
|
10
|
-
knowledgeSource: true,
|
|
11
|
-
quickCommands: true,
|
|
12
|
-
stack: true,
|
|
13
|
-
workspace: true,
|
|
14
|
-
chatHistory: true,
|
|
15
|
-
...features,
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=features.js.map
|
package/dist/features.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"features.js","sourceRoot":"","sources":["../src/features.ts"],"names":[],"mappings":"AAoCA;;;;GAIG;AACH,MAAM,UAAU,uBAAuB,CAAC,QAAoC;IAC1E,OAAO;QACL,KAAK,EAAE,IAAI;QACX,MAAM,EAAE,IAAI;QACZ,eAAe,EAAE,IAAI;QACrB,aAAa,EAAE,IAAI;QACnB,KAAK,EAAE,IAAI;QACX,SAAS,EAAE,IAAI;QACf,WAAW,EAAE,IAAI;QACjB,GAAG,QAAQ;KACZ,CAAA;AACH,CAAC"}
|
package/dist/index.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export { QuickStartButton } from './components/QuickStartButton.js';
|
|
2
|
-
export { AIWidgetProvider } from './context/AIWidgetProvider.js';
|
|
3
|
-
export * from './context/hooks.js';
|
|
4
|
-
export { getFeaturesWithDefaults } from './features.js';
|
|
5
|
-
export type { AIWidgetFeatures, ChatFeatures } from './features.js';
|
|
6
|
-
export { StackspotAIWidget } from './StackspotAIWidget.js';
|
|
7
|
-
export { ChatEntry } from './state/ChatEntry.js';
|
|
8
|
-
export { ChatState } from './state/ChatState.js';
|
|
9
|
-
export type { MessageInterceptor } from './state/ChatState.js';
|
|
10
|
-
export { ChatTabsController } from './state/ChatTabsController.js';
|
|
11
|
-
export { ObservableState } from './state/ObservableState.js';
|
|
12
|
-
export type { Labeled, LabeledWithImage } from './state/types.js';
|
|
13
|
-
export { WidgetState } from './state/WidgetState.js';
|
|
14
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAA;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAC7D,cAAc,iBAAiB,CAAA;AAC/B,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAA;AACpD,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAC7C,YAAY,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AACzD,YAAY,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA"}
|
package/dist/index.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/* Attention: in order for the package "page" to work without linking the lib, we must export types separately, using the "type" keyword */
|
|
2
|
-
export { QuickStartButton } from './components/QuickStartButton.js';
|
|
3
|
-
export { AIWidgetProvider } from './context/AIWidgetProvider.js';
|
|
4
|
-
export * from './context/hooks.js';
|
|
5
|
-
export { getFeaturesWithDefaults } from './features.js';
|
|
6
|
-
export { StackspotAIWidget } from './StackspotAIWidget.js';
|
|
7
|
-
export { ChatEntry } from './state/ChatEntry.js';
|
|
8
|
-
export { ChatState } from './state/ChatState.js';
|
|
9
|
-
export { ChatTabsController } from './state/ChatTabsController.js';
|
|
10
|
-
export { ObservableState } from './state/ObservableState.js';
|
|
11
|
-
export { WidgetState } from './state/WidgetState.js';
|
|
12
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,2IAA2I;AAE3I,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAA;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAC7D,cAAc,iBAAiB,CAAA;AAC/B,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAA;AAEpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAE7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAEzD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA"}
|
package/dist/layout.css
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
@font-face {
|
|
2
|
-
font-family: "San Francisco";
|
|
3
|
-
font-weight: 400;
|
|
4
|
-
src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-regular-webfont.woff");
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
/* Scroll bars */
|
|
8
|
-
|
|
9
|
-
::-webkit-scrollbar-track {
|
|
10
|
-
background-color: transparent;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
::-webkit-scrollbar {
|
|
14
|
-
width: 0.25rem;
|
|
15
|
-
height: 0.5rem;
|
|
16
|
-
background-color: transparent;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
::-webkit-scrollbar-thumb {
|
|
20
|
-
background-color: var(--light-600);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
::-webkit-scrollbar-corner {
|
|
24
|
-
background-color: transparent;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/* Classes */
|
|
28
|
-
|
|
29
|
-
.ai-chat-widget {
|
|
30
|
-
border: 1px solid var(--light-600);
|
|
31
|
-
background-color: var(--light-400);
|
|
32
|
-
border-radius: 4px;
|
|
33
|
-
position: relative;
|
|
34
|
-
overflow: hidden;
|
|
35
|
-
width: 100%;
|
|
36
|
-
height: 100%;
|
|
37
|
-
|
|
38
|
-
&.minimized {
|
|
39
|
-
.chat-container {
|
|
40
|
-
padding: 10px;
|
|
41
|
-
width: calc(100% - 20px);
|
|
42
|
-
}
|
|
43
|
-
.minimized-header {
|
|
44
|
-
padding: 0 10px;
|
|
45
|
-
width: calc(100% - 20px);
|
|
46
|
-
}
|
|
47
|
-
.chat-window.narrow {
|
|
48
|
-
width: auto;
|
|
49
|
-
}
|
|
50
|
-
.chat-right-panel {
|
|
51
|
-
display: none;
|
|
52
|
-
}
|
|
53
|
-
.home-page {
|
|
54
|
-
.title {
|
|
55
|
-
margin-top: 40px;
|
|
56
|
-
font-size: 18px;
|
|
57
|
-
}
|
|
58
|
-
.subtitle {
|
|
59
|
-
font-size: 14px;
|
|
60
|
-
}
|
|
61
|
-
.title, .subtitle {
|
|
62
|
-
display: block;
|
|
63
|
-
text-align: center;
|
|
64
|
-
margin-left: 20px;
|
|
65
|
-
margin-right: 20px;
|
|
66
|
-
}
|
|
67
|
-
.shortcuts {
|
|
68
|
-
display: none;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
.message-input .action-box{
|
|
72
|
-
.feature-buttons, .expand {
|
|
73
|
-
display: none;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
.quick-command-selector {
|
|
77
|
-
width: auto;
|
|
78
|
-
left: 10px;
|
|
79
|
-
right: 10px;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.chat-window {
|
|
85
|
-
transition: width 0.3s;
|
|
86
|
-
width: 100%;
|
|
87
|
-
display: flex;
|
|
88
|
-
flex-direction: column;
|
|
89
|
-
align-items: center;
|
|
90
|
-
height: 100%;
|
|
91
|
-
|
|
92
|
-
&.narrow {
|
|
93
|
-
width: 50%;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.chat-container {
|
|
98
|
-
padding: 20px;
|
|
99
|
-
max-width: 1200px;
|
|
100
|
-
width: calc(100% - 40px);
|
|
101
|
-
display: flex;
|
|
102
|
-
flex-direction: column;
|
|
103
|
-
flex: 1;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.chat-content {
|
|
107
|
-
display: flex;
|
|
108
|
-
flex-direction: column;
|
|
109
|
-
flex: 1;
|
|
110
|
-
flex-basis: 0;
|
|
111
|
-
overflow: auto;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.chat-right-panel {
|
|
115
|
-
position: absolute;
|
|
116
|
-
width: 50%;
|
|
117
|
-
left: 100%;
|
|
118
|
-
top: 0;
|
|
119
|
-
bottom: 0;
|
|
120
|
-
transition: left 0.3s ease-in-out;
|
|
121
|
-
background-color: var(--light-300);
|
|
122
|
-
border-radius: 4px;
|
|
123
|
-
border-left: 2px solid var(--light-600);
|
|
124
|
-
display: flex;
|
|
125
|
-
flex-direction: column;
|
|
126
|
-
|
|
127
|
-
&.visible {
|
|
128
|
-
left: 50%;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/* fixes placeholder description */
|
|
133
|
-
.no-data-placeholder {
|
|
134
|
-
> div > p {
|
|
135
|
-
text-align: center;
|
|
136
|
-
}
|
|
137
|
-
}
|
package/dist/regex.d.ts
DELETED
package/dist/regex.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"regex.d.ts","sourceRoot":"","sources":["../src/regex.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,QAAkB,CAAA;AAChD,eAAO,MAAM,UAAU,QAAiB,CAAA"}
|
package/dist/regex.js
DELETED
package/dist/regex.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"regex.js","sourceRoot":"","sources":["../src/regex.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG,eAAe,CAAA;AAChD,MAAM,CAAC,MAAM,UAAU,GAAG,cAAc,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { WithChildren } from '../types.js';
|
|
2
|
-
interface Props extends WithChildren {
|
|
3
|
-
title: React.ReactNode;
|
|
4
|
-
description: React.ReactNode;
|
|
5
|
-
onClose: () => void;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Default layout for a right panel.
|
|
9
|
-
*/
|
|
10
|
-
export declare const DefaultPanel: ({ description, onClose, title, children }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
12
|
-
//# sourceMappingURL=DefaultPanel.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultPanel.d.ts","sourceRoot":"","sources":["../../src/right-panel/DefaultPanel.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAEvC,UAAU,KAAM,SAAQ,YAAY;IAClC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AA+BD;;GAEG;AACH,eAAO,MAAM,YAAY,8CAA+C,KAAK,4CAiB5E,CAAA"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Text } from '@citric/core';
|
|
3
|
-
import { Times } from '@citric/icons';
|
|
4
|
-
import { IconButton } from '@citric/ui';
|
|
5
|
-
import { useTranslate } from '@stack-spot/portal-translate';
|
|
6
|
-
import { styled } from 'styled-components';
|
|
7
|
-
const PanelBox = styled.div `
|
|
8
|
-
padding: 25px;
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
gap: 25px;
|
|
12
|
-
flex: 1;
|
|
13
|
-
overflow: hidden;
|
|
14
|
-
|
|
15
|
-
header {
|
|
16
|
-
display: flex;
|
|
17
|
-
flex-direction: row;
|
|
18
|
-
gap: 10px;
|
|
19
|
-
|
|
20
|
-
.title {
|
|
21
|
-
display: flex;
|
|
22
|
-
flex-direction: column;
|
|
23
|
-
gap: 10px;
|
|
24
|
-
flex: 1;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
article {
|
|
29
|
-
flex: 1;
|
|
30
|
-
display: flex;
|
|
31
|
-
flex-direction: column;
|
|
32
|
-
overflow: auto;
|
|
33
|
-
}
|
|
34
|
-
`;
|
|
35
|
-
/**
|
|
36
|
-
* Default layout for a right panel.
|
|
37
|
-
*/
|
|
38
|
-
export const DefaultPanel = ({ description, onClose, title, children }) => {
|
|
39
|
-
const t = useTranslate(dictionary);
|
|
40
|
-
return (_jsxs(PanelBox, { children: [_jsxs("header", { children: [_jsxs("div", { className: "title", children: [typeof title === 'string' ? _jsx(Text, { appearance: "h5", children: title }) : title, typeof description === 'string' ? _jsx(Text, { colorScheme: "light.700", children: description }) : description] }), _jsx(IconButton, { title: t.close, "aria-label": t.close, onClick: onClose, children: _jsx(Times, {}) })] }), _jsx("article", { children: children })] }));
|
|
41
|
-
};
|
|
42
|
-
const dictionary = {
|
|
43
|
-
en: {
|
|
44
|
-
close: 'Close',
|
|
45
|
-
},
|
|
46
|
-
pt: {
|
|
47
|
-
close: 'Fechar',
|
|
48
|
-
},
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=DefaultPanel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultPanel.js","sourceRoot":"","sources":["../../src/right-panel/DefaultPanel.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AACvC,OAAO,EAAc,YAAY,EAAE,MAAM,8BAA8B,CAAA;AACvE,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAS1C,MAAM,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2B1B,CAAA;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAE,WAAW,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAS,EAAE,EAAE;IAC/E,MAAM,CAAC,GAAG,YAAY,CAAC,UAAU,CAAC,CAAA;IAElC,OAAO,CACL,MAAC,QAAQ,eACP,6BACE,eAAK,SAAS,EAAC,OAAO,aACnB,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,UAAU,EAAC,IAAI,YAAE,KAAK,GAAQ,CAAC,CAAC,CAAC,KAAK,EACxE,OAAO,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,WAAW,EAAC,WAAW,YAAE,WAAW,GAAQ,CAAC,CAAC,CAAC,WAAW,IAC/F,EACN,KAAC,UAAU,IAAC,KAAK,EAAE,CAAC,CAAC,KAAK,gBAAc,CAAC,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,YAC/D,KAAC,KAAK,KAAG,GACE,IACN,EACT,4BAAU,QAAQ,GAAW,IACpB,CACZ,CAAA;AACH,CAAC,CAAA;AAED,MAAM,UAAU,GAAG;IACjB,EAAE,EAAE;QACF,KAAK,EAAE,OAAO;KACf;IACD,EAAE,EAAE;QACF,KAAK,EAAE,QAAQ;KAChB;CACmB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RightPanel.d.ts","sourceRoot":"","sources":["../../src/right-panel/RightPanel.tsx"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,UAAU,iCAGtB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RightPanel.js","sourceRoot":"","sources":["../../src/right-panel/RightPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAE9C;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,EAAE;IAC7B,MAAM,OAAO,GAAG,oBAAoB,EAAE,CAAA;IACtC,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
interface ContextValue {
|
|
2
|
-
/**
|
|
3
|
-
* The current content of the right panel.
|
|
4
|
-
*/
|
|
5
|
-
content?: React.ReactNode;
|
|
6
|
-
/**
|
|
7
|
-
* Sets the current content of the right panel.
|
|
8
|
-
*/
|
|
9
|
-
setContent?: (content: React.ReactNode) => void;
|
|
10
|
-
/**
|
|
11
|
-
* A reference to the right panel HTML Element.
|
|
12
|
-
*/
|
|
13
|
-
panel?: React.RefObject<HTMLDivElement>;
|
|
14
|
-
/**
|
|
15
|
-
* A reference to the chat window at the left of the right panel.
|
|
16
|
-
*/
|
|
17
|
-
chatWindow?: React.RefObject<HTMLDivElement>;
|
|
18
|
-
/**
|
|
19
|
-
* A function to run when the right panel is closed for the next time.
|
|
20
|
-
*/
|
|
21
|
-
onCloseNext: React.MutableRefObject<(() => void) | undefined>;
|
|
22
|
-
}
|
|
23
|
-
export declare const RightPanelContext: import("react").Context<ContextValue>;
|
|
24
|
-
export declare const RightPanelProvider: ({ panel, chatWindow, children }: Pick<ContextValue, "panel" | "chatWindow"> & {
|
|
25
|
-
children: React.ReactNode;
|
|
26
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
export {};
|
|
28
|
-
//# sourceMappingURL=RightPanelProvider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RightPanelProvider.d.ts","sourceRoot":"","sources":["../../src/right-panel/RightPanelProvider.tsx"],"names":[],"mappings":"AAEA,UAAU,YAAY;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,SAAS,KAAK,IAAI,CAAC;IAChD;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IACxC;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IAC7C;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC,CAAC;CAC/D;AAED,eAAO,MAAM,iBAAiB,uCAAuE,CAAA;AAErG,eAAO,MAAM,kBAAkB,oCACI,IAAI,CAAC,YAAY,EAAE,OAAO,GAAG,YAAY,CAAC,GAAG;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,4CAM5G,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { createContext, useMemo, useRef, useState } from 'react';
|
|
3
|
-
export const RightPanelContext = createContext({ onCloseNext: { current: undefined } });
|
|
4
|
-
export const RightPanelProvider = ({ panel, chatWindow, children }) => {
|
|
5
|
-
const [content, setContent] = useState();
|
|
6
|
-
const onCloseNext = useRef();
|
|
7
|
-
const value = useMemo(() => ({ content, setContent, panel, chatWindow, onCloseNext }), [content, panel, chatWindow]);
|
|
8
|
-
return _jsx(RightPanelContext.Provider, { value: value, children: children });
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=RightPanelProvider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RightPanelProvider.js","sourceRoot":"","sources":["../../src/right-panel/RightPanelProvider.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAyBhE,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAe,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,CAAC,CAAA;AAErG,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAA8E,EAC3G,EAAE;IACF,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,EAAmB,CAAA;IACzD,MAAM,WAAW,GAAG,MAAM,EAA4B,CAAA;IACtD,MAAM,KAAK,GAAG,OAAO,CAAe,GAAG,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,CAAC,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAA;IAClI,OAAO,KAAC,iBAAiB,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YAAG,QAAQ,GAA8B,CAAA;AAC1F,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/right-panel/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,MAAM,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/right-panel/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,CAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
interface RightPanelOptions {
|
|
2
|
-
title: React.ReactNode;
|
|
3
|
-
description: React.ReactNode;
|
|
4
|
-
onClose?: () => void;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* @returns teh current content of the right panel
|
|
8
|
-
*/
|
|
9
|
-
export declare function useRightPanelContent(): import("react").ReactNode;
|
|
10
|
-
/**
|
|
11
|
-
* Opens, closes or checks the visibility of the right panel.
|
|
12
|
-
*/
|
|
13
|
-
export declare function useRightPanel(): {
|
|
14
|
-
open: (content: React.ReactNode, options?: RightPanelOptions) => void;
|
|
15
|
-
close: () => void;
|
|
16
|
-
isOpen: () => boolean;
|
|
17
|
-
};
|
|
18
|
-
export {};
|
|
19
|
-
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/right-panel/hooks.tsx"],"names":[],"mappings":"AAKA,UAAU,iBAAiB;IACzB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,oBAAoB,8BAGnC;AAED;;GAEG;AACH,wBAAgB,aAAa;oBAOF,KAAK,CAAC,SAAS,YAAY,iBAAiB;;;EAwBtE"}
|