@opencx/widget 2.3.1 → 2.4.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/README.md +30 -30
- package/dist/basic.cjs +64 -64
- package/dist/basic.cjs.map +1 -1
- package/dist/basic.js +7105 -7012
- package/dist/basic.js.map +1 -1
- package/dist/core/types/schemas-v2.d.ts +25 -0
- package/dist/{index-pl-6K_wU.js → index-Cdz5xDDT.js} +254 -213
- package/dist/index-Cdz5xDDT.js.map +1 -0
- package/dist/index-CtriTKQi.cjs +18 -0
- package/dist/index-CtriTKQi.cjs.map +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react-web/hooks/useAxiosInstance.d.ts +21 -1
- package/dist/react-web/hooks/useVote.d.ts +16 -0
- package/dist/react-web/index.d.ts +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +14 -28
- package/dist/react.js.map +1 -1
- package/dist/schemas-BBAV6Sd_.js.map +1 -1
- package/dist/schemas-wky4fpbc.cjs.map +1 -1
- package/dist/src/@components/BotMessageWrapper.d.ts +3 -1
- package/dist/src/components/VoteButtons.d.ts +8 -0
- package/dist/src/components/button.d.ts +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist-embed/script.js +101 -91
- package/dist-embed/script.js.map +1 -1
- package/package.json +1 -1
- package/dist/index-CHWVttUy.cjs +0 -18
- package/dist/index-CHWVttUy.cjs.map +0 -1
- package/dist/index-pl-6K_wU.js.map +0 -1
|
@@ -679,9 +679,34 @@ declare const handleContactMessageOutputSchema: z.ZodDiscriminatedUnion<"success
|
|
|
679
679
|
};
|
|
680
680
|
success: false;
|
|
681
681
|
}>]>;
|
|
682
|
+
declare const widgetVoteSchema: z.ZodObject<{
|
|
683
|
+
action: z.ZodEnum<["upvote", "downvote"]>;
|
|
684
|
+
sessionId: z.ZodString;
|
|
685
|
+
messagePublicId: z.ZodString;
|
|
686
|
+
}, "strip", z.ZodTypeAny, {
|
|
687
|
+
action: "upvote" | "downvote";
|
|
688
|
+
sessionId: string;
|
|
689
|
+
messagePublicId: string;
|
|
690
|
+
}, {
|
|
691
|
+
action: "upvote" | "downvote";
|
|
692
|
+
sessionId: string;
|
|
693
|
+
messagePublicId: string;
|
|
694
|
+
}>;
|
|
695
|
+
declare const widgetVoteResponseSchema: z.ZodObject<{
|
|
696
|
+
messagePublicId: z.ZodNullable<z.ZodString>;
|
|
697
|
+
success: z.ZodBoolean;
|
|
698
|
+
}, "strip", z.ZodTypeAny, {
|
|
699
|
+
success: boolean;
|
|
700
|
+
messagePublicId: string | null;
|
|
701
|
+
}, {
|
|
702
|
+
success: boolean;
|
|
703
|
+
messagePublicId: string | null;
|
|
704
|
+
}>;
|
|
705
|
+
export type WidgetVoteResponseSchema = z.infer<typeof widgetVoteResponseSchema>;
|
|
682
706
|
export type HandleContactMessageOutputSchema = z.infer<typeof handleContactMessageOutputSchema>;
|
|
683
707
|
export type HttpChatInputSchema = z.infer<typeof httpChatInputDto>;
|
|
684
708
|
export type WidgetSessionSchema = z.infer<typeof widgetSessionSchema>;
|
|
685
709
|
export type WidgetHistorySchema = z.infer<typeof widgetHistorySchema>;
|
|
686
710
|
export type WidgetPreludeSchema = z.infer<typeof widgetPreludeSchema>;
|
|
711
|
+
export type WidgetVoteSchema = z.infer<typeof widgetVoteSchema>;
|
|
687
712
|
export {};
|