@tylertech/forge-ai 0.14.0-dev.0 → 0.14.0-dev.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.
@@ -38,6 +38,8 @@ declare global {
38
38
  }
39
39
  interface HTMLElementEventMap {
40
40
  'forge-ai-chatbot-launcher-conversation-start': CustomEvent<void>;
41
+ 'forge-ai-chatbot-launcher-history-open': CustomEvent<void>;
42
+ 'forge-ai-chatbot-launcher-history-close': CustomEvent<void>;
41
43
  'forge-ai-chatbot-launcher-thread-rename': CustomEvent<ForgeAiChatbotLauncherThreadRenameEventData>;
42
44
  'forge-ai-chatbot-launcher-thread-delete': CustomEvent<ForgeAiChatbotLauncherThreadDeleteEventData>;
43
45
  'forge-ai-chatbot-launcher-thread-select': CustomEvent<ForgeAiChatbotLauncherThreadSelectEventData>;
@@ -85,6 +87,8 @@ export declare const AiChatbotLauncherComponentTagName: keyof HTMLElementTagName
85
87
  * @event {CustomEvent<ForgeAiChatbotToolCallEventData>} forge-ai-chatbot-tool-call - Fired when a tool needs to be executed
86
88
  * @event {CustomEvent<ForgeAiChatbotErrorEventData>} forge-ai-chatbot-error - Fired when an error occurs
87
89
  * @event {CustomEvent<void>} forge-ai-chatbot-launcher-conversation-start - Fired when transitioning from welcome to conversation view
90
+ * @event {CustomEvent<void>} forge-ai-chatbot-launcher-history-open - Fired when transitioning to the full-height history view
91
+ * @event {CustomEvent<void>} forge-ai-chatbot-launcher-history-close - Fired when leaving the full-height history view
88
92
  * @event {CustomEvent<ForgeAiChatbotResponseFeedbackEventData>} forge-ai-chatbot-response-feedback - Fired when user provides feedback on a response
89
93
  * @event {CustomEvent<void>} forge-ai-chatbot-info - Fired when header info option is selected
90
94
  * @event {CustomEvent<ForgeAiChatbotAgentChangeEventData>} forge-ai-chatbot-agent-change - Fired when agent selection changes
@@ -183,9 +183,15 @@ setViewState_fn = function(next) {
183
183
  if (this._viewState === next) {
184
184
  return;
185
185
  }
186
- toggleState(__privateGet(this, _internals), this._viewState, false);
186
+ const previous = this._viewState;
187
+ toggleState(__privateGet(this, _internals), previous, false);
187
188
  toggleState(__privateGet(this, _internals), next, true);
188
189
  this._viewState = next;
190
+ if (next === "history") {
191
+ this._dispatchHostEvent({ type: "forge-ai-chatbot-launcher-history-open" });
192
+ } else if (previous === "history") {
193
+ this._dispatchHostEvent({ type: "forge-ai-chatbot-launcher-history-close" });
194
+ }
189
195
  };
190
196
  transitionToConversation_fn = function() {
191
197
  if (this._viewState === "conversation") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tylertech/forge-ai",
3
- "version": "0.14.0-dev.0",
3
+ "version": "0.14.0-dev.1",
4
4
  "description": "A library of Tyler Forge™ AI chat interface web components.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Tyler Technologies, Inc.",