@botpress/webchat 1.3.9 → 1.3.12
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/.turbo/turbo-build.log +7 -7
- package/dist/client/MessagingClient/client.d.ts +5 -2
- package/dist/client/PushpinClient/index.d.ts +9 -1
- package/dist/client/types.d.ts +20 -3
- package/dist/gen/client/index.d.ts +7 -17
- package/dist/gen/client/models.d.ts +6 -0
- package/dist/gen/client/operations/addParticipant.d.ts +6 -0
- package/dist/gen/client/operations/createUser.d.ts +6 -0
- package/dist/gen/client/operations/getParticipant.d.ts +6 -0
- package/dist/gen/client/operations/getUser.d.ts +6 -0
- package/dist/gen/client/operations/listParticipants.d.ts +6 -0
- package/dist/gen/client/operations/updateUser.d.ts +7 -1
- package/dist/gen/client/to-axios.d.ts +16 -0
- package/dist/hooks/useClient.d.ts +1 -2
- package/dist/{index-8e9a70c6.js → index-aa13a347.js} +6133 -6106
- package/dist/{index-de8cc2d3.js → index-d84f2e5e.js} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +104 -104
- package/dist/providers/WebchatProvider.d.ts +1 -1
- package/dist/schemas/init.d.ts +11 -11
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ type Props = {
|
|
|
9
9
|
configuration?: Configuration;
|
|
10
10
|
defaultState?: Partial<ContextVaue['state']>;
|
|
11
11
|
children?: ReactNode | ((configuration: Configuration) => ReactNode);
|
|
12
|
-
userData?: Record<string,
|
|
12
|
+
userData?: Record<string, unknown>;
|
|
13
13
|
closeWindow?: () => void;
|
|
14
14
|
} & Omit<ComponentProps<typeof WebchatContext.Provider>, 'value' | 'children'>;
|
|
15
15
|
export declare const WebchatProvider: ({ theme: initialTheme, renderers, client, children, configuration, userData, closeWindow, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
package/dist/schemas/init.d.ts
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const statePropsSchema: z.ZodEnum<["opened", "closed", "initial"]>;
|
|
4
4
|
export declare const userPropsSchema: z.ZodObject<{
|
|
5
|
-
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
5
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
data?: Record<string,
|
|
7
|
+
data?: Record<string, unknown> | undefined;
|
|
8
8
|
}, {
|
|
9
|
-
data?: Record<string,
|
|
9
|
+
data?: Record<string, unknown> | undefined;
|
|
10
10
|
}>;
|
|
11
11
|
export declare const clientModePropsSchema: z.ZodEnum<["messaging", "pushpin"]>;
|
|
12
12
|
export declare const configPropsSchema: z.ZodObject<{
|
|
@@ -3648,11 +3648,11 @@ export declare const configPropsSchema: z.ZodObject<{
|
|
|
3648
3648
|
}>>>;
|
|
3649
3649
|
style: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
3650
3650
|
user: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
3651
|
-
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
3651
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3652
3652
|
}, "strip", z.ZodTypeAny, {
|
|
3653
|
-
data?: Record<string,
|
|
3653
|
+
data?: Record<string, unknown> | undefined;
|
|
3654
3654
|
}, {
|
|
3655
|
-
data?: Record<string,
|
|
3655
|
+
data?: Record<string, unknown> | undefined;
|
|
3656
3656
|
}>>>;
|
|
3657
3657
|
}, "strip", z.ZodTypeAny, {
|
|
3658
3658
|
configuration?: {
|
|
@@ -4095,7 +4095,7 @@ export declare const configPropsSchema: z.ZodObject<{
|
|
|
4095
4095
|
} | undefined;
|
|
4096
4096
|
style?: string | undefined;
|
|
4097
4097
|
user?: {
|
|
4098
|
-
data?: Record<string,
|
|
4098
|
+
data?: Record<string, unknown> | undefined;
|
|
4099
4099
|
} | undefined;
|
|
4100
4100
|
}, {
|
|
4101
4101
|
configuration?: unknown;
|
|
@@ -7742,11 +7742,11 @@ export declare const initPropsSchema: z.ZodObject<{
|
|
|
7742
7742
|
} | undefined;
|
|
7743
7743
|
}>>>;
|
|
7744
7744
|
user: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
7745
|
-
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
7745
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7746
7746
|
}, "strip", z.ZodTypeAny, {
|
|
7747
|
-
data?: Record<string,
|
|
7747
|
+
data?: Record<string, unknown> | undefined;
|
|
7748
7748
|
}, {
|
|
7749
|
-
data?: Record<string,
|
|
7749
|
+
data?: Record<string, unknown> | undefined;
|
|
7750
7750
|
}>>>;
|
|
7751
7751
|
clientId: z.ZodString;
|
|
7752
7752
|
botId: z.ZodString;
|
|
@@ -8200,7 +8200,7 @@ export declare const initPropsSchema: z.ZodObject<{
|
|
|
8200
8200
|
} | undefined;
|
|
8201
8201
|
} | undefined;
|
|
8202
8202
|
user?: {
|
|
8203
|
-
data?: Record<string,
|
|
8203
|
+
data?: Record<string, unknown> | undefined;
|
|
8204
8204
|
} | undefined;
|
|
8205
8205
|
selector?: string | undefined;
|
|
8206
8206
|
webchatScriptUrl?: string | undefined;
|