@telnyx/ai-chat-widget 2.1.0 → 2.1.1
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.cjs +98 -49
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +9 -6
- package/dist/index.mjs +11166 -10723
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +98 -49
- package/dist/index.umd.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
3
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
2
4
|
import * as React_2 from 'react';
|
|
5
|
+
import { RefAttributes } from 'react';
|
|
3
6
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
4
7
|
|
|
5
8
|
declare type BaseProps = {
|
|
@@ -47,7 +50,7 @@ declare type BaseProps = {
|
|
|
47
50
|
onHelpAction?: () => void;
|
|
48
51
|
};
|
|
49
52
|
|
|
50
|
-
export declare const ChatWidget: ({ endpoint, chatAPIUrl, feedbackAPIUrl, user, onHelpAction, open, setOpen, placeholders, mountPosition, mountDirection, offsetX, offsetY, icon, }: ChatWidgetProps) =>
|
|
53
|
+
export declare const ChatWidget: ({ endpoint, chatAPIUrl, feedbackAPIUrl, user, onHelpAction, open, setOpen, placeholders, mountPosition, mountDirection, offsetX, offsetY, icon, }: ChatWidgetProps) => JSX_2.Element;
|
|
51
54
|
|
|
52
55
|
declare interface ChatWidgetNoMounting extends BaseProps {
|
|
53
56
|
open?: never;
|
|
@@ -96,16 +99,16 @@ declare type MountingProps = {
|
|
|
96
99
|
icon?: never;
|
|
97
100
|
};
|
|
98
101
|
|
|
99
|
-
export declare const Tooltip:
|
|
102
|
+
export declare const Tooltip: FC<TooltipPrimitive.TooltipProps>;
|
|
100
103
|
|
|
101
104
|
export declare const TooltipContent: {
|
|
102
|
-
({ className, sideOffset, ...props }: React_2.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>):
|
|
105
|
+
({ className, sideOffset, ...props }: React_2.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>): JSX_2.Element;
|
|
103
106
|
displayName: string;
|
|
104
107
|
};
|
|
105
108
|
|
|
106
|
-
export declare const TooltipProvider:
|
|
109
|
+
export declare const TooltipProvider: FC<TooltipPrimitive.TooltipProviderProps>;
|
|
107
110
|
|
|
108
|
-
export declare const TooltipTrigger:
|
|
111
|
+
export declare const TooltipTrigger: ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
109
112
|
|
|
110
113
|
declare type UserInfo = {
|
|
111
114
|
/**
|