@luzmo/react-analytics-components-kit 1.0.9-beta.10 → 1.0.9-beta.12

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.
@@ -1,5 +1,5 @@
1
1
  import { EventName, ReactWebComponent } from '@lit/react';
2
- import { LuzmoAiChat as LuzmoAiChatClass, AiChatCompleteEvent, AiChatConversationIdChangedEventDetail, AiChatDatasetsChangedEventDetail, AiChatMessageSentEventDetail, AiChatStepEvent, AssistantMessageActionEventDetail } from '@luzmo/analytics-components-kit/ai-chat';
2
+ import { LuzmoAiChat as LuzmoAiChatClass, AiChatCompleteEvent, AiChatConversationIdChangedEventDetail, AiChatDatasetsChangedEventDetail, AiChatMessageSentEventDetail, AiChatStepEvent, AssistantMessageActionEventDetail, AssistantMessageFeedbackEventDetail } from '@luzmo/analytics-components-kit/ai-chat';
3
3
  /**
4
4
  * React wrapper for <luzmo-ai-chat>
5
5
  *
@@ -10,6 +10,7 @@ import { LuzmoAiChat as LuzmoAiChatClass, AiChatCompleteEvent, AiChatConversatio
10
10
  * @event onLuzmoStop - Fired when an in-flight prompt is stopped
11
11
  * @event onLuzmoConversationIdChanged - Fired when the conversation ID is updated from the API
12
12
  * @event onLuzmoAssistantMessageAction - Fired when a built-in assistant message action is activated (after confirmation when `confirm` is set)
13
+ * @event onLuzmoAssistantMessageFeedback - Fired once when the user selects, switches or clears a thumbs rating, after the session holds the new rating. Not fired for programmatic updates.
13
14
  */
14
15
  export declare const LuzmoAiChat: ReactWebComponent<LuzmoAiChatClass, {
15
16
  onLuzmoMessageSent: EventName<CustomEvent<AiChatMessageSentEventDetail>>;
@@ -19,6 +20,7 @@ export declare const LuzmoAiChat: ReactWebComponent<LuzmoAiChatClass, {
19
20
  onLuzmoStop: EventName<CustomEvent<void>>;
20
21
  onLuzmoConversationIdChanged: EventName<CustomEvent<AiChatConversationIdChangedEventDetail>>;
21
22
  onLuzmoAssistantMessageAction: EventName<CustomEvent<AssistantMessageActionEventDetail>>;
23
+ onLuzmoAssistantMessageFeedback: EventName<CustomEvent<AssistantMessageFeedbackEventDetail>>;
22
24
  }>;
23
25
  /** The underlying custom element type for LuzmoAiChat */
24
26
  export type LuzmoAiChatElement = LuzmoAiChatClass;
@@ -12,7 +12,8 @@ const LuzmoAiChatComponent = createComponent({
12
12
  onLuzmoComplete: 'luzmo-complete',
13
13
  onLuzmoStop: 'luzmo-stop',
14
14
  onLuzmoConversationIdChanged: 'luzmo-conversation-id-changed',
15
- onLuzmoAssistantMessageAction: 'luzmo-assistant-message-action'
15
+ onLuzmoAssistantMessageAction: 'luzmo-assistant-message-action',
16
+ onLuzmoAssistantMessageFeedback: 'luzmo-assistant-message-feedback'
16
17
  }
17
18
  });
18
19
  /**
@@ -25,5 +26,6 @@ const LuzmoAiChatComponent = createComponent({
25
26
  * @event onLuzmoStop - Fired when an in-flight prompt is stopped
26
27
  * @event onLuzmoConversationIdChanged - Fired when the conversation ID is updated from the API
27
28
  * @event onLuzmoAssistantMessageAction - Fired when a built-in assistant message action is activated (after confirmation when `confirm` is set)
29
+ * @event onLuzmoAssistantMessageFeedback - Fired once when the user selects, switches or clears a thumbs rating, after the session holds the new rating. Not fired for programmatic updates.
28
30
  */
29
31
  export const LuzmoAiChat = LuzmoAiChatComponent;
package/package.json CHANGED
@@ -29,7 +29,7 @@
29
29
  "peerDependencies": {
30
30
  "@lit/react": "^1.0.6",
31
31
  "react": "^18.0.0 || ^19.0.0",
32
- "@luzmo/analytics-components-kit": "^1.0.9-beta.10"
32
+ "@luzmo/analytics-components-kit": "^1.0.9-beta.12"
33
33
  },
34
- "version": "1.0.9-beta.10"
34
+ "version": "1.0.9-beta.12"
35
35
  }