@nlux/react
Advanced tools
Comparing version 2.1.10-beta to 2.2.11-beta
import { useEffect, JSX, RefObject, FC, ReactElement, ComponentClass, ReactNode, Context } from 'react'; | ||
import { MessageOptions as MessageOptions$2, StandardChatAdapter as StandardChatAdapter$1, EventsMap as EventsMap$1, DisplayOptions as DisplayOptions$1, ConversationOptions as ConversationOptions$1, ComposerOptions as ComposerOptions$1, ContextItems, AiContext as AiContext$1, ContextItemDataType, ContextAdapter, ContextAdapterBuilder } from '@nlux/core'; | ||
export { AiChatPropsInEvents, ComposerOptions, ConversationLayout, ConversationOptions, DisplayOptions, ErrorCallback, ErrorEventDetails, EventCallback, EventName, EventsMap, HighlighterExtension, HistoryPayloadSize, MessageReceivedCallback, MessageRenderedCallback, MessageSentCallback, MessageStreamStartedCallback, PreDestroyCallback, PreDestroyEventDetails, ReadyCallback, ReadyEventDetails, UpdatableAiChatProps } from '@nlux/core'; | ||
import { MessageOptions as MessageOptions$2, StandardChatAdapter as StandardChatAdapter$1, EventsConfig as EventsConfig$1, DisplayOptions as DisplayOptions$1, ConversationOptions as ConversationOptions$1, ComposerOptions as ComposerOptions$1, ContextItems, AiContext as AiContext$1, ContextItemDataType, ContextAdapter, ContextAdapterBuilder } from '@nlux/core'; | ||
export { AiChatPropsInEvents, ComposerOptions, ConversationLayout, ConversationOptions, DisplayOptions, ErrorCallback, ErrorEventDetails, EventCallback, EventName, EventsConfig, HighlighterExtension, HistoryPayloadSize, MessageReceivedCallback, MessageReceivedEventDetails, MessageRenderedCallback, MessageRenderedEventDetails, MessageSentCallback, MessageSentEventDetails, MessageStreamStartedCallback, MessageStreamStartedEventDetails, PreDestroyCallback, PreDestroyEventDetails, ReadyCallback, ReadyEventDetails, UpdatableAiChatProps } from '@nlux/core'; | ||
@@ -281,3 +281,3 @@ type UseEffectParams = Parameters<typeof useEffect>; | ||
className?: string; | ||
events?: Partial<EventsMap<AiMsg>>; | ||
events?: EventsConfig<AiMsg>; | ||
initialConversation?: ChatItem<AiMsg>[]; | ||
@@ -365,3 +365,3 @@ composerOptions?: ComposerOptions; | ||
type PreDestroyCallback<AiMsg = string> = (preDestroyDetails: PreDestroyEventDetails<AiMsg>) => void; | ||
type EventsMap<AiMsg = string> = { | ||
type EventsMap<AiMsg> = { | ||
ready: ReadyCallback<AiMsg>; | ||
@@ -375,2 +375,3 @@ preDestroy: PreDestroyCallback<AiMsg>; | ||
}; | ||
type EventsConfig<AiMsg = string> = Partial<EventsMap<AiMsg>>; | ||
@@ -561,3 +562,3 @@ type CallbackArgType = object | string | number | boolean | symbol | null | undefined | void; | ||
*/ | ||
events?: Partial<EventsMap$1<AiMsg>>; | ||
events?: EventsConfig$1<AiMsg>; | ||
/** | ||
@@ -564,0 +565,0 @@ * The class name to add to the root element of the component. |
{ | ||
"name": "@nlux/react", | ||
"version": "2.1.10-beta", | ||
"version": "2.2.11-beta", | ||
"description": "nlux React is a library for building conversational AI interfaces, with support for OpenAI, HuggingFace, and more.", | ||
@@ -62,3 +62,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@nlux/core": "2.1.10-beta" | ||
"@nlux/core": "2.2.11-beta" | ||
}, | ||
@@ -65,0 +65,0 @@ "peerDependencies": { |
308564
1740
+ Added@nlux/core@2.2.11-beta(transitive)
- Removed@nlux/core@2.1.10-beta(transitive)
Updated@nlux/core@2.2.11-beta