@cimulate/copilot-widget 0.6.0 → 0.8.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.
@@ -67,7 +67,7 @@ export declare const eventHandlers: {
67
67
  updateCatalogSegment: (segment: string | null) => void;
68
68
  };
69
69
  components: {
70
- toggleWidgetOpen: (isOpen: boolean) => void;
70
+ toggleWidgetOpen: (isOpen?: boolean) => void;
71
71
  toggleModalFullscreen: (isFullscreen: boolean) => void;
72
72
  setWidgetType: (type: "chat" | "dialog" | "modal") => void;
73
73
  setWidgetDialogPosition: (position: DialogPosition) => void;
@@ -89,14 +89,23 @@ declare type RangeFilters = Array<{
89
89
 
90
90
  export declare interface SearchPayload {
91
91
  userPrompt?: string;
92
- searchParams: {
93
- query: string;
94
- facetFilters?: FacetFilters_2;
95
- rangeFilters?: RangeFilters;
96
- catalogSegment?: string | null;
92
+ searchParams: Omit<SearchState, "page" | "pageSize" | "includeFacets"> & {
93
+ catalogSegment?: string;
94
+ pricebooks?: string[];
97
95
  };
98
96
  }
99
97
 
98
+ declare interface SearchState {
99
+ query: string;
100
+ page?: number | null;
101
+ pageSize?: number | null;
102
+ includeFacets?: boolean;
103
+ facetFilters?: FacetFilters_2;
104
+ rangeFilters?: RangeFilters;
105
+ catalogSegment?: string | null;
106
+ pricebooks?: string[] | null;
107
+ }
108
+
100
109
  declare interface ThemeConfig {
101
110
  primaryColor?: string;
102
111
  secondaryColor?: string;
@@ -119,7 +128,7 @@ export declare const useCopilot: () => SocketSdkContextType;
119
128
  * CopilotDispatch (redux dispatch) >
120
129
  * SocketSdk (copilot-sdk)
121
130
  */
122
- export declare const WidgetProvider: ({ apiKey, apiToken, baseUrl, logoUrl, headerText, isDevelopment, onConnect, children, }: CopilotWidgetProps & {
131
+ export declare const WidgetProvider: ({ apiKey, apiToken, baseUrl, logoUrl, headerText, theme, globalClassName, isDevelopment, onConnect, children, }: CopilotWidgetProps & {
123
132
  children: ReactNode;
124
133
  }) => JSX_2.Element;
125
134