@ensembleapp/client-sdk 0.0.52 → 0.0.54
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/dist/index.d.ts +10 -5
- package/dist/index.js +151 -115
- package/dist/index.js.map +1 -1
- package/dist/widget/widget.global.js +47 -47
- package/dist/widget/widget.global.js.map +1 -1
- package/package.json +15 -15
package/dist/index.d.ts
CHANGED
|
@@ -324,7 +324,7 @@ declare const createWidget: <TEnriched extends EnrichedResults = EnrichedResults
|
|
|
324
324
|
render(payload: any, enriched: TEnriched, options: WidgetRenderOptions): unknown;
|
|
325
325
|
}) => UIWidgetDefinition<FlexibleSchema, TEnriched>;
|
|
326
326
|
|
|
327
|
-
type DisplayMode = 'full' | 'brief';
|
|
327
|
+
type DisplayMode = 'full' | 'brief' | 'hide-tools';
|
|
328
328
|
|
|
329
329
|
interface ChatWidgetStyles {
|
|
330
330
|
/**
|
|
@@ -405,7 +405,7 @@ interface ChatWidgetConfig extends UseChatConfig {
|
|
|
405
405
|
initialUserMessage?: string;
|
|
406
406
|
/** Placeholder text for the input box */
|
|
407
407
|
inputPlaceholder?: string;
|
|
408
|
-
/** Display mode: 'brief' (default) collapses previous steps, 'full' shows everything */
|
|
408
|
+
/** Display mode: 'brief' (default) collapses previous steps, 'full' shows everything, 'hide-tools' omits tool calls */
|
|
409
409
|
displayMode?: DisplayMode;
|
|
410
410
|
className?: string;
|
|
411
411
|
styles?: ChatWidgetStyles;
|
|
@@ -537,8 +537,8 @@ interface MessageRendererProps {
|
|
|
537
537
|
widgets?: AnyUIWidgetDefinition[];
|
|
538
538
|
/** Readonly mode - disables all widget interactions */
|
|
539
539
|
readonly?: boolean;
|
|
540
|
-
/** Display mode: 'brief' collapses previous steps, 'full' shows everything */
|
|
541
|
-
displayMode?: 'brief' | 'full';
|
|
540
|
+
/** Display mode: 'brief' collapses previous steps, 'full' shows everything, 'hide-tools' omits tool calls */
|
|
541
|
+
displayMode?: 'brief' | 'full' | 'hide-tools';
|
|
542
542
|
/** Tag expansion state and handler */
|
|
543
543
|
tagExpansion?: {
|
|
544
544
|
state: Map<string, boolean>;
|
|
@@ -590,6 +590,11 @@ declare function BriefDisplayMode({ sections, messageId, renderPart, renderGroup
|
|
|
590
590
|
*/
|
|
591
591
|
declare function FullDisplayMode({ sections, messageId, renderPart, renderGroup, }: DisplayModeProps): react_jsx_runtime.JSX.Element;
|
|
592
592
|
|
|
593
|
+
/**
|
|
594
|
+
* Hide-tools display mode - shows all text and widgets while omitting tool-call rows.
|
|
595
|
+
*/
|
|
596
|
+
declare function HideToolsDisplayMode({ sections, messageId, renderPart, renderGroup, }: DisplayModeProps): react_jsx_runtime.JSX.Element;
|
|
597
|
+
|
|
593
598
|
type RegisterChatWidgetsParams = {
|
|
594
599
|
api: ApiConfig;
|
|
595
600
|
threadId: string;
|
|
@@ -637,4 +642,4 @@ declare const getVendorCardsWidget: (isProd?: boolean) => SDKUIWidgetDefinition[
|
|
|
637
642
|
|
|
638
643
|
declare function cn(...inputs: ClassValue[]): string;
|
|
639
644
|
|
|
640
|
-
export { type AgentVersion, type AnyUIWidgetDefinition, type ApiConfig, type ApprovalUIConfig, BriefDisplayMode, BriefDisplayMode as BriefRenderer, type ChatMessage, type ChatMessageSection, ChatWidget, type ChatWidgetFeedbackOptions, type ChatWidgetHandle, type ChatWidgetConfig as ChatWidgetProps, type ChatWidgetSpeechToTextOptions, type ChatWidgetStyles, type ChatWidgetVoiceOptions, type CustomerReactDOM, type DisplayMode, type DisplayModeProps, type EmbeddableChatWidgetConfig, type EnrichedResults, type FeedbackConfig, type FeedbackHandlers, type FetchApprovalConfigOptions, FullDisplayMode, FullDisplayMode as FullRenderer, type InvokeTool, type MessageContext, MessageRenderer, type MessageRendererProps, type PendingToolApproval, type PendingToolOutput, type PopupAnchorConfig, PopupChatWidget, type PopupChatWidgetProps, type DisplayModeProps as RendererProps, type SDKUIWidgetDefinition, SDK_WIDGET_MARKER, type StructuredMessagePayload, type SubmitFeedbackParams, TagGroupDisplay, type TagGroupDisplayProps, ToolCallDisplay, type ToolCallDisplayProps, type ToolInvokeRequest, type ToolInvokeResult, type ToolPart, type UIMessagePart, type UIWidgetDefinition, type UseChatConfig, type UseFeedbackConfig, type WidgetRenderOptions, cn, createSDKWidget, createWidget, defaultChatWidgets, fetchApprovalConfig, getVendorCardsWidget, isSDKWidget, registerChatWidgets, transformMessage, useChat, useFeedback };
|
|
645
|
+
export { type AgentVersion, type AnyUIWidgetDefinition, type ApiConfig, type ApprovalUIConfig, BriefDisplayMode, BriefDisplayMode as BriefRenderer, type ChatMessage, type ChatMessageSection, ChatWidget, type ChatWidgetFeedbackOptions, type ChatWidgetHandle, type ChatWidgetConfig as ChatWidgetProps, type ChatWidgetSpeechToTextOptions, type ChatWidgetStyles, type ChatWidgetVoiceOptions, type CustomerReactDOM, type DisplayMode, type DisplayModeProps, type EmbeddableChatWidgetConfig, type EnrichedResults, type FeedbackConfig, type FeedbackHandlers, type FetchApprovalConfigOptions, FullDisplayMode, FullDisplayMode as FullRenderer, HideToolsDisplayMode, HideToolsDisplayMode as HideToolsRenderer, type InvokeTool, type MessageContext, MessageRenderer, type MessageRendererProps, type PendingToolApproval, type PendingToolOutput, type PopupAnchorConfig, PopupChatWidget, type PopupChatWidgetProps, type DisplayModeProps as RendererProps, type SDKUIWidgetDefinition, SDK_WIDGET_MARKER, type StructuredMessagePayload, type SubmitFeedbackParams, TagGroupDisplay, type TagGroupDisplayProps, ToolCallDisplay, type ToolCallDisplayProps, type ToolInvokeRequest, type ToolInvokeResult, type ToolPart, type UIMessagePart, type UIWidgetDefinition, type UseChatConfig, type UseFeedbackConfig, type WidgetRenderOptions, cn, createSDKWidget, createWidget, defaultChatWidgets, fetchApprovalConfig, getVendorCardsWidget, isSDKWidget, registerChatWidgets, transformMessage, useChat, useFeedback };
|