@spscommerce/max 0.11.2 → 0.12.0
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/lib/MaxPanel.d.ts +2 -1
- package/lib/components/AgentTextarea.d.ts +2 -1
- package/lib/components/MaxPanelHeaderActions.d.ts +2 -1
- package/lib/index.js +5354 -5313
- package/lib/index.umd.cjs +529 -529
- package/package.json +1 -1
package/lib/MaxPanel.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { FeatureFlagsTitles } from "./models/FeatureFlagsTitles";
|
|
|
3
3
|
import { CurrentApp } from "./models/CurrentApp";
|
|
4
4
|
import { CurrentUser } from "./models/CurrentUser";
|
|
5
5
|
import type { AdditionalContextProvider } from "./models/AdditionalContext";
|
|
6
|
-
export declare function MaxPanel({ token, currentUser, hideAgentPanel, isAgentPanelOpen, isInCustomerView, flags, env, currentApp, context, currentConversationId, locale, }: {
|
|
6
|
+
export declare function MaxPanel({ token, currentUser, hideAgentPanel, isAgentPanelOpen, isInCustomerView, flags, env, currentApp, context, currentConversationId, locale, trackEvent, }: {
|
|
7
7
|
token: string | null;
|
|
8
8
|
currentUser: CurrentUser | undefined;
|
|
9
9
|
hideAgentPanel: () => void;
|
|
@@ -19,4 +19,5 @@ export declare function MaxPanel({ token, currentUser, hideAgentPanel, isAgentPa
|
|
|
19
19
|
context: AdditionalContextProvider;
|
|
20
20
|
currentConversationId?: string | null;
|
|
21
21
|
locale?: string;
|
|
22
|
+
trackEvent?: (eventName: string, eventProperties?: Record<string, unknown>) => void;
|
|
22
23
|
}): React.ReactNode;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
export declare function AgentTextarea({ onSendMessage, setMessage, message, isMessageLoading, isReadOnly, conversationFrozen, }: {
|
|
2
|
+
export declare function AgentTextarea({ onSendMessage, setMessage, message, isMessageLoading, isReadOnly, conversationFrozen, onTrackEvent, }: {
|
|
3
3
|
onSendMessage: (message: string, appInitiated: boolean, currentAppName?: string | undefined) => Promise<boolean>;
|
|
4
4
|
setMessage: (message: string) => void;
|
|
5
5
|
message: string;
|
|
6
6
|
isMessageLoading: boolean;
|
|
7
7
|
isReadOnly?: boolean;
|
|
8
8
|
conversationFrozen?: boolean;
|
|
9
|
+
onTrackEvent?: (eventName: string, eventProperties?: Record<string, any>) => void;
|
|
9
10
|
}): React.JSX.Element;
|
|
@@ -9,6 +9,7 @@ type MaxPanelHeaderActionsProps = {
|
|
|
9
9
|
onToggleConversationList: () => void;
|
|
10
10
|
onStartNewConversation: () => void;
|
|
11
11
|
onClosePanel: () => void;
|
|
12
|
+
onTrackEvent?: (eventName: string, eventProperties?: Record<string, any>) => void;
|
|
12
13
|
};
|
|
13
|
-
export declare function MaxPanelHeaderActions({ isCompact, showConversationList, conversationToggleLabel, newConversationLabel, newConversationCompactTitle, closePanelLabel, onToggleConversationList, onStartNewConversation, onClosePanel, }: MaxPanelHeaderActionsProps): React.ReactNode;
|
|
14
|
+
export declare function MaxPanelHeaderActions({ isCompact, showConversationList, conversationToggleLabel, newConversationLabel, newConversationCompactTitle, closePanelLabel, onToggleConversationList, onStartNewConversation, onClosePanel, onTrackEvent, }: MaxPanelHeaderActionsProps): React.ReactNode;
|
|
14
15
|
export {};
|