@botpress/webchat 2.1.1 → 2.1.3
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.
|
@@ -33,13 +33,13 @@ export type WebchatState = WebchatProps & {
|
|
|
33
33
|
getClientId: () => string | undefined;
|
|
34
34
|
eventEmitter: EventEmitter<Events>;
|
|
35
35
|
};
|
|
36
|
-
export type WebchatStore = ReturnType<typeof
|
|
36
|
+
export type WebchatStore = ReturnType<typeof useCreateWebchatStore>;
|
|
37
37
|
export declare const WebchatContext: import("react").Context<(Omit<import("zustand").StoreApi<WebchatState>, "setState"> & {
|
|
38
38
|
setState<A extends string | {
|
|
39
39
|
type: unknown;
|
|
40
40
|
}>(partial: WebchatState | Partial<WebchatState> | ((state: WebchatState) => WebchatState | Partial<WebchatState>), replace?: boolean | undefined, action?: A | undefined): void;
|
|
41
41
|
}) | null>;
|
|
42
|
-
export declare const
|
|
42
|
+
export declare const useCreateWebchatStore: (initProps?: Partial<WebchatProps>) => Omit<import("zustand").StoreApi<WebchatState>, "setState"> & {
|
|
43
43
|
setState<A extends string | {
|
|
44
44
|
type: unknown;
|
|
45
45
|
}>(partial: WebchatState | Partial<WebchatState> | ((state: WebchatState) => WebchatState | Partial<WebchatState>), replace?: boolean | undefined, action?: A | undefined): void;
|