@uptiqai/widgets-sdk 1.18.0 → 1.19.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/dist/index.d.ts CHANGED
@@ -1,15 +1,29 @@
1
1
  import { JSX as JSX_2 } from 'react/jsx-runtime';
2
2
 
3
- export declare const ChatWidget: ({ onClose, widgetRef, defaultOpen, ...props }: ChatWidgetProps) => JSX_2.Element;
3
+ export declare const ChatWidget: ({ onClose, embedded, ...props }: ChatWidgetProps) => JSX_2.Element;
4
4
 
5
- declare type ChatWidgetContainerProps = {
5
+ declare type ChatWidgetContainerProps = (ChatWidgetPopupContainerProps & {
6
+ embedded?: false;
7
+ }) | (ChatWidgetEmbeddedContainerProps & {
8
+ embedded: true;
9
+ });
10
+
11
+ declare type ChatWidgetEmbeddedContainerProps = {
12
+ children: React.ReactNode;
13
+ onClose?: () => void;
14
+ widgetRef?: React.Ref<ChatWidgetRef>;
15
+ };
16
+
17
+ declare type ChatWidgetPopupContainerProps = {
6
18
  children: React.ReactNode;
7
19
  defaultOpen?: boolean;
8
20
  onClose?: () => void;
9
21
  widgetRef?: React.Ref<ChatWidgetRef>;
10
22
  };
11
23
 
12
- export declare type ChatWidgetProps = CommonWidgetProps & Omit<ChatWidgetContainerProps, 'children'>;
24
+ export declare type ChatWidgetProps = CommonWidgetProps & Omit<ChatWidgetContainerProps, 'children'> & {
25
+ embedded?: boolean;
26
+ };
13
27
 
14
28
  export declare type ChatWidgetRef = {
15
29
  open: () => void;