@cas0570/chat-widget 0.0.7 → 0.0.9
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/components/ChatWidget.d.ts +1 -1
- package/dist/components/Icons.d.ts +0 -6
- package/dist/components/PopoutWindow.d.ts +1 -1
- package/dist/components/index.d.ts +1 -2
- package/dist/geoapps-chat-widget.js +732 -652
- package/dist/geoapps-chat-widget.umd.cjs +22 -11
- package/dist/hooks/__tests__/useAuth.test.d.ts +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useAuth.d.ts +30 -0
- package/dist/types.d.ts +12 -3
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/token.d.ts +9 -0
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ChatWidgetProps } from '../types';
|
|
2
2
|
|
|
3
|
-
export declare function ChatWidget({ apiUrl, tenantId, title, subtitle, placeholder, greeting, primaryColor, position, defaultOpen, defaultSize,
|
|
3
|
+
export declare function ChatWidget({ apiUrl, authUrl, tenantId, title, subtitle, placeholder, greeting, primaryColor, position, defaultOpen, defaultSize, tokenStorageKey, onOpen, onClose, onMessageSent, onResponseReceived, }: ChatWidgetProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -5,12 +5,6 @@ interface ResizeIconProps {
|
|
|
5
5
|
className?: string;
|
|
6
6
|
}
|
|
7
7
|
export declare function ResizeIcon({ size, className }: ResizeIconProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export declare function ExpandIcon({ className }: {
|
|
9
|
-
className?: string;
|
|
10
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export declare function ContractIcon({ className }: {
|
|
12
|
-
className?: string;
|
|
13
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
14
8
|
export declare function PopoutIcon({ className }: {
|
|
15
9
|
className?: string;
|
|
16
10
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,9 +7,8 @@ export { ToggleButton } from './ToggleButton';
|
|
|
7
7
|
export { SessionHistory } from './SessionHistory';
|
|
8
8
|
export { ConfirmModal } from './ConfirmModal';
|
|
9
9
|
export { MarkdownRenderer } from './MarkdownRenderer';
|
|
10
|
-
export { usePopout } from '../hooks/usePopout';
|
|
11
10
|
export { getPopoutHTML } from './PopoutWindow';
|
|
12
11
|
export { TypingIndicator } from './TypingIndicator';
|
|
13
12
|
export { HeaderMenu } from './HeaderMenu';
|
|
14
|
-
export { ResizeIcon,
|
|
13
|
+
export { ResizeIcon, PopoutIcon, CloseIcon, TrashIcon, ChatIcon, NewChatIcon, HistoryIcon, ArrowLeftIcon, } from './Icons';
|
|
15
14
|
export type { PopoutConfig } from './PopoutWindow';
|